configure revision 00084f2c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for libXau 1.0.6.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629	   test "X$echo_testing_string" = "X$echo_test_string"; then
630	  # Cool, printf works
631	  :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	     test "X$echo_testing_string" = 'X\t' &&
634	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	     test "X$echo_testing_string" = "X$echo_test_string"; then
636	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	  export CONFIG_SHELL
638	  SHELL="$CONFIG_SHELL"
639	  export SHELL
640	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	     test "X$echo_testing_string" = 'X\t' &&
643	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	     test "X$echo_testing_string" = "X$echo_test_string"; then
645	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647	  # maybe with a smaller string...
648	  prev=:
649
650	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652	    then
653	      break
654	    fi
655	    prev="$cmd"
656	  done
657
658	  if test "$prev" != 'sed 50q "$0"'; then
659	    echo_test_string=`eval $prev`
660	    export echo_test_string
661	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	  else
663	    # Oops.  We lost completely, so just stick with echo.
664	    ECHO=echo
665	  fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='libXau'
704PACKAGE_TARNAME='libXau'
705PACKAGE_VERSION='1.0.6'
706PACKAGE_STRING='libXau 1.0.6'
707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708PACKAGE_URL=''
709
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724#  include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729#  include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750MAKE_LINT_LIB_FALSE
751MAKE_LINT_LIB_TRUE
752LINTLIB
753LINT_FALSE
754LINT_TRUE
755LINT_FLAGS
756LINT
757XAU_LIBS
758XAU_CFLAGS
759OTOOL64
760OTOOL
761LIPO
762NMEDIT
763DSYMUTIL
764lt_ECHO
765RANLIB
766AR
767NM
768ac_ct_DUMPBIN
769DUMPBIN
770LD
771FGREP
772LIBTOOL
773OBJDUMP
774DLLTOOL
775AS
776LN_S
777AM_BACKSLASH
778AM_DEFAULT_VERBOSITY
779MAN_SUBSTS
780XORG_MAN_PAGE
781ADMIN_MAN_DIR
782DRIVER_MAN_DIR
783MISC_MAN_DIR
784FILE_MAN_DIR
785LIB_MAN_DIR
786APP_MAN_DIR
787ADMIN_MAN_SUFFIX
788DRIVER_MAN_SUFFIX
789MISC_MAN_SUFFIX
790FILE_MAN_SUFFIX
791LIB_MAN_SUFFIX
792APP_MAN_SUFFIX
793SED
794host_os
795host_vendor
796host_cpu
797host
798build_os
799build_vendor
800build_cpu
801build
802INSTALL_CMD
803PKG_CONFIG_LIBDIR
804PKG_CONFIG_PATH
805PKG_CONFIG
806CHANGELOG_CMD
807CWARNFLAGS
808EGREP
809GREP
810CPP
811am__fastdepCC_FALSE
812am__fastdepCC_TRUE
813CCDEPMODE
814AMDEPBACKSLASH
815AMDEP_FALSE
816AMDEP_TRUE
817am__quote
818am__include
819DEPDIR
820OBJEXT
821EXEEXT
822ac_ct_CC
823CPPFLAGS
824LDFLAGS
825CFLAGS
826CC
827MAINT
828MAINTAINER_MODE_FALSE
829MAINTAINER_MODE_TRUE
830am__untar
831am__tar
832AMTAR
833am__leading_dot
834SET_MAKE
835AWK
836mkdir_p
837MKDIR_P
838INSTALL_STRIP_PROGRAM
839STRIP
840install_sh
841MAKEINFO
842AUTOHEADER
843AUTOMAKE
844AUTOCONF
845ACLOCAL
846VERSION
847PACKAGE
848CYGPATH_W
849am__isrc
850INSTALL_DATA
851INSTALL_SCRIPT
852INSTALL_PROGRAM
853target_alias
854host_alias
855build_alias
856LIBS
857ECHO_T
858ECHO_N
859ECHO_C
860DEFS
861mandir
862localedir
863libdir
864psdir
865pdfdir
866dvidir
867htmldir
868infodir
869docdir
870oldincludedir
871includedir
872localstatedir
873sharedstatedir
874sysconfdir
875datadir
876datarootdir
877libexecdir
878sbindir
879bindir
880program_transform_name
881prefix
882exec_prefix
883PACKAGE_URL
884PACKAGE_BUGREPORT
885PACKAGE_STRING
886PACKAGE_VERSION
887PACKAGE_TARNAME
888PACKAGE_NAME
889PATH_SEPARATOR
890SHELL'
891ac_subst_files=''
892ac_user_opts='
893enable_option_checking
894enable_maintainer_mode
895enable_dependency_tracking
896enable_strict_compilation
897enable_silent_rules
898enable_shared
899enable_static
900with_pic
901enable_fast_install
902with_gnu_ld
903enable_libtool_lock
904enable_xthreads
905with_lint
906enable_lint_library
907'
908      ac_precious_vars='build_alias
909host_alias
910target_alias
911CC
912CFLAGS
913LDFLAGS
914LIBS
915CPPFLAGS
916CPP
917PKG_CONFIG
918PKG_CONFIG_PATH
919PKG_CONFIG_LIBDIR
920XAU_CFLAGS
921XAU_LIBS
922LINT
923LINT_FLAGS'
924
925
926# Initialize some variables set by options.
927ac_init_help=
928ac_init_version=false
929ac_unrecognized_opts=
930ac_unrecognized_sep=
931# The variables have the same names as the options, with
932# dashes changed to underlines.
933cache_file=/dev/null
934exec_prefix=NONE
935no_create=
936no_recursion=
937prefix=NONE
938program_prefix=NONE
939program_suffix=NONE
940program_transform_name=s,x,x,
941silent=
942site=
943srcdir=
944verbose=
945x_includes=NONE
946x_libraries=NONE
947
948# Installation directory options.
949# These are left unexpanded so users can "make install exec_prefix=/foo"
950# and all the variables that are supposed to be based on exec_prefix
951# by default will actually change.
952# Use braces instead of parens because sh, perl, etc. also accept them.
953# (The list follows the same order as the GNU Coding Standards.)
954bindir='${exec_prefix}/bin'
955sbindir='${exec_prefix}/sbin'
956libexecdir='${exec_prefix}/libexec'
957datarootdir='${prefix}/share'
958datadir='${datarootdir}'
959sysconfdir='${prefix}/etc'
960sharedstatedir='${prefix}/com'
961localstatedir='${prefix}/var'
962includedir='${prefix}/include'
963oldincludedir='/usr/include'
964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965infodir='${datarootdir}/info'
966htmldir='${docdir}'
967dvidir='${docdir}'
968pdfdir='${docdir}'
969psdir='${docdir}'
970libdir='${exec_prefix}/lib'
971localedir='${datarootdir}/locale'
972mandir='${datarootdir}/man'
973
974ac_prev=
975ac_dashdash=
976for ac_option
977do
978  # If the previous option needs an argument, assign it.
979  if test -n "$ac_prev"; then
980    eval $ac_prev=\$ac_option
981    ac_prev=
982    continue
983  fi
984
985  case $ac_option in
986  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987  *)	ac_optarg=yes ;;
988  esac
989
990  # Accept the important Cygnus configure options, so we can diagnose typos.
991
992  case $ac_dashdash$ac_option in
993  --)
994    ac_dashdash=yes ;;
995
996  -bindir | --bindir | --bindi | --bind | --bin | --bi)
997    ac_prev=bindir ;;
998  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999    bindir=$ac_optarg ;;
1000
1001  -build | --build | --buil | --bui | --bu)
1002    ac_prev=build_alias ;;
1003  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004    build_alias=$ac_optarg ;;
1005
1006  -cache-file | --cache-file | --cache-fil | --cache-fi \
1007  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008    ac_prev=cache_file ;;
1009  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011    cache_file=$ac_optarg ;;
1012
1013  --config-cache | -C)
1014    cache_file=config.cache ;;
1015
1016  -datadir | --datadir | --datadi | --datad)
1017    ac_prev=datadir ;;
1018  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019    datadir=$ac_optarg ;;
1020
1021  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022  | --dataroo | --dataro | --datar)
1023    ac_prev=datarootdir ;;
1024  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026    datarootdir=$ac_optarg ;;
1027
1028  -disable-* | --disable-*)
1029    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032      as_fn_error "invalid feature name: $ac_useropt"
1033    ac_useropt_orig=$ac_useropt
1034    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035    case $ac_user_opts in
1036      *"
1037"enable_$ac_useropt"
1038"*) ;;
1039      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040	 ac_unrecognized_sep=', ';;
1041    esac
1042    eval enable_$ac_useropt=no ;;
1043
1044  -docdir | --docdir | --docdi | --doc | --do)
1045    ac_prev=docdir ;;
1046  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047    docdir=$ac_optarg ;;
1048
1049  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050    ac_prev=dvidir ;;
1051  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052    dvidir=$ac_optarg ;;
1053
1054  -enable-* | --enable-*)
1055    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056    # Reject names that are not valid shell variable names.
1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058      as_fn_error "invalid feature name: $ac_useropt"
1059    ac_useropt_orig=$ac_useropt
1060    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061    case $ac_user_opts in
1062      *"
1063"enable_$ac_useropt"
1064"*) ;;
1065      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066	 ac_unrecognized_sep=', ';;
1067    esac
1068    eval enable_$ac_useropt=\$ac_optarg ;;
1069
1070  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072  | --exec | --exe | --ex)
1073    ac_prev=exec_prefix ;;
1074  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076  | --exec=* | --exe=* | --ex=*)
1077    exec_prefix=$ac_optarg ;;
1078
1079  -gas | --gas | --ga | --g)
1080    # Obsolete; use --with-gas.
1081    with_gas=yes ;;
1082
1083  -help | --help | --hel | --he | -h)
1084    ac_init_help=long ;;
1085  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086    ac_init_help=recursive ;;
1087  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088    ac_init_help=short ;;
1089
1090  -host | --host | --hos | --ho)
1091    ac_prev=host_alias ;;
1092  -host=* | --host=* | --hos=* | --ho=*)
1093    host_alias=$ac_optarg ;;
1094
1095  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096    ac_prev=htmldir ;;
1097  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098  | --ht=*)
1099    htmldir=$ac_optarg ;;
1100
1101  -includedir | --includedir | --includedi | --included | --include \
1102  | --includ | --inclu | --incl | --inc)
1103    ac_prev=includedir ;;
1104  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105  | --includ=* | --inclu=* | --incl=* | --inc=*)
1106    includedir=$ac_optarg ;;
1107
1108  -infodir | --infodir | --infodi | --infod | --info | --inf)
1109    ac_prev=infodir ;;
1110  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111    infodir=$ac_optarg ;;
1112
1113  -libdir | --libdir | --libdi | --libd)
1114    ac_prev=libdir ;;
1115  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116    libdir=$ac_optarg ;;
1117
1118  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119  | --libexe | --libex | --libe)
1120    ac_prev=libexecdir ;;
1121  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122  | --libexe=* | --libex=* | --libe=*)
1123    libexecdir=$ac_optarg ;;
1124
1125  -localedir | --localedir | --localedi | --localed | --locale)
1126    ac_prev=localedir ;;
1127  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128    localedir=$ac_optarg ;;
1129
1130  -localstatedir | --localstatedir | --localstatedi | --localstated \
1131  | --localstate | --localstat | --localsta | --localst | --locals)
1132    ac_prev=localstatedir ;;
1133  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135    localstatedir=$ac_optarg ;;
1136
1137  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138    ac_prev=mandir ;;
1139  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140    mandir=$ac_optarg ;;
1141
1142  -nfp | --nfp | --nf)
1143    # Obsolete; use --without-fp.
1144    with_fp=no ;;
1145
1146  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147  | --no-cr | --no-c | -n)
1148    no_create=yes ;;
1149
1150  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152    no_recursion=yes ;;
1153
1154  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156  | --oldin | --oldi | --old | --ol | --o)
1157    ac_prev=oldincludedir ;;
1158  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161    oldincludedir=$ac_optarg ;;
1162
1163  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164    ac_prev=prefix ;;
1165  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166    prefix=$ac_optarg ;;
1167
1168  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169  | --program-pre | --program-pr | --program-p)
1170    ac_prev=program_prefix ;;
1171  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173    program_prefix=$ac_optarg ;;
1174
1175  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176  | --program-suf | --program-su | --program-s)
1177    ac_prev=program_suffix ;;
1178  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180    program_suffix=$ac_optarg ;;
1181
1182  -program-transform-name | --program-transform-name \
1183  | --program-transform-nam | --program-transform-na \
1184  | --program-transform-n | --program-transform- \
1185  | --program-transform | --program-transfor \
1186  | --program-transfo | --program-transf \
1187  | --program-trans | --program-tran \
1188  | --progr-tra | --program-tr | --program-t)
1189    ac_prev=program_transform_name ;;
1190  -program-transform-name=* | --program-transform-name=* \
1191  | --program-transform-nam=* | --program-transform-na=* \
1192  | --program-transform-n=* | --program-transform-=* \
1193  | --program-transform=* | --program-transfor=* \
1194  | --program-transfo=* | --program-transf=* \
1195  | --program-trans=* | --program-tran=* \
1196  | --progr-tra=* | --program-tr=* | --program-t=*)
1197    program_transform_name=$ac_optarg ;;
1198
1199  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200    ac_prev=pdfdir ;;
1201  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202    pdfdir=$ac_optarg ;;
1203
1204  -psdir | --psdir | --psdi | --psd | --ps)
1205    ac_prev=psdir ;;
1206  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207    psdir=$ac_optarg ;;
1208
1209  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210  | -silent | --silent | --silen | --sile | --sil)
1211    silent=yes ;;
1212
1213  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214    ac_prev=sbindir ;;
1215  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216  | --sbi=* | --sb=*)
1217    sbindir=$ac_optarg ;;
1218
1219  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221  | --sharedst | --shareds | --shared | --share | --shar \
1222  | --sha | --sh)
1223    ac_prev=sharedstatedir ;;
1224  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227  | --sha=* | --sh=*)
1228    sharedstatedir=$ac_optarg ;;
1229
1230  -site | --site | --sit)
1231    ac_prev=site ;;
1232  -site=* | --site=* | --sit=*)
1233    site=$ac_optarg ;;
1234
1235  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236    ac_prev=srcdir ;;
1237  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238    srcdir=$ac_optarg ;;
1239
1240  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241  | --syscon | --sysco | --sysc | --sys | --sy)
1242    ac_prev=sysconfdir ;;
1243  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245    sysconfdir=$ac_optarg ;;
1246
1247  -target | --target | --targe | --targ | --tar | --ta | --t)
1248    ac_prev=target_alias ;;
1249  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250    target_alias=$ac_optarg ;;
1251
1252  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253    verbose=yes ;;
1254
1255  -version | --version | --versio | --versi | --vers | -V)
1256    ac_init_version=: ;;
1257
1258  -with-* | --with-*)
1259    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260    # Reject names that are not valid shell variable names.
1261    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262      as_fn_error "invalid package name: $ac_useropt"
1263    ac_useropt_orig=$ac_useropt
1264    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265    case $ac_user_opts in
1266      *"
1267"with_$ac_useropt"
1268"*) ;;
1269      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270	 ac_unrecognized_sep=', ';;
1271    esac
1272    eval with_$ac_useropt=\$ac_optarg ;;
1273
1274  -without-* | --without-*)
1275    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276    # Reject names that are not valid shell variable names.
1277    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278      as_fn_error "invalid package name: $ac_useropt"
1279    ac_useropt_orig=$ac_useropt
1280    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281    case $ac_user_opts in
1282      *"
1283"with_$ac_useropt"
1284"*) ;;
1285      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286	 ac_unrecognized_sep=', ';;
1287    esac
1288    eval with_$ac_useropt=no ;;
1289
1290  --x)
1291    # Obsolete; use --with-x.
1292    with_x=yes ;;
1293
1294  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295  | --x-incl | --x-inc | --x-in | --x-i)
1296    ac_prev=x_includes ;;
1297  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299    x_includes=$ac_optarg ;;
1300
1301  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303    ac_prev=x_libraries ;;
1304  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306    x_libraries=$ac_optarg ;;
1307
1308  -*) as_fn_error "unrecognized option: \`$ac_option'
1309Try \`$0 --help' for more information."
1310    ;;
1311
1312  *=*)
1313    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314    # Reject names that are not valid shell variable names.
1315    case $ac_envvar in #(
1316      '' | [0-9]* | *[!_$as_cr_alnum]* )
1317      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1318    esac
1319    eval $ac_envvar=\$ac_optarg
1320    export $ac_envvar ;;
1321
1322  *)
1323    # FIXME: should be removed in autoconf 3.0.
1324    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328    ;;
1329
1330  esac
1331done
1332
1333if test -n "$ac_prev"; then
1334  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335  as_fn_error "missing argument to $ac_option"
1336fi
1337
1338if test -n "$ac_unrecognized_opts"; then
1339  case $enable_option_checking in
1340    no) ;;
1341    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1342    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343  esac
1344fi
1345
1346# Check all directory arguments for consistency.
1347for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348		datadir sysconfdir sharedstatedir localstatedir includedir \
1349		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350		libdir localedir mandir
1351do
1352  eval ac_val=\$$ac_var
1353  # Remove trailing slashes.
1354  case $ac_val in
1355    */ )
1356      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357      eval $ac_var=\$ac_val;;
1358  esac
1359  # Be sure to have absolute directory names.
1360  case $ac_val in
1361    [\\/$]* | ?:[\\/]* )  continue;;
1362    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363  esac
1364  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1365done
1366
1367# There might be people who depend on the old broken behavior: `$host'
1368# used to hold the argument of --host etc.
1369# FIXME: To remove some day.
1370build=$build_alias
1371host=$host_alias
1372target=$target_alias
1373
1374# FIXME: To remove some day.
1375if test "x$host_alias" != x; then
1376  if test "x$build_alias" = x; then
1377    cross_compiling=maybe
1378    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1379    If a cross compiler is detected then cross compile mode will be used." >&2
1380  elif test "x$build_alias" != "x$host_alias"; then
1381    cross_compiling=yes
1382  fi
1383fi
1384
1385ac_tool_prefix=
1386test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387
1388test "$silent" = yes && exec 6>/dev/null
1389
1390
1391ac_pwd=`pwd` && test -n "$ac_pwd" &&
1392ac_ls_di=`ls -di .` &&
1393ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1394  as_fn_error "working directory cannot be determined"
1395test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396  as_fn_error "pwd does not report name of working directory"
1397
1398
1399# Find the source files, if location was not specified.
1400if test -z "$srcdir"; then
1401  ac_srcdir_defaulted=yes
1402  # Try the directory containing this script, then the parent directory.
1403  ac_confdir=`$as_dirname -- "$as_myself" ||
1404$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405	 X"$as_myself" : 'X\(//\)[^/]' \| \
1406	 X"$as_myself" : 'X\(//\)$' \| \
1407	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1408$as_echo X"$as_myself" |
1409    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)[^/].*/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\/\)$/{
1418	    s//\1/
1419	    q
1420	  }
1421	  /^X\(\/\).*/{
1422	    s//\1/
1423	    q
1424	  }
1425	  s/.*/./; q'`
1426  srcdir=$ac_confdir
1427  if test ! -r "$srcdir/$ac_unique_file"; then
1428    srcdir=..
1429  fi
1430else
1431  ac_srcdir_defaulted=no
1432fi
1433if test ! -r "$srcdir/$ac_unique_file"; then
1434  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1436fi
1437ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438ac_abs_confdir=`(
1439	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1440	pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443  srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453  eval ac_env_${ac_var}_value=\$${ac_var}
1454  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
1457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462  # Omit some internal or obsolete options to make the list less imposing.
1463  # This message is too long to be a string in the A/UX 3.1 sh.
1464  cat <<_ACEOF
1465\`configure' configures libXau 1.0.6 to adapt to many kinds of systems.
1466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475  -h, --help              display this help and exit
1476      --help=short        display options specific to this package
1477      --help=recursive    display the short help of all the included packages
1478  -V, --version           display version information and exit
1479  -q, --quiet, --silent   do not print \`checking...' messages
1480      --cache-file=FILE   cache test results in FILE [disabled]
1481  -C, --config-cache      alias for \`--cache-file=config.cache'
1482  -n, --no-create         do not create output files
1483      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
1485Installation directories:
1486  --prefix=PREFIX         install architecture-independent files in PREFIX
1487                          [$ac_default_prefix]
1488  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489                          [PREFIX]
1490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499  --bindir=DIR            user executables [EPREFIX/bin]
1500  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1501  --libexecdir=DIR        program executables [EPREFIX/libexec]
1502  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1503  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1504  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1505  --libdir=DIR            object code libraries [EPREFIX/lib]
1506  --includedir=DIR        C header files [PREFIX/include]
1507  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1508  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1509  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1510  --infodir=DIR           info documentation [DATAROOTDIR/info]
1511  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1512  --mandir=DIR            man documentation [DATAROOTDIR/man]
1513  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXau]
1514  --htmldir=DIR           html documentation [DOCDIR]
1515  --dvidir=DIR            dvi documentation [DOCDIR]
1516  --pdfdir=DIR            pdf documentation [DOCDIR]
1517  --psdir=DIR             ps documentation [DOCDIR]
1518_ACEOF
1519
1520  cat <<\_ACEOF
1521
1522Program names:
1523  --program-prefix=PREFIX            prepend PREFIX to installed program names
1524  --program-suffix=SUFFIX            append SUFFIX to installed program names
1525  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1526
1527System types:
1528  --build=BUILD     configure for building on BUILD [guessed]
1529  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1530_ACEOF
1531fi
1532
1533if test -n "$ac_init_help"; then
1534  case $ac_init_help in
1535     short | recursive ) echo "Configuration of libXau 1.0.6:";;
1536   esac
1537  cat <<\_ACEOF
1538
1539Optional Features:
1540  --disable-option-checking  ignore unrecognized --enable/--with options
1541  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1542  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1543  --enable-maintainer-mode  enable make rules and dependencies not useful
1544			  (and sometimes confusing) to the casual installer
1545  --disable-dependency-tracking  speeds up one-time build
1546  --enable-dependency-tracking   do not reject slow dependency extractors
1547  --enable-strict-compilation
1548                          Enable all warnings from compiler and make them
1549                          errors (default: disabled)
1550  --enable-silent-rules          less verbose build output (undo: `make V=1')
1551  --disable-silent-rules         verbose build output (undo: `make V=0')
1552  --enable-shared[=PKGS]  build shared libraries [default=yes]
1553  --enable-static[=PKGS]  build static libraries [default=yes]
1554  --enable-fast-install[=PKGS]
1555                          optimize for fast installation [default=yes]
1556  --disable-libtool-lock  avoid locking (might break parallel builds)
1557  --disable-xthreads      Disable libXau support for Multithreading
1558  --enable-lint-library   Create lint library (default: disabled)
1559
1560Optional Packages:
1561  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563  --with-pic              try to use only PIC/non-PIC objects [default=use
1564                          both]
1565  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1566  --with-lint             Use a lint-style source code checker (default:
1567                          disabled)
1568
1569Some influential environment variables:
1570  CC          C compiler command
1571  CFLAGS      C compiler flags
1572  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1573              nonstandard directory <lib dir>
1574  LIBS        libraries to pass to the linker, e.g. -l<library>
1575  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1576              you have headers in a nonstandard directory <include dir>
1577  CPP         C preprocessor
1578  PKG_CONFIG  path to pkg-config utility
1579  PKG_CONFIG_PATH
1580              directories to add to pkg-config's search path
1581  PKG_CONFIG_LIBDIR
1582              path overriding pkg-config's built-in search path
1583  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
1584  XAU_LIBS    linker flags for XAU, overriding pkg-config
1585  LINT        Path to a lint-style command
1586  LINT_FLAGS  Flags for the lint-style command
1587
1588Use these variables to override the choices made by `configure' or to help
1589it to find libraries and programs with nonstandard names/locations.
1590
1591Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1592_ACEOF
1593ac_status=$?
1594fi
1595
1596if test "$ac_init_help" = "recursive"; then
1597  # If there are subdirs, report their specific --help.
1598  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599    test -d "$ac_dir" ||
1600      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601      continue
1602    ac_builddir=.
1603
1604case "$ac_dir" in
1605.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606*)
1607  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608  # A ".." for each directory in $ac_dir_suffix.
1609  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610  case $ac_top_builddir_sub in
1611  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613  esac ;;
1614esac
1615ac_abs_top_builddir=$ac_pwd
1616ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617# for backward compatibility:
1618ac_top_builddir=$ac_top_build_prefix
1619
1620case $srcdir in
1621  .)  # We are building in place.
1622    ac_srcdir=.
1623    ac_top_srcdir=$ac_top_builddir_sub
1624    ac_abs_top_srcdir=$ac_pwd ;;
1625  [\\/]* | ?:[\\/]* )  # Absolute name.
1626    ac_srcdir=$srcdir$ac_dir_suffix;
1627    ac_top_srcdir=$srcdir
1628    ac_abs_top_srcdir=$srcdir ;;
1629  *) # Relative name.
1630    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631    ac_top_srcdir=$ac_top_build_prefix$srcdir
1632    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633esac
1634ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636    cd "$ac_dir" || { ac_status=$?; continue; }
1637    # Check for guested configure.
1638    if test -f "$ac_srcdir/configure.gnu"; then
1639      echo &&
1640      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641    elif test -f "$ac_srcdir/configure"; then
1642      echo &&
1643      $SHELL "$ac_srcdir/configure" --help=recursive
1644    else
1645      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646    fi || ac_status=$?
1647    cd "$ac_pwd" || { ac_status=$?; break; }
1648  done
1649fi
1650
1651test -n "$ac_init_help" && exit $ac_status
1652if $ac_init_version; then
1653  cat <<\_ACEOF
1654libXau configure 1.0.6
1655generated by GNU Autoconf 2.65
1656
1657Copyright (C) 2009 Free Software Foundation, Inc.
1658This configure script is free software; the Free Software Foundation
1659gives unlimited permission to copy, distribute and modify it.
1660_ACEOF
1661  exit
1662fi
1663
1664## ------------------------ ##
1665## Autoconf initialization. ##
1666## ------------------------ ##
1667
1668# ac_fn_c_try_compile LINENO
1669# --------------------------
1670# Try to compile conftest.$ac_ext, and return whether this succeeded.
1671ac_fn_c_try_compile ()
1672{
1673  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674  rm -f conftest.$ac_objext
1675  if { { ac_try="$ac_compile"
1676case "(($ac_try" in
1677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678  *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682  (eval "$ac_compile") 2>conftest.err
1683  ac_status=$?
1684  if test -s conftest.err; then
1685    grep -v '^ *+' conftest.err >conftest.er1
1686    cat conftest.er1 >&5
1687    mv -f conftest.er1 conftest.err
1688  fi
1689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690  test $ac_status = 0; } && {
1691	 test -z "$ac_c_werror_flag" ||
1692	 test ! -s conftest.err
1693       } && test -s conftest.$ac_objext; then :
1694  ac_retval=0
1695else
1696  $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699	ac_retval=1
1700fi
1701  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_compile
1705
1706# ac_fn_c_check_decl LINENO SYMBOL VAR
1707# ------------------------------------
1708# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1709ac_fn_c_check_decl ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1713$as_echo_n "checking whether $2 is declared... " >&6; }
1714if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1715  $as_echo_n "(cached) " >&6
1716else
1717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h.  */
1719$4
1720int
1721main ()
1722{
1723#ifndef $2
1724  (void) $2;
1725#endif
1726
1727  ;
1728  return 0;
1729}
1730_ACEOF
1731if ac_fn_c_try_compile "$LINENO"; then :
1732  eval "$3=yes"
1733else
1734  eval "$3=no"
1735fi
1736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737fi
1738eval ac_res=\$$3
1739	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742
1743} # ac_fn_c_check_decl
1744
1745# ac_fn_c_try_cpp LINENO
1746# ----------------------
1747# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_cpp ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  if { { ac_try="$ac_cpp conftest.$ac_ext"
1752case "(($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_cpp conftest.$ac_ext") 2>conftest.err
1759  ac_status=$?
1760  if test -s conftest.err; then
1761    grep -v '^ *+' conftest.err >conftest.er1
1762    cat conftest.er1 >&5
1763    mv -f conftest.er1 conftest.err
1764  fi
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; } >/dev/null && {
1767	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768	 test ! -s conftest.err
1769       }; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775    ac_retval=1
1776fi
1777  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778  as_fn_set_status $ac_retval
1779
1780} # ac_fn_c_try_cpp
1781
1782# ac_fn_c_try_run LINENO
1783# ----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785# that executables *can* be run.
1786ac_fn_c_try_run ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792  *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796  (eval "$ac_link") 2>&5
1797  ac_status=$?
1798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800  { { case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_try") 2>&5
1807  ac_status=$?
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; }; }; then :
1810  ac_retval=0
1811else
1812  $as_echo "$as_me: program exited with status $ac_status" >&5
1813       $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816       ac_retval=$ac_status
1817fi
1818  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820  as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_run
1823
1824# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825# -------------------------------------------------------
1826# Tests whether HEADER exists and can be compiled using the include files in
1827# INCLUDES, setting the cache variable VAR accordingly.
1828ac_fn_c_check_header_compile ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
1833if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834  $as_echo_n "(cached) " >&6
1835else
1836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h.  */
1838$4
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842  eval "$3=yes"
1843else
1844  eval "$3=no"
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847fi
1848eval ac_res=\$$3
1849	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
1851  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853} # ac_fn_c_check_header_compile
1854
1855# ac_fn_c_try_link LINENO
1856# -----------------------
1857# Try to link conftest.$ac_ext, and return whether this succeeded.
1858ac_fn_c_try_link ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  rm -f conftest.$ac_objext conftest$ac_exeext
1862  if { { ac_try="$ac_link"
1863case "(($ac_try" in
1864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865  *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869  (eval "$ac_link") 2>conftest.err
1870  ac_status=$?
1871  if test -s conftest.err; then
1872    grep -v '^ *+' conftest.err >conftest.er1
1873    cat conftest.er1 >&5
1874    mv -f conftest.er1 conftest.err
1875  fi
1876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877  test $ac_status = 0; } && {
1878	 test -z "$ac_c_werror_flag" ||
1879	 test ! -s conftest.err
1880       } && test -s conftest$ac_exeext && {
1881	 test "$cross_compiling" = yes ||
1882	 $as_test_x conftest$ac_exeext
1883       }; then :
1884  ac_retval=0
1885else
1886  $as_echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889	ac_retval=1
1890fi
1891  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893  # interfere with the next link command; also delete a directory that is
1894  # left behind by Apple's compiler.  We do this before executing the actions.
1895  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897  as_fn_set_status $ac_retval
1898
1899} # ac_fn_c_try_link
1900
1901# ac_fn_c_check_func LINENO FUNC VAR
1902# ----------------------------------
1903# Tests whether FUNC exists, setting the cache variable VAR accordingly
1904ac_fn_c_check_func ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908$as_echo_n "checking for $2... " >&6; }
1909if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1910  $as_echo_n "(cached) " >&6
1911else
1912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h.  */
1914/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1915   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1916#define $2 innocuous_$2
1917
1918/* System header to define __stub macros and hopefully few prototypes,
1919    which can conflict with char $2 (); below.
1920    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1921    <limits.h> exists even on freestanding compilers.  */
1922
1923#ifdef __STDC__
1924# include <limits.h>
1925#else
1926# include <assert.h>
1927#endif
1928
1929#undef $2
1930
1931/* Override any GCC internal prototype to avoid an error.
1932   Use char because int might match the return type of a GCC
1933   builtin and then its argument prototype would still apply.  */
1934#ifdef __cplusplus
1935extern "C"
1936#endif
1937char $2 ();
1938/* The GNU C library defines this for functions which it implements
1939    to always fail with ENOSYS.  Some functions are actually named
1940    something starting with __ and the normal name is an alias.  */
1941#if defined __stub_$2 || defined __stub___$2
1942choke me
1943#endif
1944
1945int
1946main ()
1947{
1948return $2 ();
1949  ;
1950  return 0;
1951}
1952_ACEOF
1953if ac_fn_c_try_link "$LINENO"; then :
1954  eval "$3=yes"
1955else
1956  eval "$3=no"
1957fi
1958rm -f core conftest.err conftest.$ac_objext \
1959    conftest$ac_exeext conftest.$ac_ext
1960fi
1961eval ac_res=\$$3
1962	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
1964  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965
1966} # ac_fn_c_check_func
1967cat >config.log <<_ACEOF
1968This file contains any messages produced by compilers while
1969running configure, to aid debugging if configure makes a mistake.
1970
1971It was created by libXau $as_me 1.0.6, which was
1972generated by GNU Autoconf 2.65.  Invocation command line was
1973
1974  $ $0 $@
1975
1976_ACEOF
1977exec 5>>config.log
1978{
1979cat <<_ASUNAME
1980## --------- ##
1981## Platform. ##
1982## --------- ##
1983
1984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989
1990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1992
1993/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1994/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1996/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1997/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1998/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1999/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2000
2001_ASUNAME
2002
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006  IFS=$as_save_IFS
2007  test -z "$as_dir" && as_dir=.
2008    $as_echo "PATH: $as_dir"
2009  done
2010IFS=$as_save_IFS
2011
2012} >&5
2013
2014cat >&5 <<_ACEOF
2015
2016
2017## ----------- ##
2018## Core tests. ##
2019## ----------- ##
2020
2021_ACEOF
2022
2023
2024# Keep a trace of the command line.
2025# Strip out --no-create and --no-recursion so they do not pile up.
2026# Strip out --silent because we don't want to record it for future runs.
2027# Also quote any args containing shell meta-characters.
2028# Make two passes to allow for proper duplicate-argument suppression.
2029ac_configure_args=
2030ac_configure_args0=
2031ac_configure_args1=
2032ac_must_keep_next=false
2033for ac_pass in 1 2
2034do
2035  for ac_arg
2036  do
2037    case $ac_arg in
2038    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040    | -silent | --silent | --silen | --sile | --sil)
2041      continue ;;
2042    *\'*)
2043      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044    esac
2045    case $ac_pass in
2046    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2047    2)
2048      as_fn_append ac_configure_args1 " '$ac_arg'"
2049      if test $ac_must_keep_next = true; then
2050	ac_must_keep_next=false # Got value, back to normal.
2051      else
2052	case $ac_arg in
2053	  *=* | --config-cache | -C | -disable-* | --disable-* \
2054	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056	  | -with-* | --with-* | -without-* | --without-* | --x)
2057	    case "$ac_configure_args0 " in
2058	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059	    esac
2060	    ;;
2061	  -* ) ac_must_keep_next=true ;;
2062	esac
2063      fi
2064      as_fn_append ac_configure_args " '$ac_arg'"
2065      ;;
2066    esac
2067  done
2068done
2069{ ac_configure_args0=; unset ac_configure_args0;}
2070{ ac_configure_args1=; unset ac_configure_args1;}
2071
2072# When interrupted or exit'd, cleanup temporary files, and complete
2073# config.log.  We remove comments because anyway the quotes in there
2074# would cause problems or look ugly.
2075# WARNING: Use '\'' to represent an apostrophe within the trap.
2076# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077trap 'exit_status=$?
2078  # Save into config.log some information that might help in debugging.
2079  {
2080    echo
2081
2082    cat <<\_ASBOX
2083## ---------------- ##
2084## Cache variables. ##
2085## ---------------- ##
2086_ASBOX
2087    echo
2088    # The following way of writing the cache mishandles newlines in values,
2089(
2090  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2091    eval ac_val=\$$ac_var
2092    case $ac_val in #(
2093    *${as_nl}*)
2094      case $ac_var in #(
2095      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2096$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2097      esac
2098      case $ac_var in #(
2099      _ | IFS | as_nl) ;; #(
2100      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2101      *) { eval $ac_var=; unset $ac_var;} ;;
2102      esac ;;
2103    esac
2104  done
2105  (set) 2>&1 |
2106    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2107    *${as_nl}ac_space=\ *)
2108      sed -n \
2109	"s/'\''/'\''\\\\'\'''\''/g;
2110	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111      ;; #(
2112    *)
2113      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2114      ;;
2115    esac |
2116    sort
2117)
2118    echo
2119
2120    cat <<\_ASBOX
2121## ----------------- ##
2122## Output variables. ##
2123## ----------------- ##
2124_ASBOX
2125    echo
2126    for ac_var in $ac_subst_vars
2127    do
2128      eval ac_val=\$$ac_var
2129      case $ac_val in
2130      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131      esac
2132      $as_echo "$ac_var='\''$ac_val'\''"
2133    done | sort
2134    echo
2135
2136    if test -n "$ac_subst_files"; then
2137      cat <<\_ASBOX
2138## ------------------- ##
2139## File substitutions. ##
2140## ------------------- ##
2141_ASBOX
2142      echo
2143      for ac_var in $ac_subst_files
2144      do
2145	eval ac_val=\$$ac_var
2146	case $ac_val in
2147	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148	esac
2149	$as_echo "$ac_var='\''$ac_val'\''"
2150      done | sort
2151      echo
2152    fi
2153
2154    if test -s confdefs.h; then
2155      cat <<\_ASBOX
2156## ----------- ##
2157## confdefs.h. ##
2158## ----------- ##
2159_ASBOX
2160      echo
2161      cat confdefs.h
2162      echo
2163    fi
2164    test "$ac_signal" != 0 &&
2165      $as_echo "$as_me: caught signal $ac_signal"
2166    $as_echo "$as_me: exit $exit_status"
2167  } >&5
2168  rm -f core *.core core.conftest.* &&
2169    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170    exit $exit_status
2171' 0
2172for ac_signal in 1 2 13 15; do
2173  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174done
2175ac_signal=0
2176
2177# confdefs.h avoids OS command line length limits that DEFS can exceed.
2178rm -f -r conftest* confdefs.h
2179
2180$as_echo "/* confdefs.h */" > confdefs.h
2181
2182# Predefined preprocessor variables.
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_NAME "$PACKAGE_NAME"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_VERSION "$PACKAGE_VERSION"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_STRING "$PACKAGE_STRING"
2198_ACEOF
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2202_ACEOF
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_URL "$PACKAGE_URL"
2206_ACEOF
2207
2208
2209# Let the site file select an alternate cache file if it wants to.
2210# Prefer an explicitly selected file to automatically selected ones.
2211ac_site_file1=NONE
2212ac_site_file2=NONE
2213if test -n "$CONFIG_SITE"; then
2214  ac_site_file1=$CONFIG_SITE
2215elif test "x$prefix" != xNONE; then
2216  ac_site_file1=$prefix/share/config.site
2217  ac_site_file2=$prefix/etc/config.site
2218else
2219  ac_site_file1=$ac_default_prefix/share/config.site
2220  ac_site_file2=$ac_default_prefix/etc/config.site
2221fi
2222for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223do
2224  test "x$ac_site_file" = xNONE && continue
2225  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228    sed 's/^/| /' "$ac_site_file" >&5
2229    . "$ac_site_file"
2230  fi
2231done
2232
2233if test -r "$cache_file"; then
2234  # Some versions of bash will fail to source /dev/null (special files
2235  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2236  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2237    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238$as_echo "$as_me: loading cache $cache_file" >&6;}
2239    case $cache_file in
2240      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241      *)                      . "./$cache_file";;
2242    esac
2243  fi
2244else
2245  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246$as_echo "$as_me: creating cache $cache_file" >&6;}
2247  >$cache_file
2248fi
2249
2250# Check that the precious variables saved in the cache have kept the same
2251# value.
2252ac_cache_corrupted=false
2253for ac_var in $ac_precious_vars; do
2254  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255  eval ac_new_set=\$ac_env_${ac_var}_set
2256  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257  eval ac_new_val=\$ac_env_${ac_var}_value
2258  case $ac_old_set,$ac_new_set in
2259    set,)
2260      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262      ac_cache_corrupted=: ;;
2263    ,set)
2264      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266      ac_cache_corrupted=: ;;
2267    ,);;
2268    *)
2269      if test "x$ac_old_val" != "x$ac_new_val"; then
2270	# differences in whitespace do not lead to failure.
2271	ac_old_val_w=`echo x $ac_old_val`
2272	ac_new_val_w=`echo x $ac_new_val`
2273	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276	  ac_cache_corrupted=:
2277	else
2278	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280	  eval $ac_var=\$ac_old_val
2281	fi
2282	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2283$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2284	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2285$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2286      fi;;
2287  esac
2288  # Pass precious variables to config.status.
2289  if test "$ac_new_set" = set; then
2290    case $ac_new_val in
2291    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292    *) ac_arg=$ac_var=$ac_new_val ;;
2293    esac
2294    case " $ac_configure_args " in
2295      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2296      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297    esac
2298  fi
2299done
2300if $ac_cache_corrupted; then
2301  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2306fi
2307## -------------------- ##
2308## Main body of script. ##
2309## -------------------- ##
2310
2311ac_ext=c
2312ac_cpp='$CPP $CPPFLAGS'
2313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316
2317
2318am__api_version='1.11'
2319
2320ac_aux_dir=
2321for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2322  for ac_t in install-sh install.sh shtool; do
2323    if test -f "$ac_dir/$ac_t"; then
2324      ac_aux_dir=$ac_dir
2325      ac_install_sh="$ac_aux_dir/$ac_t -c"
2326      break 2
2327    fi
2328  done
2329done
2330if test -z "$ac_aux_dir"; then
2331  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2332fi
2333
2334# These three variables are undocumented and unsupported,
2335# and are intended to be withdrawn in a future Autoconf release.
2336# They can cause serious problems if a builder's source tree is in a directory
2337# whose full name contains unusual characters.
2338ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2339ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2340ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2341
2342
2343# Find a good install program.  We prefer a C program (faster),
2344# so one script is as good as another.  But avoid the broken or
2345# incompatible versions:
2346# SysV /etc/install, /usr/sbin/install
2347# SunOS /usr/etc/install
2348# IRIX /sbin/install
2349# AIX /bin/install
2350# AmigaOS /C/install, which installs bootblocks on floppy discs
2351# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2352# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2353# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2354# OS/2's system install, which has a completely different semantic
2355# ./install, which can be erroneously created by make from ./install.sh.
2356# Reject install programs that cannot install multiple files.
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2358$as_echo_n "checking for a BSD-compatible install... " >&6; }
2359if test -z "$INSTALL"; then
2360if test "${ac_cv_path_install+set}" = set; then :
2361  $as_echo_n "(cached) " >&6
2362else
2363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366  IFS=$as_save_IFS
2367  test -z "$as_dir" && as_dir=.
2368    # Account for people who put trailing slashes in PATH elements.
2369case $as_dir/ in #((
2370  ./ | .// | /[cC]/* | \
2371  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2372  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2373  /usr/ucb/* ) ;;
2374  *)
2375    # OSF1 and SCO ODT 3.0 have their own names for install.
2376    # Don't use installbsd from OSF since it installs stuff as root
2377    # by default.
2378    for ac_prog in ginstall scoinst install; do
2379      for ac_exec_ext in '' $ac_executable_extensions; do
2380	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2381	  if test $ac_prog = install &&
2382	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383	    # AIX install.  It has an incompatible calling convention.
2384	    :
2385	  elif test $ac_prog = install &&
2386	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387	    # program-specific install script used by HP pwplus--don't use.
2388	    :
2389	  else
2390	    rm -rf conftest.one conftest.two conftest.dir
2391	    echo one > conftest.one
2392	    echo two > conftest.two
2393	    mkdir conftest.dir
2394	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2395	      test -s conftest.one && test -s conftest.two &&
2396	      test -s conftest.dir/conftest.one &&
2397	      test -s conftest.dir/conftest.two
2398	    then
2399	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2400	      break 3
2401	    fi
2402	  fi
2403	fi
2404      done
2405    done
2406    ;;
2407esac
2408
2409  done
2410IFS=$as_save_IFS
2411
2412rm -rf conftest.one conftest.two conftest.dir
2413
2414fi
2415  if test "${ac_cv_path_install+set}" = set; then
2416    INSTALL=$ac_cv_path_install
2417  else
2418    # As a last resort, use the slow shell script.  Don't cache a
2419    # value for INSTALL within a source directory, because that will
2420    # break other packages using the cache if that directory is
2421    # removed, or if the value is a relative name.
2422    INSTALL=$ac_install_sh
2423  fi
2424fi
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2426$as_echo "$INSTALL" >&6; }
2427
2428# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2429# It thinks the first close brace ends the variable substitution.
2430test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2431
2432test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2433
2434test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2435
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2437$as_echo_n "checking whether build environment is sane... " >&6; }
2438# Just in case
2439sleep 1
2440echo timestamp > conftest.file
2441# Reject unsafe characters in $srcdir or the absolute working directory
2442# name.  Accept space and tab only in the latter.
2443am_lf='
2444'
2445case `pwd` in
2446  *[\\\"\#\$\&\'\`$am_lf]*)
2447    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2448esac
2449case $srcdir in
2450  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2451    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2452esac
2453
2454# Do `set' in a subshell so we don't clobber the current shell's
2455# arguments.  Must try -L first in case configure is actually a
2456# symlink; some systems play weird games with the mod time of symlinks
2457# (eg FreeBSD returns the mod time of the symlink's containing
2458# directory).
2459if (
2460   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2461   if test "$*" = "X"; then
2462      # -L didn't work.
2463      set X `ls -t "$srcdir/configure" conftest.file`
2464   fi
2465   rm -f conftest.file
2466   if test "$*" != "X $srcdir/configure conftest.file" \
2467      && test "$*" != "X conftest.file $srcdir/configure"; then
2468
2469      # If neither matched, then we have a broken ls.  This can happen
2470      # if, for instance, CONFIG_SHELL is bash and it inherits a
2471      # broken ls alias from the environment.  This has actually
2472      # happened.  Such a system could not be considered "sane".
2473      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2474alias in your environment" "$LINENO" 5
2475   fi
2476
2477   test "$2" = conftest.file
2478   )
2479then
2480   # Ok.
2481   :
2482else
2483   as_fn_error "newly created file is older than distributed files!
2484Check your system clock" "$LINENO" 5
2485fi
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2487$as_echo "yes" >&6; }
2488test "$program_prefix" != NONE &&
2489  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2490# Use a double $ so make ignores it.
2491test "$program_suffix" != NONE &&
2492  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2493# Double any \ or $.
2494# By default was `s,x,x', remove it if useless.
2495ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2496program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2497
2498# expand $ac_aux_dir to an absolute path
2499am_aux_dir=`cd $ac_aux_dir && pwd`
2500
2501if test x"${MISSING+set}" != xset; then
2502  case $am_aux_dir in
2503  *\ * | *\	*)
2504    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2505  *)
2506    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2507  esac
2508fi
2509# Use eval to expand $SHELL
2510if eval "$MISSING --run true"; then
2511  am_missing_run="$MISSING --run "
2512else
2513  am_missing_run=
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2515$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2516fi
2517
2518if test x"${install_sh}" != xset; then
2519  case $am_aux_dir in
2520  *\ * | *\	*)
2521    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2522  *)
2523    install_sh="\${SHELL} $am_aux_dir/install-sh"
2524  esac
2525fi
2526
2527# Installed binaries are usually stripped using `strip' when the user
2528# run `make install-strip'.  However `strip' might not be the right
2529# tool to use in cross-compilation environments, therefore Automake
2530# will honor the `STRIP' environment variable to overrule this program.
2531if test "$cross_compiling" != no; then
2532  if test -n "$ac_tool_prefix"; then
2533  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2534set dummy ${ac_tool_prefix}strip; ac_word=$2
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
2537if test "${ac_cv_prog_STRIP+set}" = set; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  if test -n "$STRIP"; then
2541  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546  IFS=$as_save_IFS
2547  test -z "$as_dir" && as_dir=.
2548    for ac_exec_ext in '' $ac_executable_extensions; do
2549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552    break 2
2553  fi
2554done
2555  done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560STRIP=$ac_cv_prog_STRIP
2561if test -n "$STRIP"; then
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2563$as_echo "$STRIP" >&6; }
2564else
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566$as_echo "no" >&6; }
2567fi
2568
2569
2570fi
2571if test -z "$ac_cv_prog_STRIP"; then
2572  ac_ct_STRIP=$STRIP
2573  # Extract the first word of "strip", so it can be a program name with args.
2574set dummy strip; ac_word=$2
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  if test -n "$ac_ct_STRIP"; then
2581  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  test -z "$as_dir" && as_dir=.
2588    for ac_exec_ext in '' $ac_executable_extensions; do
2589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590    ac_cv_prog_ac_ct_STRIP="strip"
2591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592    break 2
2593  fi
2594done
2595  done
2596IFS=$as_save_IFS
2597
2598fi
2599fi
2600ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2601if test -n "$ac_ct_STRIP"; then
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2603$as_echo "$ac_ct_STRIP" >&6; }
2604else
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
2607fi
2608
2609  if test "x$ac_ct_STRIP" = x; then
2610    STRIP=":"
2611  else
2612    case $cross_compiling:$ac_tool_warned in
2613yes:)
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616ac_tool_warned=yes ;;
2617esac
2618    STRIP=$ac_ct_STRIP
2619  fi
2620else
2621  STRIP="$ac_cv_prog_STRIP"
2622fi
2623
2624fi
2625INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2626
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2628$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2629if test -z "$MKDIR_P"; then
2630  if test "${ac_cv_path_mkdir+set}" = set; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638    for ac_prog in mkdir gmkdir; do
2639	 for ac_exec_ext in '' $ac_executable_extensions; do
2640	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2641	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2642	     'mkdir (GNU coreutils) '* | \
2643	     'mkdir (coreutils) '* | \
2644	     'mkdir (fileutils) '4.1*)
2645	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2646	       break 3;;
2647	   esac
2648	 done
2649       done
2650  done
2651IFS=$as_save_IFS
2652
2653fi
2654
2655  test -d ./--version && rmdir ./--version
2656  if test "${ac_cv_path_mkdir+set}" = set; then
2657    MKDIR_P="$ac_cv_path_mkdir -p"
2658  else
2659    # As a last resort, use the slow shell script.  Don't cache a
2660    # value for MKDIR_P within a source directory, because that will
2661    # break other packages using the cache if that directory is
2662    # removed, or if the value is a relative name.
2663    MKDIR_P="$ac_install_sh -d"
2664  fi
2665fi
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2667$as_echo "$MKDIR_P" >&6; }
2668
2669mkdir_p="$MKDIR_P"
2670case $mkdir_p in
2671  [\\/$]* | ?:[\\/]*) ;;
2672  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2673esac
2674
2675for ac_prog in gawk mawk nawk awk
2676do
2677  # Extract the first word of "$ac_prog", so it can be a program name with args.
2678set dummy $ac_prog; ac_word=$2
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680$as_echo_n "checking for $ac_word... " >&6; }
2681if test "${ac_cv_prog_AWK+set}" = set; then :
2682  $as_echo_n "(cached) " >&6
2683else
2684  if test -n "$AWK"; then
2685  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690  IFS=$as_save_IFS
2691  test -z "$as_dir" && as_dir=.
2692    for ac_exec_ext in '' $ac_executable_extensions; do
2693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694    ac_cv_prog_AWK="$ac_prog"
2695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696    break 2
2697  fi
2698done
2699  done
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704AWK=$ac_cv_prog_AWK
2705if test -n "$AWK"; then
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2707$as_echo "$AWK" >&6; }
2708else
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711fi
2712
2713
2714  test -n "$AWK" && break
2715done
2716
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2719set x ${MAKE-make}
2720ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2721if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2722  $as_echo_n "(cached) " >&6
2723else
2724  cat >conftest.make <<\_ACEOF
2725SHELL = /bin/sh
2726all:
2727	@echo '@@@%%%=$(MAKE)=@@@%%%'
2728_ACEOF
2729# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2730case `${MAKE-make} -f conftest.make 2>/dev/null` in
2731  *@@@%%%=?*=@@@%%%*)
2732    eval ac_cv_prog_make_${ac_make}_set=yes;;
2733  *)
2734    eval ac_cv_prog_make_${ac_make}_set=no;;
2735esac
2736rm -f conftest.make
2737fi
2738if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740$as_echo "yes" >&6; }
2741  SET_MAKE=
2742else
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745  SET_MAKE="MAKE=${MAKE-make}"
2746fi
2747
2748rm -rf .tst 2>/dev/null
2749mkdir .tst 2>/dev/null
2750if test -d .tst; then
2751  am__leading_dot=.
2752else
2753  am__leading_dot=_
2754fi
2755rmdir .tst 2>/dev/null
2756
2757if test "`cd $srcdir && pwd`" != "`pwd`"; then
2758  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2759  # is not polluted with repeated "-I."
2760  am__isrc=' -I$(srcdir)'
2761  # test to see if srcdir already configured
2762  if test -f $srcdir/config.status; then
2763    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2764  fi
2765fi
2766
2767# test whether we have cygpath
2768if test -z "$CYGPATH_W"; then
2769  if (cygpath --version) >/dev/null 2>/dev/null; then
2770    CYGPATH_W='cygpath -w'
2771  else
2772    CYGPATH_W=echo
2773  fi
2774fi
2775
2776
2777# Define the identity of the package.
2778 PACKAGE='libXau'
2779 VERSION='1.0.6'
2780
2781
2782cat >>confdefs.h <<_ACEOF
2783#define PACKAGE "$PACKAGE"
2784_ACEOF
2785
2786
2787cat >>confdefs.h <<_ACEOF
2788#define VERSION "$VERSION"
2789_ACEOF
2790
2791# Some tools Automake needs.
2792
2793ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2794
2795
2796AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2797
2798
2799AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2800
2801
2802AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2803
2804
2805MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2806
2807# We need awk for the "check" target.  The system "awk" is bad on
2808# some platforms.
2809# Always define AMTAR for backward compatibility.
2810
2811AMTAR=${AMTAR-"${am_missing_run}tar"}
2812
2813am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2814
2815
2816
2817
2818
2819
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2821$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2822    # Check whether --enable-maintainer-mode was given.
2823if test "${enable_maintainer_mode+set}" = set; then :
2824  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2825else
2826  USE_MAINTAINER_MODE=no
2827fi
2828
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2830$as_echo "$USE_MAINTAINER_MODE" >&6; }
2831   if test $USE_MAINTAINER_MODE = yes; then
2832  MAINTAINER_MODE_TRUE=
2833  MAINTAINER_MODE_FALSE='#'
2834else
2835  MAINTAINER_MODE_TRUE='#'
2836  MAINTAINER_MODE_FALSE=
2837fi
2838
2839  MAINT=$MAINTAINER_MODE_TRUE
2840
2841
2842
2843ac_config_headers="$ac_config_headers config.h"
2844
2845
2846# Require xorg-macros: XORG_DEFAULT_OPTIONS
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858DEPDIR="${am__leading_dot}deps"
2859
2860ac_config_commands="$ac_config_commands depfiles"
2861
2862
2863am_make=${MAKE-make}
2864cat > confinc << 'END'
2865am__doit:
2866	@echo this is the am__doit target
2867.PHONY: am__doit
2868END
2869# If we don't find an include directive, just comment out the code.
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2871$as_echo_n "checking for style of include used by $am_make... " >&6; }
2872am__include="#"
2873am__quote=
2874_am_result=none
2875# First try GNU make style include.
2876echo "include confinc" > confmf
2877# Ignore all kinds of additional output from `make'.
2878case `$am_make -s -f confmf 2> /dev/null` in #(
2879*the\ am__doit\ target*)
2880  am__include=include
2881  am__quote=
2882  _am_result=GNU
2883  ;;
2884esac
2885# Now try BSD make style include.
2886if test "$am__include" = "#"; then
2887   echo '.include "confinc"' > confmf
2888   case `$am_make -s -f confmf 2> /dev/null` in #(
2889   *the\ am__doit\ target*)
2890     am__include=.include
2891     am__quote="\""
2892     _am_result=BSD
2893     ;;
2894   esac
2895fi
2896
2897
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2899$as_echo "$_am_result" >&6; }
2900rm -f confinc confmf
2901
2902# Check whether --enable-dependency-tracking was given.
2903if test "${enable_dependency_tracking+set}" = set; then :
2904  enableval=$enable_dependency_tracking;
2905fi
2906
2907if test "x$enable_dependency_tracking" != xno; then
2908  am_depcomp="$ac_aux_dir/depcomp"
2909  AMDEPBACKSLASH='\'
2910fi
2911 if test "x$enable_dependency_tracking" != xno; then
2912  AMDEP_TRUE=
2913  AMDEP_FALSE='#'
2914else
2915  AMDEP_TRUE='#'
2916  AMDEP_FALSE=
2917fi
2918
2919
2920ac_ext=c
2921ac_cpp='$CPP $CPPFLAGS'
2922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925if test -n "$ac_tool_prefix"; then
2926  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2927set dummy ${ac_tool_prefix}gcc; ac_word=$2
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929$as_echo_n "checking for $ac_word... " >&6; }
2930if test "${ac_cv_prog_CC+set}" = set; then :
2931  $as_echo_n "(cached) " >&6
2932else
2933  if test -n "$CC"; then
2934  ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939  IFS=$as_save_IFS
2940  test -z "$as_dir" && as_dir=.
2941    for ac_exec_ext in '' $ac_executable_extensions; do
2942  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945    break 2
2946  fi
2947done
2948  done
2949IFS=$as_save_IFS
2950
2951fi
2952fi
2953CC=$ac_cv_prog_CC
2954if test -n "$CC"; then
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956$as_echo "$CC" >&6; }
2957else
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960fi
2961
2962
2963fi
2964if test -z "$ac_cv_prog_CC"; then
2965  ac_ct_CC=$CC
2966  # Extract the first word of "gcc", so it can be a program name with args.
2967set dummy gcc; ac_word=$2
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2971  $as_echo_n "(cached) " >&6
2972else
2973  if test -n "$ac_ct_CC"; then
2974  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979  IFS=$as_save_IFS
2980  test -z "$as_dir" && as_dir=.
2981    for ac_exec_ext in '' $ac_executable_extensions; do
2982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983    ac_cv_prog_ac_ct_CC="gcc"
2984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985    break 2
2986  fi
2987done
2988  done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994if test -n "$ac_ct_CC"; then
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2996$as_echo "$ac_ct_CC" >&6; }
2997else
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002  if test "x$ac_ct_CC" = x; then
3003    CC=""
3004  else
3005    case $cross_compiling:$ac_tool_warned in
3006yes:)
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009ac_tool_warned=yes ;;
3010esac
3011    CC=$ac_ct_CC
3012  fi
3013else
3014  CC="$ac_cv_prog_CC"
3015fi
3016
3017if test -z "$CC"; then
3018          if test -n "$ac_tool_prefix"; then
3019    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3020set dummy ${ac_tool_prefix}cc; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if test "${ac_cv_prog_CC+set}" = set; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test -n "$CC"; then
3027  ac_cv_prog_CC="$CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034    for ac_exec_ext in '' $ac_executable_extensions; do
3035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036    ac_cv_prog_CC="${ac_tool_prefix}cc"
3037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041  done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049$as_echo "$CC" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056  fi
3057fi
3058if test -z "$CC"; then
3059  # Extract the first word of "cc", so it can be a program name with args.
3060set dummy cc; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if test "${ac_cv_prog_CC+set}" = set; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  if test -n "$CC"; then
3067  ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
3069  ac_prog_rejected=no
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073  IFS=$as_save_IFS
3074  test -z "$as_dir" && as_dir=.
3075    for ac_exec_ext in '' $ac_executable_extensions; do
3076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3078       ac_prog_rejected=yes
3079       continue
3080     fi
3081    ac_cv_prog_CC="cc"
3082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086  done
3087IFS=$as_save_IFS
3088
3089if test $ac_prog_rejected = yes; then
3090  # We found a bogon in the path, so make sure we never use it.
3091  set dummy $ac_cv_prog_CC
3092  shift
3093  if test $# != 0; then
3094    # We chose a different compiler from the bogus one.
3095    # However, it has the same basename, so the bogon will be chosen
3096    # first if we set CC to just the basename; use the full file name.
3097    shift
3098    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099  fi
3100fi
3101fi
3102fi
3103CC=$ac_cv_prog_CC
3104if test -n "$CC"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106$as_echo "$CC" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113fi
3114if test -z "$CC"; then
3115  if test -n "$ac_tool_prefix"; then
3116  for ac_prog in cl.exe
3117  do
3118    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3119set dummy $ac_tool_prefix$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_CC+set}" = set; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$CC"; then
3126  ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148$as_echo "$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 "$CC" && break
3156  done
3157fi
3158if test -z "$CC"; then
3159  ac_ct_CC=$CC
3160  for ac_prog in cl.exe
3161do
3162  # Extract the first word of "$ac_prog", so it can be a program name with args.
3163set dummy $ac_prog; ac_word=$2
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165$as_echo_n "checking for $ac_word... " >&6; }
3166if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3167  $as_echo_n "(cached) " >&6
3168else
3169  if test -n "$ac_ct_CC"; then
3170  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_exec_ext in '' $ac_executable_extensions; do
3178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179    ac_cv_prog_ac_ct_CC="$ac_prog"
3180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181    break 2
3182  fi
3183done
3184  done
3185IFS=$as_save_IFS
3186
3187fi
3188fi
3189ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190if test -n "$ac_ct_CC"; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192$as_echo "$ac_ct_CC" >&6; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199  test -n "$ac_ct_CC" && break
3200done
3201
3202  if test "x$ac_ct_CC" = x; then
3203    CC=""
3204  else
3205    case $cross_compiling:$ac_tool_warned in
3206yes:)
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209ac_tool_warned=yes ;;
3210esac
3211    CC=$ac_ct_CC
3212  fi
3213fi
3214
3215fi
3216
3217
3218test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220as_fn_error "no acceptable C compiler found in \$PATH
3221See \`config.log' for more details." "$LINENO" 5; }
3222
3223# Provide some information about the compiler.
3224$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3225set X $ac_compile
3226ac_compiler=$2
3227for ac_option in --version -v -V -qversion; do
3228  { { ac_try="$ac_compiler $ac_option >&5"
3229case "(($ac_try" in
3230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231  *) ac_try_echo=$ac_try;;
3232esac
3233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234$as_echo "$ac_try_echo"; } >&5
3235  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3236  ac_status=$?
3237  if test -s conftest.err; then
3238    sed '10a\
3239... rest of stderr output deleted ...
3240         10q' conftest.err >conftest.er1
3241    cat conftest.er1 >&5
3242  fi
3243  rm -f conftest.er1 conftest.err
3244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245  test $ac_status = 0; }
3246done
3247
3248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259ac_clean_files_save=$ac_clean_files
3260ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3261# Try to create an executable without -o first, disregard a.out.
3262# It will help us diagnose broken compilers, and finding out an intuition
3263# of exeext.
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3265$as_echo_n "checking whether the C compiler works... " >&6; }
3266ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3267
3268# The possible output files:
3269ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3270
3271ac_rmfiles=
3272for ac_file in $ac_files
3273do
3274  case $ac_file in
3275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3276    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277  esac
3278done
3279rm -f $ac_rmfiles
3280
3281if { { ac_try="$ac_link_default"
3282case "(($ac_try" in
3283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284  *) ac_try_echo=$ac_try;;
3285esac
3286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287$as_echo "$ac_try_echo"; } >&5
3288  (eval "$ac_link_default") 2>&5
3289  ac_status=$?
3290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291  test $ac_status = 0; }; then :
3292  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3295# so that the user can short-circuit this test for compilers unknown to
3296# Autoconf.
3297for ac_file in $ac_files ''
3298do
3299  test -f "$ac_file" || continue
3300  case $ac_file in
3301    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3302	;;
3303    [ab].out )
3304	# We found the default executable, but exeext='' is most
3305	# certainly right.
3306	break;;
3307    *.* )
3308	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3309	then :; else
3310	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311	fi
3312	# We set ac_cv_exeext here because the later test for it is not
3313	# safe: cross compilers may not add the suffix if given an `-o'
3314	# argument, so we may need to know it at that point already.
3315	# Even if this section looks crufty: it has the advantage of
3316	# actually working.
3317	break;;
3318    * )
3319	break;;
3320  esac
3321done
3322test "$ac_cv_exeext" = no && ac_cv_exeext=
3323
3324else
3325  ac_file=''
3326fi
3327if test -z "$ac_file"; then :
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330$as_echo "$as_me: failed program was:" >&5
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335{ as_fn_set_status 77
3336as_fn_error "C compiler cannot create executables
3337See \`config.log' for more details." "$LINENO" 5; }; }
3338else
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340$as_echo "yes" >&6; }
3341fi
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3343$as_echo_n "checking for C compiler default output file name... " >&6; }
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345$as_echo "$ac_file" >&6; }
3346ac_exeext=$ac_cv_exeext
3347
3348rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349ac_clean_files=$ac_clean_files_save
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3351$as_echo_n "checking for suffix of executables... " >&6; }
3352if { { ac_try="$ac_link"
3353case "(($ac_try" in
3354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355  *) ac_try_echo=$ac_try;;
3356esac
3357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358$as_echo "$ac_try_echo"; } >&5
3359  (eval "$ac_link") 2>&5
3360  ac_status=$?
3361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362  test $ac_status = 0; }; then :
3363  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3365# work properly (i.e., refer to `conftest.exe'), while it won't with
3366# `rm'.
3367for ac_file in conftest.exe conftest conftest.*; do
3368  test -f "$ac_file" || continue
3369  case $ac_file in
3370    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372	  break;;
3373    * ) break;;
3374  esac
3375done
3376else
3377  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error "cannot compute suffix of executables: cannot compile and link
3380See \`config.log' for more details." "$LINENO" 5; }
3381fi
3382rm -f conftest conftest$ac_cv_exeext
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3384$as_echo "$ac_cv_exeext" >&6; }
3385
3386rm -f conftest.$ac_ext
3387EXEEXT=$ac_cv_exeext
3388ac_exeext=$EXEEXT
3389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390/* end confdefs.h.  */
3391#include <stdio.h>
3392int
3393main ()
3394{
3395FILE *f = fopen ("conftest.out", "w");
3396 return ferror (f) || fclose (f) != 0;
3397
3398  ;
3399  return 0;
3400}
3401_ACEOF
3402ac_clean_files="$ac_clean_files conftest.out"
3403# Check that the compiler produces executables we can run.  If not, either
3404# the compiler is broken, or we cross compile.
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406$as_echo_n "checking whether we are cross compiling... " >&6; }
3407if test "$cross_compiling" != yes; then
3408  { { ac_try="$ac_link"
3409case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_link") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }
3419  if { ac_try='./conftest$ac_cv_exeext'
3420  { { case "(($ac_try" in
3421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422  *) ac_try_echo=$ac_try;;
3423esac
3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425$as_echo "$ac_try_echo"; } >&5
3426  (eval "$ac_try") 2>&5
3427  ac_status=$?
3428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429  test $ac_status = 0; }; }; then
3430    cross_compiling=no
3431  else
3432    if test "$cross_compiling" = maybe; then
3433	cross_compiling=yes
3434    else
3435	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437as_fn_error "cannot run C compiled programs.
3438If you meant to cross compile, use \`--host'.
3439See \`config.log' for more details." "$LINENO" 5; }
3440    fi
3441  fi
3442fi
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3444$as_echo "$cross_compiling" >&6; }
3445
3446rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3447ac_clean_files=$ac_clean_files_save
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3449$as_echo_n "checking for suffix of object files... " >&6; }
3450if test "${ac_cv_objext+set}" = set; then :
3451  $as_echo_n "(cached) " >&6
3452else
3453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464rm -f conftest.o conftest.obj
3465if { { ac_try="$ac_compile"
3466case "(($ac_try" in
3467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468  *) ac_try_echo=$ac_try;;
3469esac
3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471$as_echo "$ac_try_echo"; } >&5
3472  (eval "$ac_compile") 2>&5
3473  ac_status=$?
3474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475  test $ac_status = 0; }; then :
3476  for ac_file in conftest.o conftest.obj conftest.*; do
3477  test -f "$ac_file" || continue;
3478  case $ac_file in
3479    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481       break;;
3482  esac
3483done
3484else
3485  $as_echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490as_fn_error "cannot compute suffix of object files: cannot compile
3491See \`config.log' for more details." "$LINENO" 5; }
3492fi
3493rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3496$as_echo "$ac_cv_objext" >&6; }
3497OBJEXT=$ac_cv_objext
3498ac_objext=$OBJEXT
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3500$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3501if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506
3507int
3508main ()
3509{
3510#ifndef __GNUC__
3511       choke me
3512#endif
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518if ac_fn_c_try_compile "$LINENO"; then :
3519  ac_compiler_gnu=yes
3520else
3521  ac_compiler_gnu=no
3522fi
3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3528$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3529if test $ac_compiler_gnu = yes; then
3530  GCC=yes
3531else
3532  GCC=
3533fi
3534ac_test_CFLAGS=${CFLAGS+set}
3535ac_save_CFLAGS=$CFLAGS
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3537$as_echo_n "checking whether $CC accepts -g... " >&6; }
3538if test "${ac_cv_prog_cc_g+set}" = set; then :
3539  $as_echo_n "(cached) " >&6
3540else
3541  ac_save_c_werror_flag=$ac_c_werror_flag
3542   ac_c_werror_flag=yes
3543   ac_cv_prog_cc_g=no
3544   CFLAGS="-g"
3545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547
3548int
3549main ()
3550{
3551
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556if ac_fn_c_try_compile "$LINENO"; then :
3557  ac_cv_prog_cc_g=yes
3558else
3559  CFLAGS=""
3560      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561/* end confdefs.h.  */
3562
3563int
3564main ()
3565{
3566
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571if ac_fn_c_try_compile "$LINENO"; then :
3572
3573else
3574  ac_c_werror_flag=$ac_save_c_werror_flag
3575	 CFLAGS="-g"
3576	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578
3579int
3580main ()
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588  ac_cv_prog_cc_g=yes
3589fi
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591fi
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595   ac_c_werror_flag=$ac_save_c_werror_flag
3596fi
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3598$as_echo "$ac_cv_prog_cc_g" >&6; }
3599if test "$ac_test_CFLAGS" = set; then
3600  CFLAGS=$ac_save_CFLAGS
3601elif test $ac_cv_prog_cc_g = yes; then
3602  if test "$GCC" = yes; then
3603    CFLAGS="-g -O2"
3604  else
3605    CFLAGS="-g"
3606  fi
3607else
3608  if test "$GCC" = yes; then
3609    CFLAGS="-O2"
3610  else
3611    CFLAGS=
3612  fi
3613fi
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3615$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3616if test "${ac_cv_prog_cc_c89+set}" = set; then :
3617  $as_echo_n "(cached) " >&6
3618else
3619  ac_cv_prog_cc_c89=no
3620ac_save_CC=$CC
3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h.  */
3623#include <stdarg.h>
3624#include <stdio.h>
3625#include <sys/types.h>
3626#include <sys/stat.h>
3627/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3628struct buf { int x; };
3629FILE * (*rcsopen) (struct buf *, struct stat *, int);
3630static char *e (p, i)
3631     char **p;
3632     int i;
3633{
3634  return p[i];
3635}
3636static char *f (char * (*g) (char **, int), char **p, ...)
3637{
3638  char *s;
3639  va_list v;
3640  va_start (v,p);
3641  s = g (p, va_arg (v,int));
3642  va_end (v);
3643  return s;
3644}
3645
3646/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3647   function prototypes and stuff, but not '\xHH' hex character constants.
3648   These don't provoke an error unfortunately, instead are silently treated
3649   as 'x'.  The following induces an error, until -std is added to get
3650   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3651   array size at least.  It's necessary to write '\x00'==0 to get something
3652   that's true only with -std.  */
3653int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3654
3655/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3656   inside strings and character constants.  */
3657#define FOO(x) 'x'
3658int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3659
3660int test (int i, double x);
3661struct s1 {int (*f) (int a);};
3662struct s2 {int (*f) (double a);};
3663int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664int argc;
3665char **argv;
3666int
3667main ()
3668{
3669return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3675	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3676do
3677  CC="$ac_save_CC $ac_arg"
3678  if ac_fn_c_try_compile "$LINENO"; then :
3679  ac_cv_prog_cc_c89=$ac_arg
3680fi
3681rm -f core conftest.err conftest.$ac_objext
3682  test "x$ac_cv_prog_cc_c89" != "xno" && break
3683done
3684rm -f conftest.$ac_ext
3685CC=$ac_save_CC
3686
3687fi
3688# AC_CACHE_VAL
3689case "x$ac_cv_prog_cc_c89" in
3690  x)
3691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3692$as_echo "none needed" >&6; } ;;
3693  xno)
3694    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3695$as_echo "unsupported" >&6; } ;;
3696  *)
3697    CC="$CC $ac_cv_prog_cc_c89"
3698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3699$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3700esac
3701if test "x$ac_cv_prog_cc_c89" != xno; then :
3702
3703fi
3704
3705ac_ext=c
3706ac_cpp='$CPP $CPPFLAGS'
3707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711depcc="$CC"   am_compiler_list=
3712
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3714$as_echo_n "checking dependency style of $depcc... " >&6; }
3715if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3716  $as_echo_n "(cached) " >&6
3717else
3718  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3719  # We make a subdir and do the tests there.  Otherwise we can end up
3720  # making bogus files that we don't know about and never remove.  For
3721  # instance it was reported that on HP-UX the gcc test will end up
3722  # making a dummy file named `D' -- because `-MD' means `put the output
3723  # in D'.
3724  mkdir conftest.dir
3725  # Copy depcomp to subdir because otherwise we won't find it if we're
3726  # using a relative directory.
3727  cp "$am_depcomp" conftest.dir
3728  cd conftest.dir
3729  # We will build objects and dependencies in a subdirectory because
3730  # it helps to detect inapplicable dependency modes.  For instance
3731  # both Tru64's cc and ICC support -MD to output dependencies as a
3732  # side effect of compilation, but ICC will put the dependencies in
3733  # the current directory while Tru64 will put them in the object
3734  # directory.
3735  mkdir sub
3736
3737  am_cv_CC_dependencies_compiler_type=none
3738  if test "$am_compiler_list" = ""; then
3739     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3740  fi
3741  am__universal=false
3742  case " $depcc " in #(
3743     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3744     esac
3745
3746  for depmode in $am_compiler_list; do
3747    # Setup a source with many dependencies, because some compilers
3748    # like to wrap large dependency lists on column 80 (with \), and
3749    # we should not choose a depcomp mode which is confused by this.
3750    #
3751    # We need to recreate these files for each test, as the compiler may
3752    # overwrite some of them when testing with obscure command lines.
3753    # This happens at least with the AIX C compiler.
3754    : > sub/conftest.c
3755    for i in 1 2 3 4 5 6; do
3756      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3757      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3758      # Solaris 8's {/usr,}/bin/sh.
3759      touch sub/conftst$i.h
3760    done
3761    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3762
3763    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3764    # mode.  It turns out that the SunPro C++ compiler does not properly
3765    # handle `-M -o', and we need to detect this.  Also, some Intel
3766    # versions had trouble with output in subdirs
3767    am__obj=sub/conftest.${OBJEXT-o}
3768    am__minus_obj="-o $am__obj"
3769    case $depmode in
3770    gcc)
3771      # This depmode causes a compiler race in universal mode.
3772      test "$am__universal" = false || continue
3773      ;;
3774    nosideeffect)
3775      # after this tag, mechanisms are not by side-effect, so they'll
3776      # only be used when explicitly requested
3777      if test "x$enable_dependency_tracking" = xyes; then
3778	continue
3779      else
3780	break
3781      fi
3782      ;;
3783    msvisualcpp | msvcmsys)
3784      # This compiler won't grok `-c -o', but also, the minuso test has
3785      # not run yet.  These depmodes are late enough in the game, and
3786      # so weak that their functioning should not be impacted.
3787      am__obj=conftest.${OBJEXT-o}
3788      am__minus_obj=
3789      ;;
3790    none) break ;;
3791    esac
3792    if depmode=$depmode \
3793       source=sub/conftest.c object=$am__obj \
3794       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3795       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3796         >/dev/null 2>conftest.err &&
3797       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3798       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3799       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3800       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3801      # icc doesn't choke on unknown options, it will just issue warnings
3802      # or remarks (even with -Werror).  So we grep stderr for any message
3803      # that says an option was ignored or not supported.
3804      # When given -MP, icc 7.0 and 7.1 complain thusly:
3805      #   icc: Command line warning: ignoring option '-M'; no argument required
3806      # The diagnosis changed in icc 8.0:
3807      #   icc: Command line remark: option '-MP' not supported
3808      if (grep 'ignoring option' conftest.err ||
3809          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3810        am_cv_CC_dependencies_compiler_type=$depmode
3811        break
3812      fi
3813    fi
3814  done
3815
3816  cd ..
3817  rm -rf conftest.dir
3818else
3819  am_cv_CC_dependencies_compiler_type=none
3820fi
3821
3822fi
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3824$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3825CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3826
3827 if
3828  test "x$enable_dependency_tracking" != xno \
3829  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3830  am__fastdepCC_TRUE=
3831  am__fastdepCC_FALSE='#'
3832else
3833  am__fastdepCC_TRUE='#'
3834  am__fastdepCC_FALSE=
3835fi
3836
3837
3838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3839$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3840if test "${ac_cv_prog_cc_c99+set}" = set; then :
3841  $as_echo_n "(cached) " >&6
3842else
3843  ac_cv_prog_cc_c99=no
3844ac_save_CC=$CC
3845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h.  */
3847#include <stdarg.h>
3848#include <stdbool.h>
3849#include <stdlib.h>
3850#include <wchar.h>
3851#include <stdio.h>
3852
3853// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3854#define debug(...) fprintf (stderr, __VA_ARGS__)
3855#define showlist(...) puts (#__VA_ARGS__)
3856#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3857static void
3858test_varargs_macros (void)
3859{
3860  int x = 1234;
3861  int y = 5678;
3862  debug ("Flag");
3863  debug ("X = %d\n", x);
3864  showlist (The first, second, and third items.);
3865  report (x>y, "x is %d but y is %d", x, y);
3866}
3867
3868// Check long long types.
3869#define BIG64 18446744073709551615ull
3870#define BIG32 4294967295ul
3871#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3872#if !BIG_OK
3873  your preprocessor is broken;
3874#endif
3875#if BIG_OK
3876#else
3877  your preprocessor is broken;
3878#endif
3879static long long int bignum = -9223372036854775807LL;
3880static unsigned long long int ubignum = BIG64;
3881
3882struct incomplete_array
3883{
3884  int datasize;
3885  double data[];
3886};
3887
3888struct named_init {
3889  int number;
3890  const wchar_t *name;
3891  double average;
3892};
3893
3894typedef const char *ccp;
3895
3896static inline int
3897test_restrict (ccp restrict text)
3898{
3899  // See if C++-style comments work.
3900  // Iterate through items via the restricted pointer.
3901  // Also check for declarations in for loops.
3902  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3903    continue;
3904  return 0;
3905}
3906
3907// Check varargs and va_copy.
3908static void
3909test_varargs (const char *format, ...)
3910{
3911  va_list args;
3912  va_start (args, format);
3913  va_list args_copy;
3914  va_copy (args_copy, args);
3915
3916  const char *str;
3917  int number;
3918  float fnumber;
3919
3920  while (*format)
3921    {
3922      switch (*format++)
3923	{
3924	case 's': // string
3925	  str = va_arg (args_copy, const char *);
3926	  break;
3927	case 'd': // int
3928	  number = va_arg (args_copy, int);
3929	  break;
3930	case 'f': // float
3931	  fnumber = va_arg (args_copy, double);
3932	  break;
3933	default:
3934	  break;
3935	}
3936    }
3937  va_end (args_copy);
3938  va_end (args);
3939}
3940
3941int
3942main ()
3943{
3944
3945  // Check bool.
3946  _Bool success = false;
3947
3948  // Check restrict.
3949  if (test_restrict ("String literal") == 0)
3950    success = true;
3951  char *restrict newvar = "Another string";
3952
3953  // Check varargs.
3954  test_varargs ("s, d' f .", "string", 65, 34.234);
3955  test_varargs_macros ();
3956
3957  // Check flexible array members.
3958  struct incomplete_array *ia =
3959    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3960  ia->datasize = 10;
3961  for (int i = 0; i < ia->datasize; ++i)
3962    ia->data[i] = i * 1.234;
3963
3964  // Check named initializers.
3965  struct named_init ni = {
3966    .number = 34,
3967    .name = L"Test wide string",
3968    .average = 543.34343,
3969  };
3970
3971  ni.number = 58;
3972
3973  int dynamic_array[ni.number];
3974  dynamic_array[ni.number - 1] = 543;
3975
3976  // work around unused variable warnings
3977  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3978	  || dynamic_array[ni.number - 1] != 543);
3979
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3985do
3986  CC="$ac_save_CC $ac_arg"
3987  if ac_fn_c_try_compile "$LINENO"; then :
3988  ac_cv_prog_cc_c99=$ac_arg
3989fi
3990rm -f core conftest.err conftest.$ac_objext
3991  test "x$ac_cv_prog_cc_c99" != "xno" && break
3992done
3993rm -f conftest.$ac_ext
3994CC=$ac_save_CC
3995
3996fi
3997# AC_CACHE_VAL
3998case "x$ac_cv_prog_cc_c99" in
3999  x)
4000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001$as_echo "none needed" >&6; } ;;
4002  xno)
4003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4004$as_echo "unsupported" >&6; } ;;
4005  *)
4006    CC="$CC $ac_cv_prog_cc_c99"
4007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4008$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4009esac
4010if test "x$ac_cv_prog_cc_c99" != xno; then :
4011
4012fi
4013
4014
4015
4016ac_ext=c
4017ac_cpp='$CPP $CPPFLAGS'
4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4022$as_echo_n "checking how to run the C preprocessor... " >&6; }
4023# On Suns, sometimes $CPP names a directory.
4024if test -n "$CPP" && test -d "$CPP"; then
4025  CPP=
4026fi
4027if test -z "$CPP"; then
4028  if test "${ac_cv_prog_CPP+set}" = set; then :
4029  $as_echo_n "(cached) " >&6
4030else
4031      # Double quotes because CPP needs to be expanded
4032    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4033    do
4034      ac_preproc_ok=false
4035for ac_c_preproc_warn_flag in '' yes
4036do
4037  # Use a header file that comes with gcc, so configuring glibc
4038  # with a fresh cross-compiler works.
4039  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4040  # <limits.h> exists even on freestanding compilers.
4041  # On the NeXT, cc -E runs the code through the compiler's parser,
4042  # not just through cpp. "Syntax error" is here to catch this case.
4043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h.  */
4045#ifdef __STDC__
4046# include <limits.h>
4047#else
4048# include <assert.h>
4049#endif
4050		     Syntax error
4051_ACEOF
4052if ac_fn_c_try_cpp "$LINENO"; then :
4053
4054else
4055  # Broken: fails on valid input.
4056continue
4057fi
4058rm -f conftest.err conftest.$ac_ext
4059
4060  # OK, works on sane cases.  Now check whether nonexistent headers
4061  # can be detected and how.
4062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h.  */
4064#include <ac_nonexistent.h>
4065_ACEOF
4066if ac_fn_c_try_cpp "$LINENO"; then :
4067  # Broken: success on invalid input.
4068continue
4069else
4070  # Passes both tests.
4071ac_preproc_ok=:
4072break
4073fi
4074rm -f conftest.err conftest.$ac_ext
4075
4076done
4077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4078rm -f conftest.err conftest.$ac_ext
4079if $ac_preproc_ok; then :
4080  break
4081fi
4082
4083    done
4084    ac_cv_prog_CPP=$CPP
4085
4086fi
4087  CPP=$ac_cv_prog_CPP
4088else
4089  ac_cv_prog_CPP=$CPP
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4092$as_echo "$CPP" >&6; }
4093ac_preproc_ok=false
4094for ac_c_preproc_warn_flag in '' yes
4095do
4096  # Use a header file that comes with gcc, so configuring glibc
4097  # with a fresh cross-compiler works.
4098  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099  # <limits.h> exists even on freestanding compilers.
4100  # On the NeXT, cc -E runs the code through the compiler's parser,
4101  # not just through cpp. "Syntax error" is here to catch this case.
4102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103/* end confdefs.h.  */
4104#ifdef __STDC__
4105# include <limits.h>
4106#else
4107# include <assert.h>
4108#endif
4109		     Syntax error
4110_ACEOF
4111if ac_fn_c_try_cpp "$LINENO"; then :
4112
4113else
4114  # Broken: fails on valid input.
4115continue
4116fi
4117rm -f conftest.err conftest.$ac_ext
4118
4119  # OK, works on sane cases.  Now check whether nonexistent headers
4120  # can be detected and how.
4121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#include <ac_nonexistent.h>
4124_ACEOF
4125if ac_fn_c_try_cpp "$LINENO"; then :
4126  # Broken: success on invalid input.
4127continue
4128else
4129  # Passes both tests.
4130ac_preproc_ok=:
4131break
4132fi
4133rm -f conftest.err conftest.$ac_ext
4134
4135done
4136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4137rm -f conftest.err conftest.$ac_ext
4138if $ac_preproc_ok; then :
4139
4140else
4141  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4143as_fn_error "C preprocessor \"$CPP\" fails sanity check
4144See \`config.log' for more details." "$LINENO" 5; }
4145fi
4146
4147ac_ext=c
4148ac_cpp='$CPP $CPPFLAGS'
4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152
4153
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4155$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4156if test "${ac_cv_path_GREP+set}" = set; then :
4157  $as_echo_n "(cached) " >&6
4158else
4159  if test -z "$GREP"; then
4160  ac_path_GREP_found=false
4161  # Loop through the user's path and test for each of PROGNAME-LIST
4162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164do
4165  IFS=$as_save_IFS
4166  test -z "$as_dir" && as_dir=.
4167    for ac_prog in grep ggrep; do
4168    for ac_exec_ext in '' $ac_executable_extensions; do
4169      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4170      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4171# Check for GNU ac_path_GREP and select it if it is found.
4172  # Check for GNU $ac_path_GREP
4173case `"$ac_path_GREP" --version 2>&1` in
4174*GNU*)
4175  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4176*)
4177  ac_count=0
4178  $as_echo_n 0123456789 >"conftest.in"
4179  while :
4180  do
4181    cat "conftest.in" "conftest.in" >"conftest.tmp"
4182    mv "conftest.tmp" "conftest.in"
4183    cp "conftest.in" "conftest.nl"
4184    $as_echo 'GREP' >> "conftest.nl"
4185    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187    as_fn_arith $ac_count + 1 && ac_count=$as_val
4188    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189      # Best one so far, save it but keep looking for a better one
4190      ac_cv_path_GREP="$ac_path_GREP"
4191      ac_path_GREP_max=$ac_count
4192    fi
4193    # 10*(2^10) chars as input seems more than enough
4194    test $ac_count -gt 10 && break
4195  done
4196  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197esac
4198
4199      $ac_path_GREP_found && break 3
4200    done
4201  done
4202  done
4203IFS=$as_save_IFS
4204  if test -z "$ac_cv_path_GREP"; then
4205    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4206  fi
4207else
4208  ac_cv_path_GREP=$GREP
4209fi
4210
4211fi
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4213$as_echo "$ac_cv_path_GREP" >&6; }
4214 GREP="$ac_cv_path_GREP"
4215
4216
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4218$as_echo_n "checking for egrep... " >&6; }
4219if test "${ac_cv_path_EGREP+set}" = set; then :
4220  $as_echo_n "(cached) " >&6
4221else
4222  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4223   then ac_cv_path_EGREP="$GREP -E"
4224   else
4225     if test -z "$EGREP"; then
4226  ac_path_EGREP_found=false
4227  # Loop through the user's path and test for each of PROGNAME-LIST
4228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4230do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233    for ac_prog in egrep; do
4234    for ac_exec_ext in '' $ac_executable_extensions; do
4235      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4236      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4237# Check for GNU ac_path_EGREP and select it if it is found.
4238  # Check for GNU $ac_path_EGREP
4239case `"$ac_path_EGREP" --version 2>&1` in
4240*GNU*)
4241  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4242*)
4243  ac_count=0
4244  $as_echo_n 0123456789 >"conftest.in"
4245  while :
4246  do
4247    cat "conftest.in" "conftest.in" >"conftest.tmp"
4248    mv "conftest.tmp" "conftest.in"
4249    cp "conftest.in" "conftest.nl"
4250    $as_echo 'EGREP' >> "conftest.nl"
4251    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4252    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4253    as_fn_arith $ac_count + 1 && ac_count=$as_val
4254    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4255      # Best one so far, save it but keep looking for a better one
4256      ac_cv_path_EGREP="$ac_path_EGREP"
4257      ac_path_EGREP_max=$ac_count
4258    fi
4259    # 10*(2^10) chars as input seems more than enough
4260    test $ac_count -gt 10 && break
4261  done
4262  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4263esac
4264
4265      $ac_path_EGREP_found && break 3
4266    done
4267  done
4268  done
4269IFS=$as_save_IFS
4270  if test -z "$ac_cv_path_EGREP"; then
4271    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4272  fi
4273else
4274  ac_cv_path_EGREP=$EGREP
4275fi
4276
4277   fi
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4280$as_echo "$ac_cv_path_EGREP" >&6; }
4281 EGREP="$ac_cv_path_EGREP"
4282
4283
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4285$as_echo_n "checking for ANSI C header files... " >&6; }
4286if test "${ac_cv_header_stdc+set}" = set; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291#include <stdlib.h>
4292#include <stdarg.h>
4293#include <string.h>
4294#include <float.h>
4295
4296int
4297main ()
4298{
4299
4300  ;
4301  return 0;
4302}
4303_ACEOF
4304if ac_fn_c_try_compile "$LINENO"; then :
4305  ac_cv_header_stdc=yes
4306else
4307  ac_cv_header_stdc=no
4308fi
4309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310
4311if test $ac_cv_header_stdc = yes; then
4312  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314/* end confdefs.h.  */
4315#include <string.h>
4316
4317_ACEOF
4318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319  $EGREP "memchr" >/dev/null 2>&1; then :
4320
4321else
4322  ac_cv_header_stdc=no
4323fi
4324rm -f conftest*
4325
4326fi
4327
4328if test $ac_cv_header_stdc = yes; then
4329  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h.  */
4332#include <stdlib.h>
4333
4334_ACEOF
4335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4336  $EGREP "free" >/dev/null 2>&1; then :
4337
4338else
4339  ac_cv_header_stdc=no
4340fi
4341rm -f conftest*
4342
4343fi
4344
4345if test $ac_cv_header_stdc = yes; then
4346  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4347  if test "$cross_compiling" = yes; then :
4348  :
4349else
4350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351/* end confdefs.h.  */
4352#include <ctype.h>
4353#include <stdlib.h>
4354#if ((' ' & 0x0FF) == 0x020)
4355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4357#else
4358# define ISLOWER(c) \
4359		   (('a' <= (c) && (c) <= 'i') \
4360		     || ('j' <= (c) && (c) <= 'r') \
4361		     || ('s' <= (c) && (c) <= 'z'))
4362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4363#endif
4364
4365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4366int
4367main ()
4368{
4369  int i;
4370  for (i = 0; i < 256; i++)
4371    if (XOR (islower (i), ISLOWER (i))
4372	|| toupper (i) != TOUPPER (i))
4373      return 2;
4374  return 0;
4375}
4376_ACEOF
4377if ac_fn_c_try_run "$LINENO"; then :
4378
4379else
4380  ac_cv_header_stdc=no
4381fi
4382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4383  conftest.$ac_objext conftest.beam conftest.$ac_ext
4384fi
4385
4386fi
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4389$as_echo "$ac_cv_header_stdc" >&6; }
4390if test $ac_cv_header_stdc = yes; then
4391
4392$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4393
4394fi
4395
4396# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4397for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4398		  inttypes.h stdint.h unistd.h
4399do :
4400  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4401ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4402"
4403eval as_val=\$$as_ac_Header
4404   if test "x$as_val" = x""yes; then :
4405  cat >>confdefs.h <<_ACEOF
4406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4407_ACEOF
4408
4409fi
4410
4411done
4412
4413
4414
4415
4416
4417
4418
4419
4420if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4421	if test -n "$ac_tool_prefix"; then
4422  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4423set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425$as_echo_n "checking for $ac_word... " >&6; }
4426if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4427  $as_echo_n "(cached) " >&6
4428else
4429  case $PKG_CONFIG in
4430  [\\/]* | ?:[\\/]*)
4431  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4432  ;;
4433  *)
4434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437  IFS=$as_save_IFS
4438  test -z "$as_dir" && as_dir=.
4439    for ac_exec_ext in '' $ac_executable_extensions; do
4440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443    break 2
4444  fi
4445done
4446  done
4447IFS=$as_save_IFS
4448
4449  ;;
4450esac
4451fi
4452PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4453if test -n "$PKG_CONFIG"; then
4454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4455$as_echo "$PKG_CONFIG" >&6; }
4456else
4457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458$as_echo "no" >&6; }
4459fi
4460
4461
4462fi
4463if test -z "$ac_cv_path_PKG_CONFIG"; then
4464  ac_pt_PKG_CONFIG=$PKG_CONFIG
4465  # Extract the first word of "pkg-config", so it can be a program name with args.
4466set dummy pkg-config; ac_word=$2
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468$as_echo_n "checking for $ac_word... " >&6; }
4469if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4470  $as_echo_n "(cached) " >&6
4471else
4472  case $ac_pt_PKG_CONFIG in
4473  [\\/]* | ?:[\\/]*)
4474  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4475  ;;
4476  *)
4477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480  IFS=$as_save_IFS
4481  test -z "$as_dir" && as_dir=.
4482    for ac_exec_ext in '' $ac_executable_extensions; do
4483  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486    break 2
4487  fi
4488done
4489  done
4490IFS=$as_save_IFS
4491
4492  ;;
4493esac
4494fi
4495ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4496if test -n "$ac_pt_PKG_CONFIG"; then
4497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4498$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4499else
4500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501$as_echo "no" >&6; }
4502fi
4503
4504  if test "x$ac_pt_PKG_CONFIG" = x; then
4505    PKG_CONFIG=""
4506  else
4507    case $cross_compiling:$ac_tool_warned in
4508yes:)
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4511ac_tool_warned=yes ;;
4512esac
4513    PKG_CONFIG=$ac_pt_PKG_CONFIG
4514  fi
4515else
4516  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4517fi
4518
4519fi
4520if test -n "$PKG_CONFIG"; then
4521	_pkg_min_version=0.9.0
4522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4523$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4524	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4525		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4526$as_echo "yes" >&6; }
4527	else
4528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529$as_echo "no" >&6; }
4530		PKG_CONFIG=""
4531	fi
4532fi
4533# Make sure we can run config.sub.
4534$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4535  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4536
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4538$as_echo_n "checking build system type... " >&6; }
4539if test "${ac_cv_build+set}" = set; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  ac_build_alias=$build_alias
4543test "x$ac_build_alias" = x &&
4544  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4545test "x$ac_build_alias" = x &&
4546  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4547ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4548  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4549
4550fi
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4552$as_echo "$ac_cv_build" >&6; }
4553case $ac_cv_build in
4554*-*-*) ;;
4555*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4556esac
4557build=$ac_cv_build
4558ac_save_IFS=$IFS; IFS='-'
4559set x $ac_cv_build
4560shift
4561build_cpu=$1
4562build_vendor=$2
4563shift; shift
4564# Remember, the first character of IFS is used to create $*,
4565# except with old shells:
4566build_os=$*
4567IFS=$ac_save_IFS
4568case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4569
4570
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4572$as_echo_n "checking host system type... " >&6; }
4573if test "${ac_cv_host+set}" = set; then :
4574  $as_echo_n "(cached) " >&6
4575else
4576  if test "x$host_alias" = x; then
4577  ac_cv_host=$ac_cv_build
4578else
4579  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4580    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4581fi
4582
4583fi
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4585$as_echo "$ac_cv_host" >&6; }
4586case $ac_cv_host in
4587*-*-*) ;;
4588*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4589esac
4590host=$ac_cv_host
4591ac_save_IFS=$IFS; IFS='-'
4592set x $ac_cv_host
4593shift
4594host_cpu=$1
4595host_vendor=$2
4596shift; shift
4597# Remember, the first character of IFS is used to create $*,
4598# except with old shells:
4599host_os=$*
4600IFS=$ac_save_IFS
4601case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4602
4603
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4605$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4606if test "${ac_cv_path_SED+set}" = set; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4610     for ac_i in 1 2 3 4 5 6 7; do
4611       ac_script="$ac_script$as_nl$ac_script"
4612     done
4613     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4614     { ac_script=; unset ac_script;}
4615     if test -z "$SED"; then
4616  ac_path_SED_found=false
4617  # Loop through the user's path and test for each of PROGNAME-LIST
4618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621  IFS=$as_save_IFS
4622  test -z "$as_dir" && as_dir=.
4623    for ac_prog in sed gsed; do
4624    for ac_exec_ext in '' $ac_executable_extensions; do
4625      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4626      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4627# Check for GNU ac_path_SED and select it if it is found.
4628  # Check for GNU $ac_path_SED
4629case `"$ac_path_SED" --version 2>&1` in
4630*GNU*)
4631  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4632*)
4633  ac_count=0
4634  $as_echo_n 0123456789 >"conftest.in"
4635  while :
4636  do
4637    cat "conftest.in" "conftest.in" >"conftest.tmp"
4638    mv "conftest.tmp" "conftest.in"
4639    cp "conftest.in" "conftest.nl"
4640    $as_echo '' >> "conftest.nl"
4641    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643    as_fn_arith $ac_count + 1 && ac_count=$as_val
4644    if test $ac_count -gt ${ac_path_SED_max-0}; then
4645      # Best one so far, save it but keep looking for a better one
4646      ac_cv_path_SED="$ac_path_SED"
4647      ac_path_SED_max=$ac_count
4648    fi
4649    # 10*(2^10) chars as input seems more than enough
4650    test $ac_count -gt 10 && break
4651  done
4652  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653esac
4654
4655      $ac_path_SED_found && break 3
4656    done
4657  done
4658  done
4659IFS=$as_save_IFS
4660  if test -z "$ac_cv_path_SED"; then
4661    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4662  fi
4663else
4664  ac_cv_path_SED=$SED
4665fi
4666
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4669$as_echo "$ac_cv_path_SED" >&6; }
4670 SED="$ac_cv_path_SED"
4671  rm -f conftest.sed
4672
4673
4674
4675
4676
4677if  test "x$GCC" = xyes ; then
4678    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4679-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4680-Wbad-function-cast -Wformat=2"
4681    case `$CC -dumpversion` in
4682    3.4.* | 4.*)
4683	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4684	;;
4685    esac
4686else
4687    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4688if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4689  SUNCC="yes"
4690else
4691  SUNCC="no"
4692fi
4693
4694    if test "x$SUNCC" = "xyes"; then
4695	CWARNFLAGS="-v"
4696    fi
4697fi
4698
4699
4700
4701# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4702
4703
4704
4705# Check whether --enable-strict-compilation was given.
4706if test "${enable_strict_compilation+set}" = set; then :
4707  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4708else
4709  STRICT_COMPILE=no
4710fi
4711
4712if test "x$STRICT_COMPILE" = "xyes"; then
4713	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4714if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4715  SUNCC="yes"
4716else
4717  SUNCC="no"
4718fi
4719
4720	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4721if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4722  INTELCC="yes"
4723else
4724  INTELCC="no"
4725fi
4726
4727	if test "x$GCC" = xyes ; then
4728		STRICT_CFLAGS="-pedantic -Werror"
4729	elif test "x$SUNCC" = "xyes"; then
4730		STRICT_CFLAGS="-errwarn"
4731    elif test "x$INTELCC" = "xyes"; then
4732		STRICT_CFLAGS="-Werror"
4733	fi
4734fi
4735CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4736
4737
4738
4739
4740cat >>confdefs.h <<_ACEOF
4741#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4742_ACEOF
4743
4744	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4745	if test "x$PVM" = "x"; then
4746		PVM="0"
4747	fi
4748
4749cat >>confdefs.h <<_ACEOF
4750#define PACKAGE_VERSION_MINOR $PVM
4751_ACEOF
4752
4753	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4754	if test "x$PVP" = "x"; then
4755		PVP="0"
4756	fi
4757
4758cat >>confdefs.h <<_ACEOF
4759#define PACKAGE_VERSION_PATCHLEVEL $PVP
4760_ACEOF
4761
4762
4763
4764CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4765mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4766|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4767echo 'git directory not found: installing possibly empty changelog.' >&2)"
4768
4769
4770
4771
4772macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4773INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4774mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4775|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4776echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4777
4778
4779
4780
4781
4782
4783if test x$APP_MAN_SUFFIX = x    ; then
4784    APP_MAN_SUFFIX=1
4785fi
4786if test x$APP_MAN_DIR = x    ; then
4787    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4788fi
4789
4790if test x$LIB_MAN_SUFFIX = x    ; then
4791    LIB_MAN_SUFFIX=3
4792fi
4793if test x$LIB_MAN_DIR = x    ; then
4794    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4795fi
4796
4797if test x$FILE_MAN_SUFFIX = x    ; then
4798    case $host_os in
4799	solaris*)	FILE_MAN_SUFFIX=4  ;;
4800	*)		FILE_MAN_SUFFIX=5  ;;
4801    esac
4802fi
4803if test x$FILE_MAN_DIR = x    ; then
4804    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4805fi
4806
4807if test x$MISC_MAN_SUFFIX = x    ; then
4808    case $host_os in
4809	solaris*)	MISC_MAN_SUFFIX=5  ;;
4810	*)		MISC_MAN_SUFFIX=7  ;;
4811    esac
4812fi
4813if test x$MISC_MAN_DIR = x    ; then
4814    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4815fi
4816
4817if test x$DRIVER_MAN_SUFFIX = x    ; then
4818    case $host_os in
4819	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4820	*)		DRIVER_MAN_SUFFIX=4  ;;
4821    esac
4822fi
4823if test x$DRIVER_MAN_DIR = x    ; then
4824    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4825fi
4826
4827if test x$ADMIN_MAN_SUFFIX = x    ; then
4828    case $host_os in
4829	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4830	*)		ADMIN_MAN_SUFFIX=8  ;;
4831    esac
4832fi
4833if test x$ADMIN_MAN_DIR = x    ; then
4834    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4835fi
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851XORG_MAN_PAGE="X Version 11"
4852
4853MAN_SUBSTS="\
4854	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4855	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4856	-e 's|__xservername__|Xorg|g' \
4857	-e 's|__xconfigfile__|xorg.conf|g' \
4858	-e 's|__projectroot__|\$(prefix)|g' \
4859	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4860	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4861	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4862	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4863	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4864	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4865
4866
4867
4868# Check whether --enable-silent-rules was given.
4869if test "${enable_silent_rules+set}" = set; then :
4870  enableval=$enable_silent_rules;
4871fi
4872
4873case $enable_silent_rules in
4874yes) AM_DEFAULT_VERBOSITY=0;;
4875no)  AM_DEFAULT_VERBOSITY=1;;
4876*)   AM_DEFAULT_VERBOSITY=0;;
4877esac
4878AM_BACKSLASH='\'
4879
4880
4881
4882ac_ext=c
4883ac_cpp='$CPP $CPPFLAGS'
4884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887if test -n "$ac_tool_prefix"; then
4888  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4889set dummy ${ac_tool_prefix}gcc; ac_word=$2
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891$as_echo_n "checking for $ac_word... " >&6; }
4892if test "${ac_cv_prog_CC+set}" = set; then :
4893  $as_echo_n "(cached) " >&6
4894else
4895  if test -n "$CC"; then
4896  ac_cv_prog_CC="$CC" # Let the user override the test.
4897else
4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901  IFS=$as_save_IFS
4902  test -z "$as_dir" && as_dir=.
4903    for ac_exec_ext in '' $ac_executable_extensions; do
4904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907    break 2
4908  fi
4909done
4910  done
4911IFS=$as_save_IFS
4912
4913fi
4914fi
4915CC=$ac_cv_prog_CC
4916if test -n "$CC"; then
4917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918$as_echo "$CC" >&6; }
4919else
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921$as_echo "no" >&6; }
4922fi
4923
4924
4925fi
4926if test -z "$ac_cv_prog_CC"; then
4927  ac_ct_CC=$CC
4928  # Extract the first word of "gcc", so it can be a program name with args.
4929set dummy gcc; ac_word=$2
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931$as_echo_n "checking for $ac_word... " >&6; }
4932if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  if test -n "$ac_ct_CC"; then
4936  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4937else
4938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941  IFS=$as_save_IFS
4942  test -z "$as_dir" && as_dir=.
4943    for ac_exec_ext in '' $ac_executable_extensions; do
4944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945    ac_cv_prog_ac_ct_CC="gcc"
4946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947    break 2
4948  fi
4949done
4950  done
4951IFS=$as_save_IFS
4952
4953fi
4954fi
4955ac_ct_CC=$ac_cv_prog_ac_ct_CC
4956if test -n "$ac_ct_CC"; then
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4958$as_echo "$ac_ct_CC" >&6; }
4959else
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961$as_echo "no" >&6; }
4962fi
4963
4964  if test "x$ac_ct_CC" = x; then
4965    CC=""
4966  else
4967    case $cross_compiling:$ac_tool_warned in
4968yes:)
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971ac_tool_warned=yes ;;
4972esac
4973    CC=$ac_ct_CC
4974  fi
4975else
4976  CC="$ac_cv_prog_CC"
4977fi
4978
4979if test -z "$CC"; then
4980          if test -n "$ac_tool_prefix"; then
4981    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}cc; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if test "${ac_cv_prog_CC+set}" = set; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988  if test -n "$CC"; then
4989  ac_cv_prog_CC="$CC" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994  IFS=$as_save_IFS
4995  test -z "$as_dir" && as_dir=.
4996    for ac_exec_ext in '' $ac_executable_extensions; do
4997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998    ac_cv_prog_CC="${ac_tool_prefix}cc"
4999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000    break 2
5001  fi
5002done
5003  done
5004IFS=$as_save_IFS
5005
5006fi
5007fi
5008CC=$ac_cv_prog_CC
5009if test -n "$CC"; then
5010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5011$as_echo "$CC" >&6; }
5012else
5013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016
5017
5018  fi
5019fi
5020if test -z "$CC"; then
5021  # Extract the first word of "cc", so it can be a program name with args.
5022set dummy cc; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if test "${ac_cv_prog_CC+set}" = set; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  if test -n "$CC"; then
5029  ac_cv_prog_CC="$CC" # Let the user override the test.
5030else
5031  ac_prog_rejected=no
5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035  IFS=$as_save_IFS
5036  test -z "$as_dir" && as_dir=.
5037    for ac_exec_ext in '' $ac_executable_extensions; do
5038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5040       ac_prog_rejected=yes
5041       continue
5042     fi
5043    ac_cv_prog_CC="cc"
5044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045    break 2
5046  fi
5047done
5048  done
5049IFS=$as_save_IFS
5050
5051if test $ac_prog_rejected = yes; then
5052  # We found a bogon in the path, so make sure we never use it.
5053  set dummy $ac_cv_prog_CC
5054  shift
5055  if test $# != 0; then
5056    # We chose a different compiler from the bogus one.
5057    # However, it has the same basename, so the bogon will be chosen
5058    # first if we set CC to just the basename; use the full file name.
5059    shift
5060    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5061  fi
5062fi
5063fi
5064fi
5065CC=$ac_cv_prog_CC
5066if test -n "$CC"; then
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5068$as_echo "$CC" >&6; }
5069else
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
5072fi
5073
5074
5075fi
5076if test -z "$CC"; then
5077  if test -n "$ac_tool_prefix"; then
5078  for ac_prog in cl.exe
5079  do
5080    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_CC+set}" = set; then :
5085  $as_echo_n "(cached) " >&6
5086else
5087  if test -n "$CC"; then
5088  ac_cv_prog_CC="$CC" # Let the user override the test.
5089else
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093  IFS=$as_save_IFS
5094  test -z "$as_dir" && as_dir=.
5095    for ac_exec_ext in '' $ac_executable_extensions; do
5096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099    break 2
5100  fi
5101done
5102  done
5103IFS=$as_save_IFS
5104
5105fi
5106fi
5107CC=$ac_cv_prog_CC
5108if test -n "$CC"; then
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110$as_echo "$CC" >&6; }
5111else
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
5114fi
5115
5116
5117    test -n "$CC" && break
5118  done
5119fi
5120if test -z "$CC"; then
5121  ac_ct_CC=$CC
5122  for ac_prog in cl.exe
5123do
5124  # Extract the first word of "$ac_prog", so it can be a program name with args.
5125set dummy $ac_prog; ac_word=$2
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127$as_echo_n "checking for $ac_word... " >&6; }
5128if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  if test -n "$ac_ct_CC"; then
5132  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137  IFS=$as_save_IFS
5138  test -z "$as_dir" && as_dir=.
5139    for ac_exec_ext in '' $ac_executable_extensions; do
5140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141    ac_cv_prog_ac_ct_CC="$ac_prog"
5142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143    break 2
5144  fi
5145done
5146  done
5147IFS=$as_save_IFS
5148
5149fi
5150fi
5151ac_ct_CC=$ac_cv_prog_ac_ct_CC
5152if test -n "$ac_ct_CC"; then
5153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5154$as_echo "$ac_ct_CC" >&6; }
5155else
5156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157$as_echo "no" >&6; }
5158fi
5159
5160
5161  test -n "$ac_ct_CC" && break
5162done
5163
5164  if test "x$ac_ct_CC" = x; then
5165    CC=""
5166  else
5167    case $cross_compiling:$ac_tool_warned in
5168yes:)
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171ac_tool_warned=yes ;;
5172esac
5173    CC=$ac_ct_CC
5174  fi
5175fi
5176
5177fi
5178
5179
5180test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182as_fn_error "no acceptable C compiler found in \$PATH
5183See \`config.log' for more details." "$LINENO" 5; }
5184
5185# Provide some information about the compiler.
5186$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5187set X $ac_compile
5188ac_compiler=$2
5189for ac_option in --version -v -V -qversion; do
5190  { { ac_try="$ac_compiler $ac_option >&5"
5191case "(($ac_try" in
5192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193  *) ac_try_echo=$ac_try;;
5194esac
5195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5196$as_echo "$ac_try_echo"; } >&5
5197  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5198  ac_status=$?
5199  if test -s conftest.err; then
5200    sed '10a\
5201... rest of stderr output deleted ...
5202         10q' conftest.err >conftest.er1
5203    cat conftest.er1 >&5
5204  fi
5205  rm -f conftest.er1 conftest.err
5206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5207  test $ac_status = 0; }
5208done
5209
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5211$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5212if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5213  $as_echo_n "(cached) " >&6
5214else
5215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h.  */
5217
5218int
5219main ()
5220{
5221#ifndef __GNUC__
5222       choke me
5223#endif
5224
5225  ;
5226  return 0;
5227}
5228_ACEOF
5229if ac_fn_c_try_compile "$LINENO"; then :
5230  ac_compiler_gnu=yes
5231else
5232  ac_compiler_gnu=no
5233fi
5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235ac_cv_c_compiler_gnu=$ac_compiler_gnu
5236
5237fi
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5239$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5240if test $ac_compiler_gnu = yes; then
5241  GCC=yes
5242else
5243  GCC=
5244fi
5245ac_test_CFLAGS=${CFLAGS+set}
5246ac_save_CFLAGS=$CFLAGS
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5248$as_echo_n "checking whether $CC accepts -g... " >&6; }
5249if test "${ac_cv_prog_cc_g+set}" = set; then :
5250  $as_echo_n "(cached) " >&6
5251else
5252  ac_save_c_werror_flag=$ac_c_werror_flag
5253   ac_c_werror_flag=yes
5254   ac_cv_prog_cc_g=no
5255   CFLAGS="-g"
5256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258
5259int
5260main ()
5261{
5262
5263  ;
5264  return 0;
5265}
5266_ACEOF
5267if ac_fn_c_try_compile "$LINENO"; then :
5268  ac_cv_prog_cc_g=yes
5269else
5270  CFLAGS=""
5271      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273
5274int
5275main ()
5276{
5277
5278  ;
5279  return 0;
5280}
5281_ACEOF
5282if ac_fn_c_try_compile "$LINENO"; then :
5283
5284else
5285  ac_c_werror_flag=$ac_save_c_werror_flag
5286	 CFLAGS="-g"
5287	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h.  */
5289
5290int
5291main ()
5292{
5293
5294  ;
5295  return 0;
5296}
5297_ACEOF
5298if ac_fn_c_try_compile "$LINENO"; then :
5299  ac_cv_prog_cc_g=yes
5300fi
5301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306   ac_c_werror_flag=$ac_save_c_werror_flag
5307fi
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5309$as_echo "$ac_cv_prog_cc_g" >&6; }
5310if test "$ac_test_CFLAGS" = set; then
5311  CFLAGS=$ac_save_CFLAGS
5312elif test $ac_cv_prog_cc_g = yes; then
5313  if test "$GCC" = yes; then
5314    CFLAGS="-g -O2"
5315  else
5316    CFLAGS="-g"
5317  fi
5318else
5319  if test "$GCC" = yes; then
5320    CFLAGS="-O2"
5321  else
5322    CFLAGS=
5323  fi
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5326$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5327if test "${ac_cv_prog_cc_c89+set}" = set; then :
5328  $as_echo_n "(cached) " >&6
5329else
5330  ac_cv_prog_cc_c89=no
5331ac_save_CC=$CC
5332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334#include <stdarg.h>
5335#include <stdio.h>
5336#include <sys/types.h>
5337#include <sys/stat.h>
5338/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5339struct buf { int x; };
5340FILE * (*rcsopen) (struct buf *, struct stat *, int);
5341static char *e (p, i)
5342     char **p;
5343     int i;
5344{
5345  return p[i];
5346}
5347static char *f (char * (*g) (char **, int), char **p, ...)
5348{
5349  char *s;
5350  va_list v;
5351  va_start (v,p);
5352  s = g (p, va_arg (v,int));
5353  va_end (v);
5354  return s;
5355}
5356
5357/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5358   function prototypes and stuff, but not '\xHH' hex character constants.
5359   These don't provoke an error unfortunately, instead are silently treated
5360   as 'x'.  The following induces an error, until -std is added to get
5361   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5362   array size at least.  It's necessary to write '\x00'==0 to get something
5363   that's true only with -std.  */
5364int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5365
5366/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5367   inside strings and character constants.  */
5368#define FOO(x) 'x'
5369int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5370
5371int test (int i, double x);
5372struct s1 {int (*f) (int a);};
5373struct s2 {int (*f) (double a);};
5374int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5375int argc;
5376char **argv;
5377int
5378main ()
5379{
5380return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5381  ;
5382  return 0;
5383}
5384_ACEOF
5385for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5386	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5387do
5388  CC="$ac_save_CC $ac_arg"
5389  if ac_fn_c_try_compile "$LINENO"; then :
5390  ac_cv_prog_cc_c89=$ac_arg
5391fi
5392rm -f core conftest.err conftest.$ac_objext
5393  test "x$ac_cv_prog_cc_c89" != "xno" && break
5394done
5395rm -f conftest.$ac_ext
5396CC=$ac_save_CC
5397
5398fi
5399# AC_CACHE_VAL
5400case "x$ac_cv_prog_cc_c89" in
5401  x)
5402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5403$as_echo "none needed" >&6; } ;;
5404  xno)
5405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5406$as_echo "unsupported" >&6; } ;;
5407  *)
5408    CC="$CC $ac_cv_prog_cc_c89"
5409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5410$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5411esac
5412if test "x$ac_cv_prog_cc_c89" != xno; then :
5413
5414fi
5415
5416ac_ext=c
5417ac_cpp='$CPP $CPPFLAGS'
5418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421
5422depcc="$CC"   am_compiler_list=
5423
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5425$as_echo_n "checking dependency style of $depcc... " >&6; }
5426if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5430  # We make a subdir and do the tests there.  Otherwise we can end up
5431  # making bogus files that we don't know about and never remove.  For
5432  # instance it was reported that on HP-UX the gcc test will end up
5433  # making a dummy file named `D' -- because `-MD' means `put the output
5434  # in D'.
5435  mkdir conftest.dir
5436  # Copy depcomp to subdir because otherwise we won't find it if we're
5437  # using a relative directory.
5438  cp "$am_depcomp" conftest.dir
5439  cd conftest.dir
5440  # We will build objects and dependencies in a subdirectory because
5441  # it helps to detect inapplicable dependency modes.  For instance
5442  # both Tru64's cc and ICC support -MD to output dependencies as a
5443  # side effect of compilation, but ICC will put the dependencies in
5444  # the current directory while Tru64 will put them in the object
5445  # directory.
5446  mkdir sub
5447
5448  am_cv_CC_dependencies_compiler_type=none
5449  if test "$am_compiler_list" = ""; then
5450     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5451  fi
5452  am__universal=false
5453  case " $depcc " in #(
5454     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5455     esac
5456
5457  for depmode in $am_compiler_list; do
5458    # Setup a source with many dependencies, because some compilers
5459    # like to wrap large dependency lists on column 80 (with \), and
5460    # we should not choose a depcomp mode which is confused by this.
5461    #
5462    # We need to recreate these files for each test, as the compiler may
5463    # overwrite some of them when testing with obscure command lines.
5464    # This happens at least with the AIX C compiler.
5465    : > sub/conftest.c
5466    for i in 1 2 3 4 5 6; do
5467      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5468      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5469      # Solaris 8's {/usr,}/bin/sh.
5470      touch sub/conftst$i.h
5471    done
5472    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5473
5474    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5475    # mode.  It turns out that the SunPro C++ compiler does not properly
5476    # handle `-M -o', and we need to detect this.  Also, some Intel
5477    # versions had trouble with output in subdirs
5478    am__obj=sub/conftest.${OBJEXT-o}
5479    am__minus_obj="-o $am__obj"
5480    case $depmode in
5481    gcc)
5482      # This depmode causes a compiler race in universal mode.
5483      test "$am__universal" = false || continue
5484      ;;
5485    nosideeffect)
5486      # after this tag, mechanisms are not by side-effect, so they'll
5487      # only be used when explicitly requested
5488      if test "x$enable_dependency_tracking" = xyes; then
5489	continue
5490      else
5491	break
5492      fi
5493      ;;
5494    msvisualcpp | msvcmsys)
5495      # This compiler won't grok `-c -o', but also, the minuso test has
5496      # not run yet.  These depmodes are late enough in the game, and
5497      # so weak that their functioning should not be impacted.
5498      am__obj=conftest.${OBJEXT-o}
5499      am__minus_obj=
5500      ;;
5501    none) break ;;
5502    esac
5503    if depmode=$depmode \
5504       source=sub/conftest.c object=$am__obj \
5505       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5506       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5507         >/dev/null 2>conftest.err &&
5508       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5509       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5510       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5511       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5512      # icc doesn't choke on unknown options, it will just issue warnings
5513      # or remarks (even with -Werror).  So we grep stderr for any message
5514      # that says an option was ignored or not supported.
5515      # When given -MP, icc 7.0 and 7.1 complain thusly:
5516      #   icc: Command line warning: ignoring option '-M'; no argument required
5517      # The diagnosis changed in icc 8.0:
5518      #   icc: Command line remark: option '-MP' not supported
5519      if (grep 'ignoring option' conftest.err ||
5520          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5521        am_cv_CC_dependencies_compiler_type=$depmode
5522        break
5523      fi
5524    fi
5525  done
5526
5527  cd ..
5528  rm -rf conftest.dir
5529else
5530  am_cv_CC_dependencies_compiler_type=none
5531fi
5532
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5535$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5536CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5537
5538 if
5539  test "x$enable_dependency_tracking" != xno \
5540  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5541  am__fastdepCC_TRUE=
5542  am__fastdepCC_FALSE='#'
5543else
5544  am__fastdepCC_TRUE='#'
5545  am__fastdepCC_FALSE=
5546fi
5547
5548
5549
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5551$as_echo_n "checking whether ln -s works... " >&6; }
5552LN_S=$as_ln_s
5553if test "$LN_S" = "ln -s"; then
5554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5555$as_echo "yes" >&6; }
5556else
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5558$as_echo "no, using $LN_S" >&6; }
5559fi
5560
5561enable_win32_dll=yes
5562
5563case $host in
5564*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5565  if test -n "$ac_tool_prefix"; then
5566  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5567set dummy ${ac_tool_prefix}as; ac_word=$2
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569$as_echo_n "checking for $ac_word... " >&6; }
5570if test "${ac_cv_prog_AS+set}" = set; then :
5571  $as_echo_n "(cached) " >&6
5572else
5573  if test -n "$AS"; then
5574  ac_cv_prog_AS="$AS" # Let the user override the test.
5575else
5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579  IFS=$as_save_IFS
5580  test -z "$as_dir" && as_dir=.
5581    for ac_exec_ext in '' $ac_executable_extensions; do
5582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583    ac_cv_prog_AS="${ac_tool_prefix}as"
5584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585    break 2
5586  fi
5587done
5588  done
5589IFS=$as_save_IFS
5590
5591fi
5592fi
5593AS=$ac_cv_prog_AS
5594if test -n "$AS"; then
5595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5596$as_echo "$AS" >&6; }
5597else
5598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599$as_echo "no" >&6; }
5600fi
5601
5602
5603fi
5604if test -z "$ac_cv_prog_AS"; then
5605  ac_ct_AS=$AS
5606  # Extract the first word of "as", so it can be a program name with args.
5607set dummy as; ac_word=$2
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609$as_echo_n "checking for $ac_word... " >&6; }
5610if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  if test -n "$ac_ct_AS"; then
5614  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5615else
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619  IFS=$as_save_IFS
5620  test -z "$as_dir" && as_dir=.
5621    for ac_exec_ext in '' $ac_executable_extensions; do
5622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623    ac_cv_prog_ac_ct_AS="as"
5624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625    break 2
5626  fi
5627done
5628  done
5629IFS=$as_save_IFS
5630
5631fi
5632fi
5633ac_ct_AS=$ac_cv_prog_ac_ct_AS
5634if test -n "$ac_ct_AS"; then
5635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5636$as_echo "$ac_ct_AS" >&6; }
5637else
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639$as_echo "no" >&6; }
5640fi
5641
5642  if test "x$ac_ct_AS" = x; then
5643    AS="false"
5644  else
5645    case $cross_compiling:$ac_tool_warned in
5646yes:)
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649ac_tool_warned=yes ;;
5650esac
5651    AS=$ac_ct_AS
5652  fi
5653else
5654  AS="$ac_cv_prog_AS"
5655fi
5656
5657  if test -n "$ac_tool_prefix"; then
5658  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5659set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661$as_echo_n "checking for $ac_word... " >&6; }
5662if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5663  $as_echo_n "(cached) " >&6
5664else
5665  if test -n "$DLLTOOL"; then
5666  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5667else
5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671  IFS=$as_save_IFS
5672  test -z "$as_dir" && as_dir=.
5673    for ac_exec_ext in '' $ac_executable_extensions; do
5674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677    break 2
5678  fi
5679done
5680  done
5681IFS=$as_save_IFS
5682
5683fi
5684fi
5685DLLTOOL=$ac_cv_prog_DLLTOOL
5686if test -n "$DLLTOOL"; then
5687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5688$as_echo "$DLLTOOL" >&6; }
5689else
5690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691$as_echo "no" >&6; }
5692fi
5693
5694
5695fi
5696if test -z "$ac_cv_prog_DLLTOOL"; then
5697  ac_ct_DLLTOOL=$DLLTOOL
5698  # Extract the first word of "dlltool", so it can be a program name with args.
5699set dummy dlltool; ac_word=$2
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701$as_echo_n "checking for $ac_word... " >&6; }
5702if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705  if test -n "$ac_ct_DLLTOOL"; then
5706  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711  IFS=$as_save_IFS
5712  test -z "$as_dir" && as_dir=.
5713    for ac_exec_ext in '' $ac_executable_extensions; do
5714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717    break 2
5718  fi
5719done
5720  done
5721IFS=$as_save_IFS
5722
5723fi
5724fi
5725ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5726if test -n "$ac_ct_DLLTOOL"; then
5727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5728$as_echo "$ac_ct_DLLTOOL" >&6; }
5729else
5730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
5732fi
5733
5734  if test "x$ac_ct_DLLTOOL" = x; then
5735    DLLTOOL="false"
5736  else
5737    case $cross_compiling:$ac_tool_warned in
5738yes:)
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741ac_tool_warned=yes ;;
5742esac
5743    DLLTOOL=$ac_ct_DLLTOOL
5744  fi
5745else
5746  DLLTOOL="$ac_cv_prog_DLLTOOL"
5747fi
5748
5749  if test -n "$ac_tool_prefix"; then
5750  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5751set dummy ${ac_tool_prefix}objdump; ac_word=$2
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753$as_echo_n "checking for $ac_word... " >&6; }
5754if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5755  $as_echo_n "(cached) " >&6
5756else
5757  if test -n "$OBJDUMP"; then
5758  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763  IFS=$as_save_IFS
5764  test -z "$as_dir" && as_dir=.
5765    for ac_exec_ext in '' $ac_executable_extensions; do
5766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769    break 2
5770  fi
5771done
5772  done
5773IFS=$as_save_IFS
5774
5775fi
5776fi
5777OBJDUMP=$ac_cv_prog_OBJDUMP
5778if test -n "$OBJDUMP"; then
5779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5780$as_echo "$OBJDUMP" >&6; }
5781else
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783$as_echo "no" >&6; }
5784fi
5785
5786
5787fi
5788if test -z "$ac_cv_prog_OBJDUMP"; then
5789  ac_ct_OBJDUMP=$OBJDUMP
5790  # Extract the first word of "objdump", so it can be a program name with args.
5791set dummy objdump; ac_word=$2
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
5794if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5795  $as_echo_n "(cached) " >&6
5796else
5797  if test -n "$ac_ct_OBJDUMP"; then
5798  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803  IFS=$as_save_IFS
5804  test -z "$as_dir" && as_dir=.
5805    for ac_exec_ext in '' $ac_executable_extensions; do
5806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809    break 2
5810  fi
5811done
5812  done
5813IFS=$as_save_IFS
5814
5815fi
5816fi
5817ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5818if test -n "$ac_ct_OBJDUMP"; then
5819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5820$as_echo "$ac_ct_OBJDUMP" >&6; }
5821else
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
5825
5826  if test "x$ac_ct_OBJDUMP" = x; then
5827    OBJDUMP="false"
5828  else
5829    case $cross_compiling:$ac_tool_warned in
5830yes:)
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5833ac_tool_warned=yes ;;
5834esac
5835    OBJDUMP=$ac_ct_OBJDUMP
5836  fi
5837else
5838  OBJDUMP="$ac_cv_prog_OBJDUMP"
5839fi
5840
5841  ;;
5842esac
5843
5844test -z "$AS" && AS=as
5845
5846
5847
5848
5849
5850test -z "$DLLTOOL" && DLLTOOL=dlltool
5851
5852
5853
5854
5855
5856test -z "$OBJDUMP" && OBJDUMP=objdump
5857
5858
5859
5860
5861
5862
5863
5864case `pwd` in
5865  *\ * | *\	*)
5866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5867$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5868esac
5869
5870
5871
5872macro_version='2.2.6b'
5873macro_revision='1.3017'
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887ltmain="$ac_aux_dir/ltmain.sh"
5888
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5890$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5891if test "${ac_cv_path_SED+set}" = set; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5895     for ac_i in 1 2 3 4 5 6 7; do
5896       ac_script="$ac_script$as_nl$ac_script"
5897     done
5898     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5899     { ac_script=; unset ac_script;}
5900     if test -z "$SED"; then
5901  ac_path_SED_found=false
5902  # Loop through the user's path and test for each of PROGNAME-LIST
5903  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906  IFS=$as_save_IFS
5907  test -z "$as_dir" && as_dir=.
5908    for ac_prog in sed gsed; do
5909    for ac_exec_ext in '' $ac_executable_extensions; do
5910      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5911      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5912# Check for GNU ac_path_SED and select it if it is found.
5913  # Check for GNU $ac_path_SED
5914case `"$ac_path_SED" --version 2>&1` in
5915*GNU*)
5916  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5917*)
5918  ac_count=0
5919  $as_echo_n 0123456789 >"conftest.in"
5920  while :
5921  do
5922    cat "conftest.in" "conftest.in" >"conftest.tmp"
5923    mv "conftest.tmp" "conftest.in"
5924    cp "conftest.in" "conftest.nl"
5925    $as_echo '' >> "conftest.nl"
5926    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5927    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5928    as_fn_arith $ac_count + 1 && ac_count=$as_val
5929    if test $ac_count -gt ${ac_path_SED_max-0}; then
5930      # Best one so far, save it but keep looking for a better one
5931      ac_cv_path_SED="$ac_path_SED"
5932      ac_path_SED_max=$ac_count
5933    fi
5934    # 10*(2^10) chars as input seems more than enough
5935    test $ac_count -gt 10 && break
5936  done
5937  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5938esac
5939
5940      $ac_path_SED_found && break 3
5941    done
5942  done
5943  done
5944IFS=$as_save_IFS
5945  if test -z "$ac_cv_path_SED"; then
5946    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5947  fi
5948else
5949  ac_cv_path_SED=$SED
5950fi
5951
5952fi
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5954$as_echo "$ac_cv_path_SED" >&6; }
5955 SED="$ac_cv_path_SED"
5956  rm -f conftest.sed
5957
5958test -z "$SED" && SED=sed
5959Xsed="$SED -e 1s/^X//"
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5972$as_echo_n "checking for fgrep... " >&6; }
5973if test "${ac_cv_path_FGREP+set}" = set; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5977   then ac_cv_path_FGREP="$GREP -F"
5978   else
5979     if test -z "$FGREP"; then
5980  ac_path_FGREP_found=false
5981  # Loop through the user's path and test for each of PROGNAME-LIST
5982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5984do
5985  IFS=$as_save_IFS
5986  test -z "$as_dir" && as_dir=.
5987    for ac_prog in fgrep; do
5988    for ac_exec_ext in '' $ac_executable_extensions; do
5989      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5990      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5991# Check for GNU ac_path_FGREP and select it if it is found.
5992  # Check for GNU $ac_path_FGREP
5993case `"$ac_path_FGREP" --version 2>&1` in
5994*GNU*)
5995  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5996*)
5997  ac_count=0
5998  $as_echo_n 0123456789 >"conftest.in"
5999  while :
6000  do
6001    cat "conftest.in" "conftest.in" >"conftest.tmp"
6002    mv "conftest.tmp" "conftest.in"
6003    cp "conftest.in" "conftest.nl"
6004    $as_echo 'FGREP' >> "conftest.nl"
6005    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6006    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6007    as_fn_arith $ac_count + 1 && ac_count=$as_val
6008    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6009      # Best one so far, save it but keep looking for a better one
6010      ac_cv_path_FGREP="$ac_path_FGREP"
6011      ac_path_FGREP_max=$ac_count
6012    fi
6013    # 10*(2^10) chars as input seems more than enough
6014    test $ac_count -gt 10 && break
6015  done
6016  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6017esac
6018
6019      $ac_path_FGREP_found && break 3
6020    done
6021  done
6022  done
6023IFS=$as_save_IFS
6024  if test -z "$ac_cv_path_FGREP"; then
6025    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6026  fi
6027else
6028  ac_cv_path_FGREP=$FGREP
6029fi
6030
6031   fi
6032fi
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6034$as_echo "$ac_cv_path_FGREP" >&6; }
6035 FGREP="$ac_cv_path_FGREP"
6036
6037
6038test -z "$GREP" && GREP=grep
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058# Check whether --with-gnu-ld was given.
6059if test "${with_gnu_ld+set}" = set; then :
6060  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6061else
6062  with_gnu_ld=no
6063fi
6064
6065ac_prog=ld
6066if test "$GCC" = yes; then
6067  # Check if gcc -print-prog-name=ld gives a path.
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6069$as_echo_n "checking for ld used by $CC... " >&6; }
6070  case $host in
6071  *-*-mingw*)
6072    # gcc leaves a trailing carriage return which upsets mingw
6073    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6074  *)
6075    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6076  esac
6077  case $ac_prog in
6078    # Accept absolute paths.
6079    [\\/]* | ?:[\\/]*)
6080      re_direlt='/[^/][^/]*/\.\./'
6081      # Canonicalize the pathname of ld
6082      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6083      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6084	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6085      done
6086      test -z "$LD" && LD="$ac_prog"
6087      ;;
6088  "")
6089    # If it fails, then pretend we aren't using GCC.
6090    ac_prog=ld
6091    ;;
6092  *)
6093    # If it is relative, then search for the first ld in PATH.
6094    with_gnu_ld=unknown
6095    ;;
6096  esac
6097elif test "$with_gnu_ld" = yes; then
6098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6099$as_echo_n "checking for GNU ld... " >&6; }
6100else
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6102$as_echo_n "checking for non-GNU ld... " >&6; }
6103fi
6104if test "${lt_cv_path_LD+set}" = set; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107  if test -z "$LD"; then
6108  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109  for ac_dir in $PATH; do
6110    IFS="$lt_save_ifs"
6111    test -z "$ac_dir" && ac_dir=.
6112    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6113      lt_cv_path_LD="$ac_dir/$ac_prog"
6114      # Check to see if the program is GNU ld.  I'd rather use --version,
6115      # but apparently some variants of GNU ld only accept -v.
6116      # Break only if it was the GNU/non-GNU ld that we prefer.
6117      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6118      *GNU* | *'with BFD'*)
6119	test "$with_gnu_ld" != no && break
6120	;;
6121      *)
6122	test "$with_gnu_ld" != yes && break
6123	;;
6124      esac
6125    fi
6126  done
6127  IFS="$lt_save_ifs"
6128else
6129  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6130fi
6131fi
6132
6133LD="$lt_cv_path_LD"
6134if test -n "$LD"; then
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6136$as_echo "$LD" >&6; }
6137else
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139$as_echo "no" >&6; }
6140fi
6141test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6143$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6144if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6145  $as_echo_n "(cached) " >&6
6146else
6147  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6148case `$LD -v 2>&1 </dev/null` in
6149*GNU* | *'with BFD'*)
6150  lt_cv_prog_gnu_ld=yes
6151  ;;
6152*)
6153  lt_cv_prog_gnu_ld=no
6154  ;;
6155esac
6156fi
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6158$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6159with_gnu_ld=$lt_cv_prog_gnu_ld
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6170$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6171if test "${lt_cv_path_NM+set}" = set; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174  if test -n "$NM"; then
6175  # Let the user override the test.
6176  lt_cv_path_NM="$NM"
6177else
6178  lt_nm_to_check="${ac_tool_prefix}nm"
6179  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6180    lt_nm_to_check="$lt_nm_to_check nm"
6181  fi
6182  for lt_tmp_nm in $lt_nm_to_check; do
6183    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6184    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6185      IFS="$lt_save_ifs"
6186      test -z "$ac_dir" && ac_dir=.
6187      tmp_nm="$ac_dir/$lt_tmp_nm"
6188      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6189	# Check to see if the nm accepts a BSD-compat flag.
6190	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6191	#   nm: unknown option "B" ignored
6192	# Tru64's nm complains that /dev/null is an invalid object file
6193	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6194	*/dev/null* | *'Invalid file or object type'*)
6195	  lt_cv_path_NM="$tmp_nm -B"
6196	  break
6197	  ;;
6198	*)
6199	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6200	  */dev/null*)
6201	    lt_cv_path_NM="$tmp_nm -p"
6202	    break
6203	    ;;
6204	  *)
6205	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6206	    continue # so that we can try to find one that supports BSD flags
6207	    ;;
6208	  esac
6209	  ;;
6210	esac
6211      fi
6212    done
6213    IFS="$lt_save_ifs"
6214  done
6215  : ${lt_cv_path_NM=no}
6216fi
6217fi
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6219$as_echo "$lt_cv_path_NM" >&6; }
6220if test "$lt_cv_path_NM" != "no"; then
6221  NM="$lt_cv_path_NM"
6222else
6223  # Didn't find any BSD compatible name lister, look for dumpbin.
6224  if test -n "$ac_tool_prefix"; then
6225  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6226  do
6227    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
6231if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  if test -n "$DUMPBIN"; then
6235  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240  IFS=$as_save_IFS
6241  test -z "$as_dir" && as_dir=.
6242    for ac_exec_ext in '' $ac_executable_extensions; do
6243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246    break 2
6247  fi
6248done
6249  done
6250IFS=$as_save_IFS
6251
6252fi
6253fi
6254DUMPBIN=$ac_cv_prog_DUMPBIN
6255if test -n "$DUMPBIN"; then
6256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6257$as_echo "$DUMPBIN" >&6; }
6258else
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
6261fi
6262
6263
6264    test -n "$DUMPBIN" && break
6265  done
6266fi
6267if test -z "$DUMPBIN"; then
6268  ac_ct_DUMPBIN=$DUMPBIN
6269  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6270do
6271  # Extract the first word of "$ac_prog", so it can be a program name with args.
6272set dummy $ac_prog; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  if test -n "$ac_ct_DUMPBIN"; then
6279  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284  IFS=$as_save_IFS
6285  test -z "$as_dir" && as_dir=.
6286    for ac_exec_ext in '' $ac_executable_extensions; do
6287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293  done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6299if test -n "$ac_ct_DUMPBIN"; then
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6301$as_echo "$ac_ct_DUMPBIN" >&6; }
6302else
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307
6308  test -n "$ac_ct_DUMPBIN" && break
6309done
6310
6311  if test "x$ac_ct_DUMPBIN" = x; then
6312    DUMPBIN=":"
6313  else
6314    case $cross_compiling:$ac_tool_warned in
6315yes:)
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320    DUMPBIN=$ac_ct_DUMPBIN
6321  fi
6322fi
6323
6324
6325  if test "$DUMPBIN" != ":"; then
6326    NM="$DUMPBIN"
6327  fi
6328fi
6329test -z "$NM" && NM=nm
6330
6331
6332
6333
6334
6335
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6337$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6338if test "${lt_cv_nm_interface+set}" = set; then :
6339  $as_echo_n "(cached) " >&6
6340else
6341  lt_cv_nm_interface="BSD nm"
6342  echo "int some_variable = 0;" > conftest.$ac_ext
6343  (eval echo "\"\$as_me:6343: $ac_compile\"" >&5)
6344  (eval "$ac_compile" 2>conftest.err)
6345  cat conftest.err >&5
6346  (eval echo "\"\$as_me:6346: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6347  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6348  cat conftest.err >&5
6349  (eval echo "\"\$as_me:6349: output\"" >&5)
6350  cat conftest.out >&5
6351  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6352    lt_cv_nm_interface="MS dumpbin"
6353  fi
6354  rm -f conftest*
6355fi
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6357$as_echo "$lt_cv_nm_interface" >&6; }
6358
6359# find the maximum length of command line arguments
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6361$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6362if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365    i=0
6366  teststring="ABCD"
6367
6368  case $build_os in
6369  msdosdjgpp*)
6370    # On DJGPP, this test can blow up pretty badly due to problems in libc
6371    # (any single argument exceeding 2000 bytes causes a buffer overrun
6372    # during glob expansion).  Even if it were fixed, the result of this
6373    # check would be larger than it should be.
6374    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6375    ;;
6376
6377  gnu*)
6378    # Under GNU Hurd, this test is not required because there is
6379    # no limit to the length of command line arguments.
6380    # Libtool will interpret -1 as no limit whatsoever
6381    lt_cv_sys_max_cmd_len=-1;
6382    ;;
6383
6384  cygwin* | mingw* | cegcc*)
6385    # On Win9x/ME, this test blows up -- it succeeds, but takes
6386    # about 5 minutes as the teststring grows exponentially.
6387    # Worse, since 9x/ME are not pre-emptively multitasking,
6388    # you end up with a "frozen" computer, even though with patience
6389    # the test eventually succeeds (with a max line length of 256k).
6390    # Instead, let's just punt: use the minimum linelength reported by
6391    # all of the supported platforms: 8192 (on NT/2K/XP).
6392    lt_cv_sys_max_cmd_len=8192;
6393    ;;
6394
6395  amigaos*)
6396    # On AmigaOS with pdksh, this test takes hours, literally.
6397    # So we just punt and use a minimum line length of 8192.
6398    lt_cv_sys_max_cmd_len=8192;
6399    ;;
6400
6401  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6402    # This has been around since 386BSD, at least.  Likely further.
6403    if test -x /sbin/sysctl; then
6404      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6405    elif test -x /usr/sbin/sysctl; then
6406      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6407    else
6408      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6409    fi
6410    # And add a safety zone
6411    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6412    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6413    ;;
6414
6415  interix*)
6416    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6417    lt_cv_sys_max_cmd_len=196608
6418    ;;
6419
6420  osf*)
6421    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6422    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6423    # nice to cause kernel panics so lets avoid the loop below.
6424    # First set a reasonable default.
6425    lt_cv_sys_max_cmd_len=16384
6426    #
6427    if test -x /sbin/sysconfig; then
6428      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6429        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6430      esac
6431    fi
6432    ;;
6433  sco3.2v5*)
6434    lt_cv_sys_max_cmd_len=102400
6435    ;;
6436  sysv5* | sco5v6* | sysv4.2uw2*)
6437    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6438    if test -n "$kargmax"; then
6439      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6440    else
6441      lt_cv_sys_max_cmd_len=32768
6442    fi
6443    ;;
6444  *)
6445    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6446    if test -n "$lt_cv_sys_max_cmd_len"; then
6447      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6448      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6449    else
6450      # Make teststring a little bigger before we do anything with it.
6451      # a 1K string should be a reasonable start.
6452      for i in 1 2 3 4 5 6 7 8 ; do
6453        teststring=$teststring$teststring
6454      done
6455      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6456      # If test is not a shell built-in, we'll probably end up computing a
6457      # maximum length that is only half of the actual maximum length, but
6458      # we can't tell.
6459      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6460	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6461	      test $i != 17 # 1/2 MB should be enough
6462      do
6463        i=`expr $i + 1`
6464        teststring=$teststring$teststring
6465      done
6466      # Only check the string length outside the loop.
6467      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6468      teststring=
6469      # Add a significant safety factor because C++ compilers can tack on
6470      # massive amounts of additional arguments before passing them to the
6471      # linker.  It appears as though 1/2 is a usable value.
6472      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6473    fi
6474    ;;
6475  esac
6476
6477fi
6478
6479if test -n $lt_cv_sys_max_cmd_len ; then
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6481$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6482else
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6484$as_echo "none" >&6; }
6485fi
6486max_cmd_len=$lt_cv_sys_max_cmd_len
6487
6488
6489
6490
6491
6492
6493: ${CP="cp -f"}
6494: ${MV="mv -f"}
6495: ${RM="rm -f"}
6496
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6498$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6499# Try some XSI features
6500xsi_shell=no
6501( _lt_dummy="a/b/c"
6502  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6503      = c,a/b,, \
6504    && eval 'test $(( 1 + 1 )) -eq 2 \
6505    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6506  && xsi_shell=yes
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6508$as_echo "$xsi_shell" >&6; }
6509
6510
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6512$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6513lt_shell_append=no
6514( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6515    >/dev/null 2>&1 \
6516  && lt_shell_append=yes
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6518$as_echo "$lt_shell_append" >&6; }
6519
6520
6521if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6522  lt_unset=unset
6523else
6524  lt_unset=false
6525fi
6526
6527
6528
6529
6530
6531# test EBCDIC or ASCII
6532case `echo X|tr X '\101'` in
6533 A) # ASCII based system
6534    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6535  lt_SP2NL='tr \040 \012'
6536  lt_NL2SP='tr \015\012 \040\040'
6537  ;;
6538 *) # EBCDIC based system
6539  lt_SP2NL='tr \100 \n'
6540  lt_NL2SP='tr \r\n \100\100'
6541  ;;
6542esac
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6553$as_echo_n "checking for $LD option to reload object files... " >&6; }
6554if test "${lt_cv_ld_reload_flag+set}" = set; then :
6555  $as_echo_n "(cached) " >&6
6556else
6557  lt_cv_ld_reload_flag='-r'
6558fi
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6560$as_echo "$lt_cv_ld_reload_flag" >&6; }
6561reload_flag=$lt_cv_ld_reload_flag
6562case $reload_flag in
6563"" | " "*) ;;
6564*) reload_flag=" $reload_flag" ;;
6565esac
6566reload_cmds='$LD$reload_flag -o $output$reload_objs'
6567case $host_os in
6568  darwin*)
6569    if test "$GCC" = yes; then
6570      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6571    else
6572      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6573    fi
6574    ;;
6575esac
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585if test -n "$ac_tool_prefix"; then
6586  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6587set dummy ${ac_tool_prefix}objdump; ac_word=$2
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589$as_echo_n "checking for $ac_word... " >&6; }
6590if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6591  $as_echo_n "(cached) " >&6
6592else
6593  if test -n "$OBJDUMP"; then
6594  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6595else
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599  IFS=$as_save_IFS
6600  test -z "$as_dir" && as_dir=.
6601    for ac_exec_ext in '' $ac_executable_extensions; do
6602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605    break 2
6606  fi
6607done
6608  done
6609IFS=$as_save_IFS
6610
6611fi
6612fi
6613OBJDUMP=$ac_cv_prog_OBJDUMP
6614if test -n "$OBJDUMP"; then
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6616$as_echo "$OBJDUMP" >&6; }
6617else
6618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; }
6620fi
6621
6622
6623fi
6624if test -z "$ac_cv_prog_OBJDUMP"; then
6625  ac_ct_OBJDUMP=$OBJDUMP
6626  # Extract the first word of "objdump", so it can be a program name with args.
6627set dummy objdump; ac_word=$2
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629$as_echo_n "checking for $ac_word... " >&6; }
6630if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6631  $as_echo_n "(cached) " >&6
6632else
6633  if test -n "$ac_ct_OBJDUMP"; then
6634  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639  IFS=$as_save_IFS
6640  test -z "$as_dir" && as_dir=.
6641    for ac_exec_ext in '' $ac_executable_extensions; do
6642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645    break 2
6646  fi
6647done
6648  done
6649IFS=$as_save_IFS
6650
6651fi
6652fi
6653ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6654if test -n "$ac_ct_OBJDUMP"; then
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6656$as_echo "$ac_ct_OBJDUMP" >&6; }
6657else
6658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659$as_echo "no" >&6; }
6660fi
6661
6662  if test "x$ac_ct_OBJDUMP" = x; then
6663    OBJDUMP="false"
6664  else
6665    case $cross_compiling:$ac_tool_warned in
6666yes:)
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669ac_tool_warned=yes ;;
6670esac
6671    OBJDUMP=$ac_ct_OBJDUMP
6672  fi
6673else
6674  OBJDUMP="$ac_cv_prog_OBJDUMP"
6675fi
6676
6677test -z "$OBJDUMP" && OBJDUMP=objdump
6678
6679
6680
6681
6682
6683
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6685$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6686if test "${lt_cv_deplibs_check_method+set}" = set; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  lt_cv_file_magic_cmd='$MAGIC_CMD'
6690lt_cv_file_magic_test_file=
6691lt_cv_deplibs_check_method='unknown'
6692# Need to set the preceding variable on all platforms that support
6693# interlibrary dependencies.
6694# 'none' -- dependencies not supported.
6695# `unknown' -- same as none, but documents that we really don't know.
6696# 'pass_all' -- all dependencies passed with no checks.
6697# 'test_compile' -- check by making test program.
6698# 'file_magic [[regex]]' -- check by looking for files in library path
6699# which responds to the $file_magic_cmd with a given extended regex.
6700# If you have `file' or equivalent on your system and you're not sure
6701# whether `pass_all' will *always* work, you probably want this one.
6702
6703case $host_os in
6704aix[4-9]*)
6705  lt_cv_deplibs_check_method=pass_all
6706  ;;
6707
6708beos*)
6709  lt_cv_deplibs_check_method=pass_all
6710  ;;
6711
6712bsdi[45]*)
6713  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6714  lt_cv_file_magic_cmd='/usr/bin/file -L'
6715  lt_cv_file_magic_test_file=/shlib/libc.so
6716  ;;
6717
6718cygwin*)
6719  # func_win32_libid is a shell function defined in ltmain.sh
6720  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6721  lt_cv_file_magic_cmd='func_win32_libid'
6722  ;;
6723
6724mingw* | pw32*)
6725  # Base MSYS/MinGW do not provide the 'file' command needed by
6726  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6727  # unless we find 'file', for example because we are cross-compiling.
6728  if ( file / ) >/dev/null 2>&1; then
6729    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6730    lt_cv_file_magic_cmd='func_win32_libid'
6731  else
6732    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6733    lt_cv_file_magic_cmd='$OBJDUMP -f'
6734  fi
6735  ;;
6736
6737cegcc)
6738  # use the weaker test based on 'objdump'. See mingw*.
6739  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6740  lt_cv_file_magic_cmd='$OBJDUMP -f'
6741  ;;
6742
6743darwin* | rhapsody*)
6744  lt_cv_deplibs_check_method=pass_all
6745  ;;
6746
6747freebsd* | dragonfly*)
6748  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6749    case $host_cpu in
6750    i*86 )
6751      # Not sure whether the presence of OpenBSD here was a mistake.
6752      # Let's accept both of them until this is cleared up.
6753      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6754      lt_cv_file_magic_cmd=/usr/bin/file
6755      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6756      ;;
6757    esac
6758  else
6759    lt_cv_deplibs_check_method=pass_all
6760  fi
6761  ;;
6762
6763gnu*)
6764  lt_cv_deplibs_check_method=pass_all
6765  ;;
6766
6767hpux10.20* | hpux11*)
6768  lt_cv_file_magic_cmd=/usr/bin/file
6769  case $host_cpu in
6770  ia64*)
6771    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6772    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6773    ;;
6774  hppa*64*)
6775    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6776    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6777    ;;
6778  *)
6779    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6780    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6781    ;;
6782  esac
6783  ;;
6784
6785interix[3-9]*)
6786  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6787  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6788  ;;
6789
6790irix5* | irix6* | nonstopux*)
6791  case $LD in
6792  *-32|*"-32 ") libmagic=32-bit;;
6793  *-n32|*"-n32 ") libmagic=N32;;
6794  *-64|*"-64 ") libmagic=64-bit;;
6795  *) libmagic=never-match;;
6796  esac
6797  lt_cv_deplibs_check_method=pass_all
6798  ;;
6799
6800# This must be Linux ELF.
6801linux* | k*bsd*-gnu | kopensolaris*-gnu)
6802  lt_cv_deplibs_check_method=pass_all
6803  ;;
6804
6805netbsd* | netbsdelf*-gnu)
6806  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6807    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6808  else
6809    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6810  fi
6811  ;;
6812
6813newos6*)
6814  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6815  lt_cv_file_magic_cmd=/usr/bin/file
6816  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6817  ;;
6818
6819*nto* | *qnx*)
6820  lt_cv_deplibs_check_method=pass_all
6821  ;;
6822
6823openbsd*)
6824  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6825    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6826  else
6827    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6828  fi
6829  ;;
6830
6831osf3* | osf4* | osf5*)
6832  lt_cv_deplibs_check_method=pass_all
6833  ;;
6834
6835rdos*)
6836  lt_cv_deplibs_check_method=pass_all
6837  ;;
6838
6839solaris*)
6840  lt_cv_deplibs_check_method=pass_all
6841  ;;
6842
6843sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6844  lt_cv_deplibs_check_method=pass_all
6845  ;;
6846
6847sysv4 | sysv4.3*)
6848  case $host_vendor in
6849  motorola)
6850    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]'
6851    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6852    ;;
6853  ncr)
6854    lt_cv_deplibs_check_method=pass_all
6855    ;;
6856  sequent)
6857    lt_cv_file_magic_cmd='/bin/file'
6858    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6859    ;;
6860  sni)
6861    lt_cv_file_magic_cmd='/bin/file'
6862    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6863    lt_cv_file_magic_test_file=/lib/libc.so
6864    ;;
6865  siemens)
6866    lt_cv_deplibs_check_method=pass_all
6867    ;;
6868  pc)
6869    lt_cv_deplibs_check_method=pass_all
6870    ;;
6871  esac
6872  ;;
6873
6874tpf*)
6875  lt_cv_deplibs_check_method=pass_all
6876  ;;
6877esac
6878
6879fi
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6881$as_echo "$lt_cv_deplibs_check_method" >&6; }
6882file_magic_cmd=$lt_cv_file_magic_cmd
6883deplibs_check_method=$lt_cv_deplibs_check_method
6884test -z "$deplibs_check_method" && deplibs_check_method=unknown
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897if test -n "$ac_tool_prefix"; then
6898  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6899set dummy ${ac_tool_prefix}ar; ac_word=$2
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901$as_echo_n "checking for $ac_word... " >&6; }
6902if test "${ac_cv_prog_AR+set}" = set; then :
6903  $as_echo_n "(cached) " >&6
6904else
6905  if test -n "$AR"; then
6906  ac_cv_prog_AR="$AR" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911  IFS=$as_save_IFS
6912  test -z "$as_dir" && as_dir=.
6913    for ac_exec_ext in '' $ac_executable_extensions; do
6914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915    ac_cv_prog_AR="${ac_tool_prefix}ar"
6916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917    break 2
6918  fi
6919done
6920  done
6921IFS=$as_save_IFS
6922
6923fi
6924fi
6925AR=$ac_cv_prog_AR
6926if test -n "$AR"; then
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6928$as_echo "$AR" >&6; }
6929else
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931$as_echo "no" >&6; }
6932fi
6933
6934
6935fi
6936if test -z "$ac_cv_prog_AR"; then
6937  ac_ct_AR=$AR
6938  # Extract the first word of "ar", so it can be a program name with args.
6939set dummy ar; ac_word=$2
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941$as_echo_n "checking for $ac_word... " >&6; }
6942if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  if test -n "$ac_ct_AR"; then
6946  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951  IFS=$as_save_IFS
6952  test -z "$as_dir" && as_dir=.
6953    for ac_exec_ext in '' $ac_executable_extensions; do
6954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955    ac_cv_prog_ac_ct_AR="ar"
6956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957    break 2
6958  fi
6959done
6960  done
6961IFS=$as_save_IFS
6962
6963fi
6964fi
6965ac_ct_AR=$ac_cv_prog_ac_ct_AR
6966if test -n "$ac_ct_AR"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6968$as_echo "$ac_ct_AR" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6972fi
6973
6974  if test "x$ac_ct_AR" = x; then
6975    AR="false"
6976  else
6977    case $cross_compiling:$ac_tool_warned in
6978yes:)
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981ac_tool_warned=yes ;;
6982esac
6983    AR=$ac_ct_AR
6984  fi
6985else
6986  AR="$ac_cv_prog_AR"
6987fi
6988
6989test -z "$AR" && AR=ar
6990test -z "$AR_FLAGS" && AR_FLAGS=cru
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002if test -n "$ac_tool_prefix"; then
7003  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7004set dummy ${ac_tool_prefix}strip; ac_word=$2
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006$as_echo_n "checking for $ac_word... " >&6; }
7007if test "${ac_cv_prog_STRIP+set}" = set; then :
7008  $as_echo_n "(cached) " >&6
7009else
7010  if test -n "$STRIP"; then
7011  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016  IFS=$as_save_IFS
7017  test -z "$as_dir" && as_dir=.
7018    for ac_exec_ext in '' $ac_executable_extensions; do
7019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022    break 2
7023  fi
7024done
7025  done
7026IFS=$as_save_IFS
7027
7028fi
7029fi
7030STRIP=$ac_cv_prog_STRIP
7031if test -n "$STRIP"; then
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7033$as_echo "$STRIP" >&6; }
7034else
7035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036$as_echo "no" >&6; }
7037fi
7038
7039
7040fi
7041if test -z "$ac_cv_prog_STRIP"; then
7042  ac_ct_STRIP=$STRIP
7043  # Extract the first word of "strip", so it can be a program name with args.
7044set dummy strip; ac_word=$2
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046$as_echo_n "checking for $ac_word... " >&6; }
7047if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  if test -n "$ac_ct_STRIP"; then
7051  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056  IFS=$as_save_IFS
7057  test -z "$as_dir" && as_dir=.
7058    for ac_exec_ext in '' $ac_executable_extensions; do
7059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060    ac_cv_prog_ac_ct_STRIP="strip"
7061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062    break 2
7063  fi
7064done
7065  done
7066IFS=$as_save_IFS
7067
7068fi
7069fi
7070ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7071if test -n "$ac_ct_STRIP"; then
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7073$as_echo "$ac_ct_STRIP" >&6; }
7074else
7075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079  if test "x$ac_ct_STRIP" = x; then
7080    STRIP=":"
7081  else
7082    case $cross_compiling:$ac_tool_warned in
7083yes:)
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086ac_tool_warned=yes ;;
7087esac
7088    STRIP=$ac_ct_STRIP
7089  fi
7090else
7091  STRIP="$ac_cv_prog_STRIP"
7092fi
7093
7094test -z "$STRIP" && STRIP=:
7095
7096
7097
7098
7099
7100
7101if test -n "$ac_tool_prefix"; then
7102  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7103set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105$as_echo_n "checking for $ac_word... " >&6; }
7106if test "${ac_cv_prog_RANLIB+set}" = set; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  if test -n "$RANLIB"; then
7110  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115  IFS=$as_save_IFS
7116  test -z "$as_dir" && as_dir=.
7117    for ac_exec_ext in '' $ac_executable_extensions; do
7118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121    break 2
7122  fi
7123done
7124  done
7125IFS=$as_save_IFS
7126
7127fi
7128fi
7129RANLIB=$ac_cv_prog_RANLIB
7130if test -n "$RANLIB"; then
7131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7132$as_echo "$RANLIB" >&6; }
7133else
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135$as_echo "no" >&6; }
7136fi
7137
7138
7139fi
7140if test -z "$ac_cv_prog_RANLIB"; then
7141  ac_ct_RANLIB=$RANLIB
7142  # Extract the first word of "ranlib", so it can be a program name with args.
7143set dummy ranlib; ac_word=$2
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145$as_echo_n "checking for $ac_word... " >&6; }
7146if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7147  $as_echo_n "(cached) " >&6
7148else
7149  if test -n "$ac_ct_RANLIB"; then
7150  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7151else
7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155  IFS=$as_save_IFS
7156  test -z "$as_dir" && as_dir=.
7157    for ac_exec_ext in '' $ac_executable_extensions; do
7158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7159    ac_cv_prog_ac_ct_RANLIB="ranlib"
7160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161    break 2
7162  fi
7163done
7164  done
7165IFS=$as_save_IFS
7166
7167fi
7168fi
7169ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7170if test -n "$ac_ct_RANLIB"; then
7171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7172$as_echo "$ac_ct_RANLIB" >&6; }
7173else
7174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175$as_echo "no" >&6; }
7176fi
7177
7178  if test "x$ac_ct_RANLIB" = x; then
7179    RANLIB=":"
7180  else
7181    case $cross_compiling:$ac_tool_warned in
7182yes:)
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185ac_tool_warned=yes ;;
7186esac
7187    RANLIB=$ac_ct_RANLIB
7188  fi
7189else
7190  RANLIB="$ac_cv_prog_RANLIB"
7191fi
7192
7193test -z "$RANLIB" && RANLIB=:
7194
7195
7196
7197
7198
7199
7200# Determine commands to create old-style static archives.
7201old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7202old_postinstall_cmds='chmod 644 $oldlib'
7203old_postuninstall_cmds=
7204
7205if test -n "$RANLIB"; then
7206  case $host_os in
7207  openbsd*)
7208    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7209    ;;
7210  *)
7211    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7212    ;;
7213  esac
7214  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7215fi
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250# If no C compiler was specified, use CC.
7251LTCC=${LTCC-"$CC"}
7252
7253# If no C compiler flags were specified, use CFLAGS.
7254LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7255
7256# Allow CC to be a program name with arguments.
7257compiler=$CC
7258
7259
7260# Check for command to grab the raw symbol name followed by C symbol from nm.
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7262$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7263if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7264  $as_echo_n "(cached) " >&6
7265else
7266
7267# These are sane defaults that work on at least a few old systems.
7268# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7269
7270# Character class describing NM global symbol codes.
7271symcode='[BCDEGRST]'
7272
7273# Regexp to match symbols that can be accessed directly from C.
7274sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7275
7276# Define system-specific variables.
7277case $host_os in
7278aix*)
7279  symcode='[BCDT]'
7280  ;;
7281cygwin* | mingw* | pw32* | cegcc*)
7282  symcode='[ABCDGISTW]'
7283  ;;
7284hpux*)
7285  if test "$host_cpu" = ia64; then
7286    symcode='[ABCDEGRST]'
7287  fi
7288  ;;
7289irix* | nonstopux*)
7290  symcode='[BCDEGRST]'
7291  ;;
7292osf*)
7293  symcode='[BCDEGQRST]'
7294  ;;
7295solaris*)
7296  symcode='[BDRT]'
7297  ;;
7298sco3.2v5*)
7299  symcode='[DT]'
7300  ;;
7301sysv4.2uw2*)
7302  symcode='[DT]'
7303  ;;
7304sysv5* | sco5v6* | unixware* | OpenUNIX*)
7305  symcode='[ABDT]'
7306  ;;
7307sysv4)
7308  symcode='[DFNSTU]'
7309  ;;
7310esac
7311
7312# If we're using GNU nm, then use its standard symbol codes.
7313case `$NM -V 2>&1` in
7314*GNU* | *'with BFD'*)
7315  symcode='[ABCDGIRSTW]' ;;
7316esac
7317
7318# Transform an extracted symbol line into a proper C declaration.
7319# Some systems (esp. on ia64) link data and code symbols differently,
7320# so use this general approach.
7321lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7322
7323# Transform an extracted symbol line into symbol name and symbol address
7324lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7325lt_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'"
7326
7327# Handle CRLF in mingw tool chain
7328opt_cr=
7329case $build_os in
7330mingw*)
7331  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7332  ;;
7333esac
7334
7335# Try without a prefix underscore, then with it.
7336for ac_symprfx in "" "_"; do
7337
7338  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7339  symxfrm="\\1 $ac_symprfx\\2 \\2"
7340
7341  # Write the raw and C identifiers.
7342  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7343    # Fake it for dumpbin and say T for any non-static function
7344    # and D for any global variable.
7345    # Also find C++ and __fastcall symbols from MSVC++,
7346    # which start with @ or ?.
7347    lt_cv_sys_global_symbol_pipe="$AWK '"\
7348"     {last_section=section; section=\$ 3};"\
7349"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7350"     \$ 0!~/External *\|/{next};"\
7351"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7352"     {if(hide[section]) next};"\
7353"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7354"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7355"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7356"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7357"     ' prfx=^$ac_symprfx"
7358  else
7359    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7360  fi
7361
7362  # Check to see that the pipe works correctly.
7363  pipe_works=no
7364
7365  rm -f conftest*
7366  cat > conftest.$ac_ext <<_LT_EOF
7367#ifdef __cplusplus
7368extern "C" {
7369#endif
7370char nm_test_var;
7371void nm_test_func(void);
7372void nm_test_func(void){}
7373#ifdef __cplusplus
7374}
7375#endif
7376int main(){nm_test_var='a';nm_test_func();return(0);}
7377_LT_EOF
7378
7379  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7380  (eval $ac_compile) 2>&5
7381  ac_status=$?
7382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383  test $ac_status = 0; }; then
7384    # Now try to grab the symbols.
7385    nlist=conftest.nm
7386    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7387  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7388  ac_status=$?
7389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7390  test $ac_status = 0; } && test -s "$nlist"; then
7391      # Try sorting and uniquifying the output.
7392      if sort "$nlist" | uniq > "$nlist"T; then
7393	mv -f "$nlist"T "$nlist"
7394      else
7395	rm -f "$nlist"T
7396      fi
7397
7398      # Make sure that we snagged all the symbols we need.
7399      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7400	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7401	  cat <<_LT_EOF > conftest.$ac_ext
7402#ifdef __cplusplus
7403extern "C" {
7404#endif
7405
7406_LT_EOF
7407	  # Now generate the symbol file.
7408	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7409
7410	  cat <<_LT_EOF >> conftest.$ac_ext
7411
7412/* The mapping between symbol names and symbols.  */
7413const struct {
7414  const char *name;
7415  void       *address;
7416}
7417lt__PROGRAM__LTX_preloaded_symbols[] =
7418{
7419  { "@PROGRAM@", (void *) 0 },
7420_LT_EOF
7421	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7422	  cat <<\_LT_EOF >> conftest.$ac_ext
7423  {0, (void *) 0}
7424};
7425
7426/* This works around a problem in FreeBSD linker */
7427#ifdef FREEBSD_WORKAROUND
7428static const void *lt_preloaded_setup() {
7429  return lt__PROGRAM__LTX_preloaded_symbols;
7430}
7431#endif
7432
7433#ifdef __cplusplus
7434}
7435#endif
7436_LT_EOF
7437	  # Now try linking the two files.
7438	  mv conftest.$ac_objext conftstm.$ac_objext
7439	  lt_save_LIBS="$LIBS"
7440	  lt_save_CFLAGS="$CFLAGS"
7441	  LIBS="conftstm.$ac_objext"
7442	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7443	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7444  (eval $ac_link) 2>&5
7445  ac_status=$?
7446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7447  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7448	    pipe_works=yes
7449	  fi
7450	  LIBS="$lt_save_LIBS"
7451	  CFLAGS="$lt_save_CFLAGS"
7452	else
7453	  echo "cannot find nm_test_func in $nlist" >&5
7454	fi
7455      else
7456	echo "cannot find nm_test_var in $nlist" >&5
7457      fi
7458    else
7459      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7460    fi
7461  else
7462    echo "$progname: failed program was:" >&5
7463    cat conftest.$ac_ext >&5
7464  fi
7465  rm -rf conftest* conftst*
7466
7467  # Do not use the global_symbol_pipe unless it works.
7468  if test "$pipe_works" = yes; then
7469    break
7470  else
7471    lt_cv_sys_global_symbol_pipe=
7472  fi
7473done
7474
7475fi
7476
7477if test -z "$lt_cv_sys_global_symbol_pipe"; then
7478  lt_cv_sys_global_symbol_to_cdecl=
7479fi
7480if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7482$as_echo "failed" >&6; }
7483else
7484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7485$as_echo "ok" >&6; }
7486fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509# Check whether --enable-libtool-lock was given.
7510if test "${enable_libtool_lock+set}" = set; then :
7511  enableval=$enable_libtool_lock;
7512fi
7513
7514test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7515
7516# Some flags need to be propagated to the compiler or linker for good
7517# libtool support.
7518case $host in
7519ia64-*-hpux*)
7520  # Find out which ABI we are using.
7521  echo 'int i;' > conftest.$ac_ext
7522  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7523  (eval $ac_compile) 2>&5
7524  ac_status=$?
7525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526  test $ac_status = 0; }; then
7527    case `/usr/bin/file conftest.$ac_objext` in
7528      *ELF-32*)
7529	HPUX_IA64_MODE="32"
7530	;;
7531      *ELF-64*)
7532	HPUX_IA64_MODE="64"
7533	;;
7534    esac
7535  fi
7536  rm -rf conftest*
7537  ;;
7538*-*-irix6*)
7539  # Find out which ABI we are using.
7540  echo '#line 7540 "configure"' > conftest.$ac_ext
7541  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7542  (eval $ac_compile) 2>&5
7543  ac_status=$?
7544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545  test $ac_status = 0; }; then
7546    if test "$lt_cv_prog_gnu_ld" = yes; then
7547      case `/usr/bin/file conftest.$ac_objext` in
7548	*32-bit*)
7549	  LD="${LD-ld} -melf32bsmip"
7550	  ;;
7551	*N32*)
7552	  LD="${LD-ld} -melf32bmipn32"
7553	  ;;
7554	*64-bit*)
7555	  LD="${LD-ld} -melf64bmip"
7556	;;
7557      esac
7558    else
7559      case `/usr/bin/file conftest.$ac_objext` in
7560	*32-bit*)
7561	  LD="${LD-ld} -32"
7562	  ;;
7563	*N32*)
7564	  LD="${LD-ld} -n32"
7565	  ;;
7566	*64-bit*)
7567	  LD="${LD-ld} -64"
7568	  ;;
7569      esac
7570    fi
7571  fi
7572  rm -rf conftest*
7573  ;;
7574
7575x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7576s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7577  # Find out which ABI we are using.
7578  echo 'int i;' > conftest.$ac_ext
7579  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7580  (eval $ac_compile) 2>&5
7581  ac_status=$?
7582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7583  test $ac_status = 0; }; then
7584    case `/usr/bin/file conftest.o` in
7585      *32-bit*)
7586	case $host in
7587	  x86_64-*kfreebsd*-gnu)
7588	    LD="${LD-ld} -m elf_i386_fbsd"
7589	    ;;
7590	  x86_64-*linux*)
7591	    LD="${LD-ld} -m elf_i386"
7592	    ;;
7593	  ppc64-*linux*|powerpc64-*linux*)
7594	    LD="${LD-ld} -m elf32ppclinux"
7595	    ;;
7596	  s390x-*linux*)
7597	    LD="${LD-ld} -m elf_s390"
7598	    ;;
7599	  sparc64-*linux*)
7600	    LD="${LD-ld} -m elf32_sparc"
7601	    ;;
7602	esac
7603	;;
7604      *64-bit*)
7605	case $host in
7606	  x86_64-*kfreebsd*-gnu)
7607	    LD="${LD-ld} -m elf_x86_64_fbsd"
7608	    ;;
7609	  x86_64-*linux*)
7610	    LD="${LD-ld} -m elf_x86_64"
7611	    ;;
7612	  ppc*-*linux*|powerpc*-*linux*)
7613	    LD="${LD-ld} -m elf64ppc"
7614	    ;;
7615	  s390*-*linux*|s390*-*tpf*)
7616	    LD="${LD-ld} -m elf64_s390"
7617	    ;;
7618	  sparc*-*linux*)
7619	    LD="${LD-ld} -m elf64_sparc"
7620	    ;;
7621	esac
7622	;;
7623    esac
7624  fi
7625  rm -rf conftest*
7626  ;;
7627
7628*-*-sco3.2v5*)
7629  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7630  SAVE_CFLAGS="$CFLAGS"
7631  CFLAGS="$CFLAGS -belf"
7632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7633$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7634if test "${lt_cv_cc_needs_belf+set}" = set; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  ac_ext=c
7638ac_cpp='$CPP $CPPFLAGS'
7639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641ac_compiler_gnu=$ac_cv_c_compiler_gnu
7642
7643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644/* end confdefs.h.  */
7645
7646int
7647main ()
7648{
7649
7650  ;
7651  return 0;
7652}
7653_ACEOF
7654if ac_fn_c_try_link "$LINENO"; then :
7655  lt_cv_cc_needs_belf=yes
7656else
7657  lt_cv_cc_needs_belf=no
7658fi
7659rm -f core conftest.err conftest.$ac_objext \
7660    conftest$ac_exeext conftest.$ac_ext
7661     ac_ext=c
7662ac_cpp='$CPP $CPPFLAGS'
7663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7669$as_echo "$lt_cv_cc_needs_belf" >&6; }
7670  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7671    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7672    CFLAGS="$SAVE_CFLAGS"
7673  fi
7674  ;;
7675sparc*-*solaris*)
7676  # Find out which ABI we are using.
7677  echo 'int i;' > conftest.$ac_ext
7678  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7679  (eval $ac_compile) 2>&5
7680  ac_status=$?
7681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7682  test $ac_status = 0; }; then
7683    case `/usr/bin/file conftest.o` in
7684    *64-bit*)
7685      case $lt_cv_prog_gnu_ld in
7686      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7687      *)
7688	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7689	  LD="${LD-ld} -64"
7690	fi
7691	;;
7692      esac
7693      ;;
7694    esac
7695  fi
7696  rm -rf conftest*
7697  ;;
7698esac
7699
7700need_locks="$enable_libtool_lock"
7701
7702
7703  case $host_os in
7704    rhapsody* | darwin*)
7705    if test -n "$ac_tool_prefix"; then
7706  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7707set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709$as_echo_n "checking for $ac_word... " >&6; }
7710if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7711  $as_echo_n "(cached) " >&6
7712else
7713  if test -n "$DSYMUTIL"; then
7714  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7715else
7716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719  IFS=$as_save_IFS
7720  test -z "$as_dir" && as_dir=.
7721    for ac_exec_ext in '' $ac_executable_extensions; do
7722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7723    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725    break 2
7726  fi
7727done
7728  done
7729IFS=$as_save_IFS
7730
7731fi
7732fi
7733DSYMUTIL=$ac_cv_prog_DSYMUTIL
7734if test -n "$DSYMUTIL"; then
7735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7736$as_echo "$DSYMUTIL" >&6; }
7737else
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739$as_echo "no" >&6; }
7740fi
7741
7742
7743fi
7744if test -z "$ac_cv_prog_DSYMUTIL"; then
7745  ac_ct_DSYMUTIL=$DSYMUTIL
7746  # Extract the first word of "dsymutil", so it can be a program name with args.
7747set dummy dsymutil; ac_word=$2
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749$as_echo_n "checking for $ac_word... " >&6; }
7750if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753  if test -n "$ac_ct_DSYMUTIL"; then
7754  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7755else
7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759  IFS=$as_save_IFS
7760  test -z "$as_dir" && as_dir=.
7761    for ac_exec_ext in '' $ac_executable_extensions; do
7762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765    break 2
7766  fi
7767done
7768  done
7769IFS=$as_save_IFS
7770
7771fi
7772fi
7773ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7774if test -n "$ac_ct_DSYMUTIL"; then
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7776$as_echo "$ac_ct_DSYMUTIL" >&6; }
7777else
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779$as_echo "no" >&6; }
7780fi
7781
7782  if test "x$ac_ct_DSYMUTIL" = x; then
7783    DSYMUTIL=":"
7784  else
7785    case $cross_compiling:$ac_tool_warned in
7786yes:)
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7789ac_tool_warned=yes ;;
7790esac
7791    DSYMUTIL=$ac_ct_DSYMUTIL
7792  fi
7793else
7794  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7795fi
7796
7797    if test -n "$ac_tool_prefix"; then
7798  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7799set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801$as_echo_n "checking for $ac_word... " >&6; }
7802if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  if test -n "$NMEDIT"; then
7806  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811  IFS=$as_save_IFS
7812  test -z "$as_dir" && as_dir=.
7813    for ac_exec_ext in '' $ac_executable_extensions; do
7814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817    break 2
7818  fi
7819done
7820  done
7821IFS=$as_save_IFS
7822
7823fi
7824fi
7825NMEDIT=$ac_cv_prog_NMEDIT
7826if test -n "$NMEDIT"; then
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7828$as_echo "$NMEDIT" >&6; }
7829else
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831$as_echo "no" >&6; }
7832fi
7833
7834
7835fi
7836if test -z "$ac_cv_prog_NMEDIT"; then
7837  ac_ct_NMEDIT=$NMEDIT
7838  # Extract the first word of "nmedit", so it can be a program name with args.
7839set dummy nmedit; ac_word=$2
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841$as_echo_n "checking for $ac_word... " >&6; }
7842if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7843  $as_echo_n "(cached) " >&6
7844else
7845  if test -n "$ac_ct_NMEDIT"; then
7846  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  test -z "$as_dir" && as_dir=.
7853    for ac_exec_ext in '' $ac_executable_extensions; do
7854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857    break 2
7858  fi
7859done
7860  done
7861IFS=$as_save_IFS
7862
7863fi
7864fi
7865ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7866if test -n "$ac_ct_NMEDIT"; then
7867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7868$as_echo "$ac_ct_NMEDIT" >&6; }
7869else
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
7872fi
7873
7874  if test "x$ac_ct_NMEDIT" = x; then
7875    NMEDIT=":"
7876  else
7877    case $cross_compiling:$ac_tool_warned in
7878yes:)
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7881ac_tool_warned=yes ;;
7882esac
7883    NMEDIT=$ac_ct_NMEDIT
7884  fi
7885else
7886  NMEDIT="$ac_cv_prog_NMEDIT"
7887fi
7888
7889    if test -n "$ac_tool_prefix"; then
7890  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7891set dummy ${ac_tool_prefix}lipo; ac_word=$2
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893$as_echo_n "checking for $ac_word... " >&6; }
7894if test "${ac_cv_prog_LIPO+set}" = set; then :
7895  $as_echo_n "(cached) " >&6
7896else
7897  if test -n "$LIPO"; then
7898  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7899else
7900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903  IFS=$as_save_IFS
7904  test -z "$as_dir" && as_dir=.
7905    for ac_exec_ext in '' $ac_executable_extensions; do
7906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7907    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909    break 2
7910  fi
7911done
7912  done
7913IFS=$as_save_IFS
7914
7915fi
7916fi
7917LIPO=$ac_cv_prog_LIPO
7918if test -n "$LIPO"; then
7919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7920$as_echo "$LIPO" >&6; }
7921else
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923$as_echo "no" >&6; }
7924fi
7925
7926
7927fi
7928if test -z "$ac_cv_prog_LIPO"; then
7929  ac_ct_LIPO=$LIPO
7930  # Extract the first word of "lipo", so it can be a program name with args.
7931set dummy lipo; ac_word=$2
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933$as_echo_n "checking for $ac_word... " >&6; }
7934if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  if test -n "$ac_ct_LIPO"; then
7938  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7939else
7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943  IFS=$as_save_IFS
7944  test -z "$as_dir" && as_dir=.
7945    for ac_exec_ext in '' $ac_executable_extensions; do
7946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947    ac_cv_prog_ac_ct_LIPO="lipo"
7948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949    break 2
7950  fi
7951done
7952  done
7953IFS=$as_save_IFS
7954
7955fi
7956fi
7957ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7958if test -n "$ac_ct_LIPO"; then
7959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7960$as_echo "$ac_ct_LIPO" >&6; }
7961else
7962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963$as_echo "no" >&6; }
7964fi
7965
7966  if test "x$ac_ct_LIPO" = x; then
7967    LIPO=":"
7968  else
7969    case $cross_compiling:$ac_tool_warned in
7970yes:)
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7973ac_tool_warned=yes ;;
7974esac
7975    LIPO=$ac_ct_LIPO
7976  fi
7977else
7978  LIPO="$ac_cv_prog_LIPO"
7979fi
7980
7981    if test -n "$ac_tool_prefix"; then
7982  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7983set dummy ${ac_tool_prefix}otool; ac_word=$2
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985$as_echo_n "checking for $ac_word... " >&6; }
7986if test "${ac_cv_prog_OTOOL+set}" = set; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  if test -n "$OTOOL"; then
7990  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7991else
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995  IFS=$as_save_IFS
7996  test -z "$as_dir" && as_dir=.
7997    for ac_exec_ext in '' $ac_executable_extensions; do
7998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001    break 2
8002  fi
8003done
8004  done
8005IFS=$as_save_IFS
8006
8007fi
8008fi
8009OTOOL=$ac_cv_prog_OTOOL
8010if test -n "$OTOOL"; then
8011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8012$as_echo "$OTOOL" >&6; }
8013else
8014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015$as_echo "no" >&6; }
8016fi
8017
8018
8019fi
8020if test -z "$ac_cv_prog_OTOOL"; then
8021  ac_ct_OTOOL=$OTOOL
8022  # Extract the first word of "otool", so it can be a program name with args.
8023set dummy otool; ac_word=$2
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025$as_echo_n "checking for $ac_word... " >&6; }
8026if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  if test -n "$ac_ct_OTOOL"; then
8030  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035  IFS=$as_save_IFS
8036  test -z "$as_dir" && as_dir=.
8037    for ac_exec_ext in '' $ac_executable_extensions; do
8038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039    ac_cv_prog_ac_ct_OTOOL="otool"
8040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041    break 2
8042  fi
8043done
8044  done
8045IFS=$as_save_IFS
8046
8047fi
8048fi
8049ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8050if test -n "$ac_ct_OTOOL"; then
8051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8052$as_echo "$ac_ct_OTOOL" >&6; }
8053else
8054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055$as_echo "no" >&6; }
8056fi
8057
8058  if test "x$ac_ct_OTOOL" = x; then
8059    OTOOL=":"
8060  else
8061    case $cross_compiling:$ac_tool_warned in
8062yes:)
8063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8065ac_tool_warned=yes ;;
8066esac
8067    OTOOL=$ac_ct_OTOOL
8068  fi
8069else
8070  OTOOL="$ac_cv_prog_OTOOL"
8071fi
8072
8073    if test -n "$ac_tool_prefix"; then
8074  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8075set dummy ${ac_tool_prefix}otool64; ac_word=$2
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077$as_echo_n "checking for $ac_word... " >&6; }
8078if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8079  $as_echo_n "(cached) " >&6
8080else
8081  if test -n "$OTOOL64"; then
8082  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8083else
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087  IFS=$as_save_IFS
8088  test -z "$as_dir" && as_dir=.
8089    for ac_exec_ext in '' $ac_executable_extensions; do
8090  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093    break 2
8094  fi
8095done
8096  done
8097IFS=$as_save_IFS
8098
8099fi
8100fi
8101OTOOL64=$ac_cv_prog_OTOOL64
8102if test -n "$OTOOL64"; then
8103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8104$as_echo "$OTOOL64" >&6; }
8105else
8106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
8108fi
8109
8110
8111fi
8112if test -z "$ac_cv_prog_OTOOL64"; then
8113  ac_ct_OTOOL64=$OTOOL64
8114  # Extract the first word of "otool64", so it can be a program name with args.
8115set dummy otool64; ac_word=$2
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117$as_echo_n "checking for $ac_word... " >&6; }
8118if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  if test -n "$ac_ct_OTOOL64"; then
8122  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8123else
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127  IFS=$as_save_IFS
8128  test -z "$as_dir" && as_dir=.
8129    for ac_exec_ext in '' $ac_executable_extensions; do
8130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131    ac_cv_prog_ac_ct_OTOOL64="otool64"
8132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133    break 2
8134  fi
8135done
8136  done
8137IFS=$as_save_IFS
8138
8139fi
8140fi
8141ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8142if test -n "$ac_ct_OTOOL64"; then
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8144$as_echo "$ac_ct_OTOOL64" >&6; }
8145else
8146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147$as_echo "no" >&6; }
8148fi
8149
8150  if test "x$ac_ct_OTOOL64" = x; then
8151    OTOOL64=":"
8152  else
8153    case $cross_compiling:$ac_tool_warned in
8154yes:)
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8157ac_tool_warned=yes ;;
8158esac
8159    OTOOL64=$ac_ct_OTOOL64
8160  fi
8161else
8162  OTOOL64="$ac_cv_prog_OTOOL64"
8163fi
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8192$as_echo_n "checking for -single_module linker flag... " >&6; }
8193if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8194  $as_echo_n "(cached) " >&6
8195else
8196  lt_cv_apple_cc_single_mod=no
8197      if test -z "${LT_MULTI_MODULE}"; then
8198	# By default we will add the -single_module flag. You can override
8199	# by either setting the environment variable LT_MULTI_MODULE
8200	# non-empty at configure time, or by adding -multi_module to the
8201	# link flags.
8202	rm -rf libconftest.dylib*
8203	echo "int foo(void){return 1;}" > conftest.c
8204	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8205-dynamiclib -Wl,-single_module conftest.c" >&5
8206	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8207	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8208        _lt_result=$?
8209	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8210	  lt_cv_apple_cc_single_mod=yes
8211	else
8212	  cat conftest.err >&5
8213	fi
8214	rm -rf libconftest.dylib*
8215	rm -f conftest.*
8216      fi
8217fi
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8219$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8221$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8222if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8223  $as_echo_n "(cached) " >&6
8224else
8225  lt_cv_ld_exported_symbols_list=no
8226      save_LDFLAGS=$LDFLAGS
8227      echo "_main" > conftest.sym
8228      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8229      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230/* end confdefs.h.  */
8231
8232int
8233main ()
8234{
8235
8236  ;
8237  return 0;
8238}
8239_ACEOF
8240if ac_fn_c_try_link "$LINENO"; then :
8241  lt_cv_ld_exported_symbols_list=yes
8242else
8243  lt_cv_ld_exported_symbols_list=no
8244fi
8245rm -f core conftest.err conftest.$ac_objext \
8246    conftest$ac_exeext conftest.$ac_ext
8247	LDFLAGS="$save_LDFLAGS"
8248
8249fi
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8251$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8252    case $host_os in
8253    rhapsody* | darwin1.[012])
8254      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8255    darwin1.*)
8256      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8257    darwin*) # darwin 5.x on
8258      # if running on 10.5 or later, the deployment target defaults
8259      # to the OS version, if on x86, and 10.4, the deployment
8260      # target defaults to 10.4. Don't you love it?
8261      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8262	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8263	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8264	10.[012]*)
8265	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8266	10.*)
8267	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8268      esac
8269    ;;
8270  esac
8271    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8272      _lt_dar_single_mod='$single_module'
8273    fi
8274    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8275      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8276    else
8277      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8278    fi
8279    if test "$DSYMUTIL" != ":"; then
8280      _lt_dsymutil='~$DSYMUTIL $lib || :'
8281    else
8282      _lt_dsymutil=
8283    fi
8284    ;;
8285  esac
8286
8287for ac_header in dlfcn.h
8288do :
8289  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8290"
8291if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8292  cat >>confdefs.h <<_ACEOF
8293#define HAVE_DLFCN_H 1
8294_ACEOF
8295
8296fi
8297
8298done
8299
8300
8301
8302# Set options
8303
8304
8305
8306        enable_dlopen=no
8307
8308
8309
8310            # Check whether --enable-shared was given.
8311if test "${enable_shared+set}" = set; then :
8312  enableval=$enable_shared; p=${PACKAGE-default}
8313    case $enableval in
8314    yes) enable_shared=yes ;;
8315    no) enable_shared=no ;;
8316    *)
8317      enable_shared=no
8318      # Look at the argument we got.  We use all the common list separators.
8319      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8320      for pkg in $enableval; do
8321	IFS="$lt_save_ifs"
8322	if test "X$pkg" = "X$p"; then
8323	  enable_shared=yes
8324	fi
8325      done
8326      IFS="$lt_save_ifs"
8327      ;;
8328    esac
8329else
8330  enable_shared=yes
8331fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341  # Check whether --enable-static was given.
8342if test "${enable_static+set}" = set; then :
8343  enableval=$enable_static; p=${PACKAGE-default}
8344    case $enableval in
8345    yes) enable_static=yes ;;
8346    no) enable_static=no ;;
8347    *)
8348     enable_static=no
8349      # Look at the argument we got.  We use all the common list separators.
8350      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351      for pkg in $enableval; do
8352	IFS="$lt_save_ifs"
8353	if test "X$pkg" = "X$p"; then
8354	  enable_static=yes
8355	fi
8356      done
8357      IFS="$lt_save_ifs"
8358      ;;
8359    esac
8360else
8361  enable_static=yes
8362fi
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373# Check whether --with-pic was given.
8374if test "${with_pic+set}" = set; then :
8375  withval=$with_pic; pic_mode="$withval"
8376else
8377  pic_mode=default
8378fi
8379
8380
8381test -z "$pic_mode" && pic_mode=default
8382
8383
8384
8385
8386
8387
8388
8389  # Check whether --enable-fast-install was given.
8390if test "${enable_fast_install+set}" = set; then :
8391  enableval=$enable_fast_install; p=${PACKAGE-default}
8392    case $enableval in
8393    yes) enable_fast_install=yes ;;
8394    no) enable_fast_install=no ;;
8395    *)
8396      enable_fast_install=no
8397      # Look at the argument we got.  We use all the common list separators.
8398      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8399      for pkg in $enableval; do
8400	IFS="$lt_save_ifs"
8401	if test "X$pkg" = "X$p"; then
8402	  enable_fast_install=yes
8403	fi
8404      done
8405      IFS="$lt_save_ifs"
8406      ;;
8407    esac
8408else
8409  enable_fast_install=yes
8410fi
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422# This can be used to rebuild libtool when needed
8423LIBTOOL_DEPS="$ltmain"
8424
8425# Always use our own libtool.
8426LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452test -z "$LN_S" && LN_S="ln -s"
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467if test -n "${ZSH_VERSION+set}" ; then
8468   setopt NO_GLOB_SUBST
8469fi
8470
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8472$as_echo_n "checking for objdir... " >&6; }
8473if test "${lt_cv_objdir+set}" = set; then :
8474  $as_echo_n "(cached) " >&6
8475else
8476  rm -f .libs 2>/dev/null
8477mkdir .libs 2>/dev/null
8478if test -d .libs; then
8479  lt_cv_objdir=.libs
8480else
8481  # MS-DOS does not allow filenames that begin with a dot.
8482  lt_cv_objdir=_libs
8483fi
8484rmdir .libs 2>/dev/null
8485fi
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8487$as_echo "$lt_cv_objdir" >&6; }
8488objdir=$lt_cv_objdir
8489
8490
8491
8492
8493
8494cat >>confdefs.h <<_ACEOF
8495#define LT_OBJDIR "$lt_cv_objdir/"
8496_ACEOF
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514case $host_os in
8515aix3*)
8516  # AIX sometimes has problems with the GCC collect2 program.  For some
8517  # reason, if we set the COLLECT_NAMES environment variable, the problems
8518  # vanish in a puff of smoke.
8519  if test "X${COLLECT_NAMES+set}" != Xset; then
8520    COLLECT_NAMES=
8521    export COLLECT_NAMES
8522  fi
8523  ;;
8524esac
8525
8526# Sed substitution that helps us do robust quoting.  It backslashifies
8527# metacharacters that are still active within double-quoted strings.
8528sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8529
8530# Same as above, but do not quote variable references.
8531double_quote_subst='s/\(["`\\]\)/\\\1/g'
8532
8533# Sed substitution to delay expansion of an escaped shell variable in a
8534# double_quote_subst'ed string.
8535delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8536
8537# Sed substitution to delay expansion of an escaped single quote.
8538delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8539
8540# Sed substitution to avoid accidental globbing in evaled expressions
8541no_glob_subst='s/\*/\\\*/g'
8542
8543# Global variables:
8544ofile=libtool
8545can_build_shared=yes
8546
8547# All known linkers require a `.a' archive for static linking (except MSVC,
8548# which needs '.lib').
8549libext=a
8550
8551with_gnu_ld="$lt_cv_prog_gnu_ld"
8552
8553old_CC="$CC"
8554old_CFLAGS="$CFLAGS"
8555
8556# Set sane defaults for various variables
8557test -z "$CC" && CC=cc
8558test -z "$LTCC" && LTCC=$CC
8559test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8560test -z "$LD" && LD=ld
8561test -z "$ac_objext" && ac_objext=o
8562
8563for cc_temp in $compiler""; do
8564  case $cc_temp in
8565    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8566    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8567    \-*) ;;
8568    *) break;;
8569  esac
8570done
8571cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8572
8573
8574# Only perform the check for file, if the check method requires it
8575test -z "$MAGIC_CMD" && MAGIC_CMD=file
8576case $deplibs_check_method in
8577file_magic*)
8578  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8579    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8580$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8581if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8582  $as_echo_n "(cached) " >&6
8583else
8584  case $MAGIC_CMD in
8585[\\/*] |  ?:[\\/]*)
8586  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8587  ;;
8588*)
8589  lt_save_MAGIC_CMD="$MAGIC_CMD"
8590  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8591  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8592  for ac_dir in $ac_dummy; do
8593    IFS="$lt_save_ifs"
8594    test -z "$ac_dir" && ac_dir=.
8595    if test -f $ac_dir/${ac_tool_prefix}file; then
8596      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8597      if test -n "$file_magic_test_file"; then
8598	case $deplibs_check_method in
8599	"file_magic "*)
8600	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8601	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8602	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8603	    $EGREP "$file_magic_regex" > /dev/null; then
8604	    :
8605	  else
8606	    cat <<_LT_EOF 1>&2
8607
8608*** Warning: the command libtool uses to detect shared libraries,
8609*** $file_magic_cmd, produces output that libtool cannot recognize.
8610*** The result is that libtool may fail to recognize shared libraries
8611*** as such.  This will affect the creation of libtool libraries that
8612*** depend on shared libraries, but programs linked with such libtool
8613*** libraries will work regardless of this problem.  Nevertheless, you
8614*** may want to report the problem to your system manager and/or to
8615*** bug-libtool@gnu.org
8616
8617_LT_EOF
8618	  fi ;;
8619	esac
8620      fi
8621      break
8622    fi
8623  done
8624  IFS="$lt_save_ifs"
8625  MAGIC_CMD="$lt_save_MAGIC_CMD"
8626  ;;
8627esac
8628fi
8629
8630MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8631if test -n "$MAGIC_CMD"; then
8632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8633$as_echo "$MAGIC_CMD" >&6; }
8634else
8635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
8637fi
8638
8639
8640
8641
8642
8643if test -z "$lt_cv_path_MAGIC_CMD"; then
8644  if test -n "$ac_tool_prefix"; then
8645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8646$as_echo_n "checking for file... " >&6; }
8647if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8648  $as_echo_n "(cached) " >&6
8649else
8650  case $MAGIC_CMD in
8651[\\/*] |  ?:[\\/]*)
8652  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8653  ;;
8654*)
8655  lt_save_MAGIC_CMD="$MAGIC_CMD"
8656  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8657  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8658  for ac_dir in $ac_dummy; do
8659    IFS="$lt_save_ifs"
8660    test -z "$ac_dir" && ac_dir=.
8661    if test -f $ac_dir/file; then
8662      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8663      if test -n "$file_magic_test_file"; then
8664	case $deplibs_check_method in
8665	"file_magic "*)
8666	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8667	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8668	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8669	    $EGREP "$file_magic_regex" > /dev/null; then
8670	    :
8671	  else
8672	    cat <<_LT_EOF 1>&2
8673
8674*** Warning: the command libtool uses to detect shared libraries,
8675*** $file_magic_cmd, produces output that libtool cannot recognize.
8676*** The result is that libtool may fail to recognize shared libraries
8677*** as such.  This will affect the creation of libtool libraries that
8678*** depend on shared libraries, but programs linked with such libtool
8679*** libraries will work regardless of this problem.  Nevertheless, you
8680*** may want to report the problem to your system manager and/or to
8681*** bug-libtool@gnu.org
8682
8683_LT_EOF
8684	  fi ;;
8685	esac
8686      fi
8687      break
8688    fi
8689  done
8690  IFS="$lt_save_ifs"
8691  MAGIC_CMD="$lt_save_MAGIC_CMD"
8692  ;;
8693esac
8694fi
8695
8696MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8697if test -n "$MAGIC_CMD"; then
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8699$as_echo "$MAGIC_CMD" >&6; }
8700else
8701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702$as_echo "no" >&6; }
8703fi
8704
8705
8706  else
8707    MAGIC_CMD=:
8708  fi
8709fi
8710
8711  fi
8712  ;;
8713esac
8714
8715# Use C for the default configuration in the libtool script
8716
8717lt_save_CC="$CC"
8718ac_ext=c
8719ac_cpp='$CPP $CPPFLAGS'
8720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8722ac_compiler_gnu=$ac_cv_c_compiler_gnu
8723
8724
8725# Source file extension for C test sources.
8726ac_ext=c
8727
8728# Object file extension for compiled C test sources.
8729objext=o
8730objext=$objext
8731
8732# Code to be used in simple compile tests
8733lt_simple_compile_test_code="int some_variable = 0;"
8734
8735# Code to be used in simple link tests
8736lt_simple_link_test_code='int main(){return(0);}'
8737
8738
8739
8740
8741
8742
8743
8744# If no C compiler was specified, use CC.
8745LTCC=${LTCC-"$CC"}
8746
8747# If no C compiler flags were specified, use CFLAGS.
8748LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8749
8750# Allow CC to be a program name with arguments.
8751compiler=$CC
8752
8753# Save the default compiler, since it gets overwritten when the other
8754# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8755compiler_DEFAULT=$CC
8756
8757# save warnings/boilerplate of simple test code
8758ac_outfile=conftest.$ac_objext
8759echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8760eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8761_lt_compiler_boilerplate=`cat conftest.err`
8762$RM conftest*
8763
8764ac_outfile=conftest.$ac_objext
8765echo "$lt_simple_link_test_code" >conftest.$ac_ext
8766eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8767_lt_linker_boilerplate=`cat conftest.err`
8768$RM -r conftest*
8769
8770
8771if test -n "$compiler"; then
8772
8773lt_prog_compiler_no_builtin_flag=
8774
8775if test "$GCC" = yes; then
8776  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8777
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8779$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8780if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8781  $as_echo_n "(cached) " >&6
8782else
8783  lt_cv_prog_compiler_rtti_exceptions=no
8784   ac_outfile=conftest.$ac_objext
8785   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8786   lt_compiler_flag="-fno-rtti -fno-exceptions"
8787   # Insert the option either (1) after the last *FLAGS variable, or
8788   # (2) before a word containing "conftest.", or (3) at the end.
8789   # Note that $ac_compile itself does not contain backslashes and begins
8790   # with a dollar sign (not a hyphen), so the echo should work correctly.
8791   # The option is referenced via a variable to avoid confusing sed.
8792   lt_compile=`echo "$ac_compile" | $SED \
8793   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795   -e 's:$: $lt_compiler_flag:'`
8796   (eval echo "\"\$as_me:8796: $lt_compile\"" >&5)
8797   (eval "$lt_compile" 2>conftest.err)
8798   ac_status=$?
8799   cat conftest.err >&5
8800   echo "$as_me:8800: \$? = $ac_status" >&5
8801   if (exit $ac_status) && test -s "$ac_outfile"; then
8802     # The compiler can only warn and ignore the option if not recognized
8803     # So say no if there are warnings other than the usual output.
8804     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8805     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8806     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8807       lt_cv_prog_compiler_rtti_exceptions=yes
8808     fi
8809   fi
8810   $RM conftest*
8811
8812fi
8813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8814$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8815
8816if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8817    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8818else
8819    :
8820fi
8821
8822fi
8823
8824
8825
8826
8827
8828
8829  lt_prog_compiler_wl=
8830lt_prog_compiler_pic=
8831lt_prog_compiler_static=
8832
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8834$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8835
8836  if test "$GCC" = yes; then
8837    lt_prog_compiler_wl='-Wl,'
8838    lt_prog_compiler_static='-static'
8839
8840    case $host_os in
8841      aix*)
8842      # All AIX code is PIC.
8843      if test "$host_cpu" = ia64; then
8844	# AIX 5 now supports IA64 processor
8845	lt_prog_compiler_static='-Bstatic'
8846      fi
8847      ;;
8848
8849    amigaos*)
8850      case $host_cpu in
8851      powerpc)
8852            # see comment about AmigaOS4 .so support
8853            lt_prog_compiler_pic='-fPIC'
8854        ;;
8855      m68k)
8856            # FIXME: we need at least 68020 code to build shared libraries, but
8857            # adding the `-m68020' flag to GCC prevents building anything better,
8858            # like `-m68040'.
8859            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8860        ;;
8861      esac
8862      ;;
8863
8864    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8865      # PIC is the default for these OSes.
8866      ;;
8867
8868    mingw* | cygwin* | pw32* | os2* | cegcc*)
8869      # This hack is so that the source file can tell whether it is being
8870      # built for inclusion in a dll (and should export symbols for example).
8871      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8872      # (--disable-auto-import) libraries
8873      lt_prog_compiler_pic='-DDLL_EXPORT'
8874      ;;
8875
8876    darwin* | rhapsody*)
8877      # PIC is the default on this platform
8878      # Common symbols not allowed in MH_DYLIB files
8879      lt_prog_compiler_pic='-fno-common'
8880      ;;
8881
8882    hpux*)
8883      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8884      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8885      # sets the default TLS model and affects inlining.
8886      case $host_cpu in
8887      hppa*64*)
8888	# +Z the default
8889	;;
8890      *)
8891	lt_prog_compiler_pic='-fPIC'
8892	;;
8893      esac
8894      ;;
8895
8896    interix[3-9]*)
8897      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8898      # Instead, we relocate shared libraries at runtime.
8899      ;;
8900
8901    msdosdjgpp*)
8902      # Just because we use GCC doesn't mean we suddenly get shared libraries
8903      # on systems that don't support them.
8904      lt_prog_compiler_can_build_shared=no
8905      enable_shared=no
8906      ;;
8907
8908    *nto* | *qnx*)
8909      # QNX uses GNU C++, but need to define -shared option too, otherwise
8910      # it will coredump.
8911      lt_prog_compiler_pic='-fPIC -shared'
8912      ;;
8913
8914    sysv4*MP*)
8915      if test -d /usr/nec; then
8916	lt_prog_compiler_pic=-Kconform_pic
8917      fi
8918      ;;
8919
8920    *)
8921      lt_prog_compiler_pic='-fPIC'
8922      ;;
8923    esac
8924  else
8925    # PORTME Check for flag to pass linker flags through the system compiler.
8926    case $host_os in
8927    aix*)
8928      lt_prog_compiler_wl='-Wl,'
8929      if test "$host_cpu" = ia64; then
8930	# AIX 5 now supports IA64 processor
8931	lt_prog_compiler_static='-Bstatic'
8932      else
8933	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8934      fi
8935      ;;
8936
8937    mingw* | cygwin* | pw32* | os2* | cegcc*)
8938      # This hack is so that the source file can tell whether it is being
8939      # built for inclusion in a dll (and should export symbols for example).
8940      lt_prog_compiler_pic='-DDLL_EXPORT'
8941      ;;
8942
8943    hpux9* | hpux10* | hpux11*)
8944      lt_prog_compiler_wl='-Wl,'
8945      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8946      # not for PA HP-UX.
8947      case $host_cpu in
8948      hppa*64*|ia64*)
8949	# +Z the default
8950	;;
8951      *)
8952	lt_prog_compiler_pic='+Z'
8953	;;
8954      esac
8955      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8956      lt_prog_compiler_static='${wl}-a ${wl}archive'
8957      ;;
8958
8959    irix5* | irix6* | nonstopux*)
8960      lt_prog_compiler_wl='-Wl,'
8961      # PIC (with -KPIC) is the default.
8962      lt_prog_compiler_static='-non_shared'
8963      ;;
8964
8965    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8966      case $cc_basename in
8967      # old Intel for x86_64 which still supported -KPIC.
8968      ecc*)
8969	lt_prog_compiler_wl='-Wl,'
8970	lt_prog_compiler_pic='-KPIC'
8971	lt_prog_compiler_static='-static'
8972        ;;
8973      # icc used to be incompatible with GCC.
8974      # ICC 10 doesn't accept -KPIC any more.
8975      icc* | ifort*)
8976	lt_prog_compiler_wl='-Wl,'
8977	lt_prog_compiler_pic='-fPIC'
8978	lt_prog_compiler_static='-static'
8979        ;;
8980      # Lahey Fortran 8.1.
8981      lf95*)
8982	lt_prog_compiler_wl='-Wl,'
8983	lt_prog_compiler_pic='--shared'
8984	lt_prog_compiler_static='--static'
8985	;;
8986      pgcc* | pgf77* | pgf90* | pgf95*)
8987        # Portland Group compilers (*not* the Pentium gcc compiler,
8988	# which looks to be a dead project)
8989	lt_prog_compiler_wl='-Wl,'
8990	lt_prog_compiler_pic='-fpic'
8991	lt_prog_compiler_static='-Bstatic'
8992        ;;
8993      ccc*)
8994        lt_prog_compiler_wl='-Wl,'
8995        # All Alpha code is PIC.
8996        lt_prog_compiler_static='-non_shared'
8997        ;;
8998      xl*)
8999	# IBM XL C 8.0/Fortran 10.1 on PPC
9000	lt_prog_compiler_wl='-Wl,'
9001	lt_prog_compiler_pic='-qpic'
9002	lt_prog_compiler_static='-qstaticlink'
9003	;;
9004      *)
9005	case `$CC -V 2>&1 | sed 5q` in
9006	*Sun\ C*)
9007	  # Sun C 5.9
9008	  lt_prog_compiler_pic='-KPIC'
9009	  lt_prog_compiler_static='-Bstatic'
9010	  lt_prog_compiler_wl='-Wl,'
9011	  ;;
9012	*Sun\ F*)
9013	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9014	  lt_prog_compiler_pic='-KPIC'
9015	  lt_prog_compiler_static='-Bstatic'
9016	  lt_prog_compiler_wl=''
9017	  ;;
9018	esac
9019	;;
9020      esac
9021      ;;
9022
9023    newsos6)
9024      lt_prog_compiler_pic='-KPIC'
9025      lt_prog_compiler_static='-Bstatic'
9026      ;;
9027
9028    *nto* | *qnx*)
9029      # QNX uses GNU C++, but need to define -shared option too, otherwise
9030      # it will coredump.
9031      lt_prog_compiler_pic='-fPIC -shared'
9032      ;;
9033
9034    osf3* | osf4* | osf5*)
9035      lt_prog_compiler_wl='-Wl,'
9036      # All OSF/1 code is PIC.
9037      lt_prog_compiler_static='-non_shared'
9038      ;;
9039
9040    rdos*)
9041      lt_prog_compiler_static='-non_shared'
9042      ;;
9043
9044    solaris*)
9045      lt_prog_compiler_pic='-KPIC'
9046      lt_prog_compiler_static='-Bstatic'
9047      case $cc_basename in
9048      f77* | f90* | f95*)
9049	lt_prog_compiler_wl='-Qoption ld ';;
9050      *)
9051	lt_prog_compiler_wl='-Wl,';;
9052      esac
9053      ;;
9054
9055    sunos4*)
9056      lt_prog_compiler_wl='-Qoption ld '
9057      lt_prog_compiler_pic='-PIC'
9058      lt_prog_compiler_static='-Bstatic'
9059      ;;
9060
9061    sysv4 | sysv4.2uw2* | sysv4.3*)
9062      lt_prog_compiler_wl='-Wl,'
9063      lt_prog_compiler_pic='-KPIC'
9064      lt_prog_compiler_static='-Bstatic'
9065      ;;
9066
9067    sysv4*MP*)
9068      if test -d /usr/nec ;then
9069	lt_prog_compiler_pic='-Kconform_pic'
9070	lt_prog_compiler_static='-Bstatic'
9071      fi
9072      ;;
9073
9074    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9075      lt_prog_compiler_wl='-Wl,'
9076      lt_prog_compiler_pic='-KPIC'
9077      lt_prog_compiler_static='-Bstatic'
9078      ;;
9079
9080    unicos*)
9081      lt_prog_compiler_wl='-Wl,'
9082      lt_prog_compiler_can_build_shared=no
9083      ;;
9084
9085    uts4*)
9086      lt_prog_compiler_pic='-pic'
9087      lt_prog_compiler_static='-Bstatic'
9088      ;;
9089
9090    *)
9091      lt_prog_compiler_can_build_shared=no
9092      ;;
9093    esac
9094  fi
9095
9096case $host_os in
9097  # For platforms which do not support PIC, -DPIC is meaningless:
9098  *djgpp*)
9099    lt_prog_compiler_pic=
9100    ;;
9101  *)
9102    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9103    ;;
9104esac
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9106$as_echo "$lt_prog_compiler_pic" >&6; }
9107
9108
9109
9110
9111
9112
9113#
9114# Check to make sure the PIC flag actually works.
9115#
9116if test -n "$lt_prog_compiler_pic"; then
9117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9118$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9119if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9120  $as_echo_n "(cached) " >&6
9121else
9122  lt_cv_prog_compiler_pic_works=no
9123   ac_outfile=conftest.$ac_objext
9124   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9125   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9126   # Insert the option either (1) after the last *FLAGS variable, or
9127   # (2) before a word containing "conftest.", or (3) at the end.
9128   # Note that $ac_compile itself does not contain backslashes and begins
9129   # with a dollar sign (not a hyphen), so the echo should work correctly.
9130   # The option is referenced via a variable to avoid confusing sed.
9131   lt_compile=`echo "$ac_compile" | $SED \
9132   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9133   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9134   -e 's:$: $lt_compiler_flag:'`
9135   (eval echo "\"\$as_me:9135: $lt_compile\"" >&5)
9136   (eval "$lt_compile" 2>conftest.err)
9137   ac_status=$?
9138   cat conftest.err >&5
9139   echo "$as_me:9139: \$? = $ac_status" >&5
9140   if (exit $ac_status) && test -s "$ac_outfile"; then
9141     # The compiler can only warn and ignore the option if not recognized
9142     # So say no if there are warnings other than the usual output.
9143     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9144     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9146       lt_cv_prog_compiler_pic_works=yes
9147     fi
9148   fi
9149   $RM conftest*
9150
9151fi
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9153$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9154
9155if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9156    case $lt_prog_compiler_pic in
9157     "" | " "*) ;;
9158     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9159     esac
9160else
9161    lt_prog_compiler_pic=
9162     lt_prog_compiler_can_build_shared=no
9163fi
9164
9165fi
9166
9167
9168
9169
9170
9171
9172#
9173# Check to make sure the static flag actually works.
9174#
9175wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9177$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9178if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9179  $as_echo_n "(cached) " >&6
9180else
9181  lt_cv_prog_compiler_static_works=no
9182   save_LDFLAGS="$LDFLAGS"
9183   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9184   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9185   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9186     # The linker can only warn and ignore the option if not recognized
9187     # So say no if there are warnings
9188     if test -s conftest.err; then
9189       # Append any errors to the config.log.
9190       cat conftest.err 1>&5
9191       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9192       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9193       if diff conftest.exp conftest.er2 >/dev/null; then
9194         lt_cv_prog_compiler_static_works=yes
9195       fi
9196     else
9197       lt_cv_prog_compiler_static_works=yes
9198     fi
9199   fi
9200   $RM -r conftest*
9201   LDFLAGS="$save_LDFLAGS"
9202
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9205$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9206
9207if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9208    :
9209else
9210    lt_prog_compiler_static=
9211fi
9212
9213
9214
9215
9216
9217
9218
9219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9220$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9221if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9222  $as_echo_n "(cached) " >&6
9223else
9224  lt_cv_prog_compiler_c_o=no
9225   $RM -r conftest 2>/dev/null
9226   mkdir conftest
9227   cd conftest
9228   mkdir out
9229   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9230
9231   lt_compiler_flag="-o out/conftest2.$ac_objext"
9232   # Insert the option either (1) after the last *FLAGS variable, or
9233   # (2) before a word containing "conftest.", or (3) at the end.
9234   # Note that $ac_compile itself does not contain backslashes and begins
9235   # with a dollar sign (not a hyphen), so the echo should work correctly.
9236   lt_compile=`echo "$ac_compile" | $SED \
9237   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9238   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9239   -e 's:$: $lt_compiler_flag:'`
9240   (eval echo "\"\$as_me:9240: $lt_compile\"" >&5)
9241   (eval "$lt_compile" 2>out/conftest.err)
9242   ac_status=$?
9243   cat out/conftest.err >&5
9244   echo "$as_me:9244: \$? = $ac_status" >&5
9245   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9246   then
9247     # The compiler can only warn and ignore the option if not recognized
9248     # So say no if there are warnings
9249     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9250     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9251     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9252       lt_cv_prog_compiler_c_o=yes
9253     fi
9254   fi
9255   chmod u+w . 2>&5
9256   $RM conftest*
9257   # SGI C++ compiler will create directory out/ii_files/ for
9258   # template instantiation
9259   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9260   $RM out/* && rmdir out
9261   cd ..
9262   $RM -r conftest
9263   $RM conftest*
9264
9265fi
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9267$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9268
9269
9270
9271
9272
9273
9274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9275$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9276if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9277  $as_echo_n "(cached) " >&6
9278else
9279  lt_cv_prog_compiler_c_o=no
9280   $RM -r conftest 2>/dev/null
9281   mkdir conftest
9282   cd conftest
9283   mkdir out
9284   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9285
9286   lt_compiler_flag="-o out/conftest2.$ac_objext"
9287   # Insert the option either (1) after the last *FLAGS variable, or
9288   # (2) before a word containing "conftest.", or (3) at the end.
9289   # Note that $ac_compile itself does not contain backslashes and begins
9290   # with a dollar sign (not a hyphen), so the echo should work correctly.
9291   lt_compile=`echo "$ac_compile" | $SED \
9292   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9293   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9294   -e 's:$: $lt_compiler_flag:'`
9295   (eval echo "\"\$as_me:9295: $lt_compile\"" >&5)
9296   (eval "$lt_compile" 2>out/conftest.err)
9297   ac_status=$?
9298   cat out/conftest.err >&5
9299   echo "$as_me:9299: \$? = $ac_status" >&5
9300   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9301   then
9302     # The compiler can only warn and ignore the option if not recognized
9303     # So say no if there are warnings
9304     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9305     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9306     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9307       lt_cv_prog_compiler_c_o=yes
9308     fi
9309   fi
9310   chmod u+w . 2>&5
9311   $RM conftest*
9312   # SGI C++ compiler will create directory out/ii_files/ for
9313   # template instantiation
9314   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9315   $RM out/* && rmdir out
9316   cd ..
9317   $RM -r conftest
9318   $RM conftest*
9319
9320fi
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9322$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9323
9324
9325
9326
9327hard_links="nottested"
9328if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9329  # do not overwrite the value of need_locks provided by the user
9330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9331$as_echo_n "checking if we can lock with hard links... " >&6; }
9332  hard_links=yes
9333  $RM conftest*
9334  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9335  touch conftest.a
9336  ln conftest.a conftest.b 2>&5 || hard_links=no
9337  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9339$as_echo "$hard_links" >&6; }
9340  if test "$hard_links" = no; then
9341    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9342$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9343    need_locks=warn
9344  fi
9345else
9346  need_locks=no
9347fi
9348
9349
9350
9351
9352
9353
9354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9355$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9356
9357  runpath_var=
9358  allow_undefined_flag=
9359  always_export_symbols=no
9360  archive_cmds=
9361  archive_expsym_cmds=
9362  compiler_needs_object=no
9363  enable_shared_with_static_runtimes=no
9364  export_dynamic_flag_spec=
9365  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9366  hardcode_automatic=no
9367  hardcode_direct=no
9368  hardcode_direct_absolute=no
9369  hardcode_libdir_flag_spec=
9370  hardcode_libdir_flag_spec_ld=
9371  hardcode_libdir_separator=
9372  hardcode_minus_L=no
9373  hardcode_shlibpath_var=unsupported
9374  inherit_rpath=no
9375  link_all_deplibs=unknown
9376  module_cmds=
9377  module_expsym_cmds=
9378  old_archive_from_new_cmds=
9379  old_archive_from_expsyms_cmds=
9380  thread_safe_flag_spec=
9381  whole_archive_flag_spec=
9382  # include_expsyms should be a list of space-separated symbols to be *always*
9383  # included in the symbol list
9384  include_expsyms=
9385  # exclude_expsyms can be an extended regexp of symbols to exclude
9386  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9387  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9388  # as well as any symbol that contains `d'.
9389  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9390  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9391  # platforms (ab)use it in PIC code, but their linkers get confused if
9392  # the symbol is explicitly referenced.  Since portable code cannot
9393  # rely on this symbol name, it's probably fine to never include it in
9394  # preloaded symbol tables.
9395  # Exclude shared library initialization/finalization symbols.
9396  extract_expsyms_cmds=
9397
9398  case $host_os in
9399  cygwin* | mingw* | pw32* | cegcc*)
9400    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9401    # When not using gcc, we currently assume that we are using
9402    # Microsoft Visual C++.
9403    if test "$GCC" != yes; then
9404      with_gnu_ld=no
9405    fi
9406    ;;
9407  interix*)
9408    # we just hope/assume this is gcc and not c89 (= MSVC++)
9409    with_gnu_ld=yes
9410    ;;
9411  openbsd*)
9412    with_gnu_ld=no
9413    ;;
9414  linux* | k*bsd*-gnu)
9415    link_all_deplibs=no
9416    ;;
9417  esac
9418
9419  ld_shlibs=yes
9420  if test "$with_gnu_ld" = yes; then
9421    # If archive_cmds runs LD, not CC, wlarc should be empty
9422    wlarc='${wl}'
9423
9424    # Set some defaults for GNU ld with shared library support. These
9425    # are reset later if shared libraries are not supported. Putting them
9426    # here allows them to be overridden if necessary.
9427    runpath_var=LD_RUN_PATH
9428    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9429    export_dynamic_flag_spec='${wl}--export-dynamic'
9430    # ancient GNU ld didn't support --whole-archive et. al.
9431    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9432      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9433    else
9434      whole_archive_flag_spec=
9435    fi
9436    supports_anon_versioning=no
9437    case `$LD -v 2>&1` in
9438      *GNU\ gold*) supports_anon_versioning=yes ;;
9439      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9440      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9441      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9442      *\ 2.11.*) ;; # other 2.11 versions
9443      *) supports_anon_versioning=yes ;;
9444    esac
9445
9446    # See if GNU ld supports shared libraries.
9447    case $host_os in
9448    aix[3-9]*)
9449      # On AIX/PPC, the GNU linker is very broken
9450      if test "$host_cpu" != ia64; then
9451	ld_shlibs=no
9452	cat <<_LT_EOF 1>&2
9453
9454*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9455*** to be unable to reliably create shared libraries on AIX.
9456*** Therefore, libtool is disabling shared libraries support.  If you
9457*** really care for shared libraries, you may want to modify your PATH
9458*** so that a non-GNU linker is found, and then restart.
9459
9460_LT_EOF
9461      fi
9462      ;;
9463
9464    amigaos*)
9465      case $host_cpu in
9466      powerpc)
9467            # see comment about AmigaOS4 .so support
9468            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469            archive_expsym_cmds=''
9470        ;;
9471      m68k)
9472            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)'
9473            hardcode_libdir_flag_spec='-L$libdir'
9474            hardcode_minus_L=yes
9475        ;;
9476      esac
9477      ;;
9478
9479    beos*)
9480      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481	allow_undefined_flag=unsupported
9482	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9483	# support --undefined.  This deserves some investigation.  FIXME
9484	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485      else
9486	ld_shlibs=no
9487      fi
9488      ;;
9489
9490    cygwin* | mingw* | pw32* | cegcc*)
9491      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9492      # as there is no search path for DLLs.
9493      hardcode_libdir_flag_spec='-L$libdir'
9494      allow_undefined_flag=unsupported
9495      always_export_symbols=no
9496      enable_shared_with_static_runtimes=yes
9497      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9498
9499      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9500        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9501	# If the export-symbols file already is a .def file (1st line
9502	# is EXPORTS), use it as is; otherwise, prepend...
9503	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9504	  cp $export_symbols $output_objdir/$soname.def;
9505	else
9506	  echo EXPORTS > $output_objdir/$soname.def;
9507	  cat $export_symbols >> $output_objdir/$soname.def;
9508	fi~
9509	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9510      else
9511	ld_shlibs=no
9512      fi
9513      ;;
9514
9515    interix[3-9]*)
9516      hardcode_direct=no
9517      hardcode_shlibpath_var=no
9518      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9519      export_dynamic_flag_spec='${wl}-E'
9520      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9521      # Instead, shared libraries are loaded at an image base (0x10000000 by
9522      # default) and relocated if they conflict, which is a slow very memory
9523      # consuming and fragmenting process.  To avoid this, we pick a random,
9524      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9525      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9526      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9527      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'
9528      ;;
9529
9530    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9531      tmp_diet=no
9532      if test "$host_os" = linux-dietlibc; then
9533	case $cc_basename in
9534	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9535	esac
9536      fi
9537      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9538	 && test "$tmp_diet" = no
9539      then
9540	tmp_addflag=
9541	tmp_sharedflag='-shared'
9542	case $cc_basename,$host_cpu in
9543        pgcc*)				# Portland Group C compiler
9544	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9545	  tmp_addflag=' $pic_flag'
9546	  ;;
9547	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9548	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9549	  tmp_addflag=' $pic_flag -Mnomain' ;;
9550	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9551	  tmp_addflag=' -i_dynamic' ;;
9552	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9553	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9554	ifc* | ifort*)			# Intel Fortran compiler
9555	  tmp_addflag=' -nofor_main' ;;
9556	lf95*)				# Lahey Fortran 8.1
9557	  whole_archive_flag_spec=
9558	  tmp_sharedflag='--shared' ;;
9559	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9560	  tmp_sharedflag='-qmkshrobj'
9561	  tmp_addflag= ;;
9562	esac
9563	case `$CC -V 2>&1 | sed 5q` in
9564	*Sun\ C*)			# Sun C 5.9
9565	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9566	  compiler_needs_object=yes
9567	  tmp_sharedflag='-G' ;;
9568	*Sun\ F*)			# Sun Fortran 8.3
9569	  tmp_sharedflag='-G' ;;
9570	esac
9571	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572
9573        if test "x$supports_anon_versioning" = xyes; then
9574          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9575	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9576	    echo "local: *; };" >> $output_objdir/$libname.ver~
9577	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9578        fi
9579
9580	case $cc_basename in
9581	xlf*)
9582	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9583	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9584	  hardcode_libdir_flag_spec=
9585	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9586	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9587	  if test "x$supports_anon_versioning" = xyes; then
9588	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9589	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9590	      echo "local: *; };" >> $output_objdir/$libname.ver~
9591	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9592	  fi
9593	  ;;
9594	esac
9595      else
9596        ld_shlibs=no
9597      fi
9598      ;;
9599
9600    netbsd* | netbsdelf*-gnu)
9601      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9602	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9603	wlarc=
9604      else
9605	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9607      fi
9608      ;;
9609
9610    solaris*)
9611      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9612	ld_shlibs=no
9613	cat <<_LT_EOF 1>&2
9614
9615*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9616*** create shared libraries on Solaris systems.  Therefore, libtool
9617*** is disabling shared libraries support.  We urge you to upgrade GNU
9618*** binutils to release 2.9.1 or newer.  Another option is to modify
9619*** your PATH or compiler configuration so that the native linker is
9620*** used, and then restart.
9621
9622_LT_EOF
9623      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9624	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9625	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9626      else
9627	ld_shlibs=no
9628      fi
9629      ;;
9630
9631    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9632      case `$LD -v 2>&1` in
9633        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9634	ld_shlibs=no
9635	cat <<_LT_EOF 1>&2
9636
9637*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9638*** reliably create shared libraries on SCO systems.  Therefore, libtool
9639*** is disabling shared libraries support.  We urge you to upgrade GNU
9640*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9641*** your PATH or compiler configuration so that the native linker is
9642*** used, and then restart.
9643
9644_LT_EOF
9645	;;
9646	*)
9647	  # For security reasons, it is highly recommended that you always
9648	  # use absolute paths for naming shared libraries, and exclude the
9649	  # DT_RUNPATH tag from executables and libraries.  But doing so
9650	  # requires that you compile everything twice, which is a pain.
9651	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9652	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9655	  else
9656	    ld_shlibs=no
9657	  fi
9658	;;
9659      esac
9660      ;;
9661
9662    sunos4*)
9663      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9664      wlarc=
9665      hardcode_direct=yes
9666      hardcode_shlibpath_var=no
9667      ;;
9668
9669    *)
9670      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9671	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9672	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9673      else
9674	ld_shlibs=no
9675      fi
9676      ;;
9677    esac
9678
9679    if test "$ld_shlibs" = no; then
9680      runpath_var=
9681      hardcode_libdir_flag_spec=
9682      export_dynamic_flag_spec=
9683      whole_archive_flag_spec=
9684    fi
9685  else
9686    # PORTME fill in a description of your system's linker (not GNU ld)
9687    case $host_os in
9688    aix3*)
9689      allow_undefined_flag=unsupported
9690      always_export_symbols=yes
9691      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'
9692      # Note: this linker hardcodes the directories in LIBPATH if there
9693      # are no directories specified by -L.
9694      hardcode_minus_L=yes
9695      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9696	# Neither direct hardcoding nor static linking is supported with a
9697	# broken collect2.
9698	hardcode_direct=unsupported
9699      fi
9700      ;;
9701
9702    aix[4-9]*)
9703      if test "$host_cpu" = ia64; then
9704	# On IA64, the linker does run time linking by default, so we don't
9705	# have to do anything special.
9706	aix_use_runtimelinking=no
9707	exp_sym_flag='-Bexport'
9708	no_entry_flag=""
9709      else
9710	# If we're using GNU nm, then we don't want the "-C" option.
9711	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9712	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9713	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9714	else
9715	  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'
9716	fi
9717	aix_use_runtimelinking=no
9718
9719	# Test if we are trying to use run time linking or normal
9720	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9721	# need to do runtime linking.
9722	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9723	  for ld_flag in $LDFLAGS; do
9724	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9725	    aix_use_runtimelinking=yes
9726	    break
9727	  fi
9728	  done
9729	  ;;
9730	esac
9731
9732	exp_sym_flag='-bexport'
9733	no_entry_flag='-bnoentry'
9734      fi
9735
9736      # When large executables or shared objects are built, AIX ld can
9737      # have problems creating the table of contents.  If linking a library
9738      # or program results in "error TOC overflow" add -mminimal-toc to
9739      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9740      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9741
9742      archive_cmds=''
9743      hardcode_direct=yes
9744      hardcode_direct_absolute=yes
9745      hardcode_libdir_separator=':'
9746      link_all_deplibs=yes
9747      file_list_spec='${wl}-f,'
9748
9749      if test "$GCC" = yes; then
9750	case $host_os in aix4.[012]|aix4.[012].*)
9751	# We only want to do this on AIX 4.2 and lower, the check
9752	# below for broken collect2 doesn't work under 4.3+
9753	  collect2name=`${CC} -print-prog-name=collect2`
9754	  if test -f "$collect2name" &&
9755	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9756	  then
9757	  # We have reworked collect2
9758	  :
9759	  else
9760	  # We have old collect2
9761	  hardcode_direct=unsupported
9762	  # It fails to find uninstalled libraries when the uninstalled
9763	  # path is not listed in the libpath.  Setting hardcode_minus_L
9764	  # to unsupported forces relinking
9765	  hardcode_minus_L=yes
9766	  hardcode_libdir_flag_spec='-L$libdir'
9767	  hardcode_libdir_separator=
9768	  fi
9769	  ;;
9770	esac
9771	shared_flag='-shared'
9772	if test "$aix_use_runtimelinking" = yes; then
9773	  shared_flag="$shared_flag "'${wl}-G'
9774	fi
9775	link_all_deplibs=no
9776      else
9777	# not using gcc
9778	if test "$host_cpu" = ia64; then
9779	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9780	# chokes on -Wl,-G. The following line is correct:
9781	  shared_flag='-G'
9782	else
9783	  if test "$aix_use_runtimelinking" = yes; then
9784	    shared_flag='${wl}-G'
9785	  else
9786	    shared_flag='${wl}-bM:SRE'
9787	  fi
9788	fi
9789      fi
9790
9791      export_dynamic_flag_spec='${wl}-bexpall'
9792      # It seems that -bexpall does not export symbols beginning with
9793      # underscore (_), so it is better to generate a list of symbols to export.
9794      always_export_symbols=yes
9795      if test "$aix_use_runtimelinking" = yes; then
9796	# Warning - without using the other runtime loading flags (-brtl),
9797	# -berok will link without error, but may produce a broken library.
9798	allow_undefined_flag='-berok'
9799        # Determine the default libpath from the value encoded in an
9800        # empty executable.
9801        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802/* end confdefs.h.  */
9803
9804int
9805main ()
9806{
9807
9808  ;
9809  return 0;
9810}
9811_ACEOF
9812if ac_fn_c_try_link "$LINENO"; then :
9813
9814lt_aix_libpath_sed='
9815    /Import File Strings/,/^$/ {
9816	/^0/ {
9817	    s/^0  *\(.*\)$/\1/
9818	    p
9819	}
9820    }'
9821aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9822# Check for a 64-bit object if we didn't find anything.
9823if test -z "$aix_libpath"; then
9824  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9825fi
9826fi
9827rm -f core conftest.err conftest.$ac_objext \
9828    conftest$ac_exeext conftest.$ac_ext
9829if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9830
9831        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9832        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9833      else
9834	if test "$host_cpu" = ia64; then
9835	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9836	  allow_undefined_flag="-z nodefs"
9837	  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"
9838	else
9839	 # Determine the default libpath from the value encoded in an
9840	 # empty executable.
9841	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842/* end confdefs.h.  */
9843
9844int
9845main ()
9846{
9847
9848  ;
9849  return 0;
9850}
9851_ACEOF
9852if ac_fn_c_try_link "$LINENO"; then :
9853
9854lt_aix_libpath_sed='
9855    /Import File Strings/,/^$/ {
9856	/^0/ {
9857	    s/^0  *\(.*\)$/\1/
9858	    p
9859	}
9860    }'
9861aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9862# Check for a 64-bit object if we didn't find anything.
9863if test -z "$aix_libpath"; then
9864  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9865fi
9866fi
9867rm -f core conftest.err conftest.$ac_objext \
9868    conftest$ac_exeext conftest.$ac_ext
9869if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9870
9871	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9872	  # Warning - without using the other run time loading flags,
9873	  # -berok will link without error, but may produce a broken library.
9874	  no_undefined_flag=' ${wl}-bernotok'
9875	  allow_undefined_flag=' ${wl}-berok'
9876	  # Exported symbols can be pulled into shared objects from archives
9877	  whole_archive_flag_spec='$convenience'
9878	  archive_cmds_need_lc=yes
9879	  # This is similar to how AIX traditionally builds its shared libraries.
9880	  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'
9881	fi
9882      fi
9883      ;;
9884
9885    amigaos*)
9886      case $host_cpu in
9887      powerpc)
9888            # see comment about AmigaOS4 .so support
9889            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9890            archive_expsym_cmds=''
9891        ;;
9892      m68k)
9893            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)'
9894            hardcode_libdir_flag_spec='-L$libdir'
9895            hardcode_minus_L=yes
9896        ;;
9897      esac
9898      ;;
9899
9900    bsdi[45]*)
9901      export_dynamic_flag_spec=-rdynamic
9902      ;;
9903
9904    cygwin* | mingw* | pw32* | cegcc*)
9905      # When not using gcc, we currently assume that we are using
9906      # Microsoft Visual C++.
9907      # hardcode_libdir_flag_spec is actually meaningless, as there is
9908      # no search path for DLLs.
9909      hardcode_libdir_flag_spec=' '
9910      allow_undefined_flag=unsupported
9911      # Tell ltmain to make .lib files, not .a files.
9912      libext=lib
9913      # Tell ltmain to make .dll files, not .so files.
9914      shrext_cmds=".dll"
9915      # FIXME: Setting linknames here is a bad hack.
9916      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9917      # The linker will automatically build a .lib file if we build a DLL.
9918      old_archive_from_new_cmds='true'
9919      # FIXME: Should let the user specify the lib program.
9920      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9921      fix_srcfile_path='`cygpath -w "$srcfile"`'
9922      enable_shared_with_static_runtimes=yes
9923      ;;
9924
9925    darwin* | rhapsody*)
9926
9927
9928  archive_cmds_need_lc=no
9929  hardcode_direct=no
9930  hardcode_automatic=yes
9931  hardcode_shlibpath_var=unsupported
9932  whole_archive_flag_spec=''
9933  link_all_deplibs=yes
9934  allow_undefined_flag="$_lt_dar_allow_undefined"
9935  case $cc_basename in
9936     ifort*) _lt_dar_can_shared=yes ;;
9937     *) _lt_dar_can_shared=$GCC ;;
9938  esac
9939  if test "$_lt_dar_can_shared" = "yes"; then
9940    output_verbose_link_cmd=echo
9941    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9942    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9943    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}"
9944    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}"
9945
9946  else
9947  ld_shlibs=no
9948  fi
9949
9950      ;;
9951
9952    dgux*)
9953      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954      hardcode_libdir_flag_spec='-L$libdir'
9955      hardcode_shlibpath_var=no
9956      ;;
9957
9958    freebsd1*)
9959      ld_shlibs=no
9960      ;;
9961
9962    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9963    # support.  Future versions do this automatically, but an explicit c++rt0.o
9964    # does not break anything, and helps significantly (at the cost of a little
9965    # extra space).
9966    freebsd2.2*)
9967      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9968      hardcode_libdir_flag_spec='-R$libdir'
9969      hardcode_direct=yes
9970      hardcode_shlibpath_var=no
9971      ;;
9972
9973    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9974    freebsd2*)
9975      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9976      hardcode_direct=yes
9977      hardcode_minus_L=yes
9978      hardcode_shlibpath_var=no
9979      ;;
9980
9981    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9982    freebsd* | dragonfly*)
9983      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9984      hardcode_libdir_flag_spec='-R$libdir'
9985      hardcode_direct=yes
9986      hardcode_shlibpath_var=no
9987      ;;
9988
9989    hpux9*)
9990      if test "$GCC" = yes; then
9991	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'
9992      else
9993	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'
9994      fi
9995      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9996      hardcode_libdir_separator=:
9997      hardcode_direct=yes
9998
9999      # hardcode_minus_L: Not really in the search PATH,
10000      # but as the default location of the library.
10001      hardcode_minus_L=yes
10002      export_dynamic_flag_spec='${wl}-E'
10003      ;;
10004
10005    hpux10*)
10006      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10007	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10008      else
10009	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10010      fi
10011      if test "$with_gnu_ld" = no; then
10012	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10013	hardcode_libdir_flag_spec_ld='+b $libdir'
10014	hardcode_libdir_separator=:
10015	hardcode_direct=yes
10016	hardcode_direct_absolute=yes
10017	export_dynamic_flag_spec='${wl}-E'
10018	# hardcode_minus_L: Not really in the search PATH,
10019	# but as the default location of the library.
10020	hardcode_minus_L=yes
10021      fi
10022      ;;
10023
10024    hpux11*)
10025      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10026	case $host_cpu in
10027	hppa*64*)
10028	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10029	  ;;
10030	ia64*)
10031	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10032	  ;;
10033	*)
10034	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10035	  ;;
10036	esac
10037      else
10038	case $host_cpu in
10039	hppa*64*)
10040	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10041	  ;;
10042	ia64*)
10043	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10044	  ;;
10045	*)
10046	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10047	  ;;
10048	esac
10049      fi
10050      if test "$with_gnu_ld" = no; then
10051	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10052	hardcode_libdir_separator=:
10053
10054	case $host_cpu in
10055	hppa*64*|ia64*)
10056	  hardcode_direct=no
10057	  hardcode_shlibpath_var=no
10058	  ;;
10059	*)
10060	  hardcode_direct=yes
10061	  hardcode_direct_absolute=yes
10062	  export_dynamic_flag_spec='${wl}-E'
10063
10064	  # hardcode_minus_L: Not really in the search PATH,
10065	  # but as the default location of the library.
10066	  hardcode_minus_L=yes
10067	  ;;
10068	esac
10069      fi
10070      ;;
10071
10072    irix5* | irix6* | nonstopux*)
10073      if test "$GCC" = yes; then
10074	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10075	# Try to use the -exported_symbol ld option, if it does not
10076	# work, assume that -exports_file does not work either and
10077	# implicitly export all symbols.
10078        save_LDFLAGS="$LDFLAGS"
10079        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10080        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081/* end confdefs.h.  */
10082int foo(void) {}
10083_ACEOF
10084if ac_fn_c_try_link "$LINENO"; then :
10085  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10086
10087fi
10088rm -f core conftest.err conftest.$ac_objext \
10089    conftest$ac_exeext conftest.$ac_ext
10090        LDFLAGS="$save_LDFLAGS"
10091      else
10092	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10093	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10094      fi
10095      archive_cmds_need_lc='no'
10096      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10097      hardcode_libdir_separator=:
10098      inherit_rpath=yes
10099      link_all_deplibs=yes
10100      ;;
10101
10102    netbsd* | netbsdelf*-gnu)
10103      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10104	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10105      else
10106	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10107      fi
10108      hardcode_libdir_flag_spec='-R$libdir'
10109      hardcode_direct=yes
10110      hardcode_shlibpath_var=no
10111      ;;
10112
10113    newsos6)
10114      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115      hardcode_direct=yes
10116      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117      hardcode_libdir_separator=:
10118      hardcode_shlibpath_var=no
10119      ;;
10120
10121    *nto* | *qnx*)
10122      ;;
10123
10124    openbsd*)
10125      if test -f /usr/libexec/ld.so; then
10126	hardcode_direct=yes
10127	hardcode_shlibpath_var=no
10128	hardcode_direct_absolute=yes
10129	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10130	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10131	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10132	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10133	  export_dynamic_flag_spec='${wl}-E'
10134	else
10135	  case $host_os in
10136	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10137	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10138	     hardcode_libdir_flag_spec='-R$libdir'
10139	     ;;
10140	   *)
10141	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10142	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10143	     ;;
10144	  esac
10145	fi
10146      else
10147	ld_shlibs=no
10148      fi
10149      ;;
10150
10151    os2*)
10152      hardcode_libdir_flag_spec='-L$libdir'
10153      hardcode_minus_L=yes
10154      allow_undefined_flag=unsupported
10155      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'
10156      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10157      ;;
10158
10159    osf3*)
10160      if test "$GCC" = yes; then
10161	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10162	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10163      else
10164	allow_undefined_flag=' -expect_unresolved \*'
10165	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10166      fi
10167      archive_cmds_need_lc='no'
10168      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10169      hardcode_libdir_separator=:
10170      ;;
10171
10172    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10173      if test "$GCC" = yes; then
10174	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10175	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10176	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10177      else
10178	allow_undefined_flag=' -expect_unresolved \*'
10179	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10180	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~
10181	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10182
10183	# Both c and cxx compiler support -rpath directly
10184	hardcode_libdir_flag_spec='-rpath $libdir'
10185      fi
10186      archive_cmds_need_lc='no'
10187      hardcode_libdir_separator=:
10188      ;;
10189
10190    solaris*)
10191      no_undefined_flag=' -z defs'
10192      if test "$GCC" = yes; then
10193	wlarc='${wl}'
10194	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10195	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10196	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10197      else
10198	case `$CC -V 2>&1` in
10199	*"Compilers 5.0"*)
10200	  wlarc=''
10201	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10203	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10204	  ;;
10205	*)
10206	  wlarc='${wl}'
10207	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10208	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10209	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10210	  ;;
10211	esac
10212      fi
10213      hardcode_libdir_flag_spec='-R$libdir'
10214      hardcode_shlibpath_var=no
10215      case $host_os in
10216      solaris2.[0-5] | solaris2.[0-5].*) ;;
10217      *)
10218	# The compiler driver will combine and reorder linker options,
10219	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10220	# but is careful enough not to reorder.
10221	# Supported since Solaris 2.6 (maybe 2.5.1?)
10222	if test "$GCC" = yes; then
10223	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10224	else
10225	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10226	fi
10227	;;
10228      esac
10229      link_all_deplibs=yes
10230      ;;
10231
10232    sunos4*)
10233      if test "x$host_vendor" = xsequent; then
10234	# Use $CC to link under sequent, because it throws in some extra .o
10235	# files that make .init and .fini sections work.
10236	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10237      else
10238	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10239      fi
10240      hardcode_libdir_flag_spec='-L$libdir'
10241      hardcode_direct=yes
10242      hardcode_minus_L=yes
10243      hardcode_shlibpath_var=no
10244      ;;
10245
10246    sysv4)
10247      case $host_vendor in
10248	sni)
10249	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250	  hardcode_direct=yes # is this really true???
10251	;;
10252	siemens)
10253	  ## LD is ld it makes a PLAMLIB
10254	  ## CC just makes a GrossModule.
10255	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10256	  reload_cmds='$CC -r -o $output$reload_objs'
10257	  hardcode_direct=no
10258        ;;
10259	motorola)
10260	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10261	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10262	;;
10263      esac
10264      runpath_var='LD_RUN_PATH'
10265      hardcode_shlibpath_var=no
10266      ;;
10267
10268    sysv4.3*)
10269      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270      hardcode_shlibpath_var=no
10271      export_dynamic_flag_spec='-Bexport'
10272      ;;
10273
10274    sysv4*MP*)
10275      if test -d /usr/nec; then
10276	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10277	hardcode_shlibpath_var=no
10278	runpath_var=LD_RUN_PATH
10279	hardcode_runpath_var=yes
10280	ld_shlibs=yes
10281      fi
10282      ;;
10283
10284    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10285      no_undefined_flag='${wl}-z,text'
10286      archive_cmds_need_lc=no
10287      hardcode_shlibpath_var=no
10288      runpath_var='LD_RUN_PATH'
10289
10290      if test "$GCC" = yes; then
10291	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293      else
10294	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296      fi
10297      ;;
10298
10299    sysv5* | sco3.2v5* | sco5v6*)
10300      # Note: We can NOT use -z defs as we might desire, because we do not
10301      # link with -lc, and that would cause any symbols used from libc to
10302      # always be unresolved, which means just about no library would
10303      # ever link correctly.  If we're not using GNU ld we use -z text
10304      # though, which does catch some bad symbols but isn't as heavy-handed
10305      # as -z defs.
10306      no_undefined_flag='${wl}-z,text'
10307      allow_undefined_flag='${wl}-z,nodefs'
10308      archive_cmds_need_lc=no
10309      hardcode_shlibpath_var=no
10310      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10311      hardcode_libdir_separator=':'
10312      link_all_deplibs=yes
10313      export_dynamic_flag_spec='${wl}-Bexport'
10314      runpath_var='LD_RUN_PATH'
10315
10316      if test "$GCC" = yes; then
10317	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319      else
10320	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322      fi
10323      ;;
10324
10325    uts4*)
10326      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327      hardcode_libdir_flag_spec='-L$libdir'
10328      hardcode_shlibpath_var=no
10329      ;;
10330
10331    *)
10332      ld_shlibs=no
10333      ;;
10334    esac
10335
10336    if test x$host_vendor = xsni; then
10337      case $host in
10338      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10339	export_dynamic_flag_spec='${wl}-Blargedynsym'
10340	;;
10341      esac
10342    fi
10343  fi
10344
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10346$as_echo "$ld_shlibs" >&6; }
10347test "$ld_shlibs" = no && can_build_shared=no
10348
10349with_gnu_ld=$with_gnu_ld
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365#
10366# Do we need to explicitly link libc?
10367#
10368case "x$archive_cmds_need_lc" in
10369x|xyes)
10370  # Assume -lc should be added
10371  archive_cmds_need_lc=yes
10372
10373  if test "$enable_shared" = yes && test "$GCC" = yes; then
10374    case $archive_cmds in
10375    *'~'*)
10376      # FIXME: we may have to deal with multi-command sequences.
10377      ;;
10378    '$CC '*)
10379      # Test whether the compiler implicitly links with -lc since on some
10380      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10381      # to ld, don't add -lc before -lgcc.
10382      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10383$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10384      $RM conftest*
10385      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10386
10387      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10388  (eval $ac_compile) 2>&5
10389  ac_status=$?
10390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10391  test $ac_status = 0; } 2>conftest.err; then
10392        soname=conftest
10393        lib=conftest
10394        libobjs=conftest.$ac_objext
10395        deplibs=
10396        wl=$lt_prog_compiler_wl
10397	pic_flag=$lt_prog_compiler_pic
10398        compiler_flags=-v
10399        linker_flags=-v
10400        verstring=
10401        output_objdir=.
10402        libname=conftest
10403        lt_save_allow_undefined_flag=$allow_undefined_flag
10404        allow_undefined_flag=
10405        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10406  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10407  ac_status=$?
10408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10409  test $ac_status = 0; }
10410        then
10411	  archive_cmds_need_lc=no
10412        else
10413	  archive_cmds_need_lc=yes
10414        fi
10415        allow_undefined_flag=$lt_save_allow_undefined_flag
10416      else
10417        cat conftest.err 1>&5
10418      fi
10419      $RM conftest*
10420      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10421$as_echo "$archive_cmds_need_lc" >&6; }
10422      ;;
10423    esac
10424  fi
10425  ;;
10426esac
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10585$as_echo_n "checking dynamic linker characteristics... " >&6; }
10586
10587if test "$GCC" = yes; then
10588  case $host_os in
10589    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10590    *) lt_awk_arg="/^libraries:/" ;;
10591  esac
10592  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10593  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10594    # if the path contains ";" then we assume it to be the separator
10595    # otherwise default to the standard path separator (i.e. ":") - it is
10596    # assumed that no part of a normal pathname contains ";" but that should
10597    # okay in the real world where ";" in dirpaths is itself problematic.
10598    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10599  else
10600    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10601  fi
10602  # Ok, now we have the path, separated by spaces, we can step through it
10603  # and add multilib dir if necessary.
10604  lt_tmp_lt_search_path_spec=
10605  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10606  for lt_sys_path in $lt_search_path_spec; do
10607    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10608      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10609    else
10610      test -d "$lt_sys_path" && \
10611	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10612    fi
10613  done
10614  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10615BEGIN {RS=" "; FS="/|\n";} {
10616  lt_foo="";
10617  lt_count=0;
10618  for (lt_i = NF; lt_i > 0; lt_i--) {
10619    if ($lt_i != "" && $lt_i != ".") {
10620      if ($lt_i == "..") {
10621        lt_count++;
10622      } else {
10623        if (lt_count == 0) {
10624          lt_foo="/" $lt_i lt_foo;
10625        } else {
10626          lt_count--;
10627        }
10628      }
10629    }
10630  }
10631  if (lt_foo != "") { lt_freq[lt_foo]++; }
10632  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10633}'`
10634  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10635else
10636  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10637fi
10638library_names_spec=
10639libname_spec='lib$name'
10640soname_spec=
10641shrext_cmds=".so"
10642postinstall_cmds=
10643postuninstall_cmds=
10644finish_cmds=
10645finish_eval=
10646shlibpath_var=
10647shlibpath_overrides_runpath=unknown
10648version_type=none
10649dynamic_linker="$host_os ld.so"
10650sys_lib_dlsearch_path_spec="/lib /usr/lib"
10651need_lib_prefix=unknown
10652hardcode_into_libs=no
10653
10654# when you set need_version to no, make sure it does not cause -set_version
10655# flags to be left without arguments
10656need_version=unknown
10657
10658case $host_os in
10659aix3*)
10660  version_type=linux
10661  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10662  shlibpath_var=LIBPATH
10663
10664  # AIX 3 has no versioning support, so we append a major version to the name.
10665  soname_spec='${libname}${release}${shared_ext}$major'
10666  ;;
10667
10668aix[4-9]*)
10669  version_type=linux
10670  need_lib_prefix=no
10671  need_version=no
10672  hardcode_into_libs=yes
10673  if test "$host_cpu" = ia64; then
10674    # AIX 5 supports IA64
10675    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10676    shlibpath_var=LD_LIBRARY_PATH
10677  else
10678    # With GCC up to 2.95.x, collect2 would create an import file
10679    # for dependence libraries.  The import file would start with
10680    # the line `#! .'.  This would cause the generated library to
10681    # depend on `.', always an invalid library.  This was fixed in
10682    # development snapshots of GCC prior to 3.0.
10683    case $host_os in
10684      aix4 | aix4.[01] | aix4.[01].*)
10685      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10686	   echo ' yes '
10687	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10688	:
10689      else
10690	can_build_shared=no
10691      fi
10692      ;;
10693    esac
10694    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10695    # soname into executable. Probably we can add versioning support to
10696    # collect2, so additional links can be useful in future.
10697    if test "$aix_use_runtimelinking" = yes; then
10698      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10699      # instead of lib<name>.a to let people know that these are not
10700      # typical AIX shared libraries.
10701      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702    else
10703      # We preserve .a as extension for shared libraries through AIX4.2
10704      # and later when we are not doing run time linking.
10705      library_names_spec='${libname}${release}.a $libname.a'
10706      soname_spec='${libname}${release}${shared_ext}$major'
10707    fi
10708    shlibpath_var=LIBPATH
10709  fi
10710  ;;
10711
10712amigaos*)
10713  case $host_cpu in
10714  powerpc)
10715    # Since July 2007 AmigaOS4 officially supports .so libraries.
10716    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10717    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718    ;;
10719  m68k)
10720    library_names_spec='$libname.ixlibrary $libname.a'
10721    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10722    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10723    ;;
10724  esac
10725  ;;
10726
10727beos*)
10728  library_names_spec='${libname}${shared_ext}'
10729  dynamic_linker="$host_os ld.so"
10730  shlibpath_var=LIBRARY_PATH
10731  ;;
10732
10733bsdi[45]*)
10734  version_type=linux
10735  need_version=no
10736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737  soname_spec='${libname}${release}${shared_ext}$major'
10738  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10739  shlibpath_var=LD_LIBRARY_PATH
10740  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10741  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10742  # the default ld.so.conf also contains /usr/contrib/lib and
10743  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10744  # libtool to hard-code these into programs
10745  ;;
10746
10747cygwin* | mingw* | pw32* | cegcc*)
10748  version_type=windows
10749  shrext_cmds=".dll"
10750  need_version=no
10751  need_lib_prefix=no
10752
10753  case $GCC,$host_os in
10754  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10755    library_names_spec='$libname.dll.a'
10756    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10757    postinstall_cmds='base_file=`basename \${file}`~
10758      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10759      dldir=$destdir/`dirname \$dlpath`~
10760      test -d \$dldir || mkdir -p \$dldir~
10761      $install_prog $dir/$dlname \$dldir/$dlname~
10762      chmod a+x \$dldir/$dlname~
10763      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10764        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10765      fi'
10766    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10767      dlpath=$dir/\$dldll~
10768       $RM \$dlpath'
10769    shlibpath_overrides_runpath=yes
10770
10771    case $host_os in
10772    cygwin*)
10773      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10774      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10775      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10776      ;;
10777    mingw* | cegcc*)
10778      # MinGW DLLs use traditional 'lib' prefix
10779      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10780      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10781      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10782        # It is most probably a Windows format PATH printed by
10783        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10784        # path with ; separators, and with drive letters. We can handle the
10785        # drive letters (cygwin fileutils understands them), so leave them,
10786        # especially as we might pass files found there to a mingw objdump,
10787        # which wouldn't understand a cygwinified path. Ahh.
10788        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10789      else
10790        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10791      fi
10792      ;;
10793    pw32*)
10794      # pw32 DLLs use 'pw' prefix rather than 'lib'
10795      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10796      ;;
10797    esac
10798    ;;
10799
10800  *)
10801    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10802    ;;
10803  esac
10804  dynamic_linker='Win32 ld.exe'
10805  # FIXME: first we should search . and the directory the executable is in
10806  shlibpath_var=PATH
10807  ;;
10808
10809darwin* | rhapsody*)
10810  dynamic_linker="$host_os dyld"
10811  version_type=darwin
10812  need_lib_prefix=no
10813  need_version=no
10814  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10815  soname_spec='${libname}${release}${major}$shared_ext'
10816  shlibpath_overrides_runpath=yes
10817  shlibpath_var=DYLD_LIBRARY_PATH
10818  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10819
10820  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10821  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10822  ;;
10823
10824dgux*)
10825  version_type=linux
10826  need_lib_prefix=no
10827  need_version=no
10828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10829  soname_spec='${libname}${release}${shared_ext}$major'
10830  shlibpath_var=LD_LIBRARY_PATH
10831  ;;
10832
10833freebsd1*)
10834  dynamic_linker=no
10835  ;;
10836
10837freebsd* | dragonfly*)
10838  # DragonFly does not have aout.  When/if they implement a new
10839  # versioning mechanism, adjust this.
10840  if test -x /usr/bin/objformat; then
10841    objformat=`/usr/bin/objformat`
10842  else
10843    case $host_os in
10844    freebsd[123]*) objformat=aout ;;
10845    *) objformat=elf ;;
10846    esac
10847  fi
10848  version_type=freebsd-$objformat
10849  case $version_type in
10850    freebsd-elf*)
10851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10852      need_version=no
10853      need_lib_prefix=no
10854      ;;
10855    freebsd-*)
10856      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10857      need_version=yes
10858      ;;
10859  esac
10860  shlibpath_var=LD_LIBRARY_PATH
10861  case $host_os in
10862  freebsd2*)
10863    shlibpath_overrides_runpath=yes
10864    ;;
10865  freebsd3.[01]* | freebsdelf3.[01]*)
10866    shlibpath_overrides_runpath=yes
10867    hardcode_into_libs=yes
10868    ;;
10869  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10870  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10871    shlibpath_overrides_runpath=no
10872    hardcode_into_libs=yes
10873    ;;
10874  *) # from 4.6 on, and DragonFly
10875    shlibpath_overrides_runpath=yes
10876    hardcode_into_libs=yes
10877    ;;
10878  esac
10879  ;;
10880
10881gnu*)
10882  version_type=linux
10883  need_lib_prefix=no
10884  need_version=no
10885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10886  soname_spec='${libname}${release}${shared_ext}$major'
10887  shlibpath_var=LD_LIBRARY_PATH
10888  hardcode_into_libs=yes
10889  ;;
10890
10891hpux9* | hpux10* | hpux11*)
10892  # Give a soname corresponding to the major version so that dld.sl refuses to
10893  # link against other versions.
10894  version_type=sunos
10895  need_lib_prefix=no
10896  need_version=no
10897  case $host_cpu in
10898  ia64*)
10899    shrext_cmds='.so'
10900    hardcode_into_libs=yes
10901    dynamic_linker="$host_os dld.so"
10902    shlibpath_var=LD_LIBRARY_PATH
10903    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10904    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905    soname_spec='${libname}${release}${shared_ext}$major'
10906    if test "X$HPUX_IA64_MODE" = X32; then
10907      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10908    else
10909      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10910    fi
10911    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10912    ;;
10913  hppa*64*)
10914    shrext_cmds='.sl'
10915    hardcode_into_libs=yes
10916    dynamic_linker="$host_os dld.sl"
10917    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10918    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10919    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920    soname_spec='${libname}${release}${shared_ext}$major'
10921    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10922    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10923    ;;
10924  *)
10925    shrext_cmds='.sl'
10926    dynamic_linker="$host_os dld.sl"
10927    shlibpath_var=SHLIB_PATH
10928    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930    soname_spec='${libname}${release}${shared_ext}$major'
10931    ;;
10932  esac
10933  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10934  postinstall_cmds='chmod 555 $lib'
10935  ;;
10936
10937interix[3-9]*)
10938  version_type=linux
10939  need_lib_prefix=no
10940  need_version=no
10941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10942  soname_spec='${libname}${release}${shared_ext}$major'
10943  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10944  shlibpath_var=LD_LIBRARY_PATH
10945  shlibpath_overrides_runpath=no
10946  hardcode_into_libs=yes
10947  ;;
10948
10949irix5* | irix6* | nonstopux*)
10950  case $host_os in
10951    nonstopux*) version_type=nonstopux ;;
10952    *)
10953	if test "$lt_cv_prog_gnu_ld" = yes; then
10954		version_type=linux
10955	else
10956		version_type=irix
10957	fi ;;
10958  esac
10959  need_lib_prefix=no
10960  need_version=no
10961  soname_spec='${libname}${release}${shared_ext}$major'
10962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10963  case $host_os in
10964  irix5* | nonstopux*)
10965    libsuff= shlibsuff=
10966    ;;
10967  *)
10968    case $LD in # libtool.m4 will add one of these switches to LD
10969    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10970      libsuff= shlibsuff= libmagic=32-bit;;
10971    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10972      libsuff=32 shlibsuff=N32 libmagic=N32;;
10973    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10974      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10975    *) libsuff= shlibsuff= libmagic=never-match;;
10976    esac
10977    ;;
10978  esac
10979  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10980  shlibpath_overrides_runpath=no
10981  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10982  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10983  hardcode_into_libs=yes
10984  ;;
10985
10986# No shared lib support for Linux oldld, aout, or coff.
10987linux*oldld* | linux*aout* | linux*coff*)
10988  dynamic_linker=no
10989  ;;
10990
10991# This must be Linux ELF.
10992linux* | k*bsd*-gnu | kopensolaris*-gnu)
10993  version_type=linux
10994  need_lib_prefix=no
10995  need_version=no
10996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997  soname_spec='${libname}${release}${shared_ext}$major'
10998  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10999  shlibpath_var=LD_LIBRARY_PATH
11000  shlibpath_overrides_runpath=no
11001  # Some binutils ld are patched to set DT_RUNPATH
11002  save_LDFLAGS=$LDFLAGS
11003  save_libdir=$libdir
11004  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11005       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007/* end confdefs.h.  */
11008
11009int
11010main ()
11011{
11012
11013  ;
11014  return 0;
11015}
11016_ACEOF
11017if ac_fn_c_try_link "$LINENO"; then :
11018  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11019  shlibpath_overrides_runpath=yes
11020fi
11021fi
11022rm -f core conftest.err conftest.$ac_objext \
11023    conftest$ac_exeext conftest.$ac_ext
11024  LDFLAGS=$save_LDFLAGS
11025  libdir=$save_libdir
11026
11027  # This implies no fast_install, which is unacceptable.
11028  # Some rework will be needed to allow for fast_install
11029  # before this can be enabled.
11030  hardcode_into_libs=yes
11031
11032  # Append ld.so.conf contents to the search path
11033  if test -f /etc/ld.so.conf; then
11034    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11035    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11036  fi
11037
11038  # We used to test for /lib/ld.so.1 and disable shared libraries on
11039  # powerpc, because MkLinux only supported shared libraries with the
11040  # GNU dynamic linker.  Since this was broken with cross compilers,
11041  # most powerpc-linux boxes support dynamic linking these days and
11042  # people can always --disable-shared, the test was removed, and we
11043  # assume the GNU/Linux dynamic linker is in use.
11044  dynamic_linker='GNU/Linux ld.so'
11045  ;;
11046
11047netbsdelf*-gnu)
11048  version_type=linux
11049  need_lib_prefix=no
11050  need_version=no
11051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11052  soname_spec='${libname}${release}${shared_ext}$major'
11053  shlibpath_var=LD_LIBRARY_PATH
11054  shlibpath_overrides_runpath=no
11055  hardcode_into_libs=yes
11056  dynamic_linker='NetBSD ld.elf_so'
11057  ;;
11058
11059netbsd*)
11060  version_type=sunos
11061  need_lib_prefix=no
11062  need_version=no
11063  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11064    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11065    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11066    dynamic_linker='NetBSD (a.out) ld.so'
11067  else
11068    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11069    soname_spec='${libname}${release}${shared_ext}$major'
11070    dynamic_linker='NetBSD ld.elf_so'
11071  fi
11072  shlibpath_var=LD_LIBRARY_PATH
11073  shlibpath_overrides_runpath=yes
11074  hardcode_into_libs=yes
11075  ;;
11076
11077newsos6)
11078  version_type=linux
11079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080  shlibpath_var=LD_LIBRARY_PATH
11081  shlibpath_overrides_runpath=yes
11082  ;;
11083
11084*nto* | *qnx*)
11085  version_type=qnx
11086  need_lib_prefix=no
11087  need_version=no
11088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089  soname_spec='${libname}${release}${shared_ext}$major'
11090  shlibpath_var=LD_LIBRARY_PATH
11091  shlibpath_overrides_runpath=no
11092  hardcode_into_libs=yes
11093  dynamic_linker='ldqnx.so'
11094  ;;
11095
11096openbsd*)
11097  version_type=sunos
11098  sys_lib_dlsearch_path_spec="/usr/lib"
11099  need_lib_prefix=no
11100  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11101  case $host_os in
11102    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11103    *)				need_version=no  ;;
11104  esac
11105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107  shlibpath_var=LD_LIBRARY_PATH
11108  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11109    case $host_os in
11110      openbsd2.[89] | openbsd2.[89].*)
11111	shlibpath_overrides_runpath=no
11112	;;
11113      *)
11114	shlibpath_overrides_runpath=yes
11115	;;
11116      esac
11117  else
11118    shlibpath_overrides_runpath=yes
11119  fi
11120  ;;
11121
11122os2*)
11123  libname_spec='$name'
11124  shrext_cmds=".dll"
11125  need_lib_prefix=no
11126  library_names_spec='$libname${shared_ext} $libname.a'
11127  dynamic_linker='OS/2 ld.exe'
11128  shlibpath_var=LIBPATH
11129  ;;
11130
11131osf3* | osf4* | osf5*)
11132  version_type=osf
11133  need_lib_prefix=no
11134  need_version=no
11135  soname_spec='${libname}${release}${shared_ext}$major'
11136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137  shlibpath_var=LD_LIBRARY_PATH
11138  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11139  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11140  ;;
11141
11142rdos*)
11143  dynamic_linker=no
11144  ;;
11145
11146solaris*)
11147  version_type=linux
11148  need_lib_prefix=no
11149  need_version=no
11150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151  soname_spec='${libname}${release}${shared_ext}$major'
11152  shlibpath_var=LD_LIBRARY_PATH
11153  shlibpath_overrides_runpath=yes
11154  hardcode_into_libs=yes
11155  # ldd complains unless libraries are executable
11156  postinstall_cmds='chmod +x $lib'
11157  ;;
11158
11159sunos4*)
11160  version_type=sunos
11161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11162  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11163  shlibpath_var=LD_LIBRARY_PATH
11164  shlibpath_overrides_runpath=yes
11165  if test "$with_gnu_ld" = yes; then
11166    need_lib_prefix=no
11167  fi
11168  need_version=yes
11169  ;;
11170
11171sysv4 | sysv4.3*)
11172  version_type=linux
11173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174  soname_spec='${libname}${release}${shared_ext}$major'
11175  shlibpath_var=LD_LIBRARY_PATH
11176  case $host_vendor in
11177    sni)
11178      shlibpath_overrides_runpath=no
11179      need_lib_prefix=no
11180      runpath_var=LD_RUN_PATH
11181      ;;
11182    siemens)
11183      need_lib_prefix=no
11184      ;;
11185    motorola)
11186      need_lib_prefix=no
11187      need_version=no
11188      shlibpath_overrides_runpath=no
11189      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11190      ;;
11191  esac
11192  ;;
11193
11194sysv4*MP*)
11195  if test -d /usr/nec ;then
11196    version_type=linux
11197    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11198    soname_spec='$libname${shared_ext}.$major'
11199    shlibpath_var=LD_LIBRARY_PATH
11200  fi
11201  ;;
11202
11203sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11204  version_type=freebsd-elf
11205  need_lib_prefix=no
11206  need_version=no
11207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11208  soname_spec='${libname}${release}${shared_ext}$major'
11209  shlibpath_var=LD_LIBRARY_PATH
11210  shlibpath_overrides_runpath=yes
11211  hardcode_into_libs=yes
11212  if test "$with_gnu_ld" = yes; then
11213    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11214  else
11215    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11216    case $host_os in
11217      sco3.2v5*)
11218        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11219	;;
11220    esac
11221  fi
11222  sys_lib_dlsearch_path_spec='/usr/lib'
11223  ;;
11224
11225tpf*)
11226  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11227  version_type=linux
11228  need_lib_prefix=no
11229  need_version=no
11230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231  shlibpath_var=LD_LIBRARY_PATH
11232  shlibpath_overrides_runpath=no
11233  hardcode_into_libs=yes
11234  ;;
11235
11236uts4*)
11237  version_type=linux
11238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239  soname_spec='${libname}${release}${shared_ext}$major'
11240  shlibpath_var=LD_LIBRARY_PATH
11241  ;;
11242
11243*)
11244  dynamic_linker=no
11245  ;;
11246esac
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11248$as_echo "$dynamic_linker" >&6; }
11249test "$dynamic_linker" = no && can_build_shared=no
11250
11251variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11252if test "$GCC" = yes; then
11253  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11254fi
11255
11256if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11257  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11258fi
11259if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11260  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11261fi
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11350$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11351hardcode_action=
11352if test -n "$hardcode_libdir_flag_spec" ||
11353   test -n "$runpath_var" ||
11354   test "X$hardcode_automatic" = "Xyes" ; then
11355
11356  # We can hardcode non-existent directories.
11357  if test "$hardcode_direct" != no &&
11358     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11359     # have to relink, otherwise we might link with an installed library
11360     # when we should be linking with a yet-to-be-installed one
11361     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11362     test "$hardcode_minus_L" != no; then
11363    # Linking always hardcodes the temporary library directory.
11364    hardcode_action=relink
11365  else
11366    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11367    hardcode_action=immediate
11368  fi
11369else
11370  # We cannot hardcode anything, or else we can only hardcode existing
11371  # directories.
11372  hardcode_action=unsupported
11373fi
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11375$as_echo "$hardcode_action" >&6; }
11376
11377if test "$hardcode_action" = relink ||
11378   test "$inherit_rpath" = yes; then
11379  # Fast installation is not supported
11380  enable_fast_install=no
11381elif test "$shlibpath_overrides_runpath" = yes ||
11382     test "$enable_shared" = no; then
11383  # Fast installation is not necessary
11384  enable_fast_install=needless
11385fi
11386
11387
11388
11389
11390
11391
11392  if test "x$enable_dlopen" != xyes; then
11393  enable_dlopen=unknown
11394  enable_dlopen_self=unknown
11395  enable_dlopen_self_static=unknown
11396else
11397  lt_cv_dlopen=no
11398  lt_cv_dlopen_libs=
11399
11400  case $host_os in
11401  beos*)
11402    lt_cv_dlopen="load_add_on"
11403    lt_cv_dlopen_libs=
11404    lt_cv_dlopen_self=yes
11405    ;;
11406
11407  mingw* | pw32* | cegcc*)
11408    lt_cv_dlopen="LoadLibrary"
11409    lt_cv_dlopen_libs=
11410    ;;
11411
11412  cygwin*)
11413    lt_cv_dlopen="dlopen"
11414    lt_cv_dlopen_libs=
11415    ;;
11416
11417  darwin*)
11418  # if libdl is installed we need to link against it
11419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11420$as_echo_n "checking for dlopen in -ldl... " >&6; }
11421if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11422  $as_echo_n "(cached) " >&6
11423else
11424  ac_check_lib_save_LIBS=$LIBS
11425LIBS="-ldl  $LIBS"
11426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427/* end confdefs.h.  */
11428
11429/* Override any GCC internal prototype to avoid an error.
11430   Use char because int might match the return type of a GCC
11431   builtin and then its argument prototype would still apply.  */
11432#ifdef __cplusplus
11433extern "C"
11434#endif
11435char dlopen ();
11436int
11437main ()
11438{
11439return dlopen ();
11440  ;
11441  return 0;
11442}
11443_ACEOF
11444if ac_fn_c_try_link "$LINENO"; then :
11445  ac_cv_lib_dl_dlopen=yes
11446else
11447  ac_cv_lib_dl_dlopen=no
11448fi
11449rm -f core conftest.err conftest.$ac_objext \
11450    conftest$ac_exeext conftest.$ac_ext
11451LIBS=$ac_check_lib_save_LIBS
11452fi
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11454$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11455if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11456  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11457else
11458
11459    lt_cv_dlopen="dyld"
11460    lt_cv_dlopen_libs=
11461    lt_cv_dlopen_self=yes
11462
11463fi
11464
11465    ;;
11466
11467  *)
11468    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11469if test "x$ac_cv_func_shl_load" = x""yes; then :
11470  lt_cv_dlopen="shl_load"
11471else
11472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11473$as_echo_n "checking for shl_load in -ldld... " >&6; }
11474if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11475  $as_echo_n "(cached) " >&6
11476else
11477  ac_check_lib_save_LIBS=$LIBS
11478LIBS="-ldld  $LIBS"
11479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480/* end confdefs.h.  */
11481
11482/* Override any GCC internal prototype to avoid an error.
11483   Use char because int might match the return type of a GCC
11484   builtin and then its argument prototype would still apply.  */
11485#ifdef __cplusplus
11486extern "C"
11487#endif
11488char shl_load ();
11489int
11490main ()
11491{
11492return shl_load ();
11493  ;
11494  return 0;
11495}
11496_ACEOF
11497if ac_fn_c_try_link "$LINENO"; then :
11498  ac_cv_lib_dld_shl_load=yes
11499else
11500  ac_cv_lib_dld_shl_load=no
11501fi
11502rm -f core conftest.err conftest.$ac_objext \
11503    conftest$ac_exeext conftest.$ac_ext
11504LIBS=$ac_check_lib_save_LIBS
11505fi
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11507$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11508if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11509  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11510else
11511  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11512if test "x$ac_cv_func_dlopen" = x""yes; then :
11513  lt_cv_dlopen="dlopen"
11514else
11515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11516$as_echo_n "checking for dlopen in -ldl... " >&6; }
11517if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11518  $as_echo_n "(cached) " >&6
11519else
11520  ac_check_lib_save_LIBS=$LIBS
11521LIBS="-ldl  $LIBS"
11522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523/* end confdefs.h.  */
11524
11525/* Override any GCC internal prototype to avoid an error.
11526   Use char because int might match the return type of a GCC
11527   builtin and then its argument prototype would still apply.  */
11528#ifdef __cplusplus
11529extern "C"
11530#endif
11531char dlopen ();
11532int
11533main ()
11534{
11535return dlopen ();
11536  ;
11537  return 0;
11538}
11539_ACEOF
11540if ac_fn_c_try_link "$LINENO"; then :
11541  ac_cv_lib_dl_dlopen=yes
11542else
11543  ac_cv_lib_dl_dlopen=no
11544fi
11545rm -f core conftest.err conftest.$ac_objext \
11546    conftest$ac_exeext conftest.$ac_ext
11547LIBS=$ac_check_lib_save_LIBS
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11550$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11551if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11552  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11553else
11554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11555$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11556if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11557  $as_echo_n "(cached) " >&6
11558else
11559  ac_check_lib_save_LIBS=$LIBS
11560LIBS="-lsvld  $LIBS"
11561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562/* end confdefs.h.  */
11563
11564/* Override any GCC internal prototype to avoid an error.
11565   Use char because int might match the return type of a GCC
11566   builtin and then its argument prototype would still apply.  */
11567#ifdef __cplusplus
11568extern "C"
11569#endif
11570char dlopen ();
11571int
11572main ()
11573{
11574return dlopen ();
11575  ;
11576  return 0;
11577}
11578_ACEOF
11579if ac_fn_c_try_link "$LINENO"; then :
11580  ac_cv_lib_svld_dlopen=yes
11581else
11582  ac_cv_lib_svld_dlopen=no
11583fi
11584rm -f core conftest.err conftest.$ac_objext \
11585    conftest$ac_exeext conftest.$ac_ext
11586LIBS=$ac_check_lib_save_LIBS
11587fi
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11589$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11590if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11591  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11592else
11593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11594$as_echo_n "checking for dld_link in -ldld... " >&6; }
11595if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11596  $as_echo_n "(cached) " >&6
11597else
11598  ac_check_lib_save_LIBS=$LIBS
11599LIBS="-ldld  $LIBS"
11600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601/* end confdefs.h.  */
11602
11603/* Override any GCC internal prototype to avoid an error.
11604   Use char because int might match the return type of a GCC
11605   builtin and then its argument prototype would still apply.  */
11606#ifdef __cplusplus
11607extern "C"
11608#endif
11609char dld_link ();
11610int
11611main ()
11612{
11613return dld_link ();
11614  ;
11615  return 0;
11616}
11617_ACEOF
11618if ac_fn_c_try_link "$LINENO"; then :
11619  ac_cv_lib_dld_dld_link=yes
11620else
11621  ac_cv_lib_dld_dld_link=no
11622fi
11623rm -f core conftest.err conftest.$ac_objext \
11624    conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11628$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11629if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11630  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11631fi
11632
11633
11634fi
11635
11636
11637fi
11638
11639
11640fi
11641
11642
11643fi
11644
11645
11646fi
11647
11648    ;;
11649  esac
11650
11651  if test "x$lt_cv_dlopen" != xno; then
11652    enable_dlopen=yes
11653  else
11654    enable_dlopen=no
11655  fi
11656
11657  case $lt_cv_dlopen in
11658  dlopen)
11659    save_CPPFLAGS="$CPPFLAGS"
11660    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11661
11662    save_LDFLAGS="$LDFLAGS"
11663    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11664
11665    save_LIBS="$LIBS"
11666    LIBS="$lt_cv_dlopen_libs $LIBS"
11667
11668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11669$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11670if test "${lt_cv_dlopen_self+set}" = set; then :
11671  $as_echo_n "(cached) " >&6
11672else
11673  	  if test "$cross_compiling" = yes; then :
11674  lt_cv_dlopen_self=cross
11675else
11676  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11677  lt_status=$lt_dlunknown
11678  cat > conftest.$ac_ext <<_LT_EOF
11679#line 11679 "configure"
11680#include "confdefs.h"
11681
11682#if HAVE_DLFCN_H
11683#include <dlfcn.h>
11684#endif
11685
11686#include <stdio.h>
11687
11688#ifdef RTLD_GLOBAL
11689#  define LT_DLGLOBAL		RTLD_GLOBAL
11690#else
11691#  ifdef DL_GLOBAL
11692#    define LT_DLGLOBAL		DL_GLOBAL
11693#  else
11694#    define LT_DLGLOBAL		0
11695#  endif
11696#endif
11697
11698/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11699   find out it does not work in some platform. */
11700#ifndef LT_DLLAZY_OR_NOW
11701#  ifdef RTLD_LAZY
11702#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11703#  else
11704#    ifdef DL_LAZY
11705#      define LT_DLLAZY_OR_NOW		DL_LAZY
11706#    else
11707#      ifdef RTLD_NOW
11708#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11709#      else
11710#        ifdef DL_NOW
11711#          define LT_DLLAZY_OR_NOW	DL_NOW
11712#        else
11713#          define LT_DLLAZY_OR_NOW	0
11714#        endif
11715#      endif
11716#    endif
11717#  endif
11718#endif
11719
11720void fnord() { int i=42;}
11721int main ()
11722{
11723  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11724  int status = $lt_dlunknown;
11725
11726  if (self)
11727    {
11728      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11729      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11730      /* dlclose (self); */
11731    }
11732  else
11733    puts (dlerror ());
11734
11735  return status;
11736}
11737_LT_EOF
11738  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11739  (eval $ac_link) 2>&5
11740  ac_status=$?
11741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11742  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11743    (./conftest; exit; ) >&5 2>/dev/null
11744    lt_status=$?
11745    case x$lt_status in
11746      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11747      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11748      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11749    esac
11750  else :
11751    # compilation failed
11752    lt_cv_dlopen_self=no
11753  fi
11754fi
11755rm -fr conftest*
11756
11757
11758fi
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11760$as_echo "$lt_cv_dlopen_self" >&6; }
11761
11762    if test "x$lt_cv_dlopen_self" = xyes; then
11763      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11764      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11765$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11766if test "${lt_cv_dlopen_self_static+set}" = set; then :
11767  $as_echo_n "(cached) " >&6
11768else
11769  	  if test "$cross_compiling" = yes; then :
11770  lt_cv_dlopen_self_static=cross
11771else
11772  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11773  lt_status=$lt_dlunknown
11774  cat > conftest.$ac_ext <<_LT_EOF
11775#line 11775 "configure"
11776#include "confdefs.h"
11777
11778#if HAVE_DLFCN_H
11779#include <dlfcn.h>
11780#endif
11781
11782#include <stdio.h>
11783
11784#ifdef RTLD_GLOBAL
11785#  define LT_DLGLOBAL		RTLD_GLOBAL
11786#else
11787#  ifdef DL_GLOBAL
11788#    define LT_DLGLOBAL		DL_GLOBAL
11789#  else
11790#    define LT_DLGLOBAL		0
11791#  endif
11792#endif
11793
11794/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11795   find out it does not work in some platform. */
11796#ifndef LT_DLLAZY_OR_NOW
11797#  ifdef RTLD_LAZY
11798#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11799#  else
11800#    ifdef DL_LAZY
11801#      define LT_DLLAZY_OR_NOW		DL_LAZY
11802#    else
11803#      ifdef RTLD_NOW
11804#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11805#      else
11806#        ifdef DL_NOW
11807#          define LT_DLLAZY_OR_NOW	DL_NOW
11808#        else
11809#          define LT_DLLAZY_OR_NOW	0
11810#        endif
11811#      endif
11812#    endif
11813#  endif
11814#endif
11815
11816void fnord() { int i=42;}
11817int main ()
11818{
11819  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11820  int status = $lt_dlunknown;
11821
11822  if (self)
11823    {
11824      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11825      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11826      /* dlclose (self); */
11827    }
11828  else
11829    puts (dlerror ());
11830
11831  return status;
11832}
11833_LT_EOF
11834  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11835  (eval $ac_link) 2>&5
11836  ac_status=$?
11837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11838  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11839    (./conftest; exit; ) >&5 2>/dev/null
11840    lt_status=$?
11841    case x$lt_status in
11842      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11843      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11844      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11845    esac
11846  else :
11847    # compilation failed
11848    lt_cv_dlopen_self_static=no
11849  fi
11850fi
11851rm -fr conftest*
11852
11853
11854fi
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11856$as_echo "$lt_cv_dlopen_self_static" >&6; }
11857    fi
11858
11859    CPPFLAGS="$save_CPPFLAGS"
11860    LDFLAGS="$save_LDFLAGS"
11861    LIBS="$save_LIBS"
11862    ;;
11863  esac
11864
11865  case $lt_cv_dlopen_self in
11866  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11867  *) enable_dlopen_self=unknown ;;
11868  esac
11869
11870  case $lt_cv_dlopen_self_static in
11871  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11872  *) enable_dlopen_self_static=unknown ;;
11873  esac
11874fi
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892striplib=
11893old_striplib=
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11895$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11896if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11897  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11898  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11900$as_echo "yes" >&6; }
11901else
11902# FIXME - insert some real tests, host_os isn't really good enough
11903  case $host_os in
11904  darwin*)
11905    if test -n "$STRIP" ; then
11906      striplib="$STRIP -x"
11907      old_striplib="$STRIP -S"
11908      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11909$as_echo "yes" >&6; }
11910    else
11911      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912$as_echo "no" >&6; }
11913    fi
11914    ;;
11915  *)
11916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917$as_echo "no" >&6; }
11918    ;;
11919  esac
11920fi
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933  # Report which library types will actually be built
11934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11935$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11937$as_echo "$can_build_shared" >&6; }
11938
11939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11940$as_echo_n "checking whether to build shared libraries... " >&6; }
11941  test "$can_build_shared" = "no" && enable_shared=no
11942
11943  # On AIX, shared libraries and static libraries use the same namespace, and
11944  # are all built from PIC.
11945  case $host_os in
11946  aix3*)
11947    test "$enable_shared" = yes && enable_static=no
11948    if test -n "$RANLIB"; then
11949      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11950      postinstall_cmds='$RANLIB $lib'
11951    fi
11952    ;;
11953
11954  aix[4-9]*)
11955    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11956      test "$enable_shared" = yes && enable_static=no
11957    fi
11958    ;;
11959  esac
11960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11961$as_echo "$enable_shared" >&6; }
11962
11963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11964$as_echo_n "checking whether to build static libraries... " >&6; }
11965  # Make sure either enable_shared or enable_static is yes.
11966  test "$enable_shared" = yes || enable_static=yes
11967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11968$as_echo "$enable_static" >&6; }
11969
11970
11971
11972
11973fi
11974ac_ext=c
11975ac_cpp='$CPP $CPPFLAGS'
11976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11978ac_compiler_gnu=$ac_cv_c_compiler_gnu
11979
11980CC="$lt_save_CC"
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994        ac_config_commands="$ac_config_commands libtool"
11995
11996
11997
11998
11999# Only expand once:
12000
12001
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12003$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12004set x ${MAKE-make}
12005ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12006if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
12007  $as_echo_n "(cached) " >&6
12008else
12009  cat >conftest.make <<\_ACEOF
12010SHELL = /bin/sh
12011all:
12012	@echo '@@@%%%=$(MAKE)=@@@%%%'
12013_ACEOF
12014# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12015case `${MAKE-make} -f conftest.make 2>/dev/null` in
12016  *@@@%%%=?*=@@@%%%*)
12017    eval ac_cv_prog_make_${ac_make}_set=yes;;
12018  *)
12019    eval ac_cv_prog_make_${ac_make}_set=no;;
12020esac
12021rm -f conftest.make
12022fi
12023if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025$as_echo "yes" >&6; }
12026  SET_MAKE=
12027else
12028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
12030  SET_MAKE="MAKE=${MAKE-make}"
12031fi
12032
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12034$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12035if test "${ac_cv_path_SED+set}" = set; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12039     for ac_i in 1 2 3 4 5 6 7; do
12040       ac_script="$ac_script$as_nl$ac_script"
12041     done
12042     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12043     { ac_script=; unset ac_script;}
12044     if test -z "$SED"; then
12045  ac_path_SED_found=false
12046  # Loop through the user's path and test for each of PROGNAME-LIST
12047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048for as_dir in $PATH
12049do
12050  IFS=$as_save_IFS
12051  test -z "$as_dir" && as_dir=.
12052    for ac_prog in sed gsed; do
12053    for ac_exec_ext in '' $ac_executable_extensions; do
12054      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12055      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12056# Check for GNU ac_path_SED and select it if it is found.
12057  # Check for GNU $ac_path_SED
12058case `"$ac_path_SED" --version 2>&1` in
12059*GNU*)
12060  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12061*)
12062  ac_count=0
12063  $as_echo_n 0123456789 >"conftest.in"
12064  while :
12065  do
12066    cat "conftest.in" "conftest.in" >"conftest.tmp"
12067    mv "conftest.tmp" "conftest.in"
12068    cp "conftest.in" "conftest.nl"
12069    $as_echo '' >> "conftest.nl"
12070    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12071    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12072    as_fn_arith $ac_count + 1 && ac_count=$as_val
12073    if test $ac_count -gt ${ac_path_SED_max-0}; then
12074      # Best one so far, save it but keep looking for a better one
12075      ac_cv_path_SED="$ac_path_SED"
12076      ac_path_SED_max=$ac_count
12077    fi
12078    # 10*(2^10) chars as input seems more than enough
12079    test $ac_count -gt 10 && break
12080  done
12081  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12082esac
12083
12084      $ac_path_SED_found && break 3
12085    done
12086  done
12087  done
12088IFS=$as_save_IFS
12089  if test -z "$ac_cv_path_SED"; then
12090    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12091  fi
12092else
12093  ac_cv_path_SED=$SED
12094fi
12095
12096fi
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12098$as_echo "$ac_cv_path_SED" >&6; }
12099 SED="$ac_cv_path_SED"
12100  rm -f conftest.sed
12101
12102
12103
12104pkg_failed=no
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
12106$as_echo_n "checking for XAU... " >&6; }
12107
12108if test -n "$XAU_CFLAGS"; then
12109    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
12110 elif test -n "$PKG_CONFIG"; then
12111    if test -n "$PKG_CONFIG" && \
12112    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
12113  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
12114  ac_status=$?
12115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12116  test $ac_status = 0; }; then
12117  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
12118else
12119  pkg_failed=yes
12120fi
12121 else
12122    pkg_failed=untried
12123fi
12124if test -n "$XAU_LIBS"; then
12125    pkg_cv_XAU_LIBS="$XAU_LIBS"
12126 elif test -n "$PKG_CONFIG"; then
12127    if test -n "$PKG_CONFIG" && \
12128    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
12129  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
12130  ac_status=$?
12131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12132  test $ac_status = 0; }; then
12133  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
12134else
12135  pkg_failed=yes
12136fi
12137 else
12138    pkg_failed=untried
12139fi
12140
12141
12142
12143if test $pkg_failed = yes; then
12144   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
12146
12147if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12148        _pkg_short_errors_supported=yes
12149else
12150        _pkg_short_errors_supported=no
12151fi
12152        if test $_pkg_short_errors_supported = yes; then
12153	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
12154        else
12155	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
12156        fi
12157	# Put the nasty error message in config.log where it belongs
12158	echo "$XAU_PKG_ERRORS" >&5
12159
12160	as_fn_error "Package requirements (xproto) were not met:
12161
12162$XAU_PKG_ERRORS
12163
12164Consider adjusting the PKG_CONFIG_PATH environment variable if you
12165installed software in a non-standard prefix.
12166
12167Alternatively, you may set the environment variables XAU_CFLAGS
12168and XAU_LIBS to avoid the need to call pkg-config.
12169See the pkg-config man page for more details." "$LINENO" 5
12170elif test $pkg_failed = untried; then
12171     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172$as_echo "no" >&6; }
12173	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12175as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12176is in your PATH or set the PKG_CONFIG environment variable to the full
12177path to pkg-config.
12178
12179Alternatively, you may set the environment variables XAU_CFLAGS
12180and XAU_LIBS to avoid the need to call pkg-config.
12181See the pkg-config man page for more details.
12182
12183To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12184See \`config.log' for more details." "$LINENO" 5; }
12185else
12186	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
12187	XAU_LIBS=$pkg_cv_XAU_LIBS
12188        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189$as_echo "yes" >&6; }
12190
12191fi
12192
12193# Check whether --enable-xthreads was given.
12194if test "${enable_xthreads+set}" = set; then :
12195  enableval=$enable_xthreads; xthreads=$enableval
12196else
12197  xthreads=yes
12198fi
12199
12200
12201if test "x$xthreads" = "xyes" ; then
12202
12203$as_echo "#define XTHREADS 1" >>confdefs.h
12204
12205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lc" >&5
12206$as_echo_n "checking for gethostbyname_r in -lc... " >&6; }
12207if test "${ac_cv_lib_c_gethostbyname_r+set}" = set; then :
12208  $as_echo_n "(cached) " >&6
12209else
12210  ac_check_lib_save_LIBS=$LIBS
12211LIBS="-lc  $LIBS"
12212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213/* end confdefs.h.  */
12214
12215/* Override any GCC internal prototype to avoid an error.
12216   Use char because int might match the return type of a GCC
12217   builtin and then its argument prototype would still apply.  */
12218#ifdef __cplusplus
12219extern "C"
12220#endif
12221char gethostbyname_r ();
12222int
12223main ()
12224{
12225return gethostbyname_r ();
12226  ;
12227  return 0;
12228}
12229_ACEOF
12230if ac_fn_c_try_link "$LINENO"; then :
12231  ac_cv_lib_c_gethostbyname_r=yes
12232else
12233  ac_cv_lib_c_gethostbyname_r=no
12234fi
12235rm -f core conftest.err conftest.$ac_objext \
12236    conftest$ac_exeext conftest.$ac_ext
12237LIBS=$ac_check_lib_save_LIBS
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname_r" >&5
12240$as_echo "$ac_cv_lib_c_gethostbyname_r" >&6; }
12241if test "x$ac_cv_lib_c_gethostbyname_r" = x""yes; then :
12242  mtsafe=yes
12243fi
12244
12245    if test "x$mtsafe" = "x" ; then
12246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
12247$as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
12248if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
12249  $as_echo_n "(cached) " >&6
12250else
12251  ac_check_lib_save_LIBS=$LIBS
12252LIBS="-lnsl  $LIBS"
12253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254/* end confdefs.h.  */
12255
12256/* Override any GCC internal prototype to avoid an error.
12257   Use char because int might match the return type of a GCC
12258   builtin and then its argument prototype would still apply.  */
12259#ifdef __cplusplus
12260extern "C"
12261#endif
12262char gethostbyname_r ();
12263int
12264main ()
12265{
12266return gethostbyname_r ();
12267  ;
12268  return 0;
12269}
12270_ACEOF
12271if ac_fn_c_try_link "$LINENO"; then :
12272  ac_cv_lib_nsl_gethostbyname_r=yes
12273else
12274  ac_cv_lib_nsl_gethostbyname_r=no
12275fi
12276rm -f core conftest.err conftest.$ac_objext \
12277    conftest$ac_exeext conftest.$ac_ext
12278LIBS=$ac_check_lib_save_LIBS
12279fi
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
12281$as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
12282if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
12283  mtsafe=yes
12284fi
12285
12286    fi
12287    if test "x$mtsafe" = "xyes" ; then
12288
12289$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
12290
12291    fi
12292
12293    case $host_os in
12294    solaris*)
12295	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
12296    esac
12297    XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS"
12298fi
12299
12300
12301
12302
12303
12304
12305# Check whether --with-lint was given.
12306if test "${with_lint+set}" = set; then :
12307  withval=$with_lint; use_lint=$withval
12308else
12309  use_lint=no
12310fi
12311
12312
12313# Obtain platform specific info like program name and options
12314# The lint program on FreeBSD and NetBSD is different from the one on Solaris
12315case $host_os in
12316  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12317	lint_name=splint
12318	lint_options="-badflag"
12319	;;
12320  *freebsd* | *netbsd*)
12321	lint_name=lint
12322	lint_options="-u -b"
12323	;;
12324  *solaris*)
12325	lint_name=lint
12326	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12327	;;
12328esac
12329
12330# Test for the presence of the program (either guessed by the code or spelled out by the user)
12331if test "x$use_lint" = x"yes" ; then
12332   # Extract the first word of "$lint_name", so it can be a program name with args.
12333set dummy $lint_name; ac_word=$2
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335$as_echo_n "checking for $ac_word... " >&6; }
12336if test "${ac_cv_path_LINT+set}" = set; then :
12337  $as_echo_n "(cached) " >&6
12338else
12339  case $LINT in
12340  [\\/]* | ?:[\\/]*)
12341  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12342  ;;
12343  *)
12344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345for as_dir in $PATH
12346do
12347  IFS=$as_save_IFS
12348  test -z "$as_dir" && as_dir=.
12349    for ac_exec_ext in '' $ac_executable_extensions; do
12350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12351    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
12352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353    break 2
12354  fi
12355done
12356  done
12357IFS=$as_save_IFS
12358
12359  ;;
12360esac
12361fi
12362LINT=$ac_cv_path_LINT
12363if test -n "$LINT"; then
12364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12365$as_echo "$LINT" >&6; }
12366else
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368$as_echo "no" >&6; }
12369fi
12370
12371
12372   if test "x$LINT" = "x"; then
12373        as_fn_error "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12374   fi
12375elif test "x$use_lint" = x"no" ; then
12376   if test "x$LINT" != "x"; then
12377      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12378$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12379   fi
12380else
12381   as_fn_error "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12382fi
12383
12384# User supplied flags override default flags
12385if test "x$LINT_FLAGS" != "x"; then
12386   lint_options=$LINT_FLAGS
12387fi
12388
12389LINT_FLAGS=$lint_options
12390
12391 if test "x$LINT" != x; then
12392  LINT_TRUE=
12393  LINT_FALSE='#'
12394else
12395  LINT_TRUE='#'
12396  LINT_FALSE=
12397fi
12398
12399
12400
12401
12402
12403# Check whether --enable-lint-library was given.
12404if test "${enable_lint_library+set}" = set; then :
12405  enableval=$enable_lint_library; make_lint_lib=$enableval
12406else
12407  make_lint_lib=no
12408fi
12409
12410
12411if test "x$make_lint_lib" = x"yes" ; then
12412   LINTLIB=llib-lXau.ln
12413   if test "x$LINT" = "x"; then
12414        as_fn_error "Cannot make lint library without --with-lint" "$LINENO" 5
12415   fi
12416elif test "x$make_lint_lib" != x"no" ; then
12417   as_fn_error "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
12418fi
12419
12420
12421 if test x$make_lint_lib != xno; then
12422  MAKE_LINT_LIB_TRUE=
12423  MAKE_LINT_LIB_FALSE='#'
12424else
12425  MAKE_LINT_LIB_TRUE='#'
12426  MAKE_LINT_LIB_FALSE=
12427fi
12428
12429
12430
12431LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}"
12432
12433
12434ac_config_files="$ac_config_files Makefile xau.pc"
12435
12436cat >confcache <<\_ACEOF
12437# This file is a shell script that caches the results of configure
12438# tests run on this system so they can be shared between configure
12439# scripts and configure runs, see configure's option --config-cache.
12440# It is not useful on other systems.  If it contains results you don't
12441# want to keep, you may remove or edit it.
12442#
12443# config.status only pays attention to the cache file if you give it
12444# the --recheck option to rerun configure.
12445#
12446# `ac_cv_env_foo' variables (set or unset) will be overridden when
12447# loading this file, other *unset* `ac_cv_foo' will be assigned the
12448# following values.
12449
12450_ACEOF
12451
12452# The following way of writing the cache mishandles newlines in values,
12453# but we know of no workaround that is simple, portable, and efficient.
12454# So, we kill variables containing newlines.
12455# Ultrix sh set writes to stderr and can't be redirected directly,
12456# and sets the high bit in the cache file unless we assign to the vars.
12457(
12458  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12459    eval ac_val=\$$ac_var
12460    case $ac_val in #(
12461    *${as_nl}*)
12462      case $ac_var in #(
12463      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12464$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12465      esac
12466      case $ac_var in #(
12467      _ | IFS | as_nl) ;; #(
12468      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12469      *) { eval $ac_var=; unset $ac_var;} ;;
12470      esac ;;
12471    esac
12472  done
12473
12474  (set) 2>&1 |
12475    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12476    *${as_nl}ac_space=\ *)
12477      # `set' does not quote correctly, so add quotes: double-quote
12478      # substitution turns \\\\ into \\, and sed turns \\ into \.
12479      sed -n \
12480	"s/'/'\\\\''/g;
12481	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12482      ;; #(
12483    *)
12484      # `set' quotes correctly as required by POSIX, so do not add quotes.
12485      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12486      ;;
12487    esac |
12488    sort
12489) |
12490  sed '
12491     /^ac_cv_env_/b end
12492     t clear
12493     :clear
12494     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12495     t end
12496     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12497     :end' >>confcache
12498if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12499  if test -w "$cache_file"; then
12500    test "x$cache_file" != "x/dev/null" &&
12501      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12502$as_echo "$as_me: updating cache $cache_file" >&6;}
12503    cat confcache >$cache_file
12504  else
12505    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12506$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12507  fi
12508fi
12509rm -f confcache
12510
12511test "x$prefix" = xNONE && prefix=$ac_default_prefix
12512# Let make expand exec_prefix.
12513test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12514
12515DEFS=-DHAVE_CONFIG_H
12516
12517ac_libobjs=
12518ac_ltlibobjs=
12519for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12520  # 1. Remove the extension, and $U if already installed.
12521  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12522  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12523  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12524  #    will be set to the directory where LIBOBJS objects are built.
12525  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12526  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12527done
12528LIBOBJS=$ac_libobjs
12529
12530LTLIBOBJS=$ac_ltlibobjs
12531
12532
12533 if test -n "$EXEEXT"; then
12534  am__EXEEXT_TRUE=
12535  am__EXEEXT_FALSE='#'
12536else
12537  am__EXEEXT_TRUE='#'
12538  am__EXEEXT_FALSE=
12539fi
12540
12541if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12542  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12543Usually this means the macro was only invoked conditionally." "$LINENO" 5
12544fi
12545if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12546  as_fn_error "conditional \"AMDEP\" was never defined.
12547Usually this means the macro was only invoked conditionally." "$LINENO" 5
12548fi
12549if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12550  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12551Usually this means the macro was only invoked conditionally." "$LINENO" 5
12552fi
12553if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12554  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12555Usually this means the macro was only invoked conditionally." "$LINENO" 5
12556fi
12557if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12558  as_fn_error "conditional \"LINT\" was never defined.
12559Usually this means the macro was only invoked conditionally." "$LINENO" 5
12560fi
12561if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
12562  as_fn_error "conditional \"MAKE_LINT_LIB\" was never defined.
12563Usually this means the macro was only invoked conditionally." "$LINENO" 5
12564fi
12565
12566: ${CONFIG_STATUS=./config.status}
12567ac_write_fail=0
12568ac_clean_files_save=$ac_clean_files
12569ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12571$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12572as_write_fail=0
12573cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12574#! $SHELL
12575# Generated by $as_me.
12576# Run this file to recreate the current configuration.
12577# Compiler output produced by configure, useful for debugging
12578# configure, is in config.log if it exists.
12579
12580debug=false
12581ac_cs_recheck=false
12582ac_cs_silent=false
12583
12584SHELL=\${CONFIG_SHELL-$SHELL}
12585export SHELL
12586_ASEOF
12587cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12588## -------------------- ##
12589## M4sh Initialization. ##
12590## -------------------- ##
12591
12592# Be more Bourne compatible
12593DUALCASE=1; export DUALCASE # for MKS sh
12594if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12595  emulate sh
12596  NULLCMD=:
12597  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12598  # is contrary to our usage.  Disable this feature.
12599  alias -g '${1+"$@"}'='"$@"'
12600  setopt NO_GLOB_SUBST
12601else
12602  case `(set -o) 2>/dev/null` in #(
12603  *posix*) :
12604    set -o posix ;; #(
12605  *) :
12606     ;;
12607esac
12608fi
12609
12610
12611as_nl='
12612'
12613export as_nl
12614# Printing a long string crashes Solaris 7 /usr/bin/printf.
12615as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12616as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12617as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12618# Prefer a ksh shell builtin over an external printf program on Solaris,
12619# but without wasting forks for bash or zsh.
12620if test -z "$BASH_VERSION$ZSH_VERSION" \
12621    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12622  as_echo='print -r --'
12623  as_echo_n='print -rn --'
12624elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12625  as_echo='printf %s\n'
12626  as_echo_n='printf %s'
12627else
12628  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12629    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12630    as_echo_n='/usr/ucb/echo -n'
12631  else
12632    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12633    as_echo_n_body='eval
12634      arg=$1;
12635      case $arg in #(
12636      *"$as_nl"*)
12637	expr "X$arg" : "X\\(.*\\)$as_nl";
12638	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12639      esac;
12640      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12641    '
12642    export as_echo_n_body
12643    as_echo_n='sh -c $as_echo_n_body as_echo'
12644  fi
12645  export as_echo_body
12646  as_echo='sh -c $as_echo_body as_echo'
12647fi
12648
12649# The user is always right.
12650if test "${PATH_SEPARATOR+set}" != set; then
12651  PATH_SEPARATOR=:
12652  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12653    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12654      PATH_SEPARATOR=';'
12655  }
12656fi
12657
12658
12659# IFS
12660# We need space, tab and new line, in precisely that order.  Quoting is
12661# there to prevent editors from complaining about space-tab.
12662# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12663# splitting by setting IFS to empty value.)
12664IFS=" ""	$as_nl"
12665
12666# Find who we are.  Look in the path if we contain no directory separator.
12667case $0 in #((
12668  *[\\/]* ) as_myself=$0 ;;
12669  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670for as_dir in $PATH
12671do
12672  IFS=$as_save_IFS
12673  test -z "$as_dir" && as_dir=.
12674    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12675  done
12676IFS=$as_save_IFS
12677
12678     ;;
12679esac
12680# We did not find ourselves, most probably we were run as `sh COMMAND'
12681# in which case we are not to be found in the path.
12682if test "x$as_myself" = x; then
12683  as_myself=$0
12684fi
12685if test ! -f "$as_myself"; then
12686  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12687  exit 1
12688fi
12689
12690# Unset variables that we do not need and which cause bugs (e.g. in
12691# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12692# suppresses any "Segmentation fault" message there.  '((' could
12693# trigger a bug in pdksh 5.2.14.
12694for as_var in BASH_ENV ENV MAIL MAILPATH
12695do eval test x\${$as_var+set} = xset \
12696  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12697done
12698PS1='$ '
12699PS2='> '
12700PS4='+ '
12701
12702# NLS nuisances.
12703LC_ALL=C
12704export LC_ALL
12705LANGUAGE=C
12706export LANGUAGE
12707
12708# CDPATH.
12709(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12710
12711
12712# as_fn_error ERROR [LINENO LOG_FD]
12713# ---------------------------------
12714# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12715# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12716# script with status $?, using 1 if that was 0.
12717as_fn_error ()
12718{
12719  as_status=$?; test $as_status -eq 0 && as_status=1
12720  if test "$3"; then
12721    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12722    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12723  fi
12724  $as_echo "$as_me: error: $1" >&2
12725  as_fn_exit $as_status
12726} # as_fn_error
12727
12728
12729# as_fn_set_status STATUS
12730# -----------------------
12731# Set $? to STATUS, without forking.
12732as_fn_set_status ()
12733{
12734  return $1
12735} # as_fn_set_status
12736
12737# as_fn_exit STATUS
12738# -----------------
12739# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12740as_fn_exit ()
12741{
12742  set +e
12743  as_fn_set_status $1
12744  exit $1
12745} # as_fn_exit
12746
12747# as_fn_unset VAR
12748# ---------------
12749# Portably unset VAR.
12750as_fn_unset ()
12751{
12752  { eval $1=; unset $1;}
12753}
12754as_unset=as_fn_unset
12755# as_fn_append VAR VALUE
12756# ----------------------
12757# Append the text in VALUE to the end of the definition contained in VAR. Take
12758# advantage of any shell optimizations that allow amortized linear growth over
12759# repeated appends, instead of the typical quadratic growth present in naive
12760# implementations.
12761if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12762  eval 'as_fn_append ()
12763  {
12764    eval $1+=\$2
12765  }'
12766else
12767  as_fn_append ()
12768  {
12769    eval $1=\$$1\$2
12770  }
12771fi # as_fn_append
12772
12773# as_fn_arith ARG...
12774# ------------------
12775# Perform arithmetic evaluation on the ARGs, and store the result in the
12776# global $as_val. Take advantage of shells that can avoid forks. The arguments
12777# must be portable across $(()) and expr.
12778if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12779  eval 'as_fn_arith ()
12780  {
12781    as_val=$(( $* ))
12782  }'
12783else
12784  as_fn_arith ()
12785  {
12786    as_val=`expr "$@" || test $? -eq 1`
12787  }
12788fi # as_fn_arith
12789
12790
12791if expr a : '\(a\)' >/dev/null 2>&1 &&
12792   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12793  as_expr=expr
12794else
12795  as_expr=false
12796fi
12797
12798if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12799  as_basename=basename
12800else
12801  as_basename=false
12802fi
12803
12804if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12805  as_dirname=dirname
12806else
12807  as_dirname=false
12808fi
12809
12810as_me=`$as_basename -- "$0" ||
12811$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12812	 X"$0" : 'X\(//\)$' \| \
12813	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12814$as_echo X/"$0" |
12815    sed '/^.*\/\([^/][^/]*\)\/*$/{
12816	    s//\1/
12817	    q
12818	  }
12819	  /^X\/\(\/\/\)$/{
12820	    s//\1/
12821	    q
12822	  }
12823	  /^X\/\(\/\).*/{
12824	    s//\1/
12825	    q
12826	  }
12827	  s/.*/./; q'`
12828
12829# Avoid depending upon Character Ranges.
12830as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12831as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12832as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12833as_cr_digits='0123456789'
12834as_cr_alnum=$as_cr_Letters$as_cr_digits
12835
12836ECHO_C= ECHO_N= ECHO_T=
12837case `echo -n x` in #(((((
12838-n*)
12839  case `echo 'xy\c'` in
12840  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12841  xy)  ECHO_C='\c';;
12842  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12843       ECHO_T='	';;
12844  esac;;
12845*)
12846  ECHO_N='-n';;
12847esac
12848
12849rm -f conf$$ conf$$.exe conf$$.file
12850if test -d conf$$.dir; then
12851  rm -f conf$$.dir/conf$$.file
12852else
12853  rm -f conf$$.dir
12854  mkdir conf$$.dir 2>/dev/null
12855fi
12856if (echo >conf$$.file) 2>/dev/null; then
12857  if ln -s conf$$.file conf$$ 2>/dev/null; then
12858    as_ln_s='ln -s'
12859    # ... but there are two gotchas:
12860    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12861    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12862    # In both cases, we have to default to `cp -p'.
12863    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12864      as_ln_s='cp -p'
12865  elif ln conf$$.file conf$$ 2>/dev/null; then
12866    as_ln_s=ln
12867  else
12868    as_ln_s='cp -p'
12869  fi
12870else
12871  as_ln_s='cp -p'
12872fi
12873rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12874rmdir conf$$.dir 2>/dev/null
12875
12876
12877# as_fn_mkdir_p
12878# -------------
12879# Create "$as_dir" as a directory, including parents if necessary.
12880as_fn_mkdir_p ()
12881{
12882
12883  case $as_dir in #(
12884  -*) as_dir=./$as_dir;;
12885  esac
12886  test -d "$as_dir" || eval $as_mkdir_p || {
12887    as_dirs=
12888    while :; do
12889      case $as_dir in #(
12890      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12891      *) as_qdir=$as_dir;;
12892      esac
12893      as_dirs="'$as_qdir' $as_dirs"
12894      as_dir=`$as_dirname -- "$as_dir" ||
12895$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12896	 X"$as_dir" : 'X\(//\)[^/]' \| \
12897	 X"$as_dir" : 'X\(//\)$' \| \
12898	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12899$as_echo X"$as_dir" |
12900    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12901	    s//\1/
12902	    q
12903	  }
12904	  /^X\(\/\/\)[^/].*/{
12905	    s//\1/
12906	    q
12907	  }
12908	  /^X\(\/\/\)$/{
12909	    s//\1/
12910	    q
12911	  }
12912	  /^X\(\/\).*/{
12913	    s//\1/
12914	    q
12915	  }
12916	  s/.*/./; q'`
12917      test -d "$as_dir" && break
12918    done
12919    test -z "$as_dirs" || eval "mkdir $as_dirs"
12920  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12921
12922
12923} # as_fn_mkdir_p
12924if mkdir -p . 2>/dev/null; then
12925  as_mkdir_p='mkdir -p "$as_dir"'
12926else
12927  test -d ./-p && rmdir ./-p
12928  as_mkdir_p=false
12929fi
12930
12931if test -x / >/dev/null 2>&1; then
12932  as_test_x='test -x'
12933else
12934  if ls -dL / >/dev/null 2>&1; then
12935    as_ls_L_option=L
12936  else
12937    as_ls_L_option=
12938  fi
12939  as_test_x='
12940    eval sh -c '\''
12941      if test -d "$1"; then
12942	test -d "$1/.";
12943      else
12944	case $1 in #(
12945	-*)set "./$1";;
12946	esac;
12947	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12948	???[sx]*):;;*)false;;esac;fi
12949    '\'' sh
12950  '
12951fi
12952as_executable_p=$as_test_x
12953
12954# Sed expression to map a string onto a valid CPP name.
12955as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12956
12957# Sed expression to map a string onto a valid variable name.
12958as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12959
12960
12961exec 6>&1
12962## ----------------------------------- ##
12963## Main body of $CONFIG_STATUS script. ##
12964## ----------------------------------- ##
12965_ASEOF
12966test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12967
12968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12969# Save the log message, to keep $0 and so on meaningful, and to
12970# report actual input values of CONFIG_FILES etc. instead of their
12971# values after options handling.
12972ac_log="
12973This file was extended by libXau $as_me 1.0.6, which was
12974generated by GNU Autoconf 2.65.  Invocation command line was
12975
12976  CONFIG_FILES    = $CONFIG_FILES
12977  CONFIG_HEADERS  = $CONFIG_HEADERS
12978  CONFIG_LINKS    = $CONFIG_LINKS
12979  CONFIG_COMMANDS = $CONFIG_COMMANDS
12980  $ $0 $@
12981
12982on `(hostname || uname -n) 2>/dev/null | sed 1q`
12983"
12984
12985_ACEOF
12986
12987case $ac_config_files in *"
12988"*) set x $ac_config_files; shift; ac_config_files=$*;;
12989esac
12990
12991case $ac_config_headers in *"
12992"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12993esac
12994
12995
12996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12997# Files that config.status was made for.
12998config_files="$ac_config_files"
12999config_headers="$ac_config_headers"
13000config_commands="$ac_config_commands"
13001
13002_ACEOF
13003
13004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13005ac_cs_usage="\
13006\`$as_me' instantiates files and other configuration actions
13007from templates according to the current configuration.  Unless the files
13008and actions are specified as TAGs, all are instantiated by default.
13009
13010Usage: $0 [OPTION]... [TAG]...
13011
13012  -h, --help       print this help, then exit
13013  -V, --version    print version number and configuration settings, then exit
13014      --config     print configuration, then exit
13015  -q, --quiet, --silent
13016                   do not print progress messages
13017  -d, --debug      don't remove temporary files
13018      --recheck    update $as_me by reconfiguring in the same conditions
13019      --file=FILE[:TEMPLATE]
13020                   instantiate the configuration file FILE
13021      --header=FILE[:TEMPLATE]
13022                   instantiate the configuration header FILE
13023
13024Configuration files:
13025$config_files
13026
13027Configuration headers:
13028$config_headers
13029
13030Configuration commands:
13031$config_commands
13032
13033Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13034
13035_ACEOF
13036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13037ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13038ac_cs_version="\\
13039libXau config.status 1.0.6
13040configured by $0, generated by GNU Autoconf 2.65,
13041  with options \\"\$ac_cs_config\\"
13042
13043Copyright (C) 2009 Free Software Foundation, Inc.
13044This config.status script is free software; the Free Software Foundation
13045gives unlimited permission to copy, distribute and modify it."
13046
13047ac_pwd='$ac_pwd'
13048srcdir='$srcdir'
13049INSTALL='$INSTALL'
13050MKDIR_P='$MKDIR_P'
13051AWK='$AWK'
13052test -n "\$AWK" || AWK=awk
13053_ACEOF
13054
13055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13056# The default lists apply if the user does not specify any file.
13057ac_need_defaults=:
13058while test $# != 0
13059do
13060  case $1 in
13061  --*=*)
13062    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13063    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13064    ac_shift=:
13065    ;;
13066  *)
13067    ac_option=$1
13068    ac_optarg=$2
13069    ac_shift=shift
13070    ;;
13071  esac
13072
13073  case $ac_option in
13074  # Handling of the options.
13075  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13076    ac_cs_recheck=: ;;
13077  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13078    $as_echo "$ac_cs_version"; exit ;;
13079  --config | --confi | --conf | --con | --co | --c )
13080    $as_echo "$ac_cs_config"; exit ;;
13081  --debug | --debu | --deb | --de | --d | -d )
13082    debug=: ;;
13083  --file | --fil | --fi | --f )
13084    $ac_shift
13085    case $ac_optarg in
13086    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13087    esac
13088    as_fn_append CONFIG_FILES " '$ac_optarg'"
13089    ac_need_defaults=false;;
13090  --header | --heade | --head | --hea )
13091    $ac_shift
13092    case $ac_optarg in
13093    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13094    esac
13095    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13096    ac_need_defaults=false;;
13097  --he | --h)
13098    # Conflict between --help and --header
13099    as_fn_error "ambiguous option: \`$1'
13100Try \`$0 --help' for more information.";;
13101  --help | --hel | -h )
13102    $as_echo "$ac_cs_usage"; exit ;;
13103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13104  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13105    ac_cs_silent=: ;;
13106
13107  # This is an error.
13108  -*) as_fn_error "unrecognized option: \`$1'
13109Try \`$0 --help' for more information." ;;
13110
13111  *) as_fn_append ac_config_targets " $1"
13112     ac_need_defaults=false ;;
13113
13114  esac
13115  shift
13116done
13117
13118ac_configure_extra_args=
13119
13120if $ac_cs_silent; then
13121  exec 6>/dev/null
13122  ac_configure_extra_args="$ac_configure_extra_args --silent"
13123fi
13124
13125_ACEOF
13126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13127if \$ac_cs_recheck; then
13128  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13129  shift
13130  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13131  CONFIG_SHELL='$SHELL'
13132  export CONFIG_SHELL
13133  exec "\$@"
13134fi
13135
13136_ACEOF
13137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13138exec 5>>config.log
13139{
13140  echo
13141  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13142## Running $as_me. ##
13143_ASBOX
13144  $as_echo "$ac_log"
13145} >&5
13146
13147_ACEOF
13148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13149#
13150# INIT-COMMANDS
13151#
13152AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13153
13154
13155# The HP-UX ksh and POSIX shell print the target directory to stdout
13156# if CDPATH is set.
13157(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13158
13159sed_quote_subst='$sed_quote_subst'
13160double_quote_subst='$double_quote_subst'
13161delay_variable_subst='$delay_variable_subst'
13162AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13163DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13164OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13165macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13166macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13167enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13168enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13169pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13170enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13171host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13172host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13173host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13174build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13175build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13176build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13177SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13178Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13179GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13180EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13181FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13182LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13183NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13184LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13185max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13186ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13187exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13188lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13189lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13190lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13191reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13192reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13193deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13194file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13195AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13196AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13197STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13198RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13199old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13200old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13201old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13202CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13203CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13204compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13205GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13206lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13207lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13208lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13209lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13210objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13211SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13212ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13213MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13214lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13215lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13216lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13217lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13218lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13219need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13220DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13221NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13222LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13223OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13224OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13225libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13226shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13227extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13228archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13229enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13230export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13231whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13232compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13233old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13234old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13235archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13236archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13237module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13238module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13239with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13240allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13241no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13242hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13243hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13244hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13245hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13246hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13247hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13248hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13249hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13250inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13251link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13252fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13253always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13254export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13255exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13256include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13257prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13258file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13259variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13260need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13261need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13262version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13263runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13264shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13265shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13266libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13267library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13268soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13269postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13270postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13271finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13272finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13273hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13274sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13275sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13276hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13277enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13278enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13279enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13280old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13281striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13282
13283LTCC='$LTCC'
13284LTCFLAGS='$LTCFLAGS'
13285compiler='$compiler_DEFAULT'
13286
13287# Quote evaled strings.
13288for var in SED \
13289GREP \
13290EGREP \
13291FGREP \
13292LD \
13293NM \
13294LN_S \
13295lt_SP2NL \
13296lt_NL2SP \
13297reload_flag \
13298deplibs_check_method \
13299file_magic_cmd \
13300AR \
13301AR_FLAGS \
13302STRIP \
13303RANLIB \
13304CC \
13305CFLAGS \
13306compiler \
13307lt_cv_sys_global_symbol_pipe \
13308lt_cv_sys_global_symbol_to_cdecl \
13309lt_cv_sys_global_symbol_to_c_name_address \
13310lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13311SHELL \
13312ECHO \
13313lt_prog_compiler_no_builtin_flag \
13314lt_prog_compiler_wl \
13315lt_prog_compiler_pic \
13316lt_prog_compiler_static \
13317lt_cv_prog_compiler_c_o \
13318need_locks \
13319DSYMUTIL \
13320NMEDIT \
13321LIPO \
13322OTOOL \
13323OTOOL64 \
13324shrext_cmds \
13325export_dynamic_flag_spec \
13326whole_archive_flag_spec \
13327compiler_needs_object \
13328with_gnu_ld \
13329allow_undefined_flag \
13330no_undefined_flag \
13331hardcode_libdir_flag_spec \
13332hardcode_libdir_flag_spec_ld \
13333hardcode_libdir_separator \
13334fix_srcfile_path \
13335exclude_expsyms \
13336include_expsyms \
13337file_list_spec \
13338variables_saved_for_relink \
13339libname_spec \
13340library_names_spec \
13341soname_spec \
13342finish_eval \
13343old_striplib \
13344striplib; do
13345    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13346    *[\\\\\\\`\\"\\\$]*)
13347      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13348      ;;
13349    *)
13350      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13351      ;;
13352    esac
13353done
13354
13355# Double-quote double-evaled strings.
13356for var in reload_cmds \
13357old_postinstall_cmds \
13358old_postuninstall_cmds \
13359old_archive_cmds \
13360extract_expsyms_cmds \
13361old_archive_from_new_cmds \
13362old_archive_from_expsyms_cmds \
13363archive_cmds \
13364archive_expsym_cmds \
13365module_cmds \
13366module_expsym_cmds \
13367export_symbols_cmds \
13368prelink_cmds \
13369postinstall_cmds \
13370postuninstall_cmds \
13371finish_cmds \
13372sys_lib_search_path_spec \
13373sys_lib_dlsearch_path_spec; do
13374    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13375    *[\\\\\\\`\\"\\\$]*)
13376      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13377      ;;
13378    *)
13379      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13380      ;;
13381    esac
13382done
13383
13384# Fix-up fallback echo if it was mangled by the above quoting rules.
13385case \$lt_ECHO in
13386*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13387  ;;
13388esac
13389
13390ac_aux_dir='$ac_aux_dir'
13391xsi_shell='$xsi_shell'
13392lt_shell_append='$lt_shell_append'
13393
13394# See if we are running on zsh, and set the options which allow our
13395# commands through without removal of \ escapes INIT.
13396if test -n "\${ZSH_VERSION+set}" ; then
13397   setopt NO_GLOB_SUBST
13398fi
13399
13400
13401    PACKAGE='$PACKAGE'
13402    VERSION='$VERSION'
13403    TIMESTAMP='$TIMESTAMP'
13404    RM='$RM'
13405    ofile='$ofile'
13406
13407
13408
13409
13410_ACEOF
13411
13412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13413
13414# Handling of arguments.
13415for ac_config_target in $ac_config_targets
13416do
13417  case $ac_config_target in
13418    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13419    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13420    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13421    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13422    "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;;
13423
13424  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13425  esac
13426done
13427
13428
13429# If the user did not use the arguments to specify the items to instantiate,
13430# then the envvar interface is used.  Set only those that are not.
13431# We use the long form for the default assignment because of an extremely
13432# bizarre bug on SunOS 4.1.3.
13433if $ac_need_defaults; then
13434  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13435  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13436  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13437fi
13438
13439# Have a temporary directory for convenience.  Make it in the build tree
13440# simply because there is no reason against having it here, and in addition,
13441# creating and moving files from /tmp can sometimes cause problems.
13442# Hook for its removal unless debugging.
13443# Note that there is a small window in which the directory will not be cleaned:
13444# after its creation but before its name has been assigned to `$tmp'.
13445$debug ||
13446{
13447  tmp=
13448  trap 'exit_status=$?
13449  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13450' 0
13451  trap 'as_fn_exit 1' 1 2 13 15
13452}
13453# Create a (secure) tmp directory for tmp files.
13454
13455{
13456  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13457  test -n "$tmp" && test -d "$tmp"
13458}  ||
13459{
13460  tmp=./conf$$-$RANDOM
13461  (umask 077 && mkdir "$tmp")
13462} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13463
13464# Set up the scripts for CONFIG_FILES section.
13465# No need to generate them if there are no CONFIG_FILES.
13466# This happens for instance with `./config.status config.h'.
13467if test -n "$CONFIG_FILES"; then
13468
13469
13470ac_cr=`echo X | tr X '\015'`
13471# On cygwin, bash can eat \r inside `` if the user requested igncr.
13472# But we know of no other shell where ac_cr would be empty at this
13473# point, so we can use a bashism as a fallback.
13474if test "x$ac_cr" = x; then
13475  eval ac_cr=\$\'\\r\'
13476fi
13477ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13478if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13479  ac_cs_awk_cr='\r'
13480else
13481  ac_cs_awk_cr=$ac_cr
13482fi
13483
13484echo 'BEGIN {' >"$tmp/subs1.awk" &&
13485_ACEOF
13486
13487
13488{
13489  echo "cat >conf$$subs.awk <<_ACEOF" &&
13490  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13491  echo "_ACEOF"
13492} >conf$$subs.sh ||
13493  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13494ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13495ac_delim='%!_!# '
13496for ac_last_try in false false false false false :; do
13497  . ./conf$$subs.sh ||
13498    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13499
13500  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13501  if test $ac_delim_n = $ac_delim_num; then
13502    break
13503  elif $ac_last_try; then
13504    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13505  else
13506    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13507  fi
13508done
13509rm -f conf$$subs.sh
13510
13511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13512cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13513_ACEOF
13514sed -n '
13515h
13516s/^/S["/; s/!.*/"]=/
13517p
13518g
13519s/^[^!]*!//
13520:repl
13521t repl
13522s/'"$ac_delim"'$//
13523t delim
13524:nl
13525h
13526s/\(.\{148\}\)..*/\1/
13527t more1
13528s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13529p
13530n
13531b repl
13532:more1
13533s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13534p
13535g
13536s/.\{148\}//
13537t nl
13538:delim
13539h
13540s/\(.\{148\}\)..*/\1/
13541t more2
13542s/["\\]/\\&/g; s/^/"/; s/$/"/
13543p
13544b
13545:more2
13546s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13547p
13548g
13549s/.\{148\}//
13550t delim
13551' <conf$$subs.awk | sed '
13552/^[^""]/{
13553  N
13554  s/\n//
13555}
13556' >>$CONFIG_STATUS || ac_write_fail=1
13557rm -f conf$$subs.awk
13558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13559_ACAWK
13560cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13561  for (key in S) S_is_set[key] = 1
13562  FS = ""
13563
13564}
13565{
13566  line = $ 0
13567  nfields = split(line, field, "@")
13568  substed = 0
13569  len = length(field[1])
13570  for (i = 2; i < nfields; i++) {
13571    key = field[i]
13572    keylen = length(key)
13573    if (S_is_set[key]) {
13574      value = S[key]
13575      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13576      len += length(value) + length(field[++i])
13577      substed = 1
13578    } else
13579      len += 1 + keylen
13580  }
13581
13582  print line
13583}
13584
13585_ACAWK
13586_ACEOF
13587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13588if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13589  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13590else
13591  cat
13592fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13593  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13594_ACEOF
13595
13596# VPATH may cause trouble with some makes, so we remove $(srcdir),
13597# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13598# trailing colons and then remove the whole line if VPATH becomes empty
13599# (actually we leave an empty line to preserve line numbers).
13600if test "x$srcdir" = x.; then
13601  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13602s/:*\$(srcdir):*/:/
13603s/:*\${srcdir}:*/:/
13604s/:*@srcdir@:*/:/
13605s/^\([^=]*=[	 ]*\):*/\1/
13606s/:*$//
13607s/^[^=]*=[	 ]*$//
13608}'
13609fi
13610
13611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13612fi # test -n "$CONFIG_FILES"
13613
13614# Set up the scripts for CONFIG_HEADERS section.
13615# No need to generate them if there are no CONFIG_HEADERS.
13616# This happens for instance with `./config.status Makefile'.
13617if test -n "$CONFIG_HEADERS"; then
13618cat >"$tmp/defines.awk" <<\_ACAWK ||
13619BEGIN {
13620_ACEOF
13621
13622# Transform confdefs.h into an awk script `defines.awk', embedded as
13623# here-document in config.status, that substitutes the proper values into
13624# config.h.in to produce config.h.
13625
13626# Create a delimiter string that does not exist in confdefs.h, to ease
13627# handling of long lines.
13628ac_delim='%!_!# '
13629for ac_last_try in false false :; do
13630  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13631  if test -z "$ac_t"; then
13632    break
13633  elif $ac_last_try; then
13634    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13635  else
13636    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13637  fi
13638done
13639
13640# For the awk script, D is an array of macro values keyed by name,
13641# likewise P contains macro parameters if any.  Preserve backslash
13642# newline sequences.
13643
13644ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13645sed -n '
13646s/.\{148\}/&'"$ac_delim"'/g
13647t rset
13648:rset
13649s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13650t def
13651d
13652:def
13653s/\\$//
13654t bsnl
13655s/["\\]/\\&/g
13656s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13657D["\1"]=" \3"/p
13658s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13659d
13660:bsnl
13661s/["\\]/\\&/g
13662s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13663D["\1"]=" \3\\\\\\n"\\/p
13664t cont
13665s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13666t cont
13667d
13668:cont
13669n
13670s/.\{148\}/&'"$ac_delim"'/g
13671t clear
13672:clear
13673s/\\$//
13674t bsnlc
13675s/["\\]/\\&/g; s/^/"/; s/$/"/p
13676d
13677:bsnlc
13678s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13679b cont
13680' <confdefs.h | sed '
13681s/'"$ac_delim"'/"\\\
13682"/g' >>$CONFIG_STATUS || ac_write_fail=1
13683
13684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13685  for (key in D) D_is_set[key] = 1
13686  FS = ""
13687}
13688/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13689  line = \$ 0
13690  split(line, arg, " ")
13691  if (arg[1] == "#") {
13692    defundef = arg[2]
13693    mac1 = arg[3]
13694  } else {
13695    defundef = substr(arg[1], 2)
13696    mac1 = arg[2]
13697  }
13698  split(mac1, mac2, "(") #)
13699  macro = mac2[1]
13700  prefix = substr(line, 1, index(line, defundef) - 1)
13701  if (D_is_set[macro]) {
13702    # Preserve the white space surrounding the "#".
13703    print prefix "define", macro P[macro] D[macro]
13704    next
13705  } else {
13706    # Replace #undef with comments.  This is necessary, for example,
13707    # in the case of _POSIX_SOURCE, which is predefined and required
13708    # on some systems where configure will not decide to define it.
13709    if (defundef == "undef") {
13710      print "/*", prefix defundef, macro, "*/"
13711      next
13712    }
13713  }
13714}
13715{ print }
13716_ACAWK
13717_ACEOF
13718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13719  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13720fi # test -n "$CONFIG_HEADERS"
13721
13722
13723eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13724shift
13725for ac_tag
13726do
13727  case $ac_tag in
13728  :[FHLC]) ac_mode=$ac_tag; continue;;
13729  esac
13730  case $ac_mode$ac_tag in
13731  :[FHL]*:*);;
13732  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13733  :[FH]-) ac_tag=-:-;;
13734  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13735  esac
13736  ac_save_IFS=$IFS
13737  IFS=:
13738  set x $ac_tag
13739  IFS=$ac_save_IFS
13740  shift
13741  ac_file=$1
13742  shift
13743
13744  case $ac_mode in
13745  :L) ac_source=$1;;
13746  :[FH])
13747    ac_file_inputs=
13748    for ac_f
13749    do
13750      case $ac_f in
13751      -) ac_f="$tmp/stdin";;
13752      *) # Look for the file first in the build tree, then in the source tree
13753	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13754	 # because $ac_f cannot contain `:'.
13755	 test -f "$ac_f" ||
13756	   case $ac_f in
13757	   [\\/$]*) false;;
13758	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13759	   esac ||
13760	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13761      esac
13762      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13763      as_fn_append ac_file_inputs " '$ac_f'"
13764    done
13765
13766    # Let's still pretend it is `configure' which instantiates (i.e., don't
13767    # use $as_me), people would be surprised to read:
13768    #    /* config.h.  Generated by config.status.  */
13769    configure_input='Generated from '`
13770	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13771	`' by configure.'
13772    if test x"$ac_file" != x-; then
13773      configure_input="$ac_file.  $configure_input"
13774      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13775$as_echo "$as_me: creating $ac_file" >&6;}
13776    fi
13777    # Neutralize special characters interpreted by sed in replacement strings.
13778    case $configure_input in #(
13779    *\&* | *\|* | *\\* )
13780       ac_sed_conf_input=`$as_echo "$configure_input" |
13781       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13782    *) ac_sed_conf_input=$configure_input;;
13783    esac
13784
13785    case $ac_tag in
13786    *:-:* | *:-) cat >"$tmp/stdin" \
13787      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13788    esac
13789    ;;
13790  esac
13791
13792  ac_dir=`$as_dirname -- "$ac_file" ||
13793$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13794	 X"$ac_file" : 'X\(//\)[^/]' \| \
13795	 X"$ac_file" : 'X\(//\)$' \| \
13796	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13797$as_echo X"$ac_file" |
13798    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13799	    s//\1/
13800	    q
13801	  }
13802	  /^X\(\/\/\)[^/].*/{
13803	    s//\1/
13804	    q
13805	  }
13806	  /^X\(\/\/\)$/{
13807	    s//\1/
13808	    q
13809	  }
13810	  /^X\(\/\).*/{
13811	    s//\1/
13812	    q
13813	  }
13814	  s/.*/./; q'`
13815  as_dir="$ac_dir"; as_fn_mkdir_p
13816  ac_builddir=.
13817
13818case "$ac_dir" in
13819.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13820*)
13821  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13822  # A ".." for each directory in $ac_dir_suffix.
13823  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13824  case $ac_top_builddir_sub in
13825  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13826  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13827  esac ;;
13828esac
13829ac_abs_top_builddir=$ac_pwd
13830ac_abs_builddir=$ac_pwd$ac_dir_suffix
13831# for backward compatibility:
13832ac_top_builddir=$ac_top_build_prefix
13833
13834case $srcdir in
13835  .)  # We are building in place.
13836    ac_srcdir=.
13837    ac_top_srcdir=$ac_top_builddir_sub
13838    ac_abs_top_srcdir=$ac_pwd ;;
13839  [\\/]* | ?:[\\/]* )  # Absolute name.
13840    ac_srcdir=$srcdir$ac_dir_suffix;
13841    ac_top_srcdir=$srcdir
13842    ac_abs_top_srcdir=$srcdir ;;
13843  *) # Relative name.
13844    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13845    ac_top_srcdir=$ac_top_build_prefix$srcdir
13846    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13847esac
13848ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13849
13850
13851  case $ac_mode in
13852  :F)
13853  #
13854  # CONFIG_FILE
13855  #
13856
13857  case $INSTALL in
13858  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13859  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13860  esac
13861  ac_MKDIR_P=$MKDIR_P
13862  case $MKDIR_P in
13863  [\\/$]* | ?:[\\/]* ) ;;
13864  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13865  esac
13866_ACEOF
13867
13868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13869# If the template does not know about datarootdir, expand it.
13870# FIXME: This hack should be removed a few years after 2.60.
13871ac_datarootdir_hack=; ac_datarootdir_seen=
13872ac_sed_dataroot='
13873/datarootdir/ {
13874  p
13875  q
13876}
13877/@datadir@/p
13878/@docdir@/p
13879/@infodir@/p
13880/@localedir@/p
13881/@mandir@/p'
13882case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13883*datarootdir*) ac_datarootdir_seen=yes;;
13884*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13885  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13886$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13887_ACEOF
13888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13889  ac_datarootdir_hack='
13890  s&@datadir@&$datadir&g
13891  s&@docdir@&$docdir&g
13892  s&@infodir@&$infodir&g
13893  s&@localedir@&$localedir&g
13894  s&@mandir@&$mandir&g
13895  s&\\\${datarootdir}&$datarootdir&g' ;;
13896esac
13897_ACEOF
13898
13899# Neutralize VPATH when `$srcdir' = `.'.
13900# Shell code in configure.ac might set extrasub.
13901# FIXME: do we really want to maintain this feature?
13902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13903ac_sed_extra="$ac_vpsub
13904$extrasub
13905_ACEOF
13906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13907:t
13908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13909s|@configure_input@|$ac_sed_conf_input|;t t
13910s&@top_builddir@&$ac_top_builddir_sub&;t t
13911s&@top_build_prefix@&$ac_top_build_prefix&;t t
13912s&@srcdir@&$ac_srcdir&;t t
13913s&@abs_srcdir@&$ac_abs_srcdir&;t t
13914s&@top_srcdir@&$ac_top_srcdir&;t t
13915s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13916s&@builddir@&$ac_builddir&;t t
13917s&@abs_builddir@&$ac_abs_builddir&;t t
13918s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13919s&@INSTALL@&$ac_INSTALL&;t t
13920s&@MKDIR_P@&$ac_MKDIR_P&;t t
13921$ac_datarootdir_hack
13922"
13923eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13924  || as_fn_error "could not create $ac_file" "$LINENO" 5
13925
13926test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13927  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13928  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13930which seems to be undefined.  Please make sure it is defined." >&5
13931$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13932which seems to be undefined.  Please make sure it is defined." >&2;}
13933
13934  rm -f "$tmp/stdin"
13935  case $ac_file in
13936  -) cat "$tmp/out" && rm -f "$tmp/out";;
13937  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13938  esac \
13939  || as_fn_error "could not create $ac_file" "$LINENO" 5
13940 ;;
13941  :H)
13942  #
13943  # CONFIG_HEADER
13944  #
13945  if test x"$ac_file" != x-; then
13946    {
13947      $as_echo "/* $configure_input  */" \
13948      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13949    } >"$tmp/config.h" \
13950      || as_fn_error "could not create $ac_file" "$LINENO" 5
13951    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13952      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13953$as_echo "$as_me: $ac_file is unchanged" >&6;}
13954    else
13955      rm -f "$ac_file"
13956      mv "$tmp/config.h" "$ac_file" \
13957	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13958    fi
13959  else
13960    $as_echo "/* $configure_input  */" \
13961      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13962      || as_fn_error "could not create -" "$LINENO" 5
13963  fi
13964# Compute "$ac_file"'s index in $config_headers.
13965_am_arg="$ac_file"
13966_am_stamp_count=1
13967for _am_header in $config_headers :; do
13968  case $_am_header in
13969    $_am_arg | $_am_arg:* )
13970      break ;;
13971    * )
13972      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13973  esac
13974done
13975echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13976$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13977	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13978	 X"$_am_arg" : 'X\(//\)$' \| \
13979	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13980$as_echo X"$_am_arg" |
13981    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13982	    s//\1/
13983	    q
13984	  }
13985	  /^X\(\/\/\)[^/].*/{
13986	    s//\1/
13987	    q
13988	  }
13989	  /^X\(\/\/\)$/{
13990	    s//\1/
13991	    q
13992	  }
13993	  /^X\(\/\).*/{
13994	    s//\1/
13995	    q
13996	  }
13997	  s/.*/./; q'`/stamp-h$_am_stamp_count
13998 ;;
13999
14000  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14001$as_echo "$as_me: executing $ac_file commands" >&6;}
14002 ;;
14003  esac
14004
14005
14006  case $ac_file$ac_mode in
14007    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14008  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14009  # are listed without --file.  Let's play safe and only enable the eval
14010  # if we detect the quoting.
14011  case $CONFIG_FILES in
14012  *\'*) eval set x "$CONFIG_FILES" ;;
14013  *)   set x $CONFIG_FILES ;;
14014  esac
14015  shift
14016  for mf
14017  do
14018    # Strip MF so we end up with the name of the file.
14019    mf=`echo "$mf" | sed -e 's/:.*$//'`
14020    # Check whether this is an Automake generated Makefile or not.
14021    # We used to match only the files named `Makefile.in', but
14022    # some people rename them; so instead we look at the file content.
14023    # Grep'ing the first line is not enough: some people post-process
14024    # each Makefile.in and add a new line on top of each file to say so.
14025    # Grep'ing the whole file is not good either: AIX grep has a line
14026    # limit of 2048, but all sed's we know have understand at least 4000.
14027    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14028      dirpart=`$as_dirname -- "$mf" ||
14029$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14030	 X"$mf" : 'X\(//\)[^/]' \| \
14031	 X"$mf" : 'X\(//\)$' \| \
14032	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14033$as_echo X"$mf" |
14034    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14035	    s//\1/
14036	    q
14037	  }
14038	  /^X\(\/\/\)[^/].*/{
14039	    s//\1/
14040	    q
14041	  }
14042	  /^X\(\/\/\)$/{
14043	    s//\1/
14044	    q
14045	  }
14046	  /^X\(\/\).*/{
14047	    s//\1/
14048	    q
14049	  }
14050	  s/.*/./; q'`
14051    else
14052      continue
14053    fi
14054    # Extract the definition of DEPDIR, am__include, and am__quote
14055    # from the Makefile without running `make'.
14056    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14057    test -z "$DEPDIR" && continue
14058    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14059    test -z "am__include" && continue
14060    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14061    # When using ansi2knr, U may be empty or an underscore; expand it
14062    U=`sed -n 's/^U = //p' < "$mf"`
14063    # Find all dependency output files, they are included files with
14064    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14065    # simplest approach to changing $(DEPDIR) to its actual value in the
14066    # expansion.
14067    for file in `sed -n "
14068      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14069	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14070      # Make sure the directory exists.
14071      test -f "$dirpart/$file" && continue
14072      fdir=`$as_dirname -- "$file" ||
14073$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14074	 X"$file" : 'X\(//\)[^/]' \| \
14075	 X"$file" : 'X\(//\)$' \| \
14076	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14077$as_echo X"$file" |
14078    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14079	    s//\1/
14080	    q
14081	  }
14082	  /^X\(\/\/\)[^/].*/{
14083	    s//\1/
14084	    q
14085	  }
14086	  /^X\(\/\/\)$/{
14087	    s//\1/
14088	    q
14089	  }
14090	  /^X\(\/\).*/{
14091	    s//\1/
14092	    q
14093	  }
14094	  s/.*/./; q'`
14095      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14096      # echo "creating $dirpart/$file"
14097      echo '# dummy' > "$dirpart/$file"
14098    done
14099  done
14100}
14101 ;;
14102    "libtool":C)
14103
14104    # See if we are running on zsh, and set the options which allow our
14105    # commands through without removal of \ escapes.
14106    if test -n "${ZSH_VERSION+set}" ; then
14107      setopt NO_GLOB_SUBST
14108    fi
14109
14110    cfgfile="${ofile}T"
14111    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14112    $RM "$cfgfile"
14113
14114    cat <<_LT_EOF >> "$cfgfile"
14115#! $SHELL
14116
14117# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14118# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14119# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14120# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14121#
14122#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14123#                 2006, 2007, 2008 Free Software Foundation, Inc.
14124#   Written by Gordon Matzigkeit, 1996
14125#
14126#   This file is part of GNU Libtool.
14127#
14128# GNU Libtool is free software; you can redistribute it and/or
14129# modify it under the terms of the GNU General Public License as
14130# published by the Free Software Foundation; either version 2 of
14131# the License, or (at your option) any later version.
14132#
14133# As a special exception to the GNU General Public License,
14134# if you distribute this file as part of a program or library that
14135# is built using GNU Libtool, you may include this file under the
14136# same distribution terms that you use for the rest of that program.
14137#
14138# GNU Libtool is distributed in the hope that it will be useful,
14139# but WITHOUT ANY WARRANTY; without even the implied warranty of
14140# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14141# GNU General Public License for more details.
14142#
14143# You should have received a copy of the GNU General Public License
14144# along with GNU Libtool; see the file COPYING.  If not, a copy
14145# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14146# obtained by writing to the Free Software Foundation, Inc.,
14147# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14148
14149
14150# The names of the tagged configurations supported by this script.
14151available_tags=""
14152
14153# ### BEGIN LIBTOOL CONFIG
14154
14155# Assembler program.
14156AS=$AS
14157
14158# DLL creation program.
14159DLLTOOL=$DLLTOOL
14160
14161# Object dumper program.
14162OBJDUMP=$OBJDUMP
14163
14164# Which release of libtool.m4 was used?
14165macro_version=$macro_version
14166macro_revision=$macro_revision
14167
14168# Whether or not to build shared libraries.
14169build_libtool_libs=$enable_shared
14170
14171# Whether or not to build static libraries.
14172build_old_libs=$enable_static
14173
14174# What type of objects to build.
14175pic_mode=$pic_mode
14176
14177# Whether or not to optimize for fast installation.
14178fast_install=$enable_fast_install
14179
14180# The host system.
14181host_alias=$host_alias
14182host=$host
14183host_os=$host_os
14184
14185# The build system.
14186build_alias=$build_alias
14187build=$build
14188build_os=$build_os
14189
14190# A sed program that does not truncate output.
14191SED=$lt_SED
14192
14193# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14194Xsed="\$SED -e 1s/^X//"
14195
14196# A grep program that handles long lines.
14197GREP=$lt_GREP
14198
14199# An ERE matcher.
14200EGREP=$lt_EGREP
14201
14202# A literal string matcher.
14203FGREP=$lt_FGREP
14204
14205# A BSD- or MS-compatible name lister.
14206NM=$lt_NM
14207
14208# Whether we need soft or hard links.
14209LN_S=$lt_LN_S
14210
14211# What is the maximum length of a command?
14212max_cmd_len=$max_cmd_len
14213
14214# Object file suffix (normally "o").
14215objext=$ac_objext
14216
14217# Executable file suffix (normally "").
14218exeext=$exeext
14219
14220# whether the shell understands "unset".
14221lt_unset=$lt_unset
14222
14223# turn spaces into newlines.
14224SP2NL=$lt_lt_SP2NL
14225
14226# turn newlines into spaces.
14227NL2SP=$lt_lt_NL2SP
14228
14229# How to create reloadable object files.
14230reload_flag=$lt_reload_flag
14231reload_cmds=$lt_reload_cmds
14232
14233# Method to check whether dependent libraries are shared objects.
14234deplibs_check_method=$lt_deplibs_check_method
14235
14236# Command to use when deplibs_check_method == "file_magic".
14237file_magic_cmd=$lt_file_magic_cmd
14238
14239# The archiver.
14240AR=$lt_AR
14241AR_FLAGS=$lt_AR_FLAGS
14242
14243# A symbol stripping program.
14244STRIP=$lt_STRIP
14245
14246# Commands used to install an old-style archive.
14247RANLIB=$lt_RANLIB
14248old_postinstall_cmds=$lt_old_postinstall_cmds
14249old_postuninstall_cmds=$lt_old_postuninstall_cmds
14250
14251# A C compiler.
14252LTCC=$lt_CC
14253
14254# LTCC compiler flags.
14255LTCFLAGS=$lt_CFLAGS
14256
14257# Take the output of nm and produce a listing of raw symbols and C names.
14258global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14259
14260# Transform the output of nm in a proper C declaration.
14261global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14262
14263# Transform the output of nm in a C name address pair.
14264global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14265
14266# Transform the output of nm in a C name address pair when lib prefix is needed.
14267global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14268
14269# The name of the directory that contains temporary libtool files.
14270objdir=$objdir
14271
14272# Shell to use when invoking shell scripts.
14273SHELL=$lt_SHELL
14274
14275# An echo program that does not interpret backslashes.
14276ECHO=$lt_ECHO
14277
14278# Used to examine libraries when file_magic_cmd begins with "file".
14279MAGIC_CMD=$MAGIC_CMD
14280
14281# Must we lock files when doing compilation?
14282need_locks=$lt_need_locks
14283
14284# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14285DSYMUTIL=$lt_DSYMUTIL
14286
14287# Tool to change global to local symbols on Mac OS X.
14288NMEDIT=$lt_NMEDIT
14289
14290# Tool to manipulate fat objects and archives on Mac OS X.
14291LIPO=$lt_LIPO
14292
14293# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14294OTOOL=$lt_OTOOL
14295
14296# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14297OTOOL64=$lt_OTOOL64
14298
14299# Old archive suffix (normally "a").
14300libext=$libext
14301
14302# Shared library suffix (normally ".so").
14303shrext_cmds=$lt_shrext_cmds
14304
14305# The commands to extract the exported symbol list from a shared archive.
14306extract_expsyms_cmds=$lt_extract_expsyms_cmds
14307
14308# Variables whose values should be saved in libtool wrapper scripts and
14309# restored at link time.
14310variables_saved_for_relink=$lt_variables_saved_for_relink
14311
14312# Do we need the "lib" prefix for modules?
14313need_lib_prefix=$need_lib_prefix
14314
14315# Do we need a version for libraries?
14316need_version=$need_version
14317
14318# Library versioning type.
14319version_type=$version_type
14320
14321# Shared library runtime path variable.
14322runpath_var=$runpath_var
14323
14324# Shared library path variable.
14325shlibpath_var=$shlibpath_var
14326
14327# Is shlibpath searched before the hard-coded library search path?
14328shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14329
14330# Format of library name prefix.
14331libname_spec=$lt_libname_spec
14332
14333# List of archive names.  First name is the real one, the rest are links.
14334# The last name is the one that the linker finds with -lNAME
14335library_names_spec=$lt_library_names_spec
14336
14337# The coded name of the library, if different from the real name.
14338soname_spec=$lt_soname_spec
14339
14340# Command to use after installation of a shared archive.
14341postinstall_cmds=$lt_postinstall_cmds
14342
14343# Command to use after uninstallation of a shared archive.
14344postuninstall_cmds=$lt_postuninstall_cmds
14345
14346# Commands used to finish a libtool library installation in a directory.
14347finish_cmds=$lt_finish_cmds
14348
14349# As "finish_cmds", except a single script fragment to be evaled but
14350# not shown.
14351finish_eval=$lt_finish_eval
14352
14353# Whether we should hardcode library paths into libraries.
14354hardcode_into_libs=$hardcode_into_libs
14355
14356# Compile-time system search path for libraries.
14357sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14358
14359# Run-time system search path for libraries.
14360sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14361
14362# Whether dlopen is supported.
14363dlopen_support=$enable_dlopen
14364
14365# Whether dlopen of programs is supported.
14366dlopen_self=$enable_dlopen_self
14367
14368# Whether dlopen of statically linked programs is supported.
14369dlopen_self_static=$enable_dlopen_self_static
14370
14371# Commands to strip libraries.
14372old_striplib=$lt_old_striplib
14373striplib=$lt_striplib
14374
14375
14376# The linker used to build libraries.
14377LD=$lt_LD
14378
14379# Commands used to build an old-style archive.
14380old_archive_cmds=$lt_old_archive_cmds
14381
14382# A language specific compiler.
14383CC=$lt_compiler
14384
14385# Is the compiler the GNU compiler?
14386with_gcc=$GCC
14387
14388# Compiler flag to turn off builtin functions.
14389no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14390
14391# How to pass a linker flag through the compiler.
14392wl=$lt_lt_prog_compiler_wl
14393
14394# Additional compiler flags for building library objects.
14395pic_flag=$lt_lt_prog_compiler_pic
14396
14397# Compiler flag to prevent dynamic linking.
14398link_static_flag=$lt_lt_prog_compiler_static
14399
14400# Does compiler simultaneously support -c and -o options?
14401compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14402
14403# Whether or not to add -lc for building shared libraries.
14404build_libtool_need_lc=$archive_cmds_need_lc
14405
14406# Whether or not to disallow shared libs when runtime libs are static.
14407allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14408
14409# Compiler flag to allow reflexive dlopens.
14410export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14411
14412# Compiler flag to generate shared objects directly from archives.
14413whole_archive_flag_spec=$lt_whole_archive_flag_spec
14414
14415# Whether the compiler copes with passing no objects directly.
14416compiler_needs_object=$lt_compiler_needs_object
14417
14418# Create an old-style archive from a shared archive.
14419old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14420
14421# Create a temporary old-style archive to link instead of a shared archive.
14422old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14423
14424# Commands used to build a shared archive.
14425archive_cmds=$lt_archive_cmds
14426archive_expsym_cmds=$lt_archive_expsym_cmds
14427
14428# Commands used to build a loadable module if different from building
14429# a shared archive.
14430module_cmds=$lt_module_cmds
14431module_expsym_cmds=$lt_module_expsym_cmds
14432
14433# Whether we are building with GNU ld or not.
14434with_gnu_ld=$lt_with_gnu_ld
14435
14436# Flag that allows shared libraries with undefined symbols to be built.
14437allow_undefined_flag=$lt_allow_undefined_flag
14438
14439# Flag that enforces no undefined symbols.
14440no_undefined_flag=$lt_no_undefined_flag
14441
14442# Flag to hardcode \$libdir into a binary during linking.
14443# This must work even if \$libdir does not exist
14444hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14445
14446# If ld is used when linking, flag to hardcode \$libdir into a binary
14447# during linking.  This must work even if \$libdir does not exist.
14448hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14449
14450# Whether we need a single "-rpath" flag with a separated argument.
14451hardcode_libdir_separator=$lt_hardcode_libdir_separator
14452
14453# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14454# DIR into the resulting binary.
14455hardcode_direct=$hardcode_direct
14456
14457# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14458# DIR into the resulting binary and the resulting library dependency is
14459# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14460# library is relocated.
14461hardcode_direct_absolute=$hardcode_direct_absolute
14462
14463# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14464# into the resulting binary.
14465hardcode_minus_L=$hardcode_minus_L
14466
14467# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14468# into the resulting binary.
14469hardcode_shlibpath_var=$hardcode_shlibpath_var
14470
14471# Set to "yes" if building a shared library automatically hardcodes DIR
14472# into the library and all subsequent libraries and executables linked
14473# against it.
14474hardcode_automatic=$hardcode_automatic
14475
14476# Set to yes if linker adds runtime paths of dependent libraries
14477# to runtime path list.
14478inherit_rpath=$inherit_rpath
14479
14480# Whether libtool must link a program against all its dependency libraries.
14481link_all_deplibs=$link_all_deplibs
14482
14483# Fix the shell variable \$srcfile for the compiler.
14484fix_srcfile_path=$lt_fix_srcfile_path
14485
14486# Set to "yes" if exported symbols are required.
14487always_export_symbols=$always_export_symbols
14488
14489# The commands to list exported symbols.
14490export_symbols_cmds=$lt_export_symbols_cmds
14491
14492# Symbols that should not be listed in the preloaded symbols.
14493exclude_expsyms=$lt_exclude_expsyms
14494
14495# Symbols that must always be exported.
14496include_expsyms=$lt_include_expsyms
14497
14498# Commands necessary for linking programs (against libraries) with templates.
14499prelink_cmds=$lt_prelink_cmds
14500
14501# Specify filename containing input files.
14502file_list_spec=$lt_file_list_spec
14503
14504# How to hardcode a shared library path into an executable.
14505hardcode_action=$hardcode_action
14506
14507# ### END LIBTOOL CONFIG
14508
14509_LT_EOF
14510
14511  case $host_os in
14512  aix3*)
14513    cat <<\_LT_EOF >> "$cfgfile"
14514# AIX sometimes has problems with the GCC collect2 program.  For some
14515# reason, if we set the COLLECT_NAMES environment variable, the problems
14516# vanish in a puff of smoke.
14517if test "X${COLLECT_NAMES+set}" != Xset; then
14518  COLLECT_NAMES=
14519  export COLLECT_NAMES
14520fi
14521_LT_EOF
14522    ;;
14523  esac
14524
14525
14526ltmain="$ac_aux_dir/ltmain.sh"
14527
14528
14529  # We use sed instead of cat because bash on DJGPP gets confused if
14530  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14531  # text mode, it properly converts lines to CR/LF.  This bash problem
14532  # is reportedly fixed, but why not run on old versions too?
14533  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14534    || (rm -f "$cfgfile"; exit 1)
14535
14536  case $xsi_shell in
14537  yes)
14538    cat << \_LT_EOF >> "$cfgfile"
14539
14540# func_dirname file append nondir_replacement
14541# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14542# otherwise set result to NONDIR_REPLACEMENT.
14543func_dirname ()
14544{
14545  case ${1} in
14546    */*) func_dirname_result="${1%/*}${2}" ;;
14547    *  ) func_dirname_result="${3}" ;;
14548  esac
14549}
14550
14551# func_basename file
14552func_basename ()
14553{
14554  func_basename_result="${1##*/}"
14555}
14556
14557# func_dirname_and_basename file append nondir_replacement
14558# perform func_basename and func_dirname in a single function
14559# call:
14560#   dirname:  Compute the dirname of FILE.  If nonempty,
14561#             add APPEND to the result, otherwise set result
14562#             to NONDIR_REPLACEMENT.
14563#             value returned in "$func_dirname_result"
14564#   basename: Compute filename of FILE.
14565#             value retuned in "$func_basename_result"
14566# Implementation must be kept synchronized with func_dirname
14567# and func_basename. For efficiency, we do not delegate to
14568# those functions but instead duplicate the functionality here.
14569func_dirname_and_basename ()
14570{
14571  case ${1} in
14572    */*) func_dirname_result="${1%/*}${2}" ;;
14573    *  ) func_dirname_result="${3}" ;;
14574  esac
14575  func_basename_result="${1##*/}"
14576}
14577
14578# func_stripname prefix suffix name
14579# strip PREFIX and SUFFIX off of NAME.
14580# PREFIX and SUFFIX must not contain globbing or regex special
14581# characters, hashes, percent signs, but SUFFIX may contain a leading
14582# dot (in which case that matches only a dot).
14583func_stripname ()
14584{
14585  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14586  # positional parameters, so assign one to ordinary parameter first.
14587  func_stripname_result=${3}
14588  func_stripname_result=${func_stripname_result#"${1}"}
14589  func_stripname_result=${func_stripname_result%"${2}"}
14590}
14591
14592# func_opt_split
14593func_opt_split ()
14594{
14595  func_opt_split_opt=${1%%=*}
14596  func_opt_split_arg=${1#*=}
14597}
14598
14599# func_lo2o object
14600func_lo2o ()
14601{
14602  case ${1} in
14603    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14604    *)    func_lo2o_result=${1} ;;
14605  esac
14606}
14607
14608# func_xform libobj-or-source
14609func_xform ()
14610{
14611  func_xform_result=${1%.*}.lo
14612}
14613
14614# func_arith arithmetic-term...
14615func_arith ()
14616{
14617  func_arith_result=$(( $* ))
14618}
14619
14620# func_len string
14621# STRING may not start with a hyphen.
14622func_len ()
14623{
14624  func_len_result=${#1}
14625}
14626
14627_LT_EOF
14628    ;;
14629  *) # Bourne compatible functions.
14630    cat << \_LT_EOF >> "$cfgfile"
14631
14632# func_dirname file append nondir_replacement
14633# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14634# otherwise set result to NONDIR_REPLACEMENT.
14635func_dirname ()
14636{
14637  # Extract subdirectory from the argument.
14638  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14639  if test "X$func_dirname_result" = "X${1}"; then
14640    func_dirname_result="${3}"
14641  else
14642    func_dirname_result="$func_dirname_result${2}"
14643  fi
14644}
14645
14646# func_basename file
14647func_basename ()
14648{
14649  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14650}
14651
14652
14653# func_stripname prefix suffix name
14654# strip PREFIX and SUFFIX off of NAME.
14655# PREFIX and SUFFIX must not contain globbing or regex special
14656# characters, hashes, percent signs, but SUFFIX may contain a leading
14657# dot (in which case that matches only a dot).
14658# func_strip_suffix prefix name
14659func_stripname ()
14660{
14661  case ${2} in
14662    .*) func_stripname_result=`$ECHO "X${3}" \
14663           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14664    *)  func_stripname_result=`$ECHO "X${3}" \
14665           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14666  esac
14667}
14668
14669# sed scripts:
14670my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14671my_sed_long_arg='1s/^-[^=]*=//'
14672
14673# func_opt_split
14674func_opt_split ()
14675{
14676  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14677  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14678}
14679
14680# func_lo2o object
14681func_lo2o ()
14682{
14683  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14684}
14685
14686# func_xform libobj-or-source
14687func_xform ()
14688{
14689  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14690}
14691
14692# func_arith arithmetic-term...
14693func_arith ()
14694{
14695  func_arith_result=`expr "$@"`
14696}
14697
14698# func_len string
14699# STRING may not start with a hyphen.
14700func_len ()
14701{
14702  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14703}
14704
14705_LT_EOF
14706esac
14707
14708case $lt_shell_append in
14709  yes)
14710    cat << \_LT_EOF >> "$cfgfile"
14711
14712# func_append var value
14713# Append VALUE to the end of shell variable VAR.
14714func_append ()
14715{
14716  eval "$1+=\$2"
14717}
14718_LT_EOF
14719    ;;
14720  *)
14721    cat << \_LT_EOF >> "$cfgfile"
14722
14723# func_append var value
14724# Append VALUE to the end of shell variable VAR.
14725func_append ()
14726{
14727  eval "$1=\$$1\$2"
14728}
14729
14730_LT_EOF
14731    ;;
14732  esac
14733
14734
14735  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14736    || (rm -f "$cfgfile"; exit 1)
14737
14738  mv -f "$cfgfile" "$ofile" ||
14739    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14740  chmod +x "$ofile"
14741
14742 ;;
14743
14744  esac
14745done # for ac_tag
14746
14747
14748as_fn_exit 0
14749_ACEOF
14750ac_clean_files=$ac_clean_files_save
14751
14752test $ac_write_fail = 0 ||
14753  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14754
14755
14756# configure is writing to config.log, and then calls config.status.
14757# config.status does its own redirection, appending to config.log.
14758# Unfortunately, on DOS this fails, as config.log is still kept open
14759# by configure, so config.status won't be able to write to it; its
14760# output is simply discarded.  So we exec the FD to /dev/null,
14761# effectively closing config.log, so it can be properly (re)opened and
14762# appended to by config.status.  When coming back to configure, we
14763# need to make the FD available again.
14764if test "$no_create" != yes; then
14765  ac_cs_success=:
14766  ac_config_status_args=
14767  test "$silent" = yes &&
14768    ac_config_status_args="$ac_config_status_args --quiet"
14769  exec 5>/dev/null
14770  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14771  exec 5>>config.log
14772  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14773  # would make configure fail if this is the last instruction.
14774  $ac_cs_success || as_fn_exit $?
14775fi
14776if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14777  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14778$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14779fi
14780
14781