configure revision b73be646
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for xf86-input-mouse 1.6.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 Free Software Foundation,
10# 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
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629	   test "X$echo_testing_string" = "X$echo_test_string"; then
630	  # Cool, printf works
631	  :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	     test "X$echo_testing_string" = 'X\t' &&
634	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	     test "X$echo_testing_string" = "X$echo_test_string"; then
636	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	  export CONFIG_SHELL
638	  SHELL="$CONFIG_SHELL"
639	  export SHELL
640	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	     test "X$echo_testing_string" = 'X\t' &&
643	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	     test "X$echo_testing_string" = "X$echo_test_string"; then
645	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647	  # maybe with a smaller string...
648	  prev=:
649
650	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652	    then
653	      break
654	    fi
655	    prev="$cmd"
656	  done
657
658	  if test "$prev" != 'sed 50q "$0"'; then
659	    echo_test_string=`eval $prev`
660	    export echo_test_string
661	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	  else
663	    # Oops.  We lost completely, so just stick with echo.
664	    ECHO=echo
665	  fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='xf86-input-mouse'
704PACKAGE_TARNAME='xf86-input-mouse'
705PACKAGE_VERSION='1.6.0'
706PACKAGE_STRING='xf86-input-mouse 1.6.0'
707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708PACKAGE_URL=''
709
710ac_unique_file="Makefile.am"
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747ac_subst_vars='am__EXEEXT_FALSE
748am__EXEEXT_TRUE
749LTLIBOBJS
750LIBOBJS
751DRIVER_NAME
752OS_MOUSE_NAME
753inputdir
754XORG_LIBS
755XORG_CFLAGS
756LINT_FALSE
757LINT_TRUE
758LINT_FLAGS
759LINT
760AM_BACKSLASH
761AM_DEFAULT_VERBOSITY
762MAN_SUBSTS
763XORG_MAN_PAGE
764ADMIN_MAN_DIR
765DRIVER_MAN_DIR
766MISC_MAN_DIR
767FILE_MAN_DIR
768LIB_MAN_DIR
769APP_MAN_DIR
770ADMIN_MAN_SUFFIX
771DRIVER_MAN_SUFFIX
772MISC_MAN_SUFFIX
773FILE_MAN_SUFFIX
774LIB_MAN_SUFFIX
775APP_MAN_SUFFIX
776INSTALL_CMD
777PKG_CONFIG
778CHANGELOG_CMD
779CWARNFLAGS
780CPP
781OTOOL64
782OTOOL
783LIPO
784NMEDIT
785DSYMUTIL
786lt_ECHO
787RANLIB
788AR
789OBJDUMP
790LN_S
791NM
792ac_ct_DUMPBIN
793DUMPBIN
794LD
795FGREP
796EGREP
797GREP
798SED
799am__fastdepCC_FALSE
800am__fastdepCC_TRUE
801CCDEPMODE
802AMDEPBACKSLASH
803AMDEP_FALSE
804AMDEP_TRUE
805am__quote
806am__include
807DEPDIR
808OBJEXT
809EXEEXT
810ac_ct_CC
811CPPFLAGS
812LDFLAGS
813CFLAGS
814CC
815host_os
816host_vendor
817host_cpu
818host
819build_os
820build_vendor
821build_cpu
822build
823LIBTOOL
824MAINT
825MAINTAINER_MODE_FALSE
826MAINTAINER_MODE_TRUE
827am__untar
828am__tar
829AMTAR
830am__leading_dot
831SET_MAKE
832AWK
833mkdir_p
834MKDIR_P
835INSTALL_STRIP_PROGRAM
836STRIP
837install_sh
838MAKEINFO
839AUTOHEADER
840AUTOMAKE
841AUTOCONF
842ACLOCAL
843VERSION
844PACKAGE
845CYGPATH_W
846am__isrc
847INSTALL_DATA
848INSTALL_SCRIPT
849INSTALL_PROGRAM
850target_alias
851host_alias
852build_alias
853LIBS
854ECHO_T
855ECHO_N
856ECHO_C
857DEFS
858mandir
859localedir
860libdir
861psdir
862pdfdir
863dvidir
864htmldir
865infodir
866docdir
867oldincludedir
868includedir
869localstatedir
870sharedstatedir
871sysconfdir
872datadir
873datarootdir
874libexecdir
875sbindir
876bindir
877program_transform_name
878prefix
879exec_prefix
880PACKAGE_URL
881PACKAGE_BUGREPORT
882PACKAGE_STRING
883PACKAGE_VERSION
884PACKAGE_TARNAME
885PACKAGE_NAME
886PATH_SEPARATOR
887SHELL'
888ac_subst_files=''
889ac_user_opts='
890enable_option_checking
891enable_maintainer_mode
892enable_static
893enable_shared
894with_pic
895enable_fast_install
896enable_dependency_tracking
897with_gnu_ld
898enable_libtool_lock
899enable_strict_compilation
900enable_silent_rules
901with_lint
902with_xorg_module_dir
903'
904      ac_precious_vars='build_alias
905host_alias
906target_alias
907CC
908CFLAGS
909LDFLAGS
910LIBS
911CPPFLAGS
912CPP
913PKG_CONFIG
914LINT
915LINT_FLAGS
916XORG_CFLAGS
917XORG_LIBS'
918
919
920# Initialize some variables set by options.
921ac_init_help=
922ac_init_version=false
923ac_unrecognized_opts=
924ac_unrecognized_sep=
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
967
968ac_prev=
969ac_dashdash=
970for ac_option
971do
972  # If the previous option needs an argument, assign it.
973  if test -n "$ac_prev"; then
974    eval $ac_prev=\$ac_option
975    ac_prev=
976    continue
977  fi
978
979  case $ac_option in
980  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981  *)	ac_optarg=yes ;;
982  esac
983
984  # Accept the important Cygnus configure options, so we can diagnose typos.
985
986  case $ac_dashdash$ac_option in
987  --)
988    ac_dashdash=yes ;;
989
990  -bindir | --bindir | --bindi | --bind | --bin | --bi)
991    ac_prev=bindir ;;
992  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993    bindir=$ac_optarg ;;
994
995  -build | --build | --buil | --bui | --bu)
996    ac_prev=build_alias ;;
997  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998    build_alias=$ac_optarg ;;
999
1000  -cache-file | --cache-file | --cache-fil | --cache-fi \
1001  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002    ac_prev=cache_file ;;
1003  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005    cache_file=$ac_optarg ;;
1006
1007  --config-cache | -C)
1008    cache_file=config.cache ;;
1009
1010  -datadir | --datadir | --datadi | --datad)
1011    ac_prev=datadir ;;
1012  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013    datadir=$ac_optarg ;;
1014
1015  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016  | --dataroo | --dataro | --datar)
1017    ac_prev=datarootdir ;;
1018  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020    datarootdir=$ac_optarg ;;
1021
1022  -disable-* | --disable-*)
1023    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024    # Reject names that are not valid shell variable names.
1025    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026      as_fn_error "invalid feature name: $ac_useropt"
1027    ac_useropt_orig=$ac_useropt
1028    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029    case $ac_user_opts in
1030      *"
1031"enable_$ac_useropt"
1032"*) ;;
1033      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034	 ac_unrecognized_sep=', ';;
1035    esac
1036    eval enable_$ac_useropt=no ;;
1037
1038  -docdir | --docdir | --docdi | --doc | --do)
1039    ac_prev=docdir ;;
1040  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041    docdir=$ac_optarg ;;
1042
1043  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044    ac_prev=dvidir ;;
1045  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046    dvidir=$ac_optarg ;;
1047
1048  -enable-* | --enable-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error "invalid feature name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"enable_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval enable_$ac_useropt=\$ac_optarg ;;
1063
1064  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066  | --exec | --exe | --ex)
1067    ac_prev=exec_prefix ;;
1068  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070  | --exec=* | --exe=* | --ex=*)
1071    exec_prefix=$ac_optarg ;;
1072
1073  -gas | --gas | --ga | --g)
1074    # Obsolete; use --with-gas.
1075    with_gas=yes ;;
1076
1077  -help | --help | --hel | --he | -h)
1078    ac_init_help=long ;;
1079  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080    ac_init_help=recursive ;;
1081  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082    ac_init_help=short ;;
1083
1084  -host | --host | --hos | --ho)
1085    ac_prev=host_alias ;;
1086  -host=* | --host=* | --hos=* | --ho=*)
1087    host_alias=$ac_optarg ;;
1088
1089  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090    ac_prev=htmldir ;;
1091  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092  | --ht=*)
1093    htmldir=$ac_optarg ;;
1094
1095  -includedir | --includedir | --includedi | --included | --include \
1096  | --includ | --inclu | --incl | --inc)
1097    ac_prev=includedir ;;
1098  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099  | --includ=* | --inclu=* | --incl=* | --inc=*)
1100    includedir=$ac_optarg ;;
1101
1102  -infodir | --infodir | --infodi | --infod | --info | --inf)
1103    ac_prev=infodir ;;
1104  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105    infodir=$ac_optarg ;;
1106
1107  -libdir | --libdir | --libdi | --libd)
1108    ac_prev=libdir ;;
1109  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110    libdir=$ac_optarg ;;
1111
1112  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113  | --libexe | --libex | --libe)
1114    ac_prev=libexecdir ;;
1115  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116  | --libexe=* | --libex=* | --libe=*)
1117    libexecdir=$ac_optarg ;;
1118
1119  -localedir | --localedir | --localedi | --localed | --locale)
1120    ac_prev=localedir ;;
1121  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122    localedir=$ac_optarg ;;
1123
1124  -localstatedir | --localstatedir | --localstatedi | --localstated \
1125  | --localstate | --localstat | --localsta | --localst | --locals)
1126    ac_prev=localstatedir ;;
1127  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129    localstatedir=$ac_optarg ;;
1130
1131  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132    ac_prev=mandir ;;
1133  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134    mandir=$ac_optarg ;;
1135
1136  -nfp | --nfp | --nf)
1137    # Obsolete; use --without-fp.
1138    with_fp=no ;;
1139
1140  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141  | --no-cr | --no-c | -n)
1142    no_create=yes ;;
1143
1144  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146    no_recursion=yes ;;
1147
1148  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150  | --oldin | --oldi | --old | --ol | --o)
1151    ac_prev=oldincludedir ;;
1152  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155    oldincludedir=$ac_optarg ;;
1156
1157  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158    ac_prev=prefix ;;
1159  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160    prefix=$ac_optarg ;;
1161
1162  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163  | --program-pre | --program-pr | --program-p)
1164    ac_prev=program_prefix ;;
1165  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167    program_prefix=$ac_optarg ;;
1168
1169  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170  | --program-suf | --program-su | --program-s)
1171    ac_prev=program_suffix ;;
1172  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174    program_suffix=$ac_optarg ;;
1175
1176  -program-transform-name | --program-transform-name \
1177  | --program-transform-nam | --program-transform-na \
1178  | --program-transform-n | --program-transform- \
1179  | --program-transform | --program-transfor \
1180  | --program-transfo | --program-transf \
1181  | --program-trans | --program-tran \
1182  | --progr-tra | --program-tr | --program-t)
1183    ac_prev=program_transform_name ;;
1184  -program-transform-name=* | --program-transform-name=* \
1185  | --program-transform-nam=* | --program-transform-na=* \
1186  | --program-transform-n=* | --program-transform-=* \
1187  | --program-transform=* | --program-transfor=* \
1188  | --program-transfo=* | --program-transf=* \
1189  | --program-trans=* | --program-tran=* \
1190  | --progr-tra=* | --program-tr=* | --program-t=*)
1191    program_transform_name=$ac_optarg ;;
1192
1193  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194    ac_prev=pdfdir ;;
1195  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196    pdfdir=$ac_optarg ;;
1197
1198  -psdir | --psdir | --psdi | --psd | --ps)
1199    ac_prev=psdir ;;
1200  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201    psdir=$ac_optarg ;;
1202
1203  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204  | -silent | --silent | --silen | --sile | --sil)
1205    silent=yes ;;
1206
1207  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208    ac_prev=sbindir ;;
1209  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210  | --sbi=* | --sb=*)
1211    sbindir=$ac_optarg ;;
1212
1213  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215  | --sharedst | --shareds | --shared | --share | --shar \
1216  | --sha | --sh)
1217    ac_prev=sharedstatedir ;;
1218  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221  | --sha=* | --sh=*)
1222    sharedstatedir=$ac_optarg ;;
1223
1224  -site | --site | --sit)
1225    ac_prev=site ;;
1226  -site=* | --site=* | --sit=*)
1227    site=$ac_optarg ;;
1228
1229  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230    ac_prev=srcdir ;;
1231  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232    srcdir=$ac_optarg ;;
1233
1234  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235  | --syscon | --sysco | --sysc | --sys | --sy)
1236    ac_prev=sysconfdir ;;
1237  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239    sysconfdir=$ac_optarg ;;
1240
1241  -target | --target | --targe | --targ | --tar | --ta | --t)
1242    ac_prev=target_alias ;;
1243  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244    target_alias=$ac_optarg ;;
1245
1246  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247    verbose=yes ;;
1248
1249  -version | --version | --versio | --versi | --vers | -V)
1250    ac_init_version=: ;;
1251
1252  -with-* | --with-*)
1253    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256      as_fn_error "invalid package name: $ac_useropt"
1257    ac_useropt_orig=$ac_useropt
1258    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259    case $ac_user_opts in
1260      *"
1261"with_$ac_useropt"
1262"*) ;;
1263      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264	 ac_unrecognized_sep=', ';;
1265    esac
1266    eval with_$ac_useropt=\$ac_optarg ;;
1267
1268  -without-* | --without-*)
1269    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270    # Reject names that are not valid shell variable names.
1271    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272      as_fn_error "invalid package name: $ac_useropt"
1273    ac_useropt_orig=$ac_useropt
1274    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275    case $ac_user_opts in
1276      *"
1277"with_$ac_useropt"
1278"*) ;;
1279      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280	 ac_unrecognized_sep=', ';;
1281    esac
1282    eval with_$ac_useropt=no ;;
1283
1284  --x)
1285    # Obsolete; use --with-x.
1286    with_x=yes ;;
1287
1288  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289  | --x-incl | --x-inc | --x-in | --x-i)
1290    ac_prev=x_includes ;;
1291  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293    x_includes=$ac_optarg ;;
1294
1295  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297    ac_prev=x_libraries ;;
1298  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300    x_libraries=$ac_optarg ;;
1301
1302  -*) as_fn_error "unrecognized option: \`$ac_option'
1303Try \`$0 --help' for more information."
1304    ;;
1305
1306  *=*)
1307    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308    # Reject names that are not valid shell variable names.
1309    case $ac_envvar in #(
1310      '' | [0-9]* | *[!_$as_cr_alnum]* )
1311      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1312    esac
1313    eval $ac_envvar=\$ac_optarg
1314    export $ac_envvar ;;
1315
1316  *)
1317    # FIXME: should be removed in autoconf 3.0.
1318    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322    ;;
1323
1324  esac
1325done
1326
1327if test -n "$ac_prev"; then
1328  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329  as_fn_error "missing argument to $ac_option"
1330fi
1331
1332if test -n "$ac_unrecognized_opts"; then
1333  case $enable_option_checking in
1334    no) ;;
1335    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1336    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337  esac
1338fi
1339
1340# Check all directory arguments for consistency.
1341for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342		datadir sysconfdir sharedstatedir localstatedir includedir \
1343		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344		libdir localedir mandir
1345do
1346  eval ac_val=\$$ac_var
1347  # Remove trailing slashes.
1348  case $ac_val in
1349    */ )
1350      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351      eval $ac_var=\$ac_val;;
1352  esac
1353  # Be sure to have absolute directory names.
1354  case $ac_val in
1355    [\\/$]* | ?:[\\/]* )  continue;;
1356    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357  esac
1358  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370  if test "x$build_alias" = x; then
1371    cross_compiling=maybe
1372    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373    If a cross compiler is detected then cross compile mode will be used." >&2
1374  elif test "x$build_alias" != "x$host_alias"; then
1375    cross_compiling=yes
1376  fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
1385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388  as_fn_error "working directory cannot be determined"
1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390  as_fn_error "pwd does not report name of working directory"
1391
1392
1393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395  ac_srcdir_defaulted=yes
1396  # Try the directory containing this script, then the parent directory.
1397  ac_confdir=`$as_dirname -- "$as_myself" ||
1398$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399	 X"$as_myself" : 'X\(//\)[^/]' \| \
1400	 X"$as_myself" : 'X\(//\)$' \| \
1401	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402$as_echo X"$as_myself" |
1403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404	    s//\1/
1405	    q
1406	  }
1407	  /^X\(\/\/\)[^/].*/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\/\)$/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\).*/{
1416	    s//\1/
1417	    q
1418	  }
1419	  s/.*/./; q'`
1420  srcdir=$ac_confdir
1421  if test ! -r "$srcdir/$ac_unique_file"; then
1422    srcdir=..
1423  fi
1424else
1425  ac_srcdir_defaulted=no
1426fi
1427if test ! -r "$srcdir/$ac_unique_file"; then
1428  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1430fi
1431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
1433	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1434	pwd)`
1435# When building in place, set srcdir=.
1436if test "$ac_abs_confdir" = "$ac_pwd"; then
1437  srcdir=.
1438fi
1439# Remove unnecessary trailing slashes from srcdir.
1440# Double slashes in file names in object file debugging info
1441# mess up M-x gdb in Emacs.
1442case $srcdir in
1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444esac
1445for ac_var in $ac_precious_vars; do
1446  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447  eval ac_env_${ac_var}_value=\$${ac_var}
1448  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
1451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456  # Omit some internal or obsolete options to make the list less imposing.
1457  # This message is too long to be a string in the A/UX 3.1 sh.
1458  cat <<_ACEOF
1459\`configure' configures xf86-input-mouse 1.6.0 to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE.  See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469  -h, --help              display this help and exit
1470      --help=short        display options specific to this package
1471      --help=recursive    display the short help of all the included packages
1472  -V, --version           display version information and exit
1473  -q, --quiet, --silent   do not print \`checking...' messages
1474      --cache-file=FILE   cache test results in FILE [disabled]
1475  -C, --config-cache      alias for \`--cache-file=config.cache'
1476  -n, --no-create         do not create output files
1477      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1478
1479Installation directories:
1480  --prefix=PREFIX         install architecture-independent files in PREFIX
1481                          [$ac_default_prefix]
1482  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1483                          [PREFIX]
1484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
1493  --bindir=DIR            user executables [EPREFIX/bin]
1494  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1495  --libexecdir=DIR        program executables [EPREFIX/libexec]
1496  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1497  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1498  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1499  --libdir=DIR            object code libraries [EPREFIX/lib]
1500  --includedir=DIR        C header files [PREFIX/include]
1501  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1502  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1503  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1504  --infodir=DIR           info documentation [DATAROOTDIR/info]
1505  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1506  --mandir=DIR            man documentation [DATAROOTDIR/man]
1507  --docdir=DIR            documentation root
1508                          [DATAROOTDIR/doc/xf86-input-mouse]
1509  --htmldir=DIR           html documentation [DOCDIR]
1510  --dvidir=DIR            dvi documentation [DOCDIR]
1511  --pdfdir=DIR            pdf documentation [DOCDIR]
1512  --psdir=DIR             ps documentation [DOCDIR]
1513_ACEOF
1514
1515  cat <<\_ACEOF
1516
1517Program names:
1518  --program-prefix=PREFIX            prepend PREFIX to installed program names
1519  --program-suffix=SUFFIX            append SUFFIX to installed program names
1520  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1521
1522System types:
1523  --build=BUILD     configure for building on BUILD [guessed]
1524  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525_ACEOF
1526fi
1527
1528if test -n "$ac_init_help"; then
1529  case $ac_init_help in
1530     short | recursive ) echo "Configuration of xf86-input-mouse 1.6.0:";;
1531   esac
1532  cat <<\_ACEOF
1533
1534Optional Features:
1535  --disable-option-checking  ignore unrecognized --enable/--with options
1536  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538  --enable-maintainer-mode  enable make rules and dependencies not useful
1539			  (and sometimes confusing) to the casual installer
1540  --enable-static[=PKGS]  build static libraries [default=no]
1541  --enable-shared[=PKGS]  build shared libraries [default=yes]
1542  --enable-fast-install[=PKGS]
1543                          optimize for fast installation [default=yes]
1544  --disable-dependency-tracking  speeds up one-time build
1545  --enable-dependency-tracking   do not reject slow dependency extractors
1546  --disable-libtool-lock  avoid locking (might break parallel builds)
1547  --enable-strict-compilation
1548                          Enable all warnings from compiler and make them
1549                          errors (default: disabled)
1550  --enable-silent-rules          less verbose build output (undo: `make V=1')
1551  --disable-silent-rules         verbose build output (undo: `make V=0')
1552
1553Optional Packages:
1554  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556  --with-pic              try to use only PIC/non-PIC objects [default=use
1557                          both]
1558  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1559  --with-lint             Use a lint-style source code checker (default:
1560                          disabled)
1561  --with-xorg-module-dir=DIR
1562                          Default xorg module directory
1563                          [[default=$libdir/xorg/modules]]
1564
1565Some influential environment variables:
1566  CC          C compiler command
1567  CFLAGS      C compiler flags
1568  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1569              nonstandard directory <lib dir>
1570  LIBS        libraries to pass to the linker, e.g. -l<library>
1571  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572              you have headers in a nonstandard directory <include dir>
1573  CPP         C preprocessor
1574  PKG_CONFIG  path to pkg-config utility
1575  LINT        Path to a lint-style command
1576  LINT_FLAGS  Flags for the lint-style command
1577  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1578  XORG_LIBS   linker flags for XORG, overriding pkg-config
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1584_ACEOF
1585ac_status=$?
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589  # If there are subdirs, report their specific --help.
1590  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591    test -d "$ac_dir" ||
1592      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593      continue
1594    ac_builddir=.
1595
1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
1599  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600  # A ".." for each directory in $ac_dir_suffix.
1601  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602  case $ac_top_builddir_sub in
1603  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605  esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
1611
1612case $srcdir in
1613  .)  # We are building in place.
1614    ac_srcdir=.
1615    ac_top_srcdir=$ac_top_builddir_sub
1616    ac_abs_top_srcdir=$ac_pwd ;;
1617  [\\/]* | ?:[\\/]* )  # Absolute name.
1618    ac_srcdir=$srcdir$ac_dir_suffix;
1619    ac_top_srcdir=$srcdir
1620    ac_abs_top_srcdir=$srcdir ;;
1621  *) # Relative name.
1622    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623    ac_top_srcdir=$ac_top_build_prefix$srcdir
1624    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625esac
1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628    cd "$ac_dir" || { ac_status=$?; continue; }
1629    # Check for guested configure.
1630    if test -f "$ac_srcdir/configure.gnu"; then
1631      echo &&
1632      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633    elif test -f "$ac_srcdir/configure"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure" --help=recursive
1636    else
1637      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638    fi || ac_status=$?
1639    cd "$ac_pwd" || { ac_status=$?; break; }
1640  done
1641fi
1642
1643test -n "$ac_init_help" && exit $ac_status
1644if $ac_init_version; then
1645  cat <<\_ACEOF
1646xf86-input-mouse configure 1.6.0
1647generated by GNU Autoconf 2.65
1648
1649Copyright (C) 2009 Free Software Foundation, Inc.
1650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
1652_ACEOF
1653  exit
1654fi
1655
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
1659
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext
1667  if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_compile") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest.$ac_objext; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691	ac_retval=1
1692fi
1693  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_c_try_link LINENO
1699# -----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_link ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  rm -f conftest.$ac_objext conftest$ac_exeext
1705  if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_link") 2>conftest.err
1713  ac_status=$?
1714  if test -s conftest.err; then
1715    grep -v '^ *+' conftest.err >conftest.er1
1716    cat conftest.er1 >&5
1717    mv -f conftest.er1 conftest.err
1718  fi
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } && {
1721	 test -z "$ac_c_werror_flag" ||
1722	 test ! -s conftest.err
1723       } && test -s conftest$ac_exeext && {
1724	 test "$cross_compiling" = yes ||
1725	 $as_test_x conftest$ac_exeext
1726       }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732	ac_retval=1
1733fi
1734  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736  # interfere with the next link command; also delete a directory that is
1737  # left behind by Apple's compiler.  We do this before executing the actions.
1738  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_link
1743
1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists and can be compiled using the include files in
1747# INCLUDES, setting the cache variable VAR accordingly.
1748ac_fn_c_check_header_compile ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
1753if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754  $as_echo_n "(cached) " >&6
1755else
1756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h.  */
1758$4
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762  eval "$3=yes"
1763else
1764  eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772
1773} # ac_fn_c_check_header_compile
1774
1775# ac_fn_c_try_cpp LINENO
1776# ----------------------
1777# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_cpp ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  if { { ac_try="$ac_cpp conftest.$ac_ext"
1782case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789  ac_status=$?
1790  if test -s conftest.err; then
1791    grep -v '^ *+' conftest.err >conftest.er1
1792    cat conftest.er1 >&5
1793    mv -f conftest.er1 conftest.err
1794  fi
1795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796  test $ac_status = 0; } >/dev/null && {
1797	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798	 test ! -s conftest.err
1799       }; then :
1800  ac_retval=0
1801else
1802  $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805    ac_retval=1
1806fi
1807  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808  as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_cpp
1811
1812# ac_fn_c_try_run LINENO
1813# ----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815# that executables *can* be run.
1816ac_fn_c_try_run ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_link") 2>&5
1827  ac_status=$?
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830  { { case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_try") 2>&5
1837  ac_status=$?
1838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839  test $ac_status = 0; }; }; then :
1840  ac_retval=0
1841else
1842  $as_echo "$as_me: program exited with status $ac_status" >&5
1843       $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846       ac_retval=$ac_status
1847fi
1848  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850  as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_run
1853
1854# ac_fn_c_check_func LINENO FUNC VAR
1855# ----------------------------------
1856# Tests whether FUNC exists, setting the cache variable VAR accordingly
1857ac_fn_c_check_func ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1863  $as_echo_n "(cached) " >&6
1864else
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1869#define $2 innocuous_$2
1870
1871/* System header to define __stub macros and hopefully few prototypes,
1872    which can conflict with char $2 (); below.
1873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874    <limits.h> exists even on freestanding compilers.  */
1875
1876#ifdef __STDC__
1877# include <limits.h>
1878#else
1879# include <assert.h>
1880#endif
1881
1882#undef $2
1883
1884/* Override any GCC internal prototype to avoid an error.
1885   Use char because int might match the return type of a GCC
1886   builtin and then its argument prototype would still apply.  */
1887#ifdef __cplusplus
1888extern "C"
1889#endif
1890char $2 ();
1891/* The GNU C library defines this for functions which it implements
1892    to always fail with ENOSYS.  Some functions are actually named
1893    something starting with __ and the normal name is an alias.  */
1894#if defined __stub_$2 || defined __stub___$2
1895choke me
1896#endif
1897
1898int
1899main ()
1900{
1901return $2 ();
1902  ;
1903  return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_link "$LINENO"; then :
1907  eval "$3=yes"
1908else
1909  eval "$3=no"
1910fi
1911rm -f core conftest.err conftest.$ac_objext \
1912    conftest$ac_exeext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
1917  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918
1919} # ac_fn_c_check_func
1920
1921# ac_fn_c_check_decl LINENO SYMBOL VAR
1922# ------------------------------------
1923# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1924ac_fn_c_check_decl ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1928$as_echo_n "checking whether $2 is declared... " >&6; }
1929if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934$4
1935int
1936main ()
1937{
1938#ifndef $2
1939  (void) $2;
1940#endif
1941
1942  ;
1943  return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947  eval "$3=yes"
1948else
1949  eval "$3=no"
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952fi
1953eval ac_res=\$$3
1954	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958} # ac_fn_c_check_decl
1959cat >config.log <<_ACEOF
1960This file contains any messages produced by compilers while
1961running configure, to aid debugging if configure makes a mistake.
1962
1963It was created by xf86-input-mouse $as_me 1.6.0, which was
1964generated by GNU Autoconf 2.65.  Invocation command line was
1965
1966  $ $0 $@
1967
1968_ACEOF
1969exec 5>>config.log
1970{
1971cat <<_ASUNAME
1972## --------- ##
1973## Platform. ##
1974## --------- ##
1975
1976hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1977uname -m = `(uname -m) 2>/dev/null || echo unknown`
1978uname -r = `(uname -r) 2>/dev/null || echo unknown`
1979uname -s = `(uname -s) 2>/dev/null || echo unknown`
1980uname -v = `(uname -v) 2>/dev/null || echo unknown`
1981
1982/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1983/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1984
1985/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1986/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1987/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1988/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1989/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1990/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1991/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1992
1993_ASUNAME
1994
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998  IFS=$as_save_IFS
1999  test -z "$as_dir" && as_dir=.
2000    $as_echo "PATH: $as_dir"
2001  done
2002IFS=$as_save_IFS
2003
2004} >&5
2005
2006cat >&5 <<_ACEOF
2007
2008
2009## ----------- ##
2010## Core tests. ##
2011## ----------- ##
2012
2013_ACEOF
2014
2015
2016# Keep a trace of the command line.
2017# Strip out --no-create and --no-recursion so they do not pile up.
2018# Strip out --silent because we don't want to record it for future runs.
2019# Also quote any args containing shell meta-characters.
2020# Make two passes to allow for proper duplicate-argument suppression.
2021ac_configure_args=
2022ac_configure_args0=
2023ac_configure_args1=
2024ac_must_keep_next=false
2025for ac_pass in 1 2
2026do
2027  for ac_arg
2028  do
2029    case $ac_arg in
2030    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2031    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2032    | -silent | --silent | --silen | --sile | --sil)
2033      continue ;;
2034    *\'*)
2035      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2036    esac
2037    case $ac_pass in
2038    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2039    2)
2040      as_fn_append ac_configure_args1 " '$ac_arg'"
2041      if test $ac_must_keep_next = true; then
2042	ac_must_keep_next=false # Got value, back to normal.
2043      else
2044	case $ac_arg in
2045	  *=* | --config-cache | -C | -disable-* | --disable-* \
2046	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2047	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2048	  | -with-* | --with-* | -without-* | --without-* | --x)
2049	    case "$ac_configure_args0 " in
2050	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2051	    esac
2052	    ;;
2053	  -* ) ac_must_keep_next=true ;;
2054	esac
2055      fi
2056      as_fn_append ac_configure_args " '$ac_arg'"
2057      ;;
2058    esac
2059  done
2060done
2061{ ac_configure_args0=; unset ac_configure_args0;}
2062{ ac_configure_args1=; unset ac_configure_args1;}
2063
2064# When interrupted or exit'd, cleanup temporary files, and complete
2065# config.log.  We remove comments because anyway the quotes in there
2066# would cause problems or look ugly.
2067# WARNING: Use '\'' to represent an apostrophe within the trap.
2068# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2069trap 'exit_status=$?
2070  # Save into config.log some information that might help in debugging.
2071  {
2072    echo
2073
2074    cat <<\_ASBOX
2075## ---------------- ##
2076## Cache variables. ##
2077## ---------------- ##
2078_ASBOX
2079    echo
2080    # The following way of writing the cache mishandles newlines in values,
2081(
2082  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2083    eval ac_val=\$$ac_var
2084    case $ac_val in #(
2085    *${as_nl}*)
2086      case $ac_var in #(
2087      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2088$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2089      esac
2090      case $ac_var in #(
2091      _ | IFS | as_nl) ;; #(
2092      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2093      *) { eval $ac_var=; unset $ac_var;} ;;
2094      esac ;;
2095    esac
2096  done
2097  (set) 2>&1 |
2098    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2099    *${as_nl}ac_space=\ *)
2100      sed -n \
2101	"s/'\''/'\''\\\\'\'''\''/g;
2102	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2103      ;; #(
2104    *)
2105      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2106      ;;
2107    esac |
2108    sort
2109)
2110    echo
2111
2112    cat <<\_ASBOX
2113## ----------------- ##
2114## Output variables. ##
2115## ----------------- ##
2116_ASBOX
2117    echo
2118    for ac_var in $ac_subst_vars
2119    do
2120      eval ac_val=\$$ac_var
2121      case $ac_val in
2122      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123      esac
2124      $as_echo "$ac_var='\''$ac_val'\''"
2125    done | sort
2126    echo
2127
2128    if test -n "$ac_subst_files"; then
2129      cat <<\_ASBOX
2130## ------------------- ##
2131## File substitutions. ##
2132## ------------------- ##
2133_ASBOX
2134      echo
2135      for ac_var in $ac_subst_files
2136      do
2137	eval ac_val=\$$ac_var
2138	case $ac_val in
2139	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140	esac
2141	$as_echo "$ac_var='\''$ac_val'\''"
2142      done | sort
2143      echo
2144    fi
2145
2146    if test -s confdefs.h; then
2147      cat <<\_ASBOX
2148## ----------- ##
2149## confdefs.h. ##
2150## ----------- ##
2151_ASBOX
2152      echo
2153      cat confdefs.h
2154      echo
2155    fi
2156    test "$ac_signal" != 0 &&
2157      $as_echo "$as_me: caught signal $ac_signal"
2158    $as_echo "$as_me: exit $exit_status"
2159  } >&5
2160  rm -f core *.core core.conftest.* &&
2161    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2162    exit $exit_status
2163' 0
2164for ac_signal in 1 2 13 15; do
2165  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166done
2167ac_signal=0
2168
2169# confdefs.h avoids OS command line length limits that DEFS can exceed.
2170rm -f -r conftest* confdefs.h
2171
2172$as_echo "/* confdefs.h */" > confdefs.h
2173
2174# Predefined preprocessor variables.
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_NAME "$PACKAGE_NAME"
2178_ACEOF
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_VERSION "$PACKAGE_VERSION"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_STRING "$PACKAGE_STRING"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_URL "$PACKAGE_URL"
2198_ACEOF
2199
2200
2201# Let the site file select an alternate cache file if it wants to.
2202# Prefer an explicitly selected file to automatically selected ones.
2203ac_site_file1=NONE
2204ac_site_file2=NONE
2205if test -n "$CONFIG_SITE"; then
2206  ac_site_file1=$CONFIG_SITE
2207elif test "x$prefix" != xNONE; then
2208  ac_site_file1=$prefix/share/config.site
2209  ac_site_file2=$prefix/etc/config.site
2210else
2211  ac_site_file1=$ac_default_prefix/share/config.site
2212  ac_site_file2=$ac_default_prefix/etc/config.site
2213fi
2214for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2215do
2216  test "x$ac_site_file" = xNONE && continue
2217  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2218    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2220    sed 's/^/| /' "$ac_site_file" >&5
2221    . "$ac_site_file"
2222  fi
2223done
2224
2225if test -r "$cache_file"; then
2226  # Some versions of bash will fail to source /dev/null (special files
2227  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2228  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230$as_echo "$as_me: loading cache $cache_file" >&6;}
2231    case $cache_file in
2232      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233      *)                      . "./$cache_file";;
2234    esac
2235  fi
2236else
2237  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238$as_echo "$as_me: creating cache $cache_file" >&6;}
2239  >$cache_file
2240fi
2241
2242# Check that the precious variables saved in the cache have kept the same
2243# value.
2244ac_cache_corrupted=false
2245for ac_var in $ac_precious_vars; do
2246  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247  eval ac_new_set=\$ac_env_${ac_var}_set
2248  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249  eval ac_new_val=\$ac_env_${ac_var}_value
2250  case $ac_old_set,$ac_new_set in
2251    set,)
2252      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254      ac_cache_corrupted=: ;;
2255    ,set)
2256      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258      ac_cache_corrupted=: ;;
2259    ,);;
2260    *)
2261      if test "x$ac_old_val" != "x$ac_new_val"; then
2262	# differences in whitespace do not lead to failure.
2263	ac_old_val_w=`echo x $ac_old_val`
2264	ac_new_val_w=`echo x $ac_new_val`
2265	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268	  ac_cache_corrupted=:
2269	else
2270	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272	  eval $ac_var=\$ac_old_val
2273	fi
2274	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2275$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2276	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2277$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2278      fi;;
2279  esac
2280  # Pass precious variables to config.status.
2281  if test "$ac_new_set" = set; then
2282    case $ac_new_val in
2283    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284    *) ac_arg=$ac_var=$ac_new_val ;;
2285    esac
2286    case " $ac_configure_args " in
2287      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2288      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289    esac
2290  fi
2291done
2292if $ac_cache_corrupted; then
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2298fi
2299## -------------------- ##
2300## Main body of script. ##
2301## -------------------- ##
2302
2303ac_ext=c
2304ac_cpp='$CPP $CPPFLAGS'
2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308
2309
2310
2311ac_config_headers="$ac_config_headers config.h"
2312
2313ac_aux_dir=
2314for ac_dir in . "$srcdir"/.; do
2315  for ac_t in install-sh install.sh shtool; do
2316    if test -f "$ac_dir/$ac_t"; then
2317      ac_aux_dir=$ac_dir
2318      ac_install_sh="$ac_aux_dir/$ac_t -c"
2319      break 2
2320    fi
2321  done
2322done
2323if test -z "$ac_aux_dir"; then
2324  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2325fi
2326
2327# These three variables are undocumented and unsupported,
2328# and are intended to be withdrawn in a future Autoconf release.
2329# They can cause serious problems if a builder's source tree is in a directory
2330# whose full name contains unusual characters.
2331ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2332ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2333ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2334
2335
2336
2337# Initialize Automake
2338am__api_version='1.11'
2339
2340# Find a good install program.  We prefer a C program (faster),
2341# so one script is as good as another.  But avoid the broken or
2342# incompatible versions:
2343# SysV /etc/install, /usr/sbin/install
2344# SunOS /usr/etc/install
2345# IRIX /sbin/install
2346# AIX /bin/install
2347# AmigaOS /C/install, which installs bootblocks on floppy discs
2348# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2349# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2350# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2351# OS/2's system install, which has a completely different semantic
2352# ./install, which can be erroneously created by make from ./install.sh.
2353# Reject install programs that cannot install multiple files.
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2355$as_echo_n "checking for a BSD-compatible install... " >&6; }
2356if test -z "$INSTALL"; then
2357if test "${ac_cv_path_install+set}" = set; then :
2358  $as_echo_n "(cached) " >&6
2359else
2360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363  IFS=$as_save_IFS
2364  test -z "$as_dir" && as_dir=.
2365    # Account for people who put trailing slashes in PATH elements.
2366case $as_dir/ in #((
2367  ./ | .// | /[cC]/* | \
2368  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2369  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2370  /usr/ucb/* ) ;;
2371  *)
2372    # OSF1 and SCO ODT 3.0 have their own names for install.
2373    # Don't use installbsd from OSF since it installs stuff as root
2374    # by default.
2375    for ac_prog in ginstall scoinst install; do
2376      for ac_exec_ext in '' $ac_executable_extensions; do
2377	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2378	  if test $ac_prog = install &&
2379	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380	    # AIX install.  It has an incompatible calling convention.
2381	    :
2382	  elif test $ac_prog = install &&
2383	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384	    # program-specific install script used by HP pwplus--don't use.
2385	    :
2386	  else
2387	    rm -rf conftest.one conftest.two conftest.dir
2388	    echo one > conftest.one
2389	    echo two > conftest.two
2390	    mkdir conftest.dir
2391	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2392	      test -s conftest.one && test -s conftest.two &&
2393	      test -s conftest.dir/conftest.one &&
2394	      test -s conftest.dir/conftest.two
2395	    then
2396	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2397	      break 3
2398	    fi
2399	  fi
2400	fi
2401      done
2402    done
2403    ;;
2404esac
2405
2406  done
2407IFS=$as_save_IFS
2408
2409rm -rf conftest.one conftest.two conftest.dir
2410
2411fi
2412  if test "${ac_cv_path_install+set}" = set; then
2413    INSTALL=$ac_cv_path_install
2414  else
2415    # As a last resort, use the slow shell script.  Don't cache a
2416    # value for INSTALL within a source directory, because that will
2417    # break other packages using the cache if that directory is
2418    # removed, or if the value is a relative name.
2419    INSTALL=$ac_install_sh
2420  fi
2421fi
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2423$as_echo "$INSTALL" >&6; }
2424
2425# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2426# It thinks the first close brace ends the variable substitution.
2427test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2428
2429test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2430
2431test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2432
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2434$as_echo_n "checking whether build environment is sane... " >&6; }
2435# Just in case
2436sleep 1
2437echo timestamp > conftest.file
2438# Reject unsafe characters in $srcdir or the absolute working directory
2439# name.  Accept space and tab only in the latter.
2440am_lf='
2441'
2442case `pwd` in
2443  *[\\\"\#\$\&\'\`$am_lf]*)
2444    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2445esac
2446case $srcdir in
2447  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2448    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2449esac
2450
2451# Do `set' in a subshell so we don't clobber the current shell's
2452# arguments.  Must try -L first in case configure is actually a
2453# symlink; some systems play weird games with the mod time of symlinks
2454# (eg FreeBSD returns the mod time of the symlink's containing
2455# directory).
2456if (
2457   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2458   if test "$*" = "X"; then
2459      # -L didn't work.
2460      set X `ls -t "$srcdir/configure" conftest.file`
2461   fi
2462   rm -f conftest.file
2463   if test "$*" != "X $srcdir/configure conftest.file" \
2464      && test "$*" != "X conftest.file $srcdir/configure"; then
2465
2466      # If neither matched, then we have a broken ls.  This can happen
2467      # if, for instance, CONFIG_SHELL is bash and it inherits a
2468      # broken ls alias from the environment.  This has actually
2469      # happened.  Such a system could not be considered "sane".
2470      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2471alias in your environment" "$LINENO" 5
2472   fi
2473
2474   test "$2" = conftest.file
2475   )
2476then
2477   # Ok.
2478   :
2479else
2480   as_fn_error "newly created file is older than distributed files!
2481Check your system clock" "$LINENO" 5
2482fi
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484$as_echo "yes" >&6; }
2485test "$program_prefix" != NONE &&
2486  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2487# Use a double $ so make ignores it.
2488test "$program_suffix" != NONE &&
2489  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2490# Double any \ or $.
2491# By default was `s,x,x', remove it if useless.
2492ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2493program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2494
2495# expand $ac_aux_dir to an absolute path
2496am_aux_dir=`cd $ac_aux_dir && pwd`
2497
2498if test x"${MISSING+set}" != xset; then
2499  case $am_aux_dir in
2500  *\ * | *\	*)
2501    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2502  *)
2503    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2504  esac
2505fi
2506# Use eval to expand $SHELL
2507if eval "$MISSING --run true"; then
2508  am_missing_run="$MISSING --run "
2509else
2510  am_missing_run=
2511  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2512$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2513fi
2514
2515if test x"${install_sh}" != xset; then
2516  case $am_aux_dir in
2517  *\ * | *\	*)
2518    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2519  *)
2520    install_sh="\${SHELL} $am_aux_dir/install-sh"
2521  esac
2522fi
2523
2524# Installed binaries are usually stripped using `strip' when the user
2525# run `make install-strip'.  However `strip' might not be the right
2526# tool to use in cross-compilation environments, therefore Automake
2527# will honor the `STRIP' environment variable to overrule this program.
2528if test "$cross_compiling" != no; then
2529  if test -n "$ac_tool_prefix"; then
2530  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2531set dummy ${ac_tool_prefix}strip; ac_word=$2
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533$as_echo_n "checking for $ac_word... " >&6; }
2534if test "${ac_cv_prog_STRIP+set}" = set; then :
2535  $as_echo_n "(cached) " >&6
2536else
2537  if test -n "$STRIP"; then
2538  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543  IFS=$as_save_IFS
2544  test -z "$as_dir" && as_dir=.
2545    for ac_exec_ext in '' $ac_executable_extensions; do
2546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549    break 2
2550  fi
2551done
2552  done
2553IFS=$as_save_IFS
2554
2555fi
2556fi
2557STRIP=$ac_cv_prog_STRIP
2558if test -n "$STRIP"; then
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2560$as_echo "$STRIP" >&6; }
2561else
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563$as_echo "no" >&6; }
2564fi
2565
2566
2567fi
2568if test -z "$ac_cv_prog_STRIP"; then
2569  ac_ct_STRIP=$STRIP
2570  # Extract the first word of "strip", so it can be a program name with args.
2571set dummy strip; ac_word=$2
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573$as_echo_n "checking for $ac_word... " >&6; }
2574if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2575  $as_echo_n "(cached) " >&6
2576else
2577  if test -n "$ac_ct_STRIP"; then
2578  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583  IFS=$as_save_IFS
2584  test -z "$as_dir" && as_dir=.
2585    for ac_exec_ext in '' $ac_executable_extensions; do
2586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587    ac_cv_prog_ac_ct_STRIP="strip"
2588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589    break 2
2590  fi
2591done
2592  done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2598if test -n "$ac_ct_STRIP"; then
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2600$as_echo "$ac_ct_STRIP" >&6; }
2601else
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
2604fi
2605
2606  if test "x$ac_ct_STRIP" = x; then
2607    STRIP=":"
2608  else
2609    case $cross_compiling:$ac_tool_warned in
2610yes:)
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613ac_tool_warned=yes ;;
2614esac
2615    STRIP=$ac_ct_STRIP
2616  fi
2617else
2618  STRIP="$ac_cv_prog_STRIP"
2619fi
2620
2621fi
2622INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2623
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2625$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2626if test -z "$MKDIR_P"; then
2627  if test "${ac_cv_path_mkdir+set}" = set; then :
2628  $as_echo_n "(cached) " >&6
2629else
2630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2632do
2633  IFS=$as_save_IFS
2634  test -z "$as_dir" && as_dir=.
2635    for ac_prog in mkdir gmkdir; do
2636	 for ac_exec_ext in '' $ac_executable_extensions; do
2637	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2638	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2639	     'mkdir (GNU coreutils) '* | \
2640	     'mkdir (coreutils) '* | \
2641	     'mkdir (fileutils) '4.1*)
2642	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2643	       break 3;;
2644	   esac
2645	 done
2646       done
2647  done
2648IFS=$as_save_IFS
2649
2650fi
2651
2652  test -d ./--version && rmdir ./--version
2653  if test "${ac_cv_path_mkdir+set}" = set; then
2654    MKDIR_P="$ac_cv_path_mkdir -p"
2655  else
2656    # As a last resort, use the slow shell script.  Don't cache a
2657    # value for MKDIR_P within a source directory, because that will
2658    # break other packages using the cache if that directory is
2659    # removed, or if the value is a relative name.
2660    MKDIR_P="$ac_install_sh -d"
2661  fi
2662fi
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2664$as_echo "$MKDIR_P" >&6; }
2665
2666mkdir_p="$MKDIR_P"
2667case $mkdir_p in
2668  [\\/$]* | ?:[\\/]*) ;;
2669  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2670esac
2671
2672for ac_prog in gawk mawk nawk awk
2673do
2674  # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if test "${ac_cv_prog_AWK+set}" = set; then :
2679  $as_echo_n "(cached) " >&6
2680else
2681  if test -n "$AWK"; then
2682  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689    for ac_exec_ext in '' $ac_executable_extensions; do
2690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691    ac_cv_prog_AWK="$ac_prog"
2692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693    break 2
2694  fi
2695done
2696  done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701AWK=$ac_cv_prog_AWK
2702if test -n "$AWK"; then
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704$as_echo "$AWK" >&6; }
2705else
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710
2711  test -n "$AWK" && break
2712done
2713
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2716set x ${MAKE-make}
2717ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2718if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  cat >conftest.make <<\_ACEOF
2722SHELL = /bin/sh
2723all:
2724	@echo '@@@%%%=$(MAKE)=@@@%%%'
2725_ACEOF
2726# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2727case `${MAKE-make} -f conftest.make 2>/dev/null` in
2728  *@@@%%%=?*=@@@%%%*)
2729    eval ac_cv_prog_make_${ac_make}_set=yes;;
2730  *)
2731    eval ac_cv_prog_make_${ac_make}_set=no;;
2732esac
2733rm -f conftest.make
2734fi
2735if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737$as_echo "yes" >&6; }
2738  SET_MAKE=
2739else
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741$as_echo "no" >&6; }
2742  SET_MAKE="MAKE=${MAKE-make}"
2743fi
2744
2745rm -rf .tst 2>/dev/null
2746mkdir .tst 2>/dev/null
2747if test -d .tst; then
2748  am__leading_dot=.
2749else
2750  am__leading_dot=_
2751fi
2752rmdir .tst 2>/dev/null
2753
2754if test "`cd $srcdir && pwd`" != "`pwd`"; then
2755  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2756  # is not polluted with repeated "-I."
2757  am__isrc=' -I$(srcdir)'
2758  # test to see if srcdir already configured
2759  if test -f $srcdir/config.status; then
2760    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2761  fi
2762fi
2763
2764# test whether we have cygpath
2765if test -z "$CYGPATH_W"; then
2766  if (cygpath --version) >/dev/null 2>/dev/null; then
2767    CYGPATH_W='cygpath -w'
2768  else
2769    CYGPATH_W=echo
2770  fi
2771fi
2772
2773
2774# Define the identity of the package.
2775 PACKAGE='xf86-input-mouse'
2776 VERSION='1.6.0'
2777
2778
2779cat >>confdefs.h <<_ACEOF
2780#define PACKAGE "$PACKAGE"
2781_ACEOF
2782
2783
2784cat >>confdefs.h <<_ACEOF
2785#define VERSION "$VERSION"
2786_ACEOF
2787
2788# Some tools Automake needs.
2789
2790ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2791
2792
2793AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2794
2795
2796AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2797
2798
2799AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2800
2801
2802MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2803
2804# We need awk for the "check" target.  The system "awk" is bad on
2805# some platforms.
2806# Always define AMTAR for backward compatibility.
2807
2808AMTAR=${AMTAR-"${am_missing_run}tar"}
2809
2810am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2811
2812
2813
2814
2815
2816
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2818$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2819    # Check whether --enable-maintainer-mode was given.
2820if test "${enable_maintainer_mode+set}" = set; then :
2821  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2822else
2823  USE_MAINTAINER_MODE=no
2824fi
2825
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2827$as_echo "$USE_MAINTAINER_MODE" >&6; }
2828   if test $USE_MAINTAINER_MODE = yes; then
2829  MAINTAINER_MODE_TRUE=
2830  MAINTAINER_MODE_FALSE='#'
2831else
2832  MAINTAINER_MODE_TRUE='#'
2833  MAINTAINER_MODE_FALSE=
2834fi
2835
2836  MAINT=$MAINTAINER_MODE_TRUE
2837
2838
2839
2840# Initialize libtool
2841# Check whether --enable-static was given.
2842if test "${enable_static+set}" = set; then :
2843  enableval=$enable_static; p=${PACKAGE-default}
2844    case $enableval in
2845    yes) enable_static=yes ;;
2846    no) enable_static=no ;;
2847    *)
2848     enable_static=no
2849      # Look at the argument we got.  We use all the common list separators.
2850      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2851      for pkg in $enableval; do
2852	IFS="$lt_save_ifs"
2853	if test "X$pkg" = "X$p"; then
2854	  enable_static=yes
2855	fi
2856      done
2857      IFS="$lt_save_ifs"
2858      ;;
2859    esac
2860else
2861  enable_static=no
2862fi
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872case `pwd` in
2873  *\ * | *\	*)
2874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2875$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2876esac
2877
2878
2879
2880macro_version='2.2.6b'
2881macro_revision='1.3017'
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895ltmain="$ac_aux_dir/ltmain.sh"
2896
2897# Make sure we can run config.sub.
2898$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2899  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2900
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2902$as_echo_n "checking build system type... " >&6; }
2903if test "${ac_cv_build+set}" = set; then :
2904  $as_echo_n "(cached) " >&6
2905else
2906  ac_build_alias=$build_alias
2907test "x$ac_build_alias" = x &&
2908  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2909test "x$ac_build_alias" = x &&
2910  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2911ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2912  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2913
2914fi
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2916$as_echo "$ac_cv_build" >&6; }
2917case $ac_cv_build in
2918*-*-*) ;;
2919*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2920esac
2921build=$ac_cv_build
2922ac_save_IFS=$IFS; IFS='-'
2923set x $ac_cv_build
2924shift
2925build_cpu=$1
2926build_vendor=$2
2927shift; shift
2928# Remember, the first character of IFS is used to create $*,
2929# except with old shells:
2930build_os=$*
2931IFS=$ac_save_IFS
2932case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2933
2934
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2936$as_echo_n "checking host system type... " >&6; }
2937if test "${ac_cv_host+set}" = set; then :
2938  $as_echo_n "(cached) " >&6
2939else
2940  if test "x$host_alias" = x; then
2941  ac_cv_host=$ac_cv_build
2942else
2943  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2944    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2945fi
2946
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2949$as_echo "$ac_cv_host" >&6; }
2950case $ac_cv_host in
2951*-*-*) ;;
2952*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2953esac
2954host=$ac_cv_host
2955ac_save_IFS=$IFS; IFS='-'
2956set x $ac_cv_host
2957shift
2958host_cpu=$1
2959host_vendor=$2
2960shift; shift
2961# Remember, the first character of IFS is used to create $*,
2962# except with old shells:
2963host_os=$*
2964IFS=$ac_save_IFS
2965case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2966
2967
2968DEPDIR="${am__leading_dot}deps"
2969
2970ac_config_commands="$ac_config_commands depfiles"
2971
2972
2973am_make=${MAKE-make}
2974cat > confinc << 'END'
2975am__doit:
2976	@echo this is the am__doit target
2977.PHONY: am__doit
2978END
2979# If we don't find an include directive, just comment out the code.
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2981$as_echo_n "checking for style of include used by $am_make... " >&6; }
2982am__include="#"
2983am__quote=
2984_am_result=none
2985# First try GNU make style include.
2986echo "include confinc" > confmf
2987# Ignore all kinds of additional output from `make'.
2988case `$am_make -s -f confmf 2> /dev/null` in #(
2989*the\ am__doit\ target*)
2990  am__include=include
2991  am__quote=
2992  _am_result=GNU
2993  ;;
2994esac
2995# Now try BSD make style include.
2996if test "$am__include" = "#"; then
2997   echo '.include "confinc"' > confmf
2998   case `$am_make -s -f confmf 2> /dev/null` in #(
2999   *the\ am__doit\ target*)
3000     am__include=.include
3001     am__quote="\""
3002     _am_result=BSD
3003     ;;
3004   esac
3005fi
3006
3007
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3009$as_echo "$_am_result" >&6; }
3010rm -f confinc confmf
3011
3012# Check whether --enable-dependency-tracking was given.
3013if test "${enable_dependency_tracking+set}" = set; then :
3014  enableval=$enable_dependency_tracking;
3015fi
3016
3017if test "x$enable_dependency_tracking" != xno; then
3018  am_depcomp="$ac_aux_dir/depcomp"
3019  AMDEPBACKSLASH='\'
3020fi
3021 if test "x$enable_dependency_tracking" != xno; then
3022  AMDEP_TRUE=
3023  AMDEP_FALSE='#'
3024else
3025  AMDEP_TRUE='#'
3026  AMDEP_FALSE=
3027fi
3028
3029
3030ac_ext=c
3031ac_cpp='$CPP $CPPFLAGS'
3032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035if test -n "$ac_tool_prefix"; then
3036  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3037set dummy ${ac_tool_prefix}gcc; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if test "${ac_cv_prog_CC+set}" = set; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058  done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066$as_echo "$CC" >&6; }
3067else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073fi
3074if test -z "$ac_cv_prog_CC"; then
3075  ac_ct_CC=$CC
3076  # Extract the first word of "gcc", so it can be a program name with args.
3077set dummy gcc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$ac_ct_CC"; then
3084  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093    ac_cv_prog_ac_ct_CC="gcc"
3094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098  done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104if test -n "$ac_ct_CC"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3106$as_echo "$ac_ct_CC" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112  if test "x$ac_ct_CC" = x; then
3113    CC=""
3114  else
3115    case $cross_compiling:$ac_tool_warned in
3116yes:)
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119ac_tool_warned=yes ;;
3120esac
3121    CC=$ac_ct_CC
3122  fi
3123else
3124  CC="$ac_cv_prog_CC"
3125fi
3126
3127if test -z "$CC"; then
3128          if test -n "$ac_tool_prefix"; then
3129    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3130set dummy ${ac_tool_prefix}cc; ac_word=$2
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
3133if test "${ac_cv_prog_CC+set}" = set; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  if test -n "$CC"; then
3137  ac_cv_prog_CC="$CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142  IFS=$as_save_IFS
3143  test -z "$as_dir" && as_dir=.
3144    for ac_exec_ext in '' $ac_executable_extensions; do
3145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146    ac_cv_prog_CC="${ac_tool_prefix}cc"
3147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148    break 2
3149  fi
3150done
3151  done
3152IFS=$as_save_IFS
3153
3154fi
3155fi
3156CC=$ac_cv_prog_CC
3157if test -n "$CC"; then
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159$as_echo "$CC" >&6; }
3160else
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166  fi
3167fi
3168if test -z "$CC"; then
3169  # Extract the first word of "cc", so it can be a program name with args.
3170set dummy cc; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
3173if test "${ac_cv_prog_CC+set}" = set; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  if test -n "$CC"; then
3177  ac_cv_prog_CC="$CC" # Let the user override the test.
3178else
3179  ac_prog_rejected=no
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183  IFS=$as_save_IFS
3184  test -z "$as_dir" && as_dir=.
3185    for ac_exec_ext in '' $ac_executable_extensions; do
3186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3188       ac_prog_rejected=yes
3189       continue
3190     fi
3191    ac_cv_prog_CC="cc"
3192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193    break 2
3194  fi
3195done
3196  done
3197IFS=$as_save_IFS
3198
3199if test $ac_prog_rejected = yes; then
3200  # We found a bogon in the path, so make sure we never use it.
3201  set dummy $ac_cv_prog_CC
3202  shift
3203  if test $# != 0; then
3204    # We chose a different compiler from the bogus one.
3205    # However, it has the same basename, so the bogon will be chosen
3206    # first if we set CC to just the basename; use the full file name.
3207    shift
3208    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3209  fi
3210fi
3211fi
3212fi
3213CC=$ac_cv_prog_CC
3214if test -n "$CC"; then
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216$as_echo "$CC" >&6; }
3217else
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223fi
3224if test -z "$CC"; then
3225  if test -n "$ac_tool_prefix"; then
3226  for ac_prog in cl.exe
3227  do
3228    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if test "${ac_cv_prog_CC+set}" = set; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$CC"; then
3236  ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265    test -n "$CC" && break
3266  done
3267fi
3268if test -z "$CC"; then
3269  ac_ct_CC=$CC
3270  for ac_prog in cl.exe
3271do
3272  # Extract the first word of "$ac_prog", so it can be a program name with args.
3273set dummy $ac_prog; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$ac_ct_CC"; then
3280  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289    ac_cv_prog_ac_ct_CC="$ac_prog"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300if test -n "$ac_ct_CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302$as_echo "$ac_ct_CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309  test -n "$ac_ct_CC" && break
3310done
3311
3312  if test "x$ac_ct_CC" = x; then
3313    CC=""
3314  else
3315    case $cross_compiling:$ac_tool_warned in
3316yes:)
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319ac_tool_warned=yes ;;
3320esac
3321    CC=$ac_ct_CC
3322  fi
3323fi
3324
3325fi
3326
3327
3328test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330as_fn_error "no acceptable C compiler found in \$PATH
3331See \`config.log' for more details." "$LINENO" 5; }
3332
3333# Provide some information about the compiler.
3334$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3335set X $ac_compile
3336ac_compiler=$2
3337for ac_option in --version -v -V -qversion; do
3338  { { ac_try="$ac_compiler $ac_option >&5"
3339case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3346  ac_status=$?
3347  if test -s conftest.err; then
3348    sed '10a\
3349... rest of stderr output deleted ...
3350         10q' conftest.err >conftest.er1
3351    cat conftest.er1 >&5
3352  fi
3353  rm -f conftest.er1 conftest.err
3354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355  test $ac_status = 0; }
3356done
3357
3358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h.  */
3360
3361int
3362main ()
3363{
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369ac_clean_files_save=$ac_clean_files
3370ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3371# Try to create an executable without -o first, disregard a.out.
3372# It will help us diagnose broken compilers, and finding out an intuition
3373# of exeext.
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3375$as_echo_n "checking whether the C compiler works... " >&6; }
3376ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3377
3378# The possible output files:
3379ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3380
3381ac_rmfiles=
3382for ac_file in $ac_files
3383do
3384  case $ac_file in
3385    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3386    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3387  esac
3388done
3389rm -f $ac_rmfiles
3390
3391if { { ac_try="$ac_link_default"
3392case "(($ac_try" in
3393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394  *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397$as_echo "$ac_try_echo"; } >&5
3398  (eval "$ac_link_default") 2>&5
3399  ac_status=$?
3400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401  test $ac_status = 0; }; then :
3402  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3403# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3404# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3405# so that the user can short-circuit this test for compilers unknown to
3406# Autoconf.
3407for ac_file in $ac_files ''
3408do
3409  test -f "$ac_file" || continue
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3412	;;
3413    [ab].out )
3414	# We found the default executable, but exeext='' is most
3415	# certainly right.
3416	break;;
3417    *.* )
3418	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3419	then :; else
3420	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421	fi
3422	# We set ac_cv_exeext here because the later test for it is not
3423	# safe: cross compilers may not add the suffix if given an `-o'
3424	# argument, so we may need to know it at that point already.
3425	# Even if this section looks crufty: it has the advantage of
3426	# actually working.
3427	break;;
3428    * )
3429	break;;
3430  esac
3431done
3432test "$ac_cv_exeext" = no && ac_cv_exeext=
3433
3434else
3435  ac_file=''
3436fi
3437if test -z "$ac_file"; then :
3438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439$as_echo "no" >&6; }
3440$as_echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445{ as_fn_set_status 77
3446as_fn_error "C compiler cannot create executables
3447See \`config.log' for more details." "$LINENO" 5; }; }
3448else
3449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3450$as_echo "yes" >&6; }
3451fi
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3453$as_echo_n "checking for C compiler default output file name... " >&6; }
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3455$as_echo "$ac_file" >&6; }
3456ac_exeext=$ac_cv_exeext
3457
3458rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3459ac_clean_files=$ac_clean_files_save
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3461$as_echo_n "checking for suffix of executables... " >&6; }
3462if { { ac_try="$ac_link"
3463case "(($ac_try" in
3464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465  *) ac_try_echo=$ac_try;;
3466esac
3467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468$as_echo "$ac_try_echo"; } >&5
3469  (eval "$ac_link") 2>&5
3470  ac_status=$?
3471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472  test $ac_status = 0; }; then :
3473  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3474# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3475# work properly (i.e., refer to `conftest.exe'), while it won't with
3476# `rm'.
3477for ac_file in conftest.exe conftest conftest.*; do
3478  test -f "$ac_file" || continue
3479  case $ac_file in
3480    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482	  break;;
3483    * ) break;;
3484  esac
3485done
3486else
3487  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489as_fn_error "cannot compute suffix of executables: cannot compile and link
3490See \`config.log' for more details." "$LINENO" 5; }
3491fi
3492rm -f conftest conftest$ac_cv_exeext
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3494$as_echo "$ac_cv_exeext" >&6; }
3495
3496rm -f conftest.$ac_ext
3497EXEEXT=$ac_cv_exeext
3498ac_exeext=$EXEEXT
3499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h.  */
3501#include <stdio.h>
3502int
3503main ()
3504{
3505FILE *f = fopen ("conftest.out", "w");
3506 return ferror (f) || fclose (f) != 0;
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512ac_clean_files="$ac_clean_files conftest.out"
3513# Check that the compiler produces executables we can run.  If not, either
3514# the compiler is broken, or we cross compile.
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3516$as_echo_n "checking whether we are cross compiling... " >&6; }
3517if test "$cross_compiling" != yes; then
3518  { { ac_try="$ac_link"
3519case "(($ac_try" in
3520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521  *) ac_try_echo=$ac_try;;
3522esac
3523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524$as_echo "$ac_try_echo"; } >&5
3525  (eval "$ac_link") 2>&5
3526  ac_status=$?
3527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528  test $ac_status = 0; }
3529  if { ac_try='./conftest$ac_cv_exeext'
3530  { { case "(($ac_try" in
3531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532  *) ac_try_echo=$ac_try;;
3533esac
3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535$as_echo "$ac_try_echo"; } >&5
3536  (eval "$ac_try") 2>&5
3537  ac_status=$?
3538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539  test $ac_status = 0; }; }; then
3540    cross_compiling=no
3541  else
3542    if test "$cross_compiling" = maybe; then
3543	cross_compiling=yes
3544    else
3545	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547as_fn_error "cannot run C compiled programs.
3548If you meant to cross compile, use \`--host'.
3549See \`config.log' for more details." "$LINENO" 5; }
3550    fi
3551  fi
3552fi
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3554$as_echo "$cross_compiling" >&6; }
3555
3556rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3557ac_clean_files=$ac_clean_files_save
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3559$as_echo_n "checking for suffix of object files... " >&6; }
3560if test "${ac_cv_objext+set}" = set; then :
3561  $as_echo_n "(cached) " >&6
3562else
3563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565
3566int
3567main ()
3568{
3569
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574rm -f conftest.o conftest.obj
3575if { { ac_try="$ac_compile"
3576case "(($ac_try" in
3577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578  *) ac_try_echo=$ac_try;;
3579esac
3580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581$as_echo "$ac_try_echo"; } >&5
3582  (eval "$ac_compile") 2>&5
3583  ac_status=$?
3584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585  test $ac_status = 0; }; then :
3586  for ac_file in conftest.o conftest.obj conftest.*; do
3587  test -f "$ac_file" || continue;
3588  case $ac_file in
3589    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591       break;;
3592  esac
3593done
3594else
3595  $as_echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3598{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600as_fn_error "cannot compute suffix of object files: cannot compile
3601See \`config.log' for more details." "$LINENO" 5; }
3602fi
3603rm -f conftest.$ac_cv_objext conftest.$ac_ext
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3606$as_echo "$ac_cv_objext" >&6; }
3607OBJEXT=$ac_cv_objext
3608ac_objext=$OBJEXT
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3610$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3611if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3612  $as_echo_n "(cached) " >&6
3613else
3614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h.  */
3616
3617int
3618main ()
3619{
3620#ifndef __GNUC__
3621       choke me
3622#endif
3623
3624  ;
3625  return 0;
3626}
3627_ACEOF
3628if ac_fn_c_try_compile "$LINENO"; then :
3629  ac_compiler_gnu=yes
3630else
3631  ac_compiler_gnu=no
3632fi
3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634ac_cv_c_compiler_gnu=$ac_compiler_gnu
3635
3636fi
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3638$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3639if test $ac_compiler_gnu = yes; then
3640  GCC=yes
3641else
3642  GCC=
3643fi
3644ac_test_CFLAGS=${CFLAGS+set}
3645ac_save_CFLAGS=$CFLAGS
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3647$as_echo_n "checking whether $CC accepts -g... " >&6; }
3648if test "${ac_cv_prog_cc_g+set}" = set; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  ac_save_c_werror_flag=$ac_c_werror_flag
3652   ac_c_werror_flag=yes
3653   ac_cv_prog_cc_g=no
3654   CFLAGS="-g"
3655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657
3658int
3659main ()
3660{
3661
3662  ;
3663  return 0;
3664}
3665_ACEOF
3666if ac_fn_c_try_compile "$LINENO"; then :
3667  ac_cv_prog_cc_g=yes
3668else
3669  CFLAGS=""
3670      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671/* end confdefs.h.  */
3672
3673int
3674main ()
3675{
3676
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681if ac_fn_c_try_compile "$LINENO"; then :
3682
3683else
3684  ac_c_werror_flag=$ac_save_c_werror_flag
3685	 CFLAGS="-g"
3686	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687/* end confdefs.h.  */
3688
3689int
3690main ()
3691{
3692
3693  ;
3694  return 0;
3695}
3696_ACEOF
3697if ac_fn_c_try_compile "$LINENO"; then :
3698  ac_cv_prog_cc_g=yes
3699fi
3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701fi
3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703fi
3704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705   ac_c_werror_flag=$ac_save_c_werror_flag
3706fi
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3708$as_echo "$ac_cv_prog_cc_g" >&6; }
3709if test "$ac_test_CFLAGS" = set; then
3710  CFLAGS=$ac_save_CFLAGS
3711elif test $ac_cv_prog_cc_g = yes; then
3712  if test "$GCC" = yes; then
3713    CFLAGS="-g -O2"
3714  else
3715    CFLAGS="-g"
3716  fi
3717else
3718  if test "$GCC" = yes; then
3719    CFLAGS="-O2"
3720  else
3721    CFLAGS=
3722  fi
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3725$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3726if test "${ac_cv_prog_cc_c89+set}" = set; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  ac_cv_prog_cc_c89=no
3730ac_save_CC=$CC
3731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h.  */
3733#include <stdarg.h>
3734#include <stdio.h>
3735#include <sys/types.h>
3736#include <sys/stat.h>
3737/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3738struct buf { int x; };
3739FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740static char *e (p, i)
3741     char **p;
3742     int i;
3743{
3744  return p[i];
3745}
3746static char *f (char * (*g) (char **, int), char **p, ...)
3747{
3748  char *s;
3749  va_list v;
3750  va_start (v,p);
3751  s = g (p, va_arg (v,int));
3752  va_end (v);
3753  return s;
3754}
3755
3756/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3757   function prototypes and stuff, but not '\xHH' hex character constants.
3758   These don't provoke an error unfortunately, instead are silently treated
3759   as 'x'.  The following induces an error, until -std is added to get
3760   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3761   array size at least.  It's necessary to write '\x00'==0 to get something
3762   that's true only with -std.  */
3763int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764
3765/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3766   inside strings and character constants.  */
3767#define FOO(x) 'x'
3768int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3769
3770int test (int i, double x);
3771struct s1 {int (*f) (int a);};
3772struct s2 {int (*f) (double a);};
3773int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3774int argc;
3775char **argv;
3776int
3777main ()
3778{
3779return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3785	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786do
3787  CC="$ac_save_CC $ac_arg"
3788  if ac_fn_c_try_compile "$LINENO"; then :
3789  ac_cv_prog_cc_c89=$ac_arg
3790fi
3791rm -f core conftest.err conftest.$ac_objext
3792  test "x$ac_cv_prog_cc_c89" != "xno" && break
3793done
3794rm -f conftest.$ac_ext
3795CC=$ac_save_CC
3796
3797fi
3798# AC_CACHE_VAL
3799case "x$ac_cv_prog_cc_c89" in
3800  x)
3801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3802$as_echo "none needed" >&6; } ;;
3803  xno)
3804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3805$as_echo "unsupported" >&6; } ;;
3806  *)
3807    CC="$CC $ac_cv_prog_cc_c89"
3808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3809$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3810esac
3811if test "x$ac_cv_prog_cc_c89" != xno; then :
3812
3813fi
3814
3815ac_ext=c
3816ac_cpp='$CPP $CPPFLAGS'
3817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820
3821depcc="$CC"   am_compiler_list=
3822
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3824$as_echo_n "checking dependency style of $depcc... " >&6; }
3825if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3826  $as_echo_n "(cached) " >&6
3827else
3828  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3829  # We make a subdir and do the tests there.  Otherwise we can end up
3830  # making bogus files that we don't know about and never remove.  For
3831  # instance it was reported that on HP-UX the gcc test will end up
3832  # making a dummy file named `D' -- because `-MD' means `put the output
3833  # in D'.
3834  mkdir conftest.dir
3835  # Copy depcomp to subdir because otherwise we won't find it if we're
3836  # using a relative directory.
3837  cp "$am_depcomp" conftest.dir
3838  cd conftest.dir
3839  # We will build objects and dependencies in a subdirectory because
3840  # it helps to detect inapplicable dependency modes.  For instance
3841  # both Tru64's cc and ICC support -MD to output dependencies as a
3842  # side effect of compilation, but ICC will put the dependencies in
3843  # the current directory while Tru64 will put them in the object
3844  # directory.
3845  mkdir sub
3846
3847  am_cv_CC_dependencies_compiler_type=none
3848  if test "$am_compiler_list" = ""; then
3849     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3850  fi
3851  am__universal=false
3852  case " $depcc " in #(
3853     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3854     esac
3855
3856  for depmode in $am_compiler_list; do
3857    # Setup a source with many dependencies, because some compilers
3858    # like to wrap large dependency lists on column 80 (with \), and
3859    # we should not choose a depcomp mode which is confused by this.
3860    #
3861    # We need to recreate these files for each test, as the compiler may
3862    # overwrite some of them when testing with obscure command lines.
3863    # This happens at least with the AIX C compiler.
3864    : > sub/conftest.c
3865    for i in 1 2 3 4 5 6; do
3866      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3867      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3868      # Solaris 8's {/usr,}/bin/sh.
3869      touch sub/conftst$i.h
3870    done
3871    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3872
3873    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3874    # mode.  It turns out that the SunPro C++ compiler does not properly
3875    # handle `-M -o', and we need to detect this.  Also, some Intel
3876    # versions had trouble with output in subdirs
3877    am__obj=sub/conftest.${OBJEXT-o}
3878    am__minus_obj="-o $am__obj"
3879    case $depmode in
3880    gcc)
3881      # This depmode causes a compiler race in universal mode.
3882      test "$am__universal" = false || continue
3883      ;;
3884    nosideeffect)
3885      # after this tag, mechanisms are not by side-effect, so they'll
3886      # only be used when explicitly requested
3887      if test "x$enable_dependency_tracking" = xyes; then
3888	continue
3889      else
3890	break
3891      fi
3892      ;;
3893    msvisualcpp | msvcmsys)
3894      # This compiler won't grok `-c -o', but also, the minuso test has
3895      # not run yet.  These depmodes are late enough in the game, and
3896      # so weak that their functioning should not be impacted.
3897      am__obj=conftest.${OBJEXT-o}
3898      am__minus_obj=
3899      ;;
3900    none) break ;;
3901    esac
3902    if depmode=$depmode \
3903       source=sub/conftest.c object=$am__obj \
3904       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3905       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3906         >/dev/null 2>conftest.err &&
3907       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3908       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3909       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3910       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3911      # icc doesn't choke on unknown options, it will just issue warnings
3912      # or remarks (even with -Werror).  So we grep stderr for any message
3913      # that says an option was ignored or not supported.
3914      # When given -MP, icc 7.0 and 7.1 complain thusly:
3915      #   icc: Command line warning: ignoring option '-M'; no argument required
3916      # The diagnosis changed in icc 8.0:
3917      #   icc: Command line remark: option '-MP' not supported
3918      if (grep 'ignoring option' conftest.err ||
3919          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3920        am_cv_CC_dependencies_compiler_type=$depmode
3921        break
3922      fi
3923    fi
3924  done
3925
3926  cd ..
3927  rm -rf conftest.dir
3928else
3929  am_cv_CC_dependencies_compiler_type=none
3930fi
3931
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3934$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3935CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3936
3937 if
3938  test "x$enable_dependency_tracking" != xno \
3939  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3940  am__fastdepCC_TRUE=
3941  am__fastdepCC_FALSE='#'
3942else
3943  am__fastdepCC_TRUE='#'
3944  am__fastdepCC_FALSE=
3945fi
3946
3947
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3949$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3950if test "${ac_cv_path_SED+set}" = set; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3954     for ac_i in 1 2 3 4 5 6 7; do
3955       ac_script="$ac_script$as_nl$ac_script"
3956     done
3957     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3958     { ac_script=; unset ac_script;}
3959     if test -z "$SED"; then
3960  ac_path_SED_found=false
3961  # Loop through the user's path and test for each of PROGNAME-LIST
3962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH
3964do
3965  IFS=$as_save_IFS
3966  test -z "$as_dir" && as_dir=.
3967    for ac_prog in sed gsed; do
3968    for ac_exec_ext in '' $ac_executable_extensions; do
3969      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3970      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3971# Check for GNU ac_path_SED and select it if it is found.
3972  # Check for GNU $ac_path_SED
3973case `"$ac_path_SED" --version 2>&1` in
3974*GNU*)
3975  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3976*)
3977  ac_count=0
3978  $as_echo_n 0123456789 >"conftest.in"
3979  while :
3980  do
3981    cat "conftest.in" "conftest.in" >"conftest.tmp"
3982    mv "conftest.tmp" "conftest.in"
3983    cp "conftest.in" "conftest.nl"
3984    $as_echo '' >> "conftest.nl"
3985    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987    as_fn_arith $ac_count + 1 && ac_count=$as_val
3988    if test $ac_count -gt ${ac_path_SED_max-0}; then
3989      # Best one so far, save it but keep looking for a better one
3990      ac_cv_path_SED="$ac_path_SED"
3991      ac_path_SED_max=$ac_count
3992    fi
3993    # 10*(2^10) chars as input seems more than enough
3994    test $ac_count -gt 10 && break
3995  done
3996  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997esac
3998
3999      $ac_path_SED_found && break 3
4000    done
4001  done
4002  done
4003IFS=$as_save_IFS
4004  if test -z "$ac_cv_path_SED"; then
4005    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4006  fi
4007else
4008  ac_cv_path_SED=$SED
4009fi
4010
4011fi
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4013$as_echo "$ac_cv_path_SED" >&6; }
4014 SED="$ac_cv_path_SED"
4015  rm -f conftest.sed
4016
4017test -z "$SED" && SED=sed
4018Xsed="$SED -e 1s/^X//"
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4031$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4032if test "${ac_cv_path_GREP+set}" = set; then :
4033  $as_echo_n "(cached) " >&6
4034else
4035  if test -z "$GREP"; then
4036  ac_path_GREP_found=false
4037  # Loop through the user's path and test for each of PROGNAME-LIST
4038  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4040do
4041  IFS=$as_save_IFS
4042  test -z "$as_dir" && as_dir=.
4043    for ac_prog in grep ggrep; do
4044    for ac_exec_ext in '' $ac_executable_extensions; do
4045      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4046      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4047# Check for GNU ac_path_GREP and select it if it is found.
4048  # Check for GNU $ac_path_GREP
4049case `"$ac_path_GREP" --version 2>&1` in
4050*GNU*)
4051  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4052*)
4053  ac_count=0
4054  $as_echo_n 0123456789 >"conftest.in"
4055  while :
4056  do
4057    cat "conftest.in" "conftest.in" >"conftest.tmp"
4058    mv "conftest.tmp" "conftest.in"
4059    cp "conftest.in" "conftest.nl"
4060    $as_echo 'GREP' >> "conftest.nl"
4061    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4062    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4063    as_fn_arith $ac_count + 1 && ac_count=$as_val
4064    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4065      # Best one so far, save it but keep looking for a better one
4066      ac_cv_path_GREP="$ac_path_GREP"
4067      ac_path_GREP_max=$ac_count
4068    fi
4069    # 10*(2^10) chars as input seems more than enough
4070    test $ac_count -gt 10 && break
4071  done
4072  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4073esac
4074
4075      $ac_path_GREP_found && break 3
4076    done
4077  done
4078  done
4079IFS=$as_save_IFS
4080  if test -z "$ac_cv_path_GREP"; then
4081    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4082  fi
4083else
4084  ac_cv_path_GREP=$GREP
4085fi
4086
4087fi
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4089$as_echo "$ac_cv_path_GREP" >&6; }
4090 GREP="$ac_cv_path_GREP"
4091
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4094$as_echo_n "checking for egrep... " >&6; }
4095if test "${ac_cv_path_EGREP+set}" = set; then :
4096  $as_echo_n "(cached) " >&6
4097else
4098  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4099   then ac_cv_path_EGREP="$GREP -E"
4100   else
4101     if test -z "$EGREP"; then
4102  ac_path_EGREP_found=false
4103  # Loop through the user's path and test for each of PROGNAME-LIST
4104  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106do
4107  IFS=$as_save_IFS
4108  test -z "$as_dir" && as_dir=.
4109    for ac_prog in egrep; do
4110    for ac_exec_ext in '' $ac_executable_extensions; do
4111      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4112      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4113# Check for GNU ac_path_EGREP and select it if it is found.
4114  # Check for GNU $ac_path_EGREP
4115case `"$ac_path_EGREP" --version 2>&1` in
4116*GNU*)
4117  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4118*)
4119  ac_count=0
4120  $as_echo_n 0123456789 >"conftest.in"
4121  while :
4122  do
4123    cat "conftest.in" "conftest.in" >"conftest.tmp"
4124    mv "conftest.tmp" "conftest.in"
4125    cp "conftest.in" "conftest.nl"
4126    $as_echo 'EGREP' >> "conftest.nl"
4127    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129    as_fn_arith $ac_count + 1 && ac_count=$as_val
4130    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4131      # Best one so far, save it but keep looking for a better one
4132      ac_cv_path_EGREP="$ac_path_EGREP"
4133      ac_path_EGREP_max=$ac_count
4134    fi
4135    # 10*(2^10) chars as input seems more than enough
4136    test $ac_count -gt 10 && break
4137  done
4138  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139esac
4140
4141      $ac_path_EGREP_found && break 3
4142    done
4143  done
4144  done
4145IFS=$as_save_IFS
4146  if test -z "$ac_cv_path_EGREP"; then
4147    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148  fi
4149else
4150  ac_cv_path_EGREP=$EGREP
4151fi
4152
4153   fi
4154fi
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4156$as_echo "$ac_cv_path_EGREP" >&6; }
4157 EGREP="$ac_cv_path_EGREP"
4158
4159
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4161$as_echo_n "checking for fgrep... " >&6; }
4162if test "${ac_cv_path_FGREP+set}" = set; then :
4163  $as_echo_n "(cached) " >&6
4164else
4165  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4166   then ac_cv_path_FGREP="$GREP -F"
4167   else
4168     if test -z "$FGREP"; then
4169  ac_path_FGREP_found=false
4170  # Loop through the user's path and test for each of PROGNAME-LIST
4171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4173do
4174  IFS=$as_save_IFS
4175  test -z "$as_dir" && as_dir=.
4176    for ac_prog in fgrep; do
4177    for ac_exec_ext in '' $ac_executable_extensions; do
4178      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4179      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4180# Check for GNU ac_path_FGREP and select it if it is found.
4181  # Check for GNU $ac_path_FGREP
4182case `"$ac_path_FGREP" --version 2>&1` in
4183*GNU*)
4184  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4185*)
4186  ac_count=0
4187  $as_echo_n 0123456789 >"conftest.in"
4188  while :
4189  do
4190    cat "conftest.in" "conftest.in" >"conftest.tmp"
4191    mv "conftest.tmp" "conftest.in"
4192    cp "conftest.in" "conftest.nl"
4193    $as_echo 'FGREP' >> "conftest.nl"
4194    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4195    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4196    as_fn_arith $ac_count + 1 && ac_count=$as_val
4197    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4198      # Best one so far, save it but keep looking for a better one
4199      ac_cv_path_FGREP="$ac_path_FGREP"
4200      ac_path_FGREP_max=$ac_count
4201    fi
4202    # 10*(2^10) chars as input seems more than enough
4203    test $ac_count -gt 10 && break
4204  done
4205  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4206esac
4207
4208      $ac_path_FGREP_found && break 3
4209    done
4210  done
4211  done
4212IFS=$as_save_IFS
4213  if test -z "$ac_cv_path_FGREP"; then
4214    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4215  fi
4216else
4217  ac_cv_path_FGREP=$FGREP
4218fi
4219
4220   fi
4221fi
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4223$as_echo "$ac_cv_path_FGREP" >&6; }
4224 FGREP="$ac_cv_path_FGREP"
4225
4226
4227test -z "$GREP" && GREP=grep
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247# Check whether --with-gnu-ld was given.
4248if test "${with_gnu_ld+set}" = set; then :
4249  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4250else
4251  with_gnu_ld=no
4252fi
4253
4254ac_prog=ld
4255if test "$GCC" = yes; then
4256  # Check if gcc -print-prog-name=ld gives a path.
4257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4258$as_echo_n "checking for ld used by $CC... " >&6; }
4259  case $host in
4260  *-*-mingw*)
4261    # gcc leaves a trailing carriage return which upsets mingw
4262    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4263  *)
4264    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4265  esac
4266  case $ac_prog in
4267    # Accept absolute paths.
4268    [\\/]* | ?:[\\/]*)
4269      re_direlt='/[^/][^/]*/\.\./'
4270      # Canonicalize the pathname of ld
4271      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4272      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4273	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4274      done
4275      test -z "$LD" && LD="$ac_prog"
4276      ;;
4277  "")
4278    # If it fails, then pretend we aren't using GCC.
4279    ac_prog=ld
4280    ;;
4281  *)
4282    # If it is relative, then search for the first ld in PATH.
4283    with_gnu_ld=unknown
4284    ;;
4285  esac
4286elif test "$with_gnu_ld" = yes; then
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4288$as_echo_n "checking for GNU ld... " >&6; }
4289else
4290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4291$as_echo_n "checking for non-GNU ld... " >&6; }
4292fi
4293if test "${lt_cv_path_LD+set}" = set; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  if test -z "$LD"; then
4297  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4298  for ac_dir in $PATH; do
4299    IFS="$lt_save_ifs"
4300    test -z "$ac_dir" && ac_dir=.
4301    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4302      lt_cv_path_LD="$ac_dir/$ac_prog"
4303      # Check to see if the program is GNU ld.  I'd rather use --version,
4304      # but apparently some variants of GNU ld only accept -v.
4305      # Break only if it was the GNU/non-GNU ld that we prefer.
4306      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4307      *GNU* | *'with BFD'*)
4308	test "$with_gnu_ld" != no && break
4309	;;
4310      *)
4311	test "$with_gnu_ld" != yes && break
4312	;;
4313      esac
4314    fi
4315  done
4316  IFS="$lt_save_ifs"
4317else
4318  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4319fi
4320fi
4321
4322LD="$lt_cv_path_LD"
4323if test -n "$LD"; then
4324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4325$as_echo "$LD" >&6; }
4326else
4327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328$as_echo "no" >&6; }
4329fi
4330test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4332$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4333if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4334  $as_echo_n "(cached) " >&6
4335else
4336  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4337case `$LD -v 2>&1 </dev/null` in
4338*GNU* | *'with BFD'*)
4339  lt_cv_prog_gnu_ld=yes
4340  ;;
4341*)
4342  lt_cv_prog_gnu_ld=no
4343  ;;
4344esac
4345fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4347$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4348with_gnu_ld=$lt_cv_prog_gnu_ld
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4359$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4360if test "${lt_cv_path_NM+set}" = set; then :
4361  $as_echo_n "(cached) " >&6
4362else
4363  if test -n "$NM"; then
4364  # Let the user override the test.
4365  lt_cv_path_NM="$NM"
4366else
4367  lt_nm_to_check="${ac_tool_prefix}nm"
4368  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4369    lt_nm_to_check="$lt_nm_to_check nm"
4370  fi
4371  for lt_tmp_nm in $lt_nm_to_check; do
4372    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4373    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4374      IFS="$lt_save_ifs"
4375      test -z "$ac_dir" && ac_dir=.
4376      tmp_nm="$ac_dir/$lt_tmp_nm"
4377      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4378	# Check to see if the nm accepts a BSD-compat flag.
4379	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4380	#   nm: unknown option "B" ignored
4381	# Tru64's nm complains that /dev/null is an invalid object file
4382	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4383	*/dev/null* | *'Invalid file or object type'*)
4384	  lt_cv_path_NM="$tmp_nm -B"
4385	  break
4386	  ;;
4387	*)
4388	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4389	  */dev/null*)
4390	    lt_cv_path_NM="$tmp_nm -p"
4391	    break
4392	    ;;
4393	  *)
4394	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4395	    continue # so that we can try to find one that supports BSD flags
4396	    ;;
4397	  esac
4398	  ;;
4399	esac
4400      fi
4401    done
4402    IFS="$lt_save_ifs"
4403  done
4404  : ${lt_cv_path_NM=no}
4405fi
4406fi
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4408$as_echo "$lt_cv_path_NM" >&6; }
4409if test "$lt_cv_path_NM" != "no"; then
4410  NM="$lt_cv_path_NM"
4411else
4412  # Didn't find any BSD compatible name lister, look for dumpbin.
4413  if test -n "$ac_tool_prefix"; then
4414  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4415  do
4416    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419$as_echo_n "checking for $ac_word... " >&6; }
4420if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4421  $as_echo_n "(cached) " >&6
4422else
4423  if test -n "$DUMPBIN"; then
4424  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429  IFS=$as_save_IFS
4430  test -z "$as_dir" && as_dir=.
4431    for ac_exec_ext in '' $ac_executable_extensions; do
4432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435    break 2
4436  fi
4437done
4438  done
4439IFS=$as_save_IFS
4440
4441fi
4442fi
4443DUMPBIN=$ac_cv_prog_DUMPBIN
4444if test -n "$DUMPBIN"; then
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4446$as_echo "$DUMPBIN" >&6; }
4447else
4448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449$as_echo "no" >&6; }
4450fi
4451
4452
4453    test -n "$DUMPBIN" && break
4454  done
4455fi
4456if test -z "$DUMPBIN"; then
4457  ac_ct_DUMPBIN=$DUMPBIN
4458  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4459do
4460  # Extract the first word of "$ac_prog", so it can be a program name with args.
4461set dummy $ac_prog; ac_word=$2
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463$as_echo_n "checking for $ac_word... " >&6; }
4464if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  if test -n "$ac_ct_DUMPBIN"; then
4468  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4469else
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473  IFS=$as_save_IFS
4474  test -z "$as_dir" && as_dir=.
4475    for ac_exec_ext in '' $ac_executable_extensions; do
4476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479    break 2
4480  fi
4481done
4482  done
4483IFS=$as_save_IFS
4484
4485fi
4486fi
4487ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4488if test -n "$ac_ct_DUMPBIN"; then
4489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4490$as_echo "$ac_ct_DUMPBIN" >&6; }
4491else
4492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493$as_echo "no" >&6; }
4494fi
4495
4496
4497  test -n "$ac_ct_DUMPBIN" && break
4498done
4499
4500  if test "x$ac_ct_DUMPBIN" = x; then
4501    DUMPBIN=":"
4502  else
4503    case $cross_compiling:$ac_tool_warned in
4504yes:)
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507ac_tool_warned=yes ;;
4508esac
4509    DUMPBIN=$ac_ct_DUMPBIN
4510  fi
4511fi
4512
4513
4514  if test "$DUMPBIN" != ":"; then
4515    NM="$DUMPBIN"
4516  fi
4517fi
4518test -z "$NM" && NM=nm
4519
4520
4521
4522
4523
4524
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4526$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4527if test "${lt_cv_nm_interface+set}" = set; then :
4528  $as_echo_n "(cached) " >&6
4529else
4530  lt_cv_nm_interface="BSD nm"
4531  echo "int some_variable = 0;" > conftest.$ac_ext
4532  (eval echo "\"\$as_me:4532: $ac_compile\"" >&5)
4533  (eval "$ac_compile" 2>conftest.err)
4534  cat conftest.err >&5
4535  (eval echo "\"\$as_me:4535: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4536  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4537  cat conftest.err >&5
4538  (eval echo "\"\$as_me:4538: output\"" >&5)
4539  cat conftest.out >&5
4540  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4541    lt_cv_nm_interface="MS dumpbin"
4542  fi
4543  rm -f conftest*
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4546$as_echo "$lt_cv_nm_interface" >&6; }
4547
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4549$as_echo_n "checking whether ln -s works... " >&6; }
4550LN_S=$as_ln_s
4551if test "$LN_S" = "ln -s"; then
4552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553$as_echo "yes" >&6; }
4554else
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4556$as_echo "no, using $LN_S" >&6; }
4557fi
4558
4559# find the maximum length of command line arguments
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4561$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4562if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4563  $as_echo_n "(cached) " >&6
4564else
4565    i=0
4566  teststring="ABCD"
4567
4568  case $build_os in
4569  msdosdjgpp*)
4570    # On DJGPP, this test can blow up pretty badly due to problems in libc
4571    # (any single argument exceeding 2000 bytes causes a buffer overrun
4572    # during glob expansion).  Even if it were fixed, the result of this
4573    # check would be larger than it should be.
4574    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4575    ;;
4576
4577  gnu*)
4578    # Under GNU Hurd, this test is not required because there is
4579    # no limit to the length of command line arguments.
4580    # Libtool will interpret -1 as no limit whatsoever
4581    lt_cv_sys_max_cmd_len=-1;
4582    ;;
4583
4584  cygwin* | mingw* | cegcc*)
4585    # On Win9x/ME, this test blows up -- it succeeds, but takes
4586    # about 5 minutes as the teststring grows exponentially.
4587    # Worse, since 9x/ME are not pre-emptively multitasking,
4588    # you end up with a "frozen" computer, even though with patience
4589    # the test eventually succeeds (with a max line length of 256k).
4590    # Instead, let's just punt: use the minimum linelength reported by
4591    # all of the supported platforms: 8192 (on NT/2K/XP).
4592    lt_cv_sys_max_cmd_len=8192;
4593    ;;
4594
4595  amigaos*)
4596    # On AmigaOS with pdksh, this test takes hours, literally.
4597    # So we just punt and use a minimum line length of 8192.
4598    lt_cv_sys_max_cmd_len=8192;
4599    ;;
4600
4601  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4602    # This has been around since 386BSD, at least.  Likely further.
4603    if test -x /sbin/sysctl; then
4604      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4605    elif test -x /usr/sbin/sysctl; then
4606      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4607    else
4608      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4609    fi
4610    # And add a safety zone
4611    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4612    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4613    ;;
4614
4615  interix*)
4616    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4617    lt_cv_sys_max_cmd_len=196608
4618    ;;
4619
4620  osf*)
4621    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4622    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4623    # nice to cause kernel panics so lets avoid the loop below.
4624    # First set a reasonable default.
4625    lt_cv_sys_max_cmd_len=16384
4626    #
4627    if test -x /sbin/sysconfig; then
4628      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4629        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4630      esac
4631    fi
4632    ;;
4633  sco3.2v5*)
4634    lt_cv_sys_max_cmd_len=102400
4635    ;;
4636  sysv5* | sco5v6* | sysv4.2uw2*)
4637    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4638    if test -n "$kargmax"; then
4639      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4640    else
4641      lt_cv_sys_max_cmd_len=32768
4642    fi
4643    ;;
4644  *)
4645    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4646    if test -n "$lt_cv_sys_max_cmd_len"; then
4647      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4648      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4649    else
4650      # Make teststring a little bigger before we do anything with it.
4651      # a 1K string should be a reasonable start.
4652      for i in 1 2 3 4 5 6 7 8 ; do
4653        teststring=$teststring$teststring
4654      done
4655      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4656      # If test is not a shell built-in, we'll probably end up computing a
4657      # maximum length that is only half of the actual maximum length, but
4658      # we can't tell.
4659      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4660	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4661	      test $i != 17 # 1/2 MB should be enough
4662      do
4663        i=`expr $i + 1`
4664        teststring=$teststring$teststring
4665      done
4666      # Only check the string length outside the loop.
4667      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4668      teststring=
4669      # Add a significant safety factor because C++ compilers can tack on
4670      # massive amounts of additional arguments before passing them to the
4671      # linker.  It appears as though 1/2 is a usable value.
4672      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4673    fi
4674    ;;
4675  esac
4676
4677fi
4678
4679if test -n $lt_cv_sys_max_cmd_len ; then
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4681$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4682else
4683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4684$as_echo "none" >&6; }
4685fi
4686max_cmd_len=$lt_cv_sys_max_cmd_len
4687
4688
4689
4690
4691
4692
4693: ${CP="cp -f"}
4694: ${MV="mv -f"}
4695: ${RM="rm -f"}
4696
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4698$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4699# Try some XSI features
4700xsi_shell=no
4701( _lt_dummy="a/b/c"
4702  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4703      = c,a/b,, \
4704    && eval 'test $(( 1 + 1 )) -eq 2 \
4705    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4706  && xsi_shell=yes
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4708$as_echo "$xsi_shell" >&6; }
4709
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4712$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4713lt_shell_append=no
4714( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4715    >/dev/null 2>&1 \
4716  && lt_shell_append=yes
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4718$as_echo "$lt_shell_append" >&6; }
4719
4720
4721if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4722  lt_unset=unset
4723else
4724  lt_unset=false
4725fi
4726
4727
4728
4729
4730
4731# test EBCDIC or ASCII
4732case `echo X|tr X '\101'` in
4733 A) # ASCII based system
4734    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4735  lt_SP2NL='tr \040 \012'
4736  lt_NL2SP='tr \015\012 \040\040'
4737  ;;
4738 *) # EBCDIC based system
4739  lt_SP2NL='tr \100 \n'
4740  lt_NL2SP='tr \r\n \100\100'
4741  ;;
4742esac
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4753$as_echo_n "checking for $LD option to reload object files... " >&6; }
4754if test "${lt_cv_ld_reload_flag+set}" = set; then :
4755  $as_echo_n "(cached) " >&6
4756else
4757  lt_cv_ld_reload_flag='-r'
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4760$as_echo "$lt_cv_ld_reload_flag" >&6; }
4761reload_flag=$lt_cv_ld_reload_flag
4762case $reload_flag in
4763"" | " "*) ;;
4764*) reload_flag=" $reload_flag" ;;
4765esac
4766reload_cmds='$LD$reload_flag -o $output$reload_objs'
4767case $host_os in
4768  darwin*)
4769    if test "$GCC" = yes; then
4770      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4771    else
4772      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4773    fi
4774    ;;
4775esac
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785if test -n "$ac_tool_prefix"; then
4786  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4787set dummy ${ac_tool_prefix}objdump; ac_word=$2
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789$as_echo_n "checking for $ac_word... " >&6; }
4790if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4791  $as_echo_n "(cached) " >&6
4792else
4793  if test -n "$OBJDUMP"; then
4794  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4795else
4796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799  IFS=$as_save_IFS
4800  test -z "$as_dir" && as_dir=.
4801    for ac_exec_ext in '' $ac_executable_extensions; do
4802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805    break 2
4806  fi
4807done
4808  done
4809IFS=$as_save_IFS
4810
4811fi
4812fi
4813OBJDUMP=$ac_cv_prog_OBJDUMP
4814if test -n "$OBJDUMP"; then
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4816$as_echo "$OBJDUMP" >&6; }
4817else
4818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819$as_echo "no" >&6; }
4820fi
4821
4822
4823fi
4824if test -z "$ac_cv_prog_OBJDUMP"; then
4825  ac_ct_OBJDUMP=$OBJDUMP
4826  # Extract the first word of "objdump", so it can be a program name with args.
4827set dummy objdump; ac_word=$2
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829$as_echo_n "checking for $ac_word... " >&6; }
4830if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  if test -n "$ac_ct_OBJDUMP"; then
4834  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4835else
4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839  IFS=$as_save_IFS
4840  test -z "$as_dir" && as_dir=.
4841    for ac_exec_ext in '' $ac_executable_extensions; do
4842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845    break 2
4846  fi
4847done
4848  done
4849IFS=$as_save_IFS
4850
4851fi
4852fi
4853ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4854if test -n "$ac_ct_OBJDUMP"; then
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4856$as_echo "$ac_ct_OBJDUMP" >&6; }
4857else
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859$as_echo "no" >&6; }
4860fi
4861
4862  if test "x$ac_ct_OBJDUMP" = x; then
4863    OBJDUMP="false"
4864  else
4865    case $cross_compiling:$ac_tool_warned in
4866yes:)
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4869ac_tool_warned=yes ;;
4870esac
4871    OBJDUMP=$ac_ct_OBJDUMP
4872  fi
4873else
4874  OBJDUMP="$ac_cv_prog_OBJDUMP"
4875fi
4876
4877test -z "$OBJDUMP" && OBJDUMP=objdump
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4888$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4889if test "${lt_cv_deplibs_check_method+set}" = set; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  lt_cv_file_magic_cmd='$MAGIC_CMD'
4893lt_cv_file_magic_test_file=
4894lt_cv_deplibs_check_method='unknown'
4895# Need to set the preceding variable on all platforms that support
4896# interlibrary dependencies.
4897# 'none' -- dependencies not supported.
4898# `unknown' -- same as none, but documents that we really don't know.
4899# 'pass_all' -- all dependencies passed with no checks.
4900# 'test_compile' -- check by making test program.
4901# 'file_magic [[regex]]' -- check by looking for files in library path
4902# which responds to the $file_magic_cmd with a given extended regex.
4903# If you have `file' or equivalent on your system and you're not sure
4904# whether `pass_all' will *always* work, you probably want this one.
4905
4906case $host_os in
4907aix[4-9]*)
4908  lt_cv_deplibs_check_method=pass_all
4909  ;;
4910
4911beos*)
4912  lt_cv_deplibs_check_method=pass_all
4913  ;;
4914
4915bsdi[45]*)
4916  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4917  lt_cv_file_magic_cmd='/usr/bin/file -L'
4918  lt_cv_file_magic_test_file=/shlib/libc.so
4919  ;;
4920
4921cygwin*)
4922  # func_win32_libid is a shell function defined in ltmain.sh
4923  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4924  lt_cv_file_magic_cmd='func_win32_libid'
4925  ;;
4926
4927mingw* | pw32*)
4928  # Base MSYS/MinGW do not provide the 'file' command needed by
4929  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4930  # unless we find 'file', for example because we are cross-compiling.
4931  if ( file / ) >/dev/null 2>&1; then
4932    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4933    lt_cv_file_magic_cmd='func_win32_libid'
4934  else
4935    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4936    lt_cv_file_magic_cmd='$OBJDUMP -f'
4937  fi
4938  ;;
4939
4940cegcc)
4941  # use the weaker test based on 'objdump'. See mingw*.
4942  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4943  lt_cv_file_magic_cmd='$OBJDUMP -f'
4944  ;;
4945
4946darwin* | rhapsody*)
4947  lt_cv_deplibs_check_method=pass_all
4948  ;;
4949
4950freebsd* | dragonfly*)
4951  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4952    case $host_cpu in
4953    i*86 )
4954      # Not sure whether the presence of OpenBSD here was a mistake.
4955      # Let's accept both of them until this is cleared up.
4956      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4957      lt_cv_file_magic_cmd=/usr/bin/file
4958      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4959      ;;
4960    esac
4961  else
4962    lt_cv_deplibs_check_method=pass_all
4963  fi
4964  ;;
4965
4966gnu*)
4967  lt_cv_deplibs_check_method=pass_all
4968  ;;
4969
4970hpux10.20* | hpux11*)
4971  lt_cv_file_magic_cmd=/usr/bin/file
4972  case $host_cpu in
4973  ia64*)
4974    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4975    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4976    ;;
4977  hppa*64*)
4978    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4979    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4980    ;;
4981  *)
4982    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4983    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4984    ;;
4985  esac
4986  ;;
4987
4988interix[3-9]*)
4989  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4990  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4991  ;;
4992
4993irix5* | irix6* | nonstopux*)
4994  case $LD in
4995  *-32|*"-32 ") libmagic=32-bit;;
4996  *-n32|*"-n32 ") libmagic=N32;;
4997  *-64|*"-64 ") libmagic=64-bit;;
4998  *) libmagic=never-match;;
4999  esac
5000  lt_cv_deplibs_check_method=pass_all
5001  ;;
5002
5003# This must be Linux ELF.
5004linux* | k*bsd*-gnu)
5005  lt_cv_deplibs_check_method=pass_all
5006  ;;
5007
5008netbsd*)
5009  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5010    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5011  else
5012    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5013  fi
5014  ;;
5015
5016newos6*)
5017  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5018  lt_cv_file_magic_cmd=/usr/bin/file
5019  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5020  ;;
5021
5022*nto* | *qnx*)
5023  lt_cv_deplibs_check_method=pass_all
5024  ;;
5025
5026openbsd*)
5027  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5028    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5029  else
5030    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5031  fi
5032  ;;
5033
5034osf3* | osf4* | osf5*)
5035  lt_cv_deplibs_check_method=pass_all
5036  ;;
5037
5038rdos*)
5039  lt_cv_deplibs_check_method=pass_all
5040  ;;
5041
5042solaris*)
5043  lt_cv_deplibs_check_method=pass_all
5044  ;;
5045
5046sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5047  lt_cv_deplibs_check_method=pass_all
5048  ;;
5049
5050sysv4 | sysv4.3*)
5051  case $host_vendor in
5052  motorola)
5053    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]'
5054    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5055    ;;
5056  ncr)
5057    lt_cv_deplibs_check_method=pass_all
5058    ;;
5059  sequent)
5060    lt_cv_file_magic_cmd='/bin/file'
5061    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5062    ;;
5063  sni)
5064    lt_cv_file_magic_cmd='/bin/file'
5065    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5066    lt_cv_file_magic_test_file=/lib/libc.so
5067    ;;
5068  siemens)
5069    lt_cv_deplibs_check_method=pass_all
5070    ;;
5071  pc)
5072    lt_cv_deplibs_check_method=pass_all
5073    ;;
5074  esac
5075  ;;
5076
5077tpf*)
5078  lt_cv_deplibs_check_method=pass_all
5079  ;;
5080esac
5081
5082fi
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5084$as_echo "$lt_cv_deplibs_check_method" >&6; }
5085file_magic_cmd=$lt_cv_file_magic_cmd
5086deplibs_check_method=$lt_cv_deplibs_check_method
5087test -z "$deplibs_check_method" && deplibs_check_method=unknown
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100if test -n "$ac_tool_prefix"; then
5101  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5102set dummy ${ac_tool_prefix}ar; ac_word=$2
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104$as_echo_n "checking for $ac_word... " >&6; }
5105if test "${ac_cv_prog_AR+set}" = set; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  if test -n "$AR"; then
5109  ac_cv_prog_AR="$AR" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114  IFS=$as_save_IFS
5115  test -z "$as_dir" && as_dir=.
5116    for ac_exec_ext in '' $ac_executable_extensions; do
5117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118    ac_cv_prog_AR="${ac_tool_prefix}ar"
5119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120    break 2
5121  fi
5122done
5123  done
5124IFS=$as_save_IFS
5125
5126fi
5127fi
5128AR=$ac_cv_prog_AR
5129if test -n "$AR"; then
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5131$as_echo "$AR" >&6; }
5132else
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
5135fi
5136
5137
5138fi
5139if test -z "$ac_cv_prog_AR"; then
5140  ac_ct_AR=$AR
5141  # Extract the first word of "ar", so it can be a program name with args.
5142set dummy ar; ac_word=$2
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144$as_echo_n "checking for $ac_word... " >&6; }
5145if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5146  $as_echo_n "(cached) " >&6
5147else
5148  if test -n "$ac_ct_AR"; then
5149  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5150else
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154  IFS=$as_save_IFS
5155  test -z "$as_dir" && as_dir=.
5156    for ac_exec_ext in '' $ac_executable_extensions; do
5157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158    ac_cv_prog_ac_ct_AR="ar"
5159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160    break 2
5161  fi
5162done
5163  done
5164IFS=$as_save_IFS
5165
5166fi
5167fi
5168ac_ct_AR=$ac_cv_prog_ac_ct_AR
5169if test -n "$ac_ct_AR"; then
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5171$as_echo "$ac_ct_AR" >&6; }
5172else
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
5175fi
5176
5177  if test "x$ac_ct_AR" = x; then
5178    AR="false"
5179  else
5180    case $cross_compiling:$ac_tool_warned in
5181yes:)
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184ac_tool_warned=yes ;;
5185esac
5186    AR=$ac_ct_AR
5187  fi
5188else
5189  AR="$ac_cv_prog_AR"
5190fi
5191
5192test -z "$AR" && AR=ar
5193test -z "$AR_FLAGS" && AR_FLAGS=cru
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205if test -n "$ac_tool_prefix"; then
5206  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5207set dummy ${ac_tool_prefix}strip; ac_word=$2
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209$as_echo_n "checking for $ac_word... " >&6; }
5210if test "${ac_cv_prog_STRIP+set}" = set; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213  if test -n "$STRIP"; then
5214  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5215else
5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219  IFS=$as_save_IFS
5220  test -z "$as_dir" && as_dir=.
5221    for ac_exec_ext in '' $ac_executable_extensions; do
5222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225    break 2
5226  fi
5227done
5228  done
5229IFS=$as_save_IFS
5230
5231fi
5232fi
5233STRIP=$ac_cv_prog_STRIP
5234if test -n "$STRIP"; then
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5236$as_echo "$STRIP" >&6; }
5237else
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239$as_echo "no" >&6; }
5240fi
5241
5242
5243fi
5244if test -z "$ac_cv_prog_STRIP"; then
5245  ac_ct_STRIP=$STRIP
5246  # Extract the first word of "strip", so it can be a program name with args.
5247set dummy strip; ac_word=$2
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253  if test -n "$ac_ct_STRIP"; then
5254  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259  IFS=$as_save_IFS
5260  test -z "$as_dir" && as_dir=.
5261    for ac_exec_ext in '' $ac_executable_extensions; do
5262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263    ac_cv_prog_ac_ct_STRIP="strip"
5264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265    break 2
5266  fi
5267done
5268  done
5269IFS=$as_save_IFS
5270
5271fi
5272fi
5273ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5274if test -n "$ac_ct_STRIP"; then
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5276$as_echo "$ac_ct_STRIP" >&6; }
5277else
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279$as_echo "no" >&6; }
5280fi
5281
5282  if test "x$ac_ct_STRIP" = x; then
5283    STRIP=":"
5284  else
5285    case $cross_compiling:$ac_tool_warned in
5286yes:)
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289ac_tool_warned=yes ;;
5290esac
5291    STRIP=$ac_ct_STRIP
5292  fi
5293else
5294  STRIP="$ac_cv_prog_STRIP"
5295fi
5296
5297test -z "$STRIP" && STRIP=:
5298
5299
5300
5301
5302
5303
5304if test -n "$ac_tool_prefix"; then
5305  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5306set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308$as_echo_n "checking for $ac_word... " >&6; }
5309if test "${ac_cv_prog_RANLIB+set}" = set; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  if test -n "$RANLIB"; then
5313  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5314else
5315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318  IFS=$as_save_IFS
5319  test -z "$as_dir" && as_dir=.
5320    for ac_exec_ext in '' $ac_executable_extensions; do
5321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324    break 2
5325  fi
5326done
5327  done
5328IFS=$as_save_IFS
5329
5330fi
5331fi
5332RANLIB=$ac_cv_prog_RANLIB
5333if test -n "$RANLIB"; then
5334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5335$as_echo "$RANLIB" >&6; }
5336else
5337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338$as_echo "no" >&6; }
5339fi
5340
5341
5342fi
5343if test -z "$ac_cv_prog_RANLIB"; then
5344  ac_ct_RANLIB=$RANLIB
5345  # Extract the first word of "ranlib", so it can be a program name with args.
5346set dummy ranlib; ac_word=$2
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348$as_echo_n "checking for $ac_word... " >&6; }
5349if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5350  $as_echo_n "(cached) " >&6
5351else
5352  if test -n "$ac_ct_RANLIB"; then
5353  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5354else
5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358  IFS=$as_save_IFS
5359  test -z "$as_dir" && as_dir=.
5360    for ac_exec_ext in '' $ac_executable_extensions; do
5361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362    ac_cv_prog_ac_ct_RANLIB="ranlib"
5363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364    break 2
5365  fi
5366done
5367  done
5368IFS=$as_save_IFS
5369
5370fi
5371fi
5372ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5373if test -n "$ac_ct_RANLIB"; then
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5375$as_echo "$ac_ct_RANLIB" >&6; }
5376else
5377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378$as_echo "no" >&6; }
5379fi
5380
5381  if test "x$ac_ct_RANLIB" = x; then
5382    RANLIB=":"
5383  else
5384    case $cross_compiling:$ac_tool_warned in
5385yes:)
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5388ac_tool_warned=yes ;;
5389esac
5390    RANLIB=$ac_ct_RANLIB
5391  fi
5392else
5393  RANLIB="$ac_cv_prog_RANLIB"
5394fi
5395
5396test -z "$RANLIB" && RANLIB=:
5397
5398
5399
5400
5401
5402
5403# Determine commands to create old-style static archives.
5404old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5405old_postinstall_cmds='chmod 644 $oldlib'
5406old_postuninstall_cmds=
5407
5408if test -n "$RANLIB"; then
5409  case $host_os in
5410  openbsd*)
5411    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5412    ;;
5413  *)
5414    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5415    ;;
5416  esac
5417  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5418fi
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# If no C compiler was specified, use CC.
5454LTCC=${LTCC-"$CC"}
5455
5456# If no C compiler flags were specified, use CFLAGS.
5457LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5458
5459# Allow CC to be a program name with arguments.
5460compiler=$CC
5461
5462
5463# Check for command to grab the raw symbol name followed by C symbol from nm.
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5465$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5466if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469
5470# These are sane defaults that work on at least a few old systems.
5471# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5472
5473# Character class describing NM global symbol codes.
5474symcode='[BCDEGRST]'
5475
5476# Regexp to match symbols that can be accessed directly from C.
5477sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5478
5479# Define system-specific variables.
5480case $host_os in
5481aix*)
5482  symcode='[BCDT]'
5483  ;;
5484cygwin* | mingw* | pw32* | cegcc*)
5485  symcode='[ABCDGISTW]'
5486  ;;
5487hpux*)
5488  if test "$host_cpu" = ia64; then
5489    symcode='[ABCDEGRST]'
5490  fi
5491  ;;
5492irix* | nonstopux*)
5493  symcode='[BCDEGRST]'
5494  ;;
5495osf*)
5496  symcode='[BCDEGQRST]'
5497  ;;
5498solaris*)
5499  symcode='[BDRT]'
5500  ;;
5501sco3.2v5*)
5502  symcode='[DT]'
5503  ;;
5504sysv4.2uw2*)
5505  symcode='[DT]'
5506  ;;
5507sysv5* | sco5v6* | unixware* | OpenUNIX*)
5508  symcode='[ABDT]'
5509  ;;
5510sysv4)
5511  symcode='[DFNSTU]'
5512  ;;
5513esac
5514
5515# If we're using GNU nm, then use its standard symbol codes.
5516case `$NM -V 2>&1` in
5517*GNU* | *'with BFD'*)
5518  symcode='[ABCDGIRSTW]' ;;
5519esac
5520
5521# Transform an extracted symbol line into a proper C declaration.
5522# Some systems (esp. on ia64) link data and code symbols differently,
5523# so use this general approach.
5524lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5525
5526# Transform an extracted symbol line into symbol name and symbol address
5527lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5528lt_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'"
5529
5530# Handle CRLF in mingw tool chain
5531opt_cr=
5532case $build_os in
5533mingw*)
5534  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5535  ;;
5536esac
5537
5538# Try without a prefix underscore, then with it.
5539for ac_symprfx in "" "_"; do
5540
5541  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5542  symxfrm="\\1 $ac_symprfx\\2 \\2"
5543
5544  # Write the raw and C identifiers.
5545  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5546    # Fake it for dumpbin and say T for any non-static function
5547    # and D for any global variable.
5548    # Also find C++ and __fastcall symbols from MSVC++,
5549    # which start with @ or ?.
5550    lt_cv_sys_global_symbol_pipe="$AWK '"\
5551"     {last_section=section; section=\$ 3};"\
5552"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5553"     \$ 0!~/External *\|/{next};"\
5554"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5555"     {if(hide[section]) next};"\
5556"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5557"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5558"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5559"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5560"     ' prfx=^$ac_symprfx"
5561  else
5562    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5563  fi
5564
5565  # Check to see that the pipe works correctly.
5566  pipe_works=no
5567
5568  rm -f conftest*
5569  cat > conftest.$ac_ext <<_LT_EOF
5570#ifdef __cplusplus
5571extern "C" {
5572#endif
5573char nm_test_var;
5574void nm_test_func(void);
5575void nm_test_func(void){}
5576#ifdef __cplusplus
5577}
5578#endif
5579int main(){nm_test_var='a';nm_test_func();return(0);}
5580_LT_EOF
5581
5582  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5583  (eval $ac_compile) 2>&5
5584  ac_status=$?
5585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5586  test $ac_status = 0; }; then
5587    # Now try to grab the symbols.
5588    nlist=conftest.nm
5589    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5590  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5591  ac_status=$?
5592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5593  test $ac_status = 0; } && test -s "$nlist"; then
5594      # Try sorting and uniquifying the output.
5595      if sort "$nlist" | uniq > "$nlist"T; then
5596	mv -f "$nlist"T "$nlist"
5597      else
5598	rm -f "$nlist"T
5599      fi
5600
5601      # Make sure that we snagged all the symbols we need.
5602      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5603	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5604	  cat <<_LT_EOF > conftest.$ac_ext
5605#ifdef __cplusplus
5606extern "C" {
5607#endif
5608
5609_LT_EOF
5610	  # Now generate the symbol file.
5611	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5612
5613	  cat <<_LT_EOF >> conftest.$ac_ext
5614
5615/* The mapping between symbol names and symbols.  */
5616const struct {
5617  const char *name;
5618  void       *address;
5619}
5620lt__PROGRAM__LTX_preloaded_symbols[] =
5621{
5622  { "@PROGRAM@", (void *) 0 },
5623_LT_EOF
5624	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5625	  cat <<\_LT_EOF >> conftest.$ac_ext
5626  {0, (void *) 0}
5627};
5628
5629/* This works around a problem in FreeBSD linker */
5630#ifdef FREEBSD_WORKAROUND
5631static const void *lt_preloaded_setup() {
5632  return lt__PROGRAM__LTX_preloaded_symbols;
5633}
5634#endif
5635
5636#ifdef __cplusplus
5637}
5638#endif
5639_LT_EOF
5640	  # Now try linking the two files.
5641	  mv conftest.$ac_objext conftstm.$ac_objext
5642	  lt_save_LIBS="$LIBS"
5643	  lt_save_CFLAGS="$CFLAGS"
5644	  LIBS="conftstm.$ac_objext"
5645	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5646	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5647  (eval $ac_link) 2>&5
5648  ac_status=$?
5649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5651	    pipe_works=yes
5652	  fi
5653	  LIBS="$lt_save_LIBS"
5654	  CFLAGS="$lt_save_CFLAGS"
5655	else
5656	  echo "cannot find nm_test_func in $nlist" >&5
5657	fi
5658      else
5659	echo "cannot find nm_test_var in $nlist" >&5
5660      fi
5661    else
5662      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5663    fi
5664  else
5665    echo "$progname: failed program was:" >&5
5666    cat conftest.$ac_ext >&5
5667  fi
5668  rm -rf conftest* conftst*
5669
5670  # Do not use the global_symbol_pipe unless it works.
5671  if test "$pipe_works" = yes; then
5672    break
5673  else
5674    lt_cv_sys_global_symbol_pipe=
5675  fi
5676done
5677
5678fi
5679
5680if test -z "$lt_cv_sys_global_symbol_pipe"; then
5681  lt_cv_sys_global_symbol_to_cdecl=
5682fi
5683if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5685$as_echo "failed" >&6; }
5686else
5687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5688$as_echo "ok" >&6; }
5689fi
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713# Check whether --enable-libtool-lock was given.
5714if test "${enable_libtool_lock+set}" = set; then :
5715  enableval=$enable_libtool_lock;
5716fi
5717
5718test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5719
5720# Some flags need to be propagated to the compiler or linker for good
5721# libtool support.
5722case $host in
5723ia64-*-hpux*)
5724  # Find out which ABI we are using.
5725  echo 'int i;' > conftest.$ac_ext
5726  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5727  (eval $ac_compile) 2>&5
5728  ac_status=$?
5729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730  test $ac_status = 0; }; then
5731    case `/usr/bin/file conftest.$ac_objext` in
5732      *ELF-32*)
5733	HPUX_IA64_MODE="32"
5734	;;
5735      *ELF-64*)
5736	HPUX_IA64_MODE="64"
5737	;;
5738    esac
5739  fi
5740  rm -rf conftest*
5741  ;;
5742*-*-irix6*)
5743  # Find out which ABI we are using.
5744  echo '#line 5744 "configure"' > conftest.$ac_ext
5745  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5746  (eval $ac_compile) 2>&5
5747  ac_status=$?
5748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749  test $ac_status = 0; }; then
5750    if test "$lt_cv_prog_gnu_ld" = yes; then
5751      case `/usr/bin/file conftest.$ac_objext` in
5752	*32-bit*)
5753	  LD="${LD-ld} -melf32bsmip"
5754	  ;;
5755	*N32*)
5756	  LD="${LD-ld} -melf32bmipn32"
5757	  ;;
5758	*64-bit*)
5759	  LD="${LD-ld} -melf64bmip"
5760	;;
5761      esac
5762    else
5763      case `/usr/bin/file conftest.$ac_objext` in
5764	*32-bit*)
5765	  LD="${LD-ld} -32"
5766	  ;;
5767	*N32*)
5768	  LD="${LD-ld} -n32"
5769	  ;;
5770	*64-bit*)
5771	  LD="${LD-ld} -64"
5772	  ;;
5773      esac
5774    fi
5775  fi
5776  rm -rf conftest*
5777  ;;
5778
5779x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5780s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5781  # Find out which ABI we are using.
5782  echo 'int i;' > conftest.$ac_ext
5783  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5784  (eval $ac_compile) 2>&5
5785  ac_status=$?
5786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5787  test $ac_status = 0; }; then
5788    case `/usr/bin/file conftest.o` in
5789      *32-bit*)
5790	case $host in
5791	  x86_64-*kfreebsd*-gnu)
5792	    LD="${LD-ld} -m elf_i386_fbsd"
5793	    ;;
5794	  x86_64-*linux*)
5795	    LD="${LD-ld} -m elf_i386"
5796	    ;;
5797	  ppc64-*linux*|powerpc64-*linux*)
5798	    LD="${LD-ld} -m elf32ppclinux"
5799	    ;;
5800	  s390x-*linux*)
5801	    LD="${LD-ld} -m elf_s390"
5802	    ;;
5803	  sparc64-*linux*)
5804	    LD="${LD-ld} -m elf32_sparc"
5805	    ;;
5806	esac
5807	;;
5808      *64-bit*)
5809	case $host in
5810	  x86_64-*kfreebsd*-gnu)
5811	    LD="${LD-ld} -m elf_x86_64_fbsd"
5812	    ;;
5813	  x86_64-*linux*)
5814	    LD="${LD-ld} -m elf_x86_64"
5815	    ;;
5816	  ppc*-*linux*|powerpc*-*linux*)
5817	    LD="${LD-ld} -m elf64ppc"
5818	    ;;
5819	  s390*-*linux*|s390*-*tpf*)
5820	    LD="${LD-ld} -m elf64_s390"
5821	    ;;
5822	  sparc*-*linux*)
5823	    LD="${LD-ld} -m elf64_sparc"
5824	    ;;
5825	esac
5826	;;
5827    esac
5828  fi
5829  rm -rf conftest*
5830  ;;
5831
5832*-*-sco3.2v5*)
5833  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5834  SAVE_CFLAGS="$CFLAGS"
5835  CFLAGS="$CFLAGS -belf"
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5837$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5838if test "${lt_cv_cc_needs_belf+set}" = set; then :
5839  $as_echo_n "(cached) " >&6
5840else
5841  ac_ext=c
5842ac_cpp='$CPP $CPPFLAGS'
5843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846
5847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848/* end confdefs.h.  */
5849
5850int
5851main ()
5852{
5853
5854  ;
5855  return 0;
5856}
5857_ACEOF
5858if ac_fn_c_try_link "$LINENO"; then :
5859  lt_cv_cc_needs_belf=yes
5860else
5861  lt_cv_cc_needs_belf=no
5862fi
5863rm -f core conftest.err conftest.$ac_objext \
5864    conftest$ac_exeext conftest.$ac_ext
5865     ac_ext=c
5866ac_cpp='$CPP $CPPFLAGS'
5867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870
5871fi
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5873$as_echo "$lt_cv_cc_needs_belf" >&6; }
5874  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5875    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5876    CFLAGS="$SAVE_CFLAGS"
5877  fi
5878  ;;
5879sparc*-*solaris*)
5880  # Find out which ABI we are using.
5881  echo 'int i;' > conftest.$ac_ext
5882  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5883  (eval $ac_compile) 2>&5
5884  ac_status=$?
5885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5886  test $ac_status = 0; }; then
5887    case `/usr/bin/file conftest.o` in
5888    *64-bit*)
5889      case $lt_cv_prog_gnu_ld in
5890      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5891      *)
5892	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5893	  LD="${LD-ld} -64"
5894	fi
5895	;;
5896      esac
5897      ;;
5898    esac
5899  fi
5900  rm -rf conftest*
5901  ;;
5902esac
5903
5904need_locks="$enable_libtool_lock"
5905
5906
5907  case $host_os in
5908    rhapsody* | darwin*)
5909    if test -n "$ac_tool_prefix"; then
5910  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5911set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913$as_echo_n "checking for $ac_word... " >&6; }
5914if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  if test -n "$DSYMUTIL"; then
5918  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  test -z "$as_dir" && as_dir=.
5925    for ac_exec_ext in '' $ac_executable_extensions; do
5926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929    break 2
5930  fi
5931done
5932  done
5933IFS=$as_save_IFS
5934
5935fi
5936fi
5937DSYMUTIL=$ac_cv_prog_DSYMUTIL
5938if test -n "$DSYMUTIL"; then
5939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5940$as_echo "$DSYMUTIL" >&6; }
5941else
5942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943$as_echo "no" >&6; }
5944fi
5945
5946
5947fi
5948if test -z "$ac_cv_prog_DSYMUTIL"; then
5949  ac_ct_DSYMUTIL=$DSYMUTIL
5950  # Extract the first word of "dsymutil", so it can be a program name with args.
5951set dummy dsymutil; ac_word=$2
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953$as_echo_n "checking for $ac_word... " >&6; }
5954if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  if test -n "$ac_ct_DSYMUTIL"; then
5958  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963  IFS=$as_save_IFS
5964  test -z "$as_dir" && as_dir=.
5965    for ac_exec_ext in '' $ac_executable_extensions; do
5966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969    break 2
5970  fi
5971done
5972  done
5973IFS=$as_save_IFS
5974
5975fi
5976fi
5977ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5978if test -n "$ac_ct_DSYMUTIL"; then
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5980$as_echo "$ac_ct_DSYMUTIL" >&6; }
5981else
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984fi
5985
5986  if test "x$ac_ct_DSYMUTIL" = x; then
5987    DSYMUTIL=":"
5988  else
5989    case $cross_compiling:$ac_tool_warned in
5990yes:)
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993ac_tool_warned=yes ;;
5994esac
5995    DSYMUTIL=$ac_ct_DSYMUTIL
5996  fi
5997else
5998  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5999fi
6000
6001    if test -n "$ac_tool_prefix"; then
6002  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6003set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005$as_echo_n "checking for $ac_word... " >&6; }
6006if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  if test -n "$NMEDIT"; then
6010  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6011else
6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015  IFS=$as_save_IFS
6016  test -z "$as_dir" && as_dir=.
6017    for ac_exec_ext in '' $ac_executable_extensions; do
6018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021    break 2
6022  fi
6023done
6024  done
6025IFS=$as_save_IFS
6026
6027fi
6028fi
6029NMEDIT=$ac_cv_prog_NMEDIT
6030if test -n "$NMEDIT"; then
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6032$as_echo "$NMEDIT" >&6; }
6033else
6034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035$as_echo "no" >&6; }
6036fi
6037
6038
6039fi
6040if test -z "$ac_cv_prog_NMEDIT"; then
6041  ac_ct_NMEDIT=$NMEDIT
6042  # Extract the first word of "nmedit", so it can be a program name with args.
6043set dummy nmedit; ac_word=$2
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045$as_echo_n "checking for $ac_word... " >&6; }
6046if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6047  $as_echo_n "(cached) " >&6
6048else
6049  if test -n "$ac_ct_NMEDIT"; then
6050  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055  IFS=$as_save_IFS
6056  test -z "$as_dir" && as_dir=.
6057    for ac_exec_ext in '' $ac_executable_extensions; do
6058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061    break 2
6062  fi
6063done
6064  done
6065IFS=$as_save_IFS
6066
6067fi
6068fi
6069ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6070if test -n "$ac_ct_NMEDIT"; then
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6072$as_echo "$ac_ct_NMEDIT" >&6; }
6073else
6074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075$as_echo "no" >&6; }
6076fi
6077
6078  if test "x$ac_ct_NMEDIT" = x; then
6079    NMEDIT=":"
6080  else
6081    case $cross_compiling:$ac_tool_warned in
6082yes:)
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085ac_tool_warned=yes ;;
6086esac
6087    NMEDIT=$ac_ct_NMEDIT
6088  fi
6089else
6090  NMEDIT="$ac_cv_prog_NMEDIT"
6091fi
6092
6093    if test -n "$ac_tool_prefix"; then
6094  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6095set dummy ${ac_tool_prefix}lipo; ac_word=$2
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097$as_echo_n "checking for $ac_word... " >&6; }
6098if test "${ac_cv_prog_LIPO+set}" = set; then :
6099  $as_echo_n "(cached) " >&6
6100else
6101  if test -n "$LIPO"; then
6102  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6103else
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107  IFS=$as_save_IFS
6108  test -z "$as_dir" && as_dir=.
6109    for ac_exec_ext in '' $ac_executable_extensions; do
6110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6111    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113    break 2
6114  fi
6115done
6116  done
6117IFS=$as_save_IFS
6118
6119fi
6120fi
6121LIPO=$ac_cv_prog_LIPO
6122if test -n "$LIPO"; then
6123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6124$as_echo "$LIPO" >&6; }
6125else
6126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127$as_echo "no" >&6; }
6128fi
6129
6130
6131fi
6132if test -z "$ac_cv_prog_LIPO"; then
6133  ac_ct_LIPO=$LIPO
6134  # Extract the first word of "lipo", so it can be a program name with args.
6135set dummy lipo; ac_word=$2
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137$as_echo_n "checking for $ac_word... " >&6; }
6138if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6139  $as_echo_n "(cached) " >&6
6140else
6141  if test -n "$ac_ct_LIPO"; then
6142  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147  IFS=$as_save_IFS
6148  test -z "$as_dir" && as_dir=.
6149    for ac_exec_ext in '' $ac_executable_extensions; do
6150  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151    ac_cv_prog_ac_ct_LIPO="lipo"
6152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153    break 2
6154  fi
6155done
6156  done
6157IFS=$as_save_IFS
6158
6159fi
6160fi
6161ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6162if test -n "$ac_ct_LIPO"; then
6163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6164$as_echo "$ac_ct_LIPO" >&6; }
6165else
6166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167$as_echo "no" >&6; }
6168fi
6169
6170  if test "x$ac_ct_LIPO" = x; then
6171    LIPO=":"
6172  else
6173    case $cross_compiling:$ac_tool_warned in
6174yes:)
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177ac_tool_warned=yes ;;
6178esac
6179    LIPO=$ac_ct_LIPO
6180  fi
6181else
6182  LIPO="$ac_cv_prog_LIPO"
6183fi
6184
6185    if test -n "$ac_tool_prefix"; then
6186  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6187set dummy ${ac_tool_prefix}otool; ac_word=$2
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189$as_echo_n "checking for $ac_word... " >&6; }
6190if test "${ac_cv_prog_OTOOL+set}" = set; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  if test -n "$OTOOL"; then
6194  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6195else
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199  IFS=$as_save_IFS
6200  test -z "$as_dir" && as_dir=.
6201    for ac_exec_ext in '' $ac_executable_extensions; do
6202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205    break 2
6206  fi
6207done
6208  done
6209IFS=$as_save_IFS
6210
6211fi
6212fi
6213OTOOL=$ac_cv_prog_OTOOL
6214if test -n "$OTOOL"; then
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6216$as_echo "$OTOOL" >&6; }
6217else
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219$as_echo "no" >&6; }
6220fi
6221
6222
6223fi
6224if test -z "$ac_cv_prog_OTOOL"; then
6225  ac_ct_OTOOL=$OTOOL
6226  # Extract the first word of "otool", so it can be a program name with args.
6227set dummy otool; ac_word=$2
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229$as_echo_n "checking for $ac_word... " >&6; }
6230if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6231  $as_echo_n "(cached) " >&6
6232else
6233  if test -n "$ac_ct_OTOOL"; then
6234  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239  IFS=$as_save_IFS
6240  test -z "$as_dir" && as_dir=.
6241    for ac_exec_ext in '' $ac_executable_extensions; do
6242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243    ac_cv_prog_ac_ct_OTOOL="otool"
6244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245    break 2
6246  fi
6247done
6248  done
6249IFS=$as_save_IFS
6250
6251fi
6252fi
6253ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6254if test -n "$ac_ct_OTOOL"; then
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6256$as_echo "$ac_ct_OTOOL" >&6; }
6257else
6258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259$as_echo "no" >&6; }
6260fi
6261
6262  if test "x$ac_ct_OTOOL" = x; then
6263    OTOOL=":"
6264  else
6265    case $cross_compiling:$ac_tool_warned in
6266yes:)
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269ac_tool_warned=yes ;;
6270esac
6271    OTOOL=$ac_ct_OTOOL
6272  fi
6273else
6274  OTOOL="$ac_cv_prog_OTOOL"
6275fi
6276
6277    if test -n "$ac_tool_prefix"; then
6278  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6279set dummy ${ac_tool_prefix}otool64; ac_word=$2
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281$as_echo_n "checking for $ac_word... " >&6; }
6282if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6283  $as_echo_n "(cached) " >&6
6284else
6285  if test -n "$OTOOL64"; then
6286  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  test -z "$as_dir" && as_dir=.
6293    for ac_exec_ext in '' $ac_executable_extensions; do
6294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300  done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305OTOOL64=$ac_cv_prog_OTOOL64
6306if test -n "$OTOOL64"; then
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6308$as_echo "$OTOOL64" >&6; }
6309else
6310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311$as_echo "no" >&6; }
6312fi
6313
6314
6315fi
6316if test -z "$ac_cv_prog_OTOOL64"; then
6317  ac_ct_OTOOL64=$OTOOL64
6318  # Extract the first word of "otool64", so it can be a program name with args.
6319set dummy otool64; ac_word=$2
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321$as_echo_n "checking for $ac_word... " >&6; }
6322if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6323  $as_echo_n "(cached) " >&6
6324else
6325  if test -n "$ac_ct_OTOOL64"; then
6326  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331  IFS=$as_save_IFS
6332  test -z "$as_dir" && as_dir=.
6333    for ac_exec_ext in '' $ac_executable_extensions; do
6334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335    ac_cv_prog_ac_ct_OTOOL64="otool64"
6336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337    break 2
6338  fi
6339done
6340  done
6341IFS=$as_save_IFS
6342
6343fi
6344fi
6345ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6346if test -n "$ac_ct_OTOOL64"; then
6347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6348$as_echo "$ac_ct_OTOOL64" >&6; }
6349else
6350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351$as_echo "no" >&6; }
6352fi
6353
6354  if test "x$ac_ct_OTOOL64" = x; then
6355    OTOOL64=":"
6356  else
6357    case $cross_compiling:$ac_tool_warned in
6358yes:)
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361ac_tool_warned=yes ;;
6362esac
6363    OTOOL64=$ac_ct_OTOOL64
6364  fi
6365else
6366  OTOOL64="$ac_cv_prog_OTOOL64"
6367fi
6368
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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6396$as_echo_n "checking for -single_module linker flag... " >&6; }
6397if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6398  $as_echo_n "(cached) " >&6
6399else
6400  lt_cv_apple_cc_single_mod=no
6401      if test -z "${LT_MULTI_MODULE}"; then
6402	# By default we will add the -single_module flag. You can override
6403	# by either setting the environment variable LT_MULTI_MODULE
6404	# non-empty at configure time, or by adding -multi_module to the
6405	# link flags.
6406	rm -rf libconftest.dylib*
6407	echo "int foo(void){return 1;}" > conftest.c
6408	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6409-dynamiclib -Wl,-single_module conftest.c" >&5
6410	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6411	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6412        _lt_result=$?
6413	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6414	  lt_cv_apple_cc_single_mod=yes
6415	else
6416	  cat conftest.err >&5
6417	fi
6418	rm -rf libconftest.dylib*
6419	rm -f conftest.*
6420      fi
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6423$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6425$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6426if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  lt_cv_ld_exported_symbols_list=no
6430      save_LDFLAGS=$LDFLAGS
6431      echo "_main" > conftest.sym
6432      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6433      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h.  */
6435
6436int
6437main ()
6438{
6439
6440  ;
6441  return 0;
6442}
6443_ACEOF
6444if ac_fn_c_try_link "$LINENO"; then :
6445  lt_cv_ld_exported_symbols_list=yes
6446else
6447  lt_cv_ld_exported_symbols_list=no
6448fi
6449rm -f core conftest.err conftest.$ac_objext \
6450    conftest$ac_exeext conftest.$ac_ext
6451	LDFLAGS="$save_LDFLAGS"
6452
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6455$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6456    case $host_os in
6457    rhapsody* | darwin1.[012])
6458      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6459    darwin1.*)
6460      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6461    darwin*) # darwin 5.x on
6462      # if running on 10.5 or later, the deployment target defaults
6463      # to the OS version, if on x86, and 10.4, the deployment
6464      # target defaults to 10.4. Don't you love it?
6465      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6466	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6467	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6468	10.[012]*)
6469	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6470	10.*)
6471	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6472      esac
6473    ;;
6474  esac
6475    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6476      _lt_dar_single_mod='$single_module'
6477    fi
6478    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6479      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6480    else
6481      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6482    fi
6483    if test "$DSYMUTIL" != ":"; then
6484      _lt_dsymutil='~$DSYMUTIL $lib || :'
6485    else
6486      _lt_dsymutil=
6487    fi
6488    ;;
6489  esac
6490
6491ac_ext=c
6492ac_cpp='$CPP $CPPFLAGS'
6493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6495ac_compiler_gnu=$ac_cv_c_compiler_gnu
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6497$as_echo_n "checking how to run the C preprocessor... " >&6; }
6498# On Suns, sometimes $CPP names a directory.
6499if test -n "$CPP" && test -d "$CPP"; then
6500  CPP=
6501fi
6502if test -z "$CPP"; then
6503  if test "${ac_cv_prog_CPP+set}" = set; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506      # Double quotes because CPP needs to be expanded
6507    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6508    do
6509      ac_preproc_ok=false
6510for ac_c_preproc_warn_flag in '' yes
6511do
6512  # Use a header file that comes with gcc, so configuring glibc
6513  # with a fresh cross-compiler works.
6514  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6515  # <limits.h> exists even on freestanding compilers.
6516  # On the NeXT, cc -E runs the code through the compiler's parser,
6517  # not just through cpp. "Syntax error" is here to catch this case.
6518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519/* end confdefs.h.  */
6520#ifdef __STDC__
6521# include <limits.h>
6522#else
6523# include <assert.h>
6524#endif
6525		     Syntax error
6526_ACEOF
6527if ac_fn_c_try_cpp "$LINENO"; then :
6528
6529else
6530  # Broken: fails on valid input.
6531continue
6532fi
6533rm -f conftest.err conftest.$ac_ext
6534
6535  # OK, works on sane cases.  Now check whether nonexistent headers
6536  # can be detected and how.
6537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539#include <ac_nonexistent.h>
6540_ACEOF
6541if ac_fn_c_try_cpp "$LINENO"; then :
6542  # Broken: success on invalid input.
6543continue
6544else
6545  # Passes both tests.
6546ac_preproc_ok=:
6547break
6548fi
6549rm -f conftest.err conftest.$ac_ext
6550
6551done
6552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6553rm -f conftest.err conftest.$ac_ext
6554if $ac_preproc_ok; then :
6555  break
6556fi
6557
6558    done
6559    ac_cv_prog_CPP=$CPP
6560
6561fi
6562  CPP=$ac_cv_prog_CPP
6563else
6564  ac_cv_prog_CPP=$CPP
6565fi
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6567$as_echo "$CPP" >&6; }
6568ac_preproc_ok=false
6569for ac_c_preproc_warn_flag in '' yes
6570do
6571  # Use a header file that comes with gcc, so configuring glibc
6572  # with a fresh cross-compiler works.
6573  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6574  # <limits.h> exists even on freestanding compilers.
6575  # On the NeXT, cc -E runs the code through the compiler's parser,
6576  # not just through cpp. "Syntax error" is here to catch this case.
6577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578/* end confdefs.h.  */
6579#ifdef __STDC__
6580# include <limits.h>
6581#else
6582# include <assert.h>
6583#endif
6584		     Syntax error
6585_ACEOF
6586if ac_fn_c_try_cpp "$LINENO"; then :
6587
6588else
6589  # Broken: fails on valid input.
6590continue
6591fi
6592rm -f conftest.err conftest.$ac_ext
6593
6594  # OK, works on sane cases.  Now check whether nonexistent headers
6595  # can be detected and how.
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598#include <ac_nonexistent.h>
6599_ACEOF
6600if ac_fn_c_try_cpp "$LINENO"; then :
6601  # Broken: success on invalid input.
6602continue
6603else
6604  # Passes both tests.
6605ac_preproc_ok=:
6606break
6607fi
6608rm -f conftest.err conftest.$ac_ext
6609
6610done
6611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6612rm -f conftest.err conftest.$ac_ext
6613if $ac_preproc_ok; then :
6614
6615else
6616  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6618as_fn_error "C preprocessor \"$CPP\" fails sanity check
6619See \`config.log' for more details." "$LINENO" 5; }
6620fi
6621
6622ac_ext=c
6623ac_cpp='$CPP $CPPFLAGS'
6624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626ac_compiler_gnu=$ac_cv_c_compiler_gnu
6627
6628
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6630$as_echo_n "checking for ANSI C header files... " >&6; }
6631if test "${ac_cv_header_stdc+set}" = set; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635/* end confdefs.h.  */
6636#include <stdlib.h>
6637#include <stdarg.h>
6638#include <string.h>
6639#include <float.h>
6640
6641int
6642main ()
6643{
6644
6645  ;
6646  return 0;
6647}
6648_ACEOF
6649if ac_fn_c_try_compile "$LINENO"; then :
6650  ac_cv_header_stdc=yes
6651else
6652  ac_cv_header_stdc=no
6653fi
6654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655
6656if test $ac_cv_header_stdc = yes; then
6657  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660#include <string.h>
6661
6662_ACEOF
6663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6664  $EGREP "memchr" >/dev/null 2>&1; then :
6665
6666else
6667  ac_cv_header_stdc=no
6668fi
6669rm -f conftest*
6670
6671fi
6672
6673if test $ac_cv_header_stdc = yes; then
6674  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h.  */
6677#include <stdlib.h>
6678
6679_ACEOF
6680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6681  $EGREP "free" >/dev/null 2>&1; then :
6682
6683else
6684  ac_cv_header_stdc=no
6685fi
6686rm -f conftest*
6687
6688fi
6689
6690if test $ac_cv_header_stdc = yes; then
6691  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6692  if test "$cross_compiling" = yes; then :
6693  :
6694else
6695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h.  */
6697#include <ctype.h>
6698#include <stdlib.h>
6699#if ((' ' & 0x0FF) == 0x020)
6700# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6701# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6702#else
6703# define ISLOWER(c) \
6704		   (('a' <= (c) && (c) <= 'i') \
6705		     || ('j' <= (c) && (c) <= 'r') \
6706		     || ('s' <= (c) && (c) <= 'z'))
6707# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6708#endif
6709
6710#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6711int
6712main ()
6713{
6714  int i;
6715  for (i = 0; i < 256; i++)
6716    if (XOR (islower (i), ISLOWER (i))
6717	|| toupper (i) != TOUPPER (i))
6718      return 2;
6719  return 0;
6720}
6721_ACEOF
6722if ac_fn_c_try_run "$LINENO"; then :
6723
6724else
6725  ac_cv_header_stdc=no
6726fi
6727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6728  conftest.$ac_objext conftest.beam conftest.$ac_ext
6729fi
6730
6731fi
6732fi
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6734$as_echo "$ac_cv_header_stdc" >&6; }
6735if test $ac_cv_header_stdc = yes; then
6736
6737$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6738
6739fi
6740
6741# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6742for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6743		  inttypes.h stdint.h unistd.h
6744do :
6745  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6746ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6747"
6748eval as_val=\$$as_ac_Header
6749   if test "x$as_val" = x""yes; then :
6750  cat >>confdefs.h <<_ACEOF
6751#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6752_ACEOF
6753
6754fi
6755
6756done
6757
6758
6759for ac_header in dlfcn.h
6760do :
6761  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6762"
6763if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6764  cat >>confdefs.h <<_ACEOF
6765#define HAVE_DLFCN_H 1
6766_ACEOF
6767
6768fi
6769
6770done
6771
6772
6773
6774# Set options
6775
6776
6777
6778        enable_dlopen=no
6779
6780
6781  enable_win32_dll=no
6782
6783
6784            # Check whether --enable-shared was given.
6785if test "${enable_shared+set}" = set; then :
6786  enableval=$enable_shared; p=${PACKAGE-default}
6787    case $enableval in
6788    yes) enable_shared=yes ;;
6789    no) enable_shared=no ;;
6790    *)
6791      enable_shared=no
6792      # Look at the argument we got.  We use all the common list separators.
6793      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6794      for pkg in $enableval; do
6795	IFS="$lt_save_ifs"
6796	if test "X$pkg" = "X$p"; then
6797	  enable_shared=yes
6798	fi
6799      done
6800      IFS="$lt_save_ifs"
6801      ;;
6802    esac
6803else
6804  enable_shared=yes
6805fi
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817# Check whether --with-pic was given.
6818if test "${with_pic+set}" = set; then :
6819  withval=$with_pic; pic_mode="$withval"
6820else
6821  pic_mode=default
6822fi
6823
6824
6825test -z "$pic_mode" && pic_mode=default
6826
6827
6828
6829
6830
6831
6832
6833  # Check whether --enable-fast-install was given.
6834if test "${enable_fast_install+set}" = set; then :
6835  enableval=$enable_fast_install; p=${PACKAGE-default}
6836    case $enableval in
6837    yes) enable_fast_install=yes ;;
6838    no) enable_fast_install=no ;;
6839    *)
6840      enable_fast_install=no
6841      # Look at the argument we got.  We use all the common list separators.
6842      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6843      for pkg in $enableval; do
6844	IFS="$lt_save_ifs"
6845	if test "X$pkg" = "X$p"; then
6846	  enable_fast_install=yes
6847	fi
6848      done
6849      IFS="$lt_save_ifs"
6850      ;;
6851    esac
6852else
6853  enable_fast_install=yes
6854fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866# This can be used to rebuild libtool when needed
6867LIBTOOL_DEPS="$ltmain"
6868
6869# Always use our own libtool.
6870LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896test -z "$LN_S" && LN_S="ln -s"
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911if test -n "${ZSH_VERSION+set}" ; then
6912   setopt NO_GLOB_SUBST
6913fi
6914
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6916$as_echo_n "checking for objdir... " >&6; }
6917if test "${lt_cv_objdir+set}" = set; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  rm -f .libs 2>/dev/null
6921mkdir .libs 2>/dev/null
6922if test -d .libs; then
6923  lt_cv_objdir=.libs
6924else
6925  # MS-DOS does not allow filenames that begin with a dot.
6926  lt_cv_objdir=_libs
6927fi
6928rmdir .libs 2>/dev/null
6929fi
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6931$as_echo "$lt_cv_objdir" >&6; }
6932objdir=$lt_cv_objdir
6933
6934
6935
6936
6937
6938cat >>confdefs.h <<_ACEOF
6939#define LT_OBJDIR "$lt_cv_objdir/"
6940_ACEOF
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958case $host_os in
6959aix3*)
6960  # AIX sometimes has problems with the GCC collect2 program.  For some
6961  # reason, if we set the COLLECT_NAMES environment variable, the problems
6962  # vanish in a puff of smoke.
6963  if test "X${COLLECT_NAMES+set}" != Xset; then
6964    COLLECT_NAMES=
6965    export COLLECT_NAMES
6966  fi
6967  ;;
6968esac
6969
6970# Sed substitution that helps us do robust quoting.  It backslashifies
6971# metacharacters that are still active within double-quoted strings.
6972sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6973
6974# Same as above, but do not quote variable references.
6975double_quote_subst='s/\(["`\\]\)/\\\1/g'
6976
6977# Sed substitution to delay expansion of an escaped shell variable in a
6978# double_quote_subst'ed string.
6979delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6980
6981# Sed substitution to delay expansion of an escaped single quote.
6982delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6983
6984# Sed substitution to avoid accidental globbing in evaled expressions
6985no_glob_subst='s/\*/\\\*/g'
6986
6987# Global variables:
6988ofile=libtool
6989can_build_shared=yes
6990
6991# All known linkers require a `.a' archive for static linking (except MSVC,
6992# which needs '.lib').
6993libext=a
6994
6995with_gnu_ld="$lt_cv_prog_gnu_ld"
6996
6997old_CC="$CC"
6998old_CFLAGS="$CFLAGS"
6999
7000# Set sane defaults for various variables
7001test -z "$CC" && CC=cc
7002test -z "$LTCC" && LTCC=$CC
7003test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7004test -z "$LD" && LD=ld
7005test -z "$ac_objext" && ac_objext=o
7006
7007for cc_temp in $compiler""; do
7008  case $cc_temp in
7009    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7010    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7011    \-*) ;;
7012    *) break;;
7013  esac
7014done
7015cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7016
7017
7018# Only perform the check for file, if the check method requires it
7019test -z "$MAGIC_CMD" && MAGIC_CMD=file
7020case $deplibs_check_method in
7021file_magic*)
7022  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7024$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7025if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  case $MAGIC_CMD in
7029[\\/*] |  ?:[\\/]*)
7030  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7031  ;;
7032*)
7033  lt_save_MAGIC_CMD="$MAGIC_CMD"
7034  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7035  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7036  for ac_dir in $ac_dummy; do
7037    IFS="$lt_save_ifs"
7038    test -z "$ac_dir" && ac_dir=.
7039    if test -f $ac_dir/${ac_tool_prefix}file; then
7040      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7041      if test -n "$file_magic_test_file"; then
7042	case $deplibs_check_method in
7043	"file_magic "*)
7044	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7045	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7046	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7047	    $EGREP "$file_magic_regex" > /dev/null; then
7048	    :
7049	  else
7050	    cat <<_LT_EOF 1>&2
7051
7052*** Warning: the command libtool uses to detect shared libraries,
7053*** $file_magic_cmd, produces output that libtool cannot recognize.
7054*** The result is that libtool may fail to recognize shared libraries
7055*** as such.  This will affect the creation of libtool libraries that
7056*** depend on shared libraries, but programs linked with such libtool
7057*** libraries will work regardless of this problem.  Nevertheless, you
7058*** may want to report the problem to your system manager and/or to
7059*** bug-libtool@gnu.org
7060
7061_LT_EOF
7062	  fi ;;
7063	esac
7064      fi
7065      break
7066    fi
7067  done
7068  IFS="$lt_save_ifs"
7069  MAGIC_CMD="$lt_save_MAGIC_CMD"
7070  ;;
7071esac
7072fi
7073
7074MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7075if test -n "$MAGIC_CMD"; then
7076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7077$as_echo "$MAGIC_CMD" >&6; }
7078else
7079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080$as_echo "no" >&6; }
7081fi
7082
7083
7084
7085
7086
7087if test -z "$lt_cv_path_MAGIC_CMD"; then
7088  if test -n "$ac_tool_prefix"; then
7089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7090$as_echo_n "checking for file... " >&6; }
7091if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  case $MAGIC_CMD in
7095[\\/*] |  ?:[\\/]*)
7096  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7097  ;;
7098*)
7099  lt_save_MAGIC_CMD="$MAGIC_CMD"
7100  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7101  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7102  for ac_dir in $ac_dummy; do
7103    IFS="$lt_save_ifs"
7104    test -z "$ac_dir" && ac_dir=.
7105    if test -f $ac_dir/file; then
7106      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7107      if test -n "$file_magic_test_file"; then
7108	case $deplibs_check_method in
7109	"file_magic "*)
7110	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7111	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7112	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7113	    $EGREP "$file_magic_regex" > /dev/null; then
7114	    :
7115	  else
7116	    cat <<_LT_EOF 1>&2
7117
7118*** Warning: the command libtool uses to detect shared libraries,
7119*** $file_magic_cmd, produces output that libtool cannot recognize.
7120*** The result is that libtool may fail to recognize shared libraries
7121*** as such.  This will affect the creation of libtool libraries that
7122*** depend on shared libraries, but programs linked with such libtool
7123*** libraries will work regardless of this problem.  Nevertheless, you
7124*** may want to report the problem to your system manager and/or to
7125*** bug-libtool@gnu.org
7126
7127_LT_EOF
7128	  fi ;;
7129	esac
7130      fi
7131      break
7132    fi
7133  done
7134  IFS="$lt_save_ifs"
7135  MAGIC_CMD="$lt_save_MAGIC_CMD"
7136  ;;
7137esac
7138fi
7139
7140MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7141if test -n "$MAGIC_CMD"; then
7142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7143$as_echo "$MAGIC_CMD" >&6; }
7144else
7145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146$as_echo "no" >&6; }
7147fi
7148
7149
7150  else
7151    MAGIC_CMD=:
7152  fi
7153fi
7154
7155  fi
7156  ;;
7157esac
7158
7159# Use C for the default configuration in the libtool script
7160
7161lt_save_CC="$CC"
7162ac_ext=c
7163ac_cpp='$CPP $CPPFLAGS'
7164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166ac_compiler_gnu=$ac_cv_c_compiler_gnu
7167
7168
7169# Source file extension for C test sources.
7170ac_ext=c
7171
7172# Object file extension for compiled C test sources.
7173objext=o
7174objext=$objext
7175
7176# Code to be used in simple compile tests
7177lt_simple_compile_test_code="int some_variable = 0;"
7178
7179# Code to be used in simple link tests
7180lt_simple_link_test_code='int main(){return(0);}'
7181
7182
7183
7184
7185
7186
7187
7188# If no C compiler was specified, use CC.
7189LTCC=${LTCC-"$CC"}
7190
7191# If no C compiler flags were specified, use CFLAGS.
7192LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7193
7194# Allow CC to be a program name with arguments.
7195compiler=$CC
7196
7197# Save the default compiler, since it gets overwritten when the other
7198# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7199compiler_DEFAULT=$CC
7200
7201# save warnings/boilerplate of simple test code
7202ac_outfile=conftest.$ac_objext
7203echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7204eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7205_lt_compiler_boilerplate=`cat conftest.err`
7206$RM conftest*
7207
7208ac_outfile=conftest.$ac_objext
7209echo "$lt_simple_link_test_code" >conftest.$ac_ext
7210eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7211_lt_linker_boilerplate=`cat conftest.err`
7212$RM -r conftest*
7213
7214
7215if test -n "$compiler"; then
7216
7217lt_prog_compiler_no_builtin_flag=
7218
7219if test "$GCC" = yes; then
7220  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7221
7222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7223$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7224if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  lt_cv_prog_compiler_rtti_exceptions=no
7228   ac_outfile=conftest.$ac_objext
7229   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7230   lt_compiler_flag="-fno-rtti -fno-exceptions"
7231   # Insert the option either (1) after the last *FLAGS variable, or
7232   # (2) before a word containing "conftest.", or (3) at the end.
7233   # Note that $ac_compile itself does not contain backslashes and begins
7234   # with a dollar sign (not a hyphen), so the echo should work correctly.
7235   # The option is referenced via a variable to avoid confusing sed.
7236   lt_compile=`echo "$ac_compile" | $SED \
7237   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7238   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7239   -e 's:$: $lt_compiler_flag:'`
7240   (eval echo "\"\$as_me:7240: $lt_compile\"" >&5)
7241   (eval "$lt_compile" 2>conftest.err)
7242   ac_status=$?
7243   cat conftest.err >&5
7244   echo "$as_me:7244: \$? = $ac_status" >&5
7245   if (exit $ac_status) && test -s "$ac_outfile"; then
7246     # The compiler can only warn and ignore the option if not recognized
7247     # So say no if there are warnings other than the usual output.
7248     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7249     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7250     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7251       lt_cv_prog_compiler_rtti_exceptions=yes
7252     fi
7253   fi
7254   $RM conftest*
7255
7256fi
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7258$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7259
7260if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7261    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7262else
7263    :
7264fi
7265
7266fi
7267
7268
7269
7270
7271
7272
7273  lt_prog_compiler_wl=
7274lt_prog_compiler_pic=
7275lt_prog_compiler_static=
7276
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7278$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7279
7280  if test "$GCC" = yes; then
7281    lt_prog_compiler_wl='-Wl,'
7282    lt_prog_compiler_static='-static'
7283
7284    case $host_os in
7285      aix*)
7286      # All AIX code is PIC.
7287      if test "$host_cpu" = ia64; then
7288	# AIX 5 now supports IA64 processor
7289	lt_prog_compiler_static='-Bstatic'
7290      fi
7291      ;;
7292
7293    amigaos*)
7294      case $host_cpu in
7295      powerpc)
7296            # see comment about AmigaOS4 .so support
7297            lt_prog_compiler_pic='-fPIC'
7298        ;;
7299      m68k)
7300            # FIXME: we need at least 68020 code to build shared libraries, but
7301            # adding the `-m68020' flag to GCC prevents building anything better,
7302            # like `-m68040'.
7303            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7304        ;;
7305      esac
7306      ;;
7307
7308    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7309      # PIC is the default for these OSes.
7310      ;;
7311
7312    mingw* | cygwin* | pw32* | os2* | cegcc*)
7313      # This hack is so that the source file can tell whether it is being
7314      # built for inclusion in a dll (and should export symbols for example).
7315      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7316      # (--disable-auto-import) libraries
7317      lt_prog_compiler_pic='-DDLL_EXPORT'
7318      ;;
7319
7320    darwin* | rhapsody*)
7321      # PIC is the default on this platform
7322      # Common symbols not allowed in MH_DYLIB files
7323      lt_prog_compiler_pic='-fno-common'
7324      ;;
7325
7326    hpux*)
7327      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7328      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7329      # sets the default TLS model and affects inlining.
7330      case $host_cpu in
7331      hppa*64*)
7332	# +Z the default
7333	;;
7334      *)
7335	lt_prog_compiler_pic='-fPIC'
7336	;;
7337      esac
7338      ;;
7339
7340    interix[3-9]*)
7341      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7342      # Instead, we relocate shared libraries at runtime.
7343      ;;
7344
7345    msdosdjgpp*)
7346      # Just because we use GCC doesn't mean we suddenly get shared libraries
7347      # on systems that don't support them.
7348      lt_prog_compiler_can_build_shared=no
7349      enable_shared=no
7350      ;;
7351
7352    *nto* | *qnx*)
7353      # QNX uses GNU C++, but need to define -shared option too, otherwise
7354      # it will coredump.
7355      lt_prog_compiler_pic='-fPIC -shared'
7356      ;;
7357
7358    sysv4*MP*)
7359      if test -d /usr/nec; then
7360	lt_prog_compiler_pic=-Kconform_pic
7361      fi
7362      ;;
7363
7364    *)
7365      lt_prog_compiler_pic='-fPIC'
7366      ;;
7367    esac
7368  else
7369    # PORTME Check for flag to pass linker flags through the system compiler.
7370    case $host_os in
7371    aix*)
7372      lt_prog_compiler_wl='-Wl,'
7373      if test "$host_cpu" = ia64; then
7374	# AIX 5 now supports IA64 processor
7375	lt_prog_compiler_static='-Bstatic'
7376      else
7377	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7378      fi
7379      ;;
7380
7381    mingw* | cygwin* | pw32* | os2* | cegcc*)
7382      # This hack is so that the source file can tell whether it is being
7383      # built for inclusion in a dll (and should export symbols for example).
7384      lt_prog_compiler_pic='-DDLL_EXPORT'
7385      ;;
7386
7387    hpux9* | hpux10* | hpux11*)
7388      lt_prog_compiler_wl='-Wl,'
7389      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7390      # not for PA HP-UX.
7391      case $host_cpu in
7392      hppa*64*|ia64*)
7393	# +Z the default
7394	;;
7395      *)
7396	lt_prog_compiler_pic='+Z'
7397	;;
7398      esac
7399      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7400      lt_prog_compiler_static='${wl}-a ${wl}archive'
7401      ;;
7402
7403    irix5* | irix6* | nonstopux*)
7404      lt_prog_compiler_wl='-Wl,'
7405      # PIC (with -KPIC) is the default.
7406      lt_prog_compiler_static='-non_shared'
7407      ;;
7408
7409    linux* | k*bsd*-gnu)
7410      case $cc_basename in
7411      # old Intel for x86_64 which still supported -KPIC.
7412      ecc*)
7413	lt_prog_compiler_wl='-Wl,'
7414	lt_prog_compiler_pic='-KPIC'
7415	lt_prog_compiler_static='-static'
7416        ;;
7417      # icc used to be incompatible with GCC.
7418      # ICC 10 doesn't accept -KPIC any more.
7419      icc* | ifort*)
7420	lt_prog_compiler_wl='-Wl,'
7421	lt_prog_compiler_pic='-fPIC'
7422	lt_prog_compiler_static='-static'
7423        ;;
7424      # Lahey Fortran 8.1.
7425      lf95*)
7426	lt_prog_compiler_wl='-Wl,'
7427	lt_prog_compiler_pic='--shared'
7428	lt_prog_compiler_static='--static'
7429	;;
7430      pgcc* | pgf77* | pgf90* | pgf95*)
7431        # Portland Group compilers (*not* the Pentium gcc compiler,
7432	# which looks to be a dead project)
7433	lt_prog_compiler_wl='-Wl,'
7434	lt_prog_compiler_pic='-fpic'
7435	lt_prog_compiler_static='-Bstatic'
7436        ;;
7437      ccc*)
7438        lt_prog_compiler_wl='-Wl,'
7439        # All Alpha code is PIC.
7440        lt_prog_compiler_static='-non_shared'
7441        ;;
7442      xl*)
7443	# IBM XL C 8.0/Fortran 10.1 on PPC
7444	lt_prog_compiler_wl='-Wl,'
7445	lt_prog_compiler_pic='-qpic'
7446	lt_prog_compiler_static='-qstaticlink'
7447	;;
7448      *)
7449	case `$CC -V 2>&1 | sed 5q` in
7450	*Sun\ C*)
7451	  # Sun C 5.9
7452	  lt_prog_compiler_pic='-KPIC'
7453	  lt_prog_compiler_static='-Bstatic'
7454	  lt_prog_compiler_wl='-Wl,'
7455	  ;;
7456	*Sun\ F*)
7457	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7458	  lt_prog_compiler_pic='-KPIC'
7459	  lt_prog_compiler_static='-Bstatic'
7460	  lt_prog_compiler_wl=''
7461	  ;;
7462	esac
7463	;;
7464      esac
7465      ;;
7466
7467    newsos6)
7468      lt_prog_compiler_pic='-KPIC'
7469      lt_prog_compiler_static='-Bstatic'
7470      ;;
7471
7472    *nto* | *qnx*)
7473      # QNX uses GNU C++, but need to define -shared option too, otherwise
7474      # it will coredump.
7475      lt_prog_compiler_pic='-fPIC -shared'
7476      ;;
7477
7478    osf3* | osf4* | osf5*)
7479      lt_prog_compiler_wl='-Wl,'
7480      # All OSF/1 code is PIC.
7481      lt_prog_compiler_static='-non_shared'
7482      ;;
7483
7484    rdos*)
7485      lt_prog_compiler_static='-non_shared'
7486      ;;
7487
7488    solaris*)
7489      lt_prog_compiler_pic='-KPIC'
7490      lt_prog_compiler_static='-Bstatic'
7491      case $cc_basename in
7492      f77* | f90* | f95*)
7493	lt_prog_compiler_wl='-Qoption ld ';;
7494      *)
7495	lt_prog_compiler_wl='-Wl,';;
7496      esac
7497      ;;
7498
7499    sunos4*)
7500      lt_prog_compiler_wl='-Qoption ld '
7501      lt_prog_compiler_pic='-PIC'
7502      lt_prog_compiler_static='-Bstatic'
7503      ;;
7504
7505    sysv4 | sysv4.2uw2* | sysv4.3*)
7506      lt_prog_compiler_wl='-Wl,'
7507      lt_prog_compiler_pic='-KPIC'
7508      lt_prog_compiler_static='-Bstatic'
7509      ;;
7510
7511    sysv4*MP*)
7512      if test -d /usr/nec ;then
7513	lt_prog_compiler_pic='-Kconform_pic'
7514	lt_prog_compiler_static='-Bstatic'
7515      fi
7516      ;;
7517
7518    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7519      lt_prog_compiler_wl='-Wl,'
7520      lt_prog_compiler_pic='-KPIC'
7521      lt_prog_compiler_static='-Bstatic'
7522      ;;
7523
7524    unicos*)
7525      lt_prog_compiler_wl='-Wl,'
7526      lt_prog_compiler_can_build_shared=no
7527      ;;
7528
7529    uts4*)
7530      lt_prog_compiler_pic='-pic'
7531      lt_prog_compiler_static='-Bstatic'
7532      ;;
7533
7534    *)
7535      lt_prog_compiler_can_build_shared=no
7536      ;;
7537    esac
7538  fi
7539
7540case $host_os in
7541  # For platforms which do not support PIC, -DPIC is meaningless:
7542  *djgpp*)
7543    lt_prog_compiler_pic=
7544    ;;
7545  *)
7546    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7547    ;;
7548esac
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7550$as_echo "$lt_prog_compiler_pic" >&6; }
7551
7552
7553
7554
7555
7556
7557#
7558# Check to make sure the PIC flag actually works.
7559#
7560if test -n "$lt_prog_compiler_pic"; then
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7562$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7563if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  lt_cv_prog_compiler_pic_works=no
7567   ac_outfile=conftest.$ac_objext
7568   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7569   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7570   # Insert the option either (1) after the last *FLAGS variable, or
7571   # (2) before a word containing "conftest.", or (3) at the end.
7572   # Note that $ac_compile itself does not contain backslashes and begins
7573   # with a dollar sign (not a hyphen), so the echo should work correctly.
7574   # The option is referenced via a variable to avoid confusing sed.
7575   lt_compile=`echo "$ac_compile" | $SED \
7576   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7577   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7578   -e 's:$: $lt_compiler_flag:'`
7579   (eval echo "\"\$as_me:7579: $lt_compile\"" >&5)
7580   (eval "$lt_compile" 2>conftest.err)
7581   ac_status=$?
7582   cat conftest.err >&5
7583   echo "$as_me:7583: \$? = $ac_status" >&5
7584   if (exit $ac_status) && test -s "$ac_outfile"; then
7585     # The compiler can only warn and ignore the option if not recognized
7586     # So say no if there are warnings other than the usual output.
7587     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7588     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7589     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7590       lt_cv_prog_compiler_pic_works=yes
7591     fi
7592   fi
7593   $RM conftest*
7594
7595fi
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7597$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7598
7599if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7600    case $lt_prog_compiler_pic in
7601     "" | " "*) ;;
7602     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7603     esac
7604else
7605    lt_prog_compiler_pic=
7606     lt_prog_compiler_can_build_shared=no
7607fi
7608
7609fi
7610
7611
7612
7613
7614
7615
7616#
7617# Check to make sure the static flag actually works.
7618#
7619wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7621$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7622if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  lt_cv_prog_compiler_static_works=no
7626   save_LDFLAGS="$LDFLAGS"
7627   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7628   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7629   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7630     # The linker can only warn and ignore the option if not recognized
7631     # So say no if there are warnings
7632     if test -s conftest.err; then
7633       # Append any errors to the config.log.
7634       cat conftest.err 1>&5
7635       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7636       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7637       if diff conftest.exp conftest.er2 >/dev/null; then
7638         lt_cv_prog_compiler_static_works=yes
7639       fi
7640     else
7641       lt_cv_prog_compiler_static_works=yes
7642     fi
7643   fi
7644   $RM -r conftest*
7645   LDFLAGS="$save_LDFLAGS"
7646
7647fi
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7649$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7650
7651if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7652    :
7653else
7654    lt_prog_compiler_static=
7655fi
7656
7657
7658
7659
7660
7661
7662
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7664$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7665if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7666  $as_echo_n "(cached) " >&6
7667else
7668  lt_cv_prog_compiler_c_o=no
7669   $RM -r conftest 2>/dev/null
7670   mkdir conftest
7671   cd conftest
7672   mkdir out
7673   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7674
7675   lt_compiler_flag="-o out/conftest2.$ac_objext"
7676   # Insert the option either (1) after the last *FLAGS variable, or
7677   # (2) before a word containing "conftest.", or (3) at the end.
7678   # Note that $ac_compile itself does not contain backslashes and begins
7679   # with a dollar sign (not a hyphen), so the echo should work correctly.
7680   lt_compile=`echo "$ac_compile" | $SED \
7681   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7682   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7683   -e 's:$: $lt_compiler_flag:'`
7684   (eval echo "\"\$as_me:7684: $lt_compile\"" >&5)
7685   (eval "$lt_compile" 2>out/conftest.err)
7686   ac_status=$?
7687   cat out/conftest.err >&5
7688   echo "$as_me:7688: \$? = $ac_status" >&5
7689   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7690   then
7691     # The compiler can only warn and ignore the option if not recognized
7692     # So say no if there are warnings
7693     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7694     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7695     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7696       lt_cv_prog_compiler_c_o=yes
7697     fi
7698   fi
7699   chmod u+w . 2>&5
7700   $RM conftest*
7701   # SGI C++ compiler will create directory out/ii_files/ for
7702   # template instantiation
7703   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7704   $RM out/* && rmdir out
7705   cd ..
7706   $RM -r conftest
7707   $RM conftest*
7708
7709fi
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7711$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7712
7713
7714
7715
7716
7717
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7719$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7720if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  lt_cv_prog_compiler_c_o=no
7724   $RM -r conftest 2>/dev/null
7725   mkdir conftest
7726   cd conftest
7727   mkdir out
7728   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7729
7730   lt_compiler_flag="-o out/conftest2.$ac_objext"
7731   # Insert the option either (1) after the last *FLAGS variable, or
7732   # (2) before a word containing "conftest.", or (3) at the end.
7733   # Note that $ac_compile itself does not contain backslashes and begins
7734   # with a dollar sign (not a hyphen), so the echo should work correctly.
7735   lt_compile=`echo "$ac_compile" | $SED \
7736   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7737   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7738   -e 's:$: $lt_compiler_flag:'`
7739   (eval echo "\"\$as_me:7739: $lt_compile\"" >&5)
7740   (eval "$lt_compile" 2>out/conftest.err)
7741   ac_status=$?
7742   cat out/conftest.err >&5
7743   echo "$as_me:7743: \$? = $ac_status" >&5
7744   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7745   then
7746     # The compiler can only warn and ignore the option if not recognized
7747     # So say no if there are warnings
7748     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7749     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7750     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7751       lt_cv_prog_compiler_c_o=yes
7752     fi
7753   fi
7754   chmod u+w . 2>&5
7755   $RM conftest*
7756   # SGI C++ compiler will create directory out/ii_files/ for
7757   # template instantiation
7758   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7759   $RM out/* && rmdir out
7760   cd ..
7761   $RM -r conftest
7762   $RM conftest*
7763
7764fi
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7766$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7767
7768
7769
7770
7771hard_links="nottested"
7772if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7773  # do not overwrite the value of need_locks provided by the user
7774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7775$as_echo_n "checking if we can lock with hard links... " >&6; }
7776  hard_links=yes
7777  $RM conftest*
7778  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7779  touch conftest.a
7780  ln conftest.a conftest.b 2>&5 || hard_links=no
7781  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7783$as_echo "$hard_links" >&6; }
7784  if test "$hard_links" = no; then
7785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7786$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7787    need_locks=warn
7788  fi
7789else
7790  need_locks=no
7791fi
7792
7793
7794
7795
7796
7797
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7799$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7800
7801  runpath_var=
7802  allow_undefined_flag=
7803  always_export_symbols=no
7804  archive_cmds=
7805  archive_expsym_cmds=
7806  compiler_needs_object=no
7807  enable_shared_with_static_runtimes=no
7808  export_dynamic_flag_spec=
7809  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7810  hardcode_automatic=no
7811  hardcode_direct=no
7812  hardcode_direct_absolute=no
7813  hardcode_libdir_flag_spec=
7814  hardcode_libdir_flag_spec_ld=
7815  hardcode_libdir_separator=
7816  hardcode_minus_L=no
7817  hardcode_shlibpath_var=unsupported
7818  inherit_rpath=no
7819  link_all_deplibs=unknown
7820  module_cmds=
7821  module_expsym_cmds=
7822  old_archive_from_new_cmds=
7823  old_archive_from_expsyms_cmds=
7824  thread_safe_flag_spec=
7825  whole_archive_flag_spec=
7826  # include_expsyms should be a list of space-separated symbols to be *always*
7827  # included in the symbol list
7828  include_expsyms=
7829  # exclude_expsyms can be an extended regexp of symbols to exclude
7830  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7831  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7832  # as well as any symbol that contains `d'.
7833  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7834  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7835  # platforms (ab)use it in PIC code, but their linkers get confused if
7836  # the symbol is explicitly referenced.  Since portable code cannot
7837  # rely on this symbol name, it's probably fine to never include it in
7838  # preloaded symbol tables.
7839  # Exclude shared library initialization/finalization symbols.
7840  extract_expsyms_cmds=
7841
7842  case $host_os in
7843  cygwin* | mingw* | pw32* | cegcc*)
7844    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7845    # When not using gcc, we currently assume that we are using
7846    # Microsoft Visual C++.
7847    if test "$GCC" != yes; then
7848      with_gnu_ld=no
7849    fi
7850    ;;
7851  interix*)
7852    # we just hope/assume this is gcc and not c89 (= MSVC++)
7853    with_gnu_ld=yes
7854    ;;
7855  openbsd*)
7856    with_gnu_ld=no
7857    ;;
7858  esac
7859
7860  ld_shlibs=yes
7861  if test "$with_gnu_ld" = yes; then
7862    # If archive_cmds runs LD, not CC, wlarc should be empty
7863    wlarc='${wl}'
7864
7865    # Set some defaults for GNU ld with shared library support. These
7866    # are reset later if shared libraries are not supported. Putting them
7867    # here allows them to be overridden if necessary.
7868    runpath_var=LD_RUN_PATH
7869    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7870    export_dynamic_flag_spec='${wl}--export-dynamic'
7871    # ancient GNU ld didn't support --whole-archive et. al.
7872    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7873      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7874    else
7875      whole_archive_flag_spec=
7876    fi
7877    supports_anon_versioning=no
7878    case `$LD -v 2>&1` in
7879      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7880      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7881      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7882      *\ 2.11.*) ;; # other 2.11 versions
7883      *) supports_anon_versioning=yes ;;
7884    esac
7885
7886    # See if GNU ld supports shared libraries.
7887    case $host_os in
7888    aix[3-9]*)
7889      # On AIX/PPC, the GNU linker is very broken
7890      if test "$host_cpu" != ia64; then
7891	ld_shlibs=no
7892	cat <<_LT_EOF 1>&2
7893
7894*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7895*** to be unable to reliably create shared libraries on AIX.
7896*** Therefore, libtool is disabling shared libraries support.  If you
7897*** really care for shared libraries, you may want to modify your PATH
7898*** so that a non-GNU linker is found, and then restart.
7899
7900_LT_EOF
7901      fi
7902      ;;
7903
7904    amigaos*)
7905      case $host_cpu in
7906      powerpc)
7907            # see comment about AmigaOS4 .so support
7908            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7909            archive_expsym_cmds=''
7910        ;;
7911      m68k)
7912            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)'
7913            hardcode_libdir_flag_spec='-L$libdir'
7914            hardcode_minus_L=yes
7915        ;;
7916      esac
7917      ;;
7918
7919    beos*)
7920      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7921	allow_undefined_flag=unsupported
7922	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7923	# support --undefined.  This deserves some investigation.  FIXME
7924	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7925      else
7926	ld_shlibs=no
7927      fi
7928      ;;
7929
7930    cygwin* | mingw* | pw32* | cegcc*)
7931      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7932      # as there is no search path for DLLs.
7933      hardcode_libdir_flag_spec='-L$libdir'
7934      allow_undefined_flag=unsupported
7935      always_export_symbols=no
7936      enable_shared_with_static_runtimes=yes
7937      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7938
7939      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7940        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7941	# If the export-symbols file already is a .def file (1st line
7942	# is EXPORTS), use it as is; otherwise, prepend...
7943	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7944	  cp $export_symbols $output_objdir/$soname.def;
7945	else
7946	  echo EXPORTS > $output_objdir/$soname.def;
7947	  cat $export_symbols >> $output_objdir/$soname.def;
7948	fi~
7949	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7950      else
7951	ld_shlibs=no
7952      fi
7953      ;;
7954
7955    interix[3-9]*)
7956      hardcode_direct=no
7957      hardcode_shlibpath_var=no
7958      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7959      export_dynamic_flag_spec='${wl}-E'
7960      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7961      # Instead, shared libraries are loaded at an image base (0x10000000 by
7962      # default) and relocated if they conflict, which is a slow very memory
7963      # consuming and fragmenting process.  To avoid this, we pick a random,
7964      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7965      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7966      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7967      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'
7968      ;;
7969
7970    gnu* | linux* | tpf* | k*bsd*-gnu)
7971      tmp_diet=no
7972      if test "$host_os" = linux-dietlibc; then
7973	case $cc_basename in
7974	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7975	esac
7976      fi
7977      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7978	 && test "$tmp_diet" = no
7979      then
7980	tmp_addflag=
7981	tmp_sharedflag='-shared'
7982	case $cc_basename,$host_cpu in
7983        pgcc*)				# Portland Group C compiler
7984	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7985	  tmp_addflag=' $pic_flag'
7986	  ;;
7987	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7988	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7989	  tmp_addflag=' $pic_flag -Mnomain' ;;
7990	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7991	  tmp_addflag=' -i_dynamic' ;;
7992	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7993	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7994	ifc* | ifort*)			# Intel Fortran compiler
7995	  tmp_addflag=' -nofor_main' ;;
7996	lf95*)				# Lahey Fortran 8.1
7997	  whole_archive_flag_spec=
7998	  tmp_sharedflag='--shared' ;;
7999	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8000	  tmp_sharedflag='-qmkshrobj'
8001	  tmp_addflag= ;;
8002	esac
8003	case `$CC -V 2>&1 | sed 5q` in
8004	*Sun\ C*)			# Sun C 5.9
8005	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8006	  compiler_needs_object=yes
8007	  tmp_sharedflag='-G' ;;
8008	*Sun\ F*)			# Sun Fortran 8.3
8009	  tmp_sharedflag='-G' ;;
8010	esac
8011	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8012
8013        if test "x$supports_anon_versioning" = xyes; then
8014          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8015	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8016	    echo "local: *; };" >> $output_objdir/$libname.ver~
8017	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8018        fi
8019
8020	case $cc_basename in
8021	xlf*)
8022	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8023	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8024	  hardcode_libdir_flag_spec=
8025	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8026	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8027	  if test "x$supports_anon_versioning" = xyes; then
8028	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8029	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8030	      echo "local: *; };" >> $output_objdir/$libname.ver~
8031	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8032	  fi
8033	  ;;
8034	esac
8035      else
8036        ld_shlibs=no
8037      fi
8038      ;;
8039
8040    netbsd*)
8041      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8042	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8043	wlarc=
8044      else
8045	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8047      fi
8048      ;;
8049
8050    solaris*)
8051      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8052	ld_shlibs=no
8053	cat <<_LT_EOF 1>&2
8054
8055*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8056*** create shared libraries on Solaris systems.  Therefore, libtool
8057*** is disabling shared libraries support.  We urge you to upgrade GNU
8058*** binutils to release 2.9.1 or newer.  Another option is to modify
8059*** your PATH or compiler configuration so that the native linker is
8060*** used, and then restart.
8061
8062_LT_EOF
8063      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8064	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8065	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8066      else
8067	ld_shlibs=no
8068      fi
8069      ;;
8070
8071    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8072      case `$LD -v 2>&1` in
8073        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8074	ld_shlibs=no
8075	cat <<_LT_EOF 1>&2
8076
8077*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8078*** reliably create shared libraries on SCO systems.  Therefore, libtool
8079*** is disabling shared libraries support.  We urge you to upgrade GNU
8080*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8081*** your PATH or compiler configuration so that the native linker is
8082*** used, and then restart.
8083
8084_LT_EOF
8085	;;
8086	*)
8087	  # For security reasons, it is highly recommended that you always
8088	  # use absolute paths for naming shared libraries, and exclude the
8089	  # DT_RUNPATH tag from executables and libraries.  But doing so
8090	  # requires that you compile everything twice, which is a pain.
8091	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8092	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8093	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8094	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8095	  else
8096	    ld_shlibs=no
8097	  fi
8098	;;
8099      esac
8100      ;;
8101
8102    sunos4*)
8103      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8104      wlarc=
8105      hardcode_direct=yes
8106      hardcode_shlibpath_var=no
8107      ;;
8108
8109    *)
8110      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8111	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8113      else
8114	ld_shlibs=no
8115      fi
8116      ;;
8117    esac
8118
8119    if test "$ld_shlibs" = no; then
8120      runpath_var=
8121      hardcode_libdir_flag_spec=
8122      export_dynamic_flag_spec=
8123      whole_archive_flag_spec=
8124    fi
8125  else
8126    # PORTME fill in a description of your system's linker (not GNU ld)
8127    case $host_os in
8128    aix3*)
8129      allow_undefined_flag=unsupported
8130      always_export_symbols=yes
8131      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'
8132      # Note: this linker hardcodes the directories in LIBPATH if there
8133      # are no directories specified by -L.
8134      hardcode_minus_L=yes
8135      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8136	# Neither direct hardcoding nor static linking is supported with a
8137	# broken collect2.
8138	hardcode_direct=unsupported
8139      fi
8140      ;;
8141
8142    aix[4-9]*)
8143      if test "$host_cpu" = ia64; then
8144	# On IA64, the linker does run time linking by default, so we don't
8145	# have to do anything special.
8146	aix_use_runtimelinking=no
8147	exp_sym_flag='-Bexport'
8148	no_entry_flag=""
8149      else
8150	# If we're using GNU nm, then we don't want the "-C" option.
8151	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8152	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8153	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8154	else
8155	  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'
8156	fi
8157	aix_use_runtimelinking=no
8158
8159	# Test if we are trying to use run time linking or normal
8160	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8161	# need to do runtime linking.
8162	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8163	  for ld_flag in $LDFLAGS; do
8164	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8165	    aix_use_runtimelinking=yes
8166	    break
8167	  fi
8168	  done
8169	  ;;
8170	esac
8171
8172	exp_sym_flag='-bexport'
8173	no_entry_flag='-bnoentry'
8174      fi
8175
8176      # When large executables or shared objects are built, AIX ld can
8177      # have problems creating the table of contents.  If linking a library
8178      # or program results in "error TOC overflow" add -mminimal-toc to
8179      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8180      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8181
8182      archive_cmds=''
8183      hardcode_direct=yes
8184      hardcode_direct_absolute=yes
8185      hardcode_libdir_separator=':'
8186      link_all_deplibs=yes
8187      file_list_spec='${wl}-f,'
8188
8189      if test "$GCC" = yes; then
8190	case $host_os in aix4.[012]|aix4.[012].*)
8191	# We only want to do this on AIX 4.2 and lower, the check
8192	# below for broken collect2 doesn't work under 4.3+
8193	  collect2name=`${CC} -print-prog-name=collect2`
8194	  if test -f "$collect2name" &&
8195	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8196	  then
8197	  # We have reworked collect2
8198	  :
8199	  else
8200	  # We have old collect2
8201	  hardcode_direct=unsupported
8202	  # It fails to find uninstalled libraries when the uninstalled
8203	  # path is not listed in the libpath.  Setting hardcode_minus_L
8204	  # to unsupported forces relinking
8205	  hardcode_minus_L=yes
8206	  hardcode_libdir_flag_spec='-L$libdir'
8207	  hardcode_libdir_separator=
8208	  fi
8209	  ;;
8210	esac
8211	shared_flag='-shared'
8212	if test "$aix_use_runtimelinking" = yes; then
8213	  shared_flag="$shared_flag "'${wl}-G'
8214	fi
8215      else
8216	# not using gcc
8217	if test "$host_cpu" = ia64; then
8218	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8219	# chokes on -Wl,-G. The following line is correct:
8220	  shared_flag='-G'
8221	else
8222	  if test "$aix_use_runtimelinking" = yes; then
8223	    shared_flag='${wl}-G'
8224	  else
8225	    shared_flag='${wl}-bM:SRE'
8226	  fi
8227	fi
8228      fi
8229
8230      export_dynamic_flag_spec='${wl}-bexpall'
8231      # It seems that -bexpall does not export symbols beginning with
8232      # underscore (_), so it is better to generate a list of symbols to export.
8233      always_export_symbols=yes
8234      if test "$aix_use_runtimelinking" = yes; then
8235	# Warning - without using the other runtime loading flags (-brtl),
8236	# -berok will link without error, but may produce a broken library.
8237	allow_undefined_flag='-berok'
8238        # Determine the default libpath from the value encoded in an
8239        # empty executable.
8240        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242
8243int
8244main ()
8245{
8246
8247  ;
8248  return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_link "$LINENO"; then :
8252
8253lt_aix_libpath_sed='
8254    /Import File Strings/,/^$/ {
8255	/^0/ {
8256	    s/^0  *\(.*\)$/\1/
8257	    p
8258	}
8259    }'
8260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8261# Check for a 64-bit object if we didn't find anything.
8262if test -z "$aix_libpath"; then
8263  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8264fi
8265fi
8266rm -f core conftest.err conftest.$ac_objext \
8267    conftest$ac_exeext conftest.$ac_ext
8268if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8269
8270        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8271        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8272      else
8273	if test "$host_cpu" = ia64; then
8274	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8275	  allow_undefined_flag="-z nodefs"
8276	  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"
8277	else
8278	 # Determine the default libpath from the value encoded in an
8279	 # empty executable.
8280	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281/* end confdefs.h.  */
8282
8283int
8284main ()
8285{
8286
8287  ;
8288  return 0;
8289}
8290_ACEOF
8291if ac_fn_c_try_link "$LINENO"; then :
8292
8293lt_aix_libpath_sed='
8294    /Import File Strings/,/^$/ {
8295	/^0/ {
8296	    s/^0  *\(.*\)$/\1/
8297	    p
8298	}
8299    }'
8300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8301# Check for a 64-bit object if we didn't find anything.
8302if test -z "$aix_libpath"; then
8303  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8304fi
8305fi
8306rm -f core conftest.err conftest.$ac_objext \
8307    conftest$ac_exeext conftest.$ac_ext
8308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8309
8310	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8311	  # Warning - without using the other run time loading flags,
8312	  # -berok will link without error, but may produce a broken library.
8313	  no_undefined_flag=' ${wl}-bernotok'
8314	  allow_undefined_flag=' ${wl}-berok'
8315	  # Exported symbols can be pulled into shared objects from archives
8316	  whole_archive_flag_spec='$convenience'
8317	  archive_cmds_need_lc=yes
8318	  # This is similar to how AIX traditionally builds its shared libraries.
8319	  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'
8320	fi
8321      fi
8322      ;;
8323
8324    amigaos*)
8325      case $host_cpu in
8326      powerpc)
8327            # see comment about AmigaOS4 .so support
8328            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329            archive_expsym_cmds=''
8330        ;;
8331      m68k)
8332            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)'
8333            hardcode_libdir_flag_spec='-L$libdir'
8334            hardcode_minus_L=yes
8335        ;;
8336      esac
8337      ;;
8338
8339    bsdi[45]*)
8340      export_dynamic_flag_spec=-rdynamic
8341      ;;
8342
8343    cygwin* | mingw* | pw32* | cegcc*)
8344      # When not using gcc, we currently assume that we are using
8345      # Microsoft Visual C++.
8346      # hardcode_libdir_flag_spec is actually meaningless, as there is
8347      # no search path for DLLs.
8348      hardcode_libdir_flag_spec=' '
8349      allow_undefined_flag=unsupported
8350      # Tell ltmain to make .lib files, not .a files.
8351      libext=lib
8352      # Tell ltmain to make .dll files, not .so files.
8353      shrext_cmds=".dll"
8354      # FIXME: Setting linknames here is a bad hack.
8355      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8356      # The linker will automatically build a .lib file if we build a DLL.
8357      old_archive_from_new_cmds='true'
8358      # FIXME: Should let the user specify the lib program.
8359      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8360      fix_srcfile_path='`cygpath -w "$srcfile"`'
8361      enable_shared_with_static_runtimes=yes
8362      ;;
8363
8364    darwin* | rhapsody*)
8365
8366
8367  archive_cmds_need_lc=no
8368  hardcode_direct=no
8369  hardcode_automatic=yes
8370  hardcode_shlibpath_var=unsupported
8371  whole_archive_flag_spec=''
8372  link_all_deplibs=yes
8373  allow_undefined_flag="$_lt_dar_allow_undefined"
8374  case $cc_basename in
8375     ifort*) _lt_dar_can_shared=yes ;;
8376     *) _lt_dar_can_shared=$GCC ;;
8377  esac
8378  if test "$_lt_dar_can_shared" = "yes"; then
8379    output_verbose_link_cmd=echo
8380    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8381    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8382    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}"
8383    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}"
8384
8385  else
8386  ld_shlibs=no
8387  fi
8388
8389      ;;
8390
8391    dgux*)
8392      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393      hardcode_libdir_flag_spec='-L$libdir'
8394      hardcode_shlibpath_var=no
8395      ;;
8396
8397    freebsd1*)
8398      ld_shlibs=no
8399      ;;
8400
8401    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8402    # support.  Future versions do this automatically, but an explicit c++rt0.o
8403    # does not break anything, and helps significantly (at the cost of a little
8404    # extra space).
8405    freebsd2.2*)
8406      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8407      hardcode_libdir_flag_spec='-R$libdir'
8408      hardcode_direct=yes
8409      hardcode_shlibpath_var=no
8410      ;;
8411
8412    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8413    freebsd2*)
8414      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8415      hardcode_direct=yes
8416      hardcode_minus_L=yes
8417      hardcode_shlibpath_var=no
8418      ;;
8419
8420    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8421    freebsd* | dragonfly*)
8422      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8423      hardcode_libdir_flag_spec='-R$libdir'
8424      hardcode_direct=yes
8425      hardcode_shlibpath_var=no
8426      ;;
8427
8428    hpux9*)
8429      if test "$GCC" = yes; then
8430	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'
8431      else
8432	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'
8433      fi
8434      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8435      hardcode_libdir_separator=:
8436      hardcode_direct=yes
8437
8438      # hardcode_minus_L: Not really in the search PATH,
8439      # but as the default location of the library.
8440      hardcode_minus_L=yes
8441      export_dynamic_flag_spec='${wl}-E'
8442      ;;
8443
8444    hpux10*)
8445      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8446	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8447      else
8448	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8449      fi
8450      if test "$with_gnu_ld" = no; then
8451	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8452	hardcode_libdir_flag_spec_ld='+b $libdir'
8453	hardcode_libdir_separator=:
8454	hardcode_direct=yes
8455	hardcode_direct_absolute=yes
8456	export_dynamic_flag_spec='${wl}-E'
8457	# hardcode_minus_L: Not really in the search PATH,
8458	# but as the default location of the library.
8459	hardcode_minus_L=yes
8460      fi
8461      ;;
8462
8463    hpux11*)
8464      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8465	case $host_cpu in
8466	hppa*64*)
8467	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468	  ;;
8469	ia64*)
8470	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8471	  ;;
8472	*)
8473	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8474	  ;;
8475	esac
8476      else
8477	case $host_cpu in
8478	hppa*64*)
8479	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8480	  ;;
8481	ia64*)
8482	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8483	  ;;
8484	*)
8485	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8486	  ;;
8487	esac
8488      fi
8489      if test "$with_gnu_ld" = no; then
8490	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8491	hardcode_libdir_separator=:
8492
8493	case $host_cpu in
8494	hppa*64*|ia64*)
8495	  hardcode_direct=no
8496	  hardcode_shlibpath_var=no
8497	  ;;
8498	*)
8499	  hardcode_direct=yes
8500	  hardcode_direct_absolute=yes
8501	  export_dynamic_flag_spec='${wl}-E'
8502
8503	  # hardcode_minus_L: Not really in the search PATH,
8504	  # but as the default location of the library.
8505	  hardcode_minus_L=yes
8506	  ;;
8507	esac
8508      fi
8509      ;;
8510
8511    irix5* | irix6* | nonstopux*)
8512      if test "$GCC" = yes; then
8513	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8514	# Try to use the -exported_symbol ld option, if it does not
8515	# work, assume that -exports_file does not work either and
8516	# implicitly export all symbols.
8517        save_LDFLAGS="$LDFLAGS"
8518        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8519        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h.  */
8521int foo(void) {}
8522_ACEOF
8523if ac_fn_c_try_link "$LINENO"; then :
8524  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8525
8526fi
8527rm -f core conftest.err conftest.$ac_objext \
8528    conftest$ac_exeext conftest.$ac_ext
8529        LDFLAGS="$save_LDFLAGS"
8530      else
8531	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8532	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8533      fi
8534      archive_cmds_need_lc='no'
8535      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536      hardcode_libdir_separator=:
8537      inherit_rpath=yes
8538      link_all_deplibs=yes
8539      ;;
8540
8541    netbsd*)
8542      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8543	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8544      else
8545	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8546      fi
8547      hardcode_libdir_flag_spec='-R$libdir'
8548      hardcode_direct=yes
8549      hardcode_shlibpath_var=no
8550      ;;
8551
8552    newsos6)
8553      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8554      hardcode_direct=yes
8555      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8556      hardcode_libdir_separator=:
8557      hardcode_shlibpath_var=no
8558      ;;
8559
8560    *nto* | *qnx*)
8561      ;;
8562
8563    openbsd*)
8564      if test -f /usr/libexec/ld.so; then
8565	hardcode_direct=yes
8566	hardcode_shlibpath_var=no
8567	hardcode_direct_absolute=yes
8568	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8569	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8570	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8571	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8572	  export_dynamic_flag_spec='${wl}-E'
8573	else
8574	  case $host_os in
8575	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8576	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8577	     hardcode_libdir_flag_spec='-R$libdir'
8578	     ;;
8579	   *)
8580	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8581	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8582	     ;;
8583	  esac
8584	fi
8585      else
8586	ld_shlibs=no
8587      fi
8588      ;;
8589
8590    os2*)
8591      hardcode_libdir_flag_spec='-L$libdir'
8592      hardcode_minus_L=yes
8593      allow_undefined_flag=unsupported
8594      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'
8595      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8596      ;;
8597
8598    osf3*)
8599      if test "$GCC" = yes; then
8600	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8601	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8602      else
8603	allow_undefined_flag=' -expect_unresolved \*'
8604	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8605      fi
8606      archive_cmds_need_lc='no'
8607      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8608      hardcode_libdir_separator=:
8609      ;;
8610
8611    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8612      if test "$GCC" = yes; then
8613	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8614	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8615	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8616      else
8617	allow_undefined_flag=' -expect_unresolved \*'
8618	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8619	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~
8620	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8621
8622	# Both c and cxx compiler support -rpath directly
8623	hardcode_libdir_flag_spec='-rpath $libdir'
8624      fi
8625      archive_cmds_need_lc='no'
8626      hardcode_libdir_separator=:
8627      ;;
8628
8629    solaris*)
8630      no_undefined_flag=' -z defs'
8631      if test "$GCC" = yes; then
8632	wlarc='${wl}'
8633	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8634	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8635	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8636      else
8637	case `$CC -V 2>&1` in
8638	*"Compilers 5.0"*)
8639	  wlarc=''
8640	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8642	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8643	  ;;
8644	*)
8645	  wlarc='${wl}'
8646	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8647	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8648	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8649	  ;;
8650	esac
8651      fi
8652      hardcode_libdir_flag_spec='-R$libdir'
8653      hardcode_shlibpath_var=no
8654      case $host_os in
8655      solaris2.[0-5] | solaris2.[0-5].*) ;;
8656      *)
8657	# The compiler driver will combine and reorder linker options,
8658	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8659	# but is careful enough not to reorder.
8660	# Supported since Solaris 2.6 (maybe 2.5.1?)
8661	if test "$GCC" = yes; then
8662	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8663	else
8664	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8665	fi
8666	;;
8667      esac
8668      link_all_deplibs=yes
8669      ;;
8670
8671    sunos4*)
8672      if test "x$host_vendor" = xsequent; then
8673	# Use $CC to link under sequent, because it throws in some extra .o
8674	# files that make .init and .fini sections work.
8675	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8676      else
8677	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8678      fi
8679      hardcode_libdir_flag_spec='-L$libdir'
8680      hardcode_direct=yes
8681      hardcode_minus_L=yes
8682      hardcode_shlibpath_var=no
8683      ;;
8684
8685    sysv4)
8686      case $host_vendor in
8687	sni)
8688	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689	  hardcode_direct=yes # is this really true???
8690	;;
8691	siemens)
8692	  ## LD is ld it makes a PLAMLIB
8693	  ## CC just makes a GrossModule.
8694	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8695	  reload_cmds='$CC -r -o $output$reload_objs'
8696	  hardcode_direct=no
8697        ;;
8698	motorola)
8699	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8700	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8701	;;
8702      esac
8703      runpath_var='LD_RUN_PATH'
8704      hardcode_shlibpath_var=no
8705      ;;
8706
8707    sysv4.3*)
8708      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709      hardcode_shlibpath_var=no
8710      export_dynamic_flag_spec='-Bexport'
8711      ;;
8712
8713    sysv4*MP*)
8714      if test -d /usr/nec; then
8715	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716	hardcode_shlibpath_var=no
8717	runpath_var=LD_RUN_PATH
8718	hardcode_runpath_var=yes
8719	ld_shlibs=yes
8720      fi
8721      ;;
8722
8723    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8724      no_undefined_flag='${wl}-z,text'
8725      archive_cmds_need_lc=no
8726      hardcode_shlibpath_var=no
8727      runpath_var='LD_RUN_PATH'
8728
8729      if test "$GCC" = yes; then
8730	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8731	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8732      else
8733	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8734	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8735      fi
8736      ;;
8737
8738    sysv5* | sco3.2v5* | sco5v6*)
8739      # Note: We can NOT use -z defs as we might desire, because we do not
8740      # link with -lc, and that would cause any symbols used from libc to
8741      # always be unresolved, which means just about no library would
8742      # ever link correctly.  If we're not using GNU ld we use -z text
8743      # though, which does catch some bad symbols but isn't as heavy-handed
8744      # as -z defs.
8745      no_undefined_flag='${wl}-z,text'
8746      allow_undefined_flag='${wl}-z,nodefs'
8747      archive_cmds_need_lc=no
8748      hardcode_shlibpath_var=no
8749      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8750      hardcode_libdir_separator=':'
8751      link_all_deplibs=yes
8752      export_dynamic_flag_spec='${wl}-Bexport'
8753      runpath_var='LD_RUN_PATH'
8754
8755      if test "$GCC" = yes; then
8756	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8757	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8758      else
8759	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8760	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8761      fi
8762      ;;
8763
8764    uts4*)
8765      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766      hardcode_libdir_flag_spec='-L$libdir'
8767      hardcode_shlibpath_var=no
8768      ;;
8769
8770    *)
8771      ld_shlibs=no
8772      ;;
8773    esac
8774
8775    if test x$host_vendor = xsni; then
8776      case $host in
8777      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8778	export_dynamic_flag_spec='${wl}-Blargedynsym'
8779	;;
8780      esac
8781    fi
8782  fi
8783
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8785$as_echo "$ld_shlibs" >&6; }
8786test "$ld_shlibs" = no && can_build_shared=no
8787
8788with_gnu_ld=$with_gnu_ld
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804#
8805# Do we need to explicitly link libc?
8806#
8807case "x$archive_cmds_need_lc" in
8808x|xyes)
8809  # Assume -lc should be added
8810  archive_cmds_need_lc=yes
8811
8812  if test "$enable_shared" = yes && test "$GCC" = yes; then
8813    case $archive_cmds in
8814    *'~'*)
8815      # FIXME: we may have to deal with multi-command sequences.
8816      ;;
8817    '$CC '*)
8818      # Test whether the compiler implicitly links with -lc since on some
8819      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8820      # to ld, don't add -lc before -lgcc.
8821      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8822$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8823      $RM conftest*
8824      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8825
8826      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8827  (eval $ac_compile) 2>&5
8828  ac_status=$?
8829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8830  test $ac_status = 0; } 2>conftest.err; then
8831        soname=conftest
8832        lib=conftest
8833        libobjs=conftest.$ac_objext
8834        deplibs=
8835        wl=$lt_prog_compiler_wl
8836	pic_flag=$lt_prog_compiler_pic
8837        compiler_flags=-v
8838        linker_flags=-v
8839        verstring=
8840        output_objdir=.
8841        libname=conftest
8842        lt_save_allow_undefined_flag=$allow_undefined_flag
8843        allow_undefined_flag=
8844        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8845  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8846  ac_status=$?
8847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8848  test $ac_status = 0; }
8849        then
8850	  archive_cmds_need_lc=no
8851        else
8852	  archive_cmds_need_lc=yes
8853        fi
8854        allow_undefined_flag=$lt_save_allow_undefined_flag
8855      else
8856        cat conftest.err 1>&5
8857      fi
8858      $RM conftest*
8859      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8860$as_echo "$archive_cmds_need_lc" >&6; }
8861      ;;
8862    esac
8863  fi
8864  ;;
8865esac
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9024$as_echo_n "checking dynamic linker characteristics... " >&6; }
9025
9026if test "$GCC" = yes; then
9027  case $host_os in
9028    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9029    *) lt_awk_arg="/^libraries:/" ;;
9030  esac
9031  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9032  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9033    # if the path contains ";" then we assume it to be the separator
9034    # otherwise default to the standard path separator (i.e. ":") - it is
9035    # assumed that no part of a normal pathname contains ";" but that should
9036    # okay in the real world where ";" in dirpaths is itself problematic.
9037    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9038  else
9039    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9040  fi
9041  # Ok, now we have the path, separated by spaces, we can step through it
9042  # and add multilib dir if necessary.
9043  lt_tmp_lt_search_path_spec=
9044  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9045  for lt_sys_path in $lt_search_path_spec; do
9046    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9047      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9048    else
9049      test -d "$lt_sys_path" && \
9050	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9051    fi
9052  done
9053  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9054BEGIN {RS=" "; FS="/|\n";} {
9055  lt_foo="";
9056  lt_count=0;
9057  for (lt_i = NF; lt_i > 0; lt_i--) {
9058    if ($lt_i != "" && $lt_i != ".") {
9059      if ($lt_i == "..") {
9060        lt_count++;
9061      } else {
9062        if (lt_count == 0) {
9063          lt_foo="/" $lt_i lt_foo;
9064        } else {
9065          lt_count--;
9066        }
9067      }
9068    }
9069  }
9070  if (lt_foo != "") { lt_freq[lt_foo]++; }
9071  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9072}'`
9073  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9074else
9075  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9076fi
9077library_names_spec=
9078libname_spec='lib$name'
9079soname_spec=
9080shrext_cmds=".so"
9081postinstall_cmds=
9082postuninstall_cmds=
9083finish_cmds=
9084finish_eval=
9085shlibpath_var=
9086shlibpath_overrides_runpath=unknown
9087version_type=none
9088dynamic_linker="$host_os ld.so"
9089sys_lib_dlsearch_path_spec="/lib /usr/lib"
9090need_lib_prefix=unknown
9091hardcode_into_libs=no
9092
9093# when you set need_version to no, make sure it does not cause -set_version
9094# flags to be left without arguments
9095need_version=unknown
9096
9097case $host_os in
9098aix3*)
9099  version_type=linux
9100  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9101  shlibpath_var=LIBPATH
9102
9103  # AIX 3 has no versioning support, so we append a major version to the name.
9104  soname_spec='${libname}${release}${shared_ext}$major'
9105  ;;
9106
9107aix[4-9]*)
9108  version_type=linux
9109  need_lib_prefix=no
9110  need_version=no
9111  hardcode_into_libs=yes
9112  if test "$host_cpu" = ia64; then
9113    # AIX 5 supports IA64
9114    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9115    shlibpath_var=LD_LIBRARY_PATH
9116  else
9117    # With GCC up to 2.95.x, collect2 would create an import file
9118    # for dependence libraries.  The import file would start with
9119    # the line `#! .'.  This would cause the generated library to
9120    # depend on `.', always an invalid library.  This was fixed in
9121    # development snapshots of GCC prior to 3.0.
9122    case $host_os in
9123      aix4 | aix4.[01] | aix4.[01].*)
9124      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9125	   echo ' yes '
9126	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9127	:
9128      else
9129	can_build_shared=no
9130      fi
9131      ;;
9132    esac
9133    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9134    # soname into executable. Probably we can add versioning support to
9135    # collect2, so additional links can be useful in future.
9136    if test "$aix_use_runtimelinking" = yes; then
9137      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9138      # instead of lib<name>.a to let people know that these are not
9139      # typical AIX shared libraries.
9140      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141    else
9142      # We preserve .a as extension for shared libraries through AIX4.2
9143      # and later when we are not doing run time linking.
9144      library_names_spec='${libname}${release}.a $libname.a'
9145      soname_spec='${libname}${release}${shared_ext}$major'
9146    fi
9147    shlibpath_var=LIBPATH
9148  fi
9149  ;;
9150
9151amigaos*)
9152  case $host_cpu in
9153  powerpc)
9154    # Since July 2007 AmigaOS4 officially supports .so libraries.
9155    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9156    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157    ;;
9158  m68k)
9159    library_names_spec='$libname.ixlibrary $libname.a'
9160    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9161    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9162    ;;
9163  esac
9164  ;;
9165
9166beos*)
9167  library_names_spec='${libname}${shared_ext}'
9168  dynamic_linker="$host_os ld.so"
9169  shlibpath_var=LIBRARY_PATH
9170  ;;
9171
9172bsdi[45]*)
9173  version_type=linux
9174  need_version=no
9175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176  soname_spec='${libname}${release}${shared_ext}$major'
9177  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9178  shlibpath_var=LD_LIBRARY_PATH
9179  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9180  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9181  # the default ld.so.conf also contains /usr/contrib/lib and
9182  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9183  # libtool to hard-code these into programs
9184  ;;
9185
9186cygwin* | mingw* | pw32* | cegcc*)
9187  version_type=windows
9188  shrext_cmds=".dll"
9189  need_version=no
9190  need_lib_prefix=no
9191
9192  case $GCC,$host_os in
9193  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9194    library_names_spec='$libname.dll.a'
9195    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9196    postinstall_cmds='base_file=`basename \${file}`~
9197      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9198      dldir=$destdir/`dirname \$dlpath`~
9199      test -d \$dldir || mkdir -p \$dldir~
9200      $install_prog $dir/$dlname \$dldir/$dlname~
9201      chmod a+x \$dldir/$dlname~
9202      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9203        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9204      fi'
9205    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9206      dlpath=$dir/\$dldll~
9207       $RM \$dlpath'
9208    shlibpath_overrides_runpath=yes
9209
9210    case $host_os in
9211    cygwin*)
9212      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9213      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9214      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9215      ;;
9216    mingw* | cegcc*)
9217      # MinGW DLLs use traditional 'lib' prefix
9218      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9219      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9220      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9221        # It is most probably a Windows format PATH printed by
9222        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9223        # path with ; separators, and with drive letters. We can handle the
9224        # drive letters (cygwin fileutils understands them), so leave them,
9225        # especially as we might pass files found there to a mingw objdump,
9226        # which wouldn't understand a cygwinified path. Ahh.
9227        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9228      else
9229        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9230      fi
9231      ;;
9232    pw32*)
9233      # pw32 DLLs use 'pw' prefix rather than 'lib'
9234      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9235      ;;
9236    esac
9237    ;;
9238
9239  *)
9240    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9241    ;;
9242  esac
9243  dynamic_linker='Win32 ld.exe'
9244  # FIXME: first we should search . and the directory the executable is in
9245  shlibpath_var=PATH
9246  ;;
9247
9248darwin* | rhapsody*)
9249  dynamic_linker="$host_os dyld"
9250  version_type=darwin
9251  need_lib_prefix=no
9252  need_version=no
9253  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9254  soname_spec='${libname}${release}${major}$shared_ext'
9255  shlibpath_overrides_runpath=yes
9256  shlibpath_var=DYLD_LIBRARY_PATH
9257  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9258
9259  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9260  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9261  ;;
9262
9263dgux*)
9264  version_type=linux
9265  need_lib_prefix=no
9266  need_version=no
9267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9268  soname_spec='${libname}${release}${shared_ext}$major'
9269  shlibpath_var=LD_LIBRARY_PATH
9270  ;;
9271
9272freebsd1*)
9273  dynamic_linker=no
9274  ;;
9275
9276freebsd* | dragonfly*)
9277  # DragonFly does not have aout.  When/if they implement a new
9278  # versioning mechanism, adjust this.
9279  if test -x /usr/bin/objformat; then
9280    objformat=`/usr/bin/objformat`
9281  else
9282    case $host_os in
9283    freebsd[123]*) objformat=aout ;;
9284    *) objformat=elf ;;
9285    esac
9286  fi
9287  version_type=freebsd-$objformat
9288  case $version_type in
9289    freebsd-elf*)
9290      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9291      need_version=no
9292      need_lib_prefix=no
9293      ;;
9294    freebsd-*)
9295      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9296      need_version=yes
9297      ;;
9298  esac
9299  shlibpath_var=LD_LIBRARY_PATH
9300  case $host_os in
9301  freebsd2*)
9302    shlibpath_overrides_runpath=yes
9303    ;;
9304  freebsd3.[01]* | freebsdelf3.[01]*)
9305    shlibpath_overrides_runpath=yes
9306    hardcode_into_libs=yes
9307    ;;
9308  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9309  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9310    shlibpath_overrides_runpath=no
9311    hardcode_into_libs=yes
9312    ;;
9313  *) # from 4.6 on, and DragonFly
9314    shlibpath_overrides_runpath=yes
9315    hardcode_into_libs=yes
9316    ;;
9317  esac
9318  ;;
9319
9320gnu*)
9321  version_type=linux
9322  need_lib_prefix=no
9323  need_version=no
9324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9325  soname_spec='${libname}${release}${shared_ext}$major'
9326  shlibpath_var=LD_LIBRARY_PATH
9327  hardcode_into_libs=yes
9328  ;;
9329
9330hpux9* | hpux10* | hpux11*)
9331  # Give a soname corresponding to the major version so that dld.sl refuses to
9332  # link against other versions.
9333  version_type=sunos
9334  need_lib_prefix=no
9335  need_version=no
9336  case $host_cpu in
9337  ia64*)
9338    shrext_cmds='.so'
9339    hardcode_into_libs=yes
9340    dynamic_linker="$host_os dld.so"
9341    shlibpath_var=LD_LIBRARY_PATH
9342    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9343    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344    soname_spec='${libname}${release}${shared_ext}$major'
9345    if test "X$HPUX_IA64_MODE" = X32; then
9346      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9347    else
9348      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9349    fi
9350    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9351    ;;
9352  hppa*64*)
9353    shrext_cmds='.sl'
9354    hardcode_into_libs=yes
9355    dynamic_linker="$host_os dld.sl"
9356    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9357    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359    soname_spec='${libname}${release}${shared_ext}$major'
9360    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9361    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9362    ;;
9363  *)
9364    shrext_cmds='.sl'
9365    dynamic_linker="$host_os dld.sl"
9366    shlibpath_var=SHLIB_PATH
9367    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9368    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369    soname_spec='${libname}${release}${shared_ext}$major'
9370    ;;
9371  esac
9372  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9373  postinstall_cmds='chmod 555 $lib'
9374  ;;
9375
9376interix[3-9]*)
9377  version_type=linux
9378  need_lib_prefix=no
9379  need_version=no
9380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9381  soname_spec='${libname}${release}${shared_ext}$major'
9382  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9383  shlibpath_var=LD_LIBRARY_PATH
9384  shlibpath_overrides_runpath=no
9385  hardcode_into_libs=yes
9386  ;;
9387
9388irix5* | irix6* | nonstopux*)
9389  case $host_os in
9390    nonstopux*) version_type=nonstopux ;;
9391    *)
9392	if test "$lt_cv_prog_gnu_ld" = yes; then
9393		version_type=linux
9394	else
9395		version_type=irix
9396	fi ;;
9397  esac
9398  need_lib_prefix=no
9399  need_version=no
9400  soname_spec='${libname}${release}${shared_ext}$major'
9401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9402  case $host_os in
9403  irix5* | nonstopux*)
9404    libsuff= shlibsuff=
9405    ;;
9406  *)
9407    case $LD in # libtool.m4 will add one of these switches to LD
9408    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9409      libsuff= shlibsuff= libmagic=32-bit;;
9410    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9411      libsuff=32 shlibsuff=N32 libmagic=N32;;
9412    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9413      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9414    *) libsuff= shlibsuff= libmagic=never-match;;
9415    esac
9416    ;;
9417  esac
9418  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9419  shlibpath_overrides_runpath=no
9420  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9421  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9422  hardcode_into_libs=yes
9423  ;;
9424
9425# No shared lib support for Linux oldld, aout, or coff.
9426linux*oldld* | linux*aout* | linux*coff*)
9427  dynamic_linker=no
9428  ;;
9429
9430# This must be Linux ELF.
9431linux* | k*bsd*-gnu)
9432  version_type=linux
9433  need_lib_prefix=no
9434  need_version=no
9435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436  soname_spec='${libname}${release}${shared_ext}$major'
9437  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9438  shlibpath_var=LD_LIBRARY_PATH
9439  shlibpath_overrides_runpath=no
9440  # Some binutils ld are patched to set DT_RUNPATH
9441  save_LDFLAGS=$LDFLAGS
9442  save_libdir=$libdir
9443  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9444       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447
9448int
9449main ()
9450{
9451
9452  ;
9453  return 0;
9454}
9455_ACEOF
9456if ac_fn_c_try_link "$LINENO"; then :
9457  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9458  shlibpath_overrides_runpath=yes
9459fi
9460fi
9461rm -f core conftest.err conftest.$ac_objext \
9462    conftest$ac_exeext conftest.$ac_ext
9463  LDFLAGS=$save_LDFLAGS
9464  libdir=$save_libdir
9465
9466  # This implies no fast_install, which is unacceptable.
9467  # Some rework will be needed to allow for fast_install
9468  # before this can be enabled.
9469  hardcode_into_libs=yes
9470
9471  # Append ld.so.conf contents to the search path
9472  if test -f /etc/ld.so.conf; then
9473    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;/^$/d' | tr '\n' ' '`
9474    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9475  fi
9476
9477  # We used to test for /lib/ld.so.1 and disable shared libraries on
9478  # powerpc, because MkLinux only supported shared libraries with the
9479  # GNU dynamic linker.  Since this was broken with cross compilers,
9480  # most powerpc-linux boxes support dynamic linking these days and
9481  # people can always --disable-shared, the test was removed, and we
9482  # assume the GNU/Linux dynamic linker is in use.
9483  dynamic_linker='GNU/Linux ld.so'
9484  ;;
9485
9486netbsd*)
9487  version_type=sunos
9488  need_lib_prefix=no
9489  need_version=no
9490  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9491    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9492    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9493    dynamic_linker='NetBSD (a.out) ld.so'
9494  else
9495    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9496    soname_spec='${libname}${release}${shared_ext}$major'
9497    dynamic_linker='NetBSD ld.elf_so'
9498  fi
9499  shlibpath_var=LD_LIBRARY_PATH
9500  shlibpath_overrides_runpath=yes
9501  hardcode_into_libs=yes
9502  ;;
9503
9504newsos6)
9505  version_type=linux
9506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507  shlibpath_var=LD_LIBRARY_PATH
9508  shlibpath_overrides_runpath=yes
9509  ;;
9510
9511*nto* | *qnx*)
9512  version_type=qnx
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  shlibpath_var=LD_LIBRARY_PATH
9518  shlibpath_overrides_runpath=no
9519  hardcode_into_libs=yes
9520  dynamic_linker='ldqnx.so'
9521  ;;
9522
9523openbsd*)
9524  version_type=sunos
9525  sys_lib_dlsearch_path_spec="/usr/lib"
9526  need_lib_prefix=no
9527  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9528  case $host_os in
9529    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9530    *)				need_version=no  ;;
9531  esac
9532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9533  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9534  shlibpath_var=LD_LIBRARY_PATH
9535  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9536    case $host_os in
9537      openbsd2.[89] | openbsd2.[89].*)
9538	shlibpath_overrides_runpath=no
9539	;;
9540      *)
9541	shlibpath_overrides_runpath=yes
9542	;;
9543      esac
9544  else
9545    shlibpath_overrides_runpath=yes
9546  fi
9547  ;;
9548
9549os2*)
9550  libname_spec='$name'
9551  shrext_cmds=".dll"
9552  need_lib_prefix=no
9553  library_names_spec='$libname${shared_ext} $libname.a'
9554  dynamic_linker='OS/2 ld.exe'
9555  shlibpath_var=LIBPATH
9556  ;;
9557
9558osf3* | osf4* | osf5*)
9559  version_type=osf
9560  need_lib_prefix=no
9561  need_version=no
9562  soname_spec='${libname}${release}${shared_ext}$major'
9563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564  shlibpath_var=LD_LIBRARY_PATH
9565  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9566  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9567  ;;
9568
9569rdos*)
9570  dynamic_linker=no
9571  ;;
9572
9573solaris*)
9574  version_type=linux
9575  need_lib_prefix=no
9576  need_version=no
9577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578  soname_spec='${libname}${release}${shared_ext}$major'
9579  shlibpath_var=LD_LIBRARY_PATH
9580  shlibpath_overrides_runpath=yes
9581  hardcode_into_libs=yes
9582  # ldd complains unless libraries are executable
9583  postinstall_cmds='chmod +x $lib'
9584  ;;
9585
9586sunos4*)
9587  version_type=sunos
9588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9590  shlibpath_var=LD_LIBRARY_PATH
9591  shlibpath_overrides_runpath=yes
9592  if test "$with_gnu_ld" = yes; then
9593    need_lib_prefix=no
9594  fi
9595  need_version=yes
9596  ;;
9597
9598sysv4 | sysv4.3*)
9599  version_type=linux
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  shlibpath_var=LD_LIBRARY_PATH
9603  case $host_vendor in
9604    sni)
9605      shlibpath_overrides_runpath=no
9606      need_lib_prefix=no
9607      runpath_var=LD_RUN_PATH
9608      ;;
9609    siemens)
9610      need_lib_prefix=no
9611      ;;
9612    motorola)
9613      need_lib_prefix=no
9614      need_version=no
9615      shlibpath_overrides_runpath=no
9616      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9617      ;;
9618  esac
9619  ;;
9620
9621sysv4*MP*)
9622  if test -d /usr/nec ;then
9623    version_type=linux
9624    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9625    soname_spec='$libname${shared_ext}.$major'
9626    shlibpath_var=LD_LIBRARY_PATH
9627  fi
9628  ;;
9629
9630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9631  version_type=freebsd-elf
9632  need_lib_prefix=no
9633  need_version=no
9634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9635  soname_spec='${libname}${release}${shared_ext}$major'
9636  shlibpath_var=LD_LIBRARY_PATH
9637  shlibpath_overrides_runpath=yes
9638  hardcode_into_libs=yes
9639  if test "$with_gnu_ld" = yes; then
9640    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9641  else
9642    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9643    case $host_os in
9644      sco3.2v5*)
9645        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9646	;;
9647    esac
9648  fi
9649  sys_lib_dlsearch_path_spec='/usr/lib'
9650  ;;
9651
9652tpf*)
9653  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9654  version_type=linux
9655  need_lib_prefix=no
9656  need_version=no
9657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658  shlibpath_var=LD_LIBRARY_PATH
9659  shlibpath_overrides_runpath=no
9660  hardcode_into_libs=yes
9661  ;;
9662
9663uts4*)
9664  version_type=linux
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666  soname_spec='${libname}${release}${shared_ext}$major'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  ;;
9669
9670*)
9671  dynamic_linker=no
9672  ;;
9673esac
9674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9675$as_echo "$dynamic_linker" >&6; }
9676test "$dynamic_linker" = no && can_build_shared=no
9677
9678variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9679if test "$GCC" = yes; then
9680  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9681fi
9682
9683if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9684  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9685fi
9686if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9687  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9688fi
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9777$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9778hardcode_action=
9779if test -n "$hardcode_libdir_flag_spec" ||
9780   test -n "$runpath_var" ||
9781   test "X$hardcode_automatic" = "Xyes" ; then
9782
9783  # We can hardcode non-existent directories.
9784  if test "$hardcode_direct" != no &&
9785     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9786     # have to relink, otherwise we might link with an installed library
9787     # when we should be linking with a yet-to-be-installed one
9788     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9789     test "$hardcode_minus_L" != no; then
9790    # Linking always hardcodes the temporary library directory.
9791    hardcode_action=relink
9792  else
9793    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9794    hardcode_action=immediate
9795  fi
9796else
9797  # We cannot hardcode anything, or else we can only hardcode existing
9798  # directories.
9799  hardcode_action=unsupported
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9802$as_echo "$hardcode_action" >&6; }
9803
9804if test "$hardcode_action" = relink ||
9805   test "$inherit_rpath" = yes; then
9806  # Fast installation is not supported
9807  enable_fast_install=no
9808elif test "$shlibpath_overrides_runpath" = yes ||
9809     test "$enable_shared" = no; then
9810  # Fast installation is not necessary
9811  enable_fast_install=needless
9812fi
9813
9814
9815
9816
9817
9818
9819  if test "x$enable_dlopen" != xyes; then
9820  enable_dlopen=unknown
9821  enable_dlopen_self=unknown
9822  enable_dlopen_self_static=unknown
9823else
9824  lt_cv_dlopen=no
9825  lt_cv_dlopen_libs=
9826
9827  case $host_os in
9828  beos*)
9829    lt_cv_dlopen="load_add_on"
9830    lt_cv_dlopen_libs=
9831    lt_cv_dlopen_self=yes
9832    ;;
9833
9834  mingw* | pw32* | cegcc*)
9835    lt_cv_dlopen="LoadLibrary"
9836    lt_cv_dlopen_libs=
9837    ;;
9838
9839  cygwin*)
9840    lt_cv_dlopen="dlopen"
9841    lt_cv_dlopen_libs=
9842    ;;
9843
9844  darwin*)
9845  # if libdl is installed we need to link against it
9846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9847$as_echo_n "checking for dlopen in -ldl... " >&6; }
9848if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9849  $as_echo_n "(cached) " >&6
9850else
9851  ac_check_lib_save_LIBS=$LIBS
9852LIBS="-ldl  $LIBS"
9853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854/* end confdefs.h.  */
9855
9856/* Override any GCC internal prototype to avoid an error.
9857   Use char because int might match the return type of a GCC
9858   builtin and then its argument prototype would still apply.  */
9859#ifdef __cplusplus
9860extern "C"
9861#endif
9862char dlopen ();
9863int
9864main ()
9865{
9866return dlopen ();
9867  ;
9868  return 0;
9869}
9870_ACEOF
9871if ac_fn_c_try_link "$LINENO"; then :
9872  ac_cv_lib_dl_dlopen=yes
9873else
9874  ac_cv_lib_dl_dlopen=no
9875fi
9876rm -f core conftest.err conftest.$ac_objext \
9877    conftest$ac_exeext conftest.$ac_ext
9878LIBS=$ac_check_lib_save_LIBS
9879fi
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9881$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9882if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9883  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9884else
9885
9886    lt_cv_dlopen="dyld"
9887    lt_cv_dlopen_libs=
9888    lt_cv_dlopen_self=yes
9889
9890fi
9891
9892    ;;
9893
9894  *)
9895    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9896if test "x$ac_cv_func_shl_load" = x""yes; then :
9897  lt_cv_dlopen="shl_load"
9898else
9899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9900$as_echo_n "checking for shl_load in -ldld... " >&6; }
9901if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9902  $as_echo_n "(cached) " >&6
9903else
9904  ac_check_lib_save_LIBS=$LIBS
9905LIBS="-ldld  $LIBS"
9906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907/* end confdefs.h.  */
9908
9909/* Override any GCC internal prototype to avoid an error.
9910   Use char because int might match the return type of a GCC
9911   builtin and then its argument prototype would still apply.  */
9912#ifdef __cplusplus
9913extern "C"
9914#endif
9915char shl_load ();
9916int
9917main ()
9918{
9919return shl_load ();
9920  ;
9921  return 0;
9922}
9923_ACEOF
9924if ac_fn_c_try_link "$LINENO"; then :
9925  ac_cv_lib_dld_shl_load=yes
9926else
9927  ac_cv_lib_dld_shl_load=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext \
9930    conftest$ac_exeext conftest.$ac_ext
9931LIBS=$ac_check_lib_save_LIBS
9932fi
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9934$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9935if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9936  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9937else
9938  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9939if test "x$ac_cv_func_dlopen" = x""yes; then :
9940  lt_cv_dlopen="dlopen"
9941else
9942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9943$as_echo_n "checking for dlopen in -ldl... " >&6; }
9944if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9945  $as_echo_n "(cached) " >&6
9946else
9947  ac_check_lib_save_LIBS=$LIBS
9948LIBS="-ldl  $LIBS"
9949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951
9952/* Override any GCC internal prototype to avoid an error.
9953   Use char because int might match the return type of a GCC
9954   builtin and then its argument prototype would still apply.  */
9955#ifdef __cplusplus
9956extern "C"
9957#endif
9958char dlopen ();
9959int
9960main ()
9961{
9962return dlopen ();
9963  ;
9964  return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_link "$LINENO"; then :
9968  ac_cv_lib_dl_dlopen=yes
9969else
9970  ac_cv_lib_dl_dlopen=no
9971fi
9972rm -f core conftest.err conftest.$ac_objext \
9973    conftest$ac_exeext conftest.$ac_ext
9974LIBS=$ac_check_lib_save_LIBS
9975fi
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9977$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9978if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9979  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9980else
9981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9982$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9983if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  ac_check_lib_save_LIBS=$LIBS
9987LIBS="-lsvld  $LIBS"
9988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989/* end confdefs.h.  */
9990
9991/* Override any GCC internal prototype to avoid an error.
9992   Use char because int might match the return type of a GCC
9993   builtin and then its argument prototype would still apply.  */
9994#ifdef __cplusplus
9995extern "C"
9996#endif
9997char dlopen ();
9998int
9999main ()
10000{
10001return dlopen ();
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006if ac_fn_c_try_link "$LINENO"; then :
10007  ac_cv_lib_svld_dlopen=yes
10008else
10009  ac_cv_lib_svld_dlopen=no
10010fi
10011rm -f core conftest.err conftest.$ac_objext \
10012    conftest$ac_exeext conftest.$ac_ext
10013LIBS=$ac_check_lib_save_LIBS
10014fi
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10016$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10017if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10018  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10019else
10020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10021$as_echo_n "checking for dld_link in -ldld... " >&6; }
10022if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10023  $as_echo_n "(cached) " >&6
10024else
10025  ac_check_lib_save_LIBS=$LIBS
10026LIBS="-ldld  $LIBS"
10027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028/* end confdefs.h.  */
10029
10030/* Override any GCC internal prototype to avoid an error.
10031   Use char because int might match the return type of a GCC
10032   builtin and then its argument prototype would still apply.  */
10033#ifdef __cplusplus
10034extern "C"
10035#endif
10036char dld_link ();
10037int
10038main ()
10039{
10040return dld_link ();
10041  ;
10042  return 0;
10043}
10044_ACEOF
10045if ac_fn_c_try_link "$LINENO"; then :
10046  ac_cv_lib_dld_dld_link=yes
10047else
10048  ac_cv_lib_dld_dld_link=no
10049fi
10050rm -f core conftest.err conftest.$ac_objext \
10051    conftest$ac_exeext conftest.$ac_ext
10052LIBS=$ac_check_lib_save_LIBS
10053fi
10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10055$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10056if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10057  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10058fi
10059
10060
10061fi
10062
10063
10064fi
10065
10066
10067fi
10068
10069
10070fi
10071
10072
10073fi
10074
10075    ;;
10076  esac
10077
10078  if test "x$lt_cv_dlopen" != xno; then
10079    enable_dlopen=yes
10080  else
10081    enable_dlopen=no
10082  fi
10083
10084  case $lt_cv_dlopen in
10085  dlopen)
10086    save_CPPFLAGS="$CPPFLAGS"
10087    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10088
10089    save_LDFLAGS="$LDFLAGS"
10090    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10091
10092    save_LIBS="$LIBS"
10093    LIBS="$lt_cv_dlopen_libs $LIBS"
10094
10095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10096$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10097if test "${lt_cv_dlopen_self+set}" = set; then :
10098  $as_echo_n "(cached) " >&6
10099else
10100  	  if test "$cross_compiling" = yes; then :
10101  lt_cv_dlopen_self=cross
10102else
10103  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10104  lt_status=$lt_dlunknown
10105  cat > conftest.$ac_ext <<_LT_EOF
10106#line 10106 "configure"
10107#include "confdefs.h"
10108
10109#if HAVE_DLFCN_H
10110#include <dlfcn.h>
10111#endif
10112
10113#include <stdio.h>
10114
10115#ifdef RTLD_GLOBAL
10116#  define LT_DLGLOBAL		RTLD_GLOBAL
10117#else
10118#  ifdef DL_GLOBAL
10119#    define LT_DLGLOBAL		DL_GLOBAL
10120#  else
10121#    define LT_DLGLOBAL		0
10122#  endif
10123#endif
10124
10125/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10126   find out it does not work in some platform. */
10127#ifndef LT_DLLAZY_OR_NOW
10128#  ifdef RTLD_LAZY
10129#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10130#  else
10131#    ifdef DL_LAZY
10132#      define LT_DLLAZY_OR_NOW		DL_LAZY
10133#    else
10134#      ifdef RTLD_NOW
10135#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10136#      else
10137#        ifdef DL_NOW
10138#          define LT_DLLAZY_OR_NOW	DL_NOW
10139#        else
10140#          define LT_DLLAZY_OR_NOW	0
10141#        endif
10142#      endif
10143#    endif
10144#  endif
10145#endif
10146
10147void fnord() { int i=42;}
10148int main ()
10149{
10150  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10151  int status = $lt_dlunknown;
10152
10153  if (self)
10154    {
10155      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10156      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10157      /* dlclose (self); */
10158    }
10159  else
10160    puts (dlerror ());
10161
10162  return status;
10163}
10164_LT_EOF
10165  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10166  (eval $ac_link) 2>&5
10167  ac_status=$?
10168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10169  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10170    (./conftest; exit; ) >&5 2>/dev/null
10171    lt_status=$?
10172    case x$lt_status in
10173      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10174      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10175      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10176    esac
10177  else :
10178    # compilation failed
10179    lt_cv_dlopen_self=no
10180  fi
10181fi
10182rm -fr conftest*
10183
10184
10185fi
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10187$as_echo "$lt_cv_dlopen_self" >&6; }
10188
10189    if test "x$lt_cv_dlopen_self" = xyes; then
10190      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10191      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10192$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10193if test "${lt_cv_dlopen_self_static+set}" = set; then :
10194  $as_echo_n "(cached) " >&6
10195else
10196  	  if test "$cross_compiling" = yes; then :
10197  lt_cv_dlopen_self_static=cross
10198else
10199  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10200  lt_status=$lt_dlunknown
10201  cat > conftest.$ac_ext <<_LT_EOF
10202#line 10202 "configure"
10203#include "confdefs.h"
10204
10205#if HAVE_DLFCN_H
10206#include <dlfcn.h>
10207#endif
10208
10209#include <stdio.h>
10210
10211#ifdef RTLD_GLOBAL
10212#  define LT_DLGLOBAL		RTLD_GLOBAL
10213#else
10214#  ifdef DL_GLOBAL
10215#    define LT_DLGLOBAL		DL_GLOBAL
10216#  else
10217#    define LT_DLGLOBAL		0
10218#  endif
10219#endif
10220
10221/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10222   find out it does not work in some platform. */
10223#ifndef LT_DLLAZY_OR_NOW
10224#  ifdef RTLD_LAZY
10225#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10226#  else
10227#    ifdef DL_LAZY
10228#      define LT_DLLAZY_OR_NOW		DL_LAZY
10229#    else
10230#      ifdef RTLD_NOW
10231#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10232#      else
10233#        ifdef DL_NOW
10234#          define LT_DLLAZY_OR_NOW	DL_NOW
10235#        else
10236#          define LT_DLLAZY_OR_NOW	0
10237#        endif
10238#      endif
10239#    endif
10240#  endif
10241#endif
10242
10243void fnord() { int i=42;}
10244int main ()
10245{
10246  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10247  int status = $lt_dlunknown;
10248
10249  if (self)
10250    {
10251      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10252      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10253      /* dlclose (self); */
10254    }
10255  else
10256    puts (dlerror ());
10257
10258  return status;
10259}
10260_LT_EOF
10261  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10262  (eval $ac_link) 2>&5
10263  ac_status=$?
10264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10265  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10266    (./conftest; exit; ) >&5 2>/dev/null
10267    lt_status=$?
10268    case x$lt_status in
10269      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10270      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10271      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10272    esac
10273  else :
10274    # compilation failed
10275    lt_cv_dlopen_self_static=no
10276  fi
10277fi
10278rm -fr conftest*
10279
10280
10281fi
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10283$as_echo "$lt_cv_dlopen_self_static" >&6; }
10284    fi
10285
10286    CPPFLAGS="$save_CPPFLAGS"
10287    LDFLAGS="$save_LDFLAGS"
10288    LIBS="$save_LIBS"
10289    ;;
10290  esac
10291
10292  case $lt_cv_dlopen_self in
10293  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10294  *) enable_dlopen_self=unknown ;;
10295  esac
10296
10297  case $lt_cv_dlopen_self_static in
10298  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10299  *) enable_dlopen_self_static=unknown ;;
10300  esac
10301fi
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319striplib=
10320old_striplib=
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10322$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10323if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10324  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10325  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10327$as_echo "yes" >&6; }
10328else
10329# FIXME - insert some real tests, host_os isn't really good enough
10330  case $host_os in
10331  darwin*)
10332    if test -n "$STRIP" ; then
10333      striplib="$STRIP -x"
10334      old_striplib="$STRIP -S"
10335      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10336$as_echo "yes" >&6; }
10337    else
10338      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
10340    fi
10341    ;;
10342  *)
10343    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
10345    ;;
10346  esac
10347fi
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360  # Report which library types will actually be built
10361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10362$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10364$as_echo "$can_build_shared" >&6; }
10365
10366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10367$as_echo_n "checking whether to build shared libraries... " >&6; }
10368  test "$can_build_shared" = "no" && enable_shared=no
10369
10370  # On AIX, shared libraries and static libraries use the same namespace, and
10371  # are all built from PIC.
10372  case $host_os in
10373  aix3*)
10374    test "$enable_shared" = yes && enable_static=no
10375    if test -n "$RANLIB"; then
10376      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10377      postinstall_cmds='$RANLIB $lib'
10378    fi
10379    ;;
10380
10381  aix[4-9]*)
10382    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10383      test "$enable_shared" = yes && enable_static=no
10384    fi
10385    ;;
10386  esac
10387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10388$as_echo "$enable_shared" >&6; }
10389
10390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10391$as_echo_n "checking whether to build static libraries... " >&6; }
10392  # Make sure either enable_shared or enable_static is yes.
10393  test "$enable_shared" = yes || enable_static=yes
10394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10395$as_echo "$enable_static" >&6; }
10396
10397
10398
10399
10400fi
10401ac_ext=c
10402ac_cpp='$CPP $CPPFLAGS'
10403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10405ac_compiler_gnu=$ac_cv_c_compiler_gnu
10406
10407CC="$lt_save_CC"
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421        ac_config_commands="$ac_config_commands libtool"
10422
10423
10424
10425
10426# Only expand once:
10427
10428
10429
10430# Initialize X.Org macros
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10443$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10444if test "${ac_cv_prog_cc_c99+set}" = set; then :
10445  $as_echo_n "(cached) " >&6
10446else
10447  ac_cv_prog_cc_c99=no
10448ac_save_CC=$CC
10449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h.  */
10451#include <stdarg.h>
10452#include <stdbool.h>
10453#include <stdlib.h>
10454#include <wchar.h>
10455#include <stdio.h>
10456
10457// Check varargs macros.  These examples are taken from C99 6.10.3.5.
10458#define debug(...) fprintf (stderr, __VA_ARGS__)
10459#define showlist(...) puts (#__VA_ARGS__)
10460#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10461static void
10462test_varargs_macros (void)
10463{
10464  int x = 1234;
10465  int y = 5678;
10466  debug ("Flag");
10467  debug ("X = %d\n", x);
10468  showlist (The first, second, and third items.);
10469  report (x>y, "x is %d but y is %d", x, y);
10470}
10471
10472// Check long long types.
10473#define BIG64 18446744073709551615ull
10474#define BIG32 4294967295ul
10475#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10476#if !BIG_OK
10477  your preprocessor is broken;
10478#endif
10479#if BIG_OK
10480#else
10481  your preprocessor is broken;
10482#endif
10483static long long int bignum = -9223372036854775807LL;
10484static unsigned long long int ubignum = BIG64;
10485
10486struct incomplete_array
10487{
10488  int datasize;
10489  double data[];
10490};
10491
10492struct named_init {
10493  int number;
10494  const wchar_t *name;
10495  double average;
10496};
10497
10498typedef const char *ccp;
10499
10500static inline int
10501test_restrict (ccp restrict text)
10502{
10503  // See if C++-style comments work.
10504  // Iterate through items via the restricted pointer.
10505  // Also check for declarations in for loops.
10506  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10507    continue;
10508  return 0;
10509}
10510
10511// Check varargs and va_copy.
10512static void
10513test_varargs (const char *format, ...)
10514{
10515  va_list args;
10516  va_start (args, format);
10517  va_list args_copy;
10518  va_copy (args_copy, args);
10519
10520  const char *str;
10521  int number;
10522  float fnumber;
10523
10524  while (*format)
10525    {
10526      switch (*format++)
10527	{
10528	case 's': // string
10529	  str = va_arg (args_copy, const char *);
10530	  break;
10531	case 'd': // int
10532	  number = va_arg (args_copy, int);
10533	  break;
10534	case 'f': // float
10535	  fnumber = va_arg (args_copy, double);
10536	  break;
10537	default:
10538	  break;
10539	}
10540    }
10541  va_end (args_copy);
10542  va_end (args);
10543}
10544
10545int
10546main ()
10547{
10548
10549  // Check bool.
10550  _Bool success = false;
10551
10552  // Check restrict.
10553  if (test_restrict ("String literal") == 0)
10554    success = true;
10555  char *restrict newvar = "Another string";
10556
10557  // Check varargs.
10558  test_varargs ("s, d' f .", "string", 65, 34.234);
10559  test_varargs_macros ();
10560
10561  // Check flexible array members.
10562  struct incomplete_array *ia =
10563    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10564  ia->datasize = 10;
10565  for (int i = 0; i < ia->datasize; ++i)
10566    ia->data[i] = i * 1.234;
10567
10568  // Check named initializers.
10569  struct named_init ni = {
10570    .number = 34,
10571    .name = L"Test wide string",
10572    .average = 543.34343,
10573  };
10574
10575  ni.number = 58;
10576
10577  int dynamic_array[ni.number];
10578  dynamic_array[ni.number - 1] = 543;
10579
10580  // work around unused variable warnings
10581  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10582	  || dynamic_array[ni.number - 1] != 543);
10583
10584  ;
10585  return 0;
10586}
10587_ACEOF
10588for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10589do
10590  CC="$ac_save_CC $ac_arg"
10591  if ac_fn_c_try_compile "$LINENO"; then :
10592  ac_cv_prog_cc_c99=$ac_arg
10593fi
10594rm -f core conftest.err conftest.$ac_objext
10595  test "x$ac_cv_prog_cc_c99" != "xno" && break
10596done
10597rm -f conftest.$ac_ext
10598CC=$ac_save_CC
10599
10600fi
10601# AC_CACHE_VAL
10602case "x$ac_cv_prog_cc_c99" in
10603  x)
10604    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10605$as_echo "none needed" >&6; } ;;
10606  xno)
10607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10608$as_echo "unsupported" >&6; } ;;
10609  *)
10610    CC="$CC $ac_cv_prog_cc_c99"
10611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10612$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10613esac
10614if test "x$ac_cv_prog_cc_c99" != xno; then :
10615
10616fi
10617
10618
10619
10620
10621if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10622	if test -n "$ac_tool_prefix"; then
10623  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10624set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626$as_echo_n "checking for $ac_word... " >&6; }
10627if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10628  $as_echo_n "(cached) " >&6
10629else
10630  case $PKG_CONFIG in
10631  [\\/]* | ?:[\\/]*)
10632  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10633  ;;
10634  *)
10635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636for as_dir in $PATH
10637do
10638  IFS=$as_save_IFS
10639  test -z "$as_dir" && as_dir=.
10640    for ac_exec_ext in '' $ac_executable_extensions; do
10641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10642    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10644    break 2
10645  fi
10646done
10647  done
10648IFS=$as_save_IFS
10649
10650  ;;
10651esac
10652fi
10653PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10654if test -n "$PKG_CONFIG"; then
10655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10656$as_echo "$PKG_CONFIG" >&6; }
10657else
10658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659$as_echo "no" >&6; }
10660fi
10661
10662
10663fi
10664if test -z "$ac_cv_path_PKG_CONFIG"; then
10665  ac_pt_PKG_CONFIG=$PKG_CONFIG
10666  # Extract the first word of "pkg-config", so it can be a program name with args.
10667set dummy pkg-config; ac_word=$2
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10669$as_echo_n "checking for $ac_word... " >&6; }
10670if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10671  $as_echo_n "(cached) " >&6
10672else
10673  case $ac_pt_PKG_CONFIG in
10674  [\\/]* | ?:[\\/]*)
10675  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10676  ;;
10677  *)
10678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679for as_dir in $PATH
10680do
10681  IFS=$as_save_IFS
10682  test -z "$as_dir" && as_dir=.
10683    for ac_exec_ext in '' $ac_executable_extensions; do
10684  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687    break 2
10688  fi
10689done
10690  done
10691IFS=$as_save_IFS
10692
10693  ;;
10694esac
10695fi
10696ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10697if test -n "$ac_pt_PKG_CONFIG"; then
10698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10699$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10700else
10701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702$as_echo "no" >&6; }
10703fi
10704
10705  if test "x$ac_pt_PKG_CONFIG" = x; then
10706    PKG_CONFIG=""
10707  else
10708    case $cross_compiling:$ac_tool_warned in
10709yes:)
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10712ac_tool_warned=yes ;;
10713esac
10714    PKG_CONFIG=$ac_pt_PKG_CONFIG
10715  fi
10716else
10717  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10718fi
10719
10720fi
10721if test -n "$PKG_CONFIG"; then
10722	_pkg_min_version=0.9.0
10723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10724$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10725	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10726		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10727$as_echo "yes" >&6; }
10728	else
10729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730$as_echo "no" >&6; }
10731		PKG_CONFIG=""
10732	fi
10733
10734fi
10735
10736
10737
10738
10739if  test "x$GCC" = xyes ; then
10740    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10741-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10742-Wbad-function-cast -Wformat=2"
10743    case `$CC -dumpversion` in
10744    3.4.* | 4.*)
10745	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10746	;;
10747    esac
10748else
10749    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10750if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10751  SUNCC="yes"
10752else
10753  SUNCC="no"
10754fi
10755
10756    if test "x$SUNCC" = "xyes"; then
10757	CWARNFLAGS="-v"
10758    fi
10759fi
10760
10761
10762
10763# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10764
10765
10766
10767# Check whether --enable-strict-compilation was given.
10768if test "${enable_strict_compilation+set}" = set; then :
10769  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10770else
10771  STRICT_COMPILE=no
10772fi
10773
10774if test "x$STRICT_COMPILE" = "xyes"; then
10775	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10776if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10777  SUNCC="yes"
10778else
10779  SUNCC="no"
10780fi
10781
10782	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10783if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
10784  INTELCC="yes"
10785else
10786  INTELCC="no"
10787fi
10788
10789	if test "x$GCC" = xyes ; then
10790		STRICT_CFLAGS="-pedantic -Werror"
10791	elif test "x$SUNCC" = "xyes"; then
10792		STRICT_CFLAGS="-errwarn"
10793    elif test "x$INTELCC" = "xyes"; then
10794		STRICT_CFLAGS="-Werror"
10795	fi
10796fi
10797CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10798
10799
10800
10801
10802cat >>confdefs.h <<_ACEOF
10803#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10804_ACEOF
10805
10806	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10807	if test "x$PVM" = "x"; then
10808		PVM="0"
10809	fi
10810
10811cat >>confdefs.h <<_ACEOF
10812#define PACKAGE_VERSION_MINOR $PVM
10813_ACEOF
10814
10815	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10816	if test "x$PVP" = "x"; then
10817		PVP="0"
10818	fi
10819
10820cat >>confdefs.h <<_ACEOF
10821#define PACKAGE_VERSION_PATCHLEVEL $PVP
10822_ACEOF
10823
10824
10825
10826CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10827mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10828|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10829echo 'git directory not found: installing possibly empty changelog.' >&2)"
10830
10831
10832
10833
10834macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10835INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10836mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10837|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10838echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10839
10840
10841
10842
10843
10844
10845if test x$APP_MAN_SUFFIX = x    ; then
10846    APP_MAN_SUFFIX=1
10847fi
10848if test x$APP_MAN_DIR = x    ; then
10849    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10850fi
10851
10852if test x$LIB_MAN_SUFFIX = x    ; then
10853    LIB_MAN_SUFFIX=3
10854fi
10855if test x$LIB_MAN_DIR = x    ; then
10856    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10857fi
10858
10859if test x$FILE_MAN_SUFFIX = x    ; then
10860    case $host_os in
10861	solaris*)	FILE_MAN_SUFFIX=4  ;;
10862	*)		FILE_MAN_SUFFIX=5  ;;
10863    esac
10864fi
10865if test x$FILE_MAN_DIR = x    ; then
10866    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10867fi
10868
10869if test x$MISC_MAN_SUFFIX = x    ; then
10870    case $host_os in
10871	solaris*)	MISC_MAN_SUFFIX=5  ;;
10872	*)		MISC_MAN_SUFFIX=7  ;;
10873    esac
10874fi
10875if test x$MISC_MAN_DIR = x    ; then
10876    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10877fi
10878
10879if test x$DRIVER_MAN_SUFFIX = x    ; then
10880    case $host_os in
10881	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10882	*)		DRIVER_MAN_SUFFIX=4  ;;
10883    esac
10884fi
10885if test x$DRIVER_MAN_DIR = x    ; then
10886    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10887fi
10888
10889if test x$ADMIN_MAN_SUFFIX = x    ; then
10890    case $host_os in
10891	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10892	*)		ADMIN_MAN_SUFFIX=8  ;;
10893    esac
10894fi
10895if test x$ADMIN_MAN_DIR = x    ; then
10896    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10897fi
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913XORG_MAN_PAGE="X Version 11"
10914
10915MAN_SUBSTS="\
10916	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10917	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10918	-e 's|__xservername__|Xorg|g' \
10919	-e 's|__xconfigfile__|xorg.conf|g' \
10920	-e 's|__projectroot__|\$(prefix)|g' \
10921	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10922	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10923	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10924	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10925	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10926	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10927
10928
10929
10930# Check whether --enable-silent-rules was given.
10931if test "${enable_silent_rules+set}" = set; then :
10932  enableval=$enable_silent_rules;
10933fi
10934
10935case $enable_silent_rules in
10936yes) AM_DEFAULT_VERBOSITY=0;;
10937no)  AM_DEFAULT_VERBOSITY=1;;
10938*)   AM_DEFAULT_VERBOSITY=0;;
10939esac
10940AM_BACKSLASH='\'
10941
10942
10943
10944
10945
10946
10947
10948# Check whether --with-lint was given.
10949if test "${with_lint+set}" = set; then :
10950  withval=$with_lint; use_lint=$withval
10951else
10952  use_lint=no
10953fi
10954
10955
10956# Obtain platform specific info like program name and options
10957# The lint program on FreeBSD and NetBSD is different from the one on Solaris
10958case $host_os in
10959  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10960	lint_name=splint
10961	lint_options="-badflag"
10962	;;
10963  *freebsd* | *netbsd*)
10964	lint_name=lint
10965	lint_options="-u -b"
10966	;;
10967  *solaris*)
10968	lint_name=lint
10969	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10970	;;
10971esac
10972
10973# Test for the presence of the program (either guessed by the code or spelled out by the user)
10974if test "x$use_lint" = x"yes" ; then
10975   # Extract the first word of "$lint_name", so it can be a program name with args.
10976set dummy $lint_name; ac_word=$2
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10978$as_echo_n "checking for $ac_word... " >&6; }
10979if test "${ac_cv_path_LINT+set}" = set; then :
10980  $as_echo_n "(cached) " >&6
10981else
10982  case $LINT in
10983  [\\/]* | ?:[\\/]*)
10984  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10985  ;;
10986  *)
10987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988for as_dir in $PATH
10989do
10990  IFS=$as_save_IFS
10991  test -z "$as_dir" && as_dir=.
10992    for ac_exec_ext in '' $ac_executable_extensions; do
10993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10994    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996    break 2
10997  fi
10998done
10999  done
11000IFS=$as_save_IFS
11001
11002  ;;
11003esac
11004fi
11005LINT=$ac_cv_path_LINT
11006if test -n "$LINT"; then
11007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11008$as_echo "$LINT" >&6; }
11009else
11010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
11012fi
11013
11014
11015   if test "x$LINT" = "x"; then
11016        as_fn_error "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11017   fi
11018elif test "x$use_lint" = x"no" ; then
11019   if test "x$LINT" != "x"; then
11020      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11021$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11022   fi
11023else
11024   as_fn_error "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11025fi
11026
11027# User supplied flags override default flags
11028if test "x$LINT_FLAGS" != "x"; then
11029   lint_options=$LINT_FLAGS
11030fi
11031
11032LINT_FLAGS=$lint_options
11033
11034 if test "x$LINT" != x; then
11035  LINT_TRUE=
11036  LINT_FALSE='#'
11037else
11038  LINT_TRUE='#'
11039  LINT_FALSE=
11040fi
11041
11042
11043
11044
11045# Obtain compiler/linker options from server and required extensions
11046
11047pkg_failed=no
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11049$as_echo_n "checking for XORG... " >&6; }
11050
11051if test -n "$XORG_CFLAGS"; then
11052    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11053 elif test -n "$PKG_CONFIG"; then
11054    if test -n "$PKG_CONFIG" && \
11055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5.99.901 xproto inputproto\""; } >&5
11056  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5.99.901 xproto inputproto") 2>&5
11057  ac_status=$?
11058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11059  test $ac_status = 0; }; then
11060  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.5.99.901 xproto inputproto" 2>/dev/null`
11061else
11062  pkg_failed=yes
11063fi
11064 else
11065    pkg_failed=untried
11066fi
11067if test -n "$XORG_LIBS"; then
11068    pkg_cv_XORG_LIBS="$XORG_LIBS"
11069 elif test -n "$PKG_CONFIG"; then
11070    if test -n "$PKG_CONFIG" && \
11071    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5.99.901 xproto inputproto\""; } >&5
11072  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5.99.901 xproto inputproto") 2>&5
11073  ac_status=$?
11074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11075  test $ac_status = 0; }; then
11076  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.5.99.901 xproto inputproto" 2>/dev/null`
11077else
11078  pkg_failed=yes
11079fi
11080 else
11081    pkg_failed=untried
11082fi
11083
11084
11085
11086if test $pkg_failed = yes; then
11087
11088if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11089        _pkg_short_errors_supported=yes
11090else
11091        _pkg_short_errors_supported=no
11092fi
11093        if test $_pkg_short_errors_supported = yes; then
11094	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.5.99.901 xproto inputproto" 2>&1`
11095        else
11096	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.5.99.901 xproto inputproto" 2>&1`
11097        fi
11098	# Put the nasty error message in config.log where it belongs
11099	echo "$XORG_PKG_ERRORS" >&5
11100
11101	as_fn_error "Package requirements (xorg-server >= 1.5.99.901 xproto inputproto) were not met:
11102
11103$XORG_PKG_ERRORS
11104
11105Consider adjusting the PKG_CONFIG_PATH environment variable if you
11106installed software in a non-standard prefix.
11107
11108Alternatively, you may set the environment variables XORG_CFLAGS
11109and XORG_LIBS to avoid the need to call pkg-config.
11110See the pkg-config man page for more details.
11111" "$LINENO" 5
11112elif test $pkg_failed = untried; then
11113	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11115as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11116is in your PATH or set the PKG_CONFIG environment variable to the full
11117path to pkg-config.
11118
11119Alternatively, you may set the environment variables XORG_CFLAGS
11120and XORG_LIBS to avoid the need to call pkg-config.
11121See the pkg-config man page for more details.
11122
11123To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11124See \`config.log' for more details." "$LINENO" 5; }
11125else
11126	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11127	XORG_LIBS=$pkg_cv_XORG_LIBS
11128        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11129$as_echo "yes" >&6; }
11130	:
11131fi
11132
11133# Define a configure option for an alternate input module directory
11134
11135# Check whether --with-xorg-module-dir was given.
11136if test "${with_xorg_module_dir+set}" = set; then :
11137  withval=$with_xorg_module_dir; moduledir="$withval"
11138else
11139  moduledir="$libdir/xorg/modules"
11140fi
11141
11142inputdir=${moduledir}/input
11143
11144
11145# Work out which OS mouse driver we need to build
11146case $host_os in
11147  linux*)
11148    OS_MOUSE_NAME=lnx
11149    ;;
11150  freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*)
11151    OS_MOUSE_NAME=bsd
11152    ;;
11153  solaris*)
11154    OS_MOUSE_NAME=sun
11155    ;;
11156  gnu*)
11157    OS_MOUSE_NAME=hurd
11158    ;;
11159esac
11160
11161
11162DRIVER_NAME=mouse
11163
11164
11165ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11166
11167cat >confcache <<\_ACEOF
11168# This file is a shell script that caches the results of configure
11169# tests run on this system so they can be shared between configure
11170# scripts and configure runs, see configure's option --config-cache.
11171# It is not useful on other systems.  If it contains results you don't
11172# want to keep, you may remove or edit it.
11173#
11174# config.status only pays attention to the cache file if you give it
11175# the --recheck option to rerun configure.
11176#
11177# `ac_cv_env_foo' variables (set or unset) will be overridden when
11178# loading this file, other *unset* `ac_cv_foo' will be assigned the
11179# following values.
11180
11181_ACEOF
11182
11183# The following way of writing the cache mishandles newlines in values,
11184# but we know of no workaround that is simple, portable, and efficient.
11185# So, we kill variables containing newlines.
11186# Ultrix sh set writes to stderr and can't be redirected directly,
11187# and sets the high bit in the cache file unless we assign to the vars.
11188(
11189  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11190    eval ac_val=\$$ac_var
11191    case $ac_val in #(
11192    *${as_nl}*)
11193      case $ac_var in #(
11194      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11195$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11196      esac
11197      case $ac_var in #(
11198      _ | IFS | as_nl) ;; #(
11199      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11200      *) { eval $ac_var=; unset $ac_var;} ;;
11201      esac ;;
11202    esac
11203  done
11204
11205  (set) 2>&1 |
11206    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11207    *${as_nl}ac_space=\ *)
11208      # `set' does not quote correctly, so add quotes: double-quote
11209      # substitution turns \\\\ into \\, and sed turns \\ into \.
11210      sed -n \
11211	"s/'/'\\\\''/g;
11212	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11213      ;; #(
11214    *)
11215      # `set' quotes correctly as required by POSIX, so do not add quotes.
11216      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11217      ;;
11218    esac |
11219    sort
11220) |
11221  sed '
11222     /^ac_cv_env_/b end
11223     t clear
11224     :clear
11225     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11226     t end
11227     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11228     :end' >>confcache
11229if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11230  if test -w "$cache_file"; then
11231    test "x$cache_file" != "x/dev/null" &&
11232      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11233$as_echo "$as_me: updating cache $cache_file" >&6;}
11234    cat confcache >$cache_file
11235  else
11236    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11237$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11238  fi
11239fi
11240rm -f confcache
11241
11242test "x$prefix" = xNONE && prefix=$ac_default_prefix
11243# Let make expand exec_prefix.
11244test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11245
11246DEFS=-DHAVE_CONFIG_H
11247
11248ac_libobjs=
11249ac_ltlibobjs=
11250for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11251  # 1. Remove the extension, and $U if already installed.
11252  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11253  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11254  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11255  #    will be set to the directory where LIBOBJS objects are built.
11256  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11257  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11258done
11259LIBOBJS=$ac_libobjs
11260
11261LTLIBOBJS=$ac_ltlibobjs
11262
11263
11264 if test -n "$EXEEXT"; then
11265  am__EXEEXT_TRUE=
11266  am__EXEEXT_FALSE='#'
11267else
11268  am__EXEEXT_TRUE='#'
11269  am__EXEEXT_FALSE=
11270fi
11271
11272if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11273  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11274Usually this means the macro was only invoked conditionally." "$LINENO" 5
11275fi
11276if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11277  as_fn_error "conditional \"AMDEP\" was never defined.
11278Usually this means the macro was only invoked conditionally." "$LINENO" 5
11279fi
11280if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11281  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11282Usually this means the macro was only invoked conditionally." "$LINENO" 5
11283fi
11284if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11285  as_fn_error "conditional \"LINT\" was never defined.
11286Usually this means the macro was only invoked conditionally." "$LINENO" 5
11287fi
11288
11289: ${CONFIG_STATUS=./config.status}
11290ac_write_fail=0
11291ac_clean_files_save=$ac_clean_files
11292ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11294$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11295as_write_fail=0
11296cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11297#! $SHELL
11298# Generated by $as_me.
11299# Run this file to recreate the current configuration.
11300# Compiler output produced by configure, useful for debugging
11301# configure, is in config.log if it exists.
11302
11303debug=false
11304ac_cs_recheck=false
11305ac_cs_silent=false
11306
11307SHELL=\${CONFIG_SHELL-$SHELL}
11308export SHELL
11309_ASEOF
11310cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11311## -------------------- ##
11312## M4sh Initialization. ##
11313## -------------------- ##
11314
11315# Be more Bourne compatible
11316DUALCASE=1; export DUALCASE # for MKS sh
11317if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11318  emulate sh
11319  NULLCMD=:
11320  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11321  # is contrary to our usage.  Disable this feature.
11322  alias -g '${1+"$@"}'='"$@"'
11323  setopt NO_GLOB_SUBST
11324else
11325  case `(set -o) 2>/dev/null` in #(
11326  *posix*) :
11327    set -o posix ;; #(
11328  *) :
11329     ;;
11330esac
11331fi
11332
11333
11334as_nl='
11335'
11336export as_nl
11337# Printing a long string crashes Solaris 7 /usr/bin/printf.
11338as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11339as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11340as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11341# Prefer a ksh shell builtin over an external printf program on Solaris,
11342# but without wasting forks for bash or zsh.
11343if test -z "$BASH_VERSION$ZSH_VERSION" \
11344    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11345  as_echo='print -r --'
11346  as_echo_n='print -rn --'
11347elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11348  as_echo='printf %s\n'
11349  as_echo_n='printf %s'
11350else
11351  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11352    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11353    as_echo_n='/usr/ucb/echo -n'
11354  else
11355    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11356    as_echo_n_body='eval
11357      arg=$1;
11358      case $arg in #(
11359      *"$as_nl"*)
11360	expr "X$arg" : "X\\(.*\\)$as_nl";
11361	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11362      esac;
11363      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11364    '
11365    export as_echo_n_body
11366    as_echo_n='sh -c $as_echo_n_body as_echo'
11367  fi
11368  export as_echo_body
11369  as_echo='sh -c $as_echo_body as_echo'
11370fi
11371
11372# The user is always right.
11373if test "${PATH_SEPARATOR+set}" != set; then
11374  PATH_SEPARATOR=:
11375  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11376    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11377      PATH_SEPARATOR=';'
11378  }
11379fi
11380
11381
11382# IFS
11383# We need space, tab and new line, in precisely that order.  Quoting is
11384# there to prevent editors from complaining about space-tab.
11385# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11386# splitting by setting IFS to empty value.)
11387IFS=" ""	$as_nl"
11388
11389# Find who we are.  Look in the path if we contain no directory separator.
11390case $0 in #((
11391  *[\\/]* ) as_myself=$0 ;;
11392  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393for as_dir in $PATH
11394do
11395  IFS=$as_save_IFS
11396  test -z "$as_dir" && as_dir=.
11397    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11398  done
11399IFS=$as_save_IFS
11400
11401     ;;
11402esac
11403# We did not find ourselves, most probably we were run as `sh COMMAND'
11404# in which case we are not to be found in the path.
11405if test "x$as_myself" = x; then
11406  as_myself=$0
11407fi
11408if test ! -f "$as_myself"; then
11409  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11410  exit 1
11411fi
11412
11413# Unset variables that we do not need and which cause bugs (e.g. in
11414# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11415# suppresses any "Segmentation fault" message there.  '((' could
11416# trigger a bug in pdksh 5.2.14.
11417for as_var in BASH_ENV ENV MAIL MAILPATH
11418do eval test x\${$as_var+set} = xset \
11419  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11420done
11421PS1='$ '
11422PS2='> '
11423PS4='+ '
11424
11425# NLS nuisances.
11426LC_ALL=C
11427export LC_ALL
11428LANGUAGE=C
11429export LANGUAGE
11430
11431# CDPATH.
11432(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11433
11434
11435# as_fn_error ERROR [LINENO LOG_FD]
11436# ---------------------------------
11437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11439# script with status $?, using 1 if that was 0.
11440as_fn_error ()
11441{
11442  as_status=$?; test $as_status -eq 0 && as_status=1
11443  if test "$3"; then
11444    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11445    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11446  fi
11447  $as_echo "$as_me: error: $1" >&2
11448  as_fn_exit $as_status
11449} # as_fn_error
11450
11451
11452# as_fn_set_status STATUS
11453# -----------------------
11454# Set $? to STATUS, without forking.
11455as_fn_set_status ()
11456{
11457  return $1
11458} # as_fn_set_status
11459
11460# as_fn_exit STATUS
11461# -----------------
11462# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11463as_fn_exit ()
11464{
11465  set +e
11466  as_fn_set_status $1
11467  exit $1
11468} # as_fn_exit
11469
11470# as_fn_unset VAR
11471# ---------------
11472# Portably unset VAR.
11473as_fn_unset ()
11474{
11475  { eval $1=; unset $1;}
11476}
11477as_unset=as_fn_unset
11478# as_fn_append VAR VALUE
11479# ----------------------
11480# Append the text in VALUE to the end of the definition contained in VAR. Take
11481# advantage of any shell optimizations that allow amortized linear growth over
11482# repeated appends, instead of the typical quadratic growth present in naive
11483# implementations.
11484if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11485  eval 'as_fn_append ()
11486  {
11487    eval $1+=\$2
11488  }'
11489else
11490  as_fn_append ()
11491  {
11492    eval $1=\$$1\$2
11493  }
11494fi # as_fn_append
11495
11496# as_fn_arith ARG...
11497# ------------------
11498# Perform arithmetic evaluation on the ARGs, and store the result in the
11499# global $as_val. Take advantage of shells that can avoid forks. The arguments
11500# must be portable across $(()) and expr.
11501if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11502  eval 'as_fn_arith ()
11503  {
11504    as_val=$(( $* ))
11505  }'
11506else
11507  as_fn_arith ()
11508  {
11509    as_val=`expr "$@" || test $? -eq 1`
11510  }
11511fi # as_fn_arith
11512
11513
11514if expr a : '\(a\)' >/dev/null 2>&1 &&
11515   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11516  as_expr=expr
11517else
11518  as_expr=false
11519fi
11520
11521if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11522  as_basename=basename
11523else
11524  as_basename=false
11525fi
11526
11527if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11528  as_dirname=dirname
11529else
11530  as_dirname=false
11531fi
11532
11533as_me=`$as_basename -- "$0" ||
11534$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11535	 X"$0" : 'X\(//\)$' \| \
11536	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11537$as_echo X/"$0" |
11538    sed '/^.*\/\([^/][^/]*\)\/*$/{
11539	    s//\1/
11540	    q
11541	  }
11542	  /^X\/\(\/\/\)$/{
11543	    s//\1/
11544	    q
11545	  }
11546	  /^X\/\(\/\).*/{
11547	    s//\1/
11548	    q
11549	  }
11550	  s/.*/./; q'`
11551
11552# Avoid depending upon Character Ranges.
11553as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11554as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11555as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11556as_cr_digits='0123456789'
11557as_cr_alnum=$as_cr_Letters$as_cr_digits
11558
11559ECHO_C= ECHO_N= ECHO_T=
11560case `echo -n x` in #(((((
11561-n*)
11562  case `echo 'xy\c'` in
11563  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11564  xy)  ECHO_C='\c';;
11565  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11566       ECHO_T='	';;
11567  esac;;
11568*)
11569  ECHO_N='-n';;
11570esac
11571
11572rm -f conf$$ conf$$.exe conf$$.file
11573if test -d conf$$.dir; then
11574  rm -f conf$$.dir/conf$$.file
11575else
11576  rm -f conf$$.dir
11577  mkdir conf$$.dir 2>/dev/null
11578fi
11579if (echo >conf$$.file) 2>/dev/null; then
11580  if ln -s conf$$.file conf$$ 2>/dev/null; then
11581    as_ln_s='ln -s'
11582    # ... but there are two gotchas:
11583    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11584    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11585    # In both cases, we have to default to `cp -p'.
11586    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11587      as_ln_s='cp -p'
11588  elif ln conf$$.file conf$$ 2>/dev/null; then
11589    as_ln_s=ln
11590  else
11591    as_ln_s='cp -p'
11592  fi
11593else
11594  as_ln_s='cp -p'
11595fi
11596rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11597rmdir conf$$.dir 2>/dev/null
11598
11599
11600# as_fn_mkdir_p
11601# -------------
11602# Create "$as_dir" as a directory, including parents if necessary.
11603as_fn_mkdir_p ()
11604{
11605
11606  case $as_dir in #(
11607  -*) as_dir=./$as_dir;;
11608  esac
11609  test -d "$as_dir" || eval $as_mkdir_p || {
11610    as_dirs=
11611    while :; do
11612      case $as_dir in #(
11613      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11614      *) as_qdir=$as_dir;;
11615      esac
11616      as_dirs="'$as_qdir' $as_dirs"
11617      as_dir=`$as_dirname -- "$as_dir" ||
11618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11619	 X"$as_dir" : 'X\(//\)[^/]' \| \
11620	 X"$as_dir" : 'X\(//\)$' \| \
11621	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11622$as_echo X"$as_dir" |
11623    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11624	    s//\1/
11625	    q
11626	  }
11627	  /^X\(\/\/\)[^/].*/{
11628	    s//\1/
11629	    q
11630	  }
11631	  /^X\(\/\/\)$/{
11632	    s//\1/
11633	    q
11634	  }
11635	  /^X\(\/\).*/{
11636	    s//\1/
11637	    q
11638	  }
11639	  s/.*/./; q'`
11640      test -d "$as_dir" && break
11641    done
11642    test -z "$as_dirs" || eval "mkdir $as_dirs"
11643  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11644
11645
11646} # as_fn_mkdir_p
11647if mkdir -p . 2>/dev/null; then
11648  as_mkdir_p='mkdir -p "$as_dir"'
11649else
11650  test -d ./-p && rmdir ./-p
11651  as_mkdir_p=false
11652fi
11653
11654if test -x / >/dev/null 2>&1; then
11655  as_test_x='test -x'
11656else
11657  if ls -dL / >/dev/null 2>&1; then
11658    as_ls_L_option=L
11659  else
11660    as_ls_L_option=
11661  fi
11662  as_test_x='
11663    eval sh -c '\''
11664      if test -d "$1"; then
11665	test -d "$1/.";
11666      else
11667	case $1 in #(
11668	-*)set "./$1";;
11669	esac;
11670	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11671	???[sx]*):;;*)false;;esac;fi
11672    '\'' sh
11673  '
11674fi
11675as_executable_p=$as_test_x
11676
11677# Sed expression to map a string onto a valid CPP name.
11678as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11679
11680# Sed expression to map a string onto a valid variable name.
11681as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11682
11683
11684exec 6>&1
11685## ----------------------------------- ##
11686## Main body of $CONFIG_STATUS script. ##
11687## ----------------------------------- ##
11688_ASEOF
11689test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11690
11691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11692# Save the log message, to keep $0 and so on meaningful, and to
11693# report actual input values of CONFIG_FILES etc. instead of their
11694# values after options handling.
11695ac_log="
11696This file was extended by xf86-input-mouse $as_me 1.6.0, which was
11697generated by GNU Autoconf 2.65.  Invocation command line was
11698
11699  CONFIG_FILES    = $CONFIG_FILES
11700  CONFIG_HEADERS  = $CONFIG_HEADERS
11701  CONFIG_LINKS    = $CONFIG_LINKS
11702  CONFIG_COMMANDS = $CONFIG_COMMANDS
11703  $ $0 $@
11704
11705on `(hostname || uname -n) 2>/dev/null | sed 1q`
11706"
11707
11708_ACEOF
11709
11710case $ac_config_files in *"
11711"*) set x $ac_config_files; shift; ac_config_files=$*;;
11712esac
11713
11714case $ac_config_headers in *"
11715"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11716esac
11717
11718
11719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11720# Files that config.status was made for.
11721config_files="$ac_config_files"
11722config_headers="$ac_config_headers"
11723config_commands="$ac_config_commands"
11724
11725_ACEOF
11726
11727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11728ac_cs_usage="\
11729\`$as_me' instantiates files and other configuration actions
11730from templates according to the current configuration.  Unless the files
11731and actions are specified as TAGs, all are instantiated by default.
11732
11733Usage: $0 [OPTION]... [TAG]...
11734
11735  -h, --help       print this help, then exit
11736  -V, --version    print version number and configuration settings, then exit
11737      --config     print configuration, then exit
11738  -q, --quiet, --silent
11739                   do not print progress messages
11740  -d, --debug      don't remove temporary files
11741      --recheck    update $as_me by reconfiguring in the same conditions
11742      --file=FILE[:TEMPLATE]
11743                   instantiate the configuration file FILE
11744      --header=FILE[:TEMPLATE]
11745                   instantiate the configuration header FILE
11746
11747Configuration files:
11748$config_files
11749
11750Configuration headers:
11751$config_headers
11752
11753Configuration commands:
11754$config_commands
11755
11756Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11757
11758_ACEOF
11759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11760ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11761ac_cs_version="\\
11762xf86-input-mouse config.status 1.6.0
11763configured by $0, generated by GNU Autoconf 2.65,
11764  with options \\"\$ac_cs_config\\"
11765
11766Copyright (C) 2009 Free Software Foundation, Inc.
11767This config.status script is free software; the Free Software Foundation
11768gives unlimited permission to copy, distribute and modify it."
11769
11770ac_pwd='$ac_pwd'
11771srcdir='$srcdir'
11772INSTALL='$INSTALL'
11773MKDIR_P='$MKDIR_P'
11774AWK='$AWK'
11775test -n "\$AWK" || AWK=awk
11776_ACEOF
11777
11778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11779# The default lists apply if the user does not specify any file.
11780ac_need_defaults=:
11781while test $# != 0
11782do
11783  case $1 in
11784  --*=*)
11785    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11786    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11787    ac_shift=:
11788    ;;
11789  *)
11790    ac_option=$1
11791    ac_optarg=$2
11792    ac_shift=shift
11793    ;;
11794  esac
11795
11796  case $ac_option in
11797  # Handling of the options.
11798  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11799    ac_cs_recheck=: ;;
11800  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11801    $as_echo "$ac_cs_version"; exit ;;
11802  --config | --confi | --conf | --con | --co | --c )
11803    $as_echo "$ac_cs_config"; exit ;;
11804  --debug | --debu | --deb | --de | --d | -d )
11805    debug=: ;;
11806  --file | --fil | --fi | --f )
11807    $ac_shift
11808    case $ac_optarg in
11809    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11810    esac
11811    as_fn_append CONFIG_FILES " '$ac_optarg'"
11812    ac_need_defaults=false;;
11813  --header | --heade | --head | --hea )
11814    $ac_shift
11815    case $ac_optarg in
11816    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11817    esac
11818    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11819    ac_need_defaults=false;;
11820  --he | --h)
11821    # Conflict between --help and --header
11822    as_fn_error "ambiguous option: \`$1'
11823Try \`$0 --help' for more information.";;
11824  --help | --hel | -h )
11825    $as_echo "$ac_cs_usage"; exit ;;
11826  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11827  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11828    ac_cs_silent=: ;;
11829
11830  # This is an error.
11831  -*) as_fn_error "unrecognized option: \`$1'
11832Try \`$0 --help' for more information." ;;
11833
11834  *) as_fn_append ac_config_targets " $1"
11835     ac_need_defaults=false ;;
11836
11837  esac
11838  shift
11839done
11840
11841ac_configure_extra_args=
11842
11843if $ac_cs_silent; then
11844  exec 6>/dev/null
11845  ac_configure_extra_args="$ac_configure_extra_args --silent"
11846fi
11847
11848_ACEOF
11849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11850if \$ac_cs_recheck; then
11851  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11852  shift
11853  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11854  CONFIG_SHELL='$SHELL'
11855  export CONFIG_SHELL
11856  exec "\$@"
11857fi
11858
11859_ACEOF
11860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11861exec 5>>config.log
11862{
11863  echo
11864  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11865## Running $as_me. ##
11866_ASBOX
11867  $as_echo "$ac_log"
11868} >&5
11869
11870_ACEOF
11871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11872#
11873# INIT-COMMANDS
11874#
11875AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11876
11877
11878# The HP-UX ksh and POSIX shell print the target directory to stdout
11879# if CDPATH is set.
11880(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11881
11882sed_quote_subst='$sed_quote_subst'
11883double_quote_subst='$double_quote_subst'
11884delay_variable_subst='$delay_variable_subst'
11885enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11886macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11887macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11888enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11889pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11890enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11891host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11892host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11893host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11894build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11895build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11896build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11897SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11898Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11899GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11900EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11901FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11902LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11903NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11904LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11905max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11906ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11907exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11908lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11909lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11910lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11911reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11912reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11913OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11914deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11915file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11916AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11917AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11918STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11919RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11920old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11921old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11922old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11923CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11924CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11925compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11926GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11927lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11928lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11929lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11930lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11931objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11932SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11933ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11934MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11935lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11936lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11937lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11938lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11939lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11940need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11941DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11942NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11943LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11944OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11945OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11946libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11947shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11948extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11949archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11950enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11951export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11952whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11953compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11954old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11955old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11956archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11957archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11958module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11959module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11960with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11961allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11962no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11963hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11964hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11965hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11966hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11967hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11968hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11969hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11970hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11971inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11972link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11973fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11974always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11975export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11976exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11977include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11978prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11979file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11980variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11981need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11982need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11983version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11984runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11985shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11986shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11987libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11988library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11989soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11990postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11991postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11992finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11993finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11994hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11995sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11996sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11997hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11998enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11999enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12000enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12001old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12002striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12003
12004LTCC='$LTCC'
12005LTCFLAGS='$LTCFLAGS'
12006compiler='$compiler_DEFAULT'
12007
12008# Quote evaled strings.
12009for var in SED \
12010GREP \
12011EGREP \
12012FGREP \
12013LD \
12014NM \
12015LN_S \
12016lt_SP2NL \
12017lt_NL2SP \
12018reload_flag \
12019OBJDUMP \
12020deplibs_check_method \
12021file_magic_cmd \
12022AR \
12023AR_FLAGS \
12024STRIP \
12025RANLIB \
12026CC \
12027CFLAGS \
12028compiler \
12029lt_cv_sys_global_symbol_pipe \
12030lt_cv_sys_global_symbol_to_cdecl \
12031lt_cv_sys_global_symbol_to_c_name_address \
12032lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12033SHELL \
12034ECHO \
12035lt_prog_compiler_no_builtin_flag \
12036lt_prog_compiler_wl \
12037lt_prog_compiler_pic \
12038lt_prog_compiler_static \
12039lt_cv_prog_compiler_c_o \
12040need_locks \
12041DSYMUTIL \
12042NMEDIT \
12043LIPO \
12044OTOOL \
12045OTOOL64 \
12046shrext_cmds \
12047export_dynamic_flag_spec \
12048whole_archive_flag_spec \
12049compiler_needs_object \
12050with_gnu_ld \
12051allow_undefined_flag \
12052no_undefined_flag \
12053hardcode_libdir_flag_spec \
12054hardcode_libdir_flag_spec_ld \
12055hardcode_libdir_separator \
12056fix_srcfile_path \
12057exclude_expsyms \
12058include_expsyms \
12059file_list_spec \
12060variables_saved_for_relink \
12061libname_spec \
12062library_names_spec \
12063soname_spec \
12064finish_eval \
12065old_striplib \
12066striplib; do
12067    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12068    *[\\\\\\\`\\"\\\$]*)
12069      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12070      ;;
12071    *)
12072      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12073      ;;
12074    esac
12075done
12076
12077# Double-quote double-evaled strings.
12078for var in reload_cmds \
12079old_postinstall_cmds \
12080old_postuninstall_cmds \
12081old_archive_cmds \
12082extract_expsyms_cmds \
12083old_archive_from_new_cmds \
12084old_archive_from_expsyms_cmds \
12085archive_cmds \
12086archive_expsym_cmds \
12087module_cmds \
12088module_expsym_cmds \
12089export_symbols_cmds \
12090prelink_cmds \
12091postinstall_cmds \
12092postuninstall_cmds \
12093finish_cmds \
12094sys_lib_search_path_spec \
12095sys_lib_dlsearch_path_spec; do
12096    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12097    *[\\\\\\\`\\"\\\$]*)
12098      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12099      ;;
12100    *)
12101      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12102      ;;
12103    esac
12104done
12105
12106# Fix-up fallback echo if it was mangled by the above quoting rules.
12107case \$lt_ECHO in
12108*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12109  ;;
12110esac
12111
12112ac_aux_dir='$ac_aux_dir'
12113xsi_shell='$xsi_shell'
12114lt_shell_append='$lt_shell_append'
12115
12116# See if we are running on zsh, and set the options which allow our
12117# commands through without removal of \ escapes INIT.
12118if test -n "\${ZSH_VERSION+set}" ; then
12119   setopt NO_GLOB_SUBST
12120fi
12121
12122
12123    PACKAGE='$PACKAGE'
12124    VERSION='$VERSION'
12125    TIMESTAMP='$TIMESTAMP'
12126    RM='$RM'
12127    ofile='$ofile'
12128
12129
12130
12131
12132_ACEOF
12133
12134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12135
12136# Handling of arguments.
12137for ac_config_target in $ac_config_targets
12138do
12139  case $ac_config_target in
12140    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12141    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12142    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12143    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12144    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12145    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12146
12147  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12148  esac
12149done
12150
12151
12152# If the user did not use the arguments to specify the items to instantiate,
12153# then the envvar interface is used.  Set only those that are not.
12154# We use the long form for the default assignment because of an extremely
12155# bizarre bug on SunOS 4.1.3.
12156if $ac_need_defaults; then
12157  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12158  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12159  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12160fi
12161
12162# Have a temporary directory for convenience.  Make it in the build tree
12163# simply because there is no reason against having it here, and in addition,
12164# creating and moving files from /tmp can sometimes cause problems.
12165# Hook for its removal unless debugging.
12166# Note that there is a small window in which the directory will not be cleaned:
12167# after its creation but before its name has been assigned to `$tmp'.
12168$debug ||
12169{
12170  tmp=
12171  trap 'exit_status=$?
12172  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12173' 0
12174  trap 'as_fn_exit 1' 1 2 13 15
12175}
12176# Create a (secure) tmp directory for tmp files.
12177
12178{
12179  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12180  test -n "$tmp" && test -d "$tmp"
12181}  ||
12182{
12183  tmp=./conf$$-$RANDOM
12184  (umask 077 && mkdir "$tmp")
12185} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12186
12187# Set up the scripts for CONFIG_FILES section.
12188# No need to generate them if there are no CONFIG_FILES.
12189# This happens for instance with `./config.status config.h'.
12190if test -n "$CONFIG_FILES"; then
12191
12192
12193ac_cr=`echo X | tr X '\015'`
12194# On cygwin, bash can eat \r inside `` if the user requested igncr.
12195# But we know of no other shell where ac_cr would be empty at this
12196# point, so we can use a bashism as a fallback.
12197if test "x$ac_cr" = x; then
12198  eval ac_cr=\$\'\\r\'
12199fi
12200ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12201if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12202  ac_cs_awk_cr='\r'
12203else
12204  ac_cs_awk_cr=$ac_cr
12205fi
12206
12207echo 'BEGIN {' >"$tmp/subs1.awk" &&
12208_ACEOF
12209
12210
12211{
12212  echo "cat >conf$$subs.awk <<_ACEOF" &&
12213  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12214  echo "_ACEOF"
12215} >conf$$subs.sh ||
12216  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12217ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12218ac_delim='%!_!# '
12219for ac_last_try in false false false false false :; do
12220  . ./conf$$subs.sh ||
12221    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12222
12223  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12224  if test $ac_delim_n = $ac_delim_num; then
12225    break
12226  elif $ac_last_try; then
12227    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12228  else
12229    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12230  fi
12231done
12232rm -f conf$$subs.sh
12233
12234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12235cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12236_ACEOF
12237sed -n '
12238h
12239s/^/S["/; s/!.*/"]=/
12240p
12241g
12242s/^[^!]*!//
12243:repl
12244t repl
12245s/'"$ac_delim"'$//
12246t delim
12247:nl
12248h
12249s/\(.\{148\}\)..*/\1/
12250t more1
12251s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12252p
12253n
12254b repl
12255:more1
12256s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12257p
12258g
12259s/.\{148\}//
12260t nl
12261:delim
12262h
12263s/\(.\{148\}\)..*/\1/
12264t more2
12265s/["\\]/\\&/g; s/^/"/; s/$/"/
12266p
12267b
12268:more2
12269s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12270p
12271g
12272s/.\{148\}//
12273t delim
12274' <conf$$subs.awk | sed '
12275/^[^""]/{
12276  N
12277  s/\n//
12278}
12279' >>$CONFIG_STATUS || ac_write_fail=1
12280rm -f conf$$subs.awk
12281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12282_ACAWK
12283cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12284  for (key in S) S_is_set[key] = 1
12285  FS = ""
12286
12287}
12288{
12289  line = $ 0
12290  nfields = split(line, field, "@")
12291  substed = 0
12292  len = length(field[1])
12293  for (i = 2; i < nfields; i++) {
12294    key = field[i]
12295    keylen = length(key)
12296    if (S_is_set[key]) {
12297      value = S[key]
12298      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12299      len += length(value) + length(field[++i])
12300      substed = 1
12301    } else
12302      len += 1 + keylen
12303  }
12304
12305  print line
12306}
12307
12308_ACAWK
12309_ACEOF
12310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12311if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12312  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12313else
12314  cat
12315fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12316  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12317_ACEOF
12318
12319# VPATH may cause trouble with some makes, so we remove $(srcdir),
12320# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12321# trailing colons and then remove the whole line if VPATH becomes empty
12322# (actually we leave an empty line to preserve line numbers).
12323if test "x$srcdir" = x.; then
12324  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12325s/:*\$(srcdir):*/:/
12326s/:*\${srcdir}:*/:/
12327s/:*@srcdir@:*/:/
12328s/^\([^=]*=[	 ]*\):*/\1/
12329s/:*$//
12330s/^[^=]*=[	 ]*$//
12331}'
12332fi
12333
12334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12335fi # test -n "$CONFIG_FILES"
12336
12337# Set up the scripts for CONFIG_HEADERS section.
12338# No need to generate them if there are no CONFIG_HEADERS.
12339# This happens for instance with `./config.status Makefile'.
12340if test -n "$CONFIG_HEADERS"; then
12341cat >"$tmp/defines.awk" <<\_ACAWK ||
12342BEGIN {
12343_ACEOF
12344
12345# Transform confdefs.h into an awk script `defines.awk', embedded as
12346# here-document in config.status, that substitutes the proper values into
12347# config.h.in to produce config.h.
12348
12349# Create a delimiter string that does not exist in confdefs.h, to ease
12350# handling of long lines.
12351ac_delim='%!_!# '
12352for ac_last_try in false false :; do
12353  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12354  if test -z "$ac_t"; then
12355    break
12356  elif $ac_last_try; then
12357    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12358  else
12359    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12360  fi
12361done
12362
12363# For the awk script, D is an array of macro values keyed by name,
12364# likewise P contains macro parameters if any.  Preserve backslash
12365# newline sequences.
12366
12367ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12368sed -n '
12369s/.\{148\}/&'"$ac_delim"'/g
12370t rset
12371:rset
12372s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12373t def
12374d
12375:def
12376s/\\$//
12377t bsnl
12378s/["\\]/\\&/g
12379s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12380D["\1"]=" \3"/p
12381s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12382d
12383:bsnl
12384s/["\\]/\\&/g
12385s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12386D["\1"]=" \3\\\\\\n"\\/p
12387t cont
12388s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12389t cont
12390d
12391:cont
12392n
12393s/.\{148\}/&'"$ac_delim"'/g
12394t clear
12395:clear
12396s/\\$//
12397t bsnlc
12398s/["\\]/\\&/g; s/^/"/; s/$/"/p
12399d
12400:bsnlc
12401s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12402b cont
12403' <confdefs.h | sed '
12404s/'"$ac_delim"'/"\\\
12405"/g' >>$CONFIG_STATUS || ac_write_fail=1
12406
12407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12408  for (key in D) D_is_set[key] = 1
12409  FS = ""
12410}
12411/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12412  line = \$ 0
12413  split(line, arg, " ")
12414  if (arg[1] == "#") {
12415    defundef = arg[2]
12416    mac1 = arg[3]
12417  } else {
12418    defundef = substr(arg[1], 2)
12419    mac1 = arg[2]
12420  }
12421  split(mac1, mac2, "(") #)
12422  macro = mac2[1]
12423  prefix = substr(line, 1, index(line, defundef) - 1)
12424  if (D_is_set[macro]) {
12425    # Preserve the white space surrounding the "#".
12426    print prefix "define", macro P[macro] D[macro]
12427    next
12428  } else {
12429    # Replace #undef with comments.  This is necessary, for example,
12430    # in the case of _POSIX_SOURCE, which is predefined and required
12431    # on some systems where configure will not decide to define it.
12432    if (defundef == "undef") {
12433      print "/*", prefix defundef, macro, "*/"
12434      next
12435    }
12436  }
12437}
12438{ print }
12439_ACAWK
12440_ACEOF
12441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12442  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12443fi # test -n "$CONFIG_HEADERS"
12444
12445
12446eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12447shift
12448for ac_tag
12449do
12450  case $ac_tag in
12451  :[FHLC]) ac_mode=$ac_tag; continue;;
12452  esac
12453  case $ac_mode$ac_tag in
12454  :[FHL]*:*);;
12455  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12456  :[FH]-) ac_tag=-:-;;
12457  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12458  esac
12459  ac_save_IFS=$IFS
12460  IFS=:
12461  set x $ac_tag
12462  IFS=$ac_save_IFS
12463  shift
12464  ac_file=$1
12465  shift
12466
12467  case $ac_mode in
12468  :L) ac_source=$1;;
12469  :[FH])
12470    ac_file_inputs=
12471    for ac_f
12472    do
12473      case $ac_f in
12474      -) ac_f="$tmp/stdin";;
12475      *) # Look for the file first in the build tree, then in the source tree
12476	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12477	 # because $ac_f cannot contain `:'.
12478	 test -f "$ac_f" ||
12479	   case $ac_f in
12480	   [\\/$]*) false;;
12481	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12482	   esac ||
12483	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12484      esac
12485      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12486      as_fn_append ac_file_inputs " '$ac_f'"
12487    done
12488
12489    # Let's still pretend it is `configure' which instantiates (i.e., don't
12490    # use $as_me), people would be surprised to read:
12491    #    /* config.h.  Generated by config.status.  */
12492    configure_input='Generated from '`
12493	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12494	`' by configure.'
12495    if test x"$ac_file" != x-; then
12496      configure_input="$ac_file.  $configure_input"
12497      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12498$as_echo "$as_me: creating $ac_file" >&6;}
12499    fi
12500    # Neutralize special characters interpreted by sed in replacement strings.
12501    case $configure_input in #(
12502    *\&* | *\|* | *\\* )
12503       ac_sed_conf_input=`$as_echo "$configure_input" |
12504       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12505    *) ac_sed_conf_input=$configure_input;;
12506    esac
12507
12508    case $ac_tag in
12509    *:-:* | *:-) cat >"$tmp/stdin" \
12510      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12511    esac
12512    ;;
12513  esac
12514
12515  ac_dir=`$as_dirname -- "$ac_file" ||
12516$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12517	 X"$ac_file" : 'X\(//\)[^/]' \| \
12518	 X"$ac_file" : 'X\(//\)$' \| \
12519	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12520$as_echo X"$ac_file" |
12521    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12522	    s//\1/
12523	    q
12524	  }
12525	  /^X\(\/\/\)[^/].*/{
12526	    s//\1/
12527	    q
12528	  }
12529	  /^X\(\/\/\)$/{
12530	    s//\1/
12531	    q
12532	  }
12533	  /^X\(\/\).*/{
12534	    s//\1/
12535	    q
12536	  }
12537	  s/.*/./; q'`
12538  as_dir="$ac_dir"; as_fn_mkdir_p
12539  ac_builddir=.
12540
12541case "$ac_dir" in
12542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12543*)
12544  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12545  # A ".." for each directory in $ac_dir_suffix.
12546  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12547  case $ac_top_builddir_sub in
12548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12550  esac ;;
12551esac
12552ac_abs_top_builddir=$ac_pwd
12553ac_abs_builddir=$ac_pwd$ac_dir_suffix
12554# for backward compatibility:
12555ac_top_builddir=$ac_top_build_prefix
12556
12557case $srcdir in
12558  .)  # We are building in place.
12559    ac_srcdir=.
12560    ac_top_srcdir=$ac_top_builddir_sub
12561    ac_abs_top_srcdir=$ac_pwd ;;
12562  [\\/]* | ?:[\\/]* )  # Absolute name.
12563    ac_srcdir=$srcdir$ac_dir_suffix;
12564    ac_top_srcdir=$srcdir
12565    ac_abs_top_srcdir=$srcdir ;;
12566  *) # Relative name.
12567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12568    ac_top_srcdir=$ac_top_build_prefix$srcdir
12569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12570esac
12571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12572
12573
12574  case $ac_mode in
12575  :F)
12576  #
12577  # CONFIG_FILE
12578  #
12579
12580  case $INSTALL in
12581  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12582  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12583  esac
12584  ac_MKDIR_P=$MKDIR_P
12585  case $MKDIR_P in
12586  [\\/$]* | ?:[\\/]* ) ;;
12587  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12588  esac
12589_ACEOF
12590
12591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12592# If the template does not know about datarootdir, expand it.
12593# FIXME: This hack should be removed a few years after 2.60.
12594ac_datarootdir_hack=; ac_datarootdir_seen=
12595ac_sed_dataroot='
12596/datarootdir/ {
12597  p
12598  q
12599}
12600/@datadir@/p
12601/@docdir@/p
12602/@infodir@/p
12603/@localedir@/p
12604/@mandir@/p'
12605case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12606*datarootdir*) ac_datarootdir_seen=yes;;
12607*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12608  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12609$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12610_ACEOF
12611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12612  ac_datarootdir_hack='
12613  s&@datadir@&$datadir&g
12614  s&@docdir@&$docdir&g
12615  s&@infodir@&$infodir&g
12616  s&@localedir@&$localedir&g
12617  s&@mandir@&$mandir&g
12618  s&\\\${datarootdir}&$datarootdir&g' ;;
12619esac
12620_ACEOF
12621
12622# Neutralize VPATH when `$srcdir' = `.'.
12623# Shell code in configure.ac might set extrasub.
12624# FIXME: do we really want to maintain this feature?
12625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12626ac_sed_extra="$ac_vpsub
12627$extrasub
12628_ACEOF
12629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12630:t
12631/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12632s|@configure_input@|$ac_sed_conf_input|;t t
12633s&@top_builddir@&$ac_top_builddir_sub&;t t
12634s&@top_build_prefix@&$ac_top_build_prefix&;t t
12635s&@srcdir@&$ac_srcdir&;t t
12636s&@abs_srcdir@&$ac_abs_srcdir&;t t
12637s&@top_srcdir@&$ac_top_srcdir&;t t
12638s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12639s&@builddir@&$ac_builddir&;t t
12640s&@abs_builddir@&$ac_abs_builddir&;t t
12641s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12642s&@INSTALL@&$ac_INSTALL&;t t
12643s&@MKDIR_P@&$ac_MKDIR_P&;t t
12644$ac_datarootdir_hack
12645"
12646eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12647  || as_fn_error "could not create $ac_file" "$LINENO" 5
12648
12649test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12650  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12651  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12652  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12653which seems to be undefined.  Please make sure it is defined." >&5
12654$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12655which seems to be undefined.  Please make sure it is defined." >&2;}
12656
12657  rm -f "$tmp/stdin"
12658  case $ac_file in
12659  -) cat "$tmp/out" && rm -f "$tmp/out";;
12660  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12661  esac \
12662  || as_fn_error "could not create $ac_file" "$LINENO" 5
12663 ;;
12664  :H)
12665  #
12666  # CONFIG_HEADER
12667  #
12668  if test x"$ac_file" != x-; then
12669    {
12670      $as_echo "/* $configure_input  */" \
12671      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12672    } >"$tmp/config.h" \
12673      || as_fn_error "could not create $ac_file" "$LINENO" 5
12674    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12675      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12676$as_echo "$as_me: $ac_file is unchanged" >&6;}
12677    else
12678      rm -f "$ac_file"
12679      mv "$tmp/config.h" "$ac_file" \
12680	|| as_fn_error "could not create $ac_file" "$LINENO" 5
12681    fi
12682  else
12683    $as_echo "/* $configure_input  */" \
12684      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12685      || as_fn_error "could not create -" "$LINENO" 5
12686  fi
12687# Compute "$ac_file"'s index in $config_headers.
12688_am_arg="$ac_file"
12689_am_stamp_count=1
12690for _am_header in $config_headers :; do
12691  case $_am_header in
12692    $_am_arg | $_am_arg:* )
12693      break ;;
12694    * )
12695      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12696  esac
12697done
12698echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12699$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12700	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12701	 X"$_am_arg" : 'X\(//\)$' \| \
12702	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12703$as_echo X"$_am_arg" |
12704    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12705	    s//\1/
12706	    q
12707	  }
12708	  /^X\(\/\/\)[^/].*/{
12709	    s//\1/
12710	    q
12711	  }
12712	  /^X\(\/\/\)$/{
12713	    s//\1/
12714	    q
12715	  }
12716	  /^X\(\/\).*/{
12717	    s//\1/
12718	    q
12719	  }
12720	  s/.*/./; q'`/stamp-h$_am_stamp_count
12721 ;;
12722
12723  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12724$as_echo "$as_me: executing $ac_file commands" >&6;}
12725 ;;
12726  esac
12727
12728
12729  case $ac_file$ac_mode in
12730    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12731  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12732  # are listed without --file.  Let's play safe and only enable the eval
12733  # if we detect the quoting.
12734  case $CONFIG_FILES in
12735  *\'*) eval set x "$CONFIG_FILES" ;;
12736  *)   set x $CONFIG_FILES ;;
12737  esac
12738  shift
12739  for mf
12740  do
12741    # Strip MF so we end up with the name of the file.
12742    mf=`echo "$mf" | sed -e 's/:.*$//'`
12743    # Check whether this is an Automake generated Makefile or not.
12744    # We used to match only the files named `Makefile.in', but
12745    # some people rename them; so instead we look at the file content.
12746    # Grep'ing the first line is not enough: some people post-process
12747    # each Makefile.in and add a new line on top of each file to say so.
12748    # Grep'ing the whole file is not good either: AIX grep has a line
12749    # limit of 2048, but all sed's we know have understand at least 4000.
12750    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12751      dirpart=`$as_dirname -- "$mf" ||
12752$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12753	 X"$mf" : 'X\(//\)[^/]' \| \
12754	 X"$mf" : 'X\(//\)$' \| \
12755	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12756$as_echo X"$mf" |
12757    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12758	    s//\1/
12759	    q
12760	  }
12761	  /^X\(\/\/\)[^/].*/{
12762	    s//\1/
12763	    q
12764	  }
12765	  /^X\(\/\/\)$/{
12766	    s//\1/
12767	    q
12768	  }
12769	  /^X\(\/\).*/{
12770	    s//\1/
12771	    q
12772	  }
12773	  s/.*/./; q'`
12774    else
12775      continue
12776    fi
12777    # Extract the definition of DEPDIR, am__include, and am__quote
12778    # from the Makefile without running `make'.
12779    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12780    test -z "$DEPDIR" && continue
12781    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12782    test -z "am__include" && continue
12783    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12784    # When using ansi2knr, U may be empty or an underscore; expand it
12785    U=`sed -n 's/^U = //p' < "$mf"`
12786    # Find all dependency output files, they are included files with
12787    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12788    # simplest approach to changing $(DEPDIR) to its actual value in the
12789    # expansion.
12790    for file in `sed -n "
12791      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12792	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12793      # Make sure the directory exists.
12794      test -f "$dirpart/$file" && continue
12795      fdir=`$as_dirname -- "$file" ||
12796$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12797	 X"$file" : 'X\(//\)[^/]' \| \
12798	 X"$file" : 'X\(//\)$' \| \
12799	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12800$as_echo X"$file" |
12801    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12802	    s//\1/
12803	    q
12804	  }
12805	  /^X\(\/\/\)[^/].*/{
12806	    s//\1/
12807	    q
12808	  }
12809	  /^X\(\/\/\)$/{
12810	    s//\1/
12811	    q
12812	  }
12813	  /^X\(\/\).*/{
12814	    s//\1/
12815	    q
12816	  }
12817	  s/.*/./; q'`
12818      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12819      # echo "creating $dirpart/$file"
12820      echo '# dummy' > "$dirpart/$file"
12821    done
12822  done
12823}
12824 ;;
12825    "libtool":C)
12826
12827    # See if we are running on zsh, and set the options which allow our
12828    # commands through without removal of \ escapes.
12829    if test -n "${ZSH_VERSION+set}" ; then
12830      setopt NO_GLOB_SUBST
12831    fi
12832
12833    cfgfile="${ofile}T"
12834    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12835    $RM "$cfgfile"
12836
12837    cat <<_LT_EOF >> "$cfgfile"
12838#! $SHELL
12839
12840# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12841# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12842# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12843# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12844#
12845#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12846#                 2006, 2007, 2008 Free Software Foundation, Inc.
12847#   Written by Gordon Matzigkeit, 1996
12848#
12849#   This file is part of GNU Libtool.
12850#
12851# GNU Libtool is free software; you can redistribute it and/or
12852# modify it under the terms of the GNU General Public License as
12853# published by the Free Software Foundation; either version 2 of
12854# the License, or (at your option) any later version.
12855#
12856# As a special exception to the GNU General Public License,
12857# if you distribute this file as part of a program or library that
12858# is built using GNU Libtool, you may include this file under the
12859# same distribution terms that you use for the rest of that program.
12860#
12861# GNU Libtool is distributed in the hope that it will be useful,
12862# but WITHOUT ANY WARRANTY; without even the implied warranty of
12863# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12864# GNU General Public License for more details.
12865#
12866# You should have received a copy of the GNU General Public License
12867# along with GNU Libtool; see the file COPYING.  If not, a copy
12868# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12869# obtained by writing to the Free Software Foundation, Inc.,
12870# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12871
12872
12873# The names of the tagged configurations supported by this script.
12874available_tags=""
12875
12876# ### BEGIN LIBTOOL CONFIG
12877
12878# Whether or not to build static libraries.
12879build_old_libs=$enable_static
12880
12881# Which release of libtool.m4 was used?
12882macro_version=$macro_version
12883macro_revision=$macro_revision
12884
12885# Whether or not to build shared libraries.
12886build_libtool_libs=$enable_shared
12887
12888# What type of objects to build.
12889pic_mode=$pic_mode
12890
12891# Whether or not to optimize for fast installation.
12892fast_install=$enable_fast_install
12893
12894# The host system.
12895host_alias=$host_alias
12896host=$host
12897host_os=$host_os
12898
12899# The build system.
12900build_alias=$build_alias
12901build=$build
12902build_os=$build_os
12903
12904# A sed program that does not truncate output.
12905SED=$lt_SED
12906
12907# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12908Xsed="\$SED -e 1s/^X//"
12909
12910# A grep program that handles long lines.
12911GREP=$lt_GREP
12912
12913# An ERE matcher.
12914EGREP=$lt_EGREP
12915
12916# A literal string matcher.
12917FGREP=$lt_FGREP
12918
12919# A BSD- or MS-compatible name lister.
12920NM=$lt_NM
12921
12922# Whether we need soft or hard links.
12923LN_S=$lt_LN_S
12924
12925# What is the maximum length of a command?
12926max_cmd_len=$max_cmd_len
12927
12928# Object file suffix (normally "o").
12929objext=$ac_objext
12930
12931# Executable file suffix (normally "").
12932exeext=$exeext
12933
12934# whether the shell understands "unset".
12935lt_unset=$lt_unset
12936
12937# turn spaces into newlines.
12938SP2NL=$lt_lt_SP2NL
12939
12940# turn newlines into spaces.
12941NL2SP=$lt_lt_NL2SP
12942
12943# How to create reloadable object files.
12944reload_flag=$lt_reload_flag
12945reload_cmds=$lt_reload_cmds
12946
12947# An object symbol dumper.
12948OBJDUMP=$lt_OBJDUMP
12949
12950# Method to check whether dependent libraries are shared objects.
12951deplibs_check_method=$lt_deplibs_check_method
12952
12953# Command to use when deplibs_check_method == "file_magic".
12954file_magic_cmd=$lt_file_magic_cmd
12955
12956# The archiver.
12957AR=$lt_AR
12958AR_FLAGS=$lt_AR_FLAGS
12959
12960# A symbol stripping program.
12961STRIP=$lt_STRIP
12962
12963# Commands used to install an old-style archive.
12964RANLIB=$lt_RANLIB
12965old_postinstall_cmds=$lt_old_postinstall_cmds
12966old_postuninstall_cmds=$lt_old_postuninstall_cmds
12967
12968# A C compiler.
12969LTCC=$lt_CC
12970
12971# LTCC compiler flags.
12972LTCFLAGS=$lt_CFLAGS
12973
12974# Take the output of nm and produce a listing of raw symbols and C names.
12975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12976
12977# Transform the output of nm in a proper C declaration.
12978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12979
12980# Transform the output of nm in a C name address pair.
12981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12982
12983# Transform the output of nm in a C name address pair when lib prefix is needed.
12984global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12985
12986# The name of the directory that contains temporary libtool files.
12987objdir=$objdir
12988
12989# Shell to use when invoking shell scripts.
12990SHELL=$lt_SHELL
12991
12992# An echo program that does not interpret backslashes.
12993ECHO=$lt_ECHO
12994
12995# Used to examine libraries when file_magic_cmd begins with "file".
12996MAGIC_CMD=$MAGIC_CMD
12997
12998# Must we lock files when doing compilation?
12999need_locks=$lt_need_locks
13000
13001# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13002DSYMUTIL=$lt_DSYMUTIL
13003
13004# Tool to change global to local symbols on Mac OS X.
13005NMEDIT=$lt_NMEDIT
13006
13007# Tool to manipulate fat objects and archives on Mac OS X.
13008LIPO=$lt_LIPO
13009
13010# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13011OTOOL=$lt_OTOOL
13012
13013# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13014OTOOL64=$lt_OTOOL64
13015
13016# Old archive suffix (normally "a").
13017libext=$libext
13018
13019# Shared library suffix (normally ".so").
13020shrext_cmds=$lt_shrext_cmds
13021
13022# The commands to extract the exported symbol list from a shared archive.
13023extract_expsyms_cmds=$lt_extract_expsyms_cmds
13024
13025# Variables whose values should be saved in libtool wrapper scripts and
13026# restored at link time.
13027variables_saved_for_relink=$lt_variables_saved_for_relink
13028
13029# Do we need the "lib" prefix for modules?
13030need_lib_prefix=$need_lib_prefix
13031
13032# Do we need a version for libraries?
13033need_version=$need_version
13034
13035# Library versioning type.
13036version_type=$version_type
13037
13038# Shared library runtime path variable.
13039runpath_var=$runpath_var
13040
13041# Shared library path variable.
13042shlibpath_var=$shlibpath_var
13043
13044# Is shlibpath searched before the hard-coded library search path?
13045shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13046
13047# Format of library name prefix.
13048libname_spec=$lt_libname_spec
13049
13050# List of archive names.  First name is the real one, the rest are links.
13051# The last name is the one that the linker finds with -lNAME
13052library_names_spec=$lt_library_names_spec
13053
13054# The coded name of the library, if different from the real name.
13055soname_spec=$lt_soname_spec
13056
13057# Command to use after installation of a shared archive.
13058postinstall_cmds=$lt_postinstall_cmds
13059
13060# Command to use after uninstallation of a shared archive.
13061postuninstall_cmds=$lt_postuninstall_cmds
13062
13063# Commands used to finish a libtool library installation in a directory.
13064finish_cmds=$lt_finish_cmds
13065
13066# As "finish_cmds", except a single script fragment to be evaled but
13067# not shown.
13068finish_eval=$lt_finish_eval
13069
13070# Whether we should hardcode library paths into libraries.
13071hardcode_into_libs=$hardcode_into_libs
13072
13073# Compile-time system search path for libraries.
13074sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13075
13076# Run-time system search path for libraries.
13077sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13078
13079# Whether dlopen is supported.
13080dlopen_support=$enable_dlopen
13081
13082# Whether dlopen of programs is supported.
13083dlopen_self=$enable_dlopen_self
13084
13085# Whether dlopen of statically linked programs is supported.
13086dlopen_self_static=$enable_dlopen_self_static
13087
13088# Commands to strip libraries.
13089old_striplib=$lt_old_striplib
13090striplib=$lt_striplib
13091
13092
13093# The linker used to build libraries.
13094LD=$lt_LD
13095
13096# Commands used to build an old-style archive.
13097old_archive_cmds=$lt_old_archive_cmds
13098
13099# A language specific compiler.
13100CC=$lt_compiler
13101
13102# Is the compiler the GNU compiler?
13103with_gcc=$GCC
13104
13105# Compiler flag to turn off builtin functions.
13106no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13107
13108# How to pass a linker flag through the compiler.
13109wl=$lt_lt_prog_compiler_wl
13110
13111# Additional compiler flags for building library objects.
13112pic_flag=$lt_lt_prog_compiler_pic
13113
13114# Compiler flag to prevent dynamic linking.
13115link_static_flag=$lt_lt_prog_compiler_static
13116
13117# Does compiler simultaneously support -c and -o options?
13118compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13119
13120# Whether or not to add -lc for building shared libraries.
13121build_libtool_need_lc=$archive_cmds_need_lc
13122
13123# Whether or not to disallow shared libs when runtime libs are static.
13124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13125
13126# Compiler flag to allow reflexive dlopens.
13127export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13128
13129# Compiler flag to generate shared objects directly from archives.
13130whole_archive_flag_spec=$lt_whole_archive_flag_spec
13131
13132# Whether the compiler copes with passing no objects directly.
13133compiler_needs_object=$lt_compiler_needs_object
13134
13135# Create an old-style archive from a shared archive.
13136old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13137
13138# Create a temporary old-style archive to link instead of a shared archive.
13139old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13140
13141# Commands used to build a shared archive.
13142archive_cmds=$lt_archive_cmds
13143archive_expsym_cmds=$lt_archive_expsym_cmds
13144
13145# Commands used to build a loadable module if different from building
13146# a shared archive.
13147module_cmds=$lt_module_cmds
13148module_expsym_cmds=$lt_module_expsym_cmds
13149
13150# Whether we are building with GNU ld or not.
13151with_gnu_ld=$lt_with_gnu_ld
13152
13153# Flag that allows shared libraries with undefined symbols to be built.
13154allow_undefined_flag=$lt_allow_undefined_flag
13155
13156# Flag that enforces no undefined symbols.
13157no_undefined_flag=$lt_no_undefined_flag
13158
13159# Flag to hardcode \$libdir into a binary during linking.
13160# This must work even if \$libdir does not exist
13161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13162
13163# If ld is used when linking, flag to hardcode \$libdir into a binary
13164# during linking.  This must work even if \$libdir does not exist.
13165hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13166
13167# Whether we need a single "-rpath" flag with a separated argument.
13168hardcode_libdir_separator=$lt_hardcode_libdir_separator
13169
13170# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13171# DIR into the resulting binary.
13172hardcode_direct=$hardcode_direct
13173
13174# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13175# DIR into the resulting binary and the resulting library dependency is
13176# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13177# library is relocated.
13178hardcode_direct_absolute=$hardcode_direct_absolute
13179
13180# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13181# into the resulting binary.
13182hardcode_minus_L=$hardcode_minus_L
13183
13184# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13185# into the resulting binary.
13186hardcode_shlibpath_var=$hardcode_shlibpath_var
13187
13188# Set to "yes" if building a shared library automatically hardcodes DIR
13189# into the library and all subsequent libraries and executables linked
13190# against it.
13191hardcode_automatic=$hardcode_automatic
13192
13193# Set to yes if linker adds runtime paths of dependent libraries
13194# to runtime path list.
13195inherit_rpath=$inherit_rpath
13196
13197# Whether libtool must link a program against all its dependency libraries.
13198link_all_deplibs=$link_all_deplibs
13199
13200# Fix the shell variable \$srcfile for the compiler.
13201fix_srcfile_path=$lt_fix_srcfile_path
13202
13203# Set to "yes" if exported symbols are required.
13204always_export_symbols=$always_export_symbols
13205
13206# The commands to list exported symbols.
13207export_symbols_cmds=$lt_export_symbols_cmds
13208
13209# Symbols that should not be listed in the preloaded symbols.
13210exclude_expsyms=$lt_exclude_expsyms
13211
13212# Symbols that must always be exported.
13213include_expsyms=$lt_include_expsyms
13214
13215# Commands necessary for linking programs (against libraries) with templates.
13216prelink_cmds=$lt_prelink_cmds
13217
13218# Specify filename containing input files.
13219file_list_spec=$lt_file_list_spec
13220
13221# How to hardcode a shared library path into an executable.
13222hardcode_action=$hardcode_action
13223
13224# ### END LIBTOOL CONFIG
13225
13226_LT_EOF
13227
13228  case $host_os in
13229  aix3*)
13230    cat <<\_LT_EOF >> "$cfgfile"
13231# AIX sometimes has problems with the GCC collect2 program.  For some
13232# reason, if we set the COLLECT_NAMES environment variable, the problems
13233# vanish in a puff of smoke.
13234if test "X${COLLECT_NAMES+set}" != Xset; then
13235  COLLECT_NAMES=
13236  export COLLECT_NAMES
13237fi
13238_LT_EOF
13239    ;;
13240  esac
13241
13242
13243ltmain="$ac_aux_dir/ltmain.sh"
13244
13245
13246  # We use sed instead of cat because bash on DJGPP gets confused if
13247  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13248  # text mode, it properly converts lines to CR/LF.  This bash problem
13249  # is reportedly fixed, but why not run on old versions too?
13250  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13251    || (rm -f "$cfgfile"; exit 1)
13252
13253  case $xsi_shell in
13254  yes)
13255    cat << \_LT_EOF >> "$cfgfile"
13256
13257# func_dirname file append nondir_replacement
13258# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13259# otherwise set result to NONDIR_REPLACEMENT.
13260func_dirname ()
13261{
13262  case ${1} in
13263    */*) func_dirname_result="${1%/*}${2}" ;;
13264    *  ) func_dirname_result="${3}" ;;
13265  esac
13266}
13267
13268# func_basename file
13269func_basename ()
13270{
13271  func_basename_result="${1##*/}"
13272}
13273
13274# func_dirname_and_basename file append nondir_replacement
13275# perform func_basename and func_dirname in a single function
13276# call:
13277#   dirname:  Compute the dirname of FILE.  If nonempty,
13278#             add APPEND to the result, otherwise set result
13279#             to NONDIR_REPLACEMENT.
13280#             value returned in "$func_dirname_result"
13281#   basename: Compute filename of FILE.
13282#             value retuned in "$func_basename_result"
13283# Implementation must be kept synchronized with func_dirname
13284# and func_basename. For efficiency, we do not delegate to
13285# those functions but instead duplicate the functionality here.
13286func_dirname_and_basename ()
13287{
13288  case ${1} in
13289    */*) func_dirname_result="${1%/*}${2}" ;;
13290    *  ) func_dirname_result="${3}" ;;
13291  esac
13292  func_basename_result="${1##*/}"
13293}
13294
13295# func_stripname prefix suffix name
13296# strip PREFIX and SUFFIX off of NAME.
13297# PREFIX and SUFFIX must not contain globbing or regex special
13298# characters, hashes, percent signs, but SUFFIX may contain a leading
13299# dot (in which case that matches only a dot).
13300func_stripname ()
13301{
13302  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13303  # positional parameters, so assign one to ordinary parameter first.
13304  func_stripname_result=${3}
13305  func_stripname_result=${func_stripname_result#"${1}"}
13306  func_stripname_result=${func_stripname_result%"${2}"}
13307}
13308
13309# func_opt_split
13310func_opt_split ()
13311{
13312  func_opt_split_opt=${1%%=*}
13313  func_opt_split_arg=${1#*=}
13314}
13315
13316# func_lo2o object
13317func_lo2o ()
13318{
13319  case ${1} in
13320    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13321    *)    func_lo2o_result=${1} ;;
13322  esac
13323}
13324
13325# func_xform libobj-or-source
13326func_xform ()
13327{
13328  func_xform_result=${1%.*}.lo
13329}
13330
13331# func_arith arithmetic-term...
13332func_arith ()
13333{
13334  func_arith_result=$(( $* ))
13335}
13336
13337# func_len string
13338# STRING may not start with a hyphen.
13339func_len ()
13340{
13341  func_len_result=${#1}
13342}
13343
13344_LT_EOF
13345    ;;
13346  *) # Bourne compatible functions.
13347    cat << \_LT_EOF >> "$cfgfile"
13348
13349# func_dirname file append nondir_replacement
13350# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13351# otherwise set result to NONDIR_REPLACEMENT.
13352func_dirname ()
13353{
13354  # Extract subdirectory from the argument.
13355  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13356  if test "X$func_dirname_result" = "X${1}"; then
13357    func_dirname_result="${3}"
13358  else
13359    func_dirname_result="$func_dirname_result${2}"
13360  fi
13361}
13362
13363# func_basename file
13364func_basename ()
13365{
13366  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13367}
13368
13369
13370# func_stripname prefix suffix name
13371# strip PREFIX and SUFFIX off of NAME.
13372# PREFIX and SUFFIX must not contain globbing or regex special
13373# characters, hashes, percent signs, but SUFFIX may contain a leading
13374# dot (in which case that matches only a dot).
13375# func_strip_suffix prefix name
13376func_stripname ()
13377{
13378  case ${2} in
13379    .*) func_stripname_result=`$ECHO "X${3}" \
13380           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13381    *)  func_stripname_result=`$ECHO "X${3}" \
13382           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13383  esac
13384}
13385
13386# sed scripts:
13387my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13388my_sed_long_arg='1s/^-[^=]*=//'
13389
13390# func_opt_split
13391func_opt_split ()
13392{
13393  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13394  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13395}
13396
13397# func_lo2o object
13398func_lo2o ()
13399{
13400  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13401}
13402
13403# func_xform libobj-or-source
13404func_xform ()
13405{
13406  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13407}
13408
13409# func_arith arithmetic-term...
13410func_arith ()
13411{
13412  func_arith_result=`expr "$@"`
13413}
13414
13415# func_len string
13416# STRING may not start with a hyphen.
13417func_len ()
13418{
13419  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13420}
13421
13422_LT_EOF
13423esac
13424
13425case $lt_shell_append in
13426  yes)
13427    cat << \_LT_EOF >> "$cfgfile"
13428
13429# func_append var value
13430# Append VALUE to the end of shell variable VAR.
13431func_append ()
13432{
13433  eval "$1+=\$2"
13434}
13435_LT_EOF
13436    ;;
13437  *)
13438    cat << \_LT_EOF >> "$cfgfile"
13439
13440# func_append var value
13441# Append VALUE to the end of shell variable VAR.
13442func_append ()
13443{
13444  eval "$1=\$$1\$2"
13445}
13446
13447_LT_EOF
13448    ;;
13449  esac
13450
13451
13452  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13453    || (rm -f "$cfgfile"; exit 1)
13454
13455  mv -f "$cfgfile" "$ofile" ||
13456    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13457  chmod +x "$ofile"
13458
13459 ;;
13460
13461  esac
13462done # for ac_tag
13463
13464
13465as_fn_exit 0
13466_ACEOF
13467ac_clean_files=$ac_clean_files_save
13468
13469test $ac_write_fail = 0 ||
13470  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13471
13472
13473# configure is writing to config.log, and then calls config.status.
13474# config.status does its own redirection, appending to config.log.
13475# Unfortunately, on DOS this fails, as config.log is still kept open
13476# by configure, so config.status won't be able to write to it; its
13477# output is simply discarded.  So we exec the FD to /dev/null,
13478# effectively closing config.log, so it can be properly (re)opened and
13479# appended to by config.status.  When coming back to configure, we
13480# need to make the FD available again.
13481if test "$no_create" != yes; then
13482  ac_cs_success=:
13483  ac_config_status_args=
13484  test "$silent" = yes &&
13485    ac_config_status_args="$ac_config_status_args --quiet"
13486  exec 5>/dev/null
13487  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13488  exec 5>>config.log
13489  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13490  # would make configure fail if this is the last instruction.
13491  $ac_cs_success || as_fn_exit $?
13492fi
13493if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13495$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13496fi
13497
13498