configure revision 89069ce9
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66 for libXi 1.4.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540as_awk_strverscmp='
541  # Use only awk features that work with 7th edition Unix awk (1978).
542  # My, what an old awk you have, Mr. Solaris!
543  END {
544    while (length(v1) && length(v2)) {
545      # Set d1 to be the next thing to compare from v1, and likewise for d2.
546      # Normally this is a single character, but if v1 and v2 contain digits,
547      # compare them as integers and fractions as strverscmp does.
548      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549	# Split v1 and v2 into their leading digit string components d1 and d2,
550	# and advance v1 and v2 past the leading digit strings.
551	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
555	if (d1 ~ /^0/) {
556	  if (d2 ~ /^0/) {
557	    # Compare two fractions.
558	    while (d1 ~ /^0/ && d2 ~ /^0/) {
559	      d1 = substr(d1, 2); len1--
560	      d2 = substr(d2, 2); len2--
561	    }
562	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563	      # The two components differ in length, and the common prefix
564	      # contains only leading zeros.  Consider the longer to be less.
565	      d1 = -len1
566	      d2 = -len2
567	    } else {
568	      # Otherwise, compare as strings.
569	      d1 = "x" d1
570	      d2 = "x" d2
571	    }
572	  } else {
573	    # A fraction is less than an integer.
574	    exit 1
575	  }
576	} else {
577	  if (d2 ~ /^0/) {
578	    # An integer is greater than a fraction.
579	    exit 2
580	  } else {
581	    # Compare two integers.
582	    d1 += 0
583	    d2 += 0
584	  }
585	}
586      } else {
587	# The normal case, without worrying about digits.
588	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
590      }
591      if (d1 < d2) exit 1
592      if (d1 > d2) exit 2
593    }
594    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595    # which mishandles some comparisons of empty strings to integers.
596    if (length(v2)) exit 1
597    if (length(v1)) exit 2
598  }
599'
600SHELL=${CONFIG_SHELL-/bin/sh}
601
602
603test -n "$DJDIR" || exec 7<&0 </dev/null
604exec 6>&1
605
606# Name of the host.
607# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
608# so uname gets run too.
609ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
610
611#
612# Initializations.
613#
614ac_default_prefix=/usr/local
615ac_clean_files=
616ac_config_libobj_dir=.
617LIBOBJS=
618cross_compiling=no
619subdirs=
620MFLAGS=
621MAKEFLAGS=
622
623# Identity of this package.
624PACKAGE_NAME='libXi'
625PACKAGE_TARNAME='libXi'
626PACKAGE_VERSION='1.4.1'
627PACKAGE_STRING='libXi 1.4.1'
628PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
629PACKAGE_URL=''
630
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stdio.h>
634#ifdef HAVE_SYS_TYPES_H
635# include <sys/types.h>
636#endif
637#ifdef HAVE_SYS_STAT_H
638# include <sys/stat.h>
639#endif
640#ifdef STDC_HEADERS
641# include <stdlib.h>
642# include <stddef.h>
643#else
644# ifdef HAVE_STDLIB_H
645#  include <stdlib.h>
646# endif
647#endif
648#ifdef HAVE_STRING_H
649# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
650#  include <memory.h>
651# endif
652# include <string.h>
653#endif
654#ifdef HAVE_STRINGS_H
655# include <strings.h>
656#endif
657#ifdef HAVE_INTTYPES_H
658# include <inttypes.h>
659#endif
660#ifdef HAVE_STDINT_H
661# include <stdint.h>
662#endif
663#ifdef HAVE_UNISTD_H
664# include <unistd.h>
665#endif"
666
667ac_subst_vars='am__EXEEXT_FALSE
668am__EXEEXT_TRUE
669LTLIBOBJS
670LIBOBJS
671XTMALLOC_ZERO_CFLAGS
672XMALLOC_ZERO_CFLAGS
673MALLOC_ZERO_CFLAGS
674INSTALL_MANPAGES_FALSE
675INSTALL_MANPAGES_TRUE
676HAVE_DOCTOOLS_FALSE
677HAVE_DOCTOOLS_TRUE
678XI_LIBS
679XI_CFLAGS
680OTOOL64
681OTOOL
682LIPO
683NMEDIT
684DSYMUTIL
685RANLIB
686AR
687OBJDUMP
688LN_S
689NM
690ac_ct_DUMPBIN
691DUMPBIN
692LD
693FGREP
694LIBTOOL
695HAVE_ASCIIDOC_FALSE
696HAVE_ASCIIDOC_TRUE
697ASCIIDOC
698HAVE_STYLESHEETS_FALSE
699HAVE_STYLESHEETS_TRUE
700XSL_STYLESHEET
701STYLESHEET_SRCDIR
702XORG_SGML_PATH
703HAVE_FOP_FALSE
704HAVE_FOP_TRUE
705FOP
706HAVE_XMLTO_FALSE
707HAVE_XMLTO_TRUE
708HAVE_XMLTO_TEXT_FALSE
709HAVE_XMLTO_TEXT_TRUE
710XMLTO
711ENABLE_SPECS_FALSE
712ENABLE_SPECS_TRUE
713AM_BACKSLASH
714AM_DEFAULT_VERBOSITY
715MAN_SUBSTS
716XORG_MAN_PAGE
717ADMIN_MAN_DIR
718DRIVER_MAN_DIR
719MISC_MAN_DIR
720FILE_MAN_DIR
721LIB_MAN_DIR
722APP_MAN_DIR
723ADMIN_MAN_SUFFIX
724DRIVER_MAN_SUFFIX
725MISC_MAN_SUFFIX
726FILE_MAN_SUFFIX
727LIB_MAN_SUFFIX
728APP_MAN_SUFFIX
729SED
730host_os
731host_vendor
732host_cpu
733host
734build_os
735build_vendor
736build_cpu
737build
738INSTALL_CMD
739PKG_CONFIG_LIBDIR
740PKG_CONFIG_PATH
741PKG_CONFIG
742CHANGELOG_CMD
743CWARNFLAGS
744EGREP
745GREP
746CPP
747am__fastdepCC_FALSE
748am__fastdepCC_TRUE
749CCDEPMODE
750AMDEPBACKSLASH
751AMDEP_FALSE
752AMDEP_TRUE
753am__quote
754am__include
755DEPDIR
756OBJEXT
757EXEEXT
758ac_ct_CC
759CPPFLAGS
760LDFLAGS
761CFLAGS
762CC
763MAINT
764MAINTAINER_MODE_FALSE
765MAINTAINER_MODE_TRUE
766am__untar
767am__tar
768AMTAR
769am__leading_dot
770SET_MAKE
771AWK
772mkdir_p
773MKDIR_P
774INSTALL_STRIP_PROGRAM
775STRIP
776install_sh
777MAKEINFO
778AUTOHEADER
779AUTOMAKE
780AUTOCONF
781ACLOCAL
782VERSION
783PACKAGE
784CYGPATH_W
785am__isrc
786INSTALL_DATA
787INSTALL_SCRIPT
788INSTALL_PROGRAM
789target_alias
790host_alias
791build_alias
792LIBS
793ECHO_T
794ECHO_N
795ECHO_C
796DEFS
797mandir
798localedir
799libdir
800psdir
801pdfdir
802dvidir
803htmldir
804infodir
805docdir
806oldincludedir
807includedir
808localstatedir
809sharedstatedir
810sysconfdir
811datadir
812datarootdir
813libexecdir
814sbindir
815bindir
816program_transform_name
817prefix
818exec_prefix
819PACKAGE_URL
820PACKAGE_BUGREPORT
821PACKAGE_STRING
822PACKAGE_VERSION
823PACKAGE_TARNAME
824PACKAGE_NAME
825PATH_SEPARATOR
826SHELL'
827ac_subst_files=''
828ac_user_opts='
829enable_option_checking
830enable_maintainer_mode
831enable_dependency_tracking
832enable_strict_compilation
833enable_silent_rules
834enable_specs
835with_xmlto
836with_fop
837with_asciidoc
838enable_shared
839enable_static
840with_pic
841enable_fast_install
842with_gnu_ld
843enable_libtool_lock
844enable_malloc0returnsnull
845'
846      ac_precious_vars='build_alias
847host_alias
848target_alias
849CC
850CFLAGS
851LDFLAGS
852LIBS
853CPPFLAGS
854CPP
855PKG_CONFIG
856PKG_CONFIG_PATH
857PKG_CONFIG_LIBDIR
858XMLTO
859FOP
860ASCIIDOC
861XI_CFLAGS
862XI_LIBS'
863
864
865# Initialize some variables set by options.
866ac_init_help=
867ac_init_version=false
868ac_unrecognized_opts=
869ac_unrecognized_sep=
870# The variables have the same names as the options, with
871# dashes changed to underlines.
872cache_file=/dev/null
873exec_prefix=NONE
874no_create=
875no_recursion=
876prefix=NONE
877program_prefix=NONE
878program_suffix=NONE
879program_transform_name=s,x,x,
880silent=
881site=
882srcdir=
883verbose=
884x_includes=NONE
885x_libraries=NONE
886
887# Installation directory options.
888# These are left unexpanded so users can "make install exec_prefix=/foo"
889# and all the variables that are supposed to be based on exec_prefix
890# by default will actually change.
891# Use braces instead of parens because sh, perl, etc. also accept them.
892# (The list follows the same order as the GNU Coding Standards.)
893bindir='${exec_prefix}/bin'
894sbindir='${exec_prefix}/sbin'
895libexecdir='${exec_prefix}/libexec'
896datarootdir='${prefix}/share'
897datadir='${datarootdir}'
898sysconfdir='${prefix}/etc'
899sharedstatedir='${prefix}/com'
900localstatedir='${prefix}/var'
901includedir='${prefix}/include'
902oldincludedir='/usr/include'
903docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904infodir='${datarootdir}/info'
905htmldir='${docdir}'
906dvidir='${docdir}'
907pdfdir='${docdir}'
908psdir='${docdir}'
909libdir='${exec_prefix}/lib'
910localedir='${datarootdir}/locale'
911mandir='${datarootdir}/man'
912
913ac_prev=
914ac_dashdash=
915for ac_option
916do
917  # If the previous option needs an argument, assign it.
918  if test -n "$ac_prev"; then
919    eval $ac_prev=\$ac_option
920    ac_prev=
921    continue
922  fi
923
924  case $ac_option in
925  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926  *)	ac_optarg=yes ;;
927  esac
928
929  # Accept the important Cygnus configure options, so we can diagnose typos.
930
931  case $ac_dashdash$ac_option in
932  --)
933    ac_dashdash=yes ;;
934
935  -bindir | --bindir | --bindi | --bind | --bin | --bi)
936    ac_prev=bindir ;;
937  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938    bindir=$ac_optarg ;;
939
940  -build | --build | --buil | --bui | --bu)
941    ac_prev=build_alias ;;
942  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943    build_alias=$ac_optarg ;;
944
945  -cache-file | --cache-file | --cache-fil | --cache-fi \
946  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947    ac_prev=cache_file ;;
948  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950    cache_file=$ac_optarg ;;
951
952  --config-cache | -C)
953    cache_file=config.cache ;;
954
955  -datadir | --datadir | --datadi | --datad)
956    ac_prev=datadir ;;
957  -datadir=* | --datadir=* | --datadi=* | --datad=*)
958    datadir=$ac_optarg ;;
959
960  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961  | --dataroo | --dataro | --datar)
962    ac_prev=datarootdir ;;
963  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965    datarootdir=$ac_optarg ;;
966
967  -disable-* | --disable-*)
968    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969    # Reject names that are not valid shell variable names.
970    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971      as_fn_error $? "invalid feature name: $ac_useropt"
972    ac_useropt_orig=$ac_useropt
973    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974    case $ac_user_opts in
975      *"
976"enable_$ac_useropt"
977"*) ;;
978      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979	 ac_unrecognized_sep=', ';;
980    esac
981    eval enable_$ac_useropt=no ;;
982
983  -docdir | --docdir | --docdi | --doc | --do)
984    ac_prev=docdir ;;
985  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986    docdir=$ac_optarg ;;
987
988  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989    ac_prev=dvidir ;;
990  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991    dvidir=$ac_optarg ;;
992
993  -enable-* | --enable-*)
994    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997      as_fn_error $? "invalid feature name: $ac_useropt"
998    ac_useropt_orig=$ac_useropt
999    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000    case $ac_user_opts in
1001      *"
1002"enable_$ac_useropt"
1003"*) ;;
1004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005	 ac_unrecognized_sep=', ';;
1006    esac
1007    eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011  | --exec | --exe | --ex)
1012    ac_prev=exec_prefix ;;
1013  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015  | --exec=* | --exe=* | --ex=*)
1016    exec_prefix=$ac_optarg ;;
1017
1018  -gas | --gas | --ga | --g)
1019    # Obsolete; use --with-gas.
1020    with_gas=yes ;;
1021
1022  -help | --help | --hel | --he | -h)
1023    ac_init_help=long ;;
1024  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025    ac_init_help=recursive ;;
1026  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027    ac_init_help=short ;;
1028
1029  -host | --host | --hos | --ho)
1030    ac_prev=host_alias ;;
1031  -host=* | --host=* | --hos=* | --ho=*)
1032    host_alias=$ac_optarg ;;
1033
1034  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035    ac_prev=htmldir ;;
1036  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037  | --ht=*)
1038    htmldir=$ac_optarg ;;
1039
1040  -includedir | --includedir | --includedi | --included | --include \
1041  | --includ | --inclu | --incl | --inc)
1042    ac_prev=includedir ;;
1043  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044  | --includ=* | --inclu=* | --incl=* | --inc=*)
1045    includedir=$ac_optarg ;;
1046
1047  -infodir | --infodir | --infodi | --infod | --info | --inf)
1048    ac_prev=infodir ;;
1049  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050    infodir=$ac_optarg ;;
1051
1052  -libdir | --libdir | --libdi | --libd)
1053    ac_prev=libdir ;;
1054  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055    libdir=$ac_optarg ;;
1056
1057  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058  | --libexe | --libex | --libe)
1059    ac_prev=libexecdir ;;
1060  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061  | --libexe=* | --libex=* | --libe=*)
1062    libexecdir=$ac_optarg ;;
1063
1064  -localedir | --localedir | --localedi | --localed | --locale)
1065    ac_prev=localedir ;;
1066  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067    localedir=$ac_optarg ;;
1068
1069  -localstatedir | --localstatedir | --localstatedi | --localstated \
1070  | --localstate | --localstat | --localsta | --localst | --locals)
1071    ac_prev=localstatedir ;;
1072  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074    localstatedir=$ac_optarg ;;
1075
1076  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077    ac_prev=mandir ;;
1078  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079    mandir=$ac_optarg ;;
1080
1081  -nfp | --nfp | --nf)
1082    # Obsolete; use --without-fp.
1083    with_fp=no ;;
1084
1085  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086  | --no-cr | --no-c | -n)
1087    no_create=yes ;;
1088
1089  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091    no_recursion=yes ;;
1092
1093  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095  | --oldin | --oldi | --old | --ol | --o)
1096    ac_prev=oldincludedir ;;
1097  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100    oldincludedir=$ac_optarg ;;
1101
1102  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103    ac_prev=prefix ;;
1104  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105    prefix=$ac_optarg ;;
1106
1107  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108  | --program-pre | --program-pr | --program-p)
1109    ac_prev=program_prefix ;;
1110  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112    program_prefix=$ac_optarg ;;
1113
1114  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115  | --program-suf | --program-su | --program-s)
1116    ac_prev=program_suffix ;;
1117  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119    program_suffix=$ac_optarg ;;
1120
1121  -program-transform-name | --program-transform-name \
1122  | --program-transform-nam | --program-transform-na \
1123  | --program-transform-n | --program-transform- \
1124  | --program-transform | --program-transfor \
1125  | --program-transfo | --program-transf \
1126  | --program-trans | --program-tran \
1127  | --progr-tra | --program-tr | --program-t)
1128    ac_prev=program_transform_name ;;
1129  -program-transform-name=* | --program-transform-name=* \
1130  | --program-transform-nam=* | --program-transform-na=* \
1131  | --program-transform-n=* | --program-transform-=* \
1132  | --program-transform=* | --program-transfor=* \
1133  | --program-transfo=* | --program-transf=* \
1134  | --program-trans=* | --program-tran=* \
1135  | --progr-tra=* | --program-tr=* | --program-t=*)
1136    program_transform_name=$ac_optarg ;;
1137
1138  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139    ac_prev=pdfdir ;;
1140  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141    pdfdir=$ac_optarg ;;
1142
1143  -psdir | --psdir | --psdi | --psd | --ps)
1144    ac_prev=psdir ;;
1145  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146    psdir=$ac_optarg ;;
1147
1148  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149  | -silent | --silent | --silen | --sile | --sil)
1150    silent=yes ;;
1151
1152  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153    ac_prev=sbindir ;;
1154  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155  | --sbi=* | --sb=*)
1156    sbindir=$ac_optarg ;;
1157
1158  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160  | --sharedst | --shareds | --shared | --share | --shar \
1161  | --sha | --sh)
1162    ac_prev=sharedstatedir ;;
1163  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166  | --sha=* | --sh=*)
1167    sharedstatedir=$ac_optarg ;;
1168
1169  -site | --site | --sit)
1170    ac_prev=site ;;
1171  -site=* | --site=* | --sit=*)
1172    site=$ac_optarg ;;
1173
1174  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175    ac_prev=srcdir ;;
1176  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177    srcdir=$ac_optarg ;;
1178
1179  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180  | --syscon | --sysco | --sysc | --sys | --sy)
1181    ac_prev=sysconfdir ;;
1182  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184    sysconfdir=$ac_optarg ;;
1185
1186  -target | --target | --targe | --targ | --tar | --ta | --t)
1187    ac_prev=target_alias ;;
1188  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189    target_alias=$ac_optarg ;;
1190
1191  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192    verbose=yes ;;
1193
1194  -version | --version | --versio | --versi | --vers | -V)
1195    ac_init_version=: ;;
1196
1197  -with-* | --with-*)
1198    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199    # Reject names that are not valid shell variable names.
1200    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201      as_fn_error $? "invalid package name: $ac_useropt"
1202    ac_useropt_orig=$ac_useropt
1203    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204    case $ac_user_opts in
1205      *"
1206"with_$ac_useropt"
1207"*) ;;
1208      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209	 ac_unrecognized_sep=', ';;
1210    esac
1211    eval with_$ac_useropt=\$ac_optarg ;;
1212
1213  -without-* | --without-*)
1214    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217      as_fn_error $? "invalid package name: $ac_useropt"
1218    ac_useropt_orig=$ac_useropt
1219    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220    case $ac_user_opts in
1221      *"
1222"with_$ac_useropt"
1223"*) ;;
1224      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225	 ac_unrecognized_sep=', ';;
1226    esac
1227    eval with_$ac_useropt=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
1249    ;;
1250
1251  *=*)
1252    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253    # Reject names that are not valid shell variable names.
1254    case $ac_envvar in #(
1255      '' | [0-9]* | *[!_$as_cr_alnum]* )
1256      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257    esac
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  as_fn_error $? "missing argument to $ac_option"
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278  case $enable_option_checking in
1279    no) ;;
1280    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282  esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287		datadir sysconfdir sharedstatedir localstatedir includedir \
1288		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289		libdir localedir mandir
1290do
1291  eval ac_val=\$$ac_var
1292  # Remove trailing slashes.
1293  case $ac_val in
1294    */ )
1295      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296      eval $ac_var=\$ac_val;;
1297  esac
1298  # Be sure to have absolute directory names.
1299  case $ac_val in
1300    [\\/$]* | ?:[\\/]* )  continue;;
1301    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302  esac
1303  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315  if test "x$build_alias" = x; then
1316    cross_compiling=maybe
1317    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1318    If a cross compiler is detected then cross compile mode will be used" >&2
1319  elif test "x$build_alias" != "x$host_alias"; then
1320    cross_compiling=yes
1321  fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333  as_fn_error $? "working directory cannot be determined"
1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335  as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340  ac_srcdir_defaulted=yes
1341  # Try the directory containing this script, then the parent directory.
1342  ac_confdir=`$as_dirname -- "$as_myself" ||
1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344	 X"$as_myself" : 'X\(//\)[^/]' \| \
1345	 X"$as_myself" : 'X\(//\)$' \| \
1346	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347$as_echo X"$as_myself" |
1348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)[^/].*/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)$/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\).*/{
1361	    s//\1/
1362	    q
1363	  }
1364	  s/.*/./; q'`
1365  srcdir=$ac_confdir
1366  if test ! -r "$srcdir/$ac_unique_file"; then
1367    srcdir=..
1368  fi
1369else
1370  ac_srcdir_defaulted=no
1371fi
1372if test ! -r "$srcdir/$ac_unique_file"; then
1373  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375fi
1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
1378	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379	pwd)`
1380# When building in place, set srcdir=.
1381if test "$ac_abs_confdir" = "$ac_pwd"; then
1382  srcdir=.
1383fi
1384# Remove unnecessary trailing slashes from srcdir.
1385# Double slashes in file names in object file debugging info
1386# mess up M-x gdb in Emacs.
1387case $srcdir in
1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389esac
1390for ac_var in $ac_precious_vars; do
1391  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_env_${ac_var}_value=\$${ac_var}
1393  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395done
1396
1397#
1398# Report the --help message.
1399#
1400if test "$ac_init_help" = "long"; then
1401  # Omit some internal or obsolete options to make the list less imposing.
1402  # This message is too long to be a string in the A/UX 3.1 sh.
1403  cat <<_ACEOF
1404\`configure' configures libXi 1.4.1 to adapt to many kinds of systems.
1405
1406Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409VAR=VALUE.  See below for descriptions of some of the useful variables.
1410
1411Defaults for the options are specified in brackets.
1412
1413Configuration:
1414  -h, --help              display this help and exit
1415      --help=short        display options specific to this package
1416      --help=recursive    display the short help of all the included packages
1417  -V, --version           display version information and exit
1418  -q, --quiet, --silent   do not print \`checking ...' messages
1419      --cache-file=FILE   cache test results in FILE [disabled]
1420  -C, --config-cache      alias for \`--cache-file=config.cache'
1421  -n, --no-create         do not create output files
1422      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1423
1424Installation directories:
1425  --prefix=PREFIX         install architecture-independent files in PREFIX
1426                          [$ac_default_prefix]
1427  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                          [PREFIX]
1429
1430By default, \`make install' will install all the files in
1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433for instance \`--prefix=\$HOME'.
1434
1435For better control, use the options below.
1436
1437Fine tuning of the installation directories:
1438  --bindir=DIR            user executables [EPREFIX/bin]
1439  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1440  --libexecdir=DIR        program executables [EPREFIX/libexec]
1441  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1442  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1443  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1444  --libdir=DIR            object code libraries [EPREFIX/lib]
1445  --includedir=DIR        C header files [PREFIX/include]
1446  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1447  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1448  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1449  --infodir=DIR           info documentation [DATAROOTDIR/info]
1450  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1451  --mandir=DIR            man documentation [DATAROOTDIR/man]
1452  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXi]
1453  --htmldir=DIR           html documentation [DOCDIR]
1454  --dvidir=DIR            dvi documentation [DOCDIR]
1455  --pdfdir=DIR            pdf documentation [DOCDIR]
1456  --psdir=DIR             ps documentation [DOCDIR]
1457_ACEOF
1458
1459  cat <<\_ACEOF
1460
1461Program names:
1462  --program-prefix=PREFIX            prepend PREFIX to installed program names
1463  --program-suffix=SUFFIX            append SUFFIX to installed program names
1464  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1465
1466System types:
1467  --build=BUILD     configure for building on BUILD [guessed]
1468  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469_ACEOF
1470fi
1471
1472if test -n "$ac_init_help"; then
1473  case $ac_init_help in
1474     short | recursive ) echo "Configuration of libXi 1.4.1:";;
1475   esac
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-option-checking  ignore unrecognized --enable/--with options
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --enable-maintainer-mode  enable make rules and dependencies not useful
1483			  (and sometimes confusing) to the casual installer
1484  --disable-dependency-tracking  speeds up one-time build
1485  --enable-dependency-tracking   do not reject slow dependency extractors
1486  --enable-strict-compilation
1487                          Enable all warnings from compiler and make them
1488                          errors (default: disabled)
1489  --enable-silent-rules          less verbose build output (undo: `make V=1')
1490  --disable-silent-rules         verbose build output (undo: `make V=0')
1491  --enable-specs          Enable building the specs (default: yes)
1492  --enable-shared[=PKGS]  build shared libraries [default=yes]
1493  --enable-static[=PKGS]  build static libraries [default=yes]
1494  --enable-fast-install[=PKGS]
1495                          optimize for fast installation [default=yes]
1496  --disable-libtool-lock  avoid locking (might break parallel builds)
1497  --enable-malloc0returnsnull
1498                          malloc(0) returns NULL (default: auto)
1499
1500Optional Packages:
1501  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1502  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1503  --with-xmlto            Use xmlto to regenerate documentation (default: yes,
1504                          if installed)
1505  --with-fop              Use fop to regenerate documentation (default: yes,
1506                          if installed)
1507  --with-asciidoc         Use asciidoc to regenerate documentation (default:
1508                          yes, if installed)
1509  --with-pic              try to use only PIC/non-PIC objects [default=use
1510                          both]
1511  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1512
1513Some influential environment variables:
1514  CC          C compiler command
1515  CFLAGS      C compiler flags
1516  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517              nonstandard directory <lib dir>
1518  LIBS        libraries to pass to the linker, e.g. -l<library>
1519  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520              you have headers in a nonstandard directory <include dir>
1521  CPP         C preprocessor
1522  PKG_CONFIG  path to pkg-config utility
1523  PKG_CONFIG_PATH
1524              directories to add to pkg-config's search path
1525  PKG_CONFIG_LIBDIR
1526              path overriding pkg-config's built-in search path
1527  XMLTO       Path to xmlto command
1528  FOP         Path to fop command
1529  ASCIIDOC    Path to asciidoc command
1530  XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1531  XI_LIBS     linker flags for XI, overriding pkg-config
1532
1533Use these variables to override the choices made by `configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
1536Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1537_ACEOF
1538ac_status=$?
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542  # If there are subdirs, report their specific --help.
1543  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544    test -d "$ac_dir" ||
1545      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546      continue
1547    ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553  # A ".." for each directory in $ac_dir_suffix.
1554  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555  case $ac_top_builddir_sub in
1556  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558  esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566  .)  # We are building in place.
1567    ac_srcdir=.
1568    ac_top_srcdir=$ac_top_builddir_sub
1569    ac_abs_top_srcdir=$ac_pwd ;;
1570  [\\/]* | ?:[\\/]* )  # Absolute name.
1571    ac_srcdir=$srcdir$ac_dir_suffix;
1572    ac_top_srcdir=$srcdir
1573    ac_abs_top_srcdir=$srcdir ;;
1574  *) # Relative name.
1575    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576    ac_top_srcdir=$ac_top_build_prefix$srcdir
1577    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581    cd "$ac_dir" || { ac_status=$?; continue; }
1582    # Check for guested configure.
1583    if test -f "$ac_srcdir/configure.gnu"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586    elif test -f "$ac_srcdir/configure"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure" --help=recursive
1589    else
1590      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591    fi || ac_status=$?
1592    cd "$ac_pwd" || { ac_status=$?; break; }
1593  done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598  cat <<\_ACEOF
1599libXi configure 1.4.1
1600generated by GNU Autoconf 2.66
1601
1602Copyright (C) 2010 Free Software Foundation, Inc.
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
1605_ACEOF
1606  exit
1607fi
1608
1609## ------------------------ ##
1610## Autoconf initialization. ##
1611## ------------------------ ##
1612
1613# ac_fn_c_try_compile LINENO
1614# --------------------------
1615# Try to compile conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_compile ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  rm -f conftest.$ac_objext
1620  if { { ac_try="$ac_compile"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_compile") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } && {
1636	 test -z "$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       } && test -s conftest.$ac_objext; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644	ac_retval=1
1645fi
1646  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_compile
1650
1651# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1652# ---------------------------------------------
1653# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1654# accordingly.
1655ac_fn_c_check_decl ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  as_decl_name=`echo $2|sed 's/ *(.*//'`
1659  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1661$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1662if eval "test \"\${$3+set}\"" = set; then :
1663  $as_echo_n "(cached) " >&6
1664else
1665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h.  */
1667$4
1668int
1669main ()
1670{
1671#ifndef $as_decl_name
1672#ifdef __cplusplus
1673  (void) $as_decl_use;
1674#else
1675  (void) $as_decl_name;
1676#endif
1677#endif
1678
1679  ;
1680  return 0;
1681}
1682_ACEOF
1683if ac_fn_c_try_compile "$LINENO"; then :
1684  eval "$3=yes"
1685else
1686  eval "$3=no"
1687fi
1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689fi
1690eval ac_res=\$$3
1691	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692$as_echo "$ac_res" >&6; }
1693  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694
1695} # ac_fn_c_check_decl
1696
1697# ac_fn_c_try_cpp LINENO
1698# ----------------------
1699# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_cpp ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  if { { ac_try="$ac_cpp conftest.$ac_ext"
1704case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1711  ac_status=$?
1712  if test -s conftest.err; then
1713    grep -v '^ *+' conftest.err >conftest.er1
1714    cat conftest.er1 >&5
1715    mv -f conftest.er1 conftest.err
1716  fi
1717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718  test $ac_status = 0; } >/dev/null && {
1719	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1720	 test ! -s conftest.err
1721       }; then :
1722  ac_retval=0
1723else
1724  $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727    ac_retval=1
1728fi
1729  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_cpp
1733
1734# ac_fn_c_try_run LINENO
1735# ----------------------
1736# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737# that executables *can* be run.
1738ac_fn_c_try_run ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  if { { ac_try="$ac_link"
1742case "(($ac_try" in
1743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744  *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748  (eval "$ac_link") 2>&5
1749  ac_status=$?
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752  { { case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_try") 2>&5
1759  ac_status=$?
1760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; }; }; then :
1762  ac_retval=0
1763else
1764  $as_echo "$as_me: program exited with status $ac_status" >&5
1765       $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768       ac_retval=$ac_status
1769fi
1770  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772  as_fn_set_status $ac_retval
1773
1774} # ac_fn_c_try_run
1775
1776# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777# -------------------------------------------------------
1778# Tests whether HEADER exists and can be compiled using the include files in
1779# INCLUDES, setting the cache variable VAR accordingly.
1780ac_fn_c_check_header_compile ()
1781{
1782  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if eval "test \"\${$3+set}\"" = set; then :
1786  $as_echo_n "(cached) " >&6
1787else
1788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h.  */
1790$4
1791#include <$2>
1792_ACEOF
1793if ac_fn_c_try_compile "$LINENO"; then :
1794  eval "$3=yes"
1795else
1796  eval "$3=no"
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805} # ac_fn_c_check_header_compile
1806
1807# ac_fn_c_try_link LINENO
1808# -----------------------
1809# Try to link conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_c_try_link ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  rm -f conftest.$ac_objext conftest$ac_exeext
1814  if { { ac_try="$ac_link"
1815case "(($ac_try" in
1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817  *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821  (eval "$ac_link") 2>conftest.err
1822  ac_status=$?
1823  if test -s conftest.err; then
1824    grep -v '^ *+' conftest.err >conftest.er1
1825    cat conftest.er1 >&5
1826    mv -f conftest.er1 conftest.err
1827  fi
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && {
1830	 test -z "$ac_c_werror_flag" ||
1831	 test ! -s conftest.err
1832       } && test -s conftest$ac_exeext && {
1833	 test "$cross_compiling" = yes ||
1834	 $as_test_x conftest$ac_exeext
1835       }; then :
1836  ac_retval=0
1837else
1838  $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841	ac_retval=1
1842fi
1843  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845  # interfere with the next link command; also delete a directory that is
1846  # left behind by Apple's compiler.  We do this before executing the actions.
1847  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849  as_fn_set_status $ac_retval
1850
1851} # ac_fn_c_try_link
1852
1853# ac_fn_c_check_func LINENO FUNC VAR
1854# ----------------------------------
1855# Tests whether FUNC exists, setting the cache variable VAR accordingly
1856ac_fn_c_check_func ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860$as_echo_n "checking for $2... " >&6; }
1861if eval "test \"\${$3+set}\"" = set; then :
1862  $as_echo_n "(cached) " >&6
1863else
1864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1868#define $2 innocuous_$2
1869
1870/* System header to define __stub macros and hopefully few prototypes,
1871    which can conflict with char $2 (); below.
1872    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873    <limits.h> exists even on freestanding compilers.  */
1874
1875#ifdef __STDC__
1876# include <limits.h>
1877#else
1878# include <assert.h>
1879#endif
1880
1881#undef $2
1882
1883/* Override any GCC internal prototype to avoid an error.
1884   Use char because int might match the return type of a GCC
1885   builtin and then its argument prototype would still apply.  */
1886#ifdef __cplusplus
1887extern "C"
1888#endif
1889char $2 ();
1890/* The GNU C library defines this for functions which it implements
1891    to always fail with ENOSYS.  Some functions are actually named
1892    something starting with __ and the normal name is an alias.  */
1893#if defined __stub_$2 || defined __stub___$2
1894choke me
1895#endif
1896
1897int
1898main ()
1899{
1900return $2 ();
1901  ;
1902  return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_link "$LINENO"; then :
1906  eval "$3=yes"
1907else
1908  eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext \
1911    conftest$ac_exeext conftest.$ac_ext
1912fi
1913eval ac_res=\$$3
1914	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917
1918} # ac_fn_c_check_func
1919cat >config.log <<_ACEOF
1920This file contains any messages produced by compilers while
1921running configure, to aid debugging if configure makes a mistake.
1922
1923It was created by libXi $as_me 1.4.1, which was
1924generated by GNU Autoconf 2.66.  Invocation command line was
1925
1926  $ $0 $@
1927
1928_ACEOF
1929exec 5>>config.log
1930{
1931cat <<_ASUNAME
1932## --------- ##
1933## Platform. ##
1934## --------- ##
1935
1936hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941
1942/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1944
1945/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1946/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1947/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1949/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1950/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1951/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1952
1953_ASUNAME
1954
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH
1957do
1958  IFS=$as_save_IFS
1959  test -z "$as_dir" && as_dir=.
1960    $as_echo "PATH: $as_dir"
1961  done
1962IFS=$as_save_IFS
1963
1964} >&5
1965
1966cat >&5 <<_ACEOF
1967
1968
1969## ----------- ##
1970## Core tests. ##
1971## ----------- ##
1972
1973_ACEOF
1974
1975
1976# Keep a trace of the command line.
1977# Strip out --no-create and --no-recursion so they do not pile up.
1978# Strip out --silent because we don't want to record it for future runs.
1979# Also quote any args containing shell meta-characters.
1980# Make two passes to allow for proper duplicate-argument suppression.
1981ac_configure_args=
1982ac_configure_args0=
1983ac_configure_args1=
1984ac_must_keep_next=false
1985for ac_pass in 1 2
1986do
1987  for ac_arg
1988  do
1989    case $ac_arg in
1990    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992    | -silent | --silent | --silen | --sile | --sil)
1993      continue ;;
1994    *\'*)
1995      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996    esac
1997    case $ac_pass in
1998    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999    2)
2000      as_fn_append ac_configure_args1 " '$ac_arg'"
2001      if test $ac_must_keep_next = true; then
2002	ac_must_keep_next=false # Got value, back to normal.
2003      else
2004	case $ac_arg in
2005	  *=* | --config-cache | -C | -disable-* | --disable-* \
2006	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008	  | -with-* | --with-* | -without-* | --without-* | --x)
2009	    case "$ac_configure_args0 " in
2010	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011	    esac
2012	    ;;
2013	  -* ) ac_must_keep_next=true ;;
2014	esac
2015      fi
2016      as_fn_append ac_configure_args " '$ac_arg'"
2017      ;;
2018    esac
2019  done
2020done
2021{ ac_configure_args0=; unset ac_configure_args0;}
2022{ ac_configure_args1=; unset ac_configure_args1;}
2023
2024# When interrupted or exit'd, cleanup temporary files, and complete
2025# config.log.  We remove comments because anyway the quotes in there
2026# would cause problems or look ugly.
2027# WARNING: Use '\'' to represent an apostrophe within the trap.
2028# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029trap 'exit_status=$?
2030  # Save into config.log some information that might help in debugging.
2031  {
2032    echo
2033
2034    $as_echo "## ---------------- ##
2035## Cache variables. ##
2036## ---------------- ##"
2037    echo
2038    # The following way of writing the cache mishandles newlines in values,
2039(
2040  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041    eval ac_val=\$$ac_var
2042    case $ac_val in #(
2043    *${as_nl}*)
2044      case $ac_var in #(
2045      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047      esac
2048      case $ac_var in #(
2049      _ | IFS | as_nl) ;; #(
2050      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051      *) { eval $ac_var=; unset $ac_var;} ;;
2052      esac ;;
2053    esac
2054  done
2055  (set) 2>&1 |
2056    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057    *${as_nl}ac_space=\ *)
2058      sed -n \
2059	"s/'\''/'\''\\\\'\'''\''/g;
2060	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061      ;; #(
2062    *)
2063      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2064      ;;
2065    esac |
2066    sort
2067)
2068    echo
2069
2070    $as_echo "## ----------------- ##
2071## Output variables. ##
2072## ----------------- ##"
2073    echo
2074    for ac_var in $ac_subst_vars
2075    do
2076      eval ac_val=\$$ac_var
2077      case $ac_val in
2078      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079      esac
2080      $as_echo "$ac_var='\''$ac_val'\''"
2081    done | sort
2082    echo
2083
2084    if test -n "$ac_subst_files"; then
2085      $as_echo "## ------------------- ##
2086## File substitutions. ##
2087## ------------------- ##"
2088      echo
2089      for ac_var in $ac_subst_files
2090      do
2091	eval ac_val=\$$ac_var
2092	case $ac_val in
2093	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094	esac
2095	$as_echo "$ac_var='\''$ac_val'\''"
2096      done | sort
2097      echo
2098    fi
2099
2100    if test -s confdefs.h; then
2101      $as_echo "## ----------- ##
2102## confdefs.h. ##
2103## ----------- ##"
2104      echo
2105      cat confdefs.h
2106      echo
2107    fi
2108    test "$ac_signal" != 0 &&
2109      $as_echo "$as_me: caught signal $ac_signal"
2110    $as_echo "$as_me: exit $exit_status"
2111  } >&5
2112  rm -f core *.core core.conftest.* &&
2113    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2114    exit $exit_status
2115' 0
2116for ac_signal in 1 2 13 15; do
2117  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2118done
2119ac_signal=0
2120
2121# confdefs.h avoids OS command line length limits that DEFS can exceed.
2122rm -f -r conftest* confdefs.h
2123
2124$as_echo "/* confdefs.h */" > confdefs.h
2125
2126# Predefined preprocessor variables.
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_NAME "$PACKAGE_NAME"
2130_ACEOF
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2134_ACEOF
2135
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_VERSION "$PACKAGE_VERSION"
2138_ACEOF
2139
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_STRING "$PACKAGE_STRING"
2142_ACEOF
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2146_ACEOF
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_URL "$PACKAGE_URL"
2150_ACEOF
2151
2152
2153# Let the site file select an alternate cache file if it wants to.
2154# Prefer an explicitly selected file to automatically selected ones.
2155ac_site_file1=NONE
2156ac_site_file2=NONE
2157if test -n "$CONFIG_SITE"; then
2158  # We do not want a PATH search for config.site.
2159  case $CONFIG_SITE in #((
2160    -*)  ac_site_file1=./$CONFIG_SITE;;
2161    */*) ac_site_file1=$CONFIG_SITE;;
2162    *)   ac_site_file1=./$CONFIG_SITE;;
2163  esac
2164elif test "x$prefix" != xNONE; then
2165  ac_site_file1=$prefix/share/config.site
2166  ac_site_file2=$prefix/etc/config.site
2167else
2168  ac_site_file1=$ac_default_prefix/share/config.site
2169  ac_site_file2=$ac_default_prefix/etc/config.site
2170fi
2171for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2172do
2173  test "x$ac_site_file" = xNONE && continue
2174  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2175    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2176$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2177    sed 's/^/| /' "$ac_site_file" >&5
2178    . "$ac_site_file" \
2179      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181as_fn_error $? "failed to load site script $ac_site_file
2182See \`config.log' for more details" "$LINENO" 5; }
2183  fi
2184done
2185
2186if test -r "$cache_file"; then
2187  # Some versions of bash will fail to source /dev/null (special files
2188  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2189  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2190    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2191$as_echo "$as_me: loading cache $cache_file" >&6;}
2192    case $cache_file in
2193      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2194      *)                      . "./$cache_file";;
2195    esac
2196  fi
2197else
2198  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2199$as_echo "$as_me: creating cache $cache_file" >&6;}
2200  >$cache_file
2201fi
2202
2203# Check that the precious variables saved in the cache have kept the same
2204# value.
2205ac_cache_corrupted=false
2206for ac_var in $ac_precious_vars; do
2207  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2208  eval ac_new_set=\$ac_env_${ac_var}_set
2209  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2210  eval ac_new_val=\$ac_env_${ac_var}_value
2211  case $ac_old_set,$ac_new_set in
2212    set,)
2213      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2214$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2215      ac_cache_corrupted=: ;;
2216    ,set)
2217      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2218$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2219      ac_cache_corrupted=: ;;
2220    ,);;
2221    *)
2222      if test "x$ac_old_val" != "x$ac_new_val"; then
2223	# differences in whitespace do not lead to failure.
2224	ac_old_val_w=`echo x $ac_old_val`
2225	ac_new_val_w=`echo x $ac_new_val`
2226	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2227	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2228$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2229	  ac_cache_corrupted=:
2230	else
2231	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2232$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2233	  eval $ac_var=\$ac_old_val
2234	fi
2235	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2236$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2237	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2238$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2239      fi;;
2240  esac
2241  # Pass precious variables to config.status.
2242  if test "$ac_new_set" = set; then
2243    case $ac_new_val in
2244    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2245    *) ac_arg=$ac_var=$ac_new_val ;;
2246    esac
2247    case " $ac_configure_args " in
2248      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2249      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2250    esac
2251  fi
2252done
2253if $ac_cache_corrupted; then
2254  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2257$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2258  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2259fi
2260## -------------------- ##
2261## Main body of script. ##
2262## -------------------- ##
2263
2264ac_ext=c
2265ac_cpp='$CPP $CPPFLAGS'
2266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269
2270
2271am__api_version='1.11'
2272
2273ac_aux_dir=
2274for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275  if test -f "$ac_dir/install-sh"; then
2276    ac_aux_dir=$ac_dir
2277    ac_install_sh="$ac_aux_dir/install-sh -c"
2278    break
2279  elif test -f "$ac_dir/install.sh"; then
2280    ac_aux_dir=$ac_dir
2281    ac_install_sh="$ac_aux_dir/install.sh -c"
2282    break
2283  elif test -f "$ac_dir/shtool"; then
2284    ac_aux_dir=$ac_dir
2285    ac_install_sh="$ac_aux_dir/shtool install -c"
2286    break
2287  fi
2288done
2289if test -z "$ac_aux_dir"; then
2290  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2291fi
2292
2293# These three variables are undocumented and unsupported,
2294# and are intended to be withdrawn in a future Autoconf release.
2295# They can cause serious problems if a builder's source tree is in a directory
2296# whose full name contains unusual characters.
2297ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2298ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2299ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2300
2301
2302# Find a good install program.  We prefer a C program (faster),
2303# so one script is as good as another.  But avoid the broken or
2304# incompatible versions:
2305# SysV /etc/install, /usr/sbin/install
2306# SunOS /usr/etc/install
2307# IRIX /sbin/install
2308# AIX /bin/install
2309# AmigaOS /C/install, which installs bootblocks on floppy discs
2310# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2311# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2312# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2313# OS/2's system install, which has a completely different semantic
2314# ./install, which can be erroneously created by make from ./install.sh.
2315# Reject install programs that cannot install multiple files.
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2317$as_echo_n "checking for a BSD-compatible install... " >&6; }
2318if test -z "$INSTALL"; then
2319if test "${ac_cv_path_install+set}" = set; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325  IFS=$as_save_IFS
2326  test -z "$as_dir" && as_dir=.
2327    # Account for people who put trailing slashes in PATH elements.
2328case $as_dir/ in #((
2329  ./ | .// | /[cC]/* | \
2330  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2331  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2332  /usr/ucb/* ) ;;
2333  *)
2334    # OSF1 and SCO ODT 3.0 have their own names for install.
2335    # Don't use installbsd from OSF since it installs stuff as root
2336    # by default.
2337    for ac_prog in ginstall scoinst install; do
2338      for ac_exec_ext in '' $ac_executable_extensions; do
2339	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2340	  if test $ac_prog = install &&
2341	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342	    # AIX install.  It has an incompatible calling convention.
2343	    :
2344	  elif test $ac_prog = install &&
2345	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346	    # program-specific install script used by HP pwplus--don't use.
2347	    :
2348	  else
2349	    rm -rf conftest.one conftest.two conftest.dir
2350	    echo one > conftest.one
2351	    echo two > conftest.two
2352	    mkdir conftest.dir
2353	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2354	      test -s conftest.one && test -s conftest.two &&
2355	      test -s conftest.dir/conftest.one &&
2356	      test -s conftest.dir/conftest.two
2357	    then
2358	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2359	      break 3
2360	    fi
2361	  fi
2362	fi
2363      done
2364    done
2365    ;;
2366esac
2367
2368  done
2369IFS=$as_save_IFS
2370
2371rm -rf conftest.one conftest.two conftest.dir
2372
2373fi
2374  if test "${ac_cv_path_install+set}" = set; then
2375    INSTALL=$ac_cv_path_install
2376  else
2377    # As a last resort, use the slow shell script.  Don't cache a
2378    # value for INSTALL within a source directory, because that will
2379    # break other packages using the cache if that directory is
2380    # removed, or if the value is a relative name.
2381    INSTALL=$ac_install_sh
2382  fi
2383fi
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2385$as_echo "$INSTALL" >&6; }
2386
2387# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2388# It thinks the first close brace ends the variable substitution.
2389test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2390
2391test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2392
2393test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2394
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2396$as_echo_n "checking whether build environment is sane... " >&6; }
2397# Just in case
2398sleep 1
2399echo timestamp > conftest.file
2400# Reject unsafe characters in $srcdir or the absolute working directory
2401# name.  Accept space and tab only in the latter.
2402am_lf='
2403'
2404case `pwd` in
2405  *[\\\"\#\$\&\'\`$am_lf]*)
2406    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2407esac
2408case $srcdir in
2409  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2410    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2411esac
2412
2413# Do `set' in a subshell so we don't clobber the current shell's
2414# arguments.  Must try -L first in case configure is actually a
2415# symlink; some systems play weird games with the mod time of symlinks
2416# (eg FreeBSD returns the mod time of the symlink's containing
2417# directory).
2418if (
2419   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2420   if test "$*" = "X"; then
2421      # -L didn't work.
2422      set X `ls -t "$srcdir/configure" conftest.file`
2423   fi
2424   rm -f conftest.file
2425   if test "$*" != "X $srcdir/configure conftest.file" \
2426      && test "$*" != "X conftest.file $srcdir/configure"; then
2427
2428      # If neither matched, then we have a broken ls.  This can happen
2429      # if, for instance, CONFIG_SHELL is bash and it inherits a
2430      # broken ls alias from the environment.  This has actually
2431      # happened.  Such a system could not be considered "sane".
2432      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2433alias in your environment" "$LINENO" 5
2434   fi
2435
2436   test "$2" = conftest.file
2437   )
2438then
2439   # Ok.
2440   :
2441else
2442   as_fn_error $? "newly created file is older than distributed files!
2443Check your system clock" "$LINENO" 5
2444fi
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2446$as_echo "yes" >&6; }
2447test "$program_prefix" != NONE &&
2448  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2449# Use a double $ so make ignores it.
2450test "$program_suffix" != NONE &&
2451  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2452# Double any \ or $.
2453# By default was `s,x,x', remove it if useless.
2454ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2455program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2456
2457# expand $ac_aux_dir to an absolute path
2458am_aux_dir=`cd $ac_aux_dir && pwd`
2459
2460if test x"${MISSING+set}" != xset; then
2461  case $am_aux_dir in
2462  *\ * | *\	*)
2463    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2464  *)
2465    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2466  esac
2467fi
2468# Use eval to expand $SHELL
2469if eval "$MISSING --run true"; then
2470  am_missing_run="$MISSING --run "
2471else
2472  am_missing_run=
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2474$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2475fi
2476
2477if test x"${install_sh}" != xset; then
2478  case $am_aux_dir in
2479  *\ * | *\	*)
2480    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2481  *)
2482    install_sh="\${SHELL} $am_aux_dir/install-sh"
2483  esac
2484fi
2485
2486# Installed binaries are usually stripped using `strip' when the user
2487# run `make install-strip'.  However `strip' might not be the right
2488# tool to use in cross-compilation environments, therefore Automake
2489# will honor the `STRIP' environment variable to overrule this program.
2490if test "$cross_compiling" != no; then
2491  if test -n "$ac_tool_prefix"; then
2492  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2493set dummy ${ac_tool_prefix}strip; ac_word=$2
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495$as_echo_n "checking for $ac_word... " >&6; }
2496if test "${ac_cv_prog_STRIP+set}" = set; then :
2497  $as_echo_n "(cached) " >&6
2498else
2499  if test -n "$STRIP"; then
2500  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2501else
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505  IFS=$as_save_IFS
2506  test -z "$as_dir" && as_dir=.
2507    for ac_exec_ext in '' $ac_executable_extensions; do
2508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511    break 2
2512  fi
2513done
2514  done
2515IFS=$as_save_IFS
2516
2517fi
2518fi
2519STRIP=$ac_cv_prog_STRIP
2520if test -n "$STRIP"; then
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2522$as_echo "$STRIP" >&6; }
2523else
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525$as_echo "no" >&6; }
2526fi
2527
2528
2529fi
2530if test -z "$ac_cv_prog_STRIP"; then
2531  ac_ct_STRIP=$STRIP
2532  # Extract the first word of "strip", so it can be a program name with args.
2533set dummy strip; ac_word=$2
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535$as_echo_n "checking for $ac_word... " >&6; }
2536if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2537  $as_echo_n "(cached) " >&6
2538else
2539  if test -n "$ac_ct_STRIP"; then
2540  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547    for ac_exec_ext in '' $ac_executable_extensions; do
2548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549    ac_cv_prog_ac_ct_STRIP="strip"
2550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551    break 2
2552  fi
2553done
2554  done
2555IFS=$as_save_IFS
2556
2557fi
2558fi
2559ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2560if test -n "$ac_ct_STRIP"; then
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2562$as_echo "$ac_ct_STRIP" >&6; }
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565$as_echo "no" >&6; }
2566fi
2567
2568  if test "x$ac_ct_STRIP" = x; then
2569    STRIP=":"
2570  else
2571    case $cross_compiling:$ac_tool_warned in
2572yes:)
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2575ac_tool_warned=yes ;;
2576esac
2577    STRIP=$ac_ct_STRIP
2578  fi
2579else
2580  STRIP="$ac_cv_prog_STRIP"
2581fi
2582
2583fi
2584INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2585
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2587$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2588if test -z "$MKDIR_P"; then
2589  if test "${ac_cv_path_mkdir+set}" = set; then :
2590  $as_echo_n "(cached) " >&6
2591else
2592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2594do
2595  IFS=$as_save_IFS
2596  test -z "$as_dir" && as_dir=.
2597    for ac_prog in mkdir gmkdir; do
2598	 for ac_exec_ext in '' $ac_executable_extensions; do
2599	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2600	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2601	     'mkdir (GNU coreutils) '* | \
2602	     'mkdir (coreutils) '* | \
2603	     'mkdir (fileutils) '4.1*)
2604	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2605	       break 3;;
2606	   esac
2607	 done
2608       done
2609  done
2610IFS=$as_save_IFS
2611
2612fi
2613
2614  test -d ./--version && rmdir ./--version
2615  if test "${ac_cv_path_mkdir+set}" = set; then
2616    MKDIR_P="$ac_cv_path_mkdir -p"
2617  else
2618    # As a last resort, use the slow shell script.  Don't cache a
2619    # value for MKDIR_P within a source directory, because that will
2620    # break other packages using the cache if that directory is
2621    # removed, or if the value is a relative name.
2622    MKDIR_P="$ac_install_sh -d"
2623  fi
2624fi
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2626$as_echo "$MKDIR_P" >&6; }
2627
2628mkdir_p="$MKDIR_P"
2629case $mkdir_p in
2630  [\\/$]* | ?:[\\/]*) ;;
2631  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2632esac
2633
2634for ac_prog in gawk mawk nawk awk
2635do
2636  # Extract the first word of "$ac_prog", so it can be a program name with args.
2637set dummy $ac_prog; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if test "${ac_cv_prog_AWK+set}" = set; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  if test -n "$AWK"; then
2644  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651    for ac_exec_ext in '' $ac_executable_extensions; do
2652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653    ac_cv_prog_AWK="$ac_prog"
2654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655    break 2
2656  fi
2657done
2658  done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663AWK=$ac_cv_prog_AWK
2664if test -n "$AWK"; then
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666$as_echo "$AWK" >&6; }
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673  test -n "$AWK" && break
2674done
2675
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2677$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2678set x ${MAKE-make}
2679ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2680if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  cat >conftest.make <<\_ACEOF
2684SHELL = /bin/sh
2685all:
2686	@echo '@@@%%%=$(MAKE)=@@@%%%'
2687_ACEOF
2688# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2689case `${MAKE-make} -f conftest.make 2>/dev/null` in
2690  *@@@%%%=?*=@@@%%%*)
2691    eval ac_cv_prog_make_${ac_make}_set=yes;;
2692  *)
2693    eval ac_cv_prog_make_${ac_make}_set=no;;
2694esac
2695rm -f conftest.make
2696fi
2697if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2699$as_echo "yes" >&6; }
2700  SET_MAKE=
2701else
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703$as_echo "no" >&6; }
2704  SET_MAKE="MAKE=${MAKE-make}"
2705fi
2706
2707rm -rf .tst 2>/dev/null
2708mkdir .tst 2>/dev/null
2709if test -d .tst; then
2710  am__leading_dot=.
2711else
2712  am__leading_dot=_
2713fi
2714rmdir .tst 2>/dev/null
2715
2716if test "`cd $srcdir && pwd`" != "`pwd`"; then
2717  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2718  # is not polluted with repeated "-I."
2719  am__isrc=' -I$(srcdir)'
2720  # test to see if srcdir already configured
2721  if test -f $srcdir/config.status; then
2722    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2723  fi
2724fi
2725
2726# test whether we have cygpath
2727if test -z "$CYGPATH_W"; then
2728  if (cygpath --version) >/dev/null 2>/dev/null; then
2729    CYGPATH_W='cygpath -w'
2730  else
2731    CYGPATH_W=echo
2732  fi
2733fi
2734
2735
2736# Define the identity of the package.
2737 PACKAGE='libXi'
2738 VERSION='1.4.1'
2739
2740
2741cat >>confdefs.h <<_ACEOF
2742#define PACKAGE "$PACKAGE"
2743_ACEOF
2744
2745
2746cat >>confdefs.h <<_ACEOF
2747#define VERSION "$VERSION"
2748_ACEOF
2749
2750# Some tools Automake needs.
2751
2752ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2753
2754
2755AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2756
2757
2758AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2759
2760
2761AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2762
2763
2764MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2765
2766# We need awk for the "check" target.  The system "awk" is bad on
2767# some platforms.
2768# Always define AMTAR for backward compatibility.
2769
2770AMTAR=${AMTAR-"${am_missing_run}tar"}
2771
2772am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2773
2774
2775
2776
2777
2778
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2780$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2781    # Check whether --enable-maintainer-mode was given.
2782if test "${enable_maintainer_mode+set}" = set; then :
2783  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2784else
2785  USE_MAINTAINER_MODE=no
2786fi
2787
2788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2789$as_echo "$USE_MAINTAINER_MODE" >&6; }
2790   if test $USE_MAINTAINER_MODE = yes; then
2791  MAINTAINER_MODE_TRUE=
2792  MAINTAINER_MODE_FALSE='#'
2793else
2794  MAINTAINER_MODE_TRUE='#'
2795  MAINTAINER_MODE_FALSE=
2796fi
2797
2798  MAINT=$MAINTAINER_MODE_TRUE
2799
2800
2801
2802# Require xorg-macros minimum of 1.10 for DocBook XML documentation
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814DEPDIR="${am__leading_dot}deps"
2815
2816ac_config_commands="$ac_config_commands depfiles"
2817
2818
2819am_make=${MAKE-make}
2820cat > confinc << 'END'
2821am__doit:
2822	@echo this is the am__doit target
2823.PHONY: am__doit
2824END
2825# If we don't find an include directive, just comment out the code.
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2827$as_echo_n "checking for style of include used by $am_make... " >&6; }
2828am__include="#"
2829am__quote=
2830_am_result=none
2831# First try GNU make style include.
2832echo "include confinc" > confmf
2833# Ignore all kinds of additional output from `make'.
2834case `$am_make -s -f confmf 2> /dev/null` in #(
2835*the\ am__doit\ target*)
2836  am__include=include
2837  am__quote=
2838  _am_result=GNU
2839  ;;
2840esac
2841# Now try BSD make style include.
2842if test "$am__include" = "#"; then
2843   echo '.include "confinc"' > confmf
2844   case `$am_make -s -f confmf 2> /dev/null` in #(
2845   *the\ am__doit\ target*)
2846     am__include=.include
2847     am__quote="\""
2848     _am_result=BSD
2849     ;;
2850   esac
2851fi
2852
2853
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2855$as_echo "$_am_result" >&6; }
2856rm -f confinc confmf
2857
2858# Check whether --enable-dependency-tracking was given.
2859if test "${enable_dependency_tracking+set}" = set; then :
2860  enableval=$enable_dependency_tracking;
2861fi
2862
2863if test "x$enable_dependency_tracking" != xno; then
2864  am_depcomp="$ac_aux_dir/depcomp"
2865  AMDEPBACKSLASH='\'
2866fi
2867 if test "x$enable_dependency_tracking" != xno; then
2868  AMDEP_TRUE=
2869  AMDEP_FALSE='#'
2870else
2871  AMDEP_TRUE='#'
2872  AMDEP_FALSE=
2873fi
2874
2875
2876ac_ext=c
2877ac_cpp='$CPP $CPPFLAGS'
2878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881if test -n "$ac_tool_prefix"; then
2882  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
2886if test "${ac_cv_prog_CC+set}" = set; then :
2887  $as_echo_n "(cached) " >&6
2888else
2889  if test -n "$CC"; then
2890  ac_cv_prog_CC="$CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897    for ac_exec_ext in '' $ac_executable_extensions; do
2898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901    break 2
2902  fi
2903done
2904  done
2905IFS=$as_save_IFS
2906
2907fi
2908fi
2909CC=$ac_cv_prog_CC
2910if test -n "$CC"; then
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912$as_echo "$CC" >&6; }
2913else
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
2916fi
2917
2918
2919fi
2920if test -z "$ac_cv_prog_CC"; then
2921  ac_ct_CC=$CC
2922  # Extract the first word of "gcc", so it can be a program name with args.
2923set dummy gcc; ac_word=$2
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925$as_echo_n "checking for $ac_word... " >&6; }
2926if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2927  $as_echo_n "(cached) " >&6
2928else
2929  if test -n "$ac_ct_CC"; then
2930  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931else
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935  IFS=$as_save_IFS
2936  test -z "$as_dir" && as_dir=.
2937    for ac_exec_ext in '' $ac_executable_extensions; do
2938  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939    ac_cv_prog_ac_ct_CC="gcc"
2940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941    break 2
2942  fi
2943done
2944  done
2945IFS=$as_save_IFS
2946
2947fi
2948fi
2949ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950if test -n "$ac_ct_CC"; then
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952$as_echo "$ac_ct_CC" >&6; }
2953else
2954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955$as_echo "no" >&6; }
2956fi
2957
2958  if test "x$ac_ct_CC" = x; then
2959    CC=""
2960  else
2961    case $cross_compiling:$ac_tool_warned in
2962yes:)
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965ac_tool_warned=yes ;;
2966esac
2967    CC=$ac_ct_CC
2968  fi
2969else
2970  CC="$ac_cv_prog_CC"
2971fi
2972
2973if test -z "$CC"; then
2974          if test -n "$ac_tool_prefix"; then
2975    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2976set dummy ${ac_tool_prefix}cc; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if test "${ac_cv_prog_CC+set}" = set; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$CC"; then
2983  ac_cv_prog_CC="$CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  test -z "$as_dir" && as_dir=.
2990    for ac_exec_ext in '' $ac_executable_extensions; do
2991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992    ac_cv_prog_CC="${ac_tool_prefix}cc"
2993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997  done
2998IFS=$as_save_IFS
2999
3000fi
3001fi
3002CC=$ac_cv_prog_CC
3003if test -n "$CC"; then
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005$as_echo "$CC" >&6; }
3006else
3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
3009fi
3010
3011
3012  fi
3013fi
3014if test -z "$CC"; then
3015  # Extract the first word of "cc", so it can be a program name with args.
3016set dummy cc; ac_word=$2
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018$as_echo_n "checking for $ac_word... " >&6; }
3019if test "${ac_cv_prog_CC+set}" = set; then :
3020  $as_echo_n "(cached) " >&6
3021else
3022  if test -n "$CC"; then
3023  ac_cv_prog_CC="$CC" # Let the user override the test.
3024else
3025  ac_prog_rejected=no
3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027for as_dir in $PATH
3028do
3029  IFS=$as_save_IFS
3030  test -z "$as_dir" && as_dir=.
3031    for ac_exec_ext in '' $ac_executable_extensions; do
3032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3034       ac_prog_rejected=yes
3035       continue
3036     fi
3037    ac_cv_prog_CC="cc"
3038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039    break 2
3040  fi
3041done
3042  done
3043IFS=$as_save_IFS
3044
3045if test $ac_prog_rejected = yes; then
3046  # We found a bogon in the path, so make sure we never use it.
3047  set dummy $ac_cv_prog_CC
3048  shift
3049  if test $# != 0; then
3050    # We chose a different compiler from the bogus one.
3051    # However, it has the same basename, so the bogon will be chosen
3052    # first if we set CC to just the basename; use the full file name.
3053    shift
3054    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3055  fi
3056fi
3057fi
3058fi
3059CC=$ac_cv_prog_CC
3060if test -n "$CC"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062$as_echo "$CC" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069fi
3070if test -z "$CC"; then
3071  if test -n "$ac_tool_prefix"; then
3072  for ac_prog in cl.exe
3073  do
3074    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if test "${ac_cv_prog_CC+set}" = set; then :
3079  $as_echo_n "(cached) " >&6
3080else
3081  if test -n "$CC"; then
3082  ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  test -z "$as_dir" && as_dir=.
3089    for ac_exec_ext in '' $ac_executable_extensions; do
3090  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093    break 2
3094  fi
3095done
3096  done
3097IFS=$as_save_IFS
3098
3099fi
3100fi
3101CC=$ac_cv_prog_CC
3102if test -n "$CC"; then
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104$as_echo "$CC" >&6; }
3105else
3106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107$as_echo "no" >&6; }
3108fi
3109
3110
3111    test -n "$CC" && break
3112  done
3113fi
3114if test -z "$CC"; then
3115  ac_ct_CC=$CC
3116  for ac_prog in cl.exe
3117do
3118  # Extract the first word of "$ac_prog", so it can be a program name with args.
3119set dummy $ac_prog; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$ac_ct_CC"; then
3126  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133    for ac_exec_ext in '' $ac_executable_extensions; do
3134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135    ac_cv_prog_ac_ct_CC="$ac_prog"
3136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140  done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146if test -n "$ac_ct_CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148$as_echo "$ac_ct_CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155  test -n "$ac_ct_CC" && break
3156done
3157
3158  if test "x$ac_ct_CC" = x; then
3159    CC=""
3160  else
3161    case $cross_compiling:$ac_tool_warned in
3162yes:)
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165ac_tool_warned=yes ;;
3166esac
3167    CC=$ac_ct_CC
3168  fi
3169fi
3170
3171fi
3172
3173
3174test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176as_fn_error $? "no acceptable C compiler found in \$PATH
3177See \`config.log' for more details" "$LINENO" 5; }
3178
3179# Provide some information about the compiler.
3180$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3181set X $ac_compile
3182ac_compiler=$2
3183for ac_option in --version -v -V -qversion; do
3184  { { ac_try="$ac_compiler $ac_option >&5"
3185case "(($ac_try" in
3186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187  *) ac_try_echo=$ac_try;;
3188esac
3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190$as_echo "$ac_try_echo"; } >&5
3191  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3192  ac_status=$?
3193  if test -s conftest.err; then
3194    sed '10a\
3195... rest of stderr output deleted ...
3196         10q' conftest.err >conftest.er1
3197    cat conftest.er1 >&5
3198  fi
3199  rm -f conftest.er1 conftest.err
3200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201  test $ac_status = 0; }
3202done
3203
3204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205/* end confdefs.h.  */
3206
3207int
3208main ()
3209{
3210
3211  ;
3212  return 0;
3213}
3214_ACEOF
3215ac_clean_files_save=$ac_clean_files
3216ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3217# Try to create an executable without -o first, disregard a.out.
3218# It will help us diagnose broken compilers, and finding out an intuition
3219# of exeext.
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3221$as_echo_n "checking whether the C compiler works... " >&6; }
3222ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3223
3224# The possible output files:
3225ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3226
3227ac_rmfiles=
3228for ac_file in $ac_files
3229do
3230  case $ac_file in
3231    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3233  esac
3234done
3235rm -f $ac_rmfiles
3236
3237if { { ac_try="$ac_link_default"
3238case "(($ac_try" in
3239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240  *) ac_try_echo=$ac_try;;
3241esac
3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243$as_echo "$ac_try_echo"; } >&5
3244  (eval "$ac_link_default") 2>&5
3245  ac_status=$?
3246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247  test $ac_status = 0; }; then :
3248  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3249# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3250# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3251# so that the user can short-circuit this test for compilers unknown to
3252# Autoconf.
3253for ac_file in $ac_files ''
3254do
3255  test -f "$ac_file" || continue
3256  case $ac_file in
3257    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3258	;;
3259    [ab].out )
3260	# We found the default executable, but exeext='' is most
3261	# certainly right.
3262	break;;
3263    *.* )
3264	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3265	then :; else
3266	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267	fi
3268	# We set ac_cv_exeext here because the later test for it is not
3269	# safe: cross compilers may not add the suffix if given an `-o'
3270	# argument, so we may need to know it at that point already.
3271	# Even if this section looks crufty: it has the advantage of
3272	# actually working.
3273	break;;
3274    * )
3275	break;;
3276  esac
3277done
3278test "$ac_cv_exeext" = no && ac_cv_exeext=
3279
3280else
3281  ac_file=''
3282fi
3283if test -z "$ac_file"; then :
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285$as_echo "no" >&6; }
3286$as_echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291as_fn_error 77 "C compiler cannot create executables
3292See \`config.log' for more details" "$LINENO" 5; }
3293else
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295$as_echo "yes" >&6; }
3296fi
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3298$as_echo_n "checking for C compiler default output file name... " >&6; }
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3300$as_echo "$ac_file" >&6; }
3301ac_exeext=$ac_cv_exeext
3302
3303rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3304ac_clean_files=$ac_clean_files_save
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306$as_echo_n "checking for suffix of executables... " >&6; }
3307if { { ac_try="$ac_link"
3308case "(($ac_try" in
3309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310  *) ac_try_echo=$ac_try;;
3311esac
3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313$as_echo "$ac_try_echo"; } >&5
3314  (eval "$ac_link") 2>&5
3315  ac_status=$?
3316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317  test $ac_status = 0; }; then :
3318  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3320# work properly (i.e., refer to `conftest.exe'), while it won't with
3321# `rm'.
3322for ac_file in conftest.exe conftest conftest.*; do
3323  test -f "$ac_file" || continue
3324  case $ac_file in
3325    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327	  break;;
3328    * ) break;;
3329  esac
3330done
3331else
3332  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3335See \`config.log' for more details" "$LINENO" 5; }
3336fi
3337rm -f conftest conftest$ac_cv_exeext
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339$as_echo "$ac_cv_exeext" >&6; }
3340
3341rm -f conftest.$ac_ext
3342EXEEXT=$ac_cv_exeext
3343ac_exeext=$EXEEXT
3344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345/* end confdefs.h.  */
3346#include <stdio.h>
3347int
3348main ()
3349{
3350FILE *f = fopen ("conftest.out", "w");
3351 return ferror (f) || fclose (f) != 0;
3352
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357ac_clean_files="$ac_clean_files conftest.out"
3358# Check that the compiler produces executables we can run.  If not, either
3359# the compiler is broken, or we cross compile.
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3361$as_echo_n "checking whether we are cross compiling... " >&6; }
3362if test "$cross_compiling" != yes; then
3363  { { ac_try="$ac_link"
3364case "(($ac_try" in
3365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366  *) ac_try_echo=$ac_try;;
3367esac
3368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369$as_echo "$ac_try_echo"; } >&5
3370  (eval "$ac_link") 2>&5
3371  ac_status=$?
3372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373  test $ac_status = 0; }
3374  if { ac_try='./conftest$ac_cv_exeext'
3375  { { case "(($ac_try" in
3376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377  *) ac_try_echo=$ac_try;;
3378esac
3379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380$as_echo "$ac_try_echo"; } >&5
3381  (eval "$ac_try") 2>&5
3382  ac_status=$?
3383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384  test $ac_status = 0; }; }; then
3385    cross_compiling=no
3386  else
3387    if test "$cross_compiling" = maybe; then
3388	cross_compiling=yes
3389    else
3390	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392as_fn_error $? "cannot run C compiled programs.
3393If you meant to cross compile, use \`--host'.
3394See \`config.log' for more details" "$LINENO" 5; }
3395    fi
3396  fi
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3399$as_echo "$cross_compiling" >&6; }
3400
3401rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3402ac_clean_files=$ac_clean_files_save
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3404$as_echo_n "checking for suffix of object files... " >&6; }
3405if test "${ac_cv_objext+set}" = set; then :
3406  $as_echo_n "(cached) " >&6
3407else
3408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409/* end confdefs.h.  */
3410
3411int
3412main ()
3413{
3414
3415  ;
3416  return 0;
3417}
3418_ACEOF
3419rm -f conftest.o conftest.obj
3420if { { ac_try="$ac_compile"
3421case "(($ac_try" in
3422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423  *) ac_try_echo=$ac_try;;
3424esac
3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426$as_echo "$ac_try_echo"; } >&5
3427  (eval "$ac_compile") 2>&5
3428  ac_status=$?
3429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430  test $ac_status = 0; }; then :
3431  for ac_file in conftest.o conftest.obj conftest.*; do
3432  test -f "$ac_file" || continue;
3433  case $ac_file in
3434    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3435    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3436       break;;
3437  esac
3438done
3439else
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;}
3445as_fn_error $? "cannot compute suffix of object files: cannot compile
3446See \`config.log' for more details" "$LINENO" 5; }
3447fi
3448rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449fi
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3451$as_echo "$ac_cv_objext" >&6; }
3452OBJEXT=$ac_cv_objext
3453ac_objext=$OBJEXT
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3455$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3456if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3457  $as_echo_n "(cached) " >&6
3458else
3459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460/* end confdefs.h.  */
3461
3462int
3463main ()
3464{
3465#ifndef __GNUC__
3466       choke me
3467#endif
3468
3469  ;
3470  return 0;
3471}
3472_ACEOF
3473if ac_fn_c_try_compile "$LINENO"; then :
3474  ac_compiler_gnu=yes
3475else
3476  ac_compiler_gnu=no
3477fi
3478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479ac_cv_c_compiler_gnu=$ac_compiler_gnu
3480
3481fi
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3483$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3484if test $ac_compiler_gnu = yes; then
3485  GCC=yes
3486else
3487  GCC=
3488fi
3489ac_test_CFLAGS=${CFLAGS+set}
3490ac_save_CFLAGS=$CFLAGS
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3492$as_echo_n "checking whether $CC accepts -g... " >&6; }
3493if test "${ac_cv_prog_cc_g+set}" = set; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  ac_save_c_werror_flag=$ac_c_werror_flag
3497   ac_c_werror_flag=yes
3498   ac_cv_prog_cc_g=no
3499   CFLAGS="-g"
3500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h.  */
3502
3503int
3504main ()
3505{
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511if ac_fn_c_try_compile "$LINENO"; then :
3512  ac_cv_prog_cc_g=yes
3513else
3514  CFLAGS=""
3515      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h.  */
3517
3518int
3519main ()
3520{
3521
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526if ac_fn_c_try_compile "$LINENO"; then :
3527
3528else
3529  ac_c_werror_flag=$ac_save_c_werror_flag
3530	 CFLAGS="-g"
3531	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h.  */
3533
3534int
3535main ()
3536{
3537
3538  ;
3539  return 0;
3540}
3541_ACEOF
3542if ac_fn_c_try_compile "$LINENO"; then :
3543  ac_cv_prog_cc_g=yes
3544fi
3545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546fi
3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548fi
3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550   ac_c_werror_flag=$ac_save_c_werror_flag
3551fi
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3553$as_echo "$ac_cv_prog_cc_g" >&6; }
3554if test "$ac_test_CFLAGS" = set; then
3555  CFLAGS=$ac_save_CFLAGS
3556elif test $ac_cv_prog_cc_g = yes; then
3557  if test "$GCC" = yes; then
3558    CFLAGS="-g -O2"
3559  else
3560    CFLAGS="-g"
3561  fi
3562else
3563  if test "$GCC" = yes; then
3564    CFLAGS="-O2"
3565  else
3566    CFLAGS=
3567  fi
3568fi
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3570$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3571if test "${ac_cv_prog_cc_c89+set}" = set; then :
3572  $as_echo_n "(cached) " >&6
3573else
3574  ac_cv_prog_cc_c89=no
3575ac_save_CC=$CC
3576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578#include <stdarg.h>
3579#include <stdio.h>
3580#include <sys/types.h>
3581#include <sys/stat.h>
3582/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3583struct buf { int x; };
3584FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585static char *e (p, i)
3586     char **p;
3587     int i;
3588{
3589  return p[i];
3590}
3591static char *f (char * (*g) (char **, int), char **p, ...)
3592{
3593  char *s;
3594  va_list v;
3595  va_start (v,p);
3596  s = g (p, va_arg (v,int));
3597  va_end (v);
3598  return s;
3599}
3600
3601/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3602   function prototypes and stuff, but not '\xHH' hex character constants.
3603   These don't provoke an error unfortunately, instead are silently treated
3604   as 'x'.  The following induces an error, until -std is added to get
3605   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3606   array size at least.  It's necessary to write '\x00'==0 to get something
3607   that's true only with -std.  */
3608int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609
3610/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611   inside strings and character constants.  */
3612#define FOO(x) 'x'
3613int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614
3615int test (int i, double x);
3616struct s1 {int (*f) (int a);};
3617struct s2 {int (*f) (double a);};
3618int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619int argc;
3620char **argv;
3621int
3622main ()
3623{
3624return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631do
3632  CC="$ac_save_CC $ac_arg"
3633  if ac_fn_c_try_compile "$LINENO"; then :
3634  ac_cv_prog_cc_c89=$ac_arg
3635fi
3636rm -f core conftest.err conftest.$ac_objext
3637  test "x$ac_cv_prog_cc_c89" != "xno" && break
3638done
3639rm -f conftest.$ac_ext
3640CC=$ac_save_CC
3641
3642fi
3643# AC_CACHE_VAL
3644case "x$ac_cv_prog_cc_c89" in
3645  x)
3646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647$as_echo "none needed" >&6; } ;;
3648  xno)
3649    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650$as_echo "unsupported" >&6; } ;;
3651  *)
3652    CC="$CC $ac_cv_prog_cc_c89"
3653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655esac
3656if test "x$ac_cv_prog_cc_c89" != xno; then :
3657
3658fi
3659
3660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666depcc="$CC"   am_compiler_list=
3667
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3669$as_echo_n "checking dependency style of $depcc... " >&6; }
3670if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3671  $as_echo_n "(cached) " >&6
3672else
3673  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3674  # We make a subdir and do the tests there.  Otherwise we can end up
3675  # making bogus files that we don't know about and never remove.  For
3676  # instance it was reported that on HP-UX the gcc test will end up
3677  # making a dummy file named `D' -- because `-MD' means `put the output
3678  # in D'.
3679  mkdir conftest.dir
3680  # Copy depcomp to subdir because otherwise we won't find it if we're
3681  # using a relative directory.
3682  cp "$am_depcomp" conftest.dir
3683  cd conftest.dir
3684  # We will build objects and dependencies in a subdirectory because
3685  # it helps to detect inapplicable dependency modes.  For instance
3686  # both Tru64's cc and ICC support -MD to output dependencies as a
3687  # side effect of compilation, but ICC will put the dependencies in
3688  # the current directory while Tru64 will put them in the object
3689  # directory.
3690  mkdir sub
3691
3692  am_cv_CC_dependencies_compiler_type=none
3693  if test "$am_compiler_list" = ""; then
3694     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3695  fi
3696  am__universal=false
3697  case " $depcc " in #(
3698     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3699     esac
3700
3701  for depmode in $am_compiler_list; do
3702    # Setup a source with many dependencies, because some compilers
3703    # like to wrap large dependency lists on column 80 (with \), and
3704    # we should not choose a depcomp mode which is confused by this.
3705    #
3706    # We need to recreate these files for each test, as the compiler may
3707    # overwrite some of them when testing with obscure command lines.
3708    # This happens at least with the AIX C compiler.
3709    : > sub/conftest.c
3710    for i in 1 2 3 4 5 6; do
3711      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3712      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3713      # Solaris 8's {/usr,}/bin/sh.
3714      touch sub/conftst$i.h
3715    done
3716    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3717
3718    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3719    # mode.  It turns out that the SunPro C++ compiler does not properly
3720    # handle `-M -o', and we need to detect this.  Also, some Intel
3721    # versions had trouble with output in subdirs
3722    am__obj=sub/conftest.${OBJEXT-o}
3723    am__minus_obj="-o $am__obj"
3724    case $depmode in
3725    gcc)
3726      # This depmode causes a compiler race in universal mode.
3727      test "$am__universal" = false || continue
3728      ;;
3729    nosideeffect)
3730      # after this tag, mechanisms are not by side-effect, so they'll
3731      # only be used when explicitly requested
3732      if test "x$enable_dependency_tracking" = xyes; then
3733	continue
3734      else
3735	break
3736      fi
3737      ;;
3738    msvisualcpp | msvcmsys)
3739      # This compiler won't grok `-c -o', but also, the minuso test has
3740      # not run yet.  These depmodes are late enough in the game, and
3741      # so weak that their functioning should not be impacted.
3742      am__obj=conftest.${OBJEXT-o}
3743      am__minus_obj=
3744      ;;
3745    none) break ;;
3746    esac
3747    if depmode=$depmode \
3748       source=sub/conftest.c object=$am__obj \
3749       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3750       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3751         >/dev/null 2>conftest.err &&
3752       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3753       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3754       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3755       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3756      # icc doesn't choke on unknown options, it will just issue warnings
3757      # or remarks (even with -Werror).  So we grep stderr for any message
3758      # that says an option was ignored or not supported.
3759      # When given -MP, icc 7.0 and 7.1 complain thusly:
3760      #   icc: Command line warning: ignoring option '-M'; no argument required
3761      # The diagnosis changed in icc 8.0:
3762      #   icc: Command line remark: option '-MP' not supported
3763      if (grep 'ignoring option' conftest.err ||
3764          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3765        am_cv_CC_dependencies_compiler_type=$depmode
3766        break
3767      fi
3768    fi
3769  done
3770
3771  cd ..
3772  rm -rf conftest.dir
3773else
3774  am_cv_CC_dependencies_compiler_type=none
3775fi
3776
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3779$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3780CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3781
3782 if
3783  test "x$enable_dependency_tracking" != xno \
3784  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3785  am__fastdepCC_TRUE=
3786  am__fastdepCC_FALSE='#'
3787else
3788  am__fastdepCC_TRUE='#'
3789  am__fastdepCC_FALSE=
3790fi
3791
3792
3793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3794$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3795if test "${ac_cv_prog_cc_c99+set}" = set; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798  ac_cv_prog_cc_c99=no
3799ac_save_CC=$CC
3800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h.  */
3802#include <stdarg.h>
3803#include <stdbool.h>
3804#include <stdlib.h>
3805#include <wchar.h>
3806#include <stdio.h>
3807
3808// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3809#define debug(...) fprintf (stderr, __VA_ARGS__)
3810#define showlist(...) puts (#__VA_ARGS__)
3811#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3812static void
3813test_varargs_macros (void)
3814{
3815  int x = 1234;
3816  int y = 5678;
3817  debug ("Flag");
3818  debug ("X = %d\n", x);
3819  showlist (The first, second, and third items.);
3820  report (x>y, "x is %d but y is %d", x, y);
3821}
3822
3823// Check long long types.
3824#define BIG64 18446744073709551615ull
3825#define BIG32 4294967295ul
3826#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3827#if !BIG_OK
3828  your preprocessor is broken;
3829#endif
3830#if BIG_OK
3831#else
3832  your preprocessor is broken;
3833#endif
3834static long long int bignum = -9223372036854775807LL;
3835static unsigned long long int ubignum = BIG64;
3836
3837struct incomplete_array
3838{
3839  int datasize;
3840  double data[];
3841};
3842
3843struct named_init {
3844  int number;
3845  const wchar_t *name;
3846  double average;
3847};
3848
3849typedef const char *ccp;
3850
3851static inline int
3852test_restrict (ccp restrict text)
3853{
3854  // See if C++-style comments work.
3855  // Iterate through items via the restricted pointer.
3856  // Also check for declarations in for loops.
3857  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3858    continue;
3859  return 0;
3860}
3861
3862// Check varargs and va_copy.
3863static void
3864test_varargs (const char *format, ...)
3865{
3866  va_list args;
3867  va_start (args, format);
3868  va_list args_copy;
3869  va_copy (args_copy, args);
3870
3871  const char *str;
3872  int number;
3873  float fnumber;
3874
3875  while (*format)
3876    {
3877      switch (*format++)
3878	{
3879	case 's': // string
3880	  str = va_arg (args_copy, const char *);
3881	  break;
3882	case 'd': // int
3883	  number = va_arg (args_copy, int);
3884	  break;
3885	case 'f': // float
3886	  fnumber = va_arg (args_copy, double);
3887	  break;
3888	default:
3889	  break;
3890	}
3891    }
3892  va_end (args_copy);
3893  va_end (args);
3894}
3895
3896int
3897main ()
3898{
3899
3900  // Check bool.
3901  _Bool success = false;
3902
3903  // Check restrict.
3904  if (test_restrict ("String literal") == 0)
3905    success = true;
3906  char *restrict newvar = "Another string";
3907
3908  // Check varargs.
3909  test_varargs ("s, d' f .", "string", 65, 34.234);
3910  test_varargs_macros ();
3911
3912  // Check flexible array members.
3913  struct incomplete_array *ia =
3914    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3915  ia->datasize = 10;
3916  for (int i = 0; i < ia->datasize; ++i)
3917    ia->data[i] = i * 1.234;
3918
3919  // Check named initializers.
3920  struct named_init ni = {
3921    .number = 34,
3922    .name = L"Test wide string",
3923    .average = 543.34343,
3924  };
3925
3926  ni.number = 58;
3927
3928  int dynamic_array[ni.number];
3929  dynamic_array[ni.number - 1] = 543;
3930
3931  // work around unused variable warnings
3932  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3933	  || dynamic_array[ni.number - 1] != 543);
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3940do
3941  CC="$ac_save_CC $ac_arg"
3942  if ac_fn_c_try_compile "$LINENO"; then :
3943  ac_cv_prog_cc_c99=$ac_arg
3944fi
3945rm -f core conftest.err conftest.$ac_objext
3946  test "x$ac_cv_prog_cc_c99" != "xno" && break
3947done
3948rm -f conftest.$ac_ext
3949CC=$ac_save_CC
3950
3951fi
3952# AC_CACHE_VAL
3953case "x$ac_cv_prog_cc_c99" in
3954  x)
3955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3956$as_echo "none needed" >&6; } ;;
3957  xno)
3958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3959$as_echo "unsupported" >&6; } ;;
3960  *)
3961    CC="$CC $ac_cv_prog_cc_c99"
3962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3963$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3964esac
3965if test "x$ac_cv_prog_cc_c99" != xno; then :
3966
3967fi
3968
3969
3970
3971ac_ext=c
3972ac_cpp='$CPP $CPPFLAGS'
3973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3977$as_echo_n "checking how to run the C preprocessor... " >&6; }
3978# On Suns, sometimes $CPP names a directory.
3979if test -n "$CPP" && test -d "$CPP"; then
3980  CPP=
3981fi
3982if test -z "$CPP"; then
3983  if test "${ac_cv_prog_CPP+set}" = set; then :
3984  $as_echo_n "(cached) " >&6
3985else
3986      # Double quotes because CPP needs to be expanded
3987    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3988    do
3989      ac_preproc_ok=false
3990for ac_c_preproc_warn_flag in '' yes
3991do
3992  # Use a header file that comes with gcc, so configuring glibc
3993  # with a fresh cross-compiler works.
3994  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995  # <limits.h> exists even on freestanding compilers.
3996  # On the NeXT, cc -E runs the code through the compiler's parser,
3997  # not just through cpp. "Syntax error" is here to catch this case.
3998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h.  */
4000#ifdef __STDC__
4001# include <limits.h>
4002#else
4003# include <assert.h>
4004#endif
4005		     Syntax error
4006_ACEOF
4007if ac_fn_c_try_cpp "$LINENO"; then :
4008
4009else
4010  # Broken: fails on valid input.
4011continue
4012fi
4013rm -f conftest.err conftest.$ac_ext
4014
4015  # OK, works on sane cases.  Now check whether nonexistent headers
4016  # can be detected and how.
4017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019#include <ac_nonexistent.h>
4020_ACEOF
4021if ac_fn_c_try_cpp "$LINENO"; then :
4022  # Broken: success on invalid input.
4023continue
4024else
4025  # Passes both tests.
4026ac_preproc_ok=:
4027break
4028fi
4029rm -f conftest.err conftest.$ac_ext
4030
4031done
4032# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033rm -f conftest.err conftest.$ac_ext
4034if $ac_preproc_ok; then :
4035  break
4036fi
4037
4038    done
4039    ac_cv_prog_CPP=$CPP
4040
4041fi
4042  CPP=$ac_cv_prog_CPP
4043else
4044  ac_cv_prog_CPP=$CPP
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4047$as_echo "$CPP" >&6; }
4048ac_preproc_ok=false
4049for ac_c_preproc_warn_flag in '' yes
4050do
4051  # Use a header file that comes with gcc, so configuring glibc
4052  # with a fresh cross-compiler works.
4053  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4054  # <limits.h> exists even on freestanding compilers.
4055  # On the NeXT, cc -E runs the code through the compiler's parser,
4056  # not just through cpp. "Syntax error" is here to catch this case.
4057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059#ifdef __STDC__
4060# include <limits.h>
4061#else
4062# include <assert.h>
4063#endif
4064		     Syntax error
4065_ACEOF
4066if ac_fn_c_try_cpp "$LINENO"; then :
4067
4068else
4069  # Broken: fails on valid input.
4070continue
4071fi
4072rm -f conftest.err conftest.$ac_ext
4073
4074  # OK, works on sane cases.  Now check whether nonexistent headers
4075  # can be detected and how.
4076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h.  */
4078#include <ac_nonexistent.h>
4079_ACEOF
4080if ac_fn_c_try_cpp "$LINENO"; then :
4081  # Broken: success on invalid input.
4082continue
4083else
4084  # Passes both tests.
4085ac_preproc_ok=:
4086break
4087fi
4088rm -f conftest.err conftest.$ac_ext
4089
4090done
4091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092rm -f conftest.err conftest.$ac_ext
4093if $ac_preproc_ok; then :
4094
4095else
4096  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4099See \`config.log' for more details" "$LINENO" 5; }
4100fi
4101
4102ac_ext=c
4103ac_cpp='$CPP $CPPFLAGS'
4104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4110$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4111if test "${ac_cv_path_GREP+set}" = set; then :
4112  $as_echo_n "(cached) " >&6
4113else
4114  if test -z "$GREP"; then
4115  ac_path_GREP_found=false
4116  # Loop through the user's path and test for each of PROGNAME-LIST
4117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119do
4120  IFS=$as_save_IFS
4121  test -z "$as_dir" && as_dir=.
4122    for ac_prog in grep ggrep; do
4123    for ac_exec_ext in '' $ac_executable_extensions; do
4124      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4125      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4126# Check for GNU ac_path_GREP and select it if it is found.
4127  # Check for GNU $ac_path_GREP
4128case `"$ac_path_GREP" --version 2>&1` in
4129*GNU*)
4130  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4131*)
4132  ac_count=0
4133  $as_echo_n 0123456789 >"conftest.in"
4134  while :
4135  do
4136    cat "conftest.in" "conftest.in" >"conftest.tmp"
4137    mv "conftest.tmp" "conftest.in"
4138    cp "conftest.in" "conftest.nl"
4139    $as_echo 'GREP' >> "conftest.nl"
4140    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142    as_fn_arith $ac_count + 1 && ac_count=$as_val
4143    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4144      # Best one so far, save it but keep looking for a better one
4145      ac_cv_path_GREP="$ac_path_GREP"
4146      ac_path_GREP_max=$ac_count
4147    fi
4148    # 10*(2^10) chars as input seems more than enough
4149    test $ac_count -gt 10 && break
4150  done
4151  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152esac
4153
4154      $ac_path_GREP_found && break 3
4155    done
4156  done
4157  done
4158IFS=$as_save_IFS
4159  if test -z "$ac_cv_path_GREP"; then
4160    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4161  fi
4162else
4163  ac_cv_path_GREP=$GREP
4164fi
4165
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4168$as_echo "$ac_cv_path_GREP" >&6; }
4169 GREP="$ac_cv_path_GREP"
4170
4171
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4173$as_echo_n "checking for egrep... " >&6; }
4174if test "${ac_cv_path_EGREP+set}" = set; then :
4175  $as_echo_n "(cached) " >&6
4176else
4177  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4178   then ac_cv_path_EGREP="$GREP -E"
4179   else
4180     if test -z "$EGREP"; then
4181  ac_path_EGREP_found=false
4182  # Loop through the user's path and test for each of PROGNAME-LIST
4183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185do
4186  IFS=$as_save_IFS
4187  test -z "$as_dir" && as_dir=.
4188    for ac_prog in egrep; do
4189    for ac_exec_ext in '' $ac_executable_extensions; do
4190      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4191      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4192# Check for GNU ac_path_EGREP and select it if it is found.
4193  # Check for GNU $ac_path_EGREP
4194case `"$ac_path_EGREP" --version 2>&1` in
4195*GNU*)
4196  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4197*)
4198  ac_count=0
4199  $as_echo_n 0123456789 >"conftest.in"
4200  while :
4201  do
4202    cat "conftest.in" "conftest.in" >"conftest.tmp"
4203    mv "conftest.tmp" "conftest.in"
4204    cp "conftest.in" "conftest.nl"
4205    $as_echo 'EGREP' >> "conftest.nl"
4206    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208    as_fn_arith $ac_count + 1 && ac_count=$as_val
4209    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4210      # Best one so far, save it but keep looking for a better one
4211      ac_cv_path_EGREP="$ac_path_EGREP"
4212      ac_path_EGREP_max=$ac_count
4213    fi
4214    # 10*(2^10) chars as input seems more than enough
4215    test $ac_count -gt 10 && break
4216  done
4217  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218esac
4219
4220      $ac_path_EGREP_found && break 3
4221    done
4222  done
4223  done
4224IFS=$as_save_IFS
4225  if test -z "$ac_cv_path_EGREP"; then
4226    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227  fi
4228else
4229  ac_cv_path_EGREP=$EGREP
4230fi
4231
4232   fi
4233fi
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4235$as_echo "$ac_cv_path_EGREP" >&6; }
4236 EGREP="$ac_cv_path_EGREP"
4237
4238
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4240$as_echo_n "checking for ANSI C header files... " >&6; }
4241if test "${ac_cv_header_stdc+set}" = set; then :
4242  $as_echo_n "(cached) " >&6
4243else
4244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h.  */
4246#include <stdlib.h>
4247#include <stdarg.h>
4248#include <string.h>
4249#include <float.h>
4250
4251int
4252main ()
4253{
4254
4255  ;
4256  return 0;
4257}
4258_ACEOF
4259if ac_fn_c_try_compile "$LINENO"; then :
4260  ac_cv_header_stdc=yes
4261else
4262  ac_cv_header_stdc=no
4263fi
4264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265
4266if test $ac_cv_header_stdc = yes; then
4267  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269/* end confdefs.h.  */
4270#include <string.h>
4271
4272_ACEOF
4273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4274  $EGREP "memchr" >/dev/null 2>&1; then :
4275
4276else
4277  ac_cv_header_stdc=no
4278fi
4279rm -f conftest*
4280
4281fi
4282
4283if test $ac_cv_header_stdc = yes; then
4284  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286/* end confdefs.h.  */
4287#include <stdlib.h>
4288
4289_ACEOF
4290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4291  $EGREP "free" >/dev/null 2>&1; then :
4292
4293else
4294  ac_cv_header_stdc=no
4295fi
4296rm -f conftest*
4297
4298fi
4299
4300if test $ac_cv_header_stdc = yes; then
4301  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4302  if test "$cross_compiling" = yes; then :
4303  :
4304else
4305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307#include <ctype.h>
4308#include <stdlib.h>
4309#if ((' ' & 0x0FF) == 0x020)
4310# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4311# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4312#else
4313# define ISLOWER(c) \
4314		   (('a' <= (c) && (c) <= 'i') \
4315		     || ('j' <= (c) && (c) <= 'r') \
4316		     || ('s' <= (c) && (c) <= 'z'))
4317# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4318#endif
4319
4320#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4321int
4322main ()
4323{
4324  int i;
4325  for (i = 0; i < 256; i++)
4326    if (XOR (islower (i), ISLOWER (i))
4327	|| toupper (i) != TOUPPER (i))
4328      return 2;
4329  return 0;
4330}
4331_ACEOF
4332if ac_fn_c_try_run "$LINENO"; then :
4333
4334else
4335  ac_cv_header_stdc=no
4336fi
4337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4338  conftest.$ac_objext conftest.beam conftest.$ac_ext
4339fi
4340
4341fi
4342fi
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4344$as_echo "$ac_cv_header_stdc" >&6; }
4345if test $ac_cv_header_stdc = yes; then
4346
4347$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4348
4349fi
4350
4351# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4353		  inttypes.h stdint.h unistd.h
4354do :
4355  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4356ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4357"
4358if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4359  cat >>confdefs.h <<_ACEOF
4360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4361_ACEOF
4362
4363fi
4364
4365done
4366
4367
4368
4369
4370
4371
4372
4373
4374if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4375	if test -n "$ac_tool_prefix"; then
4376  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4377set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379$as_echo_n "checking for $ac_word... " >&6; }
4380if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4381  $as_echo_n "(cached) " >&6
4382else
4383  case $PKG_CONFIG in
4384  [\\/]* | ?:[\\/]*)
4385  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4386  ;;
4387  *)
4388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391  IFS=$as_save_IFS
4392  test -z "$as_dir" && as_dir=.
4393    for ac_exec_ext in '' $ac_executable_extensions; do
4394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397    break 2
4398  fi
4399done
4400  done
4401IFS=$as_save_IFS
4402
4403  ;;
4404esac
4405fi
4406PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4407if test -n "$PKG_CONFIG"; then
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4409$as_echo "$PKG_CONFIG" >&6; }
4410else
4411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
4413fi
4414
4415
4416fi
4417if test -z "$ac_cv_path_PKG_CONFIG"; then
4418  ac_pt_PKG_CONFIG=$PKG_CONFIG
4419  # Extract the first word of "pkg-config", so it can be a program name with args.
4420set dummy pkg-config; ac_word=$2
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422$as_echo_n "checking for $ac_word... " >&6; }
4423if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4424  $as_echo_n "(cached) " >&6
4425else
4426  case $ac_pt_PKG_CONFIG in
4427  [\\/]* | ?:[\\/]*)
4428  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4429  ;;
4430  *)
4431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434  IFS=$as_save_IFS
4435  test -z "$as_dir" && as_dir=.
4436    for ac_exec_ext in '' $ac_executable_extensions; do
4437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440    break 2
4441  fi
4442done
4443  done
4444IFS=$as_save_IFS
4445
4446  ;;
4447esac
4448fi
4449ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4450if test -n "$ac_pt_PKG_CONFIG"; then
4451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4452$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4453else
4454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455$as_echo "no" >&6; }
4456fi
4457
4458  if test "x$ac_pt_PKG_CONFIG" = x; then
4459    PKG_CONFIG=""
4460  else
4461    case $cross_compiling:$ac_tool_warned in
4462yes:)
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465ac_tool_warned=yes ;;
4466esac
4467    PKG_CONFIG=$ac_pt_PKG_CONFIG
4468  fi
4469else
4470  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4471fi
4472
4473fi
4474if test -n "$PKG_CONFIG"; then
4475	_pkg_min_version=0.9.0
4476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4477$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4478	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4480$as_echo "yes" >&6; }
4481	else
4482		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483$as_echo "no" >&6; }
4484		PKG_CONFIG=""
4485	fi
4486fi
4487# Make sure we can run config.sub.
4488$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4489  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4490
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4492$as_echo_n "checking build system type... " >&6; }
4493if test "${ac_cv_build+set}" = set; then :
4494  $as_echo_n "(cached) " >&6
4495else
4496  ac_build_alias=$build_alias
4497test "x$ac_build_alias" = x &&
4498  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4499test "x$ac_build_alias" = x &&
4500  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4501ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4502  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4503
4504fi
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4506$as_echo "$ac_cv_build" >&6; }
4507case $ac_cv_build in
4508*-*-*) ;;
4509*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4510esac
4511build=$ac_cv_build
4512ac_save_IFS=$IFS; IFS='-'
4513set x $ac_cv_build
4514shift
4515build_cpu=$1
4516build_vendor=$2
4517shift; shift
4518# Remember, the first character of IFS is used to create $*,
4519# except with old shells:
4520build_os=$*
4521IFS=$ac_save_IFS
4522case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4523
4524
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4526$as_echo_n "checking host system type... " >&6; }
4527if test "${ac_cv_host+set}" = set; then :
4528  $as_echo_n "(cached) " >&6
4529else
4530  if test "x$host_alias" = x; then
4531  ac_cv_host=$ac_cv_build
4532else
4533  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4534    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4535fi
4536
4537fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4539$as_echo "$ac_cv_host" >&6; }
4540case $ac_cv_host in
4541*-*-*) ;;
4542*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4543esac
4544host=$ac_cv_host
4545ac_save_IFS=$IFS; IFS='-'
4546set x $ac_cv_host
4547shift
4548host_cpu=$1
4549host_vendor=$2
4550shift; shift
4551# Remember, the first character of IFS is used to create $*,
4552# except with old shells:
4553host_os=$*
4554IFS=$ac_save_IFS
4555case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4556
4557
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4559$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4560if test "${ac_cv_path_SED+set}" = set; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4564     for ac_i in 1 2 3 4 5 6 7; do
4565       ac_script="$ac_script$as_nl$ac_script"
4566     done
4567     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4568     { ac_script=; unset ac_script;}
4569     if test -z "$SED"; then
4570  ac_path_SED_found=false
4571  # Loop through the user's path and test for each of PROGNAME-LIST
4572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575  IFS=$as_save_IFS
4576  test -z "$as_dir" && as_dir=.
4577    for ac_prog in sed gsed; do
4578    for ac_exec_ext in '' $ac_executable_extensions; do
4579      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4580      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4581# Check for GNU ac_path_SED and select it if it is found.
4582  # Check for GNU $ac_path_SED
4583case `"$ac_path_SED" --version 2>&1` in
4584*GNU*)
4585  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4586*)
4587  ac_count=0
4588  $as_echo_n 0123456789 >"conftest.in"
4589  while :
4590  do
4591    cat "conftest.in" "conftest.in" >"conftest.tmp"
4592    mv "conftest.tmp" "conftest.in"
4593    cp "conftest.in" "conftest.nl"
4594    $as_echo '' >> "conftest.nl"
4595    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597    as_fn_arith $ac_count + 1 && ac_count=$as_val
4598    if test $ac_count -gt ${ac_path_SED_max-0}; then
4599      # Best one so far, save it but keep looking for a better one
4600      ac_cv_path_SED="$ac_path_SED"
4601      ac_path_SED_max=$ac_count
4602    fi
4603    # 10*(2^10) chars as input seems more than enough
4604    test $ac_count -gt 10 && break
4605  done
4606  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607esac
4608
4609      $ac_path_SED_found && break 3
4610    done
4611  done
4612  done
4613IFS=$as_save_IFS
4614  if test -z "$ac_cv_path_SED"; then
4615    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4616  fi
4617else
4618  ac_cv_path_SED=$SED
4619fi
4620
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4623$as_echo "$ac_cv_path_SED" >&6; }
4624 SED="$ac_cv_path_SED"
4625  rm -f conftest.sed
4626
4627
4628
4629
4630
4631if  test "x$GCC" = xyes ; then
4632    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4633-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4634-Wbad-function-cast -Wformat=2"
4635    case `$CC -dumpversion` in
4636    3.4.* | 4.*)
4637	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4638	;;
4639    esac
4640else
4641    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4642if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4643  SUNCC="yes"
4644else
4645  SUNCC="no"
4646fi
4647
4648    if test "x$SUNCC" = "xyes"; then
4649	CWARNFLAGS="-v"
4650    fi
4651fi
4652
4653
4654
4655# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4656
4657
4658
4659# Check whether --enable-strict-compilation was given.
4660if test "${enable_strict_compilation+set}" = set; then :
4661  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4662else
4663  STRICT_COMPILE=no
4664fi
4665
4666if test "x$STRICT_COMPILE" = "xyes"; then
4667	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4668if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4669  SUNCC="yes"
4670else
4671  SUNCC="no"
4672fi
4673
4674	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4675if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4676  INTELCC="yes"
4677else
4678  INTELCC="no"
4679fi
4680
4681	if test "x$GCC" = xyes ; then
4682		STRICT_CFLAGS="-pedantic -Werror"
4683	elif test "x$SUNCC" = "xyes"; then
4684		STRICT_CFLAGS="-errwarn"
4685    elif test "x$INTELCC" = "xyes"; then
4686		STRICT_CFLAGS="-Werror"
4687	fi
4688fi
4689CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4690
4691
4692
4693
4694cat >>confdefs.h <<_ACEOF
4695#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4696_ACEOF
4697
4698	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4699	if test "x$PVM" = "x"; then
4700		PVM="0"
4701	fi
4702
4703cat >>confdefs.h <<_ACEOF
4704#define PACKAGE_VERSION_MINOR $PVM
4705_ACEOF
4706
4707	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4708	if test "x$PVP" = "x"; then
4709		PVP="0"
4710	fi
4711
4712cat >>confdefs.h <<_ACEOF
4713#define PACKAGE_VERSION_PATCHLEVEL $PVP
4714_ACEOF
4715
4716
4717
4718CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4719mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4720|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4721echo 'git directory not found: installing possibly empty changelog.' >&2)"
4722
4723
4724
4725
4726macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4727INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4728mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4729|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4730echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4731
4732
4733
4734
4735
4736
4737if test x$APP_MAN_SUFFIX = x    ; then
4738    APP_MAN_SUFFIX=1
4739fi
4740if test x$APP_MAN_DIR = x    ; then
4741    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4742fi
4743
4744if test x$LIB_MAN_SUFFIX = x    ; then
4745    LIB_MAN_SUFFIX=3
4746fi
4747if test x$LIB_MAN_DIR = x    ; then
4748    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4749fi
4750
4751if test x$FILE_MAN_SUFFIX = x    ; then
4752    case $host_os in
4753	solaris*)	FILE_MAN_SUFFIX=4  ;;
4754	*)		FILE_MAN_SUFFIX=5  ;;
4755    esac
4756fi
4757if test x$FILE_MAN_DIR = x    ; then
4758    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4759fi
4760
4761if test x$MISC_MAN_SUFFIX = x    ; then
4762    case $host_os in
4763	solaris*)	MISC_MAN_SUFFIX=5  ;;
4764	*)		MISC_MAN_SUFFIX=7  ;;
4765    esac
4766fi
4767if test x$MISC_MAN_DIR = x    ; then
4768    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4769fi
4770
4771if test x$DRIVER_MAN_SUFFIX = x    ; then
4772    case $host_os in
4773	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4774	*)		DRIVER_MAN_SUFFIX=4  ;;
4775    esac
4776fi
4777if test x$DRIVER_MAN_DIR = x    ; then
4778    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4779fi
4780
4781if test x$ADMIN_MAN_SUFFIX = x    ; then
4782    case $host_os in
4783	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4784	*)		ADMIN_MAN_SUFFIX=8  ;;
4785    esac
4786fi
4787if test x$ADMIN_MAN_DIR = x    ; then
4788    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4789fi
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805XORG_MAN_PAGE="X Version 11"
4806
4807MAN_SUBSTS="\
4808	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4809	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4810	-e 's|__xservername__|Xorg|g' \
4811	-e 's|__xconfigfile__|xorg.conf|g' \
4812	-e 's|__projectroot__|\$(prefix)|g' \
4813	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4814	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4815	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4816	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4817	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4818	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4819	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4820
4821
4822
4823# Check whether --enable-silent-rules was given.
4824if test "${enable_silent_rules+set}" = set; then :
4825  enableval=$enable_silent_rules;
4826fi
4827
4828case $enable_silent_rules in
4829yes) AM_DEFAULT_VERBOSITY=0;;
4830no)  AM_DEFAULT_VERBOSITY=1;;
4831*)   AM_DEFAULT_VERBOSITY=0;;
4832esac
4833AM_BACKSLASH='\'
4834
4835
4836
4837spec_default=
4838if test "x$spec_default" = x ; then
4839  spec_default="yes"
4840fi
4841# Check whether --enable-specs was given.
4842if test "${enable_specs+set}" = set; then :
4843  enableval=$enable_specs; build_specs=$enableval
4844else
4845  build_specs=$spec_default
4846fi
4847
4848 if test x$build_specs = xyes; then
4849  ENABLE_SPECS_TRUE=
4850  ENABLE_SPECS_FALSE='#'
4851else
4852  ENABLE_SPECS_TRUE='#'
4853  ENABLE_SPECS_FALSE=
4854fi
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
4857$as_echo_n "checking whether to build functional specifications... " >&6; }
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
4859$as_echo "$build_specs" >&6; }
4860
4861
4862
4863
4864# Check whether --with-xmlto was given.
4865if test "${with_xmlto+set}" = set; then :
4866  withval=$with_xmlto; use_xmlto=$withval
4867else
4868  use_xmlto=auto
4869fi
4870
4871
4872if test "x$use_xmlto" = x"auto"; then
4873   # Extract the first word of "xmlto", so it can be a program name with args.
4874set dummy xmlto; ac_word=$2
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876$as_echo_n "checking for $ac_word... " >&6; }
4877if test "${ac_cv_path_XMLTO+set}" = set; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  case $XMLTO in
4881  [\\/]* | ?:[\\/]*)
4882  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
4883  ;;
4884  *)
4885  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888  IFS=$as_save_IFS
4889  test -z "$as_dir" && as_dir=.
4890    for ac_exec_ext in '' $ac_executable_extensions; do
4891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
4893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894    break 2
4895  fi
4896done
4897  done
4898IFS=$as_save_IFS
4899
4900  ;;
4901esac
4902fi
4903XMLTO=$ac_cv_path_XMLTO
4904if test -n "$XMLTO"; then
4905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
4906$as_echo "$XMLTO" >&6; }
4907else
4908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
4910fi
4911
4912
4913   if test "x$XMLTO" = "x"; then
4914        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
4915$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
4916	have_xmlto=no
4917   else
4918        have_xmlto=yes
4919   fi
4920elif test "x$use_xmlto" = x"yes" ; then
4921   # Extract the first word of "xmlto", so it can be a program name with args.
4922set dummy xmlto; ac_word=$2
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924$as_echo_n "checking for $ac_word... " >&6; }
4925if test "${ac_cv_path_XMLTO+set}" = set; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  case $XMLTO in
4929  [\\/]* | ?:[\\/]*)
4930  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
4931  ;;
4932  *)
4933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936  IFS=$as_save_IFS
4937  test -z "$as_dir" && as_dir=.
4938    for ac_exec_ext in '' $ac_executable_extensions; do
4939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
4941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942    break 2
4943  fi
4944done
4945  done
4946IFS=$as_save_IFS
4947
4948  ;;
4949esac
4950fi
4951XMLTO=$ac_cv_path_XMLTO
4952if test -n "$XMLTO"; then
4953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
4954$as_echo "$XMLTO" >&6; }
4955else
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
4958fi
4959
4960
4961   if test "x$XMLTO" = "x"; then
4962        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
4963   fi
4964   have_xmlto=yes
4965elif test "x$use_xmlto" = x"no" ; then
4966   if test "x$XMLTO" != "x"; then
4967      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
4968$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
4969   fi
4970   have_xmlto=no
4971else
4972   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
4973fi
4974
4975# Test for a minimum version of xmlto, if provided.
4976if test "$have_xmlto" = yes; then
4977    # scrape the xmlto version
4978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
4979$as_echo_n "checking the xmlto version... " >&6; }
4980    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
4981    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
4982$as_echo "$xmlto_version" >&6; }
4983    as_arg_v1=$xmlto_version
4984as_arg_v2=0.0.20
4985awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
4986case $? in #(
4987  1) :
4988    if test "x$use_xmlto" = xauto; then
4989            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
4990$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
4991            have_xmlto=no
4992        else
4993            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
4994        fi ;; #(
4995  0) :
4996     ;; #(
4997  2) :
4998     ;; #(
4999  *) :
5000     ;;
5001esac
5002fi
5003
5004# Test for the ability of xmlto to generate a text target
5005have_xmlto_text=no
5006cat > conftest.xml << "EOF"
5007EOF
5008if test "$have_xmlto" = yes; then :
5009  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
5010  have_xmlto_text=yes
5011else
5012  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
5013$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
5014fi
5015fi
5016rm -f conftest.xml
5017 if test $have_xmlto_text = yes; then
5018  HAVE_XMLTO_TEXT_TRUE=
5019  HAVE_XMLTO_TEXT_FALSE='#'
5020else
5021  HAVE_XMLTO_TEXT_TRUE='#'
5022  HAVE_XMLTO_TEXT_FALSE=
5023fi
5024
5025 if test "$have_xmlto" = yes; then
5026  HAVE_XMLTO_TRUE=
5027  HAVE_XMLTO_FALSE='#'
5028else
5029  HAVE_XMLTO_TRUE='#'
5030  HAVE_XMLTO_FALSE=
5031fi
5032
5033
5034
5035
5036
5037# Check whether --with-fop was given.
5038if test "${with_fop+set}" = set; then :
5039  withval=$with_fop; use_fop=$withval
5040else
5041  use_fop=auto
5042fi
5043
5044
5045if test "x$use_fop" = x"auto"; then
5046   # Extract the first word of "fop", so it can be a program name with args.
5047set dummy fop; ac_word=$2
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049$as_echo_n "checking for $ac_word... " >&6; }
5050if test "${ac_cv_path_FOP+set}" = set; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  case $FOP in
5054  [\\/]* | ?:[\\/]*)
5055  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5056  ;;
5057  *)
5058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH
5060do
5061  IFS=$as_save_IFS
5062  test -z "$as_dir" && as_dir=.
5063    for ac_exec_ext in '' $ac_executable_extensions; do
5064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067    break 2
5068  fi
5069done
5070  done
5071IFS=$as_save_IFS
5072
5073  ;;
5074esac
5075fi
5076FOP=$ac_cv_path_FOP
5077if test -n "$FOP"; then
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5079$as_echo "$FOP" >&6; }
5080else
5081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082$as_echo "no" >&6; }
5083fi
5084
5085
5086   if test "x$FOP" = "x"; then
5087        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
5088$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5089	have_fop=no
5090   else
5091        have_fop=yes
5092   fi
5093elif test "x$use_fop" = x"yes" ; then
5094   # Extract the first word of "fop", so it can be a program name with args.
5095set dummy fop; ac_word=$2
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if test "${ac_cv_path_FOP+set}" = set; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  case $FOP in
5102  [\\/]* | ?:[\\/]*)
5103  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5104  ;;
5105  *)
5106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111    for ac_exec_ext in '' $ac_executable_extensions; do
5112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118  done
5119IFS=$as_save_IFS
5120
5121  ;;
5122esac
5123fi
5124FOP=$ac_cv_path_FOP
5125if test -n "$FOP"; then
5126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5127$as_echo "$FOP" >&6; }
5128else
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130$as_echo "no" >&6; }
5131fi
5132
5133
5134   if test "x$FOP" = "x"; then
5135        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
5136   fi
5137   have_fop=yes
5138elif test "x$use_fop" = x"no" ; then
5139   if test "x$FOP" != "x"; then
5140      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5141$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5142   fi
5143   have_fop=no
5144else
5145   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
5146fi
5147 if test "$have_fop" = yes; then
5148  HAVE_FOP_TRUE=
5149  HAVE_FOP_FALSE='#'
5150else
5151  HAVE_FOP_TRUE='#'
5152  HAVE_FOP_FALSE=
5153fi
5154
5155
5156
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
5158$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
5159XORG_SGML_PATH=
5160if test -n "$PKG_CONFIG" && \
5161    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
5162  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
5163  ac_status=$?
5164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5165  test $ac_status = 0; }; then
5166  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
5167else
5168  :
5169
5170fi
5171
5172# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
5173# the path and the name of the doc stylesheet
5174if test "x$XORG_SGML_PATH" != "x" ; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
5176$as_echo "$XORG_SGML_PATH" >&6; }
5177   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
5178   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
5179else
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181$as_echo "no" >&6; }
5182fi
5183
5184
5185
5186
5187 if test "x$XSL_STYLESHEET" != "x"; then
5188  HAVE_STYLESHEETS_TRUE=
5189  HAVE_STYLESHEETS_FALSE='#'
5190else
5191  HAVE_STYLESHEETS_TRUE='#'
5192  HAVE_STYLESHEETS_FALSE=
5193fi
5194
5195
5196
5197
5198
5199# Check whether --with-asciidoc was given.
5200if test "${with_asciidoc+set}" = set; then :
5201  withval=$with_asciidoc; use_asciidoc=$withval
5202else
5203  use_asciidoc=auto
5204fi
5205
5206
5207if test "x$use_asciidoc" = x"auto"; then
5208   # Extract the first word of "asciidoc", so it can be a program name with args.
5209set dummy asciidoc; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
5212if test "${ac_cv_path_ASCIIDOC+set}" = set; then :
5213  $as_echo_n "(cached) " >&6
5214else
5215  case $ASCIIDOC in
5216  [\\/]* | ?:[\\/]*)
5217  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
5218  ;;
5219  *)
5220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223  IFS=$as_save_IFS
5224  test -z "$as_dir" && as_dir=.
5225    for ac_exec_ext in '' $ac_executable_extensions; do
5226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
5228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229    break 2
5230  fi
5231done
5232  done
5233IFS=$as_save_IFS
5234
5235  ;;
5236esac
5237fi
5238ASCIIDOC=$ac_cv_path_ASCIIDOC
5239if test -n "$ASCIIDOC"; then
5240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
5241$as_echo "$ASCIIDOC" >&6; }
5242else
5243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }
5245fi
5246
5247
5248   if test "x$ASCIIDOC" = "x"; then
5249        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
5250$as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
5251	have_asciidoc=no
5252   else
5253        have_asciidoc=yes
5254   fi
5255elif test "x$use_asciidoc" = x"yes" ; then
5256   # Extract the first word of "asciidoc", so it can be a program name with args.
5257set dummy asciidoc; ac_word=$2
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
5260if test "${ac_cv_path_ASCIIDOC+set}" = set; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  case $ASCIIDOC in
5264  [\\/]* | ?:[\\/]*)
5265  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
5266  ;;
5267  *)
5268  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271  IFS=$as_save_IFS
5272  test -z "$as_dir" && as_dir=.
5273    for ac_exec_ext in '' $ac_executable_extensions; do
5274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
5276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277    break 2
5278  fi
5279done
5280  done
5281IFS=$as_save_IFS
5282
5283  ;;
5284esac
5285fi
5286ASCIIDOC=$ac_cv_path_ASCIIDOC
5287if test -n "$ASCIIDOC"; then
5288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
5289$as_echo "$ASCIIDOC" >&6; }
5290else
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292$as_echo "no" >&6; }
5293fi
5294
5295
5296   if test "x$ASCIIDOC" = "x"; then
5297        as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
5298   fi
5299   have_asciidoc=yes
5300elif test "x$use_asciidoc" = x"no" ; then
5301   if test "x$ASCIIDOC" != "x"; then
5302      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
5303$as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
5304   fi
5305   have_asciidoc=no
5306else
5307   as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
5308fi
5309if test "$have_asciidoc" = yes; then
5310    # scrape the asciidoc version
5311    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
5312$as_echo_n "checking the asciidoc version... " >&6; }
5313    asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
5314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
5315$as_echo "$asciidoc_version" >&6; }
5316    as_arg_v1=$asciidoc_version
5317as_arg_v2=8.4.5
5318awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5319case $? in #(
5320  1) :
5321    if test "x$use_asciidoc" = xauto; then
5322            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
5323$as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
5324            have_asciidoc=no
5325        else
5326            as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
5327        fi ;; #(
5328  0) :
5329     ;; #(
5330  2) :
5331     ;; #(
5332  *) :
5333     ;;
5334esac
5335fi
5336 if test "$have_asciidoc" = yes; then
5337  HAVE_ASCIIDOC_TRUE=
5338  HAVE_ASCIIDOC_FALSE='#'
5339else
5340  HAVE_ASCIIDOC_TRUE='#'
5341  HAVE_ASCIIDOC_FALSE=
5342fi
5343
5344
5345ac_config_headers="$ac_config_headers src/config.h"
5346
5347
5348# Check for progs
5349ac_ext=c
5350ac_cpp='$CPP $CPPFLAGS'
5351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354if test -n "$ac_tool_prefix"; then
5355  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5356set dummy ${ac_tool_prefix}gcc; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if test "${ac_cv_prog_CC+set}" = set; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -n "$CC"; then
5363  ac_cv_prog_CC="$CC" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377  done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382CC=$ac_cv_prog_CC
5383if test -n "$CC"; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5385$as_echo "$CC" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392fi
5393if test -z "$ac_cv_prog_CC"; then
5394  ac_ct_CC=$CC
5395  # Extract the first word of "gcc", so it can be a program name with args.
5396set dummy gcc; ac_word=$2
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
5399if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  if test -n "$ac_ct_CC"; then
5403  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408  IFS=$as_save_IFS
5409  test -z "$as_dir" && as_dir=.
5410    for ac_exec_ext in '' $ac_executable_extensions; do
5411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412    ac_cv_prog_ac_ct_CC="gcc"
5413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414    break 2
5415  fi
5416done
5417  done
5418IFS=$as_save_IFS
5419
5420fi
5421fi
5422ac_ct_CC=$ac_cv_prog_ac_ct_CC
5423if test -n "$ac_ct_CC"; then
5424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5425$as_echo "$ac_ct_CC" >&6; }
5426else
5427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428$as_echo "no" >&6; }
5429fi
5430
5431  if test "x$ac_ct_CC" = x; then
5432    CC=""
5433  else
5434    case $cross_compiling:$ac_tool_warned in
5435yes:)
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438ac_tool_warned=yes ;;
5439esac
5440    CC=$ac_ct_CC
5441  fi
5442else
5443  CC="$ac_cv_prog_CC"
5444fi
5445
5446if test -z "$CC"; then
5447          if test -n "$ac_tool_prefix"; then
5448    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5449set dummy ${ac_tool_prefix}cc; ac_word=$2
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
5452if test "${ac_cv_prog_CC+set}" = set; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  if test -n "$CC"; then
5456  ac_cv_prog_CC="$CC" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  test -z "$as_dir" && as_dir=.
5463    for ac_exec_ext in '' $ac_executable_extensions; do
5464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465    ac_cv_prog_CC="${ac_tool_prefix}cc"
5466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467    break 2
5468  fi
5469done
5470  done
5471IFS=$as_save_IFS
5472
5473fi
5474fi
5475CC=$ac_cv_prog_CC
5476if test -n "$CC"; then
5477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5478$as_echo "$CC" >&6; }
5479else
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481$as_echo "no" >&6; }
5482fi
5483
5484
5485  fi
5486fi
5487if test -z "$CC"; then
5488  # Extract the first word of "cc", so it can be a program name with args.
5489set dummy cc; ac_word=$2
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
5492if test "${ac_cv_prog_CC+set}" = set; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  if test -n "$CC"; then
5496  ac_cv_prog_CC="$CC" # Let the user override the test.
5497else
5498  ac_prog_rejected=no
5499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500for as_dir in $PATH
5501do
5502  IFS=$as_save_IFS
5503  test -z "$as_dir" && as_dir=.
5504    for ac_exec_ext in '' $ac_executable_extensions; do
5505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5507       ac_prog_rejected=yes
5508       continue
5509     fi
5510    ac_cv_prog_CC="cc"
5511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512    break 2
5513  fi
5514done
5515  done
5516IFS=$as_save_IFS
5517
5518if test $ac_prog_rejected = yes; then
5519  # We found a bogon in the path, so make sure we never use it.
5520  set dummy $ac_cv_prog_CC
5521  shift
5522  if test $# != 0; then
5523    # We chose a different compiler from the bogus one.
5524    # However, it has the same basename, so the bogon will be chosen
5525    # first if we set CC to just the basename; use the full file name.
5526    shift
5527    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5528  fi
5529fi
5530fi
5531fi
5532CC=$ac_cv_prog_CC
5533if test -n "$CC"; then
5534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5535$as_echo "$CC" >&6; }
5536else
5537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5539fi
5540
5541
5542fi
5543if test -z "$CC"; then
5544  if test -n "$ac_tool_prefix"; then
5545  for ac_prog in cl.exe
5546  do
5547    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5548set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550$as_echo_n "checking for $ac_word... " >&6; }
5551if test "${ac_cv_prog_CC+set}" = set; then :
5552  $as_echo_n "(cached) " >&6
5553else
5554  if test -n "$CC"; then
5555  ac_cv_prog_CC="$CC" # Let the user override the test.
5556else
5557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560  IFS=$as_save_IFS
5561  test -z "$as_dir" && as_dir=.
5562    for ac_exec_ext in '' $ac_executable_extensions; do
5563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566    break 2
5567  fi
5568done
5569  done
5570IFS=$as_save_IFS
5571
5572fi
5573fi
5574CC=$ac_cv_prog_CC
5575if test -n "$CC"; then
5576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5577$as_echo "$CC" >&6; }
5578else
5579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580$as_echo "no" >&6; }
5581fi
5582
5583
5584    test -n "$CC" && break
5585  done
5586fi
5587if test -z "$CC"; then
5588  ac_ct_CC=$CC
5589  for ac_prog in cl.exe
5590do
5591  # Extract the first word of "$ac_prog", so it can be a program name with args.
5592set dummy $ac_prog; ac_word=$2
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594$as_echo_n "checking for $ac_word... " >&6; }
5595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5596  $as_echo_n "(cached) " >&6
5597else
5598  if test -n "$ac_ct_CC"; then
5599  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604  IFS=$as_save_IFS
5605  test -z "$as_dir" && as_dir=.
5606    for ac_exec_ext in '' $ac_executable_extensions; do
5607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608    ac_cv_prog_ac_ct_CC="$ac_prog"
5609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610    break 2
5611  fi
5612done
5613  done
5614IFS=$as_save_IFS
5615
5616fi
5617fi
5618ac_ct_CC=$ac_cv_prog_ac_ct_CC
5619if test -n "$ac_ct_CC"; then
5620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5621$as_echo "$ac_ct_CC" >&6; }
5622else
5623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624$as_echo "no" >&6; }
5625fi
5626
5627
5628  test -n "$ac_ct_CC" && break
5629done
5630
5631  if test "x$ac_ct_CC" = x; then
5632    CC=""
5633  else
5634    case $cross_compiling:$ac_tool_warned in
5635yes:)
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5638ac_tool_warned=yes ;;
5639esac
5640    CC=$ac_ct_CC
5641  fi
5642fi
5643
5644fi
5645
5646
5647test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5649as_fn_error $? "no acceptable C compiler found in \$PATH
5650See \`config.log' for more details" "$LINENO" 5; }
5651
5652# Provide some information about the compiler.
5653$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5654set X $ac_compile
5655ac_compiler=$2
5656for ac_option in --version -v -V -qversion; do
5657  { { ac_try="$ac_compiler $ac_option >&5"
5658case "(($ac_try" in
5659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660  *) ac_try_echo=$ac_try;;
5661esac
5662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5663$as_echo "$ac_try_echo"; } >&5
5664  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5665  ac_status=$?
5666  if test -s conftest.err; then
5667    sed '10a\
5668... rest of stderr output deleted ...
5669         10q' conftest.err >conftest.er1
5670    cat conftest.er1 >&5
5671  fi
5672  rm -f conftest.er1 conftest.err
5673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674  test $ac_status = 0; }
5675done
5676
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5678$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5679if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h.  */
5684
5685int
5686main ()
5687{
5688#ifndef __GNUC__
5689       choke me
5690#endif
5691
5692  ;
5693  return 0;
5694}
5695_ACEOF
5696if ac_fn_c_try_compile "$LINENO"; then :
5697  ac_compiler_gnu=yes
5698else
5699  ac_compiler_gnu=no
5700fi
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702ac_cv_c_compiler_gnu=$ac_compiler_gnu
5703
5704fi
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5706$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5707if test $ac_compiler_gnu = yes; then
5708  GCC=yes
5709else
5710  GCC=
5711fi
5712ac_test_CFLAGS=${CFLAGS+set}
5713ac_save_CFLAGS=$CFLAGS
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5715$as_echo_n "checking whether $CC accepts -g... " >&6; }
5716if test "${ac_cv_prog_cc_g+set}" = set; then :
5717  $as_echo_n "(cached) " >&6
5718else
5719  ac_save_c_werror_flag=$ac_c_werror_flag
5720   ac_c_werror_flag=yes
5721   ac_cv_prog_cc_g=no
5722   CFLAGS="-g"
5723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725
5726int
5727main ()
5728{
5729
5730  ;
5731  return 0;
5732}
5733_ACEOF
5734if ac_fn_c_try_compile "$LINENO"; then :
5735  ac_cv_prog_cc_g=yes
5736else
5737  CFLAGS=""
5738      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740
5741int
5742main ()
5743{
5744
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then :
5750
5751else
5752  ac_c_werror_flag=$ac_save_c_werror_flag
5753	 CFLAGS="-g"
5754	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755/* end confdefs.h.  */
5756
5757int
5758main ()
5759{
5760
5761  ;
5762  return 0;
5763}
5764_ACEOF
5765if ac_fn_c_try_compile "$LINENO"; then :
5766  ac_cv_prog_cc_g=yes
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771fi
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773   ac_c_werror_flag=$ac_save_c_werror_flag
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5776$as_echo "$ac_cv_prog_cc_g" >&6; }
5777if test "$ac_test_CFLAGS" = set; then
5778  CFLAGS=$ac_save_CFLAGS
5779elif test $ac_cv_prog_cc_g = yes; then
5780  if test "$GCC" = yes; then
5781    CFLAGS="-g -O2"
5782  else
5783    CFLAGS="-g"
5784  fi
5785else
5786  if test "$GCC" = yes; then
5787    CFLAGS="-O2"
5788  else
5789    CFLAGS=
5790  fi
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5793$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5794if test "${ac_cv_prog_cc_c89+set}" = set; then :
5795  $as_echo_n "(cached) " >&6
5796else
5797  ac_cv_prog_cc_c89=no
5798ac_save_CC=$CC
5799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h.  */
5801#include <stdarg.h>
5802#include <stdio.h>
5803#include <sys/types.h>
5804#include <sys/stat.h>
5805/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5806struct buf { int x; };
5807FILE * (*rcsopen) (struct buf *, struct stat *, int);
5808static char *e (p, i)
5809     char **p;
5810     int i;
5811{
5812  return p[i];
5813}
5814static char *f (char * (*g) (char **, int), char **p, ...)
5815{
5816  char *s;
5817  va_list v;
5818  va_start (v,p);
5819  s = g (p, va_arg (v,int));
5820  va_end (v);
5821  return s;
5822}
5823
5824/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5825   function prototypes and stuff, but not '\xHH' hex character constants.
5826   These don't provoke an error unfortunately, instead are silently treated
5827   as 'x'.  The following induces an error, until -std is added to get
5828   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5829   array size at least.  It's necessary to write '\x00'==0 to get something
5830   that's true only with -std.  */
5831int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5832
5833/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5834   inside strings and character constants.  */
5835#define FOO(x) 'x'
5836int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5837
5838int test (int i, double x);
5839struct s1 {int (*f) (int a);};
5840struct s2 {int (*f) (double a);};
5841int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5842int argc;
5843char **argv;
5844int
5845main ()
5846{
5847return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5848  ;
5849  return 0;
5850}
5851_ACEOF
5852for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5853	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5854do
5855  CC="$ac_save_CC $ac_arg"
5856  if ac_fn_c_try_compile "$LINENO"; then :
5857  ac_cv_prog_cc_c89=$ac_arg
5858fi
5859rm -f core conftest.err conftest.$ac_objext
5860  test "x$ac_cv_prog_cc_c89" != "xno" && break
5861done
5862rm -f conftest.$ac_ext
5863CC=$ac_save_CC
5864
5865fi
5866# AC_CACHE_VAL
5867case "x$ac_cv_prog_cc_c89" in
5868  x)
5869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5870$as_echo "none needed" >&6; } ;;
5871  xno)
5872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5873$as_echo "unsupported" >&6; } ;;
5874  *)
5875    CC="$CC $ac_cv_prog_cc_c89"
5876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5877$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5878esac
5879if test "x$ac_cv_prog_cc_c89" != xno; then :
5880
5881fi
5882
5883ac_ext=c
5884ac_cpp='$CPP $CPPFLAGS'
5885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887ac_compiler_gnu=$ac_cv_c_compiler_gnu
5888
5889depcc="$CC"   am_compiler_list=
5890
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5892$as_echo_n "checking dependency style of $depcc... " >&6; }
5893if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5897  # We make a subdir and do the tests there.  Otherwise we can end up
5898  # making bogus files that we don't know about and never remove.  For
5899  # instance it was reported that on HP-UX the gcc test will end up
5900  # making a dummy file named `D' -- because `-MD' means `put the output
5901  # in D'.
5902  mkdir conftest.dir
5903  # Copy depcomp to subdir because otherwise we won't find it if we're
5904  # using a relative directory.
5905  cp "$am_depcomp" conftest.dir
5906  cd conftest.dir
5907  # We will build objects and dependencies in a subdirectory because
5908  # it helps to detect inapplicable dependency modes.  For instance
5909  # both Tru64's cc and ICC support -MD to output dependencies as a
5910  # side effect of compilation, but ICC will put the dependencies in
5911  # the current directory while Tru64 will put them in the object
5912  # directory.
5913  mkdir sub
5914
5915  am_cv_CC_dependencies_compiler_type=none
5916  if test "$am_compiler_list" = ""; then
5917     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5918  fi
5919  am__universal=false
5920  case " $depcc " in #(
5921     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5922     esac
5923
5924  for depmode in $am_compiler_list; do
5925    # Setup a source with many dependencies, because some compilers
5926    # like to wrap large dependency lists on column 80 (with \), and
5927    # we should not choose a depcomp mode which is confused by this.
5928    #
5929    # We need to recreate these files for each test, as the compiler may
5930    # overwrite some of them when testing with obscure command lines.
5931    # This happens at least with the AIX C compiler.
5932    : > sub/conftest.c
5933    for i in 1 2 3 4 5 6; do
5934      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5935      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5936      # Solaris 8's {/usr,}/bin/sh.
5937      touch sub/conftst$i.h
5938    done
5939    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5940
5941    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5942    # mode.  It turns out that the SunPro C++ compiler does not properly
5943    # handle `-M -o', and we need to detect this.  Also, some Intel
5944    # versions had trouble with output in subdirs
5945    am__obj=sub/conftest.${OBJEXT-o}
5946    am__minus_obj="-o $am__obj"
5947    case $depmode in
5948    gcc)
5949      # This depmode causes a compiler race in universal mode.
5950      test "$am__universal" = false || continue
5951      ;;
5952    nosideeffect)
5953      # after this tag, mechanisms are not by side-effect, so they'll
5954      # only be used when explicitly requested
5955      if test "x$enable_dependency_tracking" = xyes; then
5956	continue
5957      else
5958	break
5959      fi
5960      ;;
5961    msvisualcpp | msvcmsys)
5962      # This compiler won't grok `-c -o', but also, the minuso test has
5963      # not run yet.  These depmodes are late enough in the game, and
5964      # so weak that their functioning should not be impacted.
5965      am__obj=conftest.${OBJEXT-o}
5966      am__minus_obj=
5967      ;;
5968    none) break ;;
5969    esac
5970    if depmode=$depmode \
5971       source=sub/conftest.c object=$am__obj \
5972       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5973       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5974         >/dev/null 2>conftest.err &&
5975       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5976       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5977       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5978       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5979      # icc doesn't choke on unknown options, it will just issue warnings
5980      # or remarks (even with -Werror).  So we grep stderr for any message
5981      # that says an option was ignored or not supported.
5982      # When given -MP, icc 7.0 and 7.1 complain thusly:
5983      #   icc: Command line warning: ignoring option '-M'; no argument required
5984      # The diagnosis changed in icc 8.0:
5985      #   icc: Command line remark: option '-MP' not supported
5986      if (grep 'ignoring option' conftest.err ||
5987          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5988        am_cv_CC_dependencies_compiler_type=$depmode
5989        break
5990      fi
5991    fi
5992  done
5993
5994  cd ..
5995  rm -rf conftest.dir
5996else
5997  am_cv_CC_dependencies_compiler_type=none
5998fi
5999
6000fi
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6002$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6003CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6004
6005 if
6006  test "x$enable_dependency_tracking" != xno \
6007  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6008  am__fastdepCC_TRUE=
6009  am__fastdepCC_FALSE='#'
6010else
6011  am__fastdepCC_TRUE='#'
6012  am__fastdepCC_FALSE=
6013fi
6014
6015
6016case `pwd` in
6017  *\ * | *\	*)
6018    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6019$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6020esac
6021
6022
6023
6024macro_version='2.2.10'
6025macro_revision='1.3175'
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039ltmain="$ac_aux_dir/ltmain.sh"
6040
6041# Backslashify metacharacters that are still active within
6042# double-quoted strings.
6043sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6044
6045# Same as above, but do not quote variable references.
6046double_quote_subst='s/\(["`\\]\)/\\\1/g'
6047
6048# Sed substitution to delay expansion of an escaped shell variable in a
6049# double_quote_subst'ed string.
6050delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6051
6052# Sed substitution to delay expansion of an escaped single quote.
6053delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6054
6055# Sed substitution to avoid accidental globbing in evaled expressions
6056no_glob_subst='s/\*/\\\*/g'
6057
6058ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6059ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6060ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6061
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6063$as_echo_n "checking how to print strings... " >&6; }
6064# Test print first, because it will be a builtin if present.
6065if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6066   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6067  ECHO='print -r --'
6068elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6069  ECHO='printf %s\n'
6070else
6071  # Use this function as a fallback that always works.
6072  func_fallback_echo ()
6073  {
6074    eval 'cat <<_LTECHO_EOF
6075$1
6076_LTECHO_EOF'
6077  }
6078  ECHO='func_fallback_echo'
6079fi
6080
6081# func_echo_all arg...
6082# Invoke $ECHO with all args, space-separated.
6083func_echo_all ()
6084{
6085    $ECHO ""
6086}
6087
6088case "$ECHO" in
6089  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6090$as_echo "printf" >&6; } ;;
6091  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6092$as_echo "print -r" >&6; } ;;
6093  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6094$as_echo "cat" >&6; } ;;
6095esac
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6111$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6112if test "${ac_cv_path_SED+set}" = set; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6116     for ac_i in 1 2 3 4 5 6 7; do
6117       ac_script="$ac_script$as_nl$ac_script"
6118     done
6119     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6120     { ac_script=; unset ac_script;}
6121     if test -z "$SED"; then
6122  ac_path_SED_found=false
6123  # Loop through the user's path and test for each of PROGNAME-LIST
6124  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125for as_dir in $PATH
6126do
6127  IFS=$as_save_IFS
6128  test -z "$as_dir" && as_dir=.
6129    for ac_prog in sed gsed; do
6130    for ac_exec_ext in '' $ac_executable_extensions; do
6131      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6132      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6133# Check for GNU ac_path_SED and select it if it is found.
6134  # Check for GNU $ac_path_SED
6135case `"$ac_path_SED" --version 2>&1` in
6136*GNU*)
6137  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6138*)
6139  ac_count=0
6140  $as_echo_n 0123456789 >"conftest.in"
6141  while :
6142  do
6143    cat "conftest.in" "conftest.in" >"conftest.tmp"
6144    mv "conftest.tmp" "conftest.in"
6145    cp "conftest.in" "conftest.nl"
6146    $as_echo '' >> "conftest.nl"
6147    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6148    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6149    as_fn_arith $ac_count + 1 && ac_count=$as_val
6150    if test $ac_count -gt ${ac_path_SED_max-0}; then
6151      # Best one so far, save it but keep looking for a better one
6152      ac_cv_path_SED="$ac_path_SED"
6153      ac_path_SED_max=$ac_count
6154    fi
6155    # 10*(2^10) chars as input seems more than enough
6156    test $ac_count -gt 10 && break
6157  done
6158  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6159esac
6160
6161      $ac_path_SED_found && break 3
6162    done
6163  done
6164  done
6165IFS=$as_save_IFS
6166  if test -z "$ac_cv_path_SED"; then
6167    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6168  fi
6169else
6170  ac_cv_path_SED=$SED
6171fi
6172
6173fi
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6175$as_echo "$ac_cv_path_SED" >&6; }
6176 SED="$ac_cv_path_SED"
6177  rm -f conftest.sed
6178
6179test -z "$SED" && SED=sed
6180Xsed="$SED -e 1s/^X//"
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6193$as_echo_n "checking for fgrep... " >&6; }
6194if test "${ac_cv_path_FGREP+set}" = set; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6198   then ac_cv_path_FGREP="$GREP -F"
6199   else
6200     if test -z "$FGREP"; then
6201  ac_path_FGREP_found=false
6202  # Loop through the user's path and test for each of PROGNAME-LIST
6203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6205do
6206  IFS=$as_save_IFS
6207  test -z "$as_dir" && as_dir=.
6208    for ac_prog in fgrep; do
6209    for ac_exec_ext in '' $ac_executable_extensions; do
6210      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6211      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6212# Check for GNU ac_path_FGREP and select it if it is found.
6213  # Check for GNU $ac_path_FGREP
6214case `"$ac_path_FGREP" --version 2>&1` in
6215*GNU*)
6216  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6217*)
6218  ac_count=0
6219  $as_echo_n 0123456789 >"conftest.in"
6220  while :
6221  do
6222    cat "conftest.in" "conftest.in" >"conftest.tmp"
6223    mv "conftest.tmp" "conftest.in"
6224    cp "conftest.in" "conftest.nl"
6225    $as_echo 'FGREP' >> "conftest.nl"
6226    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6227    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6228    as_fn_arith $ac_count + 1 && ac_count=$as_val
6229    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6230      # Best one so far, save it but keep looking for a better one
6231      ac_cv_path_FGREP="$ac_path_FGREP"
6232      ac_path_FGREP_max=$ac_count
6233    fi
6234    # 10*(2^10) chars as input seems more than enough
6235    test $ac_count -gt 10 && break
6236  done
6237  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6238esac
6239
6240      $ac_path_FGREP_found && break 3
6241    done
6242  done
6243  done
6244IFS=$as_save_IFS
6245  if test -z "$ac_cv_path_FGREP"; then
6246    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6247  fi
6248else
6249  ac_cv_path_FGREP=$FGREP
6250fi
6251
6252   fi
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6255$as_echo "$ac_cv_path_FGREP" >&6; }
6256 FGREP="$ac_cv_path_FGREP"
6257
6258
6259test -z "$GREP" && GREP=grep
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279# Check whether --with-gnu-ld was given.
6280if test "${with_gnu_ld+set}" = set; then :
6281  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6282else
6283  with_gnu_ld=no
6284fi
6285
6286ac_prog=ld
6287if test "$GCC" = yes; then
6288  # Check if gcc -print-prog-name=ld gives a path.
6289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6290$as_echo_n "checking for ld used by $CC... " >&6; }
6291  case $host in
6292  *-*-mingw*)
6293    # gcc leaves a trailing carriage return which upsets mingw
6294    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6295  *)
6296    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6297  esac
6298  case $ac_prog in
6299    # Accept absolute paths.
6300    [\\/]* | ?:[\\/]*)
6301      re_direlt='/[^/][^/]*/\.\./'
6302      # Canonicalize the pathname of ld
6303      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6304      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6305	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6306      done
6307      test -z "$LD" && LD="$ac_prog"
6308      ;;
6309  "")
6310    # If it fails, then pretend we aren't using GCC.
6311    ac_prog=ld
6312    ;;
6313  *)
6314    # If it is relative, then search for the first ld in PATH.
6315    with_gnu_ld=unknown
6316    ;;
6317  esac
6318elif test "$with_gnu_ld" = yes; then
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6320$as_echo_n "checking for GNU ld... " >&6; }
6321else
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6323$as_echo_n "checking for non-GNU ld... " >&6; }
6324fi
6325if test "${lt_cv_path_LD+set}" = set; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  if test -z "$LD"; then
6329  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6330  for ac_dir in $PATH; do
6331    IFS="$lt_save_ifs"
6332    test -z "$ac_dir" && ac_dir=.
6333    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6334      lt_cv_path_LD="$ac_dir/$ac_prog"
6335      # Check to see if the program is GNU ld.  I'd rather use --version,
6336      # but apparently some variants of GNU ld only accept -v.
6337      # Break only if it was the GNU/non-GNU ld that we prefer.
6338      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6339      *GNU* | *'with BFD'*)
6340	test "$with_gnu_ld" != no && break
6341	;;
6342      *)
6343	test "$with_gnu_ld" != yes && break
6344	;;
6345      esac
6346    fi
6347  done
6348  IFS="$lt_save_ifs"
6349else
6350  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6351fi
6352fi
6353
6354LD="$lt_cv_path_LD"
6355if test -n "$LD"; then
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6357$as_echo "$LD" >&6; }
6358else
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6364$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6365if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6366  $as_echo_n "(cached) " >&6
6367else
6368  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6369case `$LD -v 2>&1 </dev/null` in
6370*GNU* | *'with BFD'*)
6371  lt_cv_prog_gnu_ld=yes
6372  ;;
6373*)
6374  lt_cv_prog_gnu_ld=no
6375  ;;
6376esac
6377fi
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6379$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6380with_gnu_ld=$lt_cv_prog_gnu_ld
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6391$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6392if test "${lt_cv_path_NM+set}" = set; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  if test -n "$NM"; then
6396  # Let the user override the test.
6397  lt_cv_path_NM="$NM"
6398else
6399  lt_nm_to_check="${ac_tool_prefix}nm"
6400  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6401    lt_nm_to_check="$lt_nm_to_check nm"
6402  fi
6403  for lt_tmp_nm in $lt_nm_to_check; do
6404    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6405    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6406      IFS="$lt_save_ifs"
6407      test -z "$ac_dir" && ac_dir=.
6408      tmp_nm="$ac_dir/$lt_tmp_nm"
6409      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6410	# Check to see if the nm accepts a BSD-compat flag.
6411	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6412	#   nm: unknown option "B" ignored
6413	# Tru64's nm complains that /dev/null is an invalid object file
6414	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6415	*/dev/null* | *'Invalid file or object type'*)
6416	  lt_cv_path_NM="$tmp_nm -B"
6417	  break
6418	  ;;
6419	*)
6420	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6421	  */dev/null*)
6422	    lt_cv_path_NM="$tmp_nm -p"
6423	    break
6424	    ;;
6425	  *)
6426	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6427	    continue # so that we can try to find one that supports BSD flags
6428	    ;;
6429	  esac
6430	  ;;
6431	esac
6432      fi
6433    done
6434    IFS="$lt_save_ifs"
6435  done
6436  : ${lt_cv_path_NM=no}
6437fi
6438fi
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6440$as_echo "$lt_cv_path_NM" >&6; }
6441if test "$lt_cv_path_NM" != "no"; then
6442  NM="$lt_cv_path_NM"
6443else
6444  # Didn't find any BSD compatible name lister, look for dumpbin.
6445  if test -n "$DUMPBIN"; then :
6446    # Let the user override the test.
6447  else
6448    if test -n "$ac_tool_prefix"; then
6449  for ac_prog in dumpbin "link -dump"
6450  do
6451    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454$as_echo_n "checking for $ac_word... " >&6; }
6455if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6456  $as_echo_n "(cached) " >&6
6457else
6458  if test -n "$DUMPBIN"; then
6459  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464  IFS=$as_save_IFS
6465  test -z "$as_dir" && as_dir=.
6466    for ac_exec_ext in '' $ac_executable_extensions; do
6467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470    break 2
6471  fi
6472done
6473  done
6474IFS=$as_save_IFS
6475
6476fi
6477fi
6478DUMPBIN=$ac_cv_prog_DUMPBIN
6479if test -n "$DUMPBIN"; then
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6481$as_echo "$DUMPBIN" >&6; }
6482else
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484$as_echo "no" >&6; }
6485fi
6486
6487
6488    test -n "$DUMPBIN" && break
6489  done
6490fi
6491if test -z "$DUMPBIN"; then
6492  ac_ct_DUMPBIN=$DUMPBIN
6493  for ac_prog in dumpbin "link -dump"
6494do
6495  # Extract the first word of "$ac_prog", so it can be a program name with args.
6496set dummy $ac_prog; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
6499if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  if test -n "$ac_ct_DUMPBIN"; then
6503  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508  IFS=$as_save_IFS
6509  test -z "$as_dir" && as_dir=.
6510    for ac_exec_ext in '' $ac_executable_extensions; do
6511  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514    break 2
6515  fi
6516done
6517  done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6523if test -n "$ac_ct_DUMPBIN"; then
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6525$as_echo "$ac_ct_DUMPBIN" >&6; }
6526else
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531
6532  test -n "$ac_ct_DUMPBIN" && break
6533done
6534
6535  if test "x$ac_ct_DUMPBIN" = x; then
6536    DUMPBIN=":"
6537  else
6538    case $cross_compiling:$ac_tool_warned in
6539yes:)
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542ac_tool_warned=yes ;;
6543esac
6544    DUMPBIN=$ac_ct_DUMPBIN
6545  fi
6546fi
6547
6548    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6549    *COFF*)
6550      DUMPBIN="$DUMPBIN -symbols"
6551      ;;
6552    *)
6553      DUMPBIN=:
6554      ;;
6555    esac
6556  fi
6557
6558  if test "$DUMPBIN" != ":"; then
6559    NM="$DUMPBIN"
6560  fi
6561fi
6562test -z "$NM" && NM=nm
6563
6564
6565
6566
6567
6568
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6570$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6571if test "${lt_cv_nm_interface+set}" = set; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  lt_cv_nm_interface="BSD nm"
6575  echo "int some_variable = 0;" > conftest.$ac_ext
6576  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6577  (eval "$ac_compile" 2>conftest.err)
6578  cat conftest.err >&5
6579  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6580  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6581  cat conftest.err >&5
6582  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6583  cat conftest.out >&5
6584  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6585    lt_cv_nm_interface="MS dumpbin"
6586  fi
6587  rm -f conftest*
6588fi
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6590$as_echo "$lt_cv_nm_interface" >&6; }
6591
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6593$as_echo_n "checking whether ln -s works... " >&6; }
6594LN_S=$as_ln_s
6595if test "$LN_S" = "ln -s"; then
6596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6597$as_echo "yes" >&6; }
6598else
6599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6600$as_echo "no, using $LN_S" >&6; }
6601fi
6602
6603# find the maximum length of command line arguments
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6605$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6606if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609    i=0
6610  teststring="ABCD"
6611
6612  case $build_os in
6613  msdosdjgpp*)
6614    # On DJGPP, this test can blow up pretty badly due to problems in libc
6615    # (any single argument exceeding 2000 bytes causes a buffer overrun
6616    # during glob expansion).  Even if it were fixed, the result of this
6617    # check would be larger than it should be.
6618    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6619    ;;
6620
6621  gnu*)
6622    # Under GNU Hurd, this test is not required because there is
6623    # no limit to the length of command line arguments.
6624    # Libtool will interpret -1 as no limit whatsoever
6625    lt_cv_sys_max_cmd_len=-1;
6626    ;;
6627
6628  cygwin* | mingw* | cegcc*)
6629    # On Win9x/ME, this test blows up -- it succeeds, but takes
6630    # about 5 minutes as the teststring grows exponentially.
6631    # Worse, since 9x/ME are not pre-emptively multitasking,
6632    # you end up with a "frozen" computer, even though with patience
6633    # the test eventually succeeds (with a max line length of 256k).
6634    # Instead, let's just punt: use the minimum linelength reported by
6635    # all of the supported platforms: 8192 (on NT/2K/XP).
6636    lt_cv_sys_max_cmd_len=8192;
6637    ;;
6638
6639  mint*)
6640    # On MiNT this can take a long time and run out of memory.
6641    lt_cv_sys_max_cmd_len=8192;
6642    ;;
6643
6644  amigaos*)
6645    # On AmigaOS with pdksh, this test takes hours, literally.
6646    # So we just punt and use a minimum line length of 8192.
6647    lt_cv_sys_max_cmd_len=8192;
6648    ;;
6649
6650  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6651    # This has been around since 386BSD, at least.  Likely further.
6652    if test -x /sbin/sysctl; then
6653      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6654    elif test -x /usr/sbin/sysctl; then
6655      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6656    else
6657      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6658    fi
6659    # And add a safety zone
6660    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6661    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6662    ;;
6663
6664  interix*)
6665    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6666    lt_cv_sys_max_cmd_len=196608
6667    ;;
6668
6669  osf*)
6670    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6671    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6672    # nice to cause kernel panics so lets avoid the loop below.
6673    # First set a reasonable default.
6674    lt_cv_sys_max_cmd_len=16384
6675    #
6676    if test -x /sbin/sysconfig; then
6677      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6678        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6679      esac
6680    fi
6681    ;;
6682  sco3.2v5*)
6683    lt_cv_sys_max_cmd_len=102400
6684    ;;
6685  sysv5* | sco5v6* | sysv4.2uw2*)
6686    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6687    if test -n "$kargmax"; then
6688      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6689    else
6690      lt_cv_sys_max_cmd_len=32768
6691    fi
6692    ;;
6693  *)
6694    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6695    if test -n "$lt_cv_sys_max_cmd_len"; then
6696      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6697      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6698    else
6699      # Make teststring a little bigger before we do anything with it.
6700      # a 1K string should be a reasonable start.
6701      for i in 1 2 3 4 5 6 7 8 ; do
6702        teststring=$teststring$teststring
6703      done
6704      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6705      # If test is not a shell built-in, we'll probably end up computing a
6706      # maximum length that is only half of the actual maximum length, but
6707      # we can't tell.
6708      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6709	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6710	      test $i != 17 # 1/2 MB should be enough
6711      do
6712        i=`expr $i + 1`
6713        teststring=$teststring$teststring
6714      done
6715      # Only check the string length outside the loop.
6716      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6717      teststring=
6718      # Add a significant safety factor because C++ compilers can tack on
6719      # massive amounts of additional arguments before passing them to the
6720      # linker.  It appears as though 1/2 is a usable value.
6721      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6722    fi
6723    ;;
6724  esac
6725
6726fi
6727
6728if test -n $lt_cv_sys_max_cmd_len ; then
6729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6730$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6731else
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6733$as_echo "none" >&6; }
6734fi
6735max_cmd_len=$lt_cv_sys_max_cmd_len
6736
6737
6738
6739
6740
6741
6742: ${CP="cp -f"}
6743: ${MV="mv -f"}
6744: ${RM="rm -f"}
6745
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6747$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6748# Try some XSI features
6749xsi_shell=no
6750( _lt_dummy="a/b/c"
6751  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6752      = c,a/b,, \
6753    && eval 'test $(( 1 + 1 )) -eq 2 \
6754    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6755  && xsi_shell=yes
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6757$as_echo "$xsi_shell" >&6; }
6758
6759
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6761$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6762lt_shell_append=no
6763( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6764    >/dev/null 2>&1 \
6765  && lt_shell_append=yes
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6767$as_echo "$lt_shell_append" >&6; }
6768
6769
6770if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6771  lt_unset=unset
6772else
6773  lt_unset=false
6774fi
6775
6776
6777
6778
6779
6780# test EBCDIC or ASCII
6781case `echo X|tr X '\101'` in
6782 A) # ASCII based system
6783    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6784  lt_SP2NL='tr \040 \012'
6785  lt_NL2SP='tr \015\012 \040\040'
6786  ;;
6787 *) # EBCDIC based system
6788  lt_SP2NL='tr \100 \n'
6789  lt_NL2SP='tr \r\n \100\100'
6790  ;;
6791esac
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6802$as_echo_n "checking for $LD option to reload object files... " >&6; }
6803if test "${lt_cv_ld_reload_flag+set}" = set; then :
6804  $as_echo_n "(cached) " >&6
6805else
6806  lt_cv_ld_reload_flag='-r'
6807fi
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6809$as_echo "$lt_cv_ld_reload_flag" >&6; }
6810reload_flag=$lt_cv_ld_reload_flag
6811case $reload_flag in
6812"" | " "*) ;;
6813*) reload_flag=" $reload_flag" ;;
6814esac
6815reload_cmds='$LD$reload_flag -o $output$reload_objs'
6816case $host_os in
6817  darwin*)
6818    if test "$GCC" = yes; then
6819      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6820    else
6821      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6822    fi
6823    ;;
6824esac
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834if test -n "$ac_tool_prefix"; then
6835  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6836set dummy ${ac_tool_prefix}objdump; ac_word=$2
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838$as_echo_n "checking for $ac_word... " >&6; }
6839if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6840  $as_echo_n "(cached) " >&6
6841else
6842  if test -n "$OBJDUMP"; then
6843  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6844else
6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848  IFS=$as_save_IFS
6849  test -z "$as_dir" && as_dir=.
6850    for ac_exec_ext in '' $ac_executable_extensions; do
6851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854    break 2
6855  fi
6856done
6857  done
6858IFS=$as_save_IFS
6859
6860fi
6861fi
6862OBJDUMP=$ac_cv_prog_OBJDUMP
6863if test -n "$OBJDUMP"; then
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6865$as_echo "$OBJDUMP" >&6; }
6866else
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868$as_echo "no" >&6; }
6869fi
6870
6871
6872fi
6873if test -z "$ac_cv_prog_OBJDUMP"; then
6874  ac_ct_OBJDUMP=$OBJDUMP
6875  # Extract the first word of "objdump", so it can be a program name with args.
6876set dummy objdump; ac_word=$2
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878$as_echo_n "checking for $ac_word... " >&6; }
6879if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882  if test -n "$ac_ct_OBJDUMP"; then
6883  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6884else
6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888  IFS=$as_save_IFS
6889  test -z "$as_dir" && as_dir=.
6890    for ac_exec_ext in '' $ac_executable_extensions; do
6891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894    break 2
6895  fi
6896done
6897  done
6898IFS=$as_save_IFS
6899
6900fi
6901fi
6902ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6903if test -n "$ac_ct_OBJDUMP"; then
6904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6905$as_echo "$ac_ct_OBJDUMP" >&6; }
6906else
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908$as_echo "no" >&6; }
6909fi
6910
6911  if test "x$ac_ct_OBJDUMP" = x; then
6912    OBJDUMP="false"
6913  else
6914    case $cross_compiling:$ac_tool_warned in
6915yes:)
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918ac_tool_warned=yes ;;
6919esac
6920    OBJDUMP=$ac_ct_OBJDUMP
6921  fi
6922else
6923  OBJDUMP="$ac_cv_prog_OBJDUMP"
6924fi
6925
6926test -z "$OBJDUMP" && OBJDUMP=objdump
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6937$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6938if test "${lt_cv_deplibs_check_method+set}" = set; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  lt_cv_file_magic_cmd='$MAGIC_CMD'
6942lt_cv_file_magic_test_file=
6943lt_cv_deplibs_check_method='unknown'
6944# Need to set the preceding variable on all platforms that support
6945# interlibrary dependencies.
6946# 'none' -- dependencies not supported.
6947# `unknown' -- same as none, but documents that we really don't know.
6948# 'pass_all' -- all dependencies passed with no checks.
6949# 'test_compile' -- check by making test program.
6950# 'file_magic [[regex]]' -- check by looking for files in library path
6951# which responds to the $file_magic_cmd with a given extended regex.
6952# If you have `file' or equivalent on your system and you're not sure
6953# whether `pass_all' will *always* work, you probably want this one.
6954
6955case $host_os in
6956aix[4-9]*)
6957  lt_cv_deplibs_check_method=pass_all
6958  ;;
6959
6960beos*)
6961  lt_cv_deplibs_check_method=pass_all
6962  ;;
6963
6964bsdi[45]*)
6965  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6966  lt_cv_file_magic_cmd='/usr/bin/file -L'
6967  lt_cv_file_magic_test_file=/shlib/libc.so
6968  ;;
6969
6970cygwin*)
6971  # func_win32_libid is a shell function defined in ltmain.sh
6972  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6973  lt_cv_file_magic_cmd='func_win32_libid'
6974  ;;
6975
6976mingw* | pw32*)
6977  # Base MSYS/MinGW do not provide the 'file' command needed by
6978  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6979  # unless we find 'file', for example because we are cross-compiling.
6980  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6981  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6982    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6983    lt_cv_file_magic_cmd='func_win32_libid'
6984  else
6985    # Keep this pattern in sync with the one in func_win32_libid.
6986    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6987    lt_cv_file_magic_cmd='$OBJDUMP -f'
6988  fi
6989  ;;
6990
6991cegcc*)
6992  # use the weaker test based on 'objdump'. See mingw*.
6993  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6994  lt_cv_file_magic_cmd='$OBJDUMP -f'
6995  ;;
6996
6997darwin* | rhapsody*)
6998  lt_cv_deplibs_check_method=pass_all
6999  ;;
7000
7001freebsd* | dragonfly*)
7002  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7003    case $host_cpu in
7004    i*86 )
7005      # Not sure whether the presence of OpenBSD here was a mistake.
7006      # Let's accept both of them until this is cleared up.
7007      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7008      lt_cv_file_magic_cmd=/usr/bin/file
7009      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7010      ;;
7011    esac
7012  else
7013    lt_cv_deplibs_check_method=pass_all
7014  fi
7015  ;;
7016
7017gnu*)
7018  lt_cv_deplibs_check_method=pass_all
7019  ;;
7020
7021haiku*)
7022  lt_cv_deplibs_check_method=pass_all
7023  ;;
7024
7025hpux10.20* | hpux11*)
7026  lt_cv_file_magic_cmd=/usr/bin/file
7027  case $host_cpu in
7028  ia64*)
7029    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7030    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7031    ;;
7032  hppa*64*)
7033    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7034    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7035    ;;
7036  *)
7037    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7038    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7039    ;;
7040  esac
7041  ;;
7042
7043interix[3-9]*)
7044  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7045  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7046  ;;
7047
7048irix5* | irix6* | nonstopux*)
7049  case $LD in
7050  *-32|*"-32 ") libmagic=32-bit;;
7051  *-n32|*"-n32 ") libmagic=N32;;
7052  *-64|*"-64 ") libmagic=64-bit;;
7053  *) libmagic=never-match;;
7054  esac
7055  lt_cv_deplibs_check_method=pass_all
7056  ;;
7057
7058# This must be Linux ELF.
7059linux* | k*bsd*-gnu | kopensolaris*-gnu)
7060  lt_cv_deplibs_check_method=pass_all
7061  ;;
7062
7063netbsd*)
7064  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7065    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7066  else
7067    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7068  fi
7069  ;;
7070
7071newos6*)
7072  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7073  lt_cv_file_magic_cmd=/usr/bin/file
7074  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7075  ;;
7076
7077*nto* | *qnx*)
7078  lt_cv_deplibs_check_method=pass_all
7079  ;;
7080
7081openbsd*)
7082  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7083    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7084  else
7085    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7086  fi
7087  ;;
7088
7089osf3* | osf4* | osf5*)
7090  lt_cv_deplibs_check_method=pass_all
7091  ;;
7092
7093rdos*)
7094  lt_cv_deplibs_check_method=pass_all
7095  ;;
7096
7097solaris*)
7098  lt_cv_deplibs_check_method=pass_all
7099  ;;
7100
7101sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7102  lt_cv_deplibs_check_method=pass_all
7103  ;;
7104
7105sysv4 | sysv4.3*)
7106  case $host_vendor in
7107  motorola)
7108    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]'
7109    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7110    ;;
7111  ncr)
7112    lt_cv_deplibs_check_method=pass_all
7113    ;;
7114  sequent)
7115    lt_cv_file_magic_cmd='/bin/file'
7116    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7117    ;;
7118  sni)
7119    lt_cv_file_magic_cmd='/bin/file'
7120    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7121    lt_cv_file_magic_test_file=/lib/libc.so
7122    ;;
7123  siemens)
7124    lt_cv_deplibs_check_method=pass_all
7125    ;;
7126  pc)
7127    lt_cv_deplibs_check_method=pass_all
7128    ;;
7129  esac
7130  ;;
7131
7132tpf*)
7133  lt_cv_deplibs_check_method=pass_all
7134  ;;
7135esac
7136
7137fi
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7139$as_echo "$lt_cv_deplibs_check_method" >&6; }
7140file_magic_cmd=$lt_cv_file_magic_cmd
7141deplibs_check_method=$lt_cv_deplibs_check_method
7142test -z "$deplibs_check_method" && deplibs_check_method=unknown
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155if test -n "$ac_tool_prefix"; then
7156  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7157set dummy ${ac_tool_prefix}ar; ac_word=$2
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159$as_echo_n "checking for $ac_word... " >&6; }
7160if test "${ac_cv_prog_AR+set}" = set; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  if test -n "$AR"; then
7164  ac_cv_prog_AR="$AR" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169  IFS=$as_save_IFS
7170  test -z "$as_dir" && as_dir=.
7171    for ac_exec_ext in '' $ac_executable_extensions; do
7172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173    ac_cv_prog_AR="${ac_tool_prefix}ar"
7174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175    break 2
7176  fi
7177done
7178  done
7179IFS=$as_save_IFS
7180
7181fi
7182fi
7183AR=$ac_cv_prog_AR
7184if test -n "$AR"; then
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7186$as_echo "$AR" >&6; }
7187else
7188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189$as_echo "no" >&6; }
7190fi
7191
7192
7193fi
7194if test -z "$ac_cv_prog_AR"; then
7195  ac_ct_AR=$AR
7196  # Extract the first word of "ar", so it can be a program name with args.
7197set dummy ar; ac_word=$2
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199$as_echo_n "checking for $ac_word... " >&6; }
7200if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  if test -n "$ac_ct_AR"; then
7204  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209  IFS=$as_save_IFS
7210  test -z "$as_dir" && as_dir=.
7211    for ac_exec_ext in '' $ac_executable_extensions; do
7212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213    ac_cv_prog_ac_ct_AR="ar"
7214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215    break 2
7216  fi
7217done
7218  done
7219IFS=$as_save_IFS
7220
7221fi
7222fi
7223ac_ct_AR=$ac_cv_prog_ac_ct_AR
7224if test -n "$ac_ct_AR"; then
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7226$as_echo "$ac_ct_AR" >&6; }
7227else
7228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229$as_echo "no" >&6; }
7230fi
7231
7232  if test "x$ac_ct_AR" = x; then
7233    AR="false"
7234  else
7235    case $cross_compiling:$ac_tool_warned in
7236yes:)
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239ac_tool_warned=yes ;;
7240esac
7241    AR=$ac_ct_AR
7242  fi
7243else
7244  AR="$ac_cv_prog_AR"
7245fi
7246
7247test -z "$AR" && AR=ar
7248test -z "$AR_FLAGS" && AR_FLAGS=cru
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260if test -n "$ac_tool_prefix"; then
7261  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7262set dummy ${ac_tool_prefix}strip; ac_word=$2
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
7265if test "${ac_cv_prog_STRIP+set}" = set; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  if test -n "$STRIP"; then
7269  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276    for ac_exec_ext in '' $ac_executable_extensions; do
7277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280    break 2
7281  fi
7282done
7283  done
7284IFS=$as_save_IFS
7285
7286fi
7287fi
7288STRIP=$ac_cv_prog_STRIP
7289if test -n "$STRIP"; then
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7291$as_echo "$STRIP" >&6; }
7292else
7293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296
7297
7298fi
7299if test -z "$ac_cv_prog_STRIP"; then
7300  ac_ct_STRIP=$STRIP
7301  # Extract the first word of "strip", so it can be a program name with args.
7302set dummy strip; ac_word=$2
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304$as_echo_n "checking for $ac_word... " >&6; }
7305if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  if test -n "$ac_ct_STRIP"; then
7309  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7310else
7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314  IFS=$as_save_IFS
7315  test -z "$as_dir" && as_dir=.
7316    for ac_exec_ext in '' $ac_executable_extensions; do
7317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318    ac_cv_prog_ac_ct_STRIP="strip"
7319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320    break 2
7321  fi
7322done
7323  done
7324IFS=$as_save_IFS
7325
7326fi
7327fi
7328ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7329if test -n "$ac_ct_STRIP"; then
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7331$as_echo "$ac_ct_STRIP" >&6; }
7332else
7333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334$as_echo "no" >&6; }
7335fi
7336
7337  if test "x$ac_ct_STRIP" = x; then
7338    STRIP=":"
7339  else
7340    case $cross_compiling:$ac_tool_warned in
7341yes:)
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344ac_tool_warned=yes ;;
7345esac
7346    STRIP=$ac_ct_STRIP
7347  fi
7348else
7349  STRIP="$ac_cv_prog_STRIP"
7350fi
7351
7352test -z "$STRIP" && STRIP=:
7353
7354
7355
7356
7357
7358
7359if test -n "$ac_tool_prefix"; then
7360  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7361set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363$as_echo_n "checking for $ac_word... " >&6; }
7364if test "${ac_cv_prog_RANLIB+set}" = set; then :
7365  $as_echo_n "(cached) " >&6
7366else
7367  if test -n "$RANLIB"; then
7368  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7369else
7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373  IFS=$as_save_IFS
7374  test -z "$as_dir" && as_dir=.
7375    for ac_exec_ext in '' $ac_executable_extensions; do
7376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379    break 2
7380  fi
7381done
7382  done
7383IFS=$as_save_IFS
7384
7385fi
7386fi
7387RANLIB=$ac_cv_prog_RANLIB
7388if test -n "$RANLIB"; then
7389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7390$as_echo "$RANLIB" >&6; }
7391else
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393$as_echo "no" >&6; }
7394fi
7395
7396
7397fi
7398if test -z "$ac_cv_prog_RANLIB"; then
7399  ac_ct_RANLIB=$RANLIB
7400  # Extract the first word of "ranlib", so it can be a program name with args.
7401set dummy ranlib; ac_word=$2
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403$as_echo_n "checking for $ac_word... " >&6; }
7404if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7405  $as_echo_n "(cached) " >&6
7406else
7407  if test -n "$ac_ct_RANLIB"; then
7408  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7409else
7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413  IFS=$as_save_IFS
7414  test -z "$as_dir" && as_dir=.
7415    for ac_exec_ext in '' $ac_executable_extensions; do
7416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417    ac_cv_prog_ac_ct_RANLIB="ranlib"
7418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419    break 2
7420  fi
7421done
7422  done
7423IFS=$as_save_IFS
7424
7425fi
7426fi
7427ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7428if test -n "$ac_ct_RANLIB"; then
7429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7430$as_echo "$ac_ct_RANLIB" >&6; }
7431else
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433$as_echo "no" >&6; }
7434fi
7435
7436  if test "x$ac_ct_RANLIB" = x; then
7437    RANLIB=":"
7438  else
7439    case $cross_compiling:$ac_tool_warned in
7440yes:)
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7443ac_tool_warned=yes ;;
7444esac
7445    RANLIB=$ac_ct_RANLIB
7446  fi
7447else
7448  RANLIB="$ac_cv_prog_RANLIB"
7449fi
7450
7451test -z "$RANLIB" && RANLIB=:
7452
7453
7454
7455
7456
7457
7458# Determine commands to create old-style static archives.
7459old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7460old_postinstall_cmds='chmod 644 $oldlib'
7461old_postuninstall_cmds=
7462
7463if test -n "$RANLIB"; then
7464  case $host_os in
7465  openbsd*)
7466    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7467    ;;
7468  *)
7469    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7470    ;;
7471  esac
7472  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7473fi
7474
7475case $host_os in
7476  darwin*)
7477    lock_old_archive_extraction=yes ;;
7478  *)
7479    lock_old_archive_extraction=no ;;
7480esac
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520# If no C compiler was specified, use CC.
7521LTCC=${LTCC-"$CC"}
7522
7523# If no C compiler flags were specified, use CFLAGS.
7524LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7525
7526# Allow CC to be a program name with arguments.
7527compiler=$CC
7528
7529
7530# Check for command to grab the raw symbol name followed by C symbol from nm.
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7532$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7533if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7534  $as_echo_n "(cached) " >&6
7535else
7536
7537# These are sane defaults that work on at least a few old systems.
7538# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7539
7540# Character class describing NM global symbol codes.
7541symcode='[BCDEGRST]'
7542
7543# Regexp to match symbols that can be accessed directly from C.
7544sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7545
7546# Define system-specific variables.
7547case $host_os in
7548aix*)
7549  symcode='[BCDT]'
7550  ;;
7551cygwin* | mingw* | pw32* | cegcc*)
7552  symcode='[ABCDGISTW]'
7553  ;;
7554hpux*)
7555  if test "$host_cpu" = ia64; then
7556    symcode='[ABCDEGRST]'
7557  fi
7558  ;;
7559irix* | nonstopux*)
7560  symcode='[BCDEGRST]'
7561  ;;
7562osf*)
7563  symcode='[BCDEGQRST]'
7564  ;;
7565solaris*)
7566  symcode='[BDRT]'
7567  ;;
7568sco3.2v5*)
7569  symcode='[DT]'
7570  ;;
7571sysv4.2uw2*)
7572  symcode='[DT]'
7573  ;;
7574sysv5* | sco5v6* | unixware* | OpenUNIX*)
7575  symcode='[ABDT]'
7576  ;;
7577sysv4)
7578  symcode='[DFNSTU]'
7579  ;;
7580esac
7581
7582# If we're using GNU nm, then use its standard symbol codes.
7583case `$NM -V 2>&1` in
7584*GNU* | *'with BFD'*)
7585  symcode='[ABCDGIRSTW]' ;;
7586esac
7587
7588# Transform an extracted symbol line into a proper C declaration.
7589# Some systems (esp. on ia64) link data and code symbols differently,
7590# so use this general approach.
7591lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7592
7593# Transform an extracted symbol line into symbol name and symbol address
7594lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7595lt_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'"
7596
7597# Handle CRLF in mingw tool chain
7598opt_cr=
7599case $build_os in
7600mingw*)
7601  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7602  ;;
7603esac
7604
7605# Try without a prefix underscore, then with it.
7606for ac_symprfx in "" "_"; do
7607
7608  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7609  symxfrm="\\1 $ac_symprfx\\2 \\2"
7610
7611  # Write the raw and C identifiers.
7612  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7613    # Fake it for dumpbin and say T for any non-static function
7614    # and D for any global variable.
7615    # Also find C++ and __fastcall symbols from MSVC++,
7616    # which start with @ or ?.
7617    lt_cv_sys_global_symbol_pipe="$AWK '"\
7618"     {last_section=section; section=\$ 3};"\
7619"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7620"     \$ 0!~/External *\|/{next};"\
7621"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7622"     {if(hide[section]) next};"\
7623"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7624"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7625"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7626"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7627"     ' prfx=^$ac_symprfx"
7628  else
7629    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7630  fi
7631
7632  # Check to see that the pipe works correctly.
7633  pipe_works=no
7634
7635  rm -f conftest*
7636  cat > conftest.$ac_ext <<_LT_EOF
7637#ifdef __cplusplus
7638extern "C" {
7639#endif
7640char nm_test_var;
7641void nm_test_func(void);
7642void nm_test_func(void){}
7643#ifdef __cplusplus
7644}
7645#endif
7646int main(){nm_test_var='a';nm_test_func();return(0);}
7647_LT_EOF
7648
7649  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7650  (eval $ac_compile) 2>&5
7651  ac_status=$?
7652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7653  test $ac_status = 0; }; then
7654    # Now try to grab the symbols.
7655    nlist=conftest.nm
7656    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7657  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7658  ac_status=$?
7659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660  test $ac_status = 0; } && test -s "$nlist"; then
7661      # Try sorting and uniquifying the output.
7662      if sort "$nlist" | uniq > "$nlist"T; then
7663	mv -f "$nlist"T "$nlist"
7664      else
7665	rm -f "$nlist"T
7666      fi
7667
7668      # Make sure that we snagged all the symbols we need.
7669      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7670	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7671	  cat <<_LT_EOF > conftest.$ac_ext
7672#ifdef __cplusplus
7673extern "C" {
7674#endif
7675
7676_LT_EOF
7677	  # Now generate the symbol file.
7678	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7679
7680	  cat <<_LT_EOF >> conftest.$ac_ext
7681
7682/* The mapping between symbol names and symbols.  */
7683const struct {
7684  const char *name;
7685  void       *address;
7686}
7687lt__PROGRAM__LTX_preloaded_symbols[] =
7688{
7689  { "@PROGRAM@", (void *) 0 },
7690_LT_EOF
7691	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7692	  cat <<\_LT_EOF >> conftest.$ac_ext
7693  {0, (void *) 0}
7694};
7695
7696/* This works around a problem in FreeBSD linker */
7697#ifdef FREEBSD_WORKAROUND
7698static const void *lt_preloaded_setup() {
7699  return lt__PROGRAM__LTX_preloaded_symbols;
7700}
7701#endif
7702
7703#ifdef __cplusplus
7704}
7705#endif
7706_LT_EOF
7707	  # Now try linking the two files.
7708	  mv conftest.$ac_objext conftstm.$ac_objext
7709	  lt_save_LIBS="$LIBS"
7710	  lt_save_CFLAGS="$CFLAGS"
7711	  LIBS="conftstm.$ac_objext"
7712	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7713	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7714  (eval $ac_link) 2>&5
7715  ac_status=$?
7716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7718	    pipe_works=yes
7719	  fi
7720	  LIBS="$lt_save_LIBS"
7721	  CFLAGS="$lt_save_CFLAGS"
7722	else
7723	  echo "cannot find nm_test_func in $nlist" >&5
7724	fi
7725      else
7726	echo "cannot find nm_test_var in $nlist" >&5
7727      fi
7728    else
7729      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7730    fi
7731  else
7732    echo "$progname: failed program was:" >&5
7733    cat conftest.$ac_ext >&5
7734  fi
7735  rm -rf conftest* conftst*
7736
7737  # Do not use the global_symbol_pipe unless it works.
7738  if test "$pipe_works" = yes; then
7739    break
7740  else
7741    lt_cv_sys_global_symbol_pipe=
7742  fi
7743done
7744
7745fi
7746
7747if test -z "$lt_cv_sys_global_symbol_pipe"; then
7748  lt_cv_sys_global_symbol_to_cdecl=
7749fi
7750if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7752$as_echo "failed" >&6; }
7753else
7754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7755$as_echo "ok" >&6; }
7756fi
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779# Check whether --enable-libtool-lock was given.
7780if test "${enable_libtool_lock+set}" = set; then :
7781  enableval=$enable_libtool_lock;
7782fi
7783
7784test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7785
7786# Some flags need to be propagated to the compiler or linker for good
7787# libtool support.
7788case $host in
7789ia64-*-hpux*)
7790  # Find out which ABI we are using.
7791  echo 'int i;' > conftest.$ac_ext
7792  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7793  (eval $ac_compile) 2>&5
7794  ac_status=$?
7795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796  test $ac_status = 0; }; then
7797    case `/usr/bin/file conftest.$ac_objext` in
7798      *ELF-32*)
7799	HPUX_IA64_MODE="32"
7800	;;
7801      *ELF-64*)
7802	HPUX_IA64_MODE="64"
7803	;;
7804    esac
7805  fi
7806  rm -rf conftest*
7807  ;;
7808*-*-irix6*)
7809  # Find out which ABI we are using.
7810  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7811  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7812  (eval $ac_compile) 2>&5
7813  ac_status=$?
7814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815  test $ac_status = 0; }; then
7816    if test "$lt_cv_prog_gnu_ld" = yes; then
7817      case `/usr/bin/file conftest.$ac_objext` in
7818	*32-bit*)
7819	  LD="${LD-ld} -melf32bsmip"
7820	  ;;
7821	*N32*)
7822	  LD="${LD-ld} -melf32bmipn32"
7823	  ;;
7824	*64-bit*)
7825	  LD="${LD-ld} -melf64bmip"
7826	;;
7827      esac
7828    else
7829      case `/usr/bin/file conftest.$ac_objext` in
7830	*32-bit*)
7831	  LD="${LD-ld} -32"
7832	  ;;
7833	*N32*)
7834	  LD="${LD-ld} -n32"
7835	  ;;
7836	*64-bit*)
7837	  LD="${LD-ld} -64"
7838	  ;;
7839      esac
7840    fi
7841  fi
7842  rm -rf conftest*
7843  ;;
7844
7845x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7846s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7847  # Find out which ABI we are using.
7848  echo 'int i;' > conftest.$ac_ext
7849  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7850  (eval $ac_compile) 2>&5
7851  ac_status=$?
7852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853  test $ac_status = 0; }; then
7854    case `/usr/bin/file conftest.o` in
7855      *32-bit*)
7856	case $host in
7857	  x86_64-*kfreebsd*-gnu)
7858	    LD="${LD-ld} -m elf_i386_fbsd"
7859	    ;;
7860	  x86_64-*linux*)
7861	    LD="${LD-ld} -m elf_i386"
7862	    ;;
7863	  ppc64-*linux*|powerpc64-*linux*)
7864	    LD="${LD-ld} -m elf32ppclinux"
7865	    ;;
7866	  s390x-*linux*)
7867	    LD="${LD-ld} -m elf_s390"
7868	    ;;
7869	  sparc64-*linux*)
7870	    LD="${LD-ld} -m elf32_sparc"
7871	    ;;
7872	esac
7873	;;
7874      *64-bit*)
7875	case $host in
7876	  x86_64-*kfreebsd*-gnu)
7877	    LD="${LD-ld} -m elf_x86_64_fbsd"
7878	    ;;
7879	  x86_64-*linux*)
7880	    LD="${LD-ld} -m elf_x86_64"
7881	    ;;
7882	  ppc*-*linux*|powerpc*-*linux*)
7883	    LD="${LD-ld} -m elf64ppc"
7884	    ;;
7885	  s390*-*linux*|s390*-*tpf*)
7886	    LD="${LD-ld} -m elf64_s390"
7887	    ;;
7888	  sparc*-*linux*)
7889	    LD="${LD-ld} -m elf64_sparc"
7890	    ;;
7891	esac
7892	;;
7893    esac
7894  fi
7895  rm -rf conftest*
7896  ;;
7897
7898*-*-sco3.2v5*)
7899  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7900  SAVE_CFLAGS="$CFLAGS"
7901  CFLAGS="$CFLAGS -belf"
7902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7903$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7904if test "${lt_cv_cc_needs_belf+set}" = set; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  ac_ext=c
7908ac_cpp='$CPP $CPPFLAGS'
7909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912
7913     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915
7916int
7917main ()
7918{
7919
7920  ;
7921  return 0;
7922}
7923_ACEOF
7924if ac_fn_c_try_link "$LINENO"; then :
7925  lt_cv_cc_needs_belf=yes
7926else
7927  lt_cv_cc_needs_belf=no
7928fi
7929rm -f core conftest.err conftest.$ac_objext \
7930    conftest$ac_exeext conftest.$ac_ext
7931     ac_ext=c
7932ac_cpp='$CPP $CPPFLAGS'
7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937fi
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7939$as_echo "$lt_cv_cc_needs_belf" >&6; }
7940  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7941    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7942    CFLAGS="$SAVE_CFLAGS"
7943  fi
7944  ;;
7945sparc*-*solaris*)
7946  # Find out which ABI we are using.
7947  echo 'int i;' > conftest.$ac_ext
7948  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7949  (eval $ac_compile) 2>&5
7950  ac_status=$?
7951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952  test $ac_status = 0; }; then
7953    case `/usr/bin/file conftest.o` in
7954    *64-bit*)
7955      case $lt_cv_prog_gnu_ld in
7956      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7957      *)
7958	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7959	  LD="${LD-ld} -64"
7960	fi
7961	;;
7962      esac
7963      ;;
7964    esac
7965  fi
7966  rm -rf conftest*
7967  ;;
7968esac
7969
7970need_locks="$enable_libtool_lock"
7971
7972
7973  case $host_os in
7974    rhapsody* | darwin*)
7975    if test -n "$ac_tool_prefix"; then
7976  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7977set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979$as_echo_n "checking for $ac_word... " >&6; }
7980if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7981  $as_echo_n "(cached) " >&6
7982else
7983  if test -n "$DSYMUTIL"; then
7984  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7985else
7986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989  IFS=$as_save_IFS
7990  test -z "$as_dir" && as_dir=.
7991    for ac_exec_ext in '' $ac_executable_extensions; do
7992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995    break 2
7996  fi
7997done
7998  done
7999IFS=$as_save_IFS
8000
8001fi
8002fi
8003DSYMUTIL=$ac_cv_prog_DSYMUTIL
8004if test -n "$DSYMUTIL"; then
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8006$as_echo "$DSYMUTIL" >&6; }
8007else
8008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009$as_echo "no" >&6; }
8010fi
8011
8012
8013fi
8014if test -z "$ac_cv_prog_DSYMUTIL"; then
8015  ac_ct_DSYMUTIL=$DSYMUTIL
8016  # Extract the first word of "dsymutil", so it can be a program name with args.
8017set dummy dsymutil; ac_word=$2
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8021  $as_echo_n "(cached) " >&6
8022else
8023  if test -n "$ac_ct_DSYMUTIL"; then
8024  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  test -z "$as_dir" && as_dir=.
8031    for ac_exec_ext in '' $ac_executable_extensions; do
8032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035    break 2
8036  fi
8037done
8038  done
8039IFS=$as_save_IFS
8040
8041fi
8042fi
8043ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8044if test -n "$ac_ct_DSYMUTIL"; then
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8046$as_echo "$ac_ct_DSYMUTIL" >&6; }
8047else
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050fi
8051
8052  if test "x$ac_ct_DSYMUTIL" = x; then
8053    DSYMUTIL=":"
8054  else
8055    case $cross_compiling:$ac_tool_warned in
8056yes:)
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8059ac_tool_warned=yes ;;
8060esac
8061    DSYMUTIL=$ac_ct_DSYMUTIL
8062  fi
8063else
8064  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8065fi
8066
8067    if test -n "$ac_tool_prefix"; then
8068  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8069set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071$as_echo_n "checking for $ac_word... " >&6; }
8072if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  if test -n "$NMEDIT"; then
8076  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8077else
8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081  IFS=$as_save_IFS
8082  test -z "$as_dir" && as_dir=.
8083    for ac_exec_ext in '' $ac_executable_extensions; do
8084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8085    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087    break 2
8088  fi
8089done
8090  done
8091IFS=$as_save_IFS
8092
8093fi
8094fi
8095NMEDIT=$ac_cv_prog_NMEDIT
8096if test -n "$NMEDIT"; then
8097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8098$as_echo "$NMEDIT" >&6; }
8099else
8100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101$as_echo "no" >&6; }
8102fi
8103
8104
8105fi
8106if test -z "$ac_cv_prog_NMEDIT"; then
8107  ac_ct_NMEDIT=$NMEDIT
8108  # Extract the first word of "nmedit", so it can be a program name with args.
8109set dummy nmedit; ac_word=$2
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111$as_echo_n "checking for $ac_word... " >&6; }
8112if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8113  $as_echo_n "(cached) " >&6
8114else
8115  if test -n "$ac_ct_NMEDIT"; then
8116  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8117else
8118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121  IFS=$as_save_IFS
8122  test -z "$as_dir" && as_dir=.
8123    for ac_exec_ext in '' $ac_executable_extensions; do
8124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8125    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127    break 2
8128  fi
8129done
8130  done
8131IFS=$as_save_IFS
8132
8133fi
8134fi
8135ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8136if test -n "$ac_ct_NMEDIT"; then
8137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8138$as_echo "$ac_ct_NMEDIT" >&6; }
8139else
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141$as_echo "no" >&6; }
8142fi
8143
8144  if test "x$ac_ct_NMEDIT" = x; then
8145    NMEDIT=":"
8146  else
8147    case $cross_compiling:$ac_tool_warned in
8148yes:)
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8151ac_tool_warned=yes ;;
8152esac
8153    NMEDIT=$ac_ct_NMEDIT
8154  fi
8155else
8156  NMEDIT="$ac_cv_prog_NMEDIT"
8157fi
8158
8159    if test -n "$ac_tool_prefix"; then
8160  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8161set dummy ${ac_tool_prefix}lipo; ac_word=$2
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163$as_echo_n "checking for $ac_word... " >&6; }
8164if test "${ac_cv_prog_LIPO+set}" = set; then :
8165  $as_echo_n "(cached) " >&6
8166else
8167  if test -n "$LIPO"; then
8168  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8169else
8170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171for as_dir in $PATH
8172do
8173  IFS=$as_save_IFS
8174  test -z "$as_dir" && as_dir=.
8175    for ac_exec_ext in '' $ac_executable_extensions; do
8176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179    break 2
8180  fi
8181done
8182  done
8183IFS=$as_save_IFS
8184
8185fi
8186fi
8187LIPO=$ac_cv_prog_LIPO
8188if test -n "$LIPO"; then
8189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8190$as_echo "$LIPO" >&6; }
8191else
8192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193$as_echo "no" >&6; }
8194fi
8195
8196
8197fi
8198if test -z "$ac_cv_prog_LIPO"; then
8199  ac_ct_LIPO=$LIPO
8200  # Extract the first word of "lipo", so it can be a program name with args.
8201set dummy lipo; ac_word=$2
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203$as_echo_n "checking for $ac_word... " >&6; }
8204if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  if test -n "$ac_ct_LIPO"; then
8208  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8209else
8210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213  IFS=$as_save_IFS
8214  test -z "$as_dir" && as_dir=.
8215    for ac_exec_ext in '' $ac_executable_extensions; do
8216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217    ac_cv_prog_ac_ct_LIPO="lipo"
8218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219    break 2
8220  fi
8221done
8222  done
8223IFS=$as_save_IFS
8224
8225fi
8226fi
8227ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8228if test -n "$ac_ct_LIPO"; then
8229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8230$as_echo "$ac_ct_LIPO" >&6; }
8231else
8232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233$as_echo "no" >&6; }
8234fi
8235
8236  if test "x$ac_ct_LIPO" = x; then
8237    LIPO=":"
8238  else
8239    case $cross_compiling:$ac_tool_warned in
8240yes:)
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8243ac_tool_warned=yes ;;
8244esac
8245    LIPO=$ac_ct_LIPO
8246  fi
8247else
8248  LIPO="$ac_cv_prog_LIPO"
8249fi
8250
8251    if test -n "$ac_tool_prefix"; then
8252  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8253set dummy ${ac_tool_prefix}otool; ac_word=$2
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255$as_echo_n "checking for $ac_word... " >&6; }
8256if test "${ac_cv_prog_OTOOL+set}" = set; then :
8257  $as_echo_n "(cached) " >&6
8258else
8259  if test -n "$OTOOL"; then
8260  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265  IFS=$as_save_IFS
8266  test -z "$as_dir" && as_dir=.
8267    for ac_exec_ext in '' $ac_executable_extensions; do
8268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271    break 2
8272  fi
8273done
8274  done
8275IFS=$as_save_IFS
8276
8277fi
8278fi
8279OTOOL=$ac_cv_prog_OTOOL
8280if test -n "$OTOOL"; then
8281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8282$as_echo "$OTOOL" >&6; }
8283else
8284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285$as_echo "no" >&6; }
8286fi
8287
8288
8289fi
8290if test -z "$ac_cv_prog_OTOOL"; then
8291  ac_ct_OTOOL=$OTOOL
8292  # Extract the first word of "otool", so it can be a program name with args.
8293set dummy otool; ac_word=$2
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295$as_echo_n "checking for $ac_word... " >&6; }
8296if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  if test -n "$ac_ct_OTOOL"; then
8300  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8301else
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305  IFS=$as_save_IFS
8306  test -z "$as_dir" && as_dir=.
8307    for ac_exec_ext in '' $ac_executable_extensions; do
8308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309    ac_cv_prog_ac_ct_OTOOL="otool"
8310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311    break 2
8312  fi
8313done
8314  done
8315IFS=$as_save_IFS
8316
8317fi
8318fi
8319ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8320if test -n "$ac_ct_OTOOL"; then
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8322$as_echo "$ac_ct_OTOOL" >&6; }
8323else
8324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325$as_echo "no" >&6; }
8326fi
8327
8328  if test "x$ac_ct_OTOOL" = x; then
8329    OTOOL=":"
8330  else
8331    case $cross_compiling:$ac_tool_warned in
8332yes:)
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8335ac_tool_warned=yes ;;
8336esac
8337    OTOOL=$ac_ct_OTOOL
8338  fi
8339else
8340  OTOOL="$ac_cv_prog_OTOOL"
8341fi
8342
8343    if test -n "$ac_tool_prefix"; then
8344  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8345set dummy ${ac_tool_prefix}otool64; ac_word=$2
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347$as_echo_n "checking for $ac_word... " >&6; }
8348if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8349  $as_echo_n "(cached) " >&6
8350else
8351  if test -n "$OTOOL64"; then
8352  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8353else
8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355for as_dir in $PATH
8356do
8357  IFS=$as_save_IFS
8358  test -z "$as_dir" && as_dir=.
8359    for ac_exec_ext in '' $ac_executable_extensions; do
8360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8361    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363    break 2
8364  fi
8365done
8366  done
8367IFS=$as_save_IFS
8368
8369fi
8370fi
8371OTOOL64=$ac_cv_prog_OTOOL64
8372if test -n "$OTOOL64"; then
8373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8374$as_echo "$OTOOL64" >&6; }
8375else
8376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377$as_echo "no" >&6; }
8378fi
8379
8380
8381fi
8382if test -z "$ac_cv_prog_OTOOL64"; then
8383  ac_ct_OTOOL64=$OTOOL64
8384  # Extract the first word of "otool64", so it can be a program name with args.
8385set dummy otool64; ac_word=$2
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387$as_echo_n "checking for $ac_word... " >&6; }
8388if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  if test -n "$ac_ct_OTOOL64"; then
8392  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8393else
8394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397  IFS=$as_save_IFS
8398  test -z "$as_dir" && as_dir=.
8399    for ac_exec_ext in '' $ac_executable_extensions; do
8400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401    ac_cv_prog_ac_ct_OTOOL64="otool64"
8402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403    break 2
8404  fi
8405done
8406  done
8407IFS=$as_save_IFS
8408
8409fi
8410fi
8411ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8412if test -n "$ac_ct_OTOOL64"; then
8413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8414$as_echo "$ac_ct_OTOOL64" >&6; }
8415else
8416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417$as_echo "no" >&6; }
8418fi
8419
8420  if test "x$ac_ct_OTOOL64" = x; then
8421    OTOOL64=":"
8422  else
8423    case $cross_compiling:$ac_tool_warned in
8424yes:)
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427ac_tool_warned=yes ;;
8428esac
8429    OTOOL64=$ac_ct_OTOOL64
8430  fi
8431else
8432  OTOOL64="$ac_cv_prog_OTOOL64"
8433fi
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8462$as_echo_n "checking for -single_module linker flag... " >&6; }
8463if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8464  $as_echo_n "(cached) " >&6
8465else
8466  lt_cv_apple_cc_single_mod=no
8467      if test -z "${LT_MULTI_MODULE}"; then
8468	# By default we will add the -single_module flag. You can override
8469	# by either setting the environment variable LT_MULTI_MODULE
8470	# non-empty at configure time, or by adding -multi_module to the
8471	# link flags.
8472	rm -rf libconftest.dylib*
8473	echo "int foo(void){return 1;}" > conftest.c
8474	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8475-dynamiclib -Wl,-single_module conftest.c" >&5
8476	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8477	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8478        _lt_result=$?
8479	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8480	  lt_cv_apple_cc_single_mod=yes
8481	else
8482	  cat conftest.err >&5
8483	fi
8484	rm -rf libconftest.dylib*
8485	rm -f conftest.*
8486      fi
8487fi
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8489$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8490    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8491$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8492if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  lt_cv_ld_exported_symbols_list=no
8496      save_LDFLAGS=$LDFLAGS
8497      echo "_main" > conftest.sym
8498      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8499      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500/* end confdefs.h.  */
8501
8502int
8503main ()
8504{
8505
8506  ;
8507  return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_link "$LINENO"; then :
8511  lt_cv_ld_exported_symbols_list=yes
8512else
8513  lt_cv_ld_exported_symbols_list=no
8514fi
8515rm -f core conftest.err conftest.$ac_objext \
8516    conftest$ac_exeext conftest.$ac_ext
8517	LDFLAGS="$save_LDFLAGS"
8518
8519fi
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8521$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8523$as_echo_n "checking for -force_load linker flag... " >&6; }
8524if test "${lt_cv_ld_force_load+set}" = set; then :
8525  $as_echo_n "(cached) " >&6
8526else
8527  lt_cv_ld_force_load=no
8528      cat > conftest.c << _LT_EOF
8529int forced_loaded() { return 2;}
8530_LT_EOF
8531      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8532      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8533      echo "$AR cru libconftest.a conftest.o" >&5
8534      $AR cru libconftest.a conftest.o 2>&5
8535      echo "$RANLIB libconftest.a" >&5
8536      $RANLIB libconftest.a 2>&5
8537      cat > conftest.c << _LT_EOF
8538int main() { return 0;}
8539_LT_EOF
8540      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8541      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8542      _lt_result=$?
8543      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8544	lt_cv_ld_force_load=yes
8545      else
8546	cat conftest.err >&5
8547      fi
8548        rm -f conftest.err libconftest.a conftest conftest.c
8549        rm -rf conftest.dSYM
8550
8551fi
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8553$as_echo "$lt_cv_ld_force_load" >&6; }
8554    case $host_os in
8555    rhapsody* | darwin1.[012])
8556      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8557    darwin1.*)
8558      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8559    darwin*) # darwin 5.x on
8560      # if running on 10.5 or later, the deployment target defaults
8561      # to the OS version, if on x86, and 10.4, the deployment
8562      # target defaults to 10.4. Don't you love it?
8563      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8564	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8565	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8566	10.[012]*)
8567	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8568	10.*)
8569	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8570      esac
8571    ;;
8572  esac
8573    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8574      _lt_dar_single_mod='$single_module'
8575    fi
8576    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8577      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8578    else
8579      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8580    fi
8581    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8582      _lt_dsymutil='~$DSYMUTIL $lib || :'
8583    else
8584      _lt_dsymutil=
8585    fi
8586    ;;
8587  esac
8588
8589for ac_header in dlfcn.h
8590do :
8591  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8592"
8593if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8594  cat >>confdefs.h <<_ACEOF
8595#define HAVE_DLFCN_H 1
8596_ACEOF
8597
8598fi
8599
8600done
8601
8602
8603
8604
8605
8606# Set options
8607
8608
8609
8610        enable_dlopen=no
8611
8612
8613  enable_win32_dll=no
8614
8615
8616            # Check whether --enable-shared was given.
8617if test "${enable_shared+set}" = set; then :
8618  enableval=$enable_shared; p=${PACKAGE-default}
8619    case $enableval in
8620    yes) enable_shared=yes ;;
8621    no) enable_shared=no ;;
8622    *)
8623      enable_shared=no
8624      # Look at the argument we got.  We use all the common list separators.
8625      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8626      for pkg in $enableval; do
8627	IFS="$lt_save_ifs"
8628	if test "X$pkg" = "X$p"; then
8629	  enable_shared=yes
8630	fi
8631      done
8632      IFS="$lt_save_ifs"
8633      ;;
8634    esac
8635else
8636  enable_shared=yes
8637fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647  # Check whether --enable-static was given.
8648if test "${enable_static+set}" = set; then :
8649  enableval=$enable_static; p=${PACKAGE-default}
8650    case $enableval in
8651    yes) enable_static=yes ;;
8652    no) enable_static=no ;;
8653    *)
8654     enable_static=no
8655      # Look at the argument we got.  We use all the common list separators.
8656      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8657      for pkg in $enableval; do
8658	IFS="$lt_save_ifs"
8659	if test "X$pkg" = "X$p"; then
8660	  enable_static=yes
8661	fi
8662      done
8663      IFS="$lt_save_ifs"
8664      ;;
8665    esac
8666else
8667  enable_static=yes
8668fi
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679# Check whether --with-pic was given.
8680if test "${with_pic+set}" = set; then :
8681  withval=$with_pic; pic_mode="$withval"
8682else
8683  pic_mode=default
8684fi
8685
8686
8687test -z "$pic_mode" && pic_mode=default
8688
8689
8690
8691
8692
8693
8694
8695  # Check whether --enable-fast-install was given.
8696if test "${enable_fast_install+set}" = set; then :
8697  enableval=$enable_fast_install; p=${PACKAGE-default}
8698    case $enableval in
8699    yes) enable_fast_install=yes ;;
8700    no) enable_fast_install=no ;;
8701    *)
8702      enable_fast_install=no
8703      # Look at the argument we got.  We use all the common list separators.
8704      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8705      for pkg in $enableval; do
8706	IFS="$lt_save_ifs"
8707	if test "X$pkg" = "X$p"; then
8708	  enable_fast_install=yes
8709	fi
8710      done
8711      IFS="$lt_save_ifs"
8712      ;;
8713    esac
8714else
8715  enable_fast_install=yes
8716fi
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728# This can be used to rebuild libtool when needed
8729LIBTOOL_DEPS="$ltmain"
8730
8731# Always use our own libtool.
8732LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759test -z "$LN_S" && LN_S="ln -s"
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774if test -n "${ZSH_VERSION+set}" ; then
8775   setopt NO_GLOB_SUBST
8776fi
8777
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8779$as_echo_n "checking for objdir... " >&6; }
8780if test "${lt_cv_objdir+set}" = set; then :
8781  $as_echo_n "(cached) " >&6
8782else
8783  rm -f .libs 2>/dev/null
8784mkdir .libs 2>/dev/null
8785if test -d .libs; then
8786  lt_cv_objdir=.libs
8787else
8788  # MS-DOS does not allow filenames that begin with a dot.
8789  lt_cv_objdir=_libs
8790fi
8791rmdir .libs 2>/dev/null
8792fi
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8794$as_echo "$lt_cv_objdir" >&6; }
8795objdir=$lt_cv_objdir
8796
8797
8798
8799
8800
8801cat >>confdefs.h <<_ACEOF
8802#define LT_OBJDIR "$lt_cv_objdir/"
8803_ACEOF
8804
8805
8806
8807
8808case $host_os in
8809aix3*)
8810  # AIX sometimes has problems with the GCC collect2 program.  For some
8811  # reason, if we set the COLLECT_NAMES environment variable, the problems
8812  # vanish in a puff of smoke.
8813  if test "X${COLLECT_NAMES+set}" != Xset; then
8814    COLLECT_NAMES=
8815    export COLLECT_NAMES
8816  fi
8817  ;;
8818esac
8819
8820# Global variables:
8821ofile=libtool
8822can_build_shared=yes
8823
8824# All known linkers require a `.a' archive for static linking (except MSVC,
8825# which needs '.lib').
8826libext=a
8827
8828with_gnu_ld="$lt_cv_prog_gnu_ld"
8829
8830old_CC="$CC"
8831old_CFLAGS="$CFLAGS"
8832
8833# Set sane defaults for various variables
8834test -z "$CC" && CC=cc
8835test -z "$LTCC" && LTCC=$CC
8836test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8837test -z "$LD" && LD=ld
8838test -z "$ac_objext" && ac_objext=o
8839
8840for cc_temp in $compiler""; do
8841  case $cc_temp in
8842    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8843    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8844    \-*) ;;
8845    *) break;;
8846  esac
8847done
8848cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8849
8850
8851# Only perform the check for file, if the check method requires it
8852test -z "$MAGIC_CMD" && MAGIC_CMD=file
8853case $deplibs_check_method in
8854file_magic*)
8855  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8857$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8858if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  case $MAGIC_CMD in
8862[\\/*] |  ?:[\\/]*)
8863  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8864  ;;
8865*)
8866  lt_save_MAGIC_CMD="$MAGIC_CMD"
8867  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8868  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8869  for ac_dir in $ac_dummy; do
8870    IFS="$lt_save_ifs"
8871    test -z "$ac_dir" && ac_dir=.
8872    if test -f $ac_dir/${ac_tool_prefix}file; then
8873      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8874      if test -n "$file_magic_test_file"; then
8875	case $deplibs_check_method in
8876	"file_magic "*)
8877	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8878	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8879	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8880	    $EGREP "$file_magic_regex" > /dev/null; then
8881	    :
8882	  else
8883	    cat <<_LT_EOF 1>&2
8884
8885*** Warning: the command libtool uses to detect shared libraries,
8886*** $file_magic_cmd, produces output that libtool cannot recognize.
8887*** The result is that libtool may fail to recognize shared libraries
8888*** as such.  This will affect the creation of libtool libraries that
8889*** depend on shared libraries, but programs linked with such libtool
8890*** libraries will work regardless of this problem.  Nevertheless, you
8891*** may want to report the problem to your system manager and/or to
8892*** bug-libtool@gnu.org
8893
8894_LT_EOF
8895	  fi ;;
8896	esac
8897      fi
8898      break
8899    fi
8900  done
8901  IFS="$lt_save_ifs"
8902  MAGIC_CMD="$lt_save_MAGIC_CMD"
8903  ;;
8904esac
8905fi
8906
8907MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8908if test -n "$MAGIC_CMD"; then
8909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8910$as_echo "$MAGIC_CMD" >&6; }
8911else
8912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913$as_echo "no" >&6; }
8914fi
8915
8916
8917
8918
8919
8920if test -z "$lt_cv_path_MAGIC_CMD"; then
8921  if test -n "$ac_tool_prefix"; then
8922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8923$as_echo_n "checking for file... " >&6; }
8924if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8925  $as_echo_n "(cached) " >&6
8926else
8927  case $MAGIC_CMD in
8928[\\/*] |  ?:[\\/]*)
8929  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8930  ;;
8931*)
8932  lt_save_MAGIC_CMD="$MAGIC_CMD"
8933  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8934  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8935  for ac_dir in $ac_dummy; do
8936    IFS="$lt_save_ifs"
8937    test -z "$ac_dir" && ac_dir=.
8938    if test -f $ac_dir/file; then
8939      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8940      if test -n "$file_magic_test_file"; then
8941	case $deplibs_check_method in
8942	"file_magic "*)
8943	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8944	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8945	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8946	    $EGREP "$file_magic_regex" > /dev/null; then
8947	    :
8948	  else
8949	    cat <<_LT_EOF 1>&2
8950
8951*** Warning: the command libtool uses to detect shared libraries,
8952*** $file_magic_cmd, produces output that libtool cannot recognize.
8953*** The result is that libtool may fail to recognize shared libraries
8954*** as such.  This will affect the creation of libtool libraries that
8955*** depend on shared libraries, but programs linked with such libtool
8956*** libraries will work regardless of this problem.  Nevertheless, you
8957*** may want to report the problem to your system manager and/or to
8958*** bug-libtool@gnu.org
8959
8960_LT_EOF
8961	  fi ;;
8962	esac
8963      fi
8964      break
8965    fi
8966  done
8967  IFS="$lt_save_ifs"
8968  MAGIC_CMD="$lt_save_MAGIC_CMD"
8969  ;;
8970esac
8971fi
8972
8973MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8974if test -n "$MAGIC_CMD"; then
8975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8976$as_echo "$MAGIC_CMD" >&6; }
8977else
8978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979$as_echo "no" >&6; }
8980fi
8981
8982
8983  else
8984    MAGIC_CMD=:
8985  fi
8986fi
8987
8988  fi
8989  ;;
8990esac
8991
8992# Use C for the default configuration in the libtool script
8993
8994lt_save_CC="$CC"
8995ac_ext=c
8996ac_cpp='$CPP $CPPFLAGS'
8997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000
9001
9002# Source file extension for C test sources.
9003ac_ext=c
9004
9005# Object file extension for compiled C test sources.
9006objext=o
9007objext=$objext
9008
9009# Code to be used in simple compile tests
9010lt_simple_compile_test_code="int some_variable = 0;"
9011
9012# Code to be used in simple link tests
9013lt_simple_link_test_code='int main(){return(0);}'
9014
9015
9016
9017
9018
9019
9020
9021# If no C compiler was specified, use CC.
9022LTCC=${LTCC-"$CC"}
9023
9024# If no C compiler flags were specified, use CFLAGS.
9025LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9026
9027# Allow CC to be a program name with arguments.
9028compiler=$CC
9029
9030# Save the default compiler, since it gets overwritten when the other
9031# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9032compiler_DEFAULT=$CC
9033
9034# save warnings/boilerplate of simple test code
9035ac_outfile=conftest.$ac_objext
9036echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9037eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9038_lt_compiler_boilerplate=`cat conftest.err`
9039$RM conftest*
9040
9041ac_outfile=conftest.$ac_objext
9042echo "$lt_simple_link_test_code" >conftest.$ac_ext
9043eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9044_lt_linker_boilerplate=`cat conftest.err`
9045$RM -r conftest*
9046
9047
9048if test -n "$compiler"; then
9049
9050lt_prog_compiler_no_builtin_flag=
9051
9052if test "$GCC" = yes; then
9053  case $cc_basename in
9054  nvcc*)
9055    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9056  *)
9057    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9058  esac
9059
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9061$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9062if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9063  $as_echo_n "(cached) " >&6
9064else
9065  lt_cv_prog_compiler_rtti_exceptions=no
9066   ac_outfile=conftest.$ac_objext
9067   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9068   lt_compiler_flag="-fno-rtti -fno-exceptions"
9069   # Insert the option either (1) after the last *FLAGS variable, or
9070   # (2) before a word containing "conftest.", or (3) at the end.
9071   # Note that $ac_compile itself does not contain backslashes and begins
9072   # with a dollar sign (not a hyphen), so the echo should work correctly.
9073   # The option is referenced via a variable to avoid confusing sed.
9074   lt_compile=`echo "$ac_compile" | $SED \
9075   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9076   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9077   -e 's:$: $lt_compiler_flag:'`
9078   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9079   (eval "$lt_compile" 2>conftest.err)
9080   ac_status=$?
9081   cat conftest.err >&5
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   if (exit $ac_status) && test -s "$ac_outfile"; then
9084     # The compiler can only warn and ignore the option if not recognized
9085     # So say no if there are warnings other than the usual output.
9086     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9087     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9089       lt_cv_prog_compiler_rtti_exceptions=yes
9090     fi
9091   fi
9092   $RM conftest*
9093
9094fi
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9096$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9097
9098if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9099    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9100else
9101    :
9102fi
9103
9104fi
9105
9106
9107
9108
9109
9110
9111  lt_prog_compiler_wl=
9112lt_prog_compiler_pic=
9113lt_prog_compiler_static=
9114
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9116$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9117
9118  if test "$GCC" = yes; then
9119    lt_prog_compiler_wl='-Wl,'
9120    lt_prog_compiler_static='-static'
9121
9122    case $host_os in
9123      aix*)
9124      # All AIX code is PIC.
9125      if test "$host_cpu" = ia64; then
9126	# AIX 5 now supports IA64 processor
9127	lt_prog_compiler_static='-Bstatic'
9128      fi
9129      ;;
9130
9131    amigaos*)
9132      case $host_cpu in
9133      powerpc)
9134            # see comment about AmigaOS4 .so support
9135            lt_prog_compiler_pic='-fPIC'
9136        ;;
9137      m68k)
9138            # FIXME: we need at least 68020 code to build shared libraries, but
9139            # adding the `-m68020' flag to GCC prevents building anything better,
9140            # like `-m68040'.
9141            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9142        ;;
9143      esac
9144      ;;
9145
9146    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9147      # PIC is the default for these OSes.
9148      ;;
9149
9150    mingw* | cygwin* | pw32* | os2* | cegcc*)
9151      # This hack is so that the source file can tell whether it is being
9152      # built for inclusion in a dll (and should export symbols for example).
9153      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9154      # (--disable-auto-import) libraries
9155      lt_prog_compiler_pic='-DDLL_EXPORT'
9156      ;;
9157
9158    darwin* | rhapsody*)
9159      # PIC is the default on this platform
9160      # Common symbols not allowed in MH_DYLIB files
9161      lt_prog_compiler_pic='-fno-common'
9162      ;;
9163
9164    haiku*)
9165      # PIC is the default for Haiku.
9166      # The "-static" flag exists, but is broken.
9167      lt_prog_compiler_static=
9168      ;;
9169
9170    hpux*)
9171      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9172      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9173      # sets the default TLS model and affects inlining.
9174      case $host_cpu in
9175      hppa*64*)
9176	# +Z the default
9177	;;
9178      *)
9179	lt_prog_compiler_pic='-fPIC'
9180	;;
9181      esac
9182      ;;
9183
9184    interix[3-9]*)
9185      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9186      # Instead, we relocate shared libraries at runtime.
9187      ;;
9188
9189    msdosdjgpp*)
9190      # Just because we use GCC doesn't mean we suddenly get shared libraries
9191      # on systems that don't support them.
9192      lt_prog_compiler_can_build_shared=no
9193      enable_shared=no
9194      ;;
9195
9196    *nto* | *qnx*)
9197      # QNX uses GNU C++, but need to define -shared option too, otherwise
9198      # it will coredump.
9199      lt_prog_compiler_pic='-fPIC -shared'
9200      ;;
9201
9202    sysv4*MP*)
9203      if test -d /usr/nec; then
9204	lt_prog_compiler_pic=-Kconform_pic
9205      fi
9206      ;;
9207
9208    *)
9209      lt_prog_compiler_pic='-fPIC'
9210      ;;
9211    esac
9212
9213    case $cc_basename in
9214    nvcc*) # Cuda Compiler Driver 2.2
9215      lt_prog_compiler_wl='-Xlinker '
9216      lt_prog_compiler_pic='-Xcompiler -fPIC'
9217      ;;
9218    esac
9219  else
9220    # PORTME Check for flag to pass linker flags through the system compiler.
9221    case $host_os in
9222    aix*)
9223      lt_prog_compiler_wl='-Wl,'
9224      if test "$host_cpu" = ia64; then
9225	# AIX 5 now supports IA64 processor
9226	lt_prog_compiler_static='-Bstatic'
9227      else
9228	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9229      fi
9230      ;;
9231
9232    mingw* | cygwin* | pw32* | os2* | cegcc*)
9233      # This hack is so that the source file can tell whether it is being
9234      # built for inclusion in a dll (and should export symbols for example).
9235      lt_prog_compiler_pic='-DDLL_EXPORT'
9236      ;;
9237
9238    hpux9* | hpux10* | hpux11*)
9239      lt_prog_compiler_wl='-Wl,'
9240      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9241      # not for PA HP-UX.
9242      case $host_cpu in
9243      hppa*64*|ia64*)
9244	# +Z the default
9245	;;
9246      *)
9247	lt_prog_compiler_pic='+Z'
9248	;;
9249      esac
9250      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9251      lt_prog_compiler_static='${wl}-a ${wl}archive'
9252      ;;
9253
9254    irix5* | irix6* | nonstopux*)
9255      lt_prog_compiler_wl='-Wl,'
9256      # PIC (with -KPIC) is the default.
9257      lt_prog_compiler_static='-non_shared'
9258      ;;
9259
9260    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9261      case $cc_basename in
9262      # old Intel for x86_64 which still supported -KPIC.
9263      ecc*)
9264	lt_prog_compiler_wl='-Wl,'
9265	lt_prog_compiler_pic='-KPIC'
9266	lt_prog_compiler_static='-static'
9267        ;;
9268      # icc used to be incompatible with GCC.
9269      # ICC 10 doesn't accept -KPIC any more.
9270      icc* | ifort*)
9271	lt_prog_compiler_wl='-Wl,'
9272	lt_prog_compiler_pic='-fPIC'
9273	lt_prog_compiler_static='-static'
9274        ;;
9275      # Lahey Fortran 8.1.
9276      lf95*)
9277	lt_prog_compiler_wl='-Wl,'
9278	lt_prog_compiler_pic='--shared'
9279	lt_prog_compiler_static='--static'
9280	;;
9281      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9282        # Portland Group compilers (*not* the Pentium gcc compiler,
9283	# which looks to be a dead project)
9284	lt_prog_compiler_wl='-Wl,'
9285	lt_prog_compiler_pic='-fpic'
9286	lt_prog_compiler_static='-Bstatic'
9287        ;;
9288      ccc*)
9289        lt_prog_compiler_wl='-Wl,'
9290        # All Alpha code is PIC.
9291        lt_prog_compiler_static='-non_shared'
9292        ;;
9293      xl* | bgxl* | bgf* | mpixl*)
9294	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9295	lt_prog_compiler_wl='-Wl,'
9296	lt_prog_compiler_pic='-qpic'
9297	lt_prog_compiler_static='-qstaticlink'
9298	;;
9299      *)
9300	case `$CC -V 2>&1 | sed 5q` in
9301	*Sun\ F* | *Sun*Fortran*)
9302	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9303	  lt_prog_compiler_pic='-KPIC'
9304	  lt_prog_compiler_static='-Bstatic'
9305	  lt_prog_compiler_wl=''
9306	  ;;
9307	*Sun\ C*)
9308	  # Sun C 5.9
9309	  lt_prog_compiler_pic='-KPIC'
9310	  lt_prog_compiler_static='-Bstatic'
9311	  lt_prog_compiler_wl='-Wl,'
9312	  ;;
9313	esac
9314	;;
9315      esac
9316      ;;
9317
9318    newsos6)
9319      lt_prog_compiler_pic='-KPIC'
9320      lt_prog_compiler_static='-Bstatic'
9321      ;;
9322
9323    *nto* | *qnx*)
9324      # QNX uses GNU C++, but need to define -shared option too, otherwise
9325      # it will coredump.
9326      lt_prog_compiler_pic='-fPIC -shared'
9327      ;;
9328
9329    osf3* | osf4* | osf5*)
9330      lt_prog_compiler_wl='-Wl,'
9331      # All OSF/1 code is PIC.
9332      lt_prog_compiler_static='-non_shared'
9333      ;;
9334
9335    rdos*)
9336      lt_prog_compiler_static='-non_shared'
9337      ;;
9338
9339    solaris*)
9340      lt_prog_compiler_pic='-KPIC'
9341      lt_prog_compiler_static='-Bstatic'
9342      case $cc_basename in
9343      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9344	lt_prog_compiler_wl='-Qoption ld ';;
9345      *)
9346	lt_prog_compiler_wl='-Wl,';;
9347      esac
9348      ;;
9349
9350    sunos4*)
9351      lt_prog_compiler_wl='-Qoption ld '
9352      lt_prog_compiler_pic='-PIC'
9353      lt_prog_compiler_static='-Bstatic'
9354      ;;
9355
9356    sysv4 | sysv4.2uw2* | sysv4.3*)
9357      lt_prog_compiler_wl='-Wl,'
9358      lt_prog_compiler_pic='-KPIC'
9359      lt_prog_compiler_static='-Bstatic'
9360      ;;
9361
9362    sysv4*MP*)
9363      if test -d /usr/nec ;then
9364	lt_prog_compiler_pic='-Kconform_pic'
9365	lt_prog_compiler_static='-Bstatic'
9366      fi
9367      ;;
9368
9369    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9370      lt_prog_compiler_wl='-Wl,'
9371      lt_prog_compiler_pic='-KPIC'
9372      lt_prog_compiler_static='-Bstatic'
9373      ;;
9374
9375    unicos*)
9376      lt_prog_compiler_wl='-Wl,'
9377      lt_prog_compiler_can_build_shared=no
9378      ;;
9379
9380    uts4*)
9381      lt_prog_compiler_pic='-pic'
9382      lt_prog_compiler_static='-Bstatic'
9383      ;;
9384
9385    *)
9386      lt_prog_compiler_can_build_shared=no
9387      ;;
9388    esac
9389  fi
9390
9391case $host_os in
9392  # For platforms which do not support PIC, -DPIC is meaningless:
9393  *djgpp*)
9394    lt_prog_compiler_pic=
9395    ;;
9396  *)
9397    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9398    ;;
9399esac
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9401$as_echo "$lt_prog_compiler_pic" >&6; }
9402
9403
9404
9405
9406
9407
9408#
9409# Check to make sure the PIC flag actually works.
9410#
9411if test -n "$lt_prog_compiler_pic"; then
9412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9413$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9414if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9415  $as_echo_n "(cached) " >&6
9416else
9417  lt_cv_prog_compiler_pic_works=no
9418   ac_outfile=conftest.$ac_objext
9419   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9420   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9421   # Insert the option either (1) after the last *FLAGS variable, or
9422   # (2) before a word containing "conftest.", or (3) at the end.
9423   # Note that $ac_compile itself does not contain backslashes and begins
9424   # with a dollar sign (not a hyphen), so the echo should work correctly.
9425   # The option is referenced via a variable to avoid confusing sed.
9426   lt_compile=`echo "$ac_compile" | $SED \
9427   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9428   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9429   -e 's:$: $lt_compiler_flag:'`
9430   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9431   (eval "$lt_compile" 2>conftest.err)
9432   ac_status=$?
9433   cat conftest.err >&5
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   if (exit $ac_status) && test -s "$ac_outfile"; then
9436     # The compiler can only warn and ignore the option if not recognized
9437     # So say no if there are warnings other than the usual output.
9438     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9439     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9440     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9441       lt_cv_prog_compiler_pic_works=yes
9442     fi
9443   fi
9444   $RM conftest*
9445
9446fi
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9448$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9449
9450if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9451    case $lt_prog_compiler_pic in
9452     "" | " "*) ;;
9453     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9454     esac
9455else
9456    lt_prog_compiler_pic=
9457     lt_prog_compiler_can_build_shared=no
9458fi
9459
9460fi
9461
9462
9463
9464
9465
9466
9467#
9468# Check to make sure the static flag actually works.
9469#
9470wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9472$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9473if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9474  $as_echo_n "(cached) " >&6
9475else
9476  lt_cv_prog_compiler_static_works=no
9477   save_LDFLAGS="$LDFLAGS"
9478   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9479   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9480   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9481     # The linker can only warn and ignore the option if not recognized
9482     # So say no if there are warnings
9483     if test -s conftest.err; then
9484       # Append any errors to the config.log.
9485       cat conftest.err 1>&5
9486       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9487       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9488       if diff conftest.exp conftest.er2 >/dev/null; then
9489         lt_cv_prog_compiler_static_works=yes
9490       fi
9491     else
9492       lt_cv_prog_compiler_static_works=yes
9493     fi
9494   fi
9495   $RM -r conftest*
9496   LDFLAGS="$save_LDFLAGS"
9497
9498fi
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9500$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9501
9502if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9503    :
9504else
9505    lt_prog_compiler_static=
9506fi
9507
9508
9509
9510
9511
9512
9513
9514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9515$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9516if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9517  $as_echo_n "(cached) " >&6
9518else
9519  lt_cv_prog_compiler_c_o=no
9520   $RM -r conftest 2>/dev/null
9521   mkdir conftest
9522   cd conftest
9523   mkdir out
9524   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9525
9526   lt_compiler_flag="-o out/conftest2.$ac_objext"
9527   # Insert the option either (1) after the last *FLAGS variable, or
9528   # (2) before a word containing "conftest.", or (3) at the end.
9529   # Note that $ac_compile itself does not contain backslashes and begins
9530   # with a dollar sign (not a hyphen), so the echo should work correctly.
9531   lt_compile=`echo "$ac_compile" | $SED \
9532   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9533   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9534   -e 's:$: $lt_compiler_flag:'`
9535   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9536   (eval "$lt_compile" 2>out/conftest.err)
9537   ac_status=$?
9538   cat out/conftest.err >&5
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9541   then
9542     # The compiler can only warn and ignore the option if not recognized
9543     # So say no if there are warnings
9544     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9545     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9546     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9547       lt_cv_prog_compiler_c_o=yes
9548     fi
9549   fi
9550   chmod u+w . 2>&5
9551   $RM conftest*
9552   # SGI C++ compiler will create directory out/ii_files/ for
9553   # template instantiation
9554   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9555   $RM out/* && rmdir out
9556   cd ..
9557   $RM -r conftest
9558   $RM conftest*
9559
9560fi
9561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9562$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9563
9564
9565
9566
9567
9568
9569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9570$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9571if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9572  $as_echo_n "(cached) " >&6
9573else
9574  lt_cv_prog_compiler_c_o=no
9575   $RM -r conftest 2>/dev/null
9576   mkdir conftest
9577   cd conftest
9578   mkdir out
9579   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9580
9581   lt_compiler_flag="-o out/conftest2.$ac_objext"
9582   # Insert the option either (1) after the last *FLAGS variable, or
9583   # (2) before a word containing "conftest.", or (3) at the end.
9584   # Note that $ac_compile itself does not contain backslashes and begins
9585   # with a dollar sign (not a hyphen), so the echo should work correctly.
9586   lt_compile=`echo "$ac_compile" | $SED \
9587   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9588   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9589   -e 's:$: $lt_compiler_flag:'`
9590   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9591   (eval "$lt_compile" 2>out/conftest.err)
9592   ac_status=$?
9593   cat out/conftest.err >&5
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9596   then
9597     # The compiler can only warn and ignore the option if not recognized
9598     # So say no if there are warnings
9599     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9600     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9601     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9602       lt_cv_prog_compiler_c_o=yes
9603     fi
9604   fi
9605   chmod u+w . 2>&5
9606   $RM conftest*
9607   # SGI C++ compiler will create directory out/ii_files/ for
9608   # template instantiation
9609   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9610   $RM out/* && rmdir out
9611   cd ..
9612   $RM -r conftest
9613   $RM conftest*
9614
9615fi
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9617$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9618
9619
9620
9621
9622hard_links="nottested"
9623if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9624  # do not overwrite the value of need_locks provided by the user
9625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9626$as_echo_n "checking if we can lock with hard links... " >&6; }
9627  hard_links=yes
9628  $RM conftest*
9629  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9630  touch conftest.a
9631  ln conftest.a conftest.b 2>&5 || hard_links=no
9632  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9634$as_echo "$hard_links" >&6; }
9635  if test "$hard_links" = no; then
9636    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9637$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9638    need_locks=warn
9639  fi
9640else
9641  need_locks=no
9642fi
9643
9644
9645
9646
9647
9648
9649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9650$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9651
9652  runpath_var=
9653  allow_undefined_flag=
9654  always_export_symbols=no
9655  archive_cmds=
9656  archive_expsym_cmds=
9657  compiler_needs_object=no
9658  enable_shared_with_static_runtimes=no
9659  export_dynamic_flag_spec=
9660  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9661  hardcode_automatic=no
9662  hardcode_direct=no
9663  hardcode_direct_absolute=no
9664  hardcode_libdir_flag_spec=
9665  hardcode_libdir_flag_spec_ld=
9666  hardcode_libdir_separator=
9667  hardcode_minus_L=no
9668  hardcode_shlibpath_var=unsupported
9669  inherit_rpath=no
9670  link_all_deplibs=unknown
9671  module_cmds=
9672  module_expsym_cmds=
9673  old_archive_from_new_cmds=
9674  old_archive_from_expsyms_cmds=
9675  thread_safe_flag_spec=
9676  whole_archive_flag_spec=
9677  # include_expsyms should be a list of space-separated symbols to be *always*
9678  # included in the symbol list
9679  include_expsyms=
9680  # exclude_expsyms can be an extended regexp of symbols to exclude
9681  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9682  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9683  # as well as any symbol that contains `d'.
9684  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9685  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9686  # platforms (ab)use it in PIC code, but their linkers get confused if
9687  # the symbol is explicitly referenced.  Since portable code cannot
9688  # rely on this symbol name, it's probably fine to never include it in
9689  # preloaded symbol tables.
9690  # Exclude shared library initialization/finalization symbols.
9691  extract_expsyms_cmds=
9692
9693  case $host_os in
9694  cygwin* | mingw* | pw32* | cegcc*)
9695    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9696    # When not using gcc, we currently assume that we are using
9697    # Microsoft Visual C++.
9698    if test "$GCC" != yes; then
9699      with_gnu_ld=no
9700    fi
9701    ;;
9702  interix*)
9703    # we just hope/assume this is gcc and not c89 (= MSVC++)
9704    with_gnu_ld=yes
9705    ;;
9706  openbsd*)
9707    with_gnu_ld=no
9708    ;;
9709  esac
9710
9711  ld_shlibs=yes
9712
9713  # On some targets, GNU ld is compatible enough with the native linker
9714  # that we're better off using the native interface for both.
9715  lt_use_gnu_ld_interface=no
9716  if test "$with_gnu_ld" = yes; then
9717    case $host_os in
9718      aix*)
9719	# The AIX port of GNU ld has always aspired to compatibility
9720	# with the native linker.  However, as the warning in the GNU ld
9721	# block says, versions before 2.19.5* couldn't really create working
9722	# shared libraries, regardless of the interface used.
9723	case `$LD -v 2>&1` in
9724	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9725	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9726	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9727	  *)
9728	    lt_use_gnu_ld_interface=yes
9729	    ;;
9730	esac
9731	;;
9732      *)
9733	lt_use_gnu_ld_interface=yes
9734	;;
9735    esac
9736  fi
9737
9738  if test "$lt_use_gnu_ld_interface" = yes; then
9739    # If archive_cmds runs LD, not CC, wlarc should be empty
9740    wlarc='${wl}'
9741
9742    # Set some defaults for GNU ld with shared library support. These
9743    # are reset later if shared libraries are not supported. Putting them
9744    # here allows them to be overridden if necessary.
9745    runpath_var=LD_RUN_PATH
9746    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9747    export_dynamic_flag_spec='${wl}--export-dynamic'
9748    # ancient GNU ld didn't support --whole-archive et. al.
9749    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9750      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9751    else
9752      whole_archive_flag_spec=
9753    fi
9754    supports_anon_versioning=no
9755    case `$LD -v 2>&1` in
9756      *GNU\ gold*) supports_anon_versioning=yes ;;
9757      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9758      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9759      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9760      *\ 2.11.*) ;; # other 2.11 versions
9761      *) supports_anon_versioning=yes ;;
9762    esac
9763
9764    # See if GNU ld supports shared libraries.
9765    case $host_os in
9766    aix[3-9]*)
9767      # On AIX/PPC, the GNU linker is very broken
9768      if test "$host_cpu" != ia64; then
9769	ld_shlibs=no
9770	cat <<_LT_EOF 1>&2
9771
9772*** Warning: the GNU linker, at least up to release 2.19, is reported
9773*** to be unable to reliably create shared libraries on AIX.
9774*** Therefore, libtool is disabling shared libraries support.  If you
9775*** really care for shared libraries, you may want to install binutils
9776*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9777*** You will then need to restart the configuration process.
9778
9779_LT_EOF
9780      fi
9781      ;;
9782
9783    amigaos*)
9784      case $host_cpu in
9785      powerpc)
9786            # see comment about AmigaOS4 .so support
9787            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9788            archive_expsym_cmds=''
9789        ;;
9790      m68k)
9791            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)'
9792            hardcode_libdir_flag_spec='-L$libdir'
9793            hardcode_minus_L=yes
9794        ;;
9795      esac
9796      ;;
9797
9798    beos*)
9799      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800	allow_undefined_flag=unsupported
9801	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9802	# support --undefined.  This deserves some investigation.  FIXME
9803	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9804      else
9805	ld_shlibs=no
9806      fi
9807      ;;
9808
9809    cygwin* | mingw* | pw32* | cegcc*)
9810      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9811      # as there is no search path for DLLs.
9812      hardcode_libdir_flag_spec='-L$libdir'
9813      export_dynamic_flag_spec='${wl}--export-all-symbols'
9814      allow_undefined_flag=unsupported
9815      always_export_symbols=no
9816      enable_shared_with_static_runtimes=yes
9817      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9818
9819      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9820        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9821	# If the export-symbols file already is a .def file (1st line
9822	# is EXPORTS), use it as is; otherwise, prepend...
9823	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9824	  cp $export_symbols $output_objdir/$soname.def;
9825	else
9826	  echo EXPORTS > $output_objdir/$soname.def;
9827	  cat $export_symbols >> $output_objdir/$soname.def;
9828	fi~
9829	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9830      else
9831	ld_shlibs=no
9832      fi
9833      ;;
9834
9835    haiku*)
9836      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837      link_all_deplibs=yes
9838      ;;
9839
9840    interix[3-9]*)
9841      hardcode_direct=no
9842      hardcode_shlibpath_var=no
9843      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9844      export_dynamic_flag_spec='${wl}-E'
9845      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9846      # Instead, shared libraries are loaded at an image base (0x10000000 by
9847      # default) and relocated if they conflict, which is a slow very memory
9848      # consuming and fragmenting process.  To avoid this, we pick a random,
9849      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9850      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9851      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9852      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'
9853      ;;
9854
9855    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9856      tmp_diet=no
9857      if test "$host_os" = linux-dietlibc; then
9858	case $cc_basename in
9859	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9860	esac
9861      fi
9862      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9863	 && test "$tmp_diet" = no
9864      then
9865	tmp_addflag=
9866	tmp_sharedflag='-shared'
9867	case $cc_basename,$host_cpu in
9868        pgcc*)				# Portland Group C compiler
9869	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9870	  tmp_addflag=' $pic_flag'
9871	  ;;
9872	pgf77* | pgf90* | pgf95* | pgfortran*)
9873					# Portland Group f77 and f90 compilers
9874	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9875	  tmp_addflag=' $pic_flag -Mnomain' ;;
9876	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9877	  tmp_addflag=' -i_dynamic' ;;
9878	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9879	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9880	ifc* | ifort*)			# Intel Fortran compiler
9881	  tmp_addflag=' -nofor_main' ;;
9882	lf95*)				# Lahey Fortran 8.1
9883	  whole_archive_flag_spec=
9884	  tmp_sharedflag='--shared' ;;
9885	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9886	  tmp_sharedflag='-qmkshrobj'
9887	  tmp_addflag= ;;
9888	nvcc*)	# Cuda Compiler Driver 2.2
9889	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9890	  compiler_needs_object=yes
9891	  ;;
9892	esac
9893	case `$CC -V 2>&1 | sed 5q` in
9894	*Sun\ C*)			# Sun C 5.9
9895	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9896	  compiler_needs_object=yes
9897	  tmp_sharedflag='-G' ;;
9898	*Sun\ F*)			# Sun Fortran 8.3
9899	  tmp_sharedflag='-G' ;;
9900	esac
9901	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9902
9903        if test "x$supports_anon_versioning" = xyes; then
9904          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9905	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9906	    echo "local: *; };" >> $output_objdir/$libname.ver~
9907	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9908        fi
9909
9910	case $cc_basename in
9911	xlf* | bgf* | bgxlf* | mpixlf*)
9912	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9913	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9914	  hardcode_libdir_flag_spec=
9915	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9916	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9917	  if test "x$supports_anon_versioning" = xyes; then
9918	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9919	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9920	      echo "local: *; };" >> $output_objdir/$libname.ver~
9921	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9922	  fi
9923	  ;;
9924	esac
9925      else
9926        ld_shlibs=no
9927      fi
9928      ;;
9929
9930    netbsd*)
9931      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9932	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9933	wlarc=
9934      else
9935	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9936	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9937      fi
9938      ;;
9939
9940    solaris*)
9941      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9942	ld_shlibs=no
9943	cat <<_LT_EOF 1>&2
9944
9945*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9946*** create shared libraries on Solaris systems.  Therefore, libtool
9947*** is disabling shared libraries support.  We urge you to upgrade GNU
9948*** binutils to release 2.9.1 or newer.  Another option is to modify
9949*** your PATH or compiler configuration so that the native linker is
9950*** used, and then restart.
9951
9952_LT_EOF
9953      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9954	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9955	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9956      else
9957	ld_shlibs=no
9958      fi
9959      ;;
9960
9961    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9962      case `$LD -v 2>&1` in
9963        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9964	ld_shlibs=no
9965	cat <<_LT_EOF 1>&2
9966
9967*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9968*** reliably create shared libraries on SCO systems.  Therefore, libtool
9969*** is disabling shared libraries support.  We urge you to upgrade GNU
9970*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9971*** your PATH or compiler configuration so that the native linker is
9972*** used, and then restart.
9973
9974_LT_EOF
9975	;;
9976	*)
9977	  # For security reasons, it is highly recommended that you always
9978	  # use absolute paths for naming shared libraries, and exclude the
9979	  # DT_RUNPATH tag from executables and libraries.  But doing so
9980	  # requires that you compile everything twice, which is a pain.
9981	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9982	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9983	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9984	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9985	  else
9986	    ld_shlibs=no
9987	  fi
9988	;;
9989      esac
9990      ;;
9991
9992    sunos4*)
9993      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9994      wlarc=
9995      hardcode_direct=yes
9996      hardcode_shlibpath_var=no
9997      ;;
9998
9999    *)
10000      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10001	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10003      else
10004	ld_shlibs=no
10005      fi
10006      ;;
10007    esac
10008
10009    if test "$ld_shlibs" = no; then
10010      runpath_var=
10011      hardcode_libdir_flag_spec=
10012      export_dynamic_flag_spec=
10013      whole_archive_flag_spec=
10014    fi
10015  else
10016    # PORTME fill in a description of your system's linker (not GNU ld)
10017    case $host_os in
10018    aix3*)
10019      allow_undefined_flag=unsupported
10020      always_export_symbols=yes
10021      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'
10022      # Note: this linker hardcodes the directories in LIBPATH if there
10023      # are no directories specified by -L.
10024      hardcode_minus_L=yes
10025      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10026	# Neither direct hardcoding nor static linking is supported with a
10027	# broken collect2.
10028	hardcode_direct=unsupported
10029      fi
10030      ;;
10031
10032    aix[4-9]*)
10033      if test "$host_cpu" = ia64; then
10034	# On IA64, the linker does run time linking by default, so we don't
10035	# have to do anything special.
10036	aix_use_runtimelinking=no
10037	exp_sym_flag='-Bexport'
10038	no_entry_flag=""
10039      else
10040	# If we're using GNU nm, then we don't want the "-C" option.
10041	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10042	# Also, AIX nm treats weak defined symbols like other global
10043	# defined symbols, whereas GNU nm marks them as "W".
10044	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10045	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10046	else
10047	  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'
10048	fi
10049	aix_use_runtimelinking=no
10050
10051	# Test if we are trying to use run time linking or normal
10052	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10053	# need to do runtime linking.
10054	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10055	  for ld_flag in $LDFLAGS; do
10056	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10057	    aix_use_runtimelinking=yes
10058	    break
10059	  fi
10060	  done
10061	  ;;
10062	esac
10063
10064	exp_sym_flag='-bexport'
10065	no_entry_flag='-bnoentry'
10066      fi
10067
10068      # When large executables or shared objects are built, AIX ld can
10069      # have problems creating the table of contents.  If linking a library
10070      # or program results in "error TOC overflow" add -mminimal-toc to
10071      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10072      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10073
10074      archive_cmds=''
10075      hardcode_direct=yes
10076      hardcode_direct_absolute=yes
10077      hardcode_libdir_separator=':'
10078      link_all_deplibs=yes
10079      file_list_spec='${wl}-f,'
10080
10081      if test "$GCC" = yes; then
10082	case $host_os in aix4.[012]|aix4.[012].*)
10083	# We only want to do this on AIX 4.2 and lower, the check
10084	# below for broken collect2 doesn't work under 4.3+
10085	  collect2name=`${CC} -print-prog-name=collect2`
10086	  if test -f "$collect2name" &&
10087	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10088	  then
10089	  # We have reworked collect2
10090	  :
10091	  else
10092	  # We have old collect2
10093	  hardcode_direct=unsupported
10094	  # It fails to find uninstalled libraries when the uninstalled
10095	  # path is not listed in the libpath.  Setting hardcode_minus_L
10096	  # to unsupported forces relinking
10097	  hardcode_minus_L=yes
10098	  hardcode_libdir_flag_spec='-L$libdir'
10099	  hardcode_libdir_separator=
10100	  fi
10101	  ;;
10102	esac
10103	shared_flag='-shared'
10104	if test "$aix_use_runtimelinking" = yes; then
10105	  shared_flag="$shared_flag "'${wl}-G'
10106	fi
10107      else
10108	# not using gcc
10109	if test "$host_cpu" = ia64; then
10110	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10111	# chokes on -Wl,-G. The following line is correct:
10112	  shared_flag='-G'
10113	else
10114	  if test "$aix_use_runtimelinking" = yes; then
10115	    shared_flag='${wl}-G'
10116	  else
10117	    shared_flag='${wl}-bM:SRE'
10118	  fi
10119	fi
10120      fi
10121
10122      export_dynamic_flag_spec='${wl}-bexpall'
10123      # It seems that -bexpall does not export symbols beginning with
10124      # underscore (_), so it is better to generate a list of symbols to export.
10125      always_export_symbols=yes
10126      if test "$aix_use_runtimelinking" = yes; then
10127	# Warning - without using the other runtime loading flags (-brtl),
10128	# -berok will link without error, but may produce a broken library.
10129	allow_undefined_flag='-berok'
10130        # Determine the default libpath from the value encoded in an
10131        # empty executable.
10132        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133/* end confdefs.h.  */
10134
10135int
10136main ()
10137{
10138
10139  ;
10140  return 0;
10141}
10142_ACEOF
10143if ac_fn_c_try_link "$LINENO"; then :
10144
10145lt_aix_libpath_sed='
10146    /Import File Strings/,/^$/ {
10147	/^0/ {
10148	    s/^0  *\(.*\)$/\1/
10149	    p
10150	}
10151    }'
10152aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10153# Check for a 64-bit object if we didn't find anything.
10154if test -z "$aix_libpath"; then
10155  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10156fi
10157fi
10158rm -f core conftest.err conftest.$ac_objext \
10159    conftest$ac_exeext conftest.$ac_ext
10160if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10161
10162        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10163        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10164      else
10165	if test "$host_cpu" = ia64; then
10166	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10167	  allow_undefined_flag="-z nodefs"
10168	  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"
10169	else
10170	 # Determine the default libpath from the value encoded in an
10171	 # empty executable.
10172	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173/* end confdefs.h.  */
10174
10175int
10176main ()
10177{
10178
10179  ;
10180  return 0;
10181}
10182_ACEOF
10183if ac_fn_c_try_link "$LINENO"; then :
10184
10185lt_aix_libpath_sed='
10186    /Import File Strings/,/^$/ {
10187	/^0/ {
10188	    s/^0  *\(.*\)$/\1/
10189	    p
10190	}
10191    }'
10192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10193# Check for a 64-bit object if we didn't find anything.
10194if test -z "$aix_libpath"; then
10195  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10196fi
10197fi
10198rm -f core conftest.err conftest.$ac_objext \
10199    conftest$ac_exeext conftest.$ac_ext
10200if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10201
10202	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10203	  # Warning - without using the other run time loading flags,
10204	  # -berok will link without error, but may produce a broken library.
10205	  no_undefined_flag=' ${wl}-bernotok'
10206	  allow_undefined_flag=' ${wl}-berok'
10207	  if test "$with_gnu_ld" = yes; then
10208	    # We only use this code for GNU lds that support --whole-archive.
10209	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10210	  else
10211	    # Exported symbols can be pulled into shared objects from archives
10212	    whole_archive_flag_spec='$convenience'
10213	  fi
10214	  archive_cmds_need_lc=yes
10215	  # This is similar to how AIX traditionally builds its shared libraries.
10216	  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'
10217	fi
10218      fi
10219      ;;
10220
10221    amigaos*)
10222      case $host_cpu in
10223      powerpc)
10224            # see comment about AmigaOS4 .so support
10225            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10226            archive_expsym_cmds=''
10227        ;;
10228      m68k)
10229            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)'
10230            hardcode_libdir_flag_spec='-L$libdir'
10231            hardcode_minus_L=yes
10232        ;;
10233      esac
10234      ;;
10235
10236    bsdi[45]*)
10237      export_dynamic_flag_spec=-rdynamic
10238      ;;
10239
10240    cygwin* | mingw* | pw32* | cegcc*)
10241      # When not using gcc, we currently assume that we are using
10242      # Microsoft Visual C++.
10243      # hardcode_libdir_flag_spec is actually meaningless, as there is
10244      # no search path for DLLs.
10245      hardcode_libdir_flag_spec=' '
10246      allow_undefined_flag=unsupported
10247      # Tell ltmain to make .lib files, not .a files.
10248      libext=lib
10249      # Tell ltmain to make .dll files, not .so files.
10250      shrext_cmds=".dll"
10251      # FIXME: Setting linknames here is a bad hack.
10252      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10253      # The linker will automatically build a .lib file if we build a DLL.
10254      old_archive_from_new_cmds='true'
10255      # FIXME: Should let the user specify the lib program.
10256      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10257      fix_srcfile_path='`cygpath -w "$srcfile"`'
10258      enable_shared_with_static_runtimes=yes
10259      ;;
10260
10261    darwin* | rhapsody*)
10262
10263
10264  archive_cmds_need_lc=no
10265  hardcode_direct=no
10266  hardcode_automatic=yes
10267  hardcode_shlibpath_var=unsupported
10268  if test "$lt_cv_ld_force_load" = "yes"; then
10269    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10270  else
10271    whole_archive_flag_spec=''
10272  fi
10273  link_all_deplibs=yes
10274  allow_undefined_flag="$_lt_dar_allow_undefined"
10275  case $cc_basename in
10276     ifort*) _lt_dar_can_shared=yes ;;
10277     *) _lt_dar_can_shared=$GCC ;;
10278  esac
10279  if test "$_lt_dar_can_shared" = "yes"; then
10280    output_verbose_link_cmd=func_echo_all
10281    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10282    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10283    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}"
10284    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}"
10285
10286  else
10287  ld_shlibs=no
10288  fi
10289
10290      ;;
10291
10292    dgux*)
10293      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294      hardcode_libdir_flag_spec='-L$libdir'
10295      hardcode_shlibpath_var=no
10296      ;;
10297
10298    freebsd1*)
10299      ld_shlibs=no
10300      ;;
10301
10302    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10303    # support.  Future versions do this automatically, but an explicit c++rt0.o
10304    # does not break anything, and helps significantly (at the cost of a little
10305    # extra space).
10306    freebsd2.2*)
10307      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10308      hardcode_libdir_flag_spec='-R$libdir'
10309      hardcode_direct=yes
10310      hardcode_shlibpath_var=no
10311      ;;
10312
10313    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10314    freebsd2*)
10315      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10316      hardcode_direct=yes
10317      hardcode_minus_L=yes
10318      hardcode_shlibpath_var=no
10319      ;;
10320
10321    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10322    freebsd* | dragonfly*)
10323      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10324      hardcode_libdir_flag_spec='-R$libdir'
10325      hardcode_direct=yes
10326      hardcode_shlibpath_var=no
10327      ;;
10328
10329    hpux9*)
10330      if test "$GCC" = yes; then
10331	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'
10332      else
10333	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'
10334      fi
10335      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10336      hardcode_libdir_separator=:
10337      hardcode_direct=yes
10338
10339      # hardcode_minus_L: Not really in the search PATH,
10340      # but as the default location of the library.
10341      hardcode_minus_L=yes
10342      export_dynamic_flag_spec='${wl}-E'
10343      ;;
10344
10345    hpux10*)
10346      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10347	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10348      else
10349	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10350      fi
10351      if test "$with_gnu_ld" = no; then
10352	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10353	hardcode_libdir_flag_spec_ld='+b $libdir'
10354	hardcode_libdir_separator=:
10355	hardcode_direct=yes
10356	hardcode_direct_absolute=yes
10357	export_dynamic_flag_spec='${wl}-E'
10358	# hardcode_minus_L: Not really in the search PATH,
10359	# but as the default location of the library.
10360	hardcode_minus_L=yes
10361      fi
10362      ;;
10363
10364    hpux11*)
10365      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10366	case $host_cpu in
10367	hppa*64*)
10368	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10369	  ;;
10370	ia64*)
10371	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10372	  ;;
10373	*)
10374	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10375	  ;;
10376	esac
10377      else
10378	case $host_cpu in
10379	hppa*64*)
10380	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10381	  ;;
10382	ia64*)
10383	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10384	  ;;
10385	*)
10386
10387	  # Older versions of the 11.00 compiler do not understand -b yet
10388	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10389	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10390$as_echo_n "checking if $CC understands -b... " >&6; }
10391if test "${lt_cv_prog_compiler__b+set}" = set; then :
10392  $as_echo_n "(cached) " >&6
10393else
10394  lt_cv_prog_compiler__b=no
10395   save_LDFLAGS="$LDFLAGS"
10396   LDFLAGS="$LDFLAGS -b"
10397   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10398   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10399     # The linker can only warn and ignore the option if not recognized
10400     # So say no if there are warnings
10401     if test -s conftest.err; then
10402       # Append any errors to the config.log.
10403       cat conftest.err 1>&5
10404       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10405       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10406       if diff conftest.exp conftest.er2 >/dev/null; then
10407         lt_cv_prog_compiler__b=yes
10408       fi
10409     else
10410       lt_cv_prog_compiler__b=yes
10411     fi
10412   fi
10413   $RM -r conftest*
10414   LDFLAGS="$save_LDFLAGS"
10415
10416fi
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10418$as_echo "$lt_cv_prog_compiler__b" >&6; }
10419
10420if test x"$lt_cv_prog_compiler__b" = xyes; then
10421    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10422else
10423    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10424fi
10425
10426	  ;;
10427	esac
10428      fi
10429      if test "$with_gnu_ld" = no; then
10430	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10431	hardcode_libdir_separator=:
10432
10433	case $host_cpu in
10434	hppa*64*|ia64*)
10435	  hardcode_direct=no
10436	  hardcode_shlibpath_var=no
10437	  ;;
10438	*)
10439	  hardcode_direct=yes
10440	  hardcode_direct_absolute=yes
10441	  export_dynamic_flag_spec='${wl}-E'
10442
10443	  # hardcode_minus_L: Not really in the search PATH,
10444	  # but as the default location of the library.
10445	  hardcode_minus_L=yes
10446	  ;;
10447	esac
10448      fi
10449      ;;
10450
10451    irix5* | irix6* | nonstopux*)
10452      if test "$GCC" = yes; then
10453	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10454	# Try to use the -exported_symbol ld option, if it does not
10455	# work, assume that -exports_file does not work either and
10456	# implicitly export all symbols.
10457        save_LDFLAGS="$LDFLAGS"
10458        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10459        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460/* end confdefs.h.  */
10461int foo(void) {}
10462_ACEOF
10463if ac_fn_c_try_link "$LINENO"; then :
10464  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10465
10466fi
10467rm -f core conftest.err conftest.$ac_objext \
10468    conftest$ac_exeext conftest.$ac_ext
10469        LDFLAGS="$save_LDFLAGS"
10470      else
10471	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10472	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10473      fi
10474      archive_cmds_need_lc='no'
10475      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10476      hardcode_libdir_separator=:
10477      inherit_rpath=yes
10478      link_all_deplibs=yes
10479      ;;
10480
10481    netbsd*)
10482      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10483	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10484      else
10485	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10486      fi
10487      hardcode_libdir_flag_spec='-R$libdir'
10488      hardcode_direct=yes
10489      hardcode_shlibpath_var=no
10490      ;;
10491
10492    newsos6)
10493      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10494      hardcode_direct=yes
10495      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10496      hardcode_libdir_separator=:
10497      hardcode_shlibpath_var=no
10498      ;;
10499
10500    *nto* | *qnx*)
10501      ;;
10502
10503    openbsd*)
10504      if test -f /usr/libexec/ld.so; then
10505	hardcode_direct=yes
10506	hardcode_shlibpath_var=no
10507	hardcode_direct_absolute=yes
10508	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10509	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10510	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10511	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10512	  export_dynamic_flag_spec='${wl}-E'
10513	else
10514	  case $host_os in
10515	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10516	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10517	     hardcode_libdir_flag_spec='-R$libdir'
10518	     ;;
10519	   *)
10520	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10522	     ;;
10523	  esac
10524	fi
10525      else
10526	ld_shlibs=no
10527      fi
10528      ;;
10529
10530    os2*)
10531      hardcode_libdir_flag_spec='-L$libdir'
10532      hardcode_minus_L=yes
10533      allow_undefined_flag=unsupported
10534      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'
10535      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10536      ;;
10537
10538    osf3*)
10539      if test "$GCC" = yes; then
10540	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10541	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10542      else
10543	allow_undefined_flag=' -expect_unresolved \*'
10544	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10545      fi
10546      archive_cmds_need_lc='no'
10547      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10548      hardcode_libdir_separator=:
10549      ;;
10550
10551    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10552      if test "$GCC" = yes; then
10553	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10554	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10555	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10556      else
10557	allow_undefined_flag=' -expect_unresolved \*'
10558	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10559	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~
10560	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10561
10562	# Both c and cxx compiler support -rpath directly
10563	hardcode_libdir_flag_spec='-rpath $libdir'
10564      fi
10565      archive_cmds_need_lc='no'
10566      hardcode_libdir_separator=:
10567      ;;
10568
10569    solaris*)
10570      no_undefined_flag=' -z defs'
10571      if test "$GCC" = yes; then
10572	wlarc='${wl}'
10573	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10574	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10575	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10576      else
10577	case `$CC -V 2>&1` in
10578	*"Compilers 5.0"*)
10579	  wlarc=''
10580	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10582	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10583	  ;;
10584	*)
10585	  wlarc='${wl}'
10586	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10587	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10588	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10589	  ;;
10590	esac
10591      fi
10592      hardcode_libdir_flag_spec='-R$libdir'
10593      hardcode_shlibpath_var=no
10594      case $host_os in
10595      solaris2.[0-5] | solaris2.[0-5].*) ;;
10596      *)
10597	# The compiler driver will combine and reorder linker options,
10598	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10599	# but is careful enough not to reorder.
10600	# Supported since Solaris 2.6 (maybe 2.5.1?)
10601	if test "$GCC" = yes; then
10602	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10603	else
10604	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10605	fi
10606	;;
10607      esac
10608      link_all_deplibs=yes
10609      ;;
10610
10611    sunos4*)
10612      if test "x$host_vendor" = xsequent; then
10613	# Use $CC to link under sequent, because it throws in some extra .o
10614	# files that make .init and .fini sections work.
10615	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10616      else
10617	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10618      fi
10619      hardcode_libdir_flag_spec='-L$libdir'
10620      hardcode_direct=yes
10621      hardcode_minus_L=yes
10622      hardcode_shlibpath_var=no
10623      ;;
10624
10625    sysv4)
10626      case $host_vendor in
10627	sni)
10628	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10629	  hardcode_direct=yes # is this really true???
10630	;;
10631	siemens)
10632	  ## LD is ld it makes a PLAMLIB
10633	  ## CC just makes a GrossModule.
10634	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10635	  reload_cmds='$CC -r -o $output$reload_objs'
10636	  hardcode_direct=no
10637        ;;
10638	motorola)
10639	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10641	;;
10642      esac
10643      runpath_var='LD_RUN_PATH'
10644      hardcode_shlibpath_var=no
10645      ;;
10646
10647    sysv4.3*)
10648      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10649      hardcode_shlibpath_var=no
10650      export_dynamic_flag_spec='-Bexport'
10651      ;;
10652
10653    sysv4*MP*)
10654      if test -d /usr/nec; then
10655	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10656	hardcode_shlibpath_var=no
10657	runpath_var=LD_RUN_PATH
10658	hardcode_runpath_var=yes
10659	ld_shlibs=yes
10660      fi
10661      ;;
10662
10663    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10664      no_undefined_flag='${wl}-z,text'
10665      archive_cmds_need_lc=no
10666      hardcode_shlibpath_var=no
10667      runpath_var='LD_RUN_PATH'
10668
10669      if test "$GCC" = yes; then
10670	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672      else
10673	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675      fi
10676      ;;
10677
10678    sysv5* | sco3.2v5* | sco5v6*)
10679      # Note: We can NOT use -z defs as we might desire, because we do not
10680      # link with -lc, and that would cause any symbols used from libc to
10681      # always be unresolved, which means just about no library would
10682      # ever link correctly.  If we're not using GNU ld we use -z text
10683      # though, which does catch some bad symbols but isn't as heavy-handed
10684      # as -z defs.
10685      no_undefined_flag='${wl}-z,text'
10686      allow_undefined_flag='${wl}-z,nodefs'
10687      archive_cmds_need_lc=no
10688      hardcode_shlibpath_var=no
10689      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10690      hardcode_libdir_separator=':'
10691      link_all_deplibs=yes
10692      export_dynamic_flag_spec='${wl}-Bexport'
10693      runpath_var='LD_RUN_PATH'
10694
10695      if test "$GCC" = yes; then
10696	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698      else
10699	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10700	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10701      fi
10702      ;;
10703
10704    uts4*)
10705      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10706      hardcode_libdir_flag_spec='-L$libdir'
10707      hardcode_shlibpath_var=no
10708      ;;
10709
10710    *)
10711      ld_shlibs=no
10712      ;;
10713    esac
10714
10715    if test x$host_vendor = xsni; then
10716      case $host in
10717      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10718	export_dynamic_flag_spec='${wl}-Blargedynsym'
10719	;;
10720      esac
10721    fi
10722  fi
10723
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10725$as_echo "$ld_shlibs" >&6; }
10726test "$ld_shlibs" = no && can_build_shared=no
10727
10728with_gnu_ld=$with_gnu_ld
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744#
10745# Do we need to explicitly link libc?
10746#
10747case "x$archive_cmds_need_lc" in
10748x|xyes)
10749  # Assume -lc should be added
10750  archive_cmds_need_lc=yes
10751
10752  if test "$enable_shared" = yes && test "$GCC" = yes; then
10753    case $archive_cmds in
10754    *'~'*)
10755      # FIXME: we may have to deal with multi-command sequences.
10756      ;;
10757    '$CC '*)
10758      # Test whether the compiler implicitly links with -lc since on some
10759      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10760      # to ld, don't add -lc before -lgcc.
10761      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10762$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10763if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10764  $as_echo_n "(cached) " >&6
10765else
10766  $RM conftest*
10767	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10768
10769	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10770  (eval $ac_compile) 2>&5
10771  ac_status=$?
10772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10773  test $ac_status = 0; } 2>conftest.err; then
10774	  soname=conftest
10775	  lib=conftest
10776	  libobjs=conftest.$ac_objext
10777	  deplibs=
10778	  wl=$lt_prog_compiler_wl
10779	  pic_flag=$lt_prog_compiler_pic
10780	  compiler_flags=-v
10781	  linker_flags=-v
10782	  verstring=
10783	  output_objdir=.
10784	  libname=conftest
10785	  lt_save_allow_undefined_flag=$allow_undefined_flag
10786	  allow_undefined_flag=
10787	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10788  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10789  ac_status=$?
10790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10791  test $ac_status = 0; }
10792	  then
10793	    lt_cv_archive_cmds_need_lc=no
10794	  else
10795	    lt_cv_archive_cmds_need_lc=yes
10796	  fi
10797	  allow_undefined_flag=$lt_save_allow_undefined_flag
10798	else
10799	  cat conftest.err 1>&5
10800	fi
10801	$RM conftest*
10802
10803fi
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10805$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10806      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10807      ;;
10808    esac
10809  fi
10810  ;;
10811esac
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10970$as_echo_n "checking dynamic linker characteristics... " >&6; }
10971
10972if test "$GCC" = yes; then
10973  case $host_os in
10974    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10975    *) lt_awk_arg="/^libraries:/" ;;
10976  esac
10977  case $host_os in
10978    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10979    *) lt_sed_strip_eq="s,=/,/,g" ;;
10980  esac
10981  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10982  case $lt_search_path_spec in
10983  *\;*)
10984    # if the path contains ";" then we assume it to be the separator
10985    # otherwise default to the standard path separator (i.e. ":") - it is
10986    # assumed that no part of a normal pathname contains ";" but that should
10987    # okay in the real world where ";" in dirpaths is itself problematic.
10988    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10989    ;;
10990  *)
10991    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10992    ;;
10993  esac
10994  # Ok, now we have the path, separated by spaces, we can step through it
10995  # and add multilib dir if necessary.
10996  lt_tmp_lt_search_path_spec=
10997  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10998  for lt_sys_path in $lt_search_path_spec; do
10999    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11000      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11001    else
11002      test -d "$lt_sys_path" && \
11003	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11004    fi
11005  done
11006  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11007BEGIN {RS=" "; FS="/|\n";} {
11008  lt_foo="";
11009  lt_count=0;
11010  for (lt_i = NF; lt_i > 0; lt_i--) {
11011    if ($lt_i != "" && $lt_i != ".") {
11012      if ($lt_i == "..") {
11013        lt_count++;
11014      } else {
11015        if (lt_count == 0) {
11016          lt_foo="/" $lt_i lt_foo;
11017        } else {
11018          lt_count--;
11019        }
11020      }
11021    }
11022  }
11023  if (lt_foo != "") { lt_freq[lt_foo]++; }
11024  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11025}'`
11026  # AWK program above erroneously prepends '/' to C:/dos/paths
11027  # for these hosts.
11028  case $host_os in
11029    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11030      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11031  esac
11032  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11033else
11034  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11035fi
11036library_names_spec=
11037libname_spec='lib$name'
11038soname_spec=
11039shrext_cmds=".so"
11040postinstall_cmds=
11041postuninstall_cmds=
11042finish_cmds=
11043finish_eval=
11044shlibpath_var=
11045shlibpath_overrides_runpath=unknown
11046version_type=none
11047dynamic_linker="$host_os ld.so"
11048sys_lib_dlsearch_path_spec="/lib /usr/lib"
11049need_lib_prefix=unknown
11050hardcode_into_libs=no
11051
11052# when you set need_version to no, make sure it does not cause -set_version
11053# flags to be left without arguments
11054need_version=unknown
11055
11056case $host_os in
11057aix3*)
11058  version_type=linux
11059  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11060  shlibpath_var=LIBPATH
11061
11062  # AIX 3 has no versioning support, so we append a major version to the name.
11063  soname_spec='${libname}${release}${shared_ext}$major'
11064  ;;
11065
11066aix[4-9]*)
11067  version_type=linux
11068  need_lib_prefix=no
11069  need_version=no
11070  hardcode_into_libs=yes
11071  if test "$host_cpu" = ia64; then
11072    # AIX 5 supports IA64
11073    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11074    shlibpath_var=LD_LIBRARY_PATH
11075  else
11076    # With GCC up to 2.95.x, collect2 would create an import file
11077    # for dependence libraries.  The import file would start with
11078    # the line `#! .'.  This would cause the generated library to
11079    # depend on `.', always an invalid library.  This was fixed in
11080    # development snapshots of GCC prior to 3.0.
11081    case $host_os in
11082      aix4 | aix4.[01] | aix4.[01].*)
11083      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11084	   echo ' yes '
11085	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11086	:
11087      else
11088	can_build_shared=no
11089      fi
11090      ;;
11091    esac
11092    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11093    # soname into executable. Probably we can add versioning support to
11094    # collect2, so additional links can be useful in future.
11095    if test "$aix_use_runtimelinking" = yes; then
11096      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11097      # instead of lib<name>.a to let people know that these are not
11098      # typical AIX shared libraries.
11099      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100    else
11101      # We preserve .a as extension for shared libraries through AIX4.2
11102      # and later when we are not doing run time linking.
11103      library_names_spec='${libname}${release}.a $libname.a'
11104      soname_spec='${libname}${release}${shared_ext}$major'
11105    fi
11106    shlibpath_var=LIBPATH
11107  fi
11108  ;;
11109
11110amigaos*)
11111  case $host_cpu in
11112  powerpc)
11113    # Since July 2007 AmigaOS4 officially supports .so libraries.
11114    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11115    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116    ;;
11117  m68k)
11118    library_names_spec='$libname.ixlibrary $libname.a'
11119    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11120    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11121    ;;
11122  esac
11123  ;;
11124
11125beos*)
11126  library_names_spec='${libname}${shared_ext}'
11127  dynamic_linker="$host_os ld.so"
11128  shlibpath_var=LIBRARY_PATH
11129  ;;
11130
11131bsdi[45]*)
11132  version_type=linux
11133  need_version=no
11134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135  soname_spec='${libname}${release}${shared_ext}$major'
11136  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11137  shlibpath_var=LD_LIBRARY_PATH
11138  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11139  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11140  # the default ld.so.conf also contains /usr/contrib/lib and
11141  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11142  # libtool to hard-code these into programs
11143  ;;
11144
11145cygwin* | mingw* | pw32* | cegcc*)
11146  version_type=windows
11147  shrext_cmds=".dll"
11148  need_version=no
11149  need_lib_prefix=no
11150
11151  case $GCC,$host_os in
11152  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11153    library_names_spec='$libname.dll.a'
11154    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11155    postinstall_cmds='base_file=`basename \${file}`~
11156      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11157      dldir=$destdir/`dirname \$dlpath`~
11158      test -d \$dldir || mkdir -p \$dldir~
11159      $install_prog $dir/$dlname \$dldir/$dlname~
11160      chmod a+x \$dldir/$dlname~
11161      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11162        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11163      fi'
11164    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11165      dlpath=$dir/\$dldll~
11166       $RM \$dlpath'
11167    shlibpath_overrides_runpath=yes
11168
11169    case $host_os in
11170    cygwin*)
11171      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11172      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11173
11174      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11175      ;;
11176    mingw* | cegcc*)
11177      # MinGW DLLs use traditional 'lib' prefix
11178      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11179      ;;
11180    pw32*)
11181      # pw32 DLLs use 'pw' prefix rather than 'lib'
11182      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11183      ;;
11184    esac
11185    ;;
11186
11187  *)
11188    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11189    ;;
11190  esac
11191  dynamic_linker='Win32 ld.exe'
11192  # FIXME: first we should search . and the directory the executable is in
11193  shlibpath_var=PATH
11194  ;;
11195
11196darwin* | rhapsody*)
11197  dynamic_linker="$host_os dyld"
11198  version_type=darwin
11199  need_lib_prefix=no
11200  need_version=no
11201  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11202  soname_spec='${libname}${release}${major}$shared_ext'
11203  shlibpath_overrides_runpath=yes
11204  shlibpath_var=DYLD_LIBRARY_PATH
11205  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11206
11207  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11208  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11209  ;;
11210
11211dgux*)
11212  version_type=linux
11213  need_lib_prefix=no
11214  need_version=no
11215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11216  soname_spec='${libname}${release}${shared_ext}$major'
11217  shlibpath_var=LD_LIBRARY_PATH
11218  ;;
11219
11220freebsd1*)
11221  dynamic_linker=no
11222  ;;
11223
11224freebsd* | dragonfly*)
11225  # DragonFly does not have aout.  When/if they implement a new
11226  # versioning mechanism, adjust this.
11227  if test -x /usr/bin/objformat; then
11228    objformat=`/usr/bin/objformat`
11229  else
11230    case $host_os in
11231    freebsd[123]*) objformat=aout ;;
11232    *) objformat=elf ;;
11233    esac
11234  fi
11235  version_type=freebsd-$objformat
11236  case $version_type in
11237    freebsd-elf*)
11238      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11239      need_version=no
11240      need_lib_prefix=no
11241      ;;
11242    freebsd-*)
11243      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11244      need_version=yes
11245      ;;
11246  esac
11247  shlibpath_var=LD_LIBRARY_PATH
11248  case $host_os in
11249  freebsd2*)
11250    shlibpath_overrides_runpath=yes
11251    ;;
11252  freebsd3.[01]* | freebsdelf3.[01]*)
11253    shlibpath_overrides_runpath=yes
11254    hardcode_into_libs=yes
11255    ;;
11256  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11257  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11258    shlibpath_overrides_runpath=no
11259    hardcode_into_libs=yes
11260    ;;
11261  *) # from 4.6 on, and DragonFly
11262    shlibpath_overrides_runpath=yes
11263    hardcode_into_libs=yes
11264    ;;
11265  esac
11266  ;;
11267
11268gnu*)
11269  version_type=linux
11270  need_lib_prefix=no
11271  need_version=no
11272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11273  soname_spec='${libname}${release}${shared_ext}$major'
11274  shlibpath_var=LD_LIBRARY_PATH
11275  hardcode_into_libs=yes
11276  ;;
11277
11278haiku*)
11279  version_type=linux
11280  need_lib_prefix=no
11281  need_version=no
11282  dynamic_linker="$host_os runtime_loader"
11283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11284  soname_spec='${libname}${release}${shared_ext}$major'
11285  shlibpath_var=LIBRARY_PATH
11286  shlibpath_overrides_runpath=yes
11287  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11288  hardcode_into_libs=yes
11289  ;;
11290
11291hpux9* | hpux10* | hpux11*)
11292  # Give a soname corresponding to the major version so that dld.sl refuses to
11293  # link against other versions.
11294  version_type=sunos
11295  need_lib_prefix=no
11296  need_version=no
11297  case $host_cpu in
11298  ia64*)
11299    shrext_cmds='.so'
11300    hardcode_into_libs=yes
11301    dynamic_linker="$host_os dld.so"
11302    shlibpath_var=LD_LIBRARY_PATH
11303    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11304    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305    soname_spec='${libname}${release}${shared_ext}$major'
11306    if test "X$HPUX_IA64_MODE" = X32; then
11307      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11308    else
11309      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11310    fi
11311    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11312    ;;
11313  hppa*64*)
11314    shrext_cmds='.sl'
11315    hardcode_into_libs=yes
11316    dynamic_linker="$host_os dld.sl"
11317    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11318    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11319    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320    soname_spec='${libname}${release}${shared_ext}$major'
11321    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11322    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11323    ;;
11324  *)
11325    shrext_cmds='.sl'
11326    dynamic_linker="$host_os dld.sl"
11327    shlibpath_var=SHLIB_PATH
11328    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11329    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330    soname_spec='${libname}${release}${shared_ext}$major'
11331    ;;
11332  esac
11333  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11334  postinstall_cmds='chmod 555 $lib'
11335  # or fails outright, so override atomically:
11336  install_override_mode=555
11337  ;;
11338
11339interix[3-9]*)
11340  version_type=linux
11341  need_lib_prefix=no
11342  need_version=no
11343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11344  soname_spec='${libname}${release}${shared_ext}$major'
11345  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11346  shlibpath_var=LD_LIBRARY_PATH
11347  shlibpath_overrides_runpath=no
11348  hardcode_into_libs=yes
11349  ;;
11350
11351irix5* | irix6* | nonstopux*)
11352  case $host_os in
11353    nonstopux*) version_type=nonstopux ;;
11354    *)
11355	if test "$lt_cv_prog_gnu_ld" = yes; then
11356		version_type=linux
11357	else
11358		version_type=irix
11359	fi ;;
11360  esac
11361  need_lib_prefix=no
11362  need_version=no
11363  soname_spec='${libname}${release}${shared_ext}$major'
11364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11365  case $host_os in
11366  irix5* | nonstopux*)
11367    libsuff= shlibsuff=
11368    ;;
11369  *)
11370    case $LD in # libtool.m4 will add one of these switches to LD
11371    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11372      libsuff= shlibsuff= libmagic=32-bit;;
11373    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11374      libsuff=32 shlibsuff=N32 libmagic=N32;;
11375    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11376      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11377    *) libsuff= shlibsuff= libmagic=never-match;;
11378    esac
11379    ;;
11380  esac
11381  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11382  shlibpath_overrides_runpath=no
11383  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11384  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11385  hardcode_into_libs=yes
11386  ;;
11387
11388# No shared lib support for Linux oldld, aout, or coff.
11389linux*oldld* | linux*aout* | linux*coff*)
11390  dynamic_linker=no
11391  ;;
11392
11393# This must be Linux ELF.
11394linux* | k*bsd*-gnu | kopensolaris*-gnu)
11395  version_type=linux
11396  need_lib_prefix=no
11397  need_version=no
11398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399  soname_spec='${libname}${release}${shared_ext}$major'
11400  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11401  shlibpath_var=LD_LIBRARY_PATH
11402  shlibpath_overrides_runpath=no
11403
11404  # Some binutils ld are patched to set DT_RUNPATH
11405  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11406  $as_echo_n "(cached) " >&6
11407else
11408  lt_cv_shlibpath_overrides_runpath=no
11409    save_LDFLAGS=$LDFLAGS
11410    save_libdir=$libdir
11411    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11412	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11413    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414/* end confdefs.h.  */
11415
11416int
11417main ()
11418{
11419
11420  ;
11421  return 0;
11422}
11423_ACEOF
11424if ac_fn_c_try_link "$LINENO"; then :
11425  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11426  lt_cv_shlibpath_overrides_runpath=yes
11427fi
11428fi
11429rm -f core conftest.err conftest.$ac_objext \
11430    conftest$ac_exeext conftest.$ac_ext
11431    LDFLAGS=$save_LDFLAGS
11432    libdir=$save_libdir
11433
11434fi
11435
11436  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11437
11438  # This implies no fast_install, which is unacceptable.
11439  # Some rework will be needed to allow for fast_install
11440  # before this can be enabled.
11441  hardcode_into_libs=yes
11442
11443  # Add ABI-specific directories to the system library path.
11444  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11445
11446  # Append ld.so.conf contents to the search path
11447  if test -f /etc/ld.so.conf; then
11448    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11449    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11450
11451  fi
11452
11453  # We used to test for /lib/ld.so.1 and disable shared libraries on
11454  # powerpc, because MkLinux only supported shared libraries with the
11455  # GNU dynamic linker.  Since this was broken with cross compilers,
11456  # most powerpc-linux boxes support dynamic linking these days and
11457  # people can always --disable-shared, the test was removed, and we
11458  # assume the GNU/Linux dynamic linker is in use.
11459  dynamic_linker='GNU/Linux ld.so'
11460  ;;
11461
11462netbsd*)
11463  version_type=sunos
11464  need_lib_prefix=no
11465  need_version=no
11466  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11467    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11468    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11469    dynamic_linker='NetBSD (a.out) ld.so'
11470  else
11471    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11472    soname_spec='${libname}${release}${shared_ext}$major'
11473    dynamic_linker='NetBSD ld.elf_so'
11474  fi
11475  shlibpath_var=LD_LIBRARY_PATH
11476  shlibpath_overrides_runpath=yes
11477  hardcode_into_libs=yes
11478  ;;
11479
11480newsos6)
11481  version_type=linux
11482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483  shlibpath_var=LD_LIBRARY_PATH
11484  shlibpath_overrides_runpath=yes
11485  ;;
11486
11487*nto* | *qnx*)
11488  version_type=qnx
11489  need_lib_prefix=no
11490  need_version=no
11491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492  soname_spec='${libname}${release}${shared_ext}$major'
11493  shlibpath_var=LD_LIBRARY_PATH
11494  shlibpath_overrides_runpath=no
11495  hardcode_into_libs=yes
11496  dynamic_linker='ldqnx.so'
11497  ;;
11498
11499openbsd*)
11500  version_type=sunos
11501  sys_lib_dlsearch_path_spec="/usr/lib"
11502  need_lib_prefix=no
11503  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11504  case $host_os in
11505    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11506    *)				need_version=no  ;;
11507  esac
11508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11510  shlibpath_var=LD_LIBRARY_PATH
11511  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11512    case $host_os in
11513      openbsd2.[89] | openbsd2.[89].*)
11514	shlibpath_overrides_runpath=no
11515	;;
11516      *)
11517	shlibpath_overrides_runpath=yes
11518	;;
11519      esac
11520  else
11521    shlibpath_overrides_runpath=yes
11522  fi
11523  ;;
11524
11525os2*)
11526  libname_spec='$name'
11527  shrext_cmds=".dll"
11528  need_lib_prefix=no
11529  library_names_spec='$libname${shared_ext} $libname.a'
11530  dynamic_linker='OS/2 ld.exe'
11531  shlibpath_var=LIBPATH
11532  ;;
11533
11534osf3* | osf4* | osf5*)
11535  version_type=osf
11536  need_lib_prefix=no
11537  need_version=no
11538  soname_spec='${libname}${release}${shared_ext}$major'
11539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540  shlibpath_var=LD_LIBRARY_PATH
11541  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11542  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11543  ;;
11544
11545rdos*)
11546  dynamic_linker=no
11547  ;;
11548
11549solaris*)
11550  version_type=linux
11551  need_lib_prefix=no
11552  need_version=no
11553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554  soname_spec='${libname}${release}${shared_ext}$major'
11555  shlibpath_var=LD_LIBRARY_PATH
11556  shlibpath_overrides_runpath=yes
11557  hardcode_into_libs=yes
11558  # ldd complains unless libraries are executable
11559  postinstall_cmds='chmod +x $lib'
11560  ;;
11561
11562sunos4*)
11563  version_type=sunos
11564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11565  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11566  shlibpath_var=LD_LIBRARY_PATH
11567  shlibpath_overrides_runpath=yes
11568  if test "$with_gnu_ld" = yes; then
11569    need_lib_prefix=no
11570  fi
11571  need_version=yes
11572  ;;
11573
11574sysv4 | sysv4.3*)
11575  version_type=linux
11576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577  soname_spec='${libname}${release}${shared_ext}$major'
11578  shlibpath_var=LD_LIBRARY_PATH
11579  case $host_vendor in
11580    sni)
11581      shlibpath_overrides_runpath=no
11582      need_lib_prefix=no
11583      runpath_var=LD_RUN_PATH
11584      ;;
11585    siemens)
11586      need_lib_prefix=no
11587      ;;
11588    motorola)
11589      need_lib_prefix=no
11590      need_version=no
11591      shlibpath_overrides_runpath=no
11592      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11593      ;;
11594  esac
11595  ;;
11596
11597sysv4*MP*)
11598  if test -d /usr/nec ;then
11599    version_type=linux
11600    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11601    soname_spec='$libname${shared_ext}.$major'
11602    shlibpath_var=LD_LIBRARY_PATH
11603  fi
11604  ;;
11605
11606sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11607  version_type=freebsd-elf
11608  need_lib_prefix=no
11609  need_version=no
11610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11611  soname_spec='${libname}${release}${shared_ext}$major'
11612  shlibpath_var=LD_LIBRARY_PATH
11613  shlibpath_overrides_runpath=yes
11614  hardcode_into_libs=yes
11615  if test "$with_gnu_ld" = yes; then
11616    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11617  else
11618    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11619    case $host_os in
11620      sco3.2v5*)
11621        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11622	;;
11623    esac
11624  fi
11625  sys_lib_dlsearch_path_spec='/usr/lib'
11626  ;;
11627
11628tpf*)
11629  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11630  version_type=linux
11631  need_lib_prefix=no
11632  need_version=no
11633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634  shlibpath_var=LD_LIBRARY_PATH
11635  shlibpath_overrides_runpath=no
11636  hardcode_into_libs=yes
11637  ;;
11638
11639uts4*)
11640  version_type=linux
11641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642  soname_spec='${libname}${release}${shared_ext}$major'
11643  shlibpath_var=LD_LIBRARY_PATH
11644  ;;
11645
11646*)
11647  dynamic_linker=no
11648  ;;
11649esac
11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11651$as_echo "$dynamic_linker" >&6; }
11652test "$dynamic_linker" = no && can_build_shared=no
11653
11654variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11655if test "$GCC" = yes; then
11656  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11657fi
11658
11659if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11660  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11661fi
11662if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11663  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11664fi
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11758$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11759hardcode_action=
11760if test -n "$hardcode_libdir_flag_spec" ||
11761   test -n "$runpath_var" ||
11762   test "X$hardcode_automatic" = "Xyes" ; then
11763
11764  # We can hardcode non-existent directories.
11765  if test "$hardcode_direct" != no &&
11766     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11767     # have to relink, otherwise we might link with an installed library
11768     # when we should be linking with a yet-to-be-installed one
11769     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11770     test "$hardcode_minus_L" != no; then
11771    # Linking always hardcodes the temporary library directory.
11772    hardcode_action=relink
11773  else
11774    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11775    hardcode_action=immediate
11776  fi
11777else
11778  # We cannot hardcode anything, or else we can only hardcode existing
11779  # directories.
11780  hardcode_action=unsupported
11781fi
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11783$as_echo "$hardcode_action" >&6; }
11784
11785if test "$hardcode_action" = relink ||
11786   test "$inherit_rpath" = yes; then
11787  # Fast installation is not supported
11788  enable_fast_install=no
11789elif test "$shlibpath_overrides_runpath" = yes ||
11790     test "$enable_shared" = no; then
11791  # Fast installation is not necessary
11792  enable_fast_install=needless
11793fi
11794
11795
11796
11797
11798
11799
11800  if test "x$enable_dlopen" != xyes; then
11801  enable_dlopen=unknown
11802  enable_dlopen_self=unknown
11803  enable_dlopen_self_static=unknown
11804else
11805  lt_cv_dlopen=no
11806  lt_cv_dlopen_libs=
11807
11808  case $host_os in
11809  beos*)
11810    lt_cv_dlopen="load_add_on"
11811    lt_cv_dlopen_libs=
11812    lt_cv_dlopen_self=yes
11813    ;;
11814
11815  mingw* | pw32* | cegcc*)
11816    lt_cv_dlopen="LoadLibrary"
11817    lt_cv_dlopen_libs=
11818    ;;
11819
11820  cygwin*)
11821    lt_cv_dlopen="dlopen"
11822    lt_cv_dlopen_libs=
11823    ;;
11824
11825  darwin*)
11826  # if libdl is installed we need to link against it
11827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11828$as_echo_n "checking for dlopen in -ldl... " >&6; }
11829if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11830  $as_echo_n "(cached) " >&6
11831else
11832  ac_check_lib_save_LIBS=$LIBS
11833LIBS="-ldl  $LIBS"
11834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835/* end confdefs.h.  */
11836
11837/* Override any GCC internal prototype to avoid an error.
11838   Use char because int might match the return type of a GCC
11839   builtin and then its argument prototype would still apply.  */
11840#ifdef __cplusplus
11841extern "C"
11842#endif
11843char dlopen ();
11844int
11845main ()
11846{
11847return dlopen ();
11848  ;
11849  return 0;
11850}
11851_ACEOF
11852if ac_fn_c_try_link "$LINENO"; then :
11853  ac_cv_lib_dl_dlopen=yes
11854else
11855  ac_cv_lib_dl_dlopen=no
11856fi
11857rm -f core conftest.err conftest.$ac_objext \
11858    conftest$ac_exeext conftest.$ac_ext
11859LIBS=$ac_check_lib_save_LIBS
11860fi
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11862$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11863if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11864  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11865else
11866
11867    lt_cv_dlopen="dyld"
11868    lt_cv_dlopen_libs=
11869    lt_cv_dlopen_self=yes
11870
11871fi
11872
11873    ;;
11874
11875  *)
11876    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11877if test "x$ac_cv_func_shl_load" = x""yes; then :
11878  lt_cv_dlopen="shl_load"
11879else
11880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11881$as_echo_n "checking for shl_load in -ldld... " >&6; }
11882if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11883  $as_echo_n "(cached) " >&6
11884else
11885  ac_check_lib_save_LIBS=$LIBS
11886LIBS="-ldld  $LIBS"
11887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h.  */
11889
11890/* Override any GCC internal prototype to avoid an error.
11891   Use char because int might match the return type of a GCC
11892   builtin and then its argument prototype would still apply.  */
11893#ifdef __cplusplus
11894extern "C"
11895#endif
11896char shl_load ();
11897int
11898main ()
11899{
11900return shl_load ();
11901  ;
11902  return 0;
11903}
11904_ACEOF
11905if ac_fn_c_try_link "$LINENO"; then :
11906  ac_cv_lib_dld_shl_load=yes
11907else
11908  ac_cv_lib_dld_shl_load=no
11909fi
11910rm -f core conftest.err conftest.$ac_objext \
11911    conftest$ac_exeext conftest.$ac_ext
11912LIBS=$ac_check_lib_save_LIBS
11913fi
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11915$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11916if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11917  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11918else
11919  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11920if test "x$ac_cv_func_dlopen" = x""yes; then :
11921  lt_cv_dlopen="dlopen"
11922else
11923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11924$as_echo_n "checking for dlopen in -ldl... " >&6; }
11925if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11926  $as_echo_n "(cached) " >&6
11927else
11928  ac_check_lib_save_LIBS=$LIBS
11929LIBS="-ldl  $LIBS"
11930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h.  */
11932
11933/* Override any GCC internal prototype to avoid an error.
11934   Use char because int might match the return type of a GCC
11935   builtin and then its argument prototype would still apply.  */
11936#ifdef __cplusplus
11937extern "C"
11938#endif
11939char dlopen ();
11940int
11941main ()
11942{
11943return dlopen ();
11944  ;
11945  return 0;
11946}
11947_ACEOF
11948if ac_fn_c_try_link "$LINENO"; then :
11949  ac_cv_lib_dl_dlopen=yes
11950else
11951  ac_cv_lib_dl_dlopen=no
11952fi
11953rm -f core conftest.err conftest.$ac_objext \
11954    conftest$ac_exeext conftest.$ac_ext
11955LIBS=$ac_check_lib_save_LIBS
11956fi
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11958$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11959if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11960  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11961else
11962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11963$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11964if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11965  $as_echo_n "(cached) " >&6
11966else
11967  ac_check_lib_save_LIBS=$LIBS
11968LIBS="-lsvld  $LIBS"
11969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970/* end confdefs.h.  */
11971
11972/* Override any GCC internal prototype to avoid an error.
11973   Use char because int might match the return type of a GCC
11974   builtin and then its argument prototype would still apply.  */
11975#ifdef __cplusplus
11976extern "C"
11977#endif
11978char dlopen ();
11979int
11980main ()
11981{
11982return dlopen ();
11983  ;
11984  return 0;
11985}
11986_ACEOF
11987if ac_fn_c_try_link "$LINENO"; then :
11988  ac_cv_lib_svld_dlopen=yes
11989else
11990  ac_cv_lib_svld_dlopen=no
11991fi
11992rm -f core conftest.err conftest.$ac_objext \
11993    conftest$ac_exeext conftest.$ac_ext
11994LIBS=$ac_check_lib_save_LIBS
11995fi
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11997$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11998if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11999  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12000else
12001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12002$as_echo_n "checking for dld_link in -ldld... " >&6; }
12003if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12004  $as_echo_n "(cached) " >&6
12005else
12006  ac_check_lib_save_LIBS=$LIBS
12007LIBS="-ldld  $LIBS"
12008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h.  */
12010
12011/* Override any GCC internal prototype to avoid an error.
12012   Use char because int might match the return type of a GCC
12013   builtin and then its argument prototype would still apply.  */
12014#ifdef __cplusplus
12015extern "C"
12016#endif
12017char dld_link ();
12018int
12019main ()
12020{
12021return dld_link ();
12022  ;
12023  return 0;
12024}
12025_ACEOF
12026if ac_fn_c_try_link "$LINENO"; then :
12027  ac_cv_lib_dld_dld_link=yes
12028else
12029  ac_cv_lib_dld_dld_link=no
12030fi
12031rm -f core conftest.err conftest.$ac_objext \
12032    conftest$ac_exeext conftest.$ac_ext
12033LIBS=$ac_check_lib_save_LIBS
12034fi
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12036$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12037if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12038  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12039fi
12040
12041
12042fi
12043
12044
12045fi
12046
12047
12048fi
12049
12050
12051fi
12052
12053
12054fi
12055
12056    ;;
12057  esac
12058
12059  if test "x$lt_cv_dlopen" != xno; then
12060    enable_dlopen=yes
12061  else
12062    enable_dlopen=no
12063  fi
12064
12065  case $lt_cv_dlopen in
12066  dlopen)
12067    save_CPPFLAGS="$CPPFLAGS"
12068    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12069
12070    save_LDFLAGS="$LDFLAGS"
12071    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12072
12073    save_LIBS="$LIBS"
12074    LIBS="$lt_cv_dlopen_libs $LIBS"
12075
12076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12077$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12078if test "${lt_cv_dlopen_self+set}" = set; then :
12079  $as_echo_n "(cached) " >&6
12080else
12081  	  if test "$cross_compiling" = yes; then :
12082  lt_cv_dlopen_self=cross
12083else
12084  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12085  lt_status=$lt_dlunknown
12086  cat > conftest.$ac_ext <<_LT_EOF
12087#line $LINENO "configure"
12088#include "confdefs.h"
12089
12090#if HAVE_DLFCN_H
12091#include <dlfcn.h>
12092#endif
12093
12094#include <stdio.h>
12095
12096#ifdef RTLD_GLOBAL
12097#  define LT_DLGLOBAL		RTLD_GLOBAL
12098#else
12099#  ifdef DL_GLOBAL
12100#    define LT_DLGLOBAL		DL_GLOBAL
12101#  else
12102#    define LT_DLGLOBAL		0
12103#  endif
12104#endif
12105
12106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12107   find out it does not work in some platform. */
12108#ifndef LT_DLLAZY_OR_NOW
12109#  ifdef RTLD_LAZY
12110#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12111#  else
12112#    ifdef DL_LAZY
12113#      define LT_DLLAZY_OR_NOW		DL_LAZY
12114#    else
12115#      ifdef RTLD_NOW
12116#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12117#      else
12118#        ifdef DL_NOW
12119#          define LT_DLLAZY_OR_NOW	DL_NOW
12120#        else
12121#          define LT_DLLAZY_OR_NOW	0
12122#        endif
12123#      endif
12124#    endif
12125#  endif
12126#endif
12127
12128/* When -fvisbility=hidden is used, assume the code has been annotated
12129   correspondingly for the symbols needed.  */
12130#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12131void fnord () __attribute__((visibility("default")));
12132#endif
12133
12134void fnord () { int i=42; }
12135int main ()
12136{
12137  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12138  int status = $lt_dlunknown;
12139
12140  if (self)
12141    {
12142      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12143      else
12144        {
12145	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12146          else puts (dlerror ());
12147	}
12148      /* dlclose (self); */
12149    }
12150  else
12151    puts (dlerror ());
12152
12153  return status;
12154}
12155_LT_EOF
12156  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12157  (eval $ac_link) 2>&5
12158  ac_status=$?
12159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12160  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12161    (./conftest; exit; ) >&5 2>/dev/null
12162    lt_status=$?
12163    case x$lt_status in
12164      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12165      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12166      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12167    esac
12168  else :
12169    # compilation failed
12170    lt_cv_dlopen_self=no
12171  fi
12172fi
12173rm -fr conftest*
12174
12175
12176fi
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12178$as_echo "$lt_cv_dlopen_self" >&6; }
12179
12180    if test "x$lt_cv_dlopen_self" = xyes; then
12181      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12182      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12183$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12184if test "${lt_cv_dlopen_self_static+set}" = set; then :
12185  $as_echo_n "(cached) " >&6
12186else
12187  	  if test "$cross_compiling" = yes; then :
12188  lt_cv_dlopen_self_static=cross
12189else
12190  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12191  lt_status=$lt_dlunknown
12192  cat > conftest.$ac_ext <<_LT_EOF
12193#line $LINENO "configure"
12194#include "confdefs.h"
12195
12196#if HAVE_DLFCN_H
12197#include <dlfcn.h>
12198#endif
12199
12200#include <stdio.h>
12201
12202#ifdef RTLD_GLOBAL
12203#  define LT_DLGLOBAL		RTLD_GLOBAL
12204#else
12205#  ifdef DL_GLOBAL
12206#    define LT_DLGLOBAL		DL_GLOBAL
12207#  else
12208#    define LT_DLGLOBAL		0
12209#  endif
12210#endif
12211
12212/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12213   find out it does not work in some platform. */
12214#ifndef LT_DLLAZY_OR_NOW
12215#  ifdef RTLD_LAZY
12216#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12217#  else
12218#    ifdef DL_LAZY
12219#      define LT_DLLAZY_OR_NOW		DL_LAZY
12220#    else
12221#      ifdef RTLD_NOW
12222#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12223#      else
12224#        ifdef DL_NOW
12225#          define LT_DLLAZY_OR_NOW	DL_NOW
12226#        else
12227#          define LT_DLLAZY_OR_NOW	0
12228#        endif
12229#      endif
12230#    endif
12231#  endif
12232#endif
12233
12234/* When -fvisbility=hidden is used, assume the code has been annotated
12235   correspondingly for the symbols needed.  */
12236#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12237void fnord () __attribute__((visibility("default")));
12238#endif
12239
12240void fnord () { int i=42; }
12241int main ()
12242{
12243  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12244  int status = $lt_dlunknown;
12245
12246  if (self)
12247    {
12248      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12249      else
12250        {
12251	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12252          else puts (dlerror ());
12253	}
12254      /* dlclose (self); */
12255    }
12256  else
12257    puts (dlerror ());
12258
12259  return status;
12260}
12261_LT_EOF
12262  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12263  (eval $ac_link) 2>&5
12264  ac_status=$?
12265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12267    (./conftest; exit; ) >&5 2>/dev/null
12268    lt_status=$?
12269    case x$lt_status in
12270      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12271      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12272      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12273    esac
12274  else :
12275    # compilation failed
12276    lt_cv_dlopen_self_static=no
12277  fi
12278fi
12279rm -fr conftest*
12280
12281
12282fi
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12284$as_echo "$lt_cv_dlopen_self_static" >&6; }
12285    fi
12286
12287    CPPFLAGS="$save_CPPFLAGS"
12288    LDFLAGS="$save_LDFLAGS"
12289    LIBS="$save_LIBS"
12290    ;;
12291  esac
12292
12293  case $lt_cv_dlopen_self in
12294  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12295  *) enable_dlopen_self=unknown ;;
12296  esac
12297
12298  case $lt_cv_dlopen_self_static in
12299  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12300  *) enable_dlopen_self_static=unknown ;;
12301  esac
12302fi
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320striplib=
12321old_striplib=
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12323$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12324if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12325  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12326  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12328$as_echo "yes" >&6; }
12329else
12330# FIXME - insert some real tests, host_os isn't really good enough
12331  case $host_os in
12332  darwin*)
12333    if test -n "$STRIP" ; then
12334      striplib="$STRIP -x"
12335      old_striplib="$STRIP -S"
12336      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12337$as_echo "yes" >&6; }
12338    else
12339      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340$as_echo "no" >&6; }
12341    fi
12342    ;;
12343  *)
12344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345$as_echo "no" >&6; }
12346    ;;
12347  esac
12348fi
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361  # Report which library types will actually be built
12362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12363$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12365$as_echo "$can_build_shared" >&6; }
12366
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12368$as_echo_n "checking whether to build shared libraries... " >&6; }
12369  test "$can_build_shared" = "no" && enable_shared=no
12370
12371  # On AIX, shared libraries and static libraries use the same namespace, and
12372  # are all built from PIC.
12373  case $host_os in
12374  aix3*)
12375    test "$enable_shared" = yes && enable_static=no
12376    if test -n "$RANLIB"; then
12377      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12378      postinstall_cmds='$RANLIB $lib'
12379    fi
12380    ;;
12381
12382  aix[4-9]*)
12383    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12384      test "$enable_shared" = yes && enable_static=no
12385    fi
12386    ;;
12387  esac
12388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12389$as_echo "$enable_shared" >&6; }
12390
12391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12392$as_echo_n "checking whether to build static libraries... " >&6; }
12393  # Make sure either enable_shared or enable_static is yes.
12394  test "$enable_shared" = yes || enable_static=yes
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12396$as_echo "$enable_static" >&6; }
12397
12398
12399
12400
12401fi
12402ac_ext=c
12403ac_cpp='$CPP $CPPFLAGS'
12404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12406ac_compiler_gnu=$ac_cv_c_compiler_gnu
12407
12408CC="$lt_save_CC"
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422        ac_config_commands="$ac_config_commands libtool"
12423
12424
12425
12426
12427# Only expand once:
12428
12429
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12431$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12432if test "${ac_cv_path_SED+set}" = set; then :
12433  $as_echo_n "(cached) " >&6
12434else
12435            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12436     for ac_i in 1 2 3 4 5 6 7; do
12437       ac_script="$ac_script$as_nl$ac_script"
12438     done
12439     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12440     { ac_script=; unset ac_script;}
12441     if test -z "$SED"; then
12442  ac_path_SED_found=false
12443  # Loop through the user's path and test for each of PROGNAME-LIST
12444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445for as_dir in $PATH
12446do
12447  IFS=$as_save_IFS
12448  test -z "$as_dir" && as_dir=.
12449    for ac_prog in sed gsed; do
12450    for ac_exec_ext in '' $ac_executable_extensions; do
12451      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12452      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12453# Check for GNU ac_path_SED and select it if it is found.
12454  # Check for GNU $ac_path_SED
12455case `"$ac_path_SED" --version 2>&1` in
12456*GNU*)
12457  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12458*)
12459  ac_count=0
12460  $as_echo_n 0123456789 >"conftest.in"
12461  while :
12462  do
12463    cat "conftest.in" "conftest.in" >"conftest.tmp"
12464    mv "conftest.tmp" "conftest.in"
12465    cp "conftest.in" "conftest.nl"
12466    $as_echo '' >> "conftest.nl"
12467    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12468    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12469    as_fn_arith $ac_count + 1 && ac_count=$as_val
12470    if test $ac_count -gt ${ac_path_SED_max-0}; then
12471      # Best one so far, save it but keep looking for a better one
12472      ac_cv_path_SED="$ac_path_SED"
12473      ac_path_SED_max=$ac_count
12474    fi
12475    # 10*(2^10) chars as input seems more than enough
12476    test $ac_count -gt 10 && break
12477  done
12478  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12479esac
12480
12481      $ac_path_SED_found && break 3
12482    done
12483  done
12484  done
12485IFS=$as_save_IFS
12486  if test -z "$ac_cv_path_SED"; then
12487    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12488  fi
12489else
12490  ac_cv_path_SED=$SED
12491fi
12492
12493fi
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12495$as_echo "$ac_cv_path_SED" >&6; }
12496 SED="$ac_cv_path_SED"
12497  rm -f conftest.sed
12498
12499
12500# Checks for pkg-config packages
12501
12502pkg_failed=no
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
12504$as_echo_n "checking for XI... " >&6; }
12505
12506if test -n "$XI_CFLAGS"; then
12507    pkg_cv_XI_CFLAGS="$XI_CFLAGS"
12508 elif test -n "$PKG_CONFIG"; then
12509    if test -n "$PKG_CONFIG" && \
12510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5
12511  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
12512  ac_status=$?
12513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12514  test $ac_status = 0; }; then
12515  pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
12516else
12517  pkg_failed=yes
12518fi
12519 else
12520    pkg_failed=untried
12521fi
12522if test -n "$XI_LIBS"; then
12523    pkg_cv_XI_LIBS="$XI_LIBS"
12524 elif test -n "$PKG_CONFIG"; then
12525    if test -n "$PKG_CONFIG" && \
12526    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5
12527  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
12528  ac_status=$?
12529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12530  test $ac_status = 0; }; then
12531  pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
12532else
12533  pkg_failed=yes
12534fi
12535 else
12536    pkg_failed=untried
12537fi
12538
12539
12540
12541if test $pkg_failed = yes; then
12542   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543$as_echo "no" >&6; }
12544
12545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12546        _pkg_short_errors_supported=yes
12547else
12548        _pkg_short_errors_supported=no
12549fi
12550        if test $_pkg_short_errors_supported = yes; then
12551	        XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
12552        else
12553	        XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
12554        fi
12555	# Put the nasty error message in config.log where it belongs
12556	echo "$XI_PKG_ERRORS" >&5
12557
12558	as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902) were not met:
12559
12560$XI_PKG_ERRORS
12561
12562Consider adjusting the PKG_CONFIG_PATH environment variable if you
12563installed software in a non-standard prefix.
12564
12565Alternatively, you may set the environment variables XI_CFLAGS
12566and XI_LIBS to avoid the need to call pkg-config.
12567See the pkg-config man page for more details." "$LINENO" 5
12568
12569elif test $pkg_failed = untried; then
12570     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571$as_echo "no" >&6; }
12572	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12574as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12575is in your PATH or set the PKG_CONFIG environment variable to the full
12576path to pkg-config.
12577
12578Alternatively, you may set the environment variables XI_CFLAGS
12579and XI_LIBS to avoid the need to call pkg-config.
12580See the pkg-config man page for more details.
12581
12582To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12583See \`config.log' for more details" "$LINENO" 5; }
12584
12585else
12586	XI_CFLAGS=$pkg_cv_XI_CFLAGS
12587	XI_LIBS=$pkg_cv_XI_LIBS
12588        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589$as_echo "yes" >&6; }
12590
12591fi
12592
12593# Check for xmlto and asciidoc for man page conversion
12594# (only needed by people building tarballs)
12595if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
12596	have_doctools=yes
12597else
12598	have_doctools=no
12599fi
12600 if test $have_doctools = yes; then
12601  HAVE_DOCTOOLS_TRUE=
12602  HAVE_DOCTOOLS_FALSE='#'
12603else
12604  HAVE_DOCTOOLS_TRUE='#'
12605  HAVE_DOCTOOLS_FALSE=
12606fi
12607
12608if test $have_doctools = no; then
12609	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
12610$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
12611fi
12612
12613# Determine if the source for man pages is available
12614# It may already be present (tarball) or can be generated using doctools
12615 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
12616	  test $have_doctools = yes; then
12617  INSTALL_MANPAGES_TRUE=
12618  INSTALL_MANPAGES_FALSE='#'
12619else
12620  INSTALL_MANPAGES_TRUE='#'
12621  INSTALL_MANPAGES_FALSE=
12622fi
12623
12624
12625
12626# Check whether --enable-malloc0returnsnull was given.
12627if test "${enable_malloc0returnsnull+set}" = set; then :
12628  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12629else
12630  MALLOC_ZERO_RETURNS_NULL=auto
12631fi
12632
12633
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
12635$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12636if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12637	if test "$cross_compiling" = yes; then :
12638  MALLOC_ZERO_RETURNS_NULL=yes
12639else
12640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641/* end confdefs.h.  */
12642
12643char *malloc();
12644char *realloc();
12645char *calloc();
12646main() {
12647    char *m0, *r0, *c0, *p;
12648    m0 = malloc(0);
12649    p = malloc(10);
12650    r0 = realloc(p,0);
12651    c0 = calloc(0);
12652    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12653}
12654_ACEOF
12655if ac_fn_c_try_run "$LINENO"; then :
12656  MALLOC_ZERO_RETURNS_NULL=yes
12657else
12658  MALLOC_ZERO_RETURNS_NULL=no
12659fi
12660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12661  conftest.$ac_objext conftest.beam conftest.$ac_ext
12662fi
12663
12664fi
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12666$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12667
12668if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12669	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12670	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12671	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12672else
12673	MALLOC_ZERO_CFLAGS=""
12674	XMALLOC_ZERO_CFLAGS=""
12675	XTMALLOC_ZERO_CFLAGS=""
12676fi
12677
12678
12679
12680
12681
12682
12683ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile doc/Makefile specs/Makefile xi.pc"
12684
12685cat >confcache <<\_ACEOF
12686# This file is a shell script that caches the results of configure
12687# tests run on this system so they can be shared between configure
12688# scripts and configure runs, see configure's option --config-cache.
12689# It is not useful on other systems.  If it contains results you don't
12690# want to keep, you may remove or edit it.
12691#
12692# config.status only pays attention to the cache file if you give it
12693# the --recheck option to rerun configure.
12694#
12695# `ac_cv_env_foo' variables (set or unset) will be overridden when
12696# loading this file, other *unset* `ac_cv_foo' will be assigned the
12697# following values.
12698
12699_ACEOF
12700
12701# The following way of writing the cache mishandles newlines in values,
12702# but we know of no workaround that is simple, portable, and efficient.
12703# So, we kill variables containing newlines.
12704# Ultrix sh set writes to stderr and can't be redirected directly,
12705# and sets the high bit in the cache file unless we assign to the vars.
12706(
12707  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12708    eval ac_val=\$$ac_var
12709    case $ac_val in #(
12710    *${as_nl}*)
12711      case $ac_var in #(
12712      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12713$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12714      esac
12715      case $ac_var in #(
12716      _ | IFS | as_nl) ;; #(
12717      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12718      *) { eval $ac_var=; unset $ac_var;} ;;
12719      esac ;;
12720    esac
12721  done
12722
12723  (set) 2>&1 |
12724    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12725    *${as_nl}ac_space=\ *)
12726      # `set' does not quote correctly, so add quotes: double-quote
12727      # substitution turns \\\\ into \\, and sed turns \\ into \.
12728      sed -n \
12729	"s/'/'\\\\''/g;
12730	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12731      ;; #(
12732    *)
12733      # `set' quotes correctly as required by POSIX, so do not add quotes.
12734      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12735      ;;
12736    esac |
12737    sort
12738) |
12739  sed '
12740     /^ac_cv_env_/b end
12741     t clear
12742     :clear
12743     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12744     t end
12745     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12746     :end' >>confcache
12747if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12748  if test -w "$cache_file"; then
12749    test "x$cache_file" != "x/dev/null" &&
12750      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12751$as_echo "$as_me: updating cache $cache_file" >&6;}
12752    cat confcache >$cache_file
12753  else
12754    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12755$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12756  fi
12757fi
12758rm -f confcache
12759
12760test "x$prefix" = xNONE && prefix=$ac_default_prefix
12761# Let make expand exec_prefix.
12762test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12763
12764DEFS=-DHAVE_CONFIG_H
12765
12766ac_libobjs=
12767ac_ltlibobjs=
12768U=
12769for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12770  # 1. Remove the extension, and $U if already installed.
12771  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12772  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12773  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12774  #    will be set to the directory where LIBOBJS objects are built.
12775  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12776  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12777done
12778LIBOBJS=$ac_libobjs
12779
12780LTLIBOBJS=$ac_ltlibobjs
12781
12782
12783 if test -n "$EXEEXT"; then
12784  am__EXEEXT_TRUE=
12785  am__EXEEXT_FALSE='#'
12786else
12787  am__EXEEXT_TRUE='#'
12788  am__EXEEXT_FALSE=
12789fi
12790
12791if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12792  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12793Usually this means the macro was only invoked conditionally." "$LINENO" 5
12794fi
12795if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12796  as_fn_error $? "conditional \"AMDEP\" was never defined.
12797Usually this means the macro was only invoked conditionally." "$LINENO" 5
12798fi
12799if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12800  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12801Usually this means the macro was only invoked conditionally." "$LINENO" 5
12802fi
12803if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
12804  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
12805Usually this means the macro was only invoked conditionally." "$LINENO" 5
12806fi
12807if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12808  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12809Usually this means the macro was only invoked conditionally." "$LINENO" 5
12810fi
12811if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12812  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12813Usually this means the macro was only invoked conditionally." "$LINENO" 5
12814fi
12815if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12816  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12817Usually this means the macro was only invoked conditionally." "$LINENO" 5
12818fi
12819if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12820  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12821Usually this means the macro was only invoked conditionally." "$LINENO" 5
12822fi
12823if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
12824  as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
12825Usually this means the macro was only invoked conditionally." "$LINENO" 5
12826fi
12827if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12828  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12829Usually this means the macro was only invoked conditionally." "$LINENO" 5
12830fi
12831if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
12832  as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
12833Usually this means the macro was only invoked conditionally." "$LINENO" 5
12834fi
12835if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
12836  as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
12837Usually this means the macro was only invoked conditionally." "$LINENO" 5
12838fi
12839
12840: ${CONFIG_STATUS=./config.status}
12841ac_write_fail=0
12842ac_clean_files_save=$ac_clean_files
12843ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12844{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12845$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12846as_write_fail=0
12847cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12848#! $SHELL
12849# Generated by $as_me.
12850# Run this file to recreate the current configuration.
12851# Compiler output produced by configure, useful for debugging
12852# configure, is in config.log if it exists.
12853
12854debug=false
12855ac_cs_recheck=false
12856ac_cs_silent=false
12857
12858SHELL=\${CONFIG_SHELL-$SHELL}
12859export SHELL
12860_ASEOF
12861cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12862## -------------------- ##
12863## M4sh Initialization. ##
12864## -------------------- ##
12865
12866# Be more Bourne compatible
12867DUALCASE=1; export DUALCASE # for MKS sh
12868if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12869  emulate sh
12870  NULLCMD=:
12871  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12872  # is contrary to our usage.  Disable this feature.
12873  alias -g '${1+"$@"}'='"$@"'
12874  setopt NO_GLOB_SUBST
12875else
12876  case `(set -o) 2>/dev/null` in #(
12877  *posix*) :
12878    set -o posix ;; #(
12879  *) :
12880     ;;
12881esac
12882fi
12883
12884
12885as_nl='
12886'
12887export as_nl
12888# Printing a long string crashes Solaris 7 /usr/bin/printf.
12889as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12890as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12891as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12892# Prefer a ksh shell builtin over an external printf program on Solaris,
12893# but without wasting forks for bash or zsh.
12894if test -z "$BASH_VERSION$ZSH_VERSION" \
12895    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12896  as_echo='print -r --'
12897  as_echo_n='print -rn --'
12898elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12899  as_echo='printf %s\n'
12900  as_echo_n='printf %s'
12901else
12902  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12903    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12904    as_echo_n='/usr/ucb/echo -n'
12905  else
12906    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12907    as_echo_n_body='eval
12908      arg=$1;
12909      case $arg in #(
12910      *"$as_nl"*)
12911	expr "X$arg" : "X\\(.*\\)$as_nl";
12912	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12913      esac;
12914      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12915    '
12916    export as_echo_n_body
12917    as_echo_n='sh -c $as_echo_n_body as_echo'
12918  fi
12919  export as_echo_body
12920  as_echo='sh -c $as_echo_body as_echo'
12921fi
12922
12923# The user is always right.
12924if test "${PATH_SEPARATOR+set}" != set; then
12925  PATH_SEPARATOR=:
12926  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12927    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12928      PATH_SEPARATOR=';'
12929  }
12930fi
12931
12932
12933# IFS
12934# We need space, tab and new line, in precisely that order.  Quoting is
12935# there to prevent editors from complaining about space-tab.
12936# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12937# splitting by setting IFS to empty value.)
12938IFS=" ""	$as_nl"
12939
12940# Find who we are.  Look in the path if we contain no directory separator.
12941case $0 in #((
12942  *[\\/]* ) as_myself=$0 ;;
12943  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944for as_dir in $PATH
12945do
12946  IFS=$as_save_IFS
12947  test -z "$as_dir" && as_dir=.
12948    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12949  done
12950IFS=$as_save_IFS
12951
12952     ;;
12953esac
12954# We did not find ourselves, most probably we were run as `sh COMMAND'
12955# in which case we are not to be found in the path.
12956if test "x$as_myself" = x; then
12957  as_myself=$0
12958fi
12959if test ! -f "$as_myself"; then
12960  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12961  exit 1
12962fi
12963
12964# Unset variables that we do not need and which cause bugs (e.g. in
12965# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12966# suppresses any "Segmentation fault" message there.  '((' could
12967# trigger a bug in pdksh 5.2.14.
12968for as_var in BASH_ENV ENV MAIL MAILPATH
12969do eval test x\${$as_var+set} = xset \
12970  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12971done
12972PS1='$ '
12973PS2='> '
12974PS4='+ '
12975
12976# NLS nuisances.
12977LC_ALL=C
12978export LC_ALL
12979LANGUAGE=C
12980export LANGUAGE
12981
12982# CDPATH.
12983(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12984
12985
12986# as_fn_error STATUS ERROR [LINENO LOG_FD]
12987# ----------------------------------------
12988# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12989# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12990# script with STATUS, using 1 if that was 0.
12991as_fn_error ()
12992{
12993  as_status=$1; test $as_status -eq 0 && as_status=1
12994  if test "$4"; then
12995    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12996    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12997  fi
12998  $as_echo "$as_me: error: $2" >&2
12999  as_fn_exit $as_status
13000} # as_fn_error
13001
13002
13003# as_fn_set_status STATUS
13004# -----------------------
13005# Set $? to STATUS, without forking.
13006as_fn_set_status ()
13007{
13008  return $1
13009} # as_fn_set_status
13010
13011# as_fn_exit STATUS
13012# -----------------
13013# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13014as_fn_exit ()
13015{
13016  set +e
13017  as_fn_set_status $1
13018  exit $1
13019} # as_fn_exit
13020
13021# as_fn_unset VAR
13022# ---------------
13023# Portably unset VAR.
13024as_fn_unset ()
13025{
13026  { eval $1=; unset $1;}
13027}
13028as_unset=as_fn_unset
13029# as_fn_append VAR VALUE
13030# ----------------------
13031# Append the text in VALUE to the end of the definition contained in VAR. Take
13032# advantage of any shell optimizations that allow amortized linear growth over
13033# repeated appends, instead of the typical quadratic growth present in naive
13034# implementations.
13035if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13036  eval 'as_fn_append ()
13037  {
13038    eval $1+=\$2
13039  }'
13040else
13041  as_fn_append ()
13042  {
13043    eval $1=\$$1\$2
13044  }
13045fi # as_fn_append
13046
13047# as_fn_arith ARG...
13048# ------------------
13049# Perform arithmetic evaluation on the ARGs, and store the result in the
13050# global $as_val. Take advantage of shells that can avoid forks. The arguments
13051# must be portable across $(()) and expr.
13052if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13053  eval 'as_fn_arith ()
13054  {
13055    as_val=$(( $* ))
13056  }'
13057else
13058  as_fn_arith ()
13059  {
13060    as_val=`expr "$@" || test $? -eq 1`
13061  }
13062fi # as_fn_arith
13063
13064
13065if expr a : '\(a\)' >/dev/null 2>&1 &&
13066   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13067  as_expr=expr
13068else
13069  as_expr=false
13070fi
13071
13072if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13073  as_basename=basename
13074else
13075  as_basename=false
13076fi
13077
13078if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13079  as_dirname=dirname
13080else
13081  as_dirname=false
13082fi
13083
13084as_me=`$as_basename -- "$0" ||
13085$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13086	 X"$0" : 'X\(//\)$' \| \
13087	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13088$as_echo X/"$0" |
13089    sed '/^.*\/\([^/][^/]*\)\/*$/{
13090	    s//\1/
13091	    q
13092	  }
13093	  /^X\/\(\/\/\)$/{
13094	    s//\1/
13095	    q
13096	  }
13097	  /^X\/\(\/\).*/{
13098	    s//\1/
13099	    q
13100	  }
13101	  s/.*/./; q'`
13102
13103# Avoid depending upon Character Ranges.
13104as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13105as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13106as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13107as_cr_digits='0123456789'
13108as_cr_alnum=$as_cr_Letters$as_cr_digits
13109
13110ECHO_C= ECHO_N= ECHO_T=
13111case `echo -n x` in #(((((
13112-n*)
13113  case `echo 'xy\c'` in
13114  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13115  xy)  ECHO_C='\c';;
13116  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13117       ECHO_T='	';;
13118  esac;;
13119*)
13120  ECHO_N='-n';;
13121esac
13122
13123rm -f conf$$ conf$$.exe conf$$.file
13124if test -d conf$$.dir; then
13125  rm -f conf$$.dir/conf$$.file
13126else
13127  rm -f conf$$.dir
13128  mkdir conf$$.dir 2>/dev/null
13129fi
13130if (echo >conf$$.file) 2>/dev/null; then
13131  if ln -s conf$$.file conf$$ 2>/dev/null; then
13132    as_ln_s='ln -s'
13133    # ... but there are two gotchas:
13134    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13135    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13136    # In both cases, we have to default to `cp -p'.
13137    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13138      as_ln_s='cp -p'
13139  elif ln conf$$.file conf$$ 2>/dev/null; then
13140    as_ln_s=ln
13141  else
13142    as_ln_s='cp -p'
13143  fi
13144else
13145  as_ln_s='cp -p'
13146fi
13147rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13148rmdir conf$$.dir 2>/dev/null
13149
13150
13151# as_fn_mkdir_p
13152# -------------
13153# Create "$as_dir" as a directory, including parents if necessary.
13154as_fn_mkdir_p ()
13155{
13156
13157  case $as_dir in #(
13158  -*) as_dir=./$as_dir;;
13159  esac
13160  test -d "$as_dir" || eval $as_mkdir_p || {
13161    as_dirs=
13162    while :; do
13163      case $as_dir in #(
13164      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13165      *) as_qdir=$as_dir;;
13166      esac
13167      as_dirs="'$as_qdir' $as_dirs"
13168      as_dir=`$as_dirname -- "$as_dir" ||
13169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13170	 X"$as_dir" : 'X\(//\)[^/]' \| \
13171	 X"$as_dir" : 'X\(//\)$' \| \
13172	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13173$as_echo X"$as_dir" |
13174    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13175	    s//\1/
13176	    q
13177	  }
13178	  /^X\(\/\/\)[^/].*/{
13179	    s//\1/
13180	    q
13181	  }
13182	  /^X\(\/\/\)$/{
13183	    s//\1/
13184	    q
13185	  }
13186	  /^X\(\/\).*/{
13187	    s//\1/
13188	    q
13189	  }
13190	  s/.*/./; q'`
13191      test -d "$as_dir" && break
13192    done
13193    test -z "$as_dirs" || eval "mkdir $as_dirs"
13194  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13195
13196
13197} # as_fn_mkdir_p
13198if mkdir -p . 2>/dev/null; then
13199  as_mkdir_p='mkdir -p "$as_dir"'
13200else
13201  test -d ./-p && rmdir ./-p
13202  as_mkdir_p=false
13203fi
13204
13205if test -x / >/dev/null 2>&1; then
13206  as_test_x='test -x'
13207else
13208  if ls -dL / >/dev/null 2>&1; then
13209    as_ls_L_option=L
13210  else
13211    as_ls_L_option=
13212  fi
13213  as_test_x='
13214    eval sh -c '\''
13215      if test -d "$1"; then
13216	test -d "$1/.";
13217      else
13218	case $1 in #(
13219	-*)set "./$1";;
13220	esac;
13221	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13222	???[sx]*):;;*)false;;esac;fi
13223    '\'' sh
13224  '
13225fi
13226as_executable_p=$as_test_x
13227
13228# Sed expression to map a string onto a valid CPP name.
13229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13230
13231# Sed expression to map a string onto a valid variable name.
13232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13233
13234
13235exec 6>&1
13236## ----------------------------------- ##
13237## Main body of $CONFIG_STATUS script. ##
13238## ----------------------------------- ##
13239_ASEOF
13240test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13241
13242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243# Save the log message, to keep $0 and so on meaningful, and to
13244# report actual input values of CONFIG_FILES etc. instead of their
13245# values after options handling.
13246ac_log="
13247This file was extended by libXi $as_me 1.4.1, which was
13248generated by GNU Autoconf 2.66.  Invocation command line was
13249
13250  CONFIG_FILES    = $CONFIG_FILES
13251  CONFIG_HEADERS  = $CONFIG_HEADERS
13252  CONFIG_LINKS    = $CONFIG_LINKS
13253  CONFIG_COMMANDS = $CONFIG_COMMANDS
13254  $ $0 $@
13255
13256on `(hostname || uname -n) 2>/dev/null | sed 1q`
13257"
13258
13259_ACEOF
13260
13261case $ac_config_files in *"
13262"*) set x $ac_config_files; shift; ac_config_files=$*;;
13263esac
13264
13265case $ac_config_headers in *"
13266"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13267esac
13268
13269
13270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13271# Files that config.status was made for.
13272config_files="$ac_config_files"
13273config_headers="$ac_config_headers"
13274config_commands="$ac_config_commands"
13275
13276_ACEOF
13277
13278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13279ac_cs_usage="\
13280\`$as_me' instantiates files and other configuration actions
13281from templates according to the current configuration.  Unless the files
13282and actions are specified as TAGs, all are instantiated by default.
13283
13284Usage: $0 [OPTION]... [TAG]...
13285
13286  -h, --help       print this help, then exit
13287  -V, --version    print version number and configuration settings, then exit
13288      --config     print configuration, then exit
13289  -q, --quiet, --silent
13290                   do not print progress messages
13291  -d, --debug      don't remove temporary files
13292      --recheck    update $as_me by reconfiguring in the same conditions
13293      --file=FILE[:TEMPLATE]
13294                   instantiate the configuration file FILE
13295      --header=FILE[:TEMPLATE]
13296                   instantiate the configuration header FILE
13297
13298Configuration files:
13299$config_files
13300
13301Configuration headers:
13302$config_headers
13303
13304Configuration commands:
13305$config_commands
13306
13307Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13308
13309_ACEOF
13310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13312ac_cs_version="\\
13313libXi config.status 1.4.1
13314configured by $0, generated by GNU Autoconf 2.66,
13315  with options \\"\$ac_cs_config\\"
13316
13317Copyright (C) 2010 Free Software Foundation, Inc.
13318This config.status script is free software; the Free Software Foundation
13319gives unlimited permission to copy, distribute and modify it."
13320
13321ac_pwd='$ac_pwd'
13322srcdir='$srcdir'
13323INSTALL='$INSTALL'
13324MKDIR_P='$MKDIR_P'
13325AWK='$AWK'
13326test -n "\$AWK" || AWK=awk
13327_ACEOF
13328
13329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13330# The default lists apply if the user does not specify any file.
13331ac_need_defaults=:
13332while test $# != 0
13333do
13334  case $1 in
13335  --*=*)
13336    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13337    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13338    ac_shift=:
13339    ;;
13340  *)
13341    ac_option=$1
13342    ac_optarg=$2
13343    ac_shift=shift
13344    ;;
13345  esac
13346
13347  case $ac_option in
13348  # Handling of the options.
13349  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13350    ac_cs_recheck=: ;;
13351  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13352    $as_echo "$ac_cs_version"; exit ;;
13353  --config | --confi | --conf | --con | --co | --c )
13354    $as_echo "$ac_cs_config"; exit ;;
13355  --debug | --debu | --deb | --de | --d | -d )
13356    debug=: ;;
13357  --file | --fil | --fi | --f )
13358    $ac_shift
13359    case $ac_optarg in
13360    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13361    esac
13362    as_fn_append CONFIG_FILES " '$ac_optarg'"
13363    ac_need_defaults=false;;
13364  --header | --heade | --head | --hea )
13365    $ac_shift
13366    case $ac_optarg in
13367    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13368    esac
13369    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13370    ac_need_defaults=false;;
13371  --he | --h)
13372    # Conflict between --help and --header
13373    as_fn_error $? "ambiguous option: \`$1'
13374Try \`$0 --help' for more information.";;
13375  --help | --hel | -h )
13376    $as_echo "$ac_cs_usage"; exit ;;
13377  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13378  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13379    ac_cs_silent=: ;;
13380
13381  # This is an error.
13382  -*) as_fn_error $? "unrecognized option: \`$1'
13383Try \`$0 --help' for more information." ;;
13384
13385  *) as_fn_append ac_config_targets " $1"
13386     ac_need_defaults=false ;;
13387
13388  esac
13389  shift
13390done
13391
13392ac_configure_extra_args=
13393
13394if $ac_cs_silent; then
13395  exec 6>/dev/null
13396  ac_configure_extra_args="$ac_configure_extra_args --silent"
13397fi
13398
13399_ACEOF
13400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13401if \$ac_cs_recheck; then
13402  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13403  shift
13404  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13405  CONFIG_SHELL='$SHELL'
13406  export CONFIG_SHELL
13407  exec "\$@"
13408fi
13409
13410_ACEOF
13411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13412exec 5>>config.log
13413{
13414  echo
13415  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13416## Running $as_me. ##
13417_ASBOX
13418  $as_echo "$ac_log"
13419} >&5
13420
13421_ACEOF
13422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13423#
13424# INIT-COMMANDS
13425#
13426AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13427
13428
13429# The HP-UX ksh and POSIX shell print the target directory to stdout
13430# if CDPATH is set.
13431(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13432
13433sed_quote_subst='$sed_quote_subst'
13434double_quote_subst='$double_quote_subst'
13435delay_variable_subst='$delay_variable_subst'
13436macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13437macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13438enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13439enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13440pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13441enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13442SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13443ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13444host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13445host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13446host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13447build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13448build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13449build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13450SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13451Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13452GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13453EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13454FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13455LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13456NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13457LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13458max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13459ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13460exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13461lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13462lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13463lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13464reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13465reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13466OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13467deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13468file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13469AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13470AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13471STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13472RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13473old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13474old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13475old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13476lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13477CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13478CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13479compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13480GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13481lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13482lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13483lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13484lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13485objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13486MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13487lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13488lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13489lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13490lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13491lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13492need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13493DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13494NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13495LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13496OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13497OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13498libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13499shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13500extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13501archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13502enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13503export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13504whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13505compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13506old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13507old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13508archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13509archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13510module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13511module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13512with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13513allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13514no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13515hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13516hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13517hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13518hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13519hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13520hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13521hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13522hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13523inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13524link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13525fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13526always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13527export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13528exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13529include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13530prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13531file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13532variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13533need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13534need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13535version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13536runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13537shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13538shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13539libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13540library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13541soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13542install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13543postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13544postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13545finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13546finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13547hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13548sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13549sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13550hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13551enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13552enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13553enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13554old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13555striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13556
13557LTCC='$LTCC'
13558LTCFLAGS='$LTCFLAGS'
13559compiler='$compiler_DEFAULT'
13560
13561# A function that is used when there is no print builtin or printf.
13562func_fallback_echo ()
13563{
13564  eval 'cat <<_LTECHO_EOF
13565\$1
13566_LTECHO_EOF'
13567}
13568
13569# Quote evaled strings.
13570for var in SHELL \
13571ECHO \
13572SED \
13573GREP \
13574EGREP \
13575FGREP \
13576LD \
13577NM \
13578LN_S \
13579lt_SP2NL \
13580lt_NL2SP \
13581reload_flag \
13582OBJDUMP \
13583deplibs_check_method \
13584file_magic_cmd \
13585AR \
13586AR_FLAGS \
13587STRIP \
13588RANLIB \
13589CC \
13590CFLAGS \
13591compiler \
13592lt_cv_sys_global_symbol_pipe \
13593lt_cv_sys_global_symbol_to_cdecl \
13594lt_cv_sys_global_symbol_to_c_name_address \
13595lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13596lt_prog_compiler_no_builtin_flag \
13597lt_prog_compiler_wl \
13598lt_prog_compiler_pic \
13599lt_prog_compiler_static \
13600lt_cv_prog_compiler_c_o \
13601need_locks \
13602DSYMUTIL \
13603NMEDIT \
13604LIPO \
13605OTOOL \
13606OTOOL64 \
13607shrext_cmds \
13608export_dynamic_flag_spec \
13609whole_archive_flag_spec \
13610compiler_needs_object \
13611with_gnu_ld \
13612allow_undefined_flag \
13613no_undefined_flag \
13614hardcode_libdir_flag_spec \
13615hardcode_libdir_flag_spec_ld \
13616hardcode_libdir_separator \
13617fix_srcfile_path \
13618exclude_expsyms \
13619include_expsyms \
13620file_list_spec \
13621variables_saved_for_relink \
13622libname_spec \
13623library_names_spec \
13624soname_spec \
13625install_override_mode \
13626finish_eval \
13627old_striplib \
13628striplib; do
13629    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13630    *[\\\\\\\`\\"\\\$]*)
13631      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13632      ;;
13633    *)
13634      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13635      ;;
13636    esac
13637done
13638
13639# Double-quote double-evaled strings.
13640for var in reload_cmds \
13641old_postinstall_cmds \
13642old_postuninstall_cmds \
13643old_archive_cmds \
13644extract_expsyms_cmds \
13645old_archive_from_new_cmds \
13646old_archive_from_expsyms_cmds \
13647archive_cmds \
13648archive_expsym_cmds \
13649module_cmds \
13650module_expsym_cmds \
13651export_symbols_cmds \
13652prelink_cmds \
13653postinstall_cmds \
13654postuninstall_cmds \
13655finish_cmds \
13656sys_lib_search_path_spec \
13657sys_lib_dlsearch_path_spec; do
13658    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13659    *[\\\\\\\`\\"\\\$]*)
13660      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13661      ;;
13662    *)
13663      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13664      ;;
13665    esac
13666done
13667
13668ac_aux_dir='$ac_aux_dir'
13669xsi_shell='$xsi_shell'
13670lt_shell_append='$lt_shell_append'
13671
13672# See if we are running on zsh, and set the options which allow our
13673# commands through without removal of \ escapes INIT.
13674if test -n "\${ZSH_VERSION+set}" ; then
13675   setopt NO_GLOB_SUBST
13676fi
13677
13678
13679    PACKAGE='$PACKAGE'
13680    VERSION='$VERSION'
13681    TIMESTAMP='$TIMESTAMP'
13682    RM='$RM'
13683    ofile='$ofile'
13684
13685
13686
13687
13688_ACEOF
13689
13690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13691
13692# Handling of arguments.
13693for ac_config_target in $ac_config_targets
13694do
13695  case $ac_config_target in
13696    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13697    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13698    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13699    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13700    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13701    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13702    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13703    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13704    "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
13705
13706  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13707  esac
13708done
13709
13710
13711# If the user did not use the arguments to specify the items to instantiate,
13712# then the envvar interface is used.  Set only those that are not.
13713# We use the long form for the default assignment because of an extremely
13714# bizarre bug on SunOS 4.1.3.
13715if $ac_need_defaults; then
13716  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13717  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13718  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13719fi
13720
13721# Have a temporary directory for convenience.  Make it in the build tree
13722# simply because there is no reason against having it here, and in addition,
13723# creating and moving files from /tmp can sometimes cause problems.
13724# Hook for its removal unless debugging.
13725# Note that there is a small window in which the directory will not be cleaned:
13726# after its creation but before its name has been assigned to `$tmp'.
13727$debug ||
13728{
13729  tmp=
13730  trap 'exit_status=$?
13731  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13732' 0
13733  trap 'as_fn_exit 1' 1 2 13 15
13734}
13735# Create a (secure) tmp directory for tmp files.
13736
13737{
13738  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13739  test -n "$tmp" && test -d "$tmp"
13740}  ||
13741{
13742  tmp=./conf$$-$RANDOM
13743  (umask 077 && mkdir "$tmp")
13744} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13745
13746# Set up the scripts for CONFIG_FILES section.
13747# No need to generate them if there are no CONFIG_FILES.
13748# This happens for instance with `./config.status config.h'.
13749if test -n "$CONFIG_FILES"; then
13750
13751
13752ac_cr=`echo X | tr X '\015'`
13753# On cygwin, bash can eat \r inside `` if the user requested igncr.
13754# But we know of no other shell where ac_cr would be empty at this
13755# point, so we can use a bashism as a fallback.
13756if test "x$ac_cr" = x; then
13757  eval ac_cr=\$\'\\r\'
13758fi
13759ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13760if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13761  ac_cs_awk_cr='\\r'
13762else
13763  ac_cs_awk_cr=$ac_cr
13764fi
13765
13766echo 'BEGIN {' >"$tmp/subs1.awk" &&
13767_ACEOF
13768
13769
13770{
13771  echo "cat >conf$$subs.awk <<_ACEOF" &&
13772  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13773  echo "_ACEOF"
13774} >conf$$subs.sh ||
13775  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13776ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13777ac_delim='%!_!# '
13778for ac_last_try in false false false false false :; do
13779  . ./conf$$subs.sh ||
13780    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13781
13782  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13783  if test $ac_delim_n = $ac_delim_num; then
13784    break
13785  elif $ac_last_try; then
13786    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13787  else
13788    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13789  fi
13790done
13791rm -f conf$$subs.sh
13792
13793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13794cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13795_ACEOF
13796sed -n '
13797h
13798s/^/S["/; s/!.*/"]=/
13799p
13800g
13801s/^[^!]*!//
13802:repl
13803t repl
13804s/'"$ac_delim"'$//
13805t delim
13806:nl
13807h
13808s/\(.\{148\}\)..*/\1/
13809t more1
13810s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13811p
13812n
13813b repl
13814:more1
13815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13816p
13817g
13818s/.\{148\}//
13819t nl
13820:delim
13821h
13822s/\(.\{148\}\)..*/\1/
13823t more2
13824s/["\\]/\\&/g; s/^/"/; s/$/"/
13825p
13826b
13827:more2
13828s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13829p
13830g
13831s/.\{148\}//
13832t delim
13833' <conf$$subs.awk | sed '
13834/^[^""]/{
13835  N
13836  s/\n//
13837}
13838' >>$CONFIG_STATUS || ac_write_fail=1
13839rm -f conf$$subs.awk
13840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13841_ACAWK
13842cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13843  for (key in S) S_is_set[key] = 1
13844  FS = ""
13845
13846}
13847{
13848  line = $ 0
13849  nfields = split(line, field, "@")
13850  substed = 0
13851  len = length(field[1])
13852  for (i = 2; i < nfields; i++) {
13853    key = field[i]
13854    keylen = length(key)
13855    if (S_is_set[key]) {
13856      value = S[key]
13857      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13858      len += length(value) + length(field[++i])
13859      substed = 1
13860    } else
13861      len += 1 + keylen
13862  }
13863
13864  print line
13865}
13866
13867_ACAWK
13868_ACEOF
13869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13870if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13871  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13872else
13873  cat
13874fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13875  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13876_ACEOF
13877
13878# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13879# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13880# trailing colons and then remove the whole line if VPATH becomes empty
13881# (actually we leave an empty line to preserve line numbers).
13882if test "x$srcdir" = x.; then
13883  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13884h
13885s///
13886s/^/:/
13887s/[	 ]*$/:/
13888s/:\$(srcdir):/:/g
13889s/:\${srcdir}:/:/g
13890s/:@srcdir@:/:/g
13891s/^:*//
13892s/:*$//
13893x
13894s/\(=[	 ]*\).*/\1/
13895G
13896s/\n//
13897s/^[^=]*=[	 ]*$//
13898}'
13899fi
13900
13901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13902fi # test -n "$CONFIG_FILES"
13903
13904# Set up the scripts for CONFIG_HEADERS section.
13905# No need to generate them if there are no CONFIG_HEADERS.
13906# This happens for instance with `./config.status Makefile'.
13907if test -n "$CONFIG_HEADERS"; then
13908cat >"$tmp/defines.awk" <<\_ACAWK ||
13909BEGIN {
13910_ACEOF
13911
13912# Transform confdefs.h into an awk script `defines.awk', embedded as
13913# here-document in config.status, that substitutes the proper values into
13914# config.h.in to produce config.h.
13915
13916# Create a delimiter string that does not exist in confdefs.h, to ease
13917# handling of long lines.
13918ac_delim='%!_!# '
13919for ac_last_try in false false :; do
13920  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13921  if test -z "$ac_t"; then
13922    break
13923  elif $ac_last_try; then
13924    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13925  else
13926    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13927  fi
13928done
13929
13930# For the awk script, D is an array of macro values keyed by name,
13931# likewise P contains macro parameters if any.  Preserve backslash
13932# newline sequences.
13933
13934ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13935sed -n '
13936s/.\{148\}/&'"$ac_delim"'/g
13937t rset
13938:rset
13939s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13940t def
13941d
13942:def
13943s/\\$//
13944t bsnl
13945s/["\\]/\\&/g
13946s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13947D["\1"]=" \3"/p
13948s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13949d
13950:bsnl
13951s/["\\]/\\&/g
13952s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13953D["\1"]=" \3\\\\\\n"\\/p
13954t cont
13955s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13956t cont
13957d
13958:cont
13959n
13960s/.\{148\}/&'"$ac_delim"'/g
13961t clear
13962:clear
13963s/\\$//
13964t bsnlc
13965s/["\\]/\\&/g; s/^/"/; s/$/"/p
13966d
13967:bsnlc
13968s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13969b cont
13970' <confdefs.h | sed '
13971s/'"$ac_delim"'/"\\\
13972"/g' >>$CONFIG_STATUS || ac_write_fail=1
13973
13974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13975  for (key in D) D_is_set[key] = 1
13976  FS = ""
13977}
13978/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13979  line = \$ 0
13980  split(line, arg, " ")
13981  if (arg[1] == "#") {
13982    defundef = arg[2]
13983    mac1 = arg[3]
13984  } else {
13985    defundef = substr(arg[1], 2)
13986    mac1 = arg[2]
13987  }
13988  split(mac1, mac2, "(") #)
13989  macro = mac2[1]
13990  prefix = substr(line, 1, index(line, defundef) - 1)
13991  if (D_is_set[macro]) {
13992    # Preserve the white space surrounding the "#".
13993    print prefix "define", macro P[macro] D[macro]
13994    next
13995  } else {
13996    # Replace #undef with comments.  This is necessary, for example,
13997    # in the case of _POSIX_SOURCE, which is predefined and required
13998    # on some systems where configure will not decide to define it.
13999    if (defundef == "undef") {
14000      print "/*", prefix defundef, macro, "*/"
14001      next
14002    }
14003  }
14004}
14005{ print }
14006_ACAWK
14007_ACEOF
14008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14009  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14010fi # test -n "$CONFIG_HEADERS"
14011
14012
14013eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14014shift
14015for ac_tag
14016do
14017  case $ac_tag in
14018  :[FHLC]) ac_mode=$ac_tag; continue;;
14019  esac
14020  case $ac_mode$ac_tag in
14021  :[FHL]*:*);;
14022  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14023  :[FH]-) ac_tag=-:-;;
14024  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14025  esac
14026  ac_save_IFS=$IFS
14027  IFS=:
14028  set x $ac_tag
14029  IFS=$ac_save_IFS
14030  shift
14031  ac_file=$1
14032  shift
14033
14034  case $ac_mode in
14035  :L) ac_source=$1;;
14036  :[FH])
14037    ac_file_inputs=
14038    for ac_f
14039    do
14040      case $ac_f in
14041      -) ac_f="$tmp/stdin";;
14042      *) # Look for the file first in the build tree, then in the source tree
14043	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14044	 # because $ac_f cannot contain `:'.
14045	 test -f "$ac_f" ||
14046	   case $ac_f in
14047	   [\\/$]*) false;;
14048	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14049	   esac ||
14050	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14051      esac
14052      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14053      as_fn_append ac_file_inputs " '$ac_f'"
14054    done
14055
14056    # Let's still pretend it is `configure' which instantiates (i.e., don't
14057    # use $as_me), people would be surprised to read:
14058    #    /* config.h.  Generated by config.status.  */
14059    configure_input='Generated from '`
14060	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14061	`' by configure.'
14062    if test x"$ac_file" != x-; then
14063      configure_input="$ac_file.  $configure_input"
14064      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14065$as_echo "$as_me: creating $ac_file" >&6;}
14066    fi
14067    # Neutralize special characters interpreted by sed in replacement strings.
14068    case $configure_input in #(
14069    *\&* | *\|* | *\\* )
14070       ac_sed_conf_input=`$as_echo "$configure_input" |
14071       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14072    *) ac_sed_conf_input=$configure_input;;
14073    esac
14074
14075    case $ac_tag in
14076    *:-:* | *:-) cat >"$tmp/stdin" \
14077      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14078    esac
14079    ;;
14080  esac
14081
14082  ac_dir=`$as_dirname -- "$ac_file" ||
14083$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14084	 X"$ac_file" : 'X\(//\)[^/]' \| \
14085	 X"$ac_file" : 'X\(//\)$' \| \
14086	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14087$as_echo X"$ac_file" |
14088    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14089	    s//\1/
14090	    q
14091	  }
14092	  /^X\(\/\/\)[^/].*/{
14093	    s//\1/
14094	    q
14095	  }
14096	  /^X\(\/\/\)$/{
14097	    s//\1/
14098	    q
14099	  }
14100	  /^X\(\/\).*/{
14101	    s//\1/
14102	    q
14103	  }
14104	  s/.*/./; q'`
14105  as_dir="$ac_dir"; as_fn_mkdir_p
14106  ac_builddir=.
14107
14108case "$ac_dir" in
14109.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14110*)
14111  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14112  # A ".." for each directory in $ac_dir_suffix.
14113  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14114  case $ac_top_builddir_sub in
14115  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14116  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14117  esac ;;
14118esac
14119ac_abs_top_builddir=$ac_pwd
14120ac_abs_builddir=$ac_pwd$ac_dir_suffix
14121# for backward compatibility:
14122ac_top_builddir=$ac_top_build_prefix
14123
14124case $srcdir in
14125  .)  # We are building in place.
14126    ac_srcdir=.
14127    ac_top_srcdir=$ac_top_builddir_sub
14128    ac_abs_top_srcdir=$ac_pwd ;;
14129  [\\/]* | ?:[\\/]* )  # Absolute name.
14130    ac_srcdir=$srcdir$ac_dir_suffix;
14131    ac_top_srcdir=$srcdir
14132    ac_abs_top_srcdir=$srcdir ;;
14133  *) # Relative name.
14134    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14135    ac_top_srcdir=$ac_top_build_prefix$srcdir
14136    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14137esac
14138ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14139
14140
14141  case $ac_mode in
14142  :F)
14143  #
14144  # CONFIG_FILE
14145  #
14146
14147  case $INSTALL in
14148  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14149  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14150  esac
14151  ac_MKDIR_P=$MKDIR_P
14152  case $MKDIR_P in
14153  [\\/$]* | ?:[\\/]* ) ;;
14154  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14155  esac
14156_ACEOF
14157
14158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159# If the template does not know about datarootdir, expand it.
14160# FIXME: This hack should be removed a few years after 2.60.
14161ac_datarootdir_hack=; ac_datarootdir_seen=
14162ac_sed_dataroot='
14163/datarootdir/ {
14164  p
14165  q
14166}
14167/@datadir@/p
14168/@docdir@/p
14169/@infodir@/p
14170/@localedir@/p
14171/@mandir@/p'
14172case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14173*datarootdir*) ac_datarootdir_seen=yes;;
14174*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14175  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14176$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14177_ACEOF
14178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14179  ac_datarootdir_hack='
14180  s&@datadir@&$datadir&g
14181  s&@docdir@&$docdir&g
14182  s&@infodir@&$infodir&g
14183  s&@localedir@&$localedir&g
14184  s&@mandir@&$mandir&g
14185  s&\\\${datarootdir}&$datarootdir&g' ;;
14186esac
14187_ACEOF
14188
14189# Neutralize VPATH when `$srcdir' = `.'.
14190# Shell code in configure.ac might set extrasub.
14191# FIXME: do we really want to maintain this feature?
14192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14193ac_sed_extra="$ac_vpsub
14194$extrasub
14195_ACEOF
14196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14197:t
14198/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14199s|@configure_input@|$ac_sed_conf_input|;t t
14200s&@top_builddir@&$ac_top_builddir_sub&;t t
14201s&@top_build_prefix@&$ac_top_build_prefix&;t t
14202s&@srcdir@&$ac_srcdir&;t t
14203s&@abs_srcdir@&$ac_abs_srcdir&;t t
14204s&@top_srcdir@&$ac_top_srcdir&;t t
14205s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14206s&@builddir@&$ac_builddir&;t t
14207s&@abs_builddir@&$ac_abs_builddir&;t t
14208s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14209s&@INSTALL@&$ac_INSTALL&;t t
14210s&@MKDIR_P@&$ac_MKDIR_P&;t t
14211$ac_datarootdir_hack
14212"
14213eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14214  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14215
14216test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14217  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14218  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14219  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14220which seems to be undefined.  Please make sure it is defined" >&5
14221$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14222which seems to be undefined.  Please make sure it is defined" >&2;}
14223
14224  rm -f "$tmp/stdin"
14225  case $ac_file in
14226  -) cat "$tmp/out" && rm -f "$tmp/out";;
14227  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14228  esac \
14229  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14230 ;;
14231  :H)
14232  #
14233  # CONFIG_HEADER
14234  #
14235  if test x"$ac_file" != x-; then
14236    {
14237      $as_echo "/* $configure_input  */" \
14238      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14239    } >"$tmp/config.h" \
14240      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14241    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14242      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14243$as_echo "$as_me: $ac_file is unchanged" >&6;}
14244    else
14245      rm -f "$ac_file"
14246      mv "$tmp/config.h" "$ac_file" \
14247	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14248    fi
14249  else
14250    $as_echo "/* $configure_input  */" \
14251      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14252      || as_fn_error $? "could not create -" "$LINENO" 5
14253  fi
14254# Compute "$ac_file"'s index in $config_headers.
14255_am_arg="$ac_file"
14256_am_stamp_count=1
14257for _am_header in $config_headers :; do
14258  case $_am_header in
14259    $_am_arg | $_am_arg:* )
14260      break ;;
14261    * )
14262      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14263  esac
14264done
14265echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14266$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14267	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14268	 X"$_am_arg" : 'X\(//\)$' \| \
14269	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14270$as_echo X"$_am_arg" |
14271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14272	    s//\1/
14273	    q
14274	  }
14275	  /^X\(\/\/\)[^/].*/{
14276	    s//\1/
14277	    q
14278	  }
14279	  /^X\(\/\/\)$/{
14280	    s//\1/
14281	    q
14282	  }
14283	  /^X\(\/\).*/{
14284	    s//\1/
14285	    q
14286	  }
14287	  s/.*/./; q'`/stamp-h$_am_stamp_count
14288 ;;
14289
14290  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14291$as_echo "$as_me: executing $ac_file commands" >&6;}
14292 ;;
14293  esac
14294
14295
14296  case $ac_file$ac_mode in
14297    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14298  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14299  # are listed without --file.  Let's play safe and only enable the eval
14300  # if we detect the quoting.
14301  case $CONFIG_FILES in
14302  *\'*) eval set x "$CONFIG_FILES" ;;
14303  *)   set x $CONFIG_FILES ;;
14304  esac
14305  shift
14306  for mf
14307  do
14308    # Strip MF so we end up with the name of the file.
14309    mf=`echo "$mf" | sed -e 's/:.*$//'`
14310    # Check whether this is an Automake generated Makefile or not.
14311    # We used to match only the files named `Makefile.in', but
14312    # some people rename them; so instead we look at the file content.
14313    # Grep'ing the first line is not enough: some people post-process
14314    # each Makefile.in and add a new line on top of each file to say so.
14315    # Grep'ing the whole file is not good either: AIX grep has a line
14316    # limit of 2048, but all sed's we know have understand at least 4000.
14317    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14318      dirpart=`$as_dirname -- "$mf" ||
14319$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14320	 X"$mf" : 'X\(//\)[^/]' \| \
14321	 X"$mf" : 'X\(//\)$' \| \
14322	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14323$as_echo X"$mf" |
14324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14325	    s//\1/
14326	    q
14327	  }
14328	  /^X\(\/\/\)[^/].*/{
14329	    s//\1/
14330	    q
14331	  }
14332	  /^X\(\/\/\)$/{
14333	    s//\1/
14334	    q
14335	  }
14336	  /^X\(\/\).*/{
14337	    s//\1/
14338	    q
14339	  }
14340	  s/.*/./; q'`
14341    else
14342      continue
14343    fi
14344    # Extract the definition of DEPDIR, am__include, and am__quote
14345    # from the Makefile without running `make'.
14346    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14347    test -z "$DEPDIR" && continue
14348    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14349    test -z "am__include" && continue
14350    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14351    # When using ansi2knr, U may be empty or an underscore; expand it
14352    U=`sed -n 's/^U = //p' < "$mf"`
14353    # Find all dependency output files, they are included files with
14354    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14355    # simplest approach to changing $(DEPDIR) to its actual value in the
14356    # expansion.
14357    for file in `sed -n "
14358      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14359	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14360      # Make sure the directory exists.
14361      test -f "$dirpart/$file" && continue
14362      fdir=`$as_dirname -- "$file" ||
14363$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14364	 X"$file" : 'X\(//\)[^/]' \| \
14365	 X"$file" : 'X\(//\)$' \| \
14366	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14367$as_echo X"$file" |
14368    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14369	    s//\1/
14370	    q
14371	  }
14372	  /^X\(\/\/\)[^/].*/{
14373	    s//\1/
14374	    q
14375	  }
14376	  /^X\(\/\/\)$/{
14377	    s//\1/
14378	    q
14379	  }
14380	  /^X\(\/\).*/{
14381	    s//\1/
14382	    q
14383	  }
14384	  s/.*/./; q'`
14385      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14386      # echo "creating $dirpart/$file"
14387      echo '# dummy' > "$dirpart/$file"
14388    done
14389  done
14390}
14391 ;;
14392    "libtool":C)
14393
14394    # See if we are running on zsh, and set the options which allow our
14395    # commands through without removal of \ escapes.
14396    if test -n "${ZSH_VERSION+set}" ; then
14397      setopt NO_GLOB_SUBST
14398    fi
14399
14400    cfgfile="${ofile}T"
14401    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14402    $RM "$cfgfile"
14403
14404    cat <<_LT_EOF >> "$cfgfile"
14405#! $SHELL
14406
14407# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14408# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14410# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14411#
14412#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14413#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14414#                 Inc.
14415#   Written by Gordon Matzigkeit, 1996
14416#
14417#   This file is part of GNU Libtool.
14418#
14419# GNU Libtool is free software; you can redistribute it and/or
14420# modify it under the terms of the GNU General Public License as
14421# published by the Free Software Foundation; either version 2 of
14422# the License, or (at your option) any later version.
14423#
14424# As a special exception to the GNU General Public License,
14425# if you distribute this file as part of a program or library that
14426# is built using GNU Libtool, you may include this file under the
14427# same distribution terms that you use for the rest of that program.
14428#
14429# GNU Libtool is distributed in the hope that it will be useful,
14430# but WITHOUT ANY WARRANTY; without even the implied warranty of
14431# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14432# GNU General Public License for more details.
14433#
14434# You should have received a copy of the GNU General Public License
14435# along with GNU Libtool; see the file COPYING.  If not, a copy
14436# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14437# obtained by writing to the Free Software Foundation, Inc.,
14438# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14439
14440
14441# The names of the tagged configurations supported by this script.
14442available_tags=""
14443
14444# ### BEGIN LIBTOOL CONFIG
14445
14446# Which release of libtool.m4 was used?
14447macro_version=$macro_version
14448macro_revision=$macro_revision
14449
14450# Whether or not to build shared libraries.
14451build_libtool_libs=$enable_shared
14452
14453# Whether or not to build static libraries.
14454build_old_libs=$enable_static
14455
14456# What type of objects to build.
14457pic_mode=$pic_mode
14458
14459# Whether or not to optimize for fast installation.
14460fast_install=$enable_fast_install
14461
14462# Shell to use when invoking shell scripts.
14463SHELL=$lt_SHELL
14464
14465# An echo program that protects backslashes.
14466ECHO=$lt_ECHO
14467
14468# The host system.
14469host_alias=$host_alias
14470host=$host
14471host_os=$host_os
14472
14473# The build system.
14474build_alias=$build_alias
14475build=$build
14476build_os=$build_os
14477
14478# A sed program that does not truncate output.
14479SED=$lt_SED
14480
14481# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14482Xsed="\$SED -e 1s/^X//"
14483
14484# A grep program that handles long lines.
14485GREP=$lt_GREP
14486
14487# An ERE matcher.
14488EGREP=$lt_EGREP
14489
14490# A literal string matcher.
14491FGREP=$lt_FGREP
14492
14493# A BSD- or MS-compatible name lister.
14494NM=$lt_NM
14495
14496# Whether we need soft or hard links.
14497LN_S=$lt_LN_S
14498
14499# What is the maximum length of a command?
14500max_cmd_len=$max_cmd_len
14501
14502# Object file suffix (normally "o").
14503objext=$ac_objext
14504
14505# Executable file suffix (normally "").
14506exeext=$exeext
14507
14508# whether the shell understands "unset".
14509lt_unset=$lt_unset
14510
14511# turn spaces into newlines.
14512SP2NL=$lt_lt_SP2NL
14513
14514# turn newlines into spaces.
14515NL2SP=$lt_lt_NL2SP
14516
14517# An object symbol dumper.
14518OBJDUMP=$lt_OBJDUMP
14519
14520# Method to check whether dependent libraries are shared objects.
14521deplibs_check_method=$lt_deplibs_check_method
14522
14523# Command to use when deplibs_check_method == "file_magic".
14524file_magic_cmd=$lt_file_magic_cmd
14525
14526# The archiver.
14527AR=$lt_AR
14528AR_FLAGS=$lt_AR_FLAGS
14529
14530# A symbol stripping program.
14531STRIP=$lt_STRIP
14532
14533# Commands used to install an old-style archive.
14534RANLIB=$lt_RANLIB
14535old_postinstall_cmds=$lt_old_postinstall_cmds
14536old_postuninstall_cmds=$lt_old_postuninstall_cmds
14537
14538# Whether to use a lock for old archive extraction.
14539lock_old_archive_extraction=$lock_old_archive_extraction
14540
14541# A C compiler.
14542LTCC=$lt_CC
14543
14544# LTCC compiler flags.
14545LTCFLAGS=$lt_CFLAGS
14546
14547# Take the output of nm and produce a listing of raw symbols and C names.
14548global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14549
14550# Transform the output of nm in a proper C declaration.
14551global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14552
14553# Transform the output of nm in a C name address pair.
14554global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14555
14556# Transform the output of nm in a C name address pair when lib prefix is needed.
14557global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14558
14559# The name of the directory that contains temporary libtool files.
14560objdir=$objdir
14561
14562# Used to examine libraries when file_magic_cmd begins with "file".
14563MAGIC_CMD=$MAGIC_CMD
14564
14565# Must we lock files when doing compilation?
14566need_locks=$lt_need_locks
14567
14568# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14569DSYMUTIL=$lt_DSYMUTIL
14570
14571# Tool to change global to local symbols on Mac OS X.
14572NMEDIT=$lt_NMEDIT
14573
14574# Tool to manipulate fat objects and archives on Mac OS X.
14575LIPO=$lt_LIPO
14576
14577# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14578OTOOL=$lt_OTOOL
14579
14580# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14581OTOOL64=$lt_OTOOL64
14582
14583# Old archive suffix (normally "a").
14584libext=$libext
14585
14586# Shared library suffix (normally ".so").
14587shrext_cmds=$lt_shrext_cmds
14588
14589# The commands to extract the exported symbol list from a shared archive.
14590extract_expsyms_cmds=$lt_extract_expsyms_cmds
14591
14592# Variables whose values should be saved in libtool wrapper scripts and
14593# restored at link time.
14594variables_saved_for_relink=$lt_variables_saved_for_relink
14595
14596# Do we need the "lib" prefix for modules?
14597need_lib_prefix=$need_lib_prefix
14598
14599# Do we need a version for libraries?
14600need_version=$need_version
14601
14602# Library versioning type.
14603version_type=$version_type
14604
14605# Shared library runtime path variable.
14606runpath_var=$runpath_var
14607
14608# Shared library path variable.
14609shlibpath_var=$shlibpath_var
14610
14611# Is shlibpath searched before the hard-coded library search path?
14612shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14613
14614# Format of library name prefix.
14615libname_spec=$lt_libname_spec
14616
14617# List of archive names.  First name is the real one, the rest are links.
14618# The last name is the one that the linker finds with -lNAME
14619library_names_spec=$lt_library_names_spec
14620
14621# The coded name of the library, if different from the real name.
14622soname_spec=$lt_soname_spec
14623
14624# Permission mode override for installation of shared libraries.
14625install_override_mode=$lt_install_override_mode
14626
14627# Command to use after installation of a shared archive.
14628postinstall_cmds=$lt_postinstall_cmds
14629
14630# Command to use after uninstallation of a shared archive.
14631postuninstall_cmds=$lt_postuninstall_cmds
14632
14633# Commands used to finish a libtool library installation in a directory.
14634finish_cmds=$lt_finish_cmds
14635
14636# As "finish_cmds", except a single script fragment to be evaled but
14637# not shown.
14638finish_eval=$lt_finish_eval
14639
14640# Whether we should hardcode library paths into libraries.
14641hardcode_into_libs=$hardcode_into_libs
14642
14643# Compile-time system search path for libraries.
14644sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14645
14646# Run-time system search path for libraries.
14647sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14648
14649# Whether dlopen is supported.
14650dlopen_support=$enable_dlopen
14651
14652# Whether dlopen of programs is supported.
14653dlopen_self=$enable_dlopen_self
14654
14655# Whether dlopen of statically linked programs is supported.
14656dlopen_self_static=$enable_dlopen_self_static
14657
14658# Commands to strip libraries.
14659old_striplib=$lt_old_striplib
14660striplib=$lt_striplib
14661
14662
14663# The linker used to build libraries.
14664LD=$lt_LD
14665
14666# How to create reloadable object files.
14667reload_flag=$lt_reload_flag
14668reload_cmds=$lt_reload_cmds
14669
14670# Commands used to build an old-style archive.
14671old_archive_cmds=$lt_old_archive_cmds
14672
14673# A language specific compiler.
14674CC=$lt_compiler
14675
14676# Is the compiler the GNU compiler?
14677with_gcc=$GCC
14678
14679# Compiler flag to turn off builtin functions.
14680no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14681
14682# How to pass a linker flag through the compiler.
14683wl=$lt_lt_prog_compiler_wl
14684
14685# Additional compiler flags for building library objects.
14686pic_flag=$lt_lt_prog_compiler_pic
14687
14688# Compiler flag to prevent dynamic linking.
14689link_static_flag=$lt_lt_prog_compiler_static
14690
14691# Does compiler simultaneously support -c and -o options?
14692compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14693
14694# Whether or not to add -lc for building shared libraries.
14695build_libtool_need_lc=$archive_cmds_need_lc
14696
14697# Whether or not to disallow shared libs when runtime libs are static.
14698allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14699
14700# Compiler flag to allow reflexive dlopens.
14701export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14702
14703# Compiler flag to generate shared objects directly from archives.
14704whole_archive_flag_spec=$lt_whole_archive_flag_spec
14705
14706# Whether the compiler copes with passing no objects directly.
14707compiler_needs_object=$lt_compiler_needs_object
14708
14709# Create an old-style archive from a shared archive.
14710old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14711
14712# Create a temporary old-style archive to link instead of a shared archive.
14713old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14714
14715# Commands used to build a shared archive.
14716archive_cmds=$lt_archive_cmds
14717archive_expsym_cmds=$lt_archive_expsym_cmds
14718
14719# Commands used to build a loadable module if different from building
14720# a shared archive.
14721module_cmds=$lt_module_cmds
14722module_expsym_cmds=$lt_module_expsym_cmds
14723
14724# Whether we are building with GNU ld or not.
14725with_gnu_ld=$lt_with_gnu_ld
14726
14727# Flag that allows shared libraries with undefined symbols to be built.
14728allow_undefined_flag=$lt_allow_undefined_flag
14729
14730# Flag that enforces no undefined symbols.
14731no_undefined_flag=$lt_no_undefined_flag
14732
14733# Flag to hardcode \$libdir into a binary during linking.
14734# This must work even if \$libdir does not exist
14735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14736
14737# If ld is used when linking, flag to hardcode \$libdir into a binary
14738# during linking.  This must work even if \$libdir does not exist.
14739hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14740
14741# Whether we need a single "-rpath" flag with a separated argument.
14742hardcode_libdir_separator=$lt_hardcode_libdir_separator
14743
14744# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14745# DIR into the resulting binary.
14746hardcode_direct=$hardcode_direct
14747
14748# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14749# DIR into the resulting binary and the resulting library dependency is
14750# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14751# library is relocated.
14752hardcode_direct_absolute=$hardcode_direct_absolute
14753
14754# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14755# into the resulting binary.
14756hardcode_minus_L=$hardcode_minus_L
14757
14758# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14759# into the resulting binary.
14760hardcode_shlibpath_var=$hardcode_shlibpath_var
14761
14762# Set to "yes" if building a shared library automatically hardcodes DIR
14763# into the library and all subsequent libraries and executables linked
14764# against it.
14765hardcode_automatic=$hardcode_automatic
14766
14767# Set to yes if linker adds runtime paths of dependent libraries
14768# to runtime path list.
14769inherit_rpath=$inherit_rpath
14770
14771# Whether libtool must link a program against all its dependency libraries.
14772link_all_deplibs=$link_all_deplibs
14773
14774# Fix the shell variable \$srcfile for the compiler.
14775fix_srcfile_path=$lt_fix_srcfile_path
14776
14777# Set to "yes" if exported symbols are required.
14778always_export_symbols=$always_export_symbols
14779
14780# The commands to list exported symbols.
14781export_symbols_cmds=$lt_export_symbols_cmds
14782
14783# Symbols that should not be listed in the preloaded symbols.
14784exclude_expsyms=$lt_exclude_expsyms
14785
14786# Symbols that must always be exported.
14787include_expsyms=$lt_include_expsyms
14788
14789# Commands necessary for linking programs (against libraries) with templates.
14790prelink_cmds=$lt_prelink_cmds
14791
14792# Specify filename containing input files.
14793file_list_spec=$lt_file_list_spec
14794
14795# How to hardcode a shared library path into an executable.
14796hardcode_action=$hardcode_action
14797
14798# ### END LIBTOOL CONFIG
14799
14800_LT_EOF
14801
14802  case $host_os in
14803  aix3*)
14804    cat <<\_LT_EOF >> "$cfgfile"
14805# AIX sometimes has problems with the GCC collect2 program.  For some
14806# reason, if we set the COLLECT_NAMES environment variable, the problems
14807# vanish in a puff of smoke.
14808if test "X${COLLECT_NAMES+set}" != Xset; then
14809  COLLECT_NAMES=
14810  export COLLECT_NAMES
14811fi
14812_LT_EOF
14813    ;;
14814  esac
14815
14816
14817ltmain="$ac_aux_dir/ltmain.sh"
14818
14819
14820  # We use sed instead of cat because bash on DJGPP gets confused if
14821  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14822  # text mode, it properly converts lines to CR/LF.  This bash problem
14823  # is reportedly fixed, but why not run on old versions too?
14824  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14825    || (rm -f "$cfgfile"; exit 1)
14826
14827  case $xsi_shell in
14828  yes)
14829    cat << \_LT_EOF >> "$cfgfile"
14830
14831# func_dirname file append nondir_replacement
14832# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14833# otherwise set result to NONDIR_REPLACEMENT.
14834func_dirname ()
14835{
14836  case ${1} in
14837    */*) func_dirname_result="${1%/*}${2}" ;;
14838    *  ) func_dirname_result="${3}" ;;
14839  esac
14840}
14841
14842# func_basename file
14843func_basename ()
14844{
14845  func_basename_result="${1##*/}"
14846}
14847
14848# func_dirname_and_basename file append nondir_replacement
14849# perform func_basename and func_dirname in a single function
14850# call:
14851#   dirname:  Compute the dirname of FILE.  If nonempty,
14852#             add APPEND to the result, otherwise set result
14853#             to NONDIR_REPLACEMENT.
14854#             value returned in "$func_dirname_result"
14855#   basename: Compute filename of FILE.
14856#             value retuned in "$func_basename_result"
14857# Implementation must be kept synchronized with func_dirname
14858# and func_basename. For efficiency, we do not delegate to
14859# those functions but instead duplicate the functionality here.
14860func_dirname_and_basename ()
14861{
14862  case ${1} in
14863    */*) func_dirname_result="${1%/*}${2}" ;;
14864    *  ) func_dirname_result="${3}" ;;
14865  esac
14866  func_basename_result="${1##*/}"
14867}
14868
14869# func_stripname prefix suffix name
14870# strip PREFIX and SUFFIX off of NAME.
14871# PREFIX and SUFFIX must not contain globbing or regex special
14872# characters, hashes, percent signs, but SUFFIX may contain a leading
14873# dot (in which case that matches only a dot).
14874func_stripname ()
14875{
14876  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14877  # positional parameters, so assign one to ordinary parameter first.
14878  func_stripname_result=${3}
14879  func_stripname_result=${func_stripname_result#"${1}"}
14880  func_stripname_result=${func_stripname_result%"${2}"}
14881}
14882
14883# func_opt_split
14884func_opt_split ()
14885{
14886  func_opt_split_opt=${1%%=*}
14887  func_opt_split_arg=${1#*=}
14888}
14889
14890# func_lo2o object
14891func_lo2o ()
14892{
14893  case ${1} in
14894    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14895    *)    func_lo2o_result=${1} ;;
14896  esac
14897}
14898
14899# func_xform libobj-or-source
14900func_xform ()
14901{
14902  func_xform_result=${1%.*}.lo
14903}
14904
14905# func_arith arithmetic-term...
14906func_arith ()
14907{
14908  func_arith_result=$(( $* ))
14909}
14910
14911# func_len string
14912# STRING may not start with a hyphen.
14913func_len ()
14914{
14915  func_len_result=${#1}
14916}
14917
14918_LT_EOF
14919    ;;
14920  *) # Bourne compatible functions.
14921    cat << \_LT_EOF >> "$cfgfile"
14922
14923# func_dirname file append nondir_replacement
14924# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14925# otherwise set result to NONDIR_REPLACEMENT.
14926func_dirname ()
14927{
14928  # Extract subdirectory from the argument.
14929  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14930  if test "X$func_dirname_result" = "X${1}"; then
14931    func_dirname_result="${3}"
14932  else
14933    func_dirname_result="$func_dirname_result${2}"
14934  fi
14935}
14936
14937# func_basename file
14938func_basename ()
14939{
14940  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14941}
14942
14943
14944# func_stripname prefix suffix name
14945# strip PREFIX and SUFFIX off of NAME.
14946# PREFIX and SUFFIX must not contain globbing or regex special
14947# characters, hashes, percent signs, but SUFFIX may contain a leading
14948# dot (in which case that matches only a dot).
14949# func_strip_suffix prefix name
14950func_stripname ()
14951{
14952  case ${2} in
14953    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14954    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14955  esac
14956}
14957
14958# sed scripts:
14959my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14960my_sed_long_arg='1s/^-[^=]*=//'
14961
14962# func_opt_split
14963func_opt_split ()
14964{
14965  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14966  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14967}
14968
14969# func_lo2o object
14970func_lo2o ()
14971{
14972  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14973}
14974
14975# func_xform libobj-or-source
14976func_xform ()
14977{
14978  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14979}
14980
14981# func_arith arithmetic-term...
14982func_arith ()
14983{
14984  func_arith_result=`expr "$@"`
14985}
14986
14987# func_len string
14988# STRING may not start with a hyphen.
14989func_len ()
14990{
14991  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14992}
14993
14994_LT_EOF
14995esac
14996
14997case $lt_shell_append in
14998  yes)
14999    cat << \_LT_EOF >> "$cfgfile"
15000
15001# func_append var value
15002# Append VALUE to the end of shell variable VAR.
15003func_append ()
15004{
15005  eval "$1+=\$2"
15006}
15007_LT_EOF
15008    ;;
15009  *)
15010    cat << \_LT_EOF >> "$cfgfile"
15011
15012# func_append var value
15013# Append VALUE to the end of shell variable VAR.
15014func_append ()
15015{
15016  eval "$1=\$$1\$2"
15017}
15018
15019_LT_EOF
15020    ;;
15021  esac
15022
15023
15024  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15025    || (rm -f "$cfgfile"; exit 1)
15026
15027  mv -f "$cfgfile" "$ofile" ||
15028    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15029  chmod +x "$ofile"
15030
15031 ;;
15032
15033  esac
15034done # for ac_tag
15035
15036
15037as_fn_exit 0
15038_ACEOF
15039ac_clean_files=$ac_clean_files_save
15040
15041test $ac_write_fail = 0 ||
15042  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15043
15044
15045# configure is writing to config.log, and then calls config.status.
15046# config.status does its own redirection, appending to config.log.
15047# Unfortunately, on DOS this fails, as config.log is still kept open
15048# by configure, so config.status won't be able to write to it; its
15049# output is simply discarded.  So we exec the FD to /dev/null,
15050# effectively closing config.log, so it can be properly (re)opened and
15051# appended to by config.status.  When coming back to configure, we
15052# need to make the FD available again.
15053if test "$no_create" != yes; then
15054  ac_cs_success=:
15055  ac_config_status_args=
15056  test "$silent" = yes &&
15057    ac_config_status_args="$ac_config_status_args --quiet"
15058  exec 5>/dev/null
15059  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15060  exec 5>>config.log
15061  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15062  # would make configure fail if this is the last instruction.
15063  $ac_cs_success || as_fn_exit 1
15064fi
15065if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15066  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15067$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15068fi
15069
15070
15071