configure revision e120bd27
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXmu 1.1.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548as_awk_strverscmp='
549  # Use only awk features that work with 7th edition Unix awk (1978).
550  # My, what an old awk you have, Mr. Solaris!
551  END {
552    while (length(v1) && length(v2)) {
553      # Set d1 to be the next thing to compare from v1, and likewise for d2.
554      # Normally this is a single character, but if v1 and v2 contain digits,
555      # compare them as integers and fractions as strverscmp does.
556      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
557	# Split v1 and v2 into their leading digit string components d1 and d2,
558	# and advance v1 and v2 past the leading digit strings.
559	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
560	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
561	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
562	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
563	if (d1 ~ /^0/) {
564	  if (d2 ~ /^0/) {
565	    # Compare two fractions.
566	    while (d1 ~ /^0/ && d2 ~ /^0/) {
567	      d1 = substr(d1, 2); len1--
568	      d2 = substr(d2, 2); len2--
569	    }
570	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
571	      # The two components differ in length, and the common prefix
572	      # contains only leading zeros.  Consider the longer to be less.
573	      d1 = -len1
574	      d2 = -len2
575	    } else {
576	      # Otherwise, compare as strings.
577	      d1 = "x" d1
578	      d2 = "x" d2
579	    }
580	  } else {
581	    # A fraction is less than an integer.
582	    exit 1
583	  }
584	} else {
585	  if (d2 ~ /^0/) {
586	    # An integer is greater than a fraction.
587	    exit 2
588	  } else {
589	    # Compare two integers.
590	    d1 += 0
591	    d2 += 0
592	  }
593	}
594      } else {
595	# The normal case, without worrying about digits.
596	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
597	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
598      }
599      if (d1 < d2) exit 1
600      if (d1 > d2) exit 2
601    }
602    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
603    # which mishandles some comparisons of empty strings to integers.
604    if (length(v2)) exit 1
605    if (length(v1)) exit 2
606  }
607'
608SHELL=${CONFIG_SHELL-/bin/sh}
609
610
611test -n "$DJDIR" || exec 7<&0 </dev/null
612exec 6>&1
613
614# Name of the host.
615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616# so uname gets run too.
617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619#
620# Initializations.
621#
622ac_default_prefix=/usr/local
623ac_clean_files=
624ac_config_libobj_dir=.
625LIBOBJS=
626cross_compiling=no
627subdirs=
628MFLAGS=
629MAKEFLAGS=
630
631# Identity of this package.
632PACKAGE_NAME='libXmu'
633PACKAGE_TARNAME='libXmu'
634PACKAGE_VERSION='1.1.0'
635PACKAGE_STRING='libXmu 1.1.0'
636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637PACKAGE_URL=''
638
639ac_unique_file="Makefile.am"
640# Factoring default headers for most tests.
641ac_includes_default="\
642#include <stdio.h>
643#ifdef HAVE_SYS_TYPES_H
644# include <sys/types.h>
645#endif
646#ifdef HAVE_SYS_STAT_H
647# include <sys/stat.h>
648#endif
649#ifdef STDC_HEADERS
650# include <stdlib.h>
651# include <stddef.h>
652#else
653# ifdef HAVE_STDLIB_H
654#  include <stdlib.h>
655# endif
656#endif
657#ifdef HAVE_STRING_H
658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659#  include <memory.h>
660# endif
661# include <string.h>
662#endif
663#ifdef HAVE_STRINGS_H
664# include <strings.h>
665#endif
666#ifdef HAVE_INTTYPES_H
667# include <inttypes.h>
668#endif
669#ifdef HAVE_STDINT_H
670# include <stdint.h>
671#endif
672#ifdef HAVE_UNISTD_H
673# include <unistd.h>
674#endif"
675
676ac_subst_vars='am__EXEEXT_FALSE
677am__EXEEXT_TRUE
678LTLIBOBJS
679LIBOBJS
680LINTLIBUU
681MAKE_LINT_LIB_FALSE
682MAKE_LINT_LIB_TRUE
683LINTLIB
684LINT_FALSE
685LINT_TRUE
686LINT_FLAGS
687LINT
688HAS_SNPRINTF
689XMUU_LIBS
690XMUU_CFLAGS
691XMU_LIBS
692XMU_CFLAGS
693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698RANLIB
699AR
700OBJDUMP
701LN_S
702NM
703ac_ct_DUMPBIN
704DUMPBIN
705LD
706FGREP
707LIBTOOL
708HAVE_STYLESHEETS_FALSE
709HAVE_STYLESHEETS_TRUE
710XSL_STYLESHEET
711STYLESHEET_SRCDIR
712XORG_SGML_PATH
713HAVE_FOP_FALSE
714HAVE_FOP_TRUE
715FOP
716HAVE_XMLTO_FALSE
717HAVE_XMLTO_TRUE
718HAVE_XMLTO_TEXT_FALSE
719HAVE_XMLTO_TEXT_TRUE
720XMLTO
721ENABLE_DOCS_FALSE
722ENABLE_DOCS_TRUE
723AM_BACKSLASH
724AM_DEFAULT_VERBOSITY
725MAN_SUBSTS
726XORG_MAN_PAGE
727ADMIN_MAN_DIR
728DRIVER_MAN_DIR
729MISC_MAN_DIR
730FILE_MAN_DIR
731LIB_MAN_DIR
732APP_MAN_DIR
733ADMIN_MAN_SUFFIX
734DRIVER_MAN_SUFFIX
735MISC_MAN_SUFFIX
736FILE_MAN_SUFFIX
737LIB_MAN_SUFFIX
738APP_MAN_SUFFIX
739SED
740host_os
741host_vendor
742host_cpu
743host
744build_os
745build_vendor
746build_cpu
747build
748INSTALL_CMD
749PKG_CONFIG
750CHANGELOG_CMD
751CWARNFLAGS
752EGREP
753GREP
754CPP
755am__fastdepCC_FALSE
756am__fastdepCC_TRUE
757CCDEPMODE
758AMDEPBACKSLASH
759AMDEP_FALSE
760AMDEP_TRUE
761am__quote
762am__include
763DEPDIR
764OBJEXT
765EXEEXT
766ac_ct_CC
767CPPFLAGS
768LDFLAGS
769CFLAGS
770CC
771MAINT
772MAINTAINER_MODE_FALSE
773MAINTAINER_MODE_TRUE
774am__untar
775am__tar
776AMTAR
777am__leading_dot
778SET_MAKE
779AWK
780mkdir_p
781MKDIR_P
782INSTALL_STRIP_PROGRAM
783STRIP
784install_sh
785MAKEINFO
786AUTOHEADER
787AUTOMAKE
788AUTOCONF
789ACLOCAL
790VERSION
791PACKAGE
792CYGPATH_W
793am__isrc
794INSTALL_DATA
795INSTALL_SCRIPT
796INSTALL_PROGRAM
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
816localstatedir
817sharedstatedir
818sysconfdir
819datadir
820datarootdir
821libexecdir
822sbindir
823bindir
824program_transform_name
825prefix
826exec_prefix
827PACKAGE_URL
828PACKAGE_BUGREPORT
829PACKAGE_STRING
830PACKAGE_VERSION
831PACKAGE_TARNAME
832PACKAGE_NAME
833PATH_SEPARATOR
834SHELL'
835ac_subst_files=''
836ac_user_opts='
837enable_option_checking
838enable_maintainer_mode
839enable_dependency_tracking
840enable_strict_compilation
841enable_silent_rules
842enable_docs
843with_xmlto
844with_fop
845enable_shared
846enable_static
847with_pic
848enable_fast_install
849with_gnu_ld
850enable_libtool_lock
851enable_unix_transport
852enable_tcp_transport
853enable_ipv6
854enable_local_transport
855with_lint
856enable_lint_library
857'
858      ac_precious_vars='build_alias
859host_alias
860target_alias
861CC
862CFLAGS
863LDFLAGS
864LIBS
865CPPFLAGS
866CPP
867PKG_CONFIG
868XMLTO
869FOP
870XMU_CFLAGS
871XMU_LIBS
872XMUU_CFLAGS
873XMUU_LIBS
874LINT
875LINT_FLAGS'
876
877
878# Initialize some variables set by options.
879ac_init_help=
880ac_init_version=false
881ac_unrecognized_opts=
882ac_unrecognized_sep=
883# The variables have the same names as the options, with
884# dashes changed to underlines.
885cache_file=/dev/null
886exec_prefix=NONE
887no_create=
888no_recursion=
889prefix=NONE
890program_prefix=NONE
891program_suffix=NONE
892program_transform_name=s,x,x,
893silent=
894site=
895srcdir=
896verbose=
897x_includes=NONE
898x_libraries=NONE
899
900# Installation directory options.
901# These are left unexpanded so users can "make install exec_prefix=/foo"
902# and all the variables that are supposed to be based on exec_prefix
903# by default will actually change.
904# Use braces instead of parens because sh, perl, etc. also accept them.
905# (The list follows the same order as the GNU Coding Standards.)
906bindir='${exec_prefix}/bin'
907sbindir='${exec_prefix}/sbin'
908libexecdir='${exec_prefix}/libexec'
909datarootdir='${prefix}/share'
910datadir='${datarootdir}'
911sysconfdir='${prefix}/etc'
912sharedstatedir='${prefix}/com'
913localstatedir='${prefix}/var'
914includedir='${prefix}/include'
915oldincludedir='/usr/include'
916docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
917infodir='${datarootdir}/info'
918htmldir='${docdir}'
919dvidir='${docdir}'
920pdfdir='${docdir}'
921psdir='${docdir}'
922libdir='${exec_prefix}/lib'
923localedir='${datarootdir}/locale'
924mandir='${datarootdir}/man'
925
926ac_prev=
927ac_dashdash=
928for ac_option
929do
930  # If the previous option needs an argument, assign it.
931  if test -n "$ac_prev"; then
932    eval $ac_prev=\$ac_option
933    ac_prev=
934    continue
935  fi
936
937  case $ac_option in
938  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939  *=)   ac_optarg= ;;
940  *)    ac_optarg=yes ;;
941  esac
942
943  # Accept the important Cygnus configure options, so we can diagnose typos.
944
945  case $ac_dashdash$ac_option in
946  --)
947    ac_dashdash=yes ;;
948
949  -bindir | --bindir | --bindi | --bind | --bin | --bi)
950    ac_prev=bindir ;;
951  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952    bindir=$ac_optarg ;;
953
954  -build | --build | --buil | --bui | --bu)
955    ac_prev=build_alias ;;
956  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957    build_alias=$ac_optarg ;;
958
959  -cache-file | --cache-file | --cache-fil | --cache-fi \
960  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961    ac_prev=cache_file ;;
962  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964    cache_file=$ac_optarg ;;
965
966  --config-cache | -C)
967    cache_file=config.cache ;;
968
969  -datadir | --datadir | --datadi | --datad)
970    ac_prev=datadir ;;
971  -datadir=* | --datadir=* | --datadi=* | --datad=*)
972    datadir=$ac_optarg ;;
973
974  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975  | --dataroo | --dataro | --datar)
976    ac_prev=datarootdir ;;
977  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979    datarootdir=$ac_optarg ;;
980
981  -disable-* | --disable-*)
982    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983    # Reject names that are not valid shell variable names.
984    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985      as_fn_error $? "invalid feature name: $ac_useropt"
986    ac_useropt_orig=$ac_useropt
987    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988    case $ac_user_opts in
989      *"
990"enable_$ac_useropt"
991"*) ;;
992      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993	 ac_unrecognized_sep=', ';;
994    esac
995    eval enable_$ac_useropt=no ;;
996
997  -docdir | --docdir | --docdi | --doc | --do)
998    ac_prev=docdir ;;
999  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000    docdir=$ac_optarg ;;
1001
1002  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003    ac_prev=dvidir ;;
1004  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005    dvidir=$ac_optarg ;;
1006
1007  -enable-* | --enable-*)
1008    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009    # Reject names that are not valid shell variable names.
1010    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011      as_fn_error $? "invalid feature name: $ac_useropt"
1012    ac_useropt_orig=$ac_useropt
1013    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014    case $ac_user_opts in
1015      *"
1016"enable_$ac_useropt"
1017"*) ;;
1018      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019	 ac_unrecognized_sep=', ';;
1020    esac
1021    eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: $ac_useropt"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=\$ac_optarg ;;
1226
1227  -without-* | --without-*)
1228    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231      as_fn_error $? "invalid package name: $ac_useropt"
1232    ac_useropt_orig=$ac_useropt
1233    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234    case $ac_user_opts in
1235      *"
1236"with_$ac_useropt"
1237"*) ;;
1238      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239	 ac_unrecognized_sep=', ';;
1240    esac
1241    eval with_$ac_useropt=no ;;
1242
1243  --x)
1244    # Obsolete; use --with-x.
1245    with_x=yes ;;
1246
1247  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248  | --x-incl | --x-inc | --x-in | --x-i)
1249    ac_prev=x_includes ;;
1250  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252    x_includes=$ac_optarg ;;
1253
1254  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256    ac_prev=x_libraries ;;
1257  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259    x_libraries=$ac_optarg ;;
1260
1261  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262Try \`$0 --help' for more information"
1263    ;;
1264
1265  *=*)
1266    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267    # Reject names that are not valid shell variable names.
1268    case $ac_envvar in #(
1269      '' | [0-9]* | *[!_$as_cr_alnum]* )
1270      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271    esac
1272    eval $ac_envvar=\$ac_optarg
1273    export $ac_envvar ;;
1274
1275  *)
1276    # FIXME: should be removed in autoconf 3.0.
1277    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281    ;;
1282
1283  esac
1284done
1285
1286if test -n "$ac_prev"; then
1287  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288  as_fn_error $? "missing argument to $ac_option"
1289fi
1290
1291if test -n "$ac_unrecognized_opts"; then
1292  case $enable_option_checking in
1293    no) ;;
1294    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296  esac
1297fi
1298
1299# Check all directory arguments for consistency.
1300for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301		datadir sysconfdir sharedstatedir localstatedir includedir \
1302		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303		libdir localedir mandir
1304do
1305  eval ac_val=\$$ac_var
1306  # Remove trailing slashes.
1307  case $ac_val in
1308    */ )
1309      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310      eval $ac_var=\$ac_val;;
1311  esac
1312  # Be sure to have absolute directory names.
1313  case $ac_val in
1314    [\\/$]* | ?:[\\/]* )  continue;;
1315    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316  esac
1317  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318done
1319
1320# There might be people who depend on the old broken behavior: `$host'
1321# used to hold the argument of --host etc.
1322# FIXME: To remove some day.
1323build=$build_alias
1324host=$host_alias
1325target=$target_alias
1326
1327# FIXME: To remove some day.
1328if test "x$host_alias" != x; then
1329  if test "x$build_alias" = x; then
1330    cross_compiling=maybe
1331    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1332    If a cross compiler is detected then cross compile mode will be used" >&2
1333  elif test "x$build_alias" != "x$host_alias"; then
1334    cross_compiling=yes
1335  fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347  as_fn_error $? "working directory cannot be determined"
1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349  as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354  ac_srcdir_defaulted=yes
1355  # Try the directory containing this script, then the parent directory.
1356  ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358	 X"$as_myself" : 'X\(//\)[^/]' \| \
1359	 X"$as_myself" : 'X\(//\)$' \| \
1360	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361$as_echo X"$as_myself" |
1362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\/\)[^/].*/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\/\)$/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\).*/{
1375	    s//\1/
1376	    q
1377	  }
1378	  s/.*/./; q'`
1379  srcdir=$ac_confdir
1380  if test ! -r "$srcdir/$ac_unique_file"; then
1381    srcdir=..
1382  fi
1383else
1384  ac_srcdir_defaulted=no
1385fi
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
1392	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393	pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396  srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404for ac_var in $ac_precious_vars; do
1405  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_env_${ac_var}_value=\$${ac_var}
1407  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409done
1410
1411#
1412# Report the --help message.
1413#
1414if test "$ac_init_help" = "long"; then
1415  # Omit some internal or obsolete options to make the list less imposing.
1416  # This message is too long to be a string in the A/UX 3.1 sh.
1417  cat <<_ACEOF
1418\`configure' configures libXmu 1.1.0 to adapt to many kinds of systems.
1419
1420Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425Defaults for the options are specified in brackets.
1426
1427Configuration:
1428  -h, --help              display this help and exit
1429      --help=short        display options specific to this package
1430      --help=recursive    display the short help of all the included packages
1431  -V, --version           display version information and exit
1432  -q, --quiet, --silent   do not print \`checking ...' messages
1433      --cache-file=FILE   cache test results in FILE [disabled]
1434  -C, --config-cache      alias for \`--cache-file=config.cache'
1435  -n, --no-create         do not create output files
1436      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438Installation directories:
1439  --prefix=PREFIX         install architecture-independent files in PREFIX
1440                          [$ac_default_prefix]
1441  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                          [PREFIX]
1443
1444By default, \`make install' will install all the files in
1445\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447for instance \`--prefix=\$HOME'.
1448
1449For better control, use the options below.
1450
1451Fine tuning of the installation directories:
1452  --bindir=DIR            user executables [EPREFIX/bin]
1453  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454  --libexecdir=DIR        program executables [EPREFIX/libexec]
1455  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458  --libdir=DIR            object code libraries [EPREFIX/lib]
1459  --includedir=DIR        C header files [PREFIX/include]
1460  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463  --infodir=DIR           info documentation [DATAROOTDIR/info]
1464  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465  --mandir=DIR            man documentation [DATAROOTDIR/man]
1466  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXmu]
1467  --htmldir=DIR           html documentation [DOCDIR]
1468  --dvidir=DIR            dvi documentation [DOCDIR]
1469  --pdfdir=DIR            pdf documentation [DOCDIR]
1470  --psdir=DIR             ps documentation [DOCDIR]
1471_ACEOF
1472
1473  cat <<\_ACEOF
1474
1475Program names:
1476  --program-prefix=PREFIX            prepend PREFIX to installed program names
1477  --program-suffix=SUFFIX            append SUFFIX to installed program names
1478  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1479
1480System types:
1481  --build=BUILD     configure for building on BUILD [guessed]
1482  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483_ACEOF
1484fi
1485
1486if test -n "$ac_init_help"; then
1487  case $ac_init_help in
1488     short | recursive ) echo "Configuration of libXmu 1.1.0:";;
1489   esac
1490  cat <<\_ACEOF
1491
1492Optional Features:
1493  --disable-option-checking  ignore unrecognized --enable/--with options
1494  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1495  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1496  --enable-maintainer-mode  enable make rules and dependencies not useful
1497			  (and sometimes confusing) to the casual installer
1498  --disable-dependency-tracking  speeds up one-time build
1499  --enable-dependency-tracking   do not reject slow dependency extractors
1500  --enable-strict-compilation
1501                          Enable all warnings from compiler and make them
1502                          errors (default: disabled)
1503  --enable-silent-rules          less verbose build output (undo: `make V=1')
1504  --disable-silent-rules         verbose build output (undo: `make V=0')
1505  --enable-docs           Enable building the documentation (yes: yes)
1506  --enable-shared[=PKGS]  build shared libraries [default=yes]
1507  --enable-static[=PKGS]  build static libraries [default=yes]
1508  --enable-fast-install[=PKGS]
1509                          optimize for fast installation [default=yes]
1510  --disable-libtool-lock  avoid locking (might break parallel builds)
1511  --enable-unix-transport Enable UNIX domain socket transport
1512  --enable-tcp-transport  Enable TCP socket transport
1513  --enable-ipv6           Enable IPv6 support
1514  --enable-local-transport
1515                          Enable os-specific local transport
1516  --enable-lint-library   Create lint library (default: disabled)
1517
1518Optional Packages:
1519  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521  --with-xmlto            Use xmlto to regenerate documentation (default:
1522                          auto)
1523  --with-fop              Use fop to regenerate documentation (default: auto)
1524  --with-pic              try to use only PIC/non-PIC objects [default=use
1525                          both]
1526  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1527  --with-lint             Use a lint-style source code checker (default:
1528                          disabled)
1529
1530Some influential environment variables:
1531  CC          C compiler command
1532  CFLAGS      C compiler flags
1533  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1534              nonstandard directory <lib dir>
1535  LIBS        libraries to pass to the linker, e.g. -l<library>
1536  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1537              you have headers in a nonstandard directory <include dir>
1538  CPP         C preprocessor
1539  PKG_CONFIG  path to pkg-config utility
1540  XMLTO       Path to xmlto command
1541  FOP         Path to fop command
1542  XMU_CFLAGS  C compiler flags for XMU, overriding pkg-config
1543  XMU_LIBS    linker flags for XMU, overriding pkg-config
1544  XMUU_CFLAGS C compiler flags for XMUU, overriding pkg-config
1545  XMUU_LIBS   linker flags for XMUU, overriding pkg-config
1546  LINT        Path to a lint-style command
1547  LINT_FLAGS  Flags for the lint-style command
1548
1549Use these variables to override the choices made by `configure' or to help
1550it to find libraries and programs with nonstandard names/locations.
1551
1552Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1553_ACEOF
1554ac_status=$?
1555fi
1556
1557if test "$ac_init_help" = "recursive"; then
1558  # If there are subdirs, report their specific --help.
1559  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560    test -d "$ac_dir" ||
1561      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562      continue
1563    ac_builddir=.
1564
1565case "$ac_dir" in
1566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567*)
1568  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569  # A ".." for each directory in $ac_dir_suffix.
1570  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571  case $ac_top_builddir_sub in
1572  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574  esac ;;
1575esac
1576ac_abs_top_builddir=$ac_pwd
1577ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578# for backward compatibility:
1579ac_top_builddir=$ac_top_build_prefix
1580
1581case $srcdir in
1582  .)  # We are building in place.
1583    ac_srcdir=.
1584    ac_top_srcdir=$ac_top_builddir_sub
1585    ac_abs_top_srcdir=$ac_pwd ;;
1586  [\\/]* | ?:[\\/]* )  # Absolute name.
1587    ac_srcdir=$srcdir$ac_dir_suffix;
1588    ac_top_srcdir=$srcdir
1589    ac_abs_top_srcdir=$srcdir ;;
1590  *) # Relative name.
1591    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592    ac_top_srcdir=$ac_top_build_prefix$srcdir
1593    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594esac
1595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597    cd "$ac_dir" || { ac_status=$?; continue; }
1598    # Check for guested configure.
1599    if test -f "$ac_srcdir/configure.gnu"; then
1600      echo &&
1601      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602    elif test -f "$ac_srcdir/configure"; then
1603      echo &&
1604      $SHELL "$ac_srcdir/configure" --help=recursive
1605    else
1606      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607    fi || ac_status=$?
1608    cd "$ac_pwd" || { ac_status=$?; break; }
1609  done
1610fi
1611
1612test -n "$ac_init_help" && exit $ac_status
1613if $ac_init_version; then
1614  cat <<\_ACEOF
1615libXmu configure 1.1.0
1616generated by GNU Autoconf 2.68
1617
1618Copyright (C) 2010 Free Software Foundation, Inc.
1619This configure script is free software; the Free Software Foundation
1620gives unlimited permission to copy, distribute and modify it.
1621_ACEOF
1622  exit
1623fi
1624
1625## ------------------------ ##
1626## Autoconf initialization. ##
1627## ------------------------ ##
1628
1629# ac_fn_c_try_compile LINENO
1630# --------------------------
1631# Try to compile conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_compile ()
1633{
1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635  rm -f conftest.$ac_objext
1636  if { { ac_try="$ac_compile"
1637case "(($ac_try" in
1638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639  *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643  (eval "$ac_compile") 2>conftest.err
1644  ac_status=$?
1645  if test -s conftest.err; then
1646    grep -v '^ *+' conftest.err >conftest.er1
1647    cat conftest.er1 >&5
1648    mv -f conftest.er1 conftest.err
1649  fi
1650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651  test $ac_status = 0; } && {
1652	 test -z "$ac_c_werror_flag" ||
1653	 test ! -s conftest.err
1654       } && test -s conftest.$ac_objext; then :
1655  ac_retval=0
1656else
1657  $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
1659
1660	ac_retval=1
1661fi
1662  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663  as_fn_set_status $ac_retval
1664
1665} # ac_fn_c_try_compile
1666
1667# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1668# ---------------------------------------------
1669# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1670# accordingly.
1671ac_fn_c_check_decl ()
1672{
1673  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674  as_decl_name=`echo $2|sed 's/ *(.*//'`
1675  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1677$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1678if eval \${$3+:} false; then :
1679  $as_echo_n "(cached) " >&6
1680else
1681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682/* end confdefs.h.  */
1683$4
1684int
1685main ()
1686{
1687#ifndef $as_decl_name
1688#ifdef __cplusplus
1689  (void) $as_decl_use;
1690#else
1691  (void) $as_decl_name;
1692#endif
1693#endif
1694
1695  ;
1696  return 0;
1697}
1698_ACEOF
1699if ac_fn_c_try_compile "$LINENO"; then :
1700  eval "$3=yes"
1701else
1702  eval "$3=no"
1703fi
1704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705fi
1706eval ac_res=\$$3
1707	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708$as_echo "$ac_res" >&6; }
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711} # ac_fn_c_check_decl
1712
1713# ac_fn_c_try_cpp LINENO
1714# ----------------------
1715# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_c_try_cpp ()
1717{
1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719  if { { ac_try="$ac_cpp conftest.$ac_ext"
1720case "(($ac_try" in
1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722  *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727  ac_status=$?
1728  if test -s conftest.err; then
1729    grep -v '^ *+' conftest.err >conftest.er1
1730    cat conftest.er1 >&5
1731    mv -f conftest.er1 conftest.err
1732  fi
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; } > conftest.i && {
1735	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736	 test ! -s conftest.err
1737       }; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743    ac_retval=1
1744fi
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_cpp
1749
1750# ac_fn_c_try_run LINENO
1751# ----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753# that executables *can* be run.
1754ac_fn_c_try_run ()
1755{
1756  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757  if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_link") 2>&5
1765  ac_status=$?
1766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768  { { case "(($ac_try" in
1769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770  *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774  (eval "$ac_try") 2>&5
1775  ac_status=$?
1776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777  test $ac_status = 0; }; }; then :
1778  ac_retval=0
1779else
1780  $as_echo "$as_me: program exited with status $ac_status" >&5
1781       $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784       ac_retval=$ac_status
1785fi
1786  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_run
1791
1792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists and can be compiled using the include files in
1795# INCLUDES, setting the cache variable VAR accordingly.
1796ac_fn_c_check_header_compile ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if eval \${$3+:} false; then :
1802  $as_echo_n "(cached) " >&6
1803else
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$4
1807#include <$2>
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"; then :
1810  eval "$3=yes"
1811else
1812  eval "$3=no"
1813fi
1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821} # ac_fn_c_check_header_compile
1822
1823# ac_fn_c_try_link LINENO
1824# -----------------------
1825# Try to link conftest.$ac_ext, and return whether this succeeded.
1826ac_fn_c_try_link ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  rm -f conftest.$ac_objext conftest$ac_exeext
1830  if { { ac_try="$ac_link"
1831case "(($ac_try" in
1832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833  *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837  (eval "$ac_link") 2>conftest.err
1838  ac_status=$?
1839  if test -s conftest.err; then
1840    grep -v '^ *+' conftest.err >conftest.er1
1841    cat conftest.er1 >&5
1842    mv -f conftest.er1 conftest.err
1843  fi
1844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845  test $ac_status = 0; } && {
1846	 test -z "$ac_c_werror_flag" ||
1847	 test ! -s conftest.err
1848       } && test -s conftest$ac_exeext && {
1849	 test "$cross_compiling" = yes ||
1850	 $as_test_x conftest$ac_exeext
1851       }; then :
1852  ac_retval=0
1853else
1854  $as_echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857	ac_retval=1
1858fi
1859  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1860  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1861  # interfere with the next link command; also delete a directory that is
1862  # left behind by Apple's compiler.  We do this before executing the actions.
1863  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1864  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865  as_fn_set_status $ac_retval
1866
1867} # ac_fn_c_try_link
1868
1869# ac_fn_c_check_func LINENO FUNC VAR
1870# ----------------------------------
1871# Tests whether FUNC exists, setting the cache variable VAR accordingly
1872ac_fn_c_check_func ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876$as_echo_n "checking for $2... " >&6; }
1877if eval \${$3+:} false; then :
1878  $as_echo_n "(cached) " >&6
1879else
1880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h.  */
1882/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1884#define $2 innocuous_$2
1885
1886/* System header to define __stub macros and hopefully few prototypes,
1887    which can conflict with char $2 (); below.
1888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1889    <limits.h> exists even on freestanding compilers.  */
1890
1891#ifdef __STDC__
1892# include <limits.h>
1893#else
1894# include <assert.h>
1895#endif
1896
1897#undef $2
1898
1899/* Override any GCC internal prototype to avoid an error.
1900   Use char because int might match the return type of a GCC
1901   builtin and then its argument prototype would still apply.  */
1902#ifdef __cplusplus
1903extern "C"
1904#endif
1905char $2 ();
1906/* The GNU C library defines this for functions which it implements
1907    to always fail with ENOSYS.  Some functions are actually named
1908    something starting with __ and the normal name is an alias.  */
1909#if defined __stub_$2 || defined __stub___$2
1910choke me
1911#endif
1912
1913int
1914main ()
1915{
1916return $2 ();
1917  ;
1918  return 0;
1919}
1920_ACEOF
1921if ac_fn_c_try_link "$LINENO"; then :
1922  eval "$3=yes"
1923else
1924  eval "$3=no"
1925fi
1926rm -f core conftest.err conftest.$ac_objext \
1927    conftest$ac_exeext conftest.$ac_ext
1928fi
1929eval ac_res=\$$3
1930	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931$as_echo "$ac_res" >&6; }
1932  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934} # ac_fn_c_check_func
1935
1936# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1937# ----------------------------------------------------
1938# Tries to find if the field MEMBER exists in type AGGR, after including
1939# INCLUDES, setting cache variable VAR accordingly.
1940ac_fn_c_check_member ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1944$as_echo_n "checking for $2.$3... " >&6; }
1945if eval \${$4+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950$5
1951int
1952main ()
1953{
1954static $2 ac_aggr;
1955if (ac_aggr.$3)
1956return 0;
1957  ;
1958  return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962  eval "$4=yes"
1963else
1964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h.  */
1966$5
1967int
1968main ()
1969{
1970static $2 ac_aggr;
1971if (sizeof ac_aggr.$3)
1972return 0;
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978  eval "$4=yes"
1979else
1980  eval "$4=no"
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985fi
1986eval ac_res=\$$4
1987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988$as_echo "$ac_res" >&6; }
1989  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991} # ac_fn_c_check_member
1992
1993# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1994# -------------------------------------------
1995# Tests whether TYPE exists after having included INCLUDES, setting cache
1996# variable VAR accordingly.
1997ac_fn_c_check_type ()
1998{
1999  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001$as_echo_n "checking for $2... " >&6; }
2002if eval \${$3+:} false; then :
2003  $as_echo_n "(cached) " >&6
2004else
2005  eval "$3=no"
2006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h.  */
2008$4
2009int
2010main ()
2011{
2012if (sizeof ($2))
2013	 return 0;
2014  ;
2015  return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h.  */
2021$4
2022int
2023main ()
2024{
2025if (sizeof (($2)))
2026	    return 0;
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032
2033else
2034  eval "$3=yes"
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040eval ac_res=\$$3
2041	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042$as_echo "$ac_res" >&6; }
2043  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045} # ac_fn_c_check_type
2046cat >config.log <<_ACEOF
2047This file contains any messages produced by compilers while
2048running configure, to aid debugging if configure makes a mistake.
2049
2050It was created by libXmu $as_me 1.1.0, which was
2051generated by GNU Autoconf 2.68.  Invocation command line was
2052
2053  $ $0 $@
2054
2055_ACEOF
2056exec 5>>config.log
2057{
2058cat <<_ASUNAME
2059## --------- ##
2060## Platform. ##
2061## --------- ##
2062
2063hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2064uname -m = `(uname -m) 2>/dev/null || echo unknown`
2065uname -r = `(uname -r) 2>/dev/null || echo unknown`
2066uname -s = `(uname -s) 2>/dev/null || echo unknown`
2067uname -v = `(uname -v) 2>/dev/null || echo unknown`
2068
2069/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2070/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2071
2072/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2073/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2074/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2075/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2076/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2077/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2078/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2079
2080_ASUNAME
2081
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085  IFS=$as_save_IFS
2086  test -z "$as_dir" && as_dir=.
2087    $as_echo "PATH: $as_dir"
2088  done
2089IFS=$as_save_IFS
2090
2091} >&5
2092
2093cat >&5 <<_ACEOF
2094
2095
2096## ----------- ##
2097## Core tests. ##
2098## ----------- ##
2099
2100_ACEOF
2101
2102
2103# Keep a trace of the command line.
2104# Strip out --no-create and --no-recursion so they do not pile up.
2105# Strip out --silent because we don't want to record it for future runs.
2106# Also quote any args containing shell meta-characters.
2107# Make two passes to allow for proper duplicate-argument suppression.
2108ac_configure_args=
2109ac_configure_args0=
2110ac_configure_args1=
2111ac_must_keep_next=false
2112for ac_pass in 1 2
2113do
2114  for ac_arg
2115  do
2116    case $ac_arg in
2117    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2118    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2119    | -silent | --silent | --silen | --sile | --sil)
2120      continue ;;
2121    *\'*)
2122      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2123    esac
2124    case $ac_pass in
2125    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2126    2)
2127      as_fn_append ac_configure_args1 " '$ac_arg'"
2128      if test $ac_must_keep_next = true; then
2129	ac_must_keep_next=false # Got value, back to normal.
2130      else
2131	case $ac_arg in
2132	  *=* | --config-cache | -C | -disable-* | --disable-* \
2133	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2134	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2135	  | -with-* | --with-* | -without-* | --without-* | --x)
2136	    case "$ac_configure_args0 " in
2137	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2138	    esac
2139	    ;;
2140	  -* ) ac_must_keep_next=true ;;
2141	esac
2142      fi
2143      as_fn_append ac_configure_args " '$ac_arg'"
2144      ;;
2145    esac
2146  done
2147done
2148{ ac_configure_args0=; unset ac_configure_args0;}
2149{ ac_configure_args1=; unset ac_configure_args1;}
2150
2151# When interrupted or exit'd, cleanup temporary files, and complete
2152# config.log.  We remove comments because anyway the quotes in there
2153# would cause problems or look ugly.
2154# WARNING: Use '\'' to represent an apostrophe within the trap.
2155# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2156trap 'exit_status=$?
2157  # Save into config.log some information that might help in debugging.
2158  {
2159    echo
2160
2161    $as_echo "## ---------------- ##
2162## Cache variables. ##
2163## ---------------- ##"
2164    echo
2165    # The following way of writing the cache mishandles newlines in values,
2166(
2167  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2168    eval ac_val=\$$ac_var
2169    case $ac_val in #(
2170    *${as_nl}*)
2171      case $ac_var in #(
2172      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2173$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2174      esac
2175      case $ac_var in #(
2176      _ | IFS | as_nl) ;; #(
2177      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2178      *) { eval $ac_var=; unset $ac_var;} ;;
2179      esac ;;
2180    esac
2181  done
2182  (set) 2>&1 |
2183    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184    *${as_nl}ac_space=\ *)
2185      sed -n \
2186	"s/'\''/'\''\\\\'\'''\''/g;
2187	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188      ;; #(
2189    *)
2190      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2191      ;;
2192    esac |
2193    sort
2194)
2195    echo
2196
2197    $as_echo "## ----------------- ##
2198## Output variables. ##
2199## ----------------- ##"
2200    echo
2201    for ac_var in $ac_subst_vars
2202    do
2203      eval ac_val=\$$ac_var
2204      case $ac_val in
2205      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206      esac
2207      $as_echo "$ac_var='\''$ac_val'\''"
2208    done | sort
2209    echo
2210
2211    if test -n "$ac_subst_files"; then
2212      $as_echo "## ------------------- ##
2213## File substitutions. ##
2214## ------------------- ##"
2215      echo
2216      for ac_var in $ac_subst_files
2217      do
2218	eval ac_val=\$$ac_var
2219	case $ac_val in
2220	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221	esac
2222	$as_echo "$ac_var='\''$ac_val'\''"
2223      done | sort
2224      echo
2225    fi
2226
2227    if test -s confdefs.h; then
2228      $as_echo "## ----------- ##
2229## confdefs.h. ##
2230## ----------- ##"
2231      echo
2232      cat confdefs.h
2233      echo
2234    fi
2235    test "$ac_signal" != 0 &&
2236      $as_echo "$as_me: caught signal $ac_signal"
2237    $as_echo "$as_me: exit $exit_status"
2238  } >&5
2239  rm -f core *.core core.conftest.* &&
2240    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2241    exit $exit_status
2242' 0
2243for ac_signal in 1 2 13 15; do
2244  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2245done
2246ac_signal=0
2247
2248# confdefs.h avoids OS command line length limits that DEFS can exceed.
2249rm -f -r conftest* confdefs.h
2250
2251$as_echo "/* confdefs.h */" > confdefs.h
2252
2253# Predefined preprocessor variables.
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_NAME "$PACKAGE_NAME"
2257_ACEOF
2258
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2261_ACEOF
2262
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_VERSION "$PACKAGE_VERSION"
2265_ACEOF
2266
2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_STRING "$PACKAGE_STRING"
2269_ACEOF
2270
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273_ACEOF
2274
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_URL "$PACKAGE_URL"
2277_ACEOF
2278
2279
2280# Let the site file select an alternate cache file if it wants to.
2281# Prefer an explicitly selected file to automatically selected ones.
2282ac_site_file1=NONE
2283ac_site_file2=NONE
2284if test -n "$CONFIG_SITE"; then
2285  # We do not want a PATH search for config.site.
2286  case $CONFIG_SITE in #((
2287    -*)  ac_site_file1=./$CONFIG_SITE;;
2288    */*) ac_site_file1=$CONFIG_SITE;;
2289    *)   ac_site_file1=./$CONFIG_SITE;;
2290  esac
2291elif test "x$prefix" != xNONE; then
2292  ac_site_file1=$prefix/share/config.site
2293  ac_site_file2=$prefix/etc/config.site
2294else
2295  ac_site_file1=$ac_default_prefix/share/config.site
2296  ac_site_file2=$ac_default_prefix/etc/config.site
2297fi
2298for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2299do
2300  test "x$ac_site_file" = xNONE && continue
2301  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2302    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2303$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2304    sed 's/^/| /' "$ac_site_file" >&5
2305    . "$ac_site_file" \
2306      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308as_fn_error $? "failed to load site script $ac_site_file
2309See \`config.log' for more details" "$LINENO" 5; }
2310  fi
2311done
2312
2313if test -r "$cache_file"; then
2314  # Some versions of bash will fail to source /dev/null (special files
2315  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2316  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2317    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2318$as_echo "$as_me: loading cache $cache_file" >&6;}
2319    case $cache_file in
2320      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2321      *)                      . "./$cache_file";;
2322    esac
2323  fi
2324else
2325  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2326$as_echo "$as_me: creating cache $cache_file" >&6;}
2327  >$cache_file
2328fi
2329
2330# Check that the precious variables saved in the cache have kept the same
2331# value.
2332ac_cache_corrupted=false
2333for ac_var in $ac_precious_vars; do
2334  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2335  eval ac_new_set=\$ac_env_${ac_var}_set
2336  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2337  eval ac_new_val=\$ac_env_${ac_var}_value
2338  case $ac_old_set,$ac_new_set in
2339    set,)
2340      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2341$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2342      ac_cache_corrupted=: ;;
2343    ,set)
2344      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2345$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2346      ac_cache_corrupted=: ;;
2347    ,);;
2348    *)
2349      if test "x$ac_old_val" != "x$ac_new_val"; then
2350	# differences in whitespace do not lead to failure.
2351	ac_old_val_w=`echo x $ac_old_val`
2352	ac_new_val_w=`echo x $ac_new_val`
2353	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2354	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2355$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2356	  ac_cache_corrupted=:
2357	else
2358	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2359$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2360	  eval $ac_var=\$ac_old_val
2361	fi
2362	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2363$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2364	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2365$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2366      fi;;
2367  esac
2368  # Pass precious variables to config.status.
2369  if test "$ac_new_set" = set; then
2370    case $ac_new_val in
2371    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2372    *) ac_arg=$ac_var=$ac_new_val ;;
2373    esac
2374    case " $ac_configure_args " in
2375      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2376      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2377    esac
2378  fi
2379done
2380if $ac_cache_corrupted; then
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2384$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2385  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2386fi
2387## -------------------- ##
2388## Main body of script. ##
2389## -------------------- ##
2390
2391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396
2397
2398
2399
2400ac_aux_dir=
2401for ac_dir in . "$srcdir"/.; do
2402  if test -f "$ac_dir/install-sh"; then
2403    ac_aux_dir=$ac_dir
2404    ac_install_sh="$ac_aux_dir/install-sh -c"
2405    break
2406  elif test -f "$ac_dir/install.sh"; then
2407    ac_aux_dir=$ac_dir
2408    ac_install_sh="$ac_aux_dir/install.sh -c"
2409    break
2410  elif test -f "$ac_dir/shtool"; then
2411    ac_aux_dir=$ac_dir
2412    ac_install_sh="$ac_aux_dir/shtool install -c"
2413    break
2414  fi
2415done
2416if test -z "$ac_aux_dir"; then
2417  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2418fi
2419
2420# These three variables are undocumented and unsupported,
2421# and are intended to be withdrawn in a future Autoconf release.
2422# They can cause serious problems if a builder's source tree is in a directory
2423# whose full name contains unusual characters.
2424ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2425ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2426ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2427
2428
2429am__api_version='1.11'
2430
2431# Find a good install program.  We prefer a C program (faster),
2432# so one script is as good as another.  But avoid the broken or
2433# incompatible versions:
2434# SysV /etc/install, /usr/sbin/install
2435# SunOS /usr/etc/install
2436# IRIX /sbin/install
2437# AIX /bin/install
2438# AmigaOS /C/install, which installs bootblocks on floppy discs
2439# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442# OS/2's system install, which has a completely different semantic
2443# ./install, which can be erroneously created by make from ./install.sh.
2444# Reject install programs that cannot install multiple files.
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2446$as_echo_n "checking for a BSD-compatible install... " >&6; }
2447if test -z "$INSTALL"; then
2448if ${ac_cv_path_install+:} false; then :
2449  $as_echo_n "(cached) " >&6
2450else
2451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456    # Account for people who put trailing slashes in PATH elements.
2457case $as_dir/ in #((
2458  ./ | .// | /[cC]/* | \
2459  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2460  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2461  /usr/ucb/* ) ;;
2462  *)
2463    # OSF1 and SCO ODT 3.0 have their own names for install.
2464    # Don't use installbsd from OSF since it installs stuff as root
2465    # by default.
2466    for ac_prog in ginstall scoinst install; do
2467      for ac_exec_ext in '' $ac_executable_extensions; do
2468	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2469	  if test $ac_prog = install &&
2470	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471	    # AIX install.  It has an incompatible calling convention.
2472	    :
2473	  elif test $ac_prog = install &&
2474	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475	    # program-specific install script used by HP pwplus--don't use.
2476	    :
2477	  else
2478	    rm -rf conftest.one conftest.two conftest.dir
2479	    echo one > conftest.one
2480	    echo two > conftest.two
2481	    mkdir conftest.dir
2482	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2483	      test -s conftest.one && test -s conftest.two &&
2484	      test -s conftest.dir/conftest.one &&
2485	      test -s conftest.dir/conftest.two
2486	    then
2487	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2488	      break 3
2489	    fi
2490	  fi
2491	fi
2492      done
2493    done
2494    ;;
2495esac
2496
2497  done
2498IFS=$as_save_IFS
2499
2500rm -rf conftest.one conftest.two conftest.dir
2501
2502fi
2503  if test "${ac_cv_path_install+set}" = set; then
2504    INSTALL=$ac_cv_path_install
2505  else
2506    # As a last resort, use the slow shell script.  Don't cache a
2507    # value for INSTALL within a source directory, because that will
2508    # break other packages using the cache if that directory is
2509    # removed, or if the value is a relative name.
2510    INSTALL=$ac_install_sh
2511  fi
2512fi
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2514$as_echo "$INSTALL" >&6; }
2515
2516# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517# It thinks the first close brace ends the variable substitution.
2518test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2519
2520test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2521
2522test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2523
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2525$as_echo_n "checking whether build environment is sane... " >&6; }
2526# Just in case
2527sleep 1
2528echo timestamp > conftest.file
2529# Reject unsafe characters in $srcdir or the absolute working directory
2530# name.  Accept space and tab only in the latter.
2531am_lf='
2532'
2533case `pwd` in
2534  *[\\\"\#\$\&\'\`$am_lf]*)
2535    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2536esac
2537case $srcdir in
2538  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2539    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2540esac
2541
2542# Do `set' in a subshell so we don't clobber the current shell's
2543# arguments.  Must try -L first in case configure is actually a
2544# symlink; some systems play weird games with the mod time of symlinks
2545# (eg FreeBSD returns the mod time of the symlink's containing
2546# directory).
2547if (
2548   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2549   if test "$*" = "X"; then
2550      # -L didn't work.
2551      set X `ls -t "$srcdir/configure" conftest.file`
2552   fi
2553   rm -f conftest.file
2554   if test "$*" != "X $srcdir/configure conftest.file" \
2555      && test "$*" != "X conftest.file $srcdir/configure"; then
2556
2557      # If neither matched, then we have a broken ls.  This can happen
2558      # if, for instance, CONFIG_SHELL is bash and it inherits a
2559      # broken ls alias from the environment.  This has actually
2560      # happened.  Such a system could not be considered "sane".
2561      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2562alias in your environment" "$LINENO" 5
2563   fi
2564
2565   test "$2" = conftest.file
2566   )
2567then
2568   # Ok.
2569   :
2570else
2571   as_fn_error $? "newly created file is older than distributed files!
2572Check your system clock" "$LINENO" 5
2573fi
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575$as_echo "yes" >&6; }
2576test "$program_prefix" != NONE &&
2577  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2578# Use a double $ so make ignores it.
2579test "$program_suffix" != NONE &&
2580  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2581# Double any \ or $.
2582# By default was `s,x,x', remove it if useless.
2583ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2584program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2585
2586# expand $ac_aux_dir to an absolute path
2587am_aux_dir=`cd $ac_aux_dir && pwd`
2588
2589if test x"${MISSING+set}" != xset; then
2590  case $am_aux_dir in
2591  *\ * | *\	*)
2592    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2593  *)
2594    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2595  esac
2596fi
2597# Use eval to expand $SHELL
2598if eval "$MISSING --run true"; then
2599  am_missing_run="$MISSING --run "
2600else
2601  am_missing_run=
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2603$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2604fi
2605
2606if test x"${install_sh}" != xset; then
2607  case $am_aux_dir in
2608  *\ * | *\	*)
2609    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2610  *)
2611    install_sh="\${SHELL} $am_aux_dir/install-sh"
2612  esac
2613fi
2614
2615# Installed binaries are usually stripped using `strip' when the user
2616# run `make install-strip'.  However `strip' might not be the right
2617# tool to use in cross-compilation environments, therefore Automake
2618# will honor the `STRIP' environment variable to overrule this program.
2619if test "$cross_compiling" != no; then
2620  if test -n "$ac_tool_prefix"; then
2621  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2622set dummy ${ac_tool_prefix}strip; ac_word=$2
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if ${ac_cv_prog_STRIP+:} false; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  if test -n "$STRIP"; then
2629  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634  IFS=$as_save_IFS
2635  test -z "$as_dir" && as_dir=.
2636    for ac_exec_ext in '' $ac_executable_extensions; do
2637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640    break 2
2641  fi
2642done
2643  done
2644IFS=$as_save_IFS
2645
2646fi
2647fi
2648STRIP=$ac_cv_prog_STRIP
2649if test -n "$STRIP"; then
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2651$as_echo "$STRIP" >&6; }
2652else
2653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
2655fi
2656
2657
2658fi
2659if test -z "$ac_cv_prog_STRIP"; then
2660  ac_ct_STRIP=$STRIP
2661  # Extract the first word of "strip", so it can be a program name with args.
2662set dummy strip; ac_word=$2
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664$as_echo_n "checking for $ac_word... " >&6; }
2665if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  if test -n "$ac_ct_STRIP"; then
2669  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674  IFS=$as_save_IFS
2675  test -z "$as_dir" && as_dir=.
2676    for ac_exec_ext in '' $ac_executable_extensions; do
2677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678    ac_cv_prog_ac_ct_STRIP="strip"
2679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680    break 2
2681  fi
2682done
2683  done
2684IFS=$as_save_IFS
2685
2686fi
2687fi
2688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2689if test -n "$ac_ct_STRIP"; then
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2691$as_echo "$ac_ct_STRIP" >&6; }
2692else
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694$as_echo "no" >&6; }
2695fi
2696
2697  if test "x$ac_ct_STRIP" = x; then
2698    STRIP=":"
2699  else
2700    case $cross_compiling:$ac_tool_warned in
2701yes:)
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2704ac_tool_warned=yes ;;
2705esac
2706    STRIP=$ac_ct_STRIP
2707  fi
2708else
2709  STRIP="$ac_cv_prog_STRIP"
2710fi
2711
2712fi
2713INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2714
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2716$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2717if test -z "$MKDIR_P"; then
2718  if ${ac_cv_path_mkdir+:} false; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726    for ac_prog in mkdir gmkdir; do
2727	 for ac_exec_ext in '' $ac_executable_extensions; do
2728	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2729	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2730	     'mkdir (GNU coreutils) '* | \
2731	     'mkdir (coreutils) '* | \
2732	     'mkdir (fileutils) '4.1*)
2733	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2734	       break 3;;
2735	   esac
2736	 done
2737       done
2738  done
2739IFS=$as_save_IFS
2740
2741fi
2742
2743  test -d ./--version && rmdir ./--version
2744  if test "${ac_cv_path_mkdir+set}" = set; then
2745    MKDIR_P="$ac_cv_path_mkdir -p"
2746  else
2747    # As a last resort, use the slow shell script.  Don't cache a
2748    # value for MKDIR_P within a source directory, because that will
2749    # break other packages using the cache if that directory is
2750    # removed, or if the value is a relative name.
2751    MKDIR_P="$ac_install_sh -d"
2752  fi
2753fi
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2755$as_echo "$MKDIR_P" >&6; }
2756
2757mkdir_p="$MKDIR_P"
2758case $mkdir_p in
2759  [\\/$]* | ?:[\\/]*) ;;
2760  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2761esac
2762
2763for ac_prog in gawk mawk nawk awk
2764do
2765  # Extract the first word of "$ac_prog", so it can be a program name with args.
2766set dummy $ac_prog; ac_word=$2
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768$as_echo_n "checking for $ac_word... " >&6; }
2769if ${ac_cv_prog_AWK+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  if test -n "$AWK"; then
2773  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778  IFS=$as_save_IFS
2779  test -z "$as_dir" && as_dir=.
2780    for ac_exec_ext in '' $ac_executable_extensions; do
2781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782    ac_cv_prog_AWK="$ac_prog"
2783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787  done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792AWK=$ac_cv_prog_AWK
2793if test -n "$AWK"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2795$as_echo "$AWK" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802  test -n "$AWK" && break
2803done
2804
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2806$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2807set x ${MAKE-make}
2808ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  cat >conftest.make <<\_ACEOF
2813SHELL = /bin/sh
2814all:
2815	@echo '@@@%%%=$(MAKE)=@@@%%%'
2816_ACEOF
2817# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2818case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819  *@@@%%%=?*=@@@%%%*)
2820    eval ac_cv_prog_make_${ac_make}_set=yes;;
2821  *)
2822    eval ac_cv_prog_make_${ac_make}_set=no;;
2823esac
2824rm -f conftest.make
2825fi
2826if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2828$as_echo "yes" >&6; }
2829  SET_MAKE=
2830else
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832$as_echo "no" >&6; }
2833  SET_MAKE="MAKE=${MAKE-make}"
2834fi
2835
2836rm -rf .tst 2>/dev/null
2837mkdir .tst 2>/dev/null
2838if test -d .tst; then
2839  am__leading_dot=.
2840else
2841  am__leading_dot=_
2842fi
2843rmdir .tst 2>/dev/null
2844
2845if test "`cd $srcdir && pwd`" != "`pwd`"; then
2846  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2847  # is not polluted with repeated "-I."
2848  am__isrc=' -I$(srcdir)'
2849  # test to see if srcdir already configured
2850  if test -f $srcdir/config.status; then
2851    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2852  fi
2853fi
2854
2855# test whether we have cygpath
2856if test -z "$CYGPATH_W"; then
2857  if (cygpath --version) >/dev/null 2>/dev/null; then
2858    CYGPATH_W='cygpath -w'
2859  else
2860    CYGPATH_W=echo
2861  fi
2862fi
2863
2864
2865# Define the identity of the package.
2866 PACKAGE='libXmu'
2867 VERSION='1.1.0'
2868
2869
2870cat >>confdefs.h <<_ACEOF
2871#define PACKAGE "$PACKAGE"
2872_ACEOF
2873
2874
2875cat >>confdefs.h <<_ACEOF
2876#define VERSION "$VERSION"
2877_ACEOF
2878
2879# Some tools Automake needs.
2880
2881ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2882
2883
2884AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2885
2886
2887AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2888
2889
2890AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2891
2892
2893MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2894
2895# We need awk for the "check" target.  The system "awk" is bad on
2896# some platforms.
2897# Always define AMTAR for backward compatibility.
2898
2899AMTAR=${AMTAR-"${am_missing_run}tar"}
2900
2901am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2902
2903
2904
2905
2906
2907
2908
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2910$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2911    # Check whether --enable-maintainer-mode was given.
2912if test "${enable_maintainer_mode+set}" = set; then :
2913  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2914else
2915  USE_MAINTAINER_MODE=no
2916fi
2917
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2919$as_echo "$USE_MAINTAINER_MODE" >&6; }
2920   if test $USE_MAINTAINER_MODE = yes; then
2921  MAINTAINER_MODE_TRUE=
2922  MAINTAINER_MODE_FALSE='#'
2923else
2924  MAINTAINER_MODE_TRUE='#'
2925  MAINTAINER_MODE_FALSE=
2926fi
2927
2928  MAINT=$MAINTAINER_MODE_TRUE
2929
2930
2931
2932# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944DEPDIR="${am__leading_dot}deps"
2945
2946ac_config_commands="$ac_config_commands depfiles"
2947
2948
2949am_make=${MAKE-make}
2950cat > confinc << 'END'
2951am__doit:
2952	@echo this is the am__doit target
2953.PHONY: am__doit
2954END
2955# If we don't find an include directive, just comment out the code.
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2957$as_echo_n "checking for style of include used by $am_make... " >&6; }
2958am__include="#"
2959am__quote=
2960_am_result=none
2961# First try GNU make style include.
2962echo "include confinc" > confmf
2963# Ignore all kinds of additional output from `make'.
2964case `$am_make -s -f confmf 2> /dev/null` in #(
2965*the\ am__doit\ target*)
2966  am__include=include
2967  am__quote=
2968  _am_result=GNU
2969  ;;
2970esac
2971# Now try BSD make style include.
2972if test "$am__include" = "#"; then
2973   echo '.include "confinc"' > confmf
2974   case `$am_make -s -f confmf 2> /dev/null` in #(
2975   *the\ am__doit\ target*)
2976     am__include=.include
2977     am__quote="\""
2978     _am_result=BSD
2979     ;;
2980   esac
2981fi
2982
2983
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2985$as_echo "$_am_result" >&6; }
2986rm -f confinc confmf
2987
2988# Check whether --enable-dependency-tracking was given.
2989if test "${enable_dependency_tracking+set}" = set; then :
2990  enableval=$enable_dependency_tracking;
2991fi
2992
2993if test "x$enable_dependency_tracking" != xno; then
2994  am_depcomp="$ac_aux_dir/depcomp"
2995  AMDEPBACKSLASH='\'
2996fi
2997 if test "x$enable_dependency_tracking" != xno; then
2998  AMDEP_TRUE=
2999  AMDEP_FALSE='#'
3000else
3001  AMDEP_TRUE='#'
3002  AMDEP_FALSE=
3003fi
3004
3005
3006ac_ext=c
3007ac_cpp='$CPP $CPPFLAGS'
3008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011if test -n "$ac_tool_prefix"; then
3012  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3013set dummy ${ac_tool_prefix}gcc; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if ${ac_cv_prog_CC+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$CC"; then
3020  ac_cv_prog_CC="$CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025  IFS=$as_save_IFS
3026  test -z "$as_dir" && as_dir=.
3027    for ac_exec_ext in '' $ac_executable_extensions; do
3028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039CC=$ac_cv_prog_CC
3040if test -n "$CC"; then
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042$as_echo "$CC" >&6; }
3043else
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048
3049fi
3050if test -z "$ac_cv_prog_CC"; then
3051  ac_ct_CC=$CC
3052  # Extract the first word of "gcc", so it can be a program name with args.
3053set dummy gcc; ac_word=$2
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055$as_echo_n "checking for $ac_word... " >&6; }
3056if ${ac_cv_prog_ac_ct_CC+:} false; then :
3057  $as_echo_n "(cached) " >&6
3058else
3059  if test -n "$ac_ct_CC"; then
3060  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061else
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065  IFS=$as_save_IFS
3066  test -z "$as_dir" && as_dir=.
3067    for ac_exec_ext in '' $ac_executable_extensions; do
3068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069    ac_cv_prog_ac_ct_CC="gcc"
3070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071    break 2
3072  fi
3073done
3074  done
3075IFS=$as_save_IFS
3076
3077fi
3078fi
3079ac_ct_CC=$ac_cv_prog_ac_ct_CC
3080if test -n "$ac_ct_CC"; then
3081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3082$as_echo "$ac_ct_CC" >&6; }
3083else
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085$as_echo "no" >&6; }
3086fi
3087
3088  if test "x$ac_ct_CC" = x; then
3089    CC=""
3090  else
3091    case $cross_compiling:$ac_tool_warned in
3092yes:)
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3095ac_tool_warned=yes ;;
3096esac
3097    CC=$ac_ct_CC
3098  fi
3099else
3100  CC="$ac_cv_prog_CC"
3101fi
3102
3103if test -z "$CC"; then
3104          if test -n "$ac_tool_prefix"; then
3105    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3106set dummy ${ac_tool_prefix}cc; ac_word=$2
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108$as_echo_n "checking for $ac_word... " >&6; }
3109if ${ac_cv_prog_CC+:} false; then :
3110  $as_echo_n "(cached) " >&6
3111else
3112  if test -n "$CC"; then
3113  ac_cv_prog_CC="$CC" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122    ac_cv_prog_CC="${ac_tool_prefix}cc"
3123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127  done
3128IFS=$as_save_IFS
3129
3130fi
3131fi
3132CC=$ac_cv_prog_CC
3133if test -n "$CC"; then
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135$as_echo "$CC" >&6; }
3136else
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139fi
3140
3141
3142  fi
3143fi
3144if test -z "$CC"; then
3145  # Extract the first word of "cc", so it can be a program name with args.
3146set dummy cc; ac_word=$2
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148$as_echo_n "checking for $ac_word... " >&6; }
3149if ${ac_cv_prog_CC+:} false; then :
3150  $as_echo_n "(cached) " >&6
3151else
3152  if test -n "$CC"; then
3153  ac_cv_prog_CC="$CC" # Let the user override the test.
3154else
3155  ac_prog_rejected=no
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159  IFS=$as_save_IFS
3160  test -z "$as_dir" && as_dir=.
3161    for ac_exec_ext in '' $ac_executable_extensions; do
3162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3164       ac_prog_rejected=yes
3165       continue
3166     fi
3167    ac_cv_prog_CC="cc"
3168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172  done
3173IFS=$as_save_IFS
3174
3175if test $ac_prog_rejected = yes; then
3176  # We found a bogon in the path, so make sure we never use it.
3177  set dummy $ac_cv_prog_CC
3178  shift
3179  if test $# != 0; then
3180    # We chose a different compiler from the bogus one.
3181    # However, it has the same basename, so the bogon will be chosen
3182    # first if we set CC to just the basename; use the full file name.
3183    shift
3184    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3185  fi
3186fi
3187fi
3188fi
3189CC=$ac_cv_prog_CC
3190if test -n "$CC"; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3192$as_echo "$CC" >&6; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199fi
3200if test -z "$CC"; then
3201  if test -n "$ac_tool_prefix"; then
3202  for ac_prog in cl.exe
3203  do
3204    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3205set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if ${ac_cv_prog_CC+:} false; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test -n "$CC"; then
3212  ac_cv_prog_CC="$CC" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225done
3226  done
3227IFS=$as_save_IFS
3228
3229fi
3230fi
3231CC=$ac_cv_prog_CC
3232if test -n "$CC"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234$as_echo "$CC" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241    test -n "$CC" && break
3242  done
3243fi
3244if test -z "$CC"; then
3245  ac_ct_CC=$CC
3246  for ac_prog in cl.exe
3247do
3248  # Extract the first word of "$ac_prog", so it can be a program name with args.
3249set dummy $ac_prog; ac_word=$2
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251$as_echo_n "checking for $ac_word... " >&6; }
3252if ${ac_cv_prog_ac_ct_CC+:} false; then :
3253  $as_echo_n "(cached) " >&6
3254else
3255  if test -n "$ac_ct_CC"; then
3256  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3257else
3258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259for as_dir in $PATH
3260do
3261  IFS=$as_save_IFS
3262  test -z "$as_dir" && as_dir=.
3263    for ac_exec_ext in '' $ac_executable_extensions; do
3264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265    ac_cv_prog_ac_ct_CC="$ac_prog"
3266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267    break 2
3268  fi
3269done
3270  done
3271IFS=$as_save_IFS
3272
3273fi
3274fi
3275ac_ct_CC=$ac_cv_prog_ac_ct_CC
3276if test -n "$ac_ct_CC"; then
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3278$as_echo "$ac_ct_CC" >&6; }
3279else
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281$as_echo "no" >&6; }
3282fi
3283
3284
3285  test -n "$ac_ct_CC" && break
3286done
3287
3288  if test "x$ac_ct_CC" = x; then
3289    CC=""
3290  else
3291    case $cross_compiling:$ac_tool_warned in
3292yes:)
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3295ac_tool_warned=yes ;;
3296esac
3297    CC=$ac_ct_CC
3298  fi
3299fi
3300
3301fi
3302
3303
3304test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306as_fn_error $? "no acceptable C compiler found in \$PATH
3307See \`config.log' for more details" "$LINENO" 5; }
3308
3309# Provide some information about the compiler.
3310$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3311set X $ac_compile
3312ac_compiler=$2
3313for ac_option in --version -v -V -qversion; do
3314  { { ac_try="$ac_compiler $ac_option >&5"
3315case "(($ac_try" in
3316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317  *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320$as_echo "$ac_try_echo"; } >&5
3321  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3322  ac_status=$?
3323  if test -s conftest.err; then
3324    sed '10a\
3325... rest of stderr output deleted ...
3326         10q' conftest.err >conftest.er1
3327    cat conftest.er1 >&5
3328  fi
3329  rm -f conftest.er1 conftest.err
3330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331  test $ac_status = 0; }
3332done
3333
3334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h.  */
3336
3337int
3338main ()
3339{
3340
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345ac_clean_files_save=$ac_clean_files
3346ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3347# Try to create an executable without -o first, disregard a.out.
3348# It will help us diagnose broken compilers, and finding out an intuition
3349# of exeext.
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3351$as_echo_n "checking whether the C compiler works... " >&6; }
3352ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3353
3354# The possible output files:
3355ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3356
3357ac_rmfiles=
3358for ac_file in $ac_files
3359do
3360  case $ac_file in
3361    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3362    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3363  esac
3364done
3365rm -f $ac_rmfiles
3366
3367if { { ac_try="$ac_link_default"
3368case "(($ac_try" in
3369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370  *) ac_try_echo=$ac_try;;
3371esac
3372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373$as_echo "$ac_try_echo"; } >&5
3374  (eval "$ac_link_default") 2>&5
3375  ac_status=$?
3376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377  test $ac_status = 0; }; then :
3378  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3379# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3380# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3381# so that the user can short-circuit this test for compilers unknown to
3382# Autoconf.
3383for ac_file in $ac_files ''
3384do
3385  test -f "$ac_file" || continue
3386  case $ac_file in
3387    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3388	;;
3389    [ab].out )
3390	# We found the default executable, but exeext='' is most
3391	# certainly right.
3392	break;;
3393    *.* )
3394	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3395	then :; else
3396	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3397	fi
3398	# We set ac_cv_exeext here because the later test for it is not
3399	# safe: cross compilers may not add the suffix if given an `-o'
3400	# argument, so we may need to know it at that point already.
3401	# Even if this section looks crufty: it has the advantage of
3402	# actually working.
3403	break;;
3404    * )
3405	break;;
3406  esac
3407done
3408test "$ac_cv_exeext" = no && ac_cv_exeext=
3409
3410else
3411  ac_file=''
3412fi
3413if test -z "$ac_file"; then :
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
3416$as_echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
3419{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421as_fn_error 77 "C compiler cannot create executables
3422See \`config.log' for more details" "$LINENO" 5; }
3423else
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3425$as_echo "yes" >&6; }
3426fi
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3428$as_echo_n "checking for C compiler default output file name... " >&6; }
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3430$as_echo "$ac_file" >&6; }
3431ac_exeext=$ac_cv_exeext
3432
3433rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3434ac_clean_files=$ac_clean_files_save
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3436$as_echo_n "checking for suffix of executables... " >&6; }
3437if { { ac_try="$ac_link"
3438case "(($ac_try" in
3439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440  *) ac_try_echo=$ac_try;;
3441esac
3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
3444  (eval "$ac_link") 2>&5
3445  ac_status=$?
3446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447  test $ac_status = 0; }; then :
3448  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3449# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3450# work properly (i.e., refer to `conftest.exe'), while it won't with
3451# `rm'.
3452for ac_file in conftest.exe conftest conftest.*; do
3453  test -f "$ac_file" || continue
3454  case $ac_file in
3455    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3456    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457	  break;;
3458    * ) break;;
3459  esac
3460done
3461else
3462  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3465See \`config.log' for more details" "$LINENO" 5; }
3466fi
3467rm -f conftest conftest$ac_cv_exeext
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3469$as_echo "$ac_cv_exeext" >&6; }
3470
3471rm -f conftest.$ac_ext
3472EXEEXT=$ac_cv_exeext
3473ac_exeext=$EXEEXT
3474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475/* end confdefs.h.  */
3476#include <stdio.h>
3477int
3478main ()
3479{
3480FILE *f = fopen ("conftest.out", "w");
3481 return ferror (f) || fclose (f) != 0;
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487ac_clean_files="$ac_clean_files conftest.out"
3488# Check that the compiler produces executables we can run.  If not, either
3489# the compiler is broken, or we cross compile.
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3491$as_echo_n "checking whether we are cross compiling... " >&6; }
3492if test "$cross_compiling" != yes; then
3493  { { ac_try="$ac_link"
3494case "(($ac_try" in
3495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496  *) ac_try_echo=$ac_try;;
3497esac
3498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499$as_echo "$ac_try_echo"; } >&5
3500  (eval "$ac_link") 2>&5
3501  ac_status=$?
3502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503  test $ac_status = 0; }
3504  if { ac_try='./conftest$ac_cv_exeext'
3505  { { case "(($ac_try" in
3506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507  *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510$as_echo "$ac_try_echo"; } >&5
3511  (eval "$ac_try") 2>&5
3512  ac_status=$?
3513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514  test $ac_status = 0; }; }; then
3515    cross_compiling=no
3516  else
3517    if test "$cross_compiling" = maybe; then
3518	cross_compiling=yes
3519    else
3520	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522as_fn_error $? "cannot run C compiled programs.
3523If you meant to cross compile, use \`--host'.
3524See \`config.log' for more details" "$LINENO" 5; }
3525    fi
3526  fi
3527fi
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3529$as_echo "$cross_compiling" >&6; }
3530
3531rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3532ac_clean_files=$ac_clean_files_save
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3534$as_echo_n "checking for suffix of object files... " >&6; }
3535if ${ac_cv_objext+:} false; then :
3536  $as_echo_n "(cached) " >&6
3537else
3538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h.  */
3540
3541int
3542main ()
3543{
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549rm -f conftest.o conftest.obj
3550if { { ac_try="$ac_compile"
3551case "(($ac_try" in
3552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553  *) ac_try_echo=$ac_try;;
3554esac
3555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3556$as_echo "$ac_try_echo"; } >&5
3557  (eval "$ac_compile") 2>&5
3558  ac_status=$?
3559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560  test $ac_status = 0; }; then :
3561  for ac_file in conftest.o conftest.obj conftest.*; do
3562  test -f "$ac_file" || continue;
3563  case $ac_file in
3564    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3565    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3566       break;;
3567  esac
3568done
3569else
3570  $as_echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575as_fn_error $? "cannot compute suffix of object files: cannot compile
3576See \`config.log' for more details" "$LINENO" 5; }
3577fi
3578rm -f conftest.$ac_cv_objext conftest.$ac_ext
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3581$as_echo "$ac_cv_objext" >&6; }
3582OBJEXT=$ac_cv_objext
3583ac_objext=$OBJEXT
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3585$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3586if ${ac_cv_c_compiler_gnu+:} false; then :
3587  $as_echo_n "(cached) " >&6
3588else
3589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h.  */
3591
3592int
3593main ()
3594{
3595#ifndef __GNUC__
3596       choke me
3597#endif
3598
3599  ;
3600  return 0;
3601}
3602_ACEOF
3603if ac_fn_c_try_compile "$LINENO"; then :
3604  ac_compiler_gnu=yes
3605else
3606  ac_compiler_gnu=no
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609ac_cv_c_compiler_gnu=$ac_compiler_gnu
3610
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3613$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3614if test $ac_compiler_gnu = yes; then
3615  GCC=yes
3616else
3617  GCC=
3618fi
3619ac_test_CFLAGS=${CFLAGS+set}
3620ac_save_CFLAGS=$CFLAGS
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3622$as_echo_n "checking whether $CC accepts -g... " >&6; }
3623if ${ac_cv_prog_cc_g+:} false; then :
3624  $as_echo_n "(cached) " >&6
3625else
3626  ac_save_c_werror_flag=$ac_c_werror_flag
3627   ac_c_werror_flag=yes
3628   ac_cv_prog_cc_g=no
3629   CFLAGS="-g"
3630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631/* end confdefs.h.  */
3632
3633int
3634main ()
3635{
3636
3637  ;
3638  return 0;
3639}
3640_ACEOF
3641if ac_fn_c_try_compile "$LINENO"; then :
3642  ac_cv_prog_cc_g=yes
3643else
3644  CFLAGS=""
3645      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h.  */
3647
3648int
3649main ()
3650{
3651
3652  ;
3653  return 0;
3654}
3655_ACEOF
3656if ac_fn_c_try_compile "$LINENO"; then :
3657
3658else
3659  ac_c_werror_flag=$ac_save_c_werror_flag
3660	 CFLAGS="-g"
3661	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662/* end confdefs.h.  */
3663
3664int
3665main ()
3666{
3667
3668  ;
3669  return 0;
3670}
3671_ACEOF
3672if ac_fn_c_try_compile "$LINENO"; then :
3673  ac_cv_prog_cc_g=yes
3674fi
3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676fi
3677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678fi
3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680   ac_c_werror_flag=$ac_save_c_werror_flag
3681fi
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3683$as_echo "$ac_cv_prog_cc_g" >&6; }
3684if test "$ac_test_CFLAGS" = set; then
3685  CFLAGS=$ac_save_CFLAGS
3686elif test $ac_cv_prog_cc_g = yes; then
3687  if test "$GCC" = yes; then
3688    CFLAGS="-g -O2"
3689  else
3690    CFLAGS="-g"
3691  fi
3692else
3693  if test "$GCC" = yes; then
3694    CFLAGS="-O2"
3695  else
3696    CFLAGS=
3697  fi
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3700$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3701if ${ac_cv_prog_cc_c89+:} false; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  ac_cv_prog_cc_c89=no
3705ac_save_CC=$CC
3706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707/* end confdefs.h.  */
3708#include <stdarg.h>
3709#include <stdio.h>
3710#include <sys/types.h>
3711#include <sys/stat.h>
3712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3713struct buf { int x; };
3714FILE * (*rcsopen) (struct buf *, struct stat *, int);
3715static char *e (p, i)
3716     char **p;
3717     int i;
3718{
3719  return p[i];
3720}
3721static char *f (char * (*g) (char **, int), char **p, ...)
3722{
3723  char *s;
3724  va_list v;
3725  va_start (v,p);
3726  s = g (p, va_arg (v,int));
3727  va_end (v);
3728  return s;
3729}
3730
3731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3732   function prototypes and stuff, but not '\xHH' hex character constants.
3733   These don't provoke an error unfortunately, instead are silently treated
3734   as 'x'.  The following induces an error, until -std is added to get
3735   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3736   array size at least.  It's necessary to write '\x00'==0 to get something
3737   that's true only with -std.  */
3738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3739
3740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3741   inside strings and character constants.  */
3742#define FOO(x) 'x'
3743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3744
3745int test (int i, double x);
3746struct s1 {int (*f) (int a);};
3747struct s2 {int (*f) (double a);};
3748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3749int argc;
3750char **argv;
3751int
3752main ()
3753{
3754return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3755  ;
3756  return 0;
3757}
3758_ACEOF
3759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3760	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3761do
3762  CC="$ac_save_CC $ac_arg"
3763  if ac_fn_c_try_compile "$LINENO"; then :
3764  ac_cv_prog_cc_c89=$ac_arg
3765fi
3766rm -f core conftest.err conftest.$ac_objext
3767  test "x$ac_cv_prog_cc_c89" != "xno" && break
3768done
3769rm -f conftest.$ac_ext
3770CC=$ac_save_CC
3771
3772fi
3773# AC_CACHE_VAL
3774case "x$ac_cv_prog_cc_c89" in
3775  x)
3776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3777$as_echo "none needed" >&6; } ;;
3778  xno)
3779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3780$as_echo "unsupported" >&6; } ;;
3781  *)
3782    CC="$CC $ac_cv_prog_cc_c89"
3783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3785esac
3786if test "x$ac_cv_prog_cc_c89" != xno; then :
3787
3788fi
3789
3790ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795
3796depcc="$CC"   am_compiler_list=
3797
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3799$as_echo_n "checking dependency style of $depcc... " >&6; }
3800if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3801  $as_echo_n "(cached) " >&6
3802else
3803  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3804  # We make a subdir and do the tests there.  Otherwise we can end up
3805  # making bogus files that we don't know about and never remove.  For
3806  # instance it was reported that on HP-UX the gcc test will end up
3807  # making a dummy file named `D' -- because `-MD' means `put the output
3808  # in D'.
3809  mkdir conftest.dir
3810  # Copy depcomp to subdir because otherwise we won't find it if we're
3811  # using a relative directory.
3812  cp "$am_depcomp" conftest.dir
3813  cd conftest.dir
3814  # We will build objects and dependencies in a subdirectory because
3815  # it helps to detect inapplicable dependency modes.  For instance
3816  # both Tru64's cc and ICC support -MD to output dependencies as a
3817  # side effect of compilation, but ICC will put the dependencies in
3818  # the current directory while Tru64 will put them in the object
3819  # directory.
3820  mkdir sub
3821
3822  am_cv_CC_dependencies_compiler_type=none
3823  if test "$am_compiler_list" = ""; then
3824     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3825  fi
3826  am__universal=false
3827  case " $depcc " in #(
3828     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3829     esac
3830
3831  for depmode in $am_compiler_list; do
3832    # Setup a source with many dependencies, because some compilers
3833    # like to wrap large dependency lists on column 80 (with \), and
3834    # we should not choose a depcomp mode which is confused by this.
3835    #
3836    # We need to recreate these files for each test, as the compiler may
3837    # overwrite some of them when testing with obscure command lines.
3838    # This happens at least with the AIX C compiler.
3839    : > sub/conftest.c
3840    for i in 1 2 3 4 5 6; do
3841      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3842      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3843      # Solaris 8's {/usr,}/bin/sh.
3844      touch sub/conftst$i.h
3845    done
3846    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3847
3848    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3849    # mode.  It turns out that the SunPro C++ compiler does not properly
3850    # handle `-M -o', and we need to detect this.  Also, some Intel
3851    # versions had trouble with output in subdirs
3852    am__obj=sub/conftest.${OBJEXT-o}
3853    am__minus_obj="-o $am__obj"
3854    case $depmode in
3855    gcc)
3856      # This depmode causes a compiler race in universal mode.
3857      test "$am__universal" = false || continue
3858      ;;
3859    nosideeffect)
3860      # after this tag, mechanisms are not by side-effect, so they'll
3861      # only be used when explicitly requested
3862      if test "x$enable_dependency_tracking" = xyes; then
3863	continue
3864      else
3865	break
3866      fi
3867      ;;
3868    msvisualcpp | msvcmsys)
3869      # This compiler won't grok `-c -o', but also, the minuso test has
3870      # not run yet.  These depmodes are late enough in the game, and
3871      # so weak that their functioning should not be impacted.
3872      am__obj=conftest.${OBJEXT-o}
3873      am__minus_obj=
3874      ;;
3875    none) break ;;
3876    esac
3877    if depmode=$depmode \
3878       source=sub/conftest.c object=$am__obj \
3879       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3880       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3881         >/dev/null 2>conftest.err &&
3882       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3883       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3884       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3885       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3886      # icc doesn't choke on unknown options, it will just issue warnings
3887      # or remarks (even with -Werror).  So we grep stderr for any message
3888      # that says an option was ignored or not supported.
3889      # When given -MP, icc 7.0 and 7.1 complain thusly:
3890      #   icc: Command line warning: ignoring option '-M'; no argument required
3891      # The diagnosis changed in icc 8.0:
3892      #   icc: Command line remark: option '-MP' not supported
3893      if (grep 'ignoring option' conftest.err ||
3894          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3895        am_cv_CC_dependencies_compiler_type=$depmode
3896        break
3897      fi
3898    fi
3899  done
3900
3901  cd ..
3902  rm -rf conftest.dir
3903else
3904  am_cv_CC_dependencies_compiler_type=none
3905fi
3906
3907fi
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3909$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3910CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3911
3912 if
3913  test "x$enable_dependency_tracking" != xno \
3914  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3915  am__fastdepCC_TRUE=
3916  am__fastdepCC_FALSE='#'
3917else
3918  am__fastdepCC_TRUE='#'
3919  am__fastdepCC_FALSE=
3920fi
3921
3922
3923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3924$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3925if ${ac_cv_prog_cc_c99+:} false; then :
3926  $as_echo_n "(cached) " >&6
3927else
3928  ac_cv_prog_cc_c99=no
3929ac_save_CC=$CC
3930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h.  */
3932#include <stdarg.h>
3933#include <stdbool.h>
3934#include <stdlib.h>
3935#include <wchar.h>
3936#include <stdio.h>
3937
3938// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3939#define debug(...) fprintf (stderr, __VA_ARGS__)
3940#define showlist(...) puts (#__VA_ARGS__)
3941#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3942static void
3943test_varargs_macros (void)
3944{
3945  int x = 1234;
3946  int y = 5678;
3947  debug ("Flag");
3948  debug ("X = %d\n", x);
3949  showlist (The first, second, and third items.);
3950  report (x>y, "x is %d but y is %d", x, y);
3951}
3952
3953// Check long long types.
3954#define BIG64 18446744073709551615ull
3955#define BIG32 4294967295ul
3956#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3957#if !BIG_OK
3958  your preprocessor is broken;
3959#endif
3960#if BIG_OK
3961#else
3962  your preprocessor is broken;
3963#endif
3964static long long int bignum = -9223372036854775807LL;
3965static unsigned long long int ubignum = BIG64;
3966
3967struct incomplete_array
3968{
3969  int datasize;
3970  double data[];
3971};
3972
3973struct named_init {
3974  int number;
3975  const wchar_t *name;
3976  double average;
3977};
3978
3979typedef const char *ccp;
3980
3981static inline int
3982test_restrict (ccp restrict text)
3983{
3984  // See if C++-style comments work.
3985  // Iterate through items via the restricted pointer.
3986  // Also check for declarations in for loops.
3987  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3988    continue;
3989  return 0;
3990}
3991
3992// Check varargs and va_copy.
3993static void
3994test_varargs (const char *format, ...)
3995{
3996  va_list args;
3997  va_start (args, format);
3998  va_list args_copy;
3999  va_copy (args_copy, args);
4000
4001  const char *str;
4002  int number;
4003  float fnumber;
4004
4005  while (*format)
4006    {
4007      switch (*format++)
4008	{
4009	case 's': // string
4010	  str = va_arg (args_copy, const char *);
4011	  break;
4012	case 'd': // int
4013	  number = va_arg (args_copy, int);
4014	  break;
4015	case 'f': // float
4016	  fnumber = va_arg (args_copy, double);
4017	  break;
4018	default:
4019	  break;
4020	}
4021    }
4022  va_end (args_copy);
4023  va_end (args);
4024}
4025
4026int
4027main ()
4028{
4029
4030  // Check bool.
4031  _Bool success = false;
4032
4033  // Check restrict.
4034  if (test_restrict ("String literal") == 0)
4035    success = true;
4036  char *restrict newvar = "Another string";
4037
4038  // Check varargs.
4039  test_varargs ("s, d' f .", "string", 65, 34.234);
4040  test_varargs_macros ();
4041
4042  // Check flexible array members.
4043  struct incomplete_array *ia =
4044    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4045  ia->datasize = 10;
4046  for (int i = 0; i < ia->datasize; ++i)
4047    ia->data[i] = i * 1.234;
4048
4049  // Check named initializers.
4050  struct named_init ni = {
4051    .number = 34,
4052    .name = L"Test wide string",
4053    .average = 543.34343,
4054  };
4055
4056  ni.number = 58;
4057
4058  int dynamic_array[ni.number];
4059  dynamic_array[ni.number - 1] = 543;
4060
4061  // work around unused variable warnings
4062  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4063	  || dynamic_array[ni.number - 1] != 543);
4064
4065  ;
4066  return 0;
4067}
4068_ACEOF
4069for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4070do
4071  CC="$ac_save_CC $ac_arg"
4072  if ac_fn_c_try_compile "$LINENO"; then :
4073  ac_cv_prog_cc_c99=$ac_arg
4074fi
4075rm -f core conftest.err conftest.$ac_objext
4076  test "x$ac_cv_prog_cc_c99" != "xno" && break
4077done
4078rm -f conftest.$ac_ext
4079CC=$ac_save_CC
4080
4081fi
4082# AC_CACHE_VAL
4083case "x$ac_cv_prog_cc_c99" in
4084  x)
4085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4086$as_echo "none needed" >&6; } ;;
4087  xno)
4088    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4089$as_echo "unsupported" >&6; } ;;
4090  *)
4091    CC="$CC $ac_cv_prog_cc_c99"
4092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4093$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4094esac
4095if test "x$ac_cv_prog_cc_c99" != xno; then :
4096
4097fi
4098
4099
4100
4101ac_ext=c
4102ac_cpp='$CPP $CPPFLAGS'
4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4107$as_echo_n "checking how to run the C preprocessor... " >&6; }
4108# On Suns, sometimes $CPP names a directory.
4109if test -n "$CPP" && test -d "$CPP"; then
4110  CPP=
4111fi
4112if test -z "$CPP"; then
4113  if ${ac_cv_prog_CPP+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116      # Double quotes because CPP needs to be expanded
4117    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4118    do
4119      ac_preproc_ok=false
4120for ac_c_preproc_warn_flag in '' yes
4121do
4122  # Use a header file that comes with gcc, so configuring glibc
4123  # with a fresh cross-compiler works.
4124  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125  # <limits.h> exists even on freestanding compilers.
4126  # On the NeXT, cc -E runs the code through the compiler's parser,
4127  # not just through cpp. "Syntax error" is here to catch this case.
4128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#ifdef __STDC__
4131# include <limits.h>
4132#else
4133# include <assert.h>
4134#endif
4135		     Syntax error
4136_ACEOF
4137if ac_fn_c_try_cpp "$LINENO"; then :
4138
4139else
4140  # Broken: fails on valid input.
4141continue
4142fi
4143rm -f conftest.err conftest.i conftest.$ac_ext
4144
4145  # OK, works on sane cases.  Now check whether nonexistent headers
4146  # can be detected and how.
4147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149#include <ac_nonexistent.h>
4150_ACEOF
4151if ac_fn_c_try_cpp "$LINENO"; then :
4152  # Broken: success on invalid input.
4153continue
4154else
4155  # Passes both tests.
4156ac_preproc_ok=:
4157break
4158fi
4159rm -f conftest.err conftest.i conftest.$ac_ext
4160
4161done
4162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163rm -f conftest.i conftest.err conftest.$ac_ext
4164if $ac_preproc_ok; then :
4165  break
4166fi
4167
4168    done
4169    ac_cv_prog_CPP=$CPP
4170
4171fi
4172  CPP=$ac_cv_prog_CPP
4173else
4174  ac_cv_prog_CPP=$CPP
4175fi
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4177$as_echo "$CPP" >&6; }
4178ac_preproc_ok=false
4179for ac_c_preproc_warn_flag in '' yes
4180do
4181  # Use a header file that comes with gcc, so configuring glibc
4182  # with a fresh cross-compiler works.
4183  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184  # <limits.h> exists even on freestanding compilers.
4185  # On the NeXT, cc -E runs the code through the compiler's parser,
4186  # not just through cpp. "Syntax error" is here to catch this case.
4187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189#ifdef __STDC__
4190# include <limits.h>
4191#else
4192# include <assert.h>
4193#endif
4194		     Syntax error
4195_ACEOF
4196if ac_fn_c_try_cpp "$LINENO"; then :
4197
4198else
4199  # Broken: fails on valid input.
4200continue
4201fi
4202rm -f conftest.err conftest.i conftest.$ac_ext
4203
4204  # OK, works on sane cases.  Now check whether nonexistent headers
4205  # can be detected and how.
4206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h.  */
4208#include <ac_nonexistent.h>
4209_ACEOF
4210if ac_fn_c_try_cpp "$LINENO"; then :
4211  # Broken: success on invalid input.
4212continue
4213else
4214  # Passes both tests.
4215ac_preproc_ok=:
4216break
4217fi
4218rm -f conftest.err conftest.i conftest.$ac_ext
4219
4220done
4221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222rm -f conftest.i conftest.err conftest.$ac_ext
4223if $ac_preproc_ok; then :
4224
4225else
4226  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4229See \`config.log' for more details" "$LINENO" 5; }
4230fi
4231
4232ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4240$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4241if ${ac_cv_path_GREP+:} false; then :
4242  $as_echo_n "(cached) " >&6
4243else
4244  if test -z "$GREP"; then
4245  ac_path_GREP_found=false
4246  # Loop through the user's path and test for each of PROGNAME-LIST
4247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4249do
4250  IFS=$as_save_IFS
4251  test -z "$as_dir" && as_dir=.
4252    for ac_prog in grep ggrep; do
4253    for ac_exec_ext in '' $ac_executable_extensions; do
4254      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4255      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4256# Check for GNU ac_path_GREP and select it if it is found.
4257  # Check for GNU $ac_path_GREP
4258case `"$ac_path_GREP" --version 2>&1` in
4259*GNU*)
4260  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4261*)
4262  ac_count=0
4263  $as_echo_n 0123456789 >"conftest.in"
4264  while :
4265  do
4266    cat "conftest.in" "conftest.in" >"conftest.tmp"
4267    mv "conftest.tmp" "conftest.in"
4268    cp "conftest.in" "conftest.nl"
4269    $as_echo 'GREP' >> "conftest.nl"
4270    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4271    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4272    as_fn_arith $ac_count + 1 && ac_count=$as_val
4273    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4274      # Best one so far, save it but keep looking for a better one
4275      ac_cv_path_GREP="$ac_path_GREP"
4276      ac_path_GREP_max=$ac_count
4277    fi
4278    # 10*(2^10) chars as input seems more than enough
4279    test $ac_count -gt 10 && break
4280  done
4281  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4282esac
4283
4284      $ac_path_GREP_found && break 3
4285    done
4286  done
4287  done
4288IFS=$as_save_IFS
4289  if test -z "$ac_cv_path_GREP"; then
4290    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4291  fi
4292else
4293  ac_cv_path_GREP=$GREP
4294fi
4295
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4298$as_echo "$ac_cv_path_GREP" >&6; }
4299 GREP="$ac_cv_path_GREP"
4300
4301
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4303$as_echo_n "checking for egrep... " >&6; }
4304if ${ac_cv_path_EGREP+:} false; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4308   then ac_cv_path_EGREP="$GREP -E"
4309   else
4310     if test -z "$EGREP"; then
4311  ac_path_EGREP_found=false
4312  # Loop through the user's path and test for each of PROGNAME-LIST
4313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315do
4316  IFS=$as_save_IFS
4317  test -z "$as_dir" && as_dir=.
4318    for ac_prog in egrep; do
4319    for ac_exec_ext in '' $ac_executable_extensions; do
4320      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4321      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4322# Check for GNU ac_path_EGREP and select it if it is found.
4323  # Check for GNU $ac_path_EGREP
4324case `"$ac_path_EGREP" --version 2>&1` in
4325*GNU*)
4326  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4327*)
4328  ac_count=0
4329  $as_echo_n 0123456789 >"conftest.in"
4330  while :
4331  do
4332    cat "conftest.in" "conftest.in" >"conftest.tmp"
4333    mv "conftest.tmp" "conftest.in"
4334    cp "conftest.in" "conftest.nl"
4335    $as_echo 'EGREP' >> "conftest.nl"
4336    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338    as_fn_arith $ac_count + 1 && ac_count=$as_val
4339    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4340      # Best one so far, save it but keep looking for a better one
4341      ac_cv_path_EGREP="$ac_path_EGREP"
4342      ac_path_EGREP_max=$ac_count
4343    fi
4344    # 10*(2^10) chars as input seems more than enough
4345    test $ac_count -gt 10 && break
4346  done
4347  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348esac
4349
4350      $ac_path_EGREP_found && break 3
4351    done
4352  done
4353  done
4354IFS=$as_save_IFS
4355  if test -z "$ac_cv_path_EGREP"; then
4356    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4357  fi
4358else
4359  ac_cv_path_EGREP=$EGREP
4360fi
4361
4362   fi
4363fi
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4365$as_echo "$ac_cv_path_EGREP" >&6; }
4366 EGREP="$ac_cv_path_EGREP"
4367
4368
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4370$as_echo_n "checking for ANSI C header files... " >&6; }
4371if ${ac_cv_header_stdc+:} false; then :
4372  $as_echo_n "(cached) " >&6
4373else
4374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375/* end confdefs.h.  */
4376#include <stdlib.h>
4377#include <stdarg.h>
4378#include <string.h>
4379#include <float.h>
4380
4381int
4382main ()
4383{
4384
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_compile "$LINENO"; then :
4390  ac_cv_header_stdc=yes
4391else
4392  ac_cv_header_stdc=no
4393fi
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395
4396if test $ac_cv_header_stdc = yes; then
4397  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h.  */
4400#include <string.h>
4401
4402_ACEOF
4403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404  $EGREP "memchr" >/dev/null 2>&1; then :
4405
4406else
4407  ac_cv_header_stdc=no
4408fi
4409rm -f conftest*
4410
4411fi
4412
4413if test $ac_cv_header_stdc = yes; then
4414  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h.  */
4417#include <stdlib.h>
4418
4419_ACEOF
4420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4421  $EGREP "free" >/dev/null 2>&1; then :
4422
4423else
4424  ac_cv_header_stdc=no
4425fi
4426rm -f conftest*
4427
4428fi
4429
4430if test $ac_cv_header_stdc = yes; then
4431  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4432  if test "$cross_compiling" = yes; then :
4433  :
4434else
4435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436/* end confdefs.h.  */
4437#include <ctype.h>
4438#include <stdlib.h>
4439#if ((' ' & 0x0FF) == 0x020)
4440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4442#else
4443# define ISLOWER(c) \
4444		   (('a' <= (c) && (c) <= 'i') \
4445		     || ('j' <= (c) && (c) <= 'r') \
4446		     || ('s' <= (c) && (c) <= 'z'))
4447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4448#endif
4449
4450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4451int
4452main ()
4453{
4454  int i;
4455  for (i = 0; i < 256; i++)
4456    if (XOR (islower (i), ISLOWER (i))
4457	|| toupper (i) != TOUPPER (i))
4458      return 2;
4459  return 0;
4460}
4461_ACEOF
4462if ac_fn_c_try_run "$LINENO"; then :
4463
4464else
4465  ac_cv_header_stdc=no
4466fi
4467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4468  conftest.$ac_objext conftest.beam conftest.$ac_ext
4469fi
4470
4471fi
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4474$as_echo "$ac_cv_header_stdc" >&6; }
4475if test $ac_cv_header_stdc = yes; then
4476
4477$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4478
4479fi
4480
4481# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4482for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4483		  inttypes.h stdint.h unistd.h
4484do :
4485  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4486ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4487"
4488if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4489  cat >>confdefs.h <<_ACEOF
4490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4491_ACEOF
4492
4493fi
4494
4495done
4496
4497
4498
4499
4500if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4501	if test -n "$ac_tool_prefix"; then
4502  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4503set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505$as_echo_n "checking for $ac_word... " >&6; }
4506if ${ac_cv_path_PKG_CONFIG+:} false; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  case $PKG_CONFIG in
4510  [\\/]* | ?:[\\/]*)
4511  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4512  ;;
4513  *)
4514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517  IFS=$as_save_IFS
4518  test -z "$as_dir" && as_dir=.
4519    for ac_exec_ext in '' $ac_executable_extensions; do
4520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523    break 2
4524  fi
4525done
4526  done
4527IFS=$as_save_IFS
4528
4529  ;;
4530esac
4531fi
4532PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4533if test -n "$PKG_CONFIG"; then
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4535$as_echo "$PKG_CONFIG" >&6; }
4536else
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538$as_echo "no" >&6; }
4539fi
4540
4541
4542fi
4543if test -z "$ac_cv_path_PKG_CONFIG"; then
4544  ac_pt_PKG_CONFIG=$PKG_CONFIG
4545  # Extract the first word of "pkg-config", so it can be a program name with args.
4546set dummy pkg-config; ac_word=$2
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548$as_echo_n "checking for $ac_word... " >&6; }
4549if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  case $ac_pt_PKG_CONFIG in
4553  [\\/]* | ?:[\\/]*)
4554  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4555  ;;
4556  *)
4557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560  IFS=$as_save_IFS
4561  test -z "$as_dir" && as_dir=.
4562    for ac_exec_ext in '' $ac_executable_extensions; do
4563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566    break 2
4567  fi
4568done
4569  done
4570IFS=$as_save_IFS
4571
4572  ;;
4573esac
4574fi
4575ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4576if test -n "$ac_pt_PKG_CONFIG"; then
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4578$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4579else
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582fi
4583
4584  if test "x$ac_pt_PKG_CONFIG" = x; then
4585    PKG_CONFIG=""
4586  else
4587    case $cross_compiling:$ac_tool_warned in
4588yes:)
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591ac_tool_warned=yes ;;
4592esac
4593    PKG_CONFIG=$ac_pt_PKG_CONFIG
4594  fi
4595else
4596  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4597fi
4598
4599fi
4600if test -n "$PKG_CONFIG"; then
4601	_pkg_min_version=0.9.0
4602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4603$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4604	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4606$as_echo "yes" >&6; }
4607	else
4608		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609$as_echo "no" >&6; }
4610		PKG_CONFIG=""
4611	fi
4612
4613fi
4614# Make sure we can run config.sub.
4615$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4616  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4619$as_echo_n "checking build system type... " >&6; }
4620if ${ac_cv_build+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  ac_build_alias=$build_alias
4624test "x$ac_build_alias" = x &&
4625  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4626test "x$ac_build_alias" = x &&
4627  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4628ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4629  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4630
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4633$as_echo "$ac_cv_build" >&6; }
4634case $ac_cv_build in
4635*-*-*) ;;
4636*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4637esac
4638build=$ac_cv_build
4639ac_save_IFS=$IFS; IFS='-'
4640set x $ac_cv_build
4641shift
4642build_cpu=$1
4643build_vendor=$2
4644shift; shift
4645# Remember, the first character of IFS is used to create $*,
4646# except with old shells:
4647build_os=$*
4648IFS=$ac_save_IFS
4649case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4650
4651
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4653$as_echo_n "checking host system type... " >&6; }
4654if ${ac_cv_host+:} false; then :
4655  $as_echo_n "(cached) " >&6
4656else
4657  if test "x$host_alias" = x; then
4658  ac_cv_host=$ac_cv_build
4659else
4660  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4661    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4662fi
4663
4664fi
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4666$as_echo "$ac_cv_host" >&6; }
4667case $ac_cv_host in
4668*-*-*) ;;
4669*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4670esac
4671host=$ac_cv_host
4672ac_save_IFS=$IFS; IFS='-'
4673set x $ac_cv_host
4674shift
4675host_cpu=$1
4676host_vendor=$2
4677shift; shift
4678# Remember, the first character of IFS is used to create $*,
4679# except with old shells:
4680host_os=$*
4681IFS=$ac_save_IFS
4682case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4683
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4686$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4687if ${ac_cv_path_SED+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4691     for ac_i in 1 2 3 4 5 6 7; do
4692       ac_script="$ac_script$as_nl$ac_script"
4693     done
4694     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4695     { ac_script=; unset ac_script;}
4696     if test -z "$SED"; then
4697  ac_path_SED_found=false
4698  # Loop through the user's path and test for each of PROGNAME-LIST
4699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702  IFS=$as_save_IFS
4703  test -z "$as_dir" && as_dir=.
4704    for ac_prog in sed gsed; do
4705    for ac_exec_ext in '' $ac_executable_extensions; do
4706      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4707      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4708# Check for GNU ac_path_SED and select it if it is found.
4709  # Check for GNU $ac_path_SED
4710case `"$ac_path_SED" --version 2>&1` in
4711*GNU*)
4712  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4713*)
4714  ac_count=0
4715  $as_echo_n 0123456789 >"conftest.in"
4716  while :
4717  do
4718    cat "conftest.in" "conftest.in" >"conftest.tmp"
4719    mv "conftest.tmp" "conftest.in"
4720    cp "conftest.in" "conftest.nl"
4721    $as_echo '' >> "conftest.nl"
4722    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4723    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4724    as_fn_arith $ac_count + 1 && ac_count=$as_val
4725    if test $ac_count -gt ${ac_path_SED_max-0}; then
4726      # Best one so far, save it but keep looking for a better one
4727      ac_cv_path_SED="$ac_path_SED"
4728      ac_path_SED_max=$ac_count
4729    fi
4730    # 10*(2^10) chars as input seems more than enough
4731    test $ac_count -gt 10 && break
4732  done
4733  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734esac
4735
4736      $ac_path_SED_found && break 3
4737    done
4738  done
4739  done
4740IFS=$as_save_IFS
4741  if test -z "$ac_cv_path_SED"; then
4742    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4743  fi
4744else
4745  ac_cv_path_SED=$SED
4746fi
4747
4748fi
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4750$as_echo "$ac_cv_path_SED" >&6; }
4751 SED="$ac_cv_path_SED"
4752  rm -f conftest.sed
4753
4754
4755
4756
4757
4758if  test "x$GCC" = xyes ; then
4759    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4760-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4761-Wbad-function-cast -Wformat=2"
4762    case `$CC -dumpversion` in
4763    3.4.* | 4.*)
4764	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4765	;;
4766    esac
4767else
4768    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4769if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4770  SUNCC="yes"
4771else
4772  SUNCC="no"
4773fi
4774
4775    if test "x$SUNCC" = "xyes"; then
4776	CWARNFLAGS="-v"
4777    fi
4778fi
4779
4780
4781
4782# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4783
4784
4785
4786# Check whether --enable-strict-compilation was given.
4787if test "${enable_strict_compilation+set}" = set; then :
4788  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4789else
4790  STRICT_COMPILE=no
4791fi
4792
4793if test "x$STRICT_COMPILE" = "xyes"; then
4794	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4795if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4796  SUNCC="yes"
4797else
4798  SUNCC="no"
4799fi
4800
4801	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4802if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4803  INTELCC="yes"
4804else
4805  INTELCC="no"
4806fi
4807
4808	if test "x$GCC" = xyes ; then
4809		STRICT_CFLAGS="-pedantic -Werror"
4810	elif test "x$SUNCC" = "xyes"; then
4811		STRICT_CFLAGS="-errwarn"
4812    elif test "x$INTELCC" = "xyes"; then
4813		STRICT_CFLAGS="-Werror"
4814	fi
4815fi
4816CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4817
4818
4819
4820
4821cat >>confdefs.h <<_ACEOF
4822#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4823_ACEOF
4824
4825	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4826	if test "x$PVM" = "x"; then
4827		PVM="0"
4828	fi
4829
4830cat >>confdefs.h <<_ACEOF
4831#define PACKAGE_VERSION_MINOR $PVM
4832_ACEOF
4833
4834	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4835	if test "x$PVP" = "x"; then
4836		PVP="0"
4837	fi
4838
4839cat >>confdefs.h <<_ACEOF
4840#define PACKAGE_VERSION_PATCHLEVEL $PVP
4841_ACEOF
4842
4843
4844
4845CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4846mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4847|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4848echo 'git directory not found: installing possibly empty changelog.' >&2)"
4849
4850
4851
4852
4853macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4854INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4855mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4856|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4857echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4858
4859
4860
4861
4862
4863
4864if test x$APP_MAN_SUFFIX = x    ; then
4865    APP_MAN_SUFFIX=1
4866fi
4867if test x$APP_MAN_DIR = x    ; then
4868    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4869fi
4870
4871if test x$LIB_MAN_SUFFIX = x    ; then
4872    LIB_MAN_SUFFIX=3
4873fi
4874if test x$LIB_MAN_DIR = x    ; then
4875    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4876fi
4877
4878if test x$FILE_MAN_SUFFIX = x    ; then
4879    case $host_os in
4880	solaris*)	FILE_MAN_SUFFIX=4  ;;
4881	*)		FILE_MAN_SUFFIX=5  ;;
4882    esac
4883fi
4884if test x$FILE_MAN_DIR = x    ; then
4885    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4886fi
4887
4888if test x$MISC_MAN_SUFFIX = x    ; then
4889    case $host_os in
4890	solaris*)	MISC_MAN_SUFFIX=5  ;;
4891	*)		MISC_MAN_SUFFIX=7  ;;
4892    esac
4893fi
4894if test x$MISC_MAN_DIR = x    ; then
4895    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4896fi
4897
4898if test x$DRIVER_MAN_SUFFIX = x    ; then
4899    case $host_os in
4900	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4901	*)		DRIVER_MAN_SUFFIX=4  ;;
4902    esac
4903fi
4904if test x$DRIVER_MAN_DIR = x    ; then
4905    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4906fi
4907
4908if test x$ADMIN_MAN_SUFFIX = x    ; then
4909    case $host_os in
4910	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4911	*)		ADMIN_MAN_SUFFIX=8  ;;
4912    esac
4913fi
4914if test x$ADMIN_MAN_DIR = x    ; then
4915    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4916fi
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932XORG_MAN_PAGE="X Version 11"
4933
4934MAN_SUBSTS="\
4935	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4936	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4937	-e 's|__xservername__|Xorg|g' \
4938	-e 's|__xconfigfile__|xorg.conf|g' \
4939	-e 's|__projectroot__|\$(prefix)|g' \
4940	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4941	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4942	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4943	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4944	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4945	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4946	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4947
4948
4949
4950# Check whether --enable-silent-rules was given.
4951if test "${enable_silent_rules+set}" = set; then :
4952  enableval=$enable_silent_rules;
4953fi
4954
4955case $enable_silent_rules in
4956yes) AM_DEFAULT_VERBOSITY=0;;
4957no)  AM_DEFAULT_VERBOSITY=1;;
4958*)   AM_DEFAULT_VERBOSITY=0;;
4959esac
4960AM_BACKSLASH='\'
4961
4962
4963
4964
4965# Check whether --enable-docs was given.
4966if test "${enable_docs+set}" = set; then :
4967  enableval=$enable_docs; build_docs=$enableval
4968else
4969  build_docs=yes
4970fi
4971
4972
4973 if test x$build_docs = xyes; then
4974  ENABLE_DOCS_TRUE=
4975  ENABLE_DOCS_FALSE='#'
4976else
4977  ENABLE_DOCS_TRUE='#'
4978  ENABLE_DOCS_FALSE=
4979fi
4980
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
4982$as_echo_n "checking whether to build documentation... " >&6; }
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
4984$as_echo "$build_docs" >&6; }
4985
4986
4987
4988
4989
4990# Check whether --with-xmlto was given.
4991if test "${with_xmlto+set}" = set; then :
4992  withval=$with_xmlto; use_xmlto=$withval
4993else
4994  use_xmlto=auto
4995fi
4996
4997
4998
4999if test "x$use_xmlto" = x"auto"; then
5000   # Extract the first word of "xmlto", so it can be a program name with args.
5001set dummy xmlto; ac_word=$2
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003$as_echo_n "checking for $ac_word... " >&6; }
5004if ${ac_cv_path_XMLTO+:} false; then :
5005  $as_echo_n "(cached) " >&6
5006else
5007  case $XMLTO in
5008  [\\/]* | ?:[\\/]*)
5009  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5010  ;;
5011  *)
5012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015  IFS=$as_save_IFS
5016  test -z "$as_dir" && as_dir=.
5017    for ac_exec_ext in '' $ac_executable_extensions; do
5018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021    break 2
5022  fi
5023done
5024  done
5025IFS=$as_save_IFS
5026
5027  ;;
5028esac
5029fi
5030XMLTO=$ac_cv_path_XMLTO
5031if test -n "$XMLTO"; then
5032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5033$as_echo "$XMLTO" >&6; }
5034else
5035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036$as_echo "no" >&6; }
5037fi
5038
5039
5040   if test "x$XMLTO" = "x"; then
5041        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
5042$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
5043	have_xmlto=no
5044   else
5045        have_xmlto=yes
5046   fi
5047elif test "x$use_xmlto" = x"yes" ; then
5048   # Extract the first word of "xmlto", so it can be a program name with args.
5049set dummy xmlto; ac_word=$2
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051$as_echo_n "checking for $ac_word... " >&6; }
5052if ${ac_cv_path_XMLTO+:} false; then :
5053  $as_echo_n "(cached) " >&6
5054else
5055  case $XMLTO in
5056  [\\/]* | ?:[\\/]*)
5057  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5058  ;;
5059  *)
5060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063  IFS=$as_save_IFS
5064  test -z "$as_dir" && as_dir=.
5065    for ac_exec_ext in '' $ac_executable_extensions; do
5066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069    break 2
5070  fi
5071done
5072  done
5073IFS=$as_save_IFS
5074
5075  ;;
5076esac
5077fi
5078XMLTO=$ac_cv_path_XMLTO
5079if test -n "$XMLTO"; then
5080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5081$as_echo "$XMLTO" >&6; }
5082else
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084$as_echo "no" >&6; }
5085fi
5086
5087
5088   if test "x$XMLTO" = "x"; then
5089        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
5090   fi
5091   have_xmlto=yes
5092elif test "x$use_xmlto" = x"no" ; then
5093   if test "x$XMLTO" != "x"; then
5094      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
5095$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
5096   fi
5097   have_xmlto=no
5098else
5099   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
5100fi
5101
5102# Test for a minimum version of xmlto, if provided.
5103if test "$have_xmlto" = yes; then
5104    # scrape the xmlto version
5105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
5106$as_echo_n "checking the xmlto version... " >&6; }
5107    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
5108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
5109$as_echo "$xmlto_version" >&6; }
5110    as_arg_v1=$xmlto_version
5111as_arg_v2=0.0.20
5112awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5113case $? in #(
5114  1) :
5115    if test "x$use_xmlto" = xauto; then
5116            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
5117$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
5118            have_xmlto=no
5119        else
5120            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
5121        fi ;; #(
5122  0) :
5123     ;; #(
5124  2) :
5125     ;; #(
5126  *) :
5127     ;;
5128esac
5129fi
5130
5131# Test for the ability of xmlto to generate a text target
5132have_xmlto_text=no
5133cat > conftest.xml << "EOF"
5134EOF
5135if test "$have_xmlto" = yes; then :
5136  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
5137  have_xmlto_text=yes
5138else
5139  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
5140$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
5141fi
5142fi
5143rm -f conftest.xml
5144 if test $have_xmlto_text = yes; then
5145  HAVE_XMLTO_TEXT_TRUE=
5146  HAVE_XMLTO_TEXT_FALSE='#'
5147else
5148  HAVE_XMLTO_TEXT_TRUE='#'
5149  HAVE_XMLTO_TEXT_FALSE=
5150fi
5151
5152 if test "$have_xmlto" = yes; then
5153  HAVE_XMLTO_TRUE=
5154  HAVE_XMLTO_FALSE='#'
5155else
5156  HAVE_XMLTO_TRUE='#'
5157  HAVE_XMLTO_FALSE=
5158fi
5159
5160
5161
5162
5163
5164
5165# Check whether --with-fop was given.
5166if test "${with_fop+set}" = set; then :
5167  withval=$with_fop; use_fop=$withval
5168else
5169  use_fop=auto
5170fi
5171
5172
5173
5174if test "x$use_fop" = x"auto"; then
5175   # Extract the first word of "fop", so it can be a program name with args.
5176set dummy fop; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if ${ac_cv_path_FOP+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  case $FOP in
5183  [\\/]* | ?:[\\/]*)
5184  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5185  ;;
5186  *)
5187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190  IFS=$as_save_IFS
5191  test -z "$as_dir" && as_dir=.
5192    for ac_exec_ext in '' $ac_executable_extensions; do
5193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196    break 2
5197  fi
5198done
5199  done
5200IFS=$as_save_IFS
5201
5202  ;;
5203esac
5204fi
5205FOP=$ac_cv_path_FOP
5206if test -n "$FOP"; then
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5208$as_echo "$FOP" >&6; }
5209else
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213
5214
5215   if test "x$FOP" = "x"; then
5216        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
5217$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5218	have_fop=no
5219   else
5220        have_fop=yes
5221   fi
5222elif test "x$use_fop" = x"yes" ; then
5223   # Extract the first word of "fop", so it can be a program name with args.
5224set dummy fop; ac_word=$2
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226$as_echo_n "checking for $ac_word... " >&6; }
5227if ${ac_cv_path_FOP+:} false; then :
5228  $as_echo_n "(cached) " >&6
5229else
5230  case $FOP in
5231  [\\/]* | ?:[\\/]*)
5232  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5233  ;;
5234  *)
5235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238  IFS=$as_save_IFS
5239  test -z "$as_dir" && as_dir=.
5240    for ac_exec_ext in '' $ac_executable_extensions; do
5241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244    break 2
5245  fi
5246done
5247  done
5248IFS=$as_save_IFS
5249
5250  ;;
5251esac
5252fi
5253FOP=$ac_cv_path_FOP
5254if test -n "$FOP"; then
5255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5256$as_echo "$FOP" >&6; }
5257else
5258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
5260fi
5261
5262
5263   if test "x$FOP" = "x"; then
5264        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
5265   fi
5266   have_fop=yes
5267elif test "x$use_fop" = x"no" ; then
5268   if test "x$FOP" != "x"; then
5269      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5270$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5271   fi
5272   have_fop=no
5273else
5274   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
5275fi
5276 if test "$have_fop" = yes; then
5277  HAVE_FOP_TRUE=
5278  HAVE_FOP_FALSE='#'
5279else
5280  HAVE_FOP_TRUE='#'
5281  HAVE_FOP_FALSE=
5282fi
5283
5284
5285
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
5287$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
5288XORG_SGML_PATH=
5289if test -n "$PKG_CONFIG" && \
5290    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
5291  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
5292  ac_status=$?
5293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294  test $ac_status = 0; }; then
5295  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
5296else
5297  :
5298
5299fi
5300
5301# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
5302# the path and the name of the doc stylesheet
5303if test "x$XORG_SGML_PATH" != "x" ; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
5305$as_echo "$XORG_SGML_PATH" >&6; }
5306   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
5307   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
5308else
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310$as_echo "no" >&6; }
5311fi
5312
5313
5314
5315
5316 if test "x$XSL_STYLESHEET" != "x"; then
5317  HAVE_STYLESHEETS_TRUE=
5318  HAVE_STYLESHEETS_FALSE='#'
5319else
5320  HAVE_STYLESHEETS_TRUE='#'
5321  HAVE_STYLESHEETS_FALSE=
5322fi
5323
5324
5325
5326ac_config_headers="$ac_config_headers config.h"
5327
5328
5329
5330# Checks for programs.
5331case `pwd` in
5332  *\ * | *\	*)
5333    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5334$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5335esac
5336
5337
5338
5339macro_version='2.2.10'
5340macro_revision='1.3175'
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354ltmain="$ac_aux_dir/ltmain.sh"
5355
5356# Backslashify metacharacters that are still active within
5357# double-quoted strings.
5358sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5359
5360# Same as above, but do not quote variable references.
5361double_quote_subst='s/\(["`\\]\)/\\\1/g'
5362
5363# Sed substitution to delay expansion of an escaped shell variable in a
5364# double_quote_subst'ed string.
5365delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5366
5367# Sed substitution to delay expansion of an escaped single quote.
5368delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5369
5370# Sed substitution to avoid accidental globbing in evaled expressions
5371no_glob_subst='s/\*/\\\*/g'
5372
5373ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5374ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5375ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5376
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5378$as_echo_n "checking how to print strings... " >&6; }
5379# Test print first, because it will be a builtin if present.
5380if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5381   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5382  ECHO='print -r --'
5383elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5384  ECHO='printf %s\n'
5385else
5386  # Use this function as a fallback that always works.
5387  func_fallback_echo ()
5388  {
5389    eval 'cat <<_LTECHO_EOF
5390$1
5391_LTECHO_EOF'
5392  }
5393  ECHO='func_fallback_echo'
5394fi
5395
5396# func_echo_all arg...
5397# Invoke $ECHO with all args, space-separated.
5398func_echo_all ()
5399{
5400    $ECHO ""
5401}
5402
5403case "$ECHO" in
5404  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5405$as_echo "printf" >&6; } ;;
5406  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5407$as_echo "print -r" >&6; } ;;
5408  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5409$as_echo "cat" >&6; } ;;
5410esac
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5426$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5427if ${ac_cv_path_SED+:} false; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5431     for ac_i in 1 2 3 4 5 6 7; do
5432       ac_script="$ac_script$as_nl$ac_script"
5433     done
5434     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5435     { ac_script=; unset ac_script;}
5436     if test -z "$SED"; then
5437  ac_path_SED_found=false
5438  # Loop through the user's path and test for each of PROGNAME-LIST
5439  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442  IFS=$as_save_IFS
5443  test -z "$as_dir" && as_dir=.
5444    for ac_prog in sed gsed; do
5445    for ac_exec_ext in '' $ac_executable_extensions; do
5446      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5447      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5448# Check for GNU ac_path_SED and select it if it is found.
5449  # Check for GNU $ac_path_SED
5450case `"$ac_path_SED" --version 2>&1` in
5451*GNU*)
5452  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5453*)
5454  ac_count=0
5455  $as_echo_n 0123456789 >"conftest.in"
5456  while :
5457  do
5458    cat "conftest.in" "conftest.in" >"conftest.tmp"
5459    mv "conftest.tmp" "conftest.in"
5460    cp "conftest.in" "conftest.nl"
5461    $as_echo '' >> "conftest.nl"
5462    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5463    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5464    as_fn_arith $ac_count + 1 && ac_count=$as_val
5465    if test $ac_count -gt ${ac_path_SED_max-0}; then
5466      # Best one so far, save it but keep looking for a better one
5467      ac_cv_path_SED="$ac_path_SED"
5468      ac_path_SED_max=$ac_count
5469    fi
5470    # 10*(2^10) chars as input seems more than enough
5471    test $ac_count -gt 10 && break
5472  done
5473  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5474esac
5475
5476      $ac_path_SED_found && break 3
5477    done
5478  done
5479  done
5480IFS=$as_save_IFS
5481  if test -z "$ac_cv_path_SED"; then
5482    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5483  fi
5484else
5485  ac_cv_path_SED=$SED
5486fi
5487
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5490$as_echo "$ac_cv_path_SED" >&6; }
5491 SED="$ac_cv_path_SED"
5492  rm -f conftest.sed
5493
5494test -z "$SED" && SED=sed
5495Xsed="$SED -e 1s/^X//"
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5508$as_echo_n "checking for fgrep... " >&6; }
5509if ${ac_cv_path_FGREP+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5513   then ac_cv_path_FGREP="$GREP -F"
5514   else
5515     if test -z "$FGREP"; then
5516  ac_path_FGREP_found=false
5517  # Loop through the user's path and test for each of PROGNAME-LIST
5518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5520do
5521  IFS=$as_save_IFS
5522  test -z "$as_dir" && as_dir=.
5523    for ac_prog in fgrep; do
5524    for ac_exec_ext in '' $ac_executable_extensions; do
5525      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5526      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5527# Check for GNU ac_path_FGREP and select it if it is found.
5528  # Check for GNU $ac_path_FGREP
5529case `"$ac_path_FGREP" --version 2>&1` in
5530*GNU*)
5531  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5532*)
5533  ac_count=0
5534  $as_echo_n 0123456789 >"conftest.in"
5535  while :
5536  do
5537    cat "conftest.in" "conftest.in" >"conftest.tmp"
5538    mv "conftest.tmp" "conftest.in"
5539    cp "conftest.in" "conftest.nl"
5540    $as_echo 'FGREP' >> "conftest.nl"
5541    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5542    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5543    as_fn_arith $ac_count + 1 && ac_count=$as_val
5544    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5545      # Best one so far, save it but keep looking for a better one
5546      ac_cv_path_FGREP="$ac_path_FGREP"
5547      ac_path_FGREP_max=$ac_count
5548    fi
5549    # 10*(2^10) chars as input seems more than enough
5550    test $ac_count -gt 10 && break
5551  done
5552  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5553esac
5554
5555      $ac_path_FGREP_found && break 3
5556    done
5557  done
5558  done
5559IFS=$as_save_IFS
5560  if test -z "$ac_cv_path_FGREP"; then
5561    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5562  fi
5563else
5564  ac_cv_path_FGREP=$FGREP
5565fi
5566
5567   fi
5568fi
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5570$as_echo "$ac_cv_path_FGREP" >&6; }
5571 FGREP="$ac_cv_path_FGREP"
5572
5573
5574test -z "$GREP" && GREP=grep
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594# Check whether --with-gnu-ld was given.
5595if test "${with_gnu_ld+set}" = set; then :
5596  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5597else
5598  with_gnu_ld=no
5599fi
5600
5601ac_prog=ld
5602if test "$GCC" = yes; then
5603  # Check if gcc -print-prog-name=ld gives a path.
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5605$as_echo_n "checking for ld used by $CC... " >&6; }
5606  case $host in
5607  *-*-mingw*)
5608    # gcc leaves a trailing carriage return which upsets mingw
5609    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5610  *)
5611    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5612  esac
5613  case $ac_prog in
5614    # Accept absolute paths.
5615    [\\/]* | ?:[\\/]*)
5616      re_direlt='/[^/][^/]*/\.\./'
5617      # Canonicalize the pathname of ld
5618      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5619      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5620	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5621      done
5622      test -z "$LD" && LD="$ac_prog"
5623      ;;
5624  "")
5625    # If it fails, then pretend we aren't using GCC.
5626    ac_prog=ld
5627    ;;
5628  *)
5629    # If it is relative, then search for the first ld in PATH.
5630    with_gnu_ld=unknown
5631    ;;
5632  esac
5633elif test "$with_gnu_ld" = yes; then
5634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5635$as_echo_n "checking for GNU ld... " >&6; }
5636else
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5638$as_echo_n "checking for non-GNU ld... " >&6; }
5639fi
5640if ${lt_cv_path_LD+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  if test -z "$LD"; then
5644  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5645  for ac_dir in $PATH; do
5646    IFS="$lt_save_ifs"
5647    test -z "$ac_dir" && ac_dir=.
5648    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5649      lt_cv_path_LD="$ac_dir/$ac_prog"
5650      # Check to see if the program is GNU ld.  I'd rather use --version,
5651      # but apparently some variants of GNU ld only accept -v.
5652      # Break only if it was the GNU/non-GNU ld that we prefer.
5653      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5654      *GNU* | *'with BFD'*)
5655	test "$with_gnu_ld" != no && break
5656	;;
5657      *)
5658	test "$with_gnu_ld" != yes && break
5659	;;
5660      esac
5661    fi
5662  done
5663  IFS="$lt_save_ifs"
5664else
5665  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5666fi
5667fi
5668
5669LD="$lt_cv_path_LD"
5670if test -n "$LD"; then
5671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5672$as_echo "$LD" >&6; }
5673else
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5679$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5680if ${lt_cv_prog_gnu_ld+:} false; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5684case `$LD -v 2>&1 </dev/null` in
5685*GNU* | *'with BFD'*)
5686  lt_cv_prog_gnu_ld=yes
5687  ;;
5688*)
5689  lt_cv_prog_gnu_ld=no
5690  ;;
5691esac
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5694$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5695with_gnu_ld=$lt_cv_prog_gnu_ld
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5706$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5707if ${lt_cv_path_NM+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  if test -n "$NM"; then
5711  # Let the user override the test.
5712  lt_cv_path_NM="$NM"
5713else
5714  lt_nm_to_check="${ac_tool_prefix}nm"
5715  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5716    lt_nm_to_check="$lt_nm_to_check nm"
5717  fi
5718  for lt_tmp_nm in $lt_nm_to_check; do
5719    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5720    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5721      IFS="$lt_save_ifs"
5722      test -z "$ac_dir" && ac_dir=.
5723      tmp_nm="$ac_dir/$lt_tmp_nm"
5724      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5725	# Check to see if the nm accepts a BSD-compat flag.
5726	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5727	#   nm: unknown option "B" ignored
5728	# Tru64's nm complains that /dev/null is an invalid object file
5729	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5730	*/dev/null* | *'Invalid file or object type'*)
5731	  lt_cv_path_NM="$tmp_nm -B"
5732	  break
5733	  ;;
5734	*)
5735	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5736	  */dev/null*)
5737	    lt_cv_path_NM="$tmp_nm -p"
5738	    break
5739	    ;;
5740	  *)
5741	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5742	    continue # so that we can try to find one that supports BSD flags
5743	    ;;
5744	  esac
5745	  ;;
5746	esac
5747      fi
5748    done
5749    IFS="$lt_save_ifs"
5750  done
5751  : ${lt_cv_path_NM=no}
5752fi
5753fi
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5755$as_echo "$lt_cv_path_NM" >&6; }
5756if test "$lt_cv_path_NM" != "no"; then
5757  NM="$lt_cv_path_NM"
5758else
5759  # Didn't find any BSD compatible name lister, look for dumpbin.
5760  if test -n "$DUMPBIN"; then :
5761    # Let the user override the test.
5762  else
5763    if test -n "$ac_tool_prefix"; then
5764  for ac_prog in dumpbin "link -dump"
5765  do
5766    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if ${ac_cv_prog_DUMPBIN+:} false; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773  if test -n "$DUMPBIN"; then
5774  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779  IFS=$as_save_IFS
5780  test -z "$as_dir" && as_dir=.
5781    for ac_exec_ext in '' $ac_executable_extensions; do
5782  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785    break 2
5786  fi
5787done
5788  done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793DUMPBIN=$ac_cv_prog_DUMPBIN
5794if test -n "$DUMPBIN"; then
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5796$as_echo "$DUMPBIN" >&6; }
5797else
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802
5803    test -n "$DUMPBIN" && break
5804  done
5805fi
5806if test -z "$DUMPBIN"; then
5807  ac_ct_DUMPBIN=$DUMPBIN
5808  for ac_prog in dumpbin "link -dump"
5809do
5810  # Extract the first word of "$ac_prog", so it can be a program name with args.
5811set dummy $ac_prog; ac_word=$2
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813$as_echo_n "checking for $ac_word... " >&6; }
5814if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  if test -n "$ac_ct_DUMPBIN"; then
5818  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  test -z "$as_dir" && as_dir=.
5825    for ac_exec_ext in '' $ac_executable_extensions; do
5826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829    break 2
5830  fi
5831done
5832  done
5833IFS=$as_save_IFS
5834
5835fi
5836fi
5837ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5838if test -n "$ac_ct_DUMPBIN"; then
5839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5840$as_echo "$ac_ct_DUMPBIN" >&6; }
5841else
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }
5844fi
5845
5846
5847  test -n "$ac_ct_DUMPBIN" && break
5848done
5849
5850  if test "x$ac_ct_DUMPBIN" = x; then
5851    DUMPBIN=":"
5852  else
5853    case $cross_compiling:$ac_tool_warned in
5854yes:)
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5857ac_tool_warned=yes ;;
5858esac
5859    DUMPBIN=$ac_ct_DUMPBIN
5860  fi
5861fi
5862
5863    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5864    *COFF*)
5865      DUMPBIN="$DUMPBIN -symbols"
5866      ;;
5867    *)
5868      DUMPBIN=:
5869      ;;
5870    esac
5871  fi
5872
5873  if test "$DUMPBIN" != ":"; then
5874    NM="$DUMPBIN"
5875  fi
5876fi
5877test -z "$NM" && NM=nm
5878
5879
5880
5881
5882
5883
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5885$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5886if ${lt_cv_nm_interface+:} false; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  lt_cv_nm_interface="BSD nm"
5890  echo "int some_variable = 0;" > conftest.$ac_ext
5891  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5892  (eval "$ac_compile" 2>conftest.err)
5893  cat conftest.err >&5
5894  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5895  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5896  cat conftest.err >&5
5897  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5898  cat conftest.out >&5
5899  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5900    lt_cv_nm_interface="MS dumpbin"
5901  fi
5902  rm -f conftest*
5903fi
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5905$as_echo "$lt_cv_nm_interface" >&6; }
5906
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5908$as_echo_n "checking whether ln -s works... " >&6; }
5909LN_S=$as_ln_s
5910if test "$LN_S" = "ln -s"; then
5911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5912$as_echo "yes" >&6; }
5913else
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5915$as_echo "no, using $LN_S" >&6; }
5916fi
5917
5918# find the maximum length of command line arguments
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5920$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5921if ${lt_cv_sys_max_cmd_len+:} false; then :
5922  $as_echo_n "(cached) " >&6
5923else
5924    i=0
5925  teststring="ABCD"
5926
5927  case $build_os in
5928  msdosdjgpp*)
5929    # On DJGPP, this test can blow up pretty badly due to problems in libc
5930    # (any single argument exceeding 2000 bytes causes a buffer overrun
5931    # during glob expansion).  Even if it were fixed, the result of this
5932    # check would be larger than it should be.
5933    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5934    ;;
5935
5936  gnu*)
5937    # Under GNU Hurd, this test is not required because there is
5938    # no limit to the length of command line arguments.
5939    # Libtool will interpret -1 as no limit whatsoever
5940    lt_cv_sys_max_cmd_len=-1;
5941    ;;
5942
5943  cygwin* | mingw* | cegcc*)
5944    # On Win9x/ME, this test blows up -- it succeeds, but takes
5945    # about 5 minutes as the teststring grows exponentially.
5946    # Worse, since 9x/ME are not pre-emptively multitasking,
5947    # you end up with a "frozen" computer, even though with patience
5948    # the test eventually succeeds (with a max line length of 256k).
5949    # Instead, let's just punt: use the minimum linelength reported by
5950    # all of the supported platforms: 8192 (on NT/2K/XP).
5951    lt_cv_sys_max_cmd_len=8192;
5952    ;;
5953
5954  mint*)
5955    # On MiNT this can take a long time and run out of memory.
5956    lt_cv_sys_max_cmd_len=8192;
5957    ;;
5958
5959  amigaos*)
5960    # On AmigaOS with pdksh, this test takes hours, literally.
5961    # So we just punt and use a minimum line length of 8192.
5962    lt_cv_sys_max_cmd_len=8192;
5963    ;;
5964
5965  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5966    # This has been around since 386BSD, at least.  Likely further.
5967    if test -x /sbin/sysctl; then
5968      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5969    elif test -x /usr/sbin/sysctl; then
5970      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5971    else
5972      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5973    fi
5974    # And add a safety zone
5975    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5976    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5977    ;;
5978
5979  interix*)
5980    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5981    lt_cv_sys_max_cmd_len=196608
5982    ;;
5983
5984  osf*)
5985    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5986    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5987    # nice to cause kernel panics so lets avoid the loop below.
5988    # First set a reasonable default.
5989    lt_cv_sys_max_cmd_len=16384
5990    #
5991    if test -x /sbin/sysconfig; then
5992      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5993        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5994      esac
5995    fi
5996    ;;
5997  sco3.2v5*)
5998    lt_cv_sys_max_cmd_len=102400
5999    ;;
6000  sysv5* | sco5v6* | sysv4.2uw2*)
6001    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6002    if test -n "$kargmax"; then
6003      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6004    else
6005      lt_cv_sys_max_cmd_len=32768
6006    fi
6007    ;;
6008  *)
6009    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6010    if test -n "$lt_cv_sys_max_cmd_len"; then
6011      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6012      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6013    else
6014      # Make teststring a little bigger before we do anything with it.
6015      # a 1K string should be a reasonable start.
6016      for i in 1 2 3 4 5 6 7 8 ; do
6017        teststring=$teststring$teststring
6018      done
6019      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6020      # If test is not a shell built-in, we'll probably end up computing a
6021      # maximum length that is only half of the actual maximum length, but
6022      # we can't tell.
6023      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6024	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6025	      test $i != 17 # 1/2 MB should be enough
6026      do
6027        i=`expr $i + 1`
6028        teststring=$teststring$teststring
6029      done
6030      # Only check the string length outside the loop.
6031      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6032      teststring=
6033      # Add a significant safety factor because C++ compilers can tack on
6034      # massive amounts of additional arguments before passing them to the
6035      # linker.  It appears as though 1/2 is a usable value.
6036      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6037    fi
6038    ;;
6039  esac
6040
6041fi
6042
6043if test -n $lt_cv_sys_max_cmd_len ; then
6044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6045$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6046else
6047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6048$as_echo "none" >&6; }
6049fi
6050max_cmd_len=$lt_cv_sys_max_cmd_len
6051
6052
6053
6054
6055
6056
6057: ${CP="cp -f"}
6058: ${MV="mv -f"}
6059: ${RM="rm -f"}
6060
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6062$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6063# Try some XSI features
6064xsi_shell=no
6065( _lt_dummy="a/b/c"
6066  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6067      = c,a/b,, \
6068    && eval 'test $(( 1 + 1 )) -eq 2 \
6069    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6070  && xsi_shell=yes
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6072$as_echo "$xsi_shell" >&6; }
6073
6074
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6076$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6077lt_shell_append=no
6078( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6079    >/dev/null 2>&1 \
6080  && lt_shell_append=yes
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6082$as_echo "$lt_shell_append" >&6; }
6083
6084
6085if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6086  lt_unset=unset
6087else
6088  lt_unset=false
6089fi
6090
6091
6092
6093
6094
6095# test EBCDIC or ASCII
6096case `echo X|tr X '\101'` in
6097 A) # ASCII based system
6098    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6099  lt_SP2NL='tr \040 \012'
6100  lt_NL2SP='tr \015\012 \040\040'
6101  ;;
6102 *) # EBCDIC based system
6103  lt_SP2NL='tr \100 \n'
6104  lt_NL2SP='tr \r\n \100\100'
6105  ;;
6106esac
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6117$as_echo_n "checking for $LD option to reload object files... " >&6; }
6118if ${lt_cv_ld_reload_flag+:} false; then :
6119  $as_echo_n "(cached) " >&6
6120else
6121  lt_cv_ld_reload_flag='-r'
6122fi
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6124$as_echo "$lt_cv_ld_reload_flag" >&6; }
6125reload_flag=$lt_cv_ld_reload_flag
6126case $reload_flag in
6127"" | " "*) ;;
6128*) reload_flag=" $reload_flag" ;;
6129esac
6130reload_cmds='$LD$reload_flag -o $output$reload_objs'
6131case $host_os in
6132  darwin*)
6133    if test "$GCC" = yes; then
6134      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6135    else
6136      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6137    fi
6138    ;;
6139esac
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149if test -n "$ac_tool_prefix"; then
6150  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6151set dummy ${ac_tool_prefix}objdump; ac_word=$2
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153$as_echo_n "checking for $ac_word... " >&6; }
6154if ${ac_cv_prog_OBJDUMP+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  if test -n "$OBJDUMP"; then
6158  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163  IFS=$as_save_IFS
6164  test -z "$as_dir" && as_dir=.
6165    for ac_exec_ext in '' $ac_executable_extensions; do
6166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169    break 2
6170  fi
6171done
6172  done
6173IFS=$as_save_IFS
6174
6175fi
6176fi
6177OBJDUMP=$ac_cv_prog_OBJDUMP
6178if test -n "$OBJDUMP"; then
6179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6180$as_echo "$OBJDUMP" >&6; }
6181else
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183$as_echo "no" >&6; }
6184fi
6185
6186
6187fi
6188if test -z "$ac_cv_prog_OBJDUMP"; then
6189  ac_ct_OBJDUMP=$OBJDUMP
6190  # Extract the first word of "objdump", so it can be a program name with args.
6191set dummy objdump; ac_word=$2
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
6194if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  if test -n "$ac_ct_OBJDUMP"; then
6198  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203  IFS=$as_save_IFS
6204  test -z "$as_dir" && as_dir=.
6205    for ac_exec_ext in '' $ac_executable_extensions; do
6206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209    break 2
6210  fi
6211done
6212  done
6213IFS=$as_save_IFS
6214
6215fi
6216fi
6217ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6218if test -n "$ac_ct_OBJDUMP"; then
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6220$as_echo "$ac_ct_OBJDUMP" >&6; }
6221else
6222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224fi
6225
6226  if test "x$ac_ct_OBJDUMP" = x; then
6227    OBJDUMP="false"
6228  else
6229    case $cross_compiling:$ac_tool_warned in
6230yes:)
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6233ac_tool_warned=yes ;;
6234esac
6235    OBJDUMP=$ac_ct_OBJDUMP
6236  fi
6237else
6238  OBJDUMP="$ac_cv_prog_OBJDUMP"
6239fi
6240
6241test -z "$OBJDUMP" && OBJDUMP=objdump
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6252$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6253if ${lt_cv_deplibs_check_method+:} false; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  lt_cv_file_magic_cmd='$MAGIC_CMD'
6257lt_cv_file_magic_test_file=
6258lt_cv_deplibs_check_method='unknown'
6259# Need to set the preceding variable on all platforms that support
6260# interlibrary dependencies.
6261# 'none' -- dependencies not supported.
6262# `unknown' -- same as none, but documents that we really don't know.
6263# 'pass_all' -- all dependencies passed with no checks.
6264# 'test_compile' -- check by making test program.
6265# 'file_magic [[regex]]' -- check by looking for files in library path
6266# which responds to the $file_magic_cmd with a given extended regex.
6267# If you have `file' or equivalent on your system and you're not sure
6268# whether `pass_all' will *always* work, you probably want this one.
6269
6270case $host_os in
6271aix[4-9]*)
6272  lt_cv_deplibs_check_method=pass_all
6273  ;;
6274
6275beos*)
6276  lt_cv_deplibs_check_method=pass_all
6277  ;;
6278
6279bsdi[45]*)
6280  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6281  lt_cv_file_magic_cmd='/usr/bin/file -L'
6282  lt_cv_file_magic_test_file=/shlib/libc.so
6283  ;;
6284
6285cygwin*)
6286  # func_win32_libid is a shell function defined in ltmain.sh
6287  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6288  lt_cv_file_magic_cmd='func_win32_libid'
6289  ;;
6290
6291mingw* | pw32*)
6292  # Base MSYS/MinGW do not provide the 'file' command needed by
6293  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6294  # unless we find 'file', for example because we are cross-compiling.
6295  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6296  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6297    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6298    lt_cv_file_magic_cmd='func_win32_libid'
6299  else
6300    # Keep this pattern in sync with the one in func_win32_libid.
6301    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6302    lt_cv_file_magic_cmd='$OBJDUMP -f'
6303  fi
6304  ;;
6305
6306cegcc*)
6307  # use the weaker test based on 'objdump'. See mingw*.
6308  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6309  lt_cv_file_magic_cmd='$OBJDUMP -f'
6310  ;;
6311
6312darwin* | rhapsody*)
6313  lt_cv_deplibs_check_method=pass_all
6314  ;;
6315
6316freebsd* | dragonfly*)
6317  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6318    case $host_cpu in
6319    i*86 )
6320      # Not sure whether the presence of OpenBSD here was a mistake.
6321      # Let's accept both of them until this is cleared up.
6322      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6323      lt_cv_file_magic_cmd=/usr/bin/file
6324      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6325      ;;
6326    esac
6327  else
6328    lt_cv_deplibs_check_method=pass_all
6329  fi
6330  ;;
6331
6332gnu*)
6333  lt_cv_deplibs_check_method=pass_all
6334  ;;
6335
6336haiku*)
6337  lt_cv_deplibs_check_method=pass_all
6338  ;;
6339
6340hpux10.20* | hpux11*)
6341  lt_cv_file_magic_cmd=/usr/bin/file
6342  case $host_cpu in
6343  ia64*)
6344    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6345    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6346    ;;
6347  hppa*64*)
6348    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6349    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6350    ;;
6351  *)
6352    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6353    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6354    ;;
6355  esac
6356  ;;
6357
6358interix[3-9]*)
6359  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6360  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6361  ;;
6362
6363irix5* | irix6* | nonstopux*)
6364  case $LD in
6365  *-32|*"-32 ") libmagic=32-bit;;
6366  *-n32|*"-n32 ") libmagic=N32;;
6367  *-64|*"-64 ") libmagic=64-bit;;
6368  *) libmagic=never-match;;
6369  esac
6370  lt_cv_deplibs_check_method=pass_all
6371  ;;
6372
6373# This must be Linux ELF.
6374linux* | k*bsd*-gnu | kopensolaris*-gnu)
6375  lt_cv_deplibs_check_method=pass_all
6376  ;;
6377
6378netbsd*)
6379  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6380    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6381  else
6382    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6383  fi
6384  ;;
6385
6386newos6*)
6387  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6388  lt_cv_file_magic_cmd=/usr/bin/file
6389  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6390  ;;
6391
6392*nto* | *qnx*)
6393  lt_cv_deplibs_check_method=pass_all
6394  ;;
6395
6396openbsd*)
6397  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6398    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6399  else
6400    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6401  fi
6402  ;;
6403
6404osf3* | osf4* | osf5*)
6405  lt_cv_deplibs_check_method=pass_all
6406  ;;
6407
6408rdos*)
6409  lt_cv_deplibs_check_method=pass_all
6410  ;;
6411
6412solaris*)
6413  lt_cv_deplibs_check_method=pass_all
6414  ;;
6415
6416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6417  lt_cv_deplibs_check_method=pass_all
6418  ;;
6419
6420sysv4 | sysv4.3*)
6421  case $host_vendor in
6422  motorola)
6423    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]'
6424    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6425    ;;
6426  ncr)
6427    lt_cv_deplibs_check_method=pass_all
6428    ;;
6429  sequent)
6430    lt_cv_file_magic_cmd='/bin/file'
6431    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6432    ;;
6433  sni)
6434    lt_cv_file_magic_cmd='/bin/file'
6435    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6436    lt_cv_file_magic_test_file=/lib/libc.so
6437    ;;
6438  siemens)
6439    lt_cv_deplibs_check_method=pass_all
6440    ;;
6441  pc)
6442    lt_cv_deplibs_check_method=pass_all
6443    ;;
6444  esac
6445  ;;
6446
6447tpf*)
6448  lt_cv_deplibs_check_method=pass_all
6449  ;;
6450esac
6451
6452fi
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6454$as_echo "$lt_cv_deplibs_check_method" >&6; }
6455file_magic_cmd=$lt_cv_file_magic_cmd
6456deplibs_check_method=$lt_cv_deplibs_check_method
6457test -z "$deplibs_check_method" && deplibs_check_method=unknown
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470if test -n "$ac_tool_prefix"; then
6471  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6472set dummy ${ac_tool_prefix}ar; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if ${ac_cv_prog_AR+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  if test -n "$AR"; then
6479  ac_cv_prog_AR="$AR" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484  IFS=$as_save_IFS
6485  test -z "$as_dir" && as_dir=.
6486    for ac_exec_ext in '' $ac_executable_extensions; do
6487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488    ac_cv_prog_AR="${ac_tool_prefix}ar"
6489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490    break 2
6491  fi
6492done
6493  done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498AR=$ac_cv_prog_AR
6499if test -n "$AR"; then
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6501$as_echo "$AR" >&6; }
6502else
6503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507
6508fi
6509if test -z "$ac_cv_prog_AR"; then
6510  ac_ct_AR=$AR
6511  # Extract the first word of "ar", so it can be a program name with args.
6512set dummy ar; ac_word=$2
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if ${ac_cv_prog_ac_ct_AR+:} false; then :
6516  $as_echo_n "(cached) " >&6
6517else
6518  if test -n "$ac_ct_AR"; then
6519  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524  IFS=$as_save_IFS
6525  test -z "$as_dir" && as_dir=.
6526    for ac_exec_ext in '' $ac_executable_extensions; do
6527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528    ac_cv_prog_ac_ct_AR="ar"
6529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530    break 2
6531  fi
6532done
6533  done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538ac_ct_AR=$ac_cv_prog_ac_ct_AR
6539if test -n "$ac_ct_AR"; then
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6541$as_echo "$ac_ct_AR" >&6; }
6542else
6543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547  if test "x$ac_ct_AR" = x; then
6548    AR="false"
6549  else
6550    case $cross_compiling:$ac_tool_warned in
6551yes:)
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554ac_tool_warned=yes ;;
6555esac
6556    AR=$ac_ct_AR
6557  fi
6558else
6559  AR="$ac_cv_prog_AR"
6560fi
6561
6562test -z "$AR" && AR=ar
6563test -z "$AR_FLAGS" && AR_FLAGS=cru
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575if test -n "$ac_tool_prefix"; then
6576  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6577set dummy ${ac_tool_prefix}strip; ac_word=$2
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579$as_echo_n "checking for $ac_word... " >&6; }
6580if ${ac_cv_prog_STRIP+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  if test -n "$STRIP"; then
6584  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6585else
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589  IFS=$as_save_IFS
6590  test -z "$as_dir" && as_dir=.
6591    for ac_exec_ext in '' $ac_executable_extensions; do
6592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595    break 2
6596  fi
6597done
6598  done
6599IFS=$as_save_IFS
6600
6601fi
6602fi
6603STRIP=$ac_cv_prog_STRIP
6604if test -n "$STRIP"; then
6605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6606$as_echo "$STRIP" >&6; }
6607else
6608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
6610fi
6611
6612
6613fi
6614if test -z "$ac_cv_prog_STRIP"; then
6615  ac_ct_STRIP=$STRIP
6616  # Extract the first word of "strip", so it can be a program name with args.
6617set dummy strip; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
6620if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6621  $as_echo_n "(cached) " >&6
6622else
6623  if test -n "$ac_ct_STRIP"; then
6624  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629  IFS=$as_save_IFS
6630  test -z "$as_dir" && as_dir=.
6631    for ac_exec_ext in '' $ac_executable_extensions; do
6632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633    ac_cv_prog_ac_ct_STRIP="strip"
6634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635    break 2
6636  fi
6637done
6638  done
6639IFS=$as_save_IFS
6640
6641fi
6642fi
6643ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6644if test -n "$ac_ct_STRIP"; then
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6646$as_echo "$ac_ct_STRIP" >&6; }
6647else
6648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
6651
6652  if test "x$ac_ct_STRIP" = x; then
6653    STRIP=":"
6654  else
6655    case $cross_compiling:$ac_tool_warned in
6656yes:)
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659ac_tool_warned=yes ;;
6660esac
6661    STRIP=$ac_ct_STRIP
6662  fi
6663else
6664  STRIP="$ac_cv_prog_STRIP"
6665fi
6666
6667test -z "$STRIP" && STRIP=:
6668
6669
6670
6671
6672
6673
6674if test -n "$ac_tool_prefix"; then
6675  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6676set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678$as_echo_n "checking for $ac_word... " >&6; }
6679if ${ac_cv_prog_RANLIB+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  if test -n "$RANLIB"; then
6683  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688  IFS=$as_save_IFS
6689  test -z "$as_dir" && as_dir=.
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694    break 2
6695  fi
6696done
6697  done
6698IFS=$as_save_IFS
6699
6700fi
6701fi
6702RANLIB=$ac_cv_prog_RANLIB
6703if test -n "$RANLIB"; then
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6705$as_echo "$RANLIB" >&6; }
6706else
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708$as_echo "no" >&6; }
6709fi
6710
6711
6712fi
6713if test -z "$ac_cv_prog_RANLIB"; then
6714  ac_ct_RANLIB=$RANLIB
6715  # Extract the first word of "ranlib", so it can be a program name with args.
6716set dummy ranlib; ac_word=$2
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718$as_echo_n "checking for $ac_word... " >&6; }
6719if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6720  $as_echo_n "(cached) " >&6
6721else
6722  if test -n "$ac_ct_RANLIB"; then
6723  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728  IFS=$as_save_IFS
6729  test -z "$as_dir" && as_dir=.
6730    for ac_exec_ext in '' $ac_executable_extensions; do
6731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732    ac_cv_prog_ac_ct_RANLIB="ranlib"
6733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734    break 2
6735  fi
6736done
6737  done
6738IFS=$as_save_IFS
6739
6740fi
6741fi
6742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6743if test -n "$ac_ct_RANLIB"; then
6744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6745$as_echo "$ac_ct_RANLIB" >&6; }
6746else
6747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748$as_echo "no" >&6; }
6749fi
6750
6751  if test "x$ac_ct_RANLIB" = x; then
6752    RANLIB=":"
6753  else
6754    case $cross_compiling:$ac_tool_warned in
6755yes:)
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6758ac_tool_warned=yes ;;
6759esac
6760    RANLIB=$ac_ct_RANLIB
6761  fi
6762else
6763  RANLIB="$ac_cv_prog_RANLIB"
6764fi
6765
6766test -z "$RANLIB" && RANLIB=:
6767
6768
6769
6770
6771
6772
6773# Determine commands to create old-style static archives.
6774old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6775old_postinstall_cmds='chmod 644 $oldlib'
6776old_postuninstall_cmds=
6777
6778if test -n "$RANLIB"; then
6779  case $host_os in
6780  openbsd*)
6781    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6782    ;;
6783  *)
6784    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6785    ;;
6786  esac
6787  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6788fi
6789
6790case $host_os in
6791  darwin*)
6792    lock_old_archive_extraction=yes ;;
6793  *)
6794    lock_old_archive_extraction=no ;;
6795esac
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835# If no C compiler was specified, use CC.
6836LTCC=${LTCC-"$CC"}
6837
6838# If no C compiler flags were specified, use CFLAGS.
6839LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6840
6841# Allow CC to be a program name with arguments.
6842compiler=$CC
6843
6844
6845# Check for command to grab the raw symbol name followed by C symbol from nm.
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6847$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6848if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6849  $as_echo_n "(cached) " >&6
6850else
6851
6852# These are sane defaults that work on at least a few old systems.
6853# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6854
6855# Character class describing NM global symbol codes.
6856symcode='[BCDEGRST]'
6857
6858# Regexp to match symbols that can be accessed directly from C.
6859sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6860
6861# Define system-specific variables.
6862case $host_os in
6863aix*)
6864  symcode='[BCDT]'
6865  ;;
6866cygwin* | mingw* | pw32* | cegcc*)
6867  symcode='[ABCDGISTW]'
6868  ;;
6869hpux*)
6870  if test "$host_cpu" = ia64; then
6871    symcode='[ABCDEGRST]'
6872  fi
6873  ;;
6874irix* | nonstopux*)
6875  symcode='[BCDEGRST]'
6876  ;;
6877osf*)
6878  symcode='[BCDEGQRST]'
6879  ;;
6880solaris*)
6881  symcode='[BDRT]'
6882  ;;
6883sco3.2v5*)
6884  symcode='[DT]'
6885  ;;
6886sysv4.2uw2*)
6887  symcode='[DT]'
6888  ;;
6889sysv5* | sco5v6* | unixware* | OpenUNIX*)
6890  symcode='[ABDT]'
6891  ;;
6892sysv4)
6893  symcode='[DFNSTU]'
6894  ;;
6895esac
6896
6897# If we're using GNU nm, then use its standard symbol codes.
6898case `$NM -V 2>&1` in
6899*GNU* | *'with BFD'*)
6900  symcode='[ABCDGIRSTW]' ;;
6901esac
6902
6903# Transform an extracted symbol line into a proper C declaration.
6904# Some systems (esp. on ia64) link data and code symbols differently,
6905# so use this general approach.
6906lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6907
6908# Transform an extracted symbol line into symbol name and symbol address
6909lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6910lt_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'"
6911
6912# Handle CRLF in mingw tool chain
6913opt_cr=
6914case $build_os in
6915mingw*)
6916  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6917  ;;
6918esac
6919
6920# Try without a prefix underscore, then with it.
6921for ac_symprfx in "" "_"; do
6922
6923  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6924  symxfrm="\\1 $ac_symprfx\\2 \\2"
6925
6926  # Write the raw and C identifiers.
6927  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6928    # Fake it for dumpbin and say T for any non-static function
6929    # and D for any global variable.
6930    # Also find C++ and __fastcall symbols from MSVC++,
6931    # which start with @ or ?.
6932    lt_cv_sys_global_symbol_pipe="$AWK '"\
6933"     {last_section=section; section=\$ 3};"\
6934"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6935"     \$ 0!~/External *\|/{next};"\
6936"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6937"     {if(hide[section]) next};"\
6938"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6939"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6940"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6941"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6942"     ' prfx=^$ac_symprfx"
6943  else
6944    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6945  fi
6946
6947  # Check to see that the pipe works correctly.
6948  pipe_works=no
6949
6950  rm -f conftest*
6951  cat > conftest.$ac_ext <<_LT_EOF
6952#ifdef __cplusplus
6953extern "C" {
6954#endif
6955char nm_test_var;
6956void nm_test_func(void);
6957void nm_test_func(void){}
6958#ifdef __cplusplus
6959}
6960#endif
6961int main(){nm_test_var='a';nm_test_func();return(0);}
6962_LT_EOF
6963
6964  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6965  (eval $ac_compile) 2>&5
6966  ac_status=$?
6967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968  test $ac_status = 0; }; then
6969    # Now try to grab the symbols.
6970    nlist=conftest.nm
6971    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6972  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6973  ac_status=$?
6974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6975  test $ac_status = 0; } && test -s "$nlist"; then
6976      # Try sorting and uniquifying the output.
6977      if sort "$nlist" | uniq > "$nlist"T; then
6978	mv -f "$nlist"T "$nlist"
6979      else
6980	rm -f "$nlist"T
6981      fi
6982
6983      # Make sure that we snagged all the symbols we need.
6984      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6985	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6986	  cat <<_LT_EOF > conftest.$ac_ext
6987#ifdef __cplusplus
6988extern "C" {
6989#endif
6990
6991_LT_EOF
6992	  # Now generate the symbol file.
6993	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6994
6995	  cat <<_LT_EOF >> conftest.$ac_ext
6996
6997/* The mapping between symbol names and symbols.  */
6998const struct {
6999  const char *name;
7000  void       *address;
7001}
7002lt__PROGRAM__LTX_preloaded_symbols[] =
7003{
7004  { "@PROGRAM@", (void *) 0 },
7005_LT_EOF
7006	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7007	  cat <<\_LT_EOF >> conftest.$ac_ext
7008  {0, (void *) 0}
7009};
7010
7011/* This works around a problem in FreeBSD linker */
7012#ifdef FREEBSD_WORKAROUND
7013static const void *lt_preloaded_setup() {
7014  return lt__PROGRAM__LTX_preloaded_symbols;
7015}
7016#endif
7017
7018#ifdef __cplusplus
7019}
7020#endif
7021_LT_EOF
7022	  # Now try linking the two files.
7023	  mv conftest.$ac_objext conftstm.$ac_objext
7024	  lt_save_LIBS="$LIBS"
7025	  lt_save_CFLAGS="$CFLAGS"
7026	  LIBS="conftstm.$ac_objext"
7027	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7028	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7029  (eval $ac_link) 2>&5
7030  ac_status=$?
7031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7033	    pipe_works=yes
7034	  fi
7035	  LIBS="$lt_save_LIBS"
7036	  CFLAGS="$lt_save_CFLAGS"
7037	else
7038	  echo "cannot find nm_test_func in $nlist" >&5
7039	fi
7040      else
7041	echo "cannot find nm_test_var in $nlist" >&5
7042      fi
7043    else
7044      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7045    fi
7046  else
7047    echo "$progname: failed program was:" >&5
7048    cat conftest.$ac_ext >&5
7049  fi
7050  rm -rf conftest* conftst*
7051
7052  # Do not use the global_symbol_pipe unless it works.
7053  if test "$pipe_works" = yes; then
7054    break
7055  else
7056    lt_cv_sys_global_symbol_pipe=
7057  fi
7058done
7059
7060fi
7061
7062if test -z "$lt_cv_sys_global_symbol_pipe"; then
7063  lt_cv_sys_global_symbol_to_cdecl=
7064fi
7065if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7067$as_echo "failed" >&6; }
7068else
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7070$as_echo "ok" >&6; }
7071fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094# Check whether --enable-libtool-lock was given.
7095if test "${enable_libtool_lock+set}" = set; then :
7096  enableval=$enable_libtool_lock;
7097fi
7098
7099test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7100
7101# Some flags need to be propagated to the compiler or linker for good
7102# libtool support.
7103case $host in
7104ia64-*-hpux*)
7105  # Find out which ABI we are using.
7106  echo 'int i;' > conftest.$ac_ext
7107  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7108  (eval $ac_compile) 2>&5
7109  ac_status=$?
7110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7111  test $ac_status = 0; }; then
7112    case `/usr/bin/file conftest.$ac_objext` in
7113      *ELF-32*)
7114	HPUX_IA64_MODE="32"
7115	;;
7116      *ELF-64*)
7117	HPUX_IA64_MODE="64"
7118	;;
7119    esac
7120  fi
7121  rm -rf conftest*
7122  ;;
7123*-*-irix6*)
7124  # Find out which ABI we are using.
7125  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7126  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7127  (eval $ac_compile) 2>&5
7128  ac_status=$?
7129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7130  test $ac_status = 0; }; then
7131    if test "$lt_cv_prog_gnu_ld" = yes; then
7132      case `/usr/bin/file conftest.$ac_objext` in
7133	*32-bit*)
7134	  LD="${LD-ld} -melf32bsmip"
7135	  ;;
7136	*N32*)
7137	  LD="${LD-ld} -melf32bmipn32"
7138	  ;;
7139	*64-bit*)
7140	  LD="${LD-ld} -melf64bmip"
7141	;;
7142      esac
7143    else
7144      case `/usr/bin/file conftest.$ac_objext` in
7145	*32-bit*)
7146	  LD="${LD-ld} -32"
7147	  ;;
7148	*N32*)
7149	  LD="${LD-ld} -n32"
7150	  ;;
7151	*64-bit*)
7152	  LD="${LD-ld} -64"
7153	  ;;
7154      esac
7155    fi
7156  fi
7157  rm -rf conftest*
7158  ;;
7159
7160x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7161s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7162  # Find out which ABI we are using.
7163  echo 'int i;' > conftest.$ac_ext
7164  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7165  (eval $ac_compile) 2>&5
7166  ac_status=$?
7167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168  test $ac_status = 0; }; then
7169    case `/usr/bin/file conftest.o` in
7170      *32-bit*)
7171	case $host in
7172	  x86_64-*kfreebsd*-gnu)
7173	    LD="${LD-ld} -m elf_i386_fbsd"
7174	    ;;
7175	  x86_64-*linux*)
7176	    LD="${LD-ld} -m elf_i386"
7177	    ;;
7178	  ppc64-*linux*|powerpc64-*linux*)
7179	    LD="${LD-ld} -m elf32ppclinux"
7180	    ;;
7181	  s390x-*linux*)
7182	    LD="${LD-ld} -m elf_s390"
7183	    ;;
7184	  sparc64-*linux*)
7185	    LD="${LD-ld} -m elf32_sparc"
7186	    ;;
7187	esac
7188	;;
7189      *64-bit*)
7190	case $host in
7191	  x86_64-*kfreebsd*-gnu)
7192	    LD="${LD-ld} -m elf_x86_64_fbsd"
7193	    ;;
7194	  x86_64-*linux*)
7195	    LD="${LD-ld} -m elf_x86_64"
7196	    ;;
7197	  ppc*-*linux*|powerpc*-*linux*)
7198	    LD="${LD-ld} -m elf64ppc"
7199	    ;;
7200	  s390*-*linux*|s390*-*tpf*)
7201	    LD="${LD-ld} -m elf64_s390"
7202	    ;;
7203	  sparc*-*linux*)
7204	    LD="${LD-ld} -m elf64_sparc"
7205	    ;;
7206	esac
7207	;;
7208    esac
7209  fi
7210  rm -rf conftest*
7211  ;;
7212
7213*-*-sco3.2v5*)
7214  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7215  SAVE_CFLAGS="$CFLAGS"
7216  CFLAGS="$CFLAGS -belf"
7217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7218$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7219if ${lt_cv_cc_needs_belf+:} false; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  ac_ext=c
7223ac_cpp='$CPP $CPPFLAGS'
7224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7226ac_compiler_gnu=$ac_cv_c_compiler_gnu
7227
7228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229/* end confdefs.h.  */
7230
7231int
7232main ()
7233{
7234
7235  ;
7236  return 0;
7237}
7238_ACEOF
7239if ac_fn_c_try_link "$LINENO"; then :
7240  lt_cv_cc_needs_belf=yes
7241else
7242  lt_cv_cc_needs_belf=no
7243fi
7244rm -f core conftest.err conftest.$ac_objext \
7245    conftest$ac_exeext conftest.$ac_ext
7246     ac_ext=c
7247ac_cpp='$CPP $CPPFLAGS'
7248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250ac_compiler_gnu=$ac_cv_c_compiler_gnu
7251
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7254$as_echo "$lt_cv_cc_needs_belf" >&6; }
7255  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7256    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7257    CFLAGS="$SAVE_CFLAGS"
7258  fi
7259  ;;
7260sparc*-*solaris*)
7261  # Find out which ABI we are using.
7262  echo 'int i;' > conftest.$ac_ext
7263  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7264  (eval $ac_compile) 2>&5
7265  ac_status=$?
7266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267  test $ac_status = 0; }; then
7268    case `/usr/bin/file conftest.o` in
7269    *64-bit*)
7270      case $lt_cv_prog_gnu_ld in
7271      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7272      *)
7273	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7274	  LD="${LD-ld} -64"
7275	fi
7276	;;
7277      esac
7278      ;;
7279    esac
7280  fi
7281  rm -rf conftest*
7282  ;;
7283esac
7284
7285need_locks="$enable_libtool_lock"
7286
7287
7288  case $host_os in
7289    rhapsody* | darwin*)
7290    if test -n "$ac_tool_prefix"; then
7291  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7292set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294$as_echo_n "checking for $ac_word... " >&6; }
7295if ${ac_cv_prog_DSYMUTIL+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  if test -n "$DSYMUTIL"; then
7299  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7300else
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304  IFS=$as_save_IFS
7305  test -z "$as_dir" && as_dir=.
7306    for ac_exec_ext in '' $ac_executable_extensions; do
7307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310    break 2
7311  fi
7312done
7313  done
7314IFS=$as_save_IFS
7315
7316fi
7317fi
7318DSYMUTIL=$ac_cv_prog_DSYMUTIL
7319if test -n "$DSYMUTIL"; then
7320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7321$as_echo "$DSYMUTIL" >&6; }
7322else
7323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324$as_echo "no" >&6; }
7325fi
7326
7327
7328fi
7329if test -z "$ac_cv_prog_DSYMUTIL"; then
7330  ac_ct_DSYMUTIL=$DSYMUTIL
7331  # Extract the first word of "dsymutil", so it can be a program name with args.
7332set dummy dsymutil; ac_word=$2
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334$as_echo_n "checking for $ac_word... " >&6; }
7335if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7336  $as_echo_n "(cached) " >&6
7337else
7338  if test -n "$ac_ct_DSYMUTIL"; then
7339  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7340else
7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344  IFS=$as_save_IFS
7345  test -z "$as_dir" && as_dir=.
7346    for ac_exec_ext in '' $ac_executable_extensions; do
7347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350    break 2
7351  fi
7352done
7353  done
7354IFS=$as_save_IFS
7355
7356fi
7357fi
7358ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7359if test -n "$ac_ct_DSYMUTIL"; then
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7361$as_echo "$ac_ct_DSYMUTIL" >&6; }
7362else
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364$as_echo "no" >&6; }
7365fi
7366
7367  if test "x$ac_ct_DSYMUTIL" = x; then
7368    DSYMUTIL=":"
7369  else
7370    case $cross_compiling:$ac_tool_warned in
7371yes:)
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374ac_tool_warned=yes ;;
7375esac
7376    DSYMUTIL=$ac_ct_DSYMUTIL
7377  fi
7378else
7379  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7380fi
7381
7382    if test -n "$ac_tool_prefix"; then
7383  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7384set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386$as_echo_n "checking for $ac_word... " >&6; }
7387if ${ac_cv_prog_NMEDIT+:} false; then :
7388  $as_echo_n "(cached) " >&6
7389else
7390  if test -n "$NMEDIT"; then
7391  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7392else
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396  IFS=$as_save_IFS
7397  test -z "$as_dir" && as_dir=.
7398    for ac_exec_ext in '' $ac_executable_extensions; do
7399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402    break 2
7403  fi
7404done
7405  done
7406IFS=$as_save_IFS
7407
7408fi
7409fi
7410NMEDIT=$ac_cv_prog_NMEDIT
7411if test -n "$NMEDIT"; then
7412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7413$as_echo "$NMEDIT" >&6; }
7414else
7415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416$as_echo "no" >&6; }
7417fi
7418
7419
7420fi
7421if test -z "$ac_cv_prog_NMEDIT"; then
7422  ac_ct_NMEDIT=$NMEDIT
7423  # Extract the first word of "nmedit", so it can be a program name with args.
7424set dummy nmedit; ac_word=$2
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426$as_echo_n "checking for $ac_word... " >&6; }
7427if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7428  $as_echo_n "(cached) " >&6
7429else
7430  if test -n "$ac_ct_NMEDIT"; then
7431  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7432else
7433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436  IFS=$as_save_IFS
7437  test -z "$as_dir" && as_dir=.
7438    for ac_exec_ext in '' $ac_executable_extensions; do
7439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7440    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442    break 2
7443  fi
7444done
7445  done
7446IFS=$as_save_IFS
7447
7448fi
7449fi
7450ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7451if test -n "$ac_ct_NMEDIT"; then
7452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7453$as_echo "$ac_ct_NMEDIT" >&6; }
7454else
7455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456$as_echo "no" >&6; }
7457fi
7458
7459  if test "x$ac_ct_NMEDIT" = x; then
7460    NMEDIT=":"
7461  else
7462    case $cross_compiling:$ac_tool_warned in
7463yes:)
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7466ac_tool_warned=yes ;;
7467esac
7468    NMEDIT=$ac_ct_NMEDIT
7469  fi
7470else
7471  NMEDIT="$ac_cv_prog_NMEDIT"
7472fi
7473
7474    if test -n "$ac_tool_prefix"; then
7475  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7476set dummy ${ac_tool_prefix}lipo; ac_word=$2
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478$as_echo_n "checking for $ac_word... " >&6; }
7479if ${ac_cv_prog_LIPO+:} false; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482  if test -n "$LIPO"; then
7483  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7484else
7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488  IFS=$as_save_IFS
7489  test -z "$as_dir" && as_dir=.
7490    for ac_exec_ext in '' $ac_executable_extensions; do
7491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7492    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494    break 2
7495  fi
7496done
7497  done
7498IFS=$as_save_IFS
7499
7500fi
7501fi
7502LIPO=$ac_cv_prog_LIPO
7503if test -n "$LIPO"; then
7504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7505$as_echo "$LIPO" >&6; }
7506else
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508$as_echo "no" >&6; }
7509fi
7510
7511
7512fi
7513if test -z "$ac_cv_prog_LIPO"; then
7514  ac_ct_LIPO=$LIPO
7515  # Extract the first word of "lipo", so it can be a program name with args.
7516set dummy lipo; ac_word=$2
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518$as_echo_n "checking for $ac_word... " >&6; }
7519if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  if test -n "$ac_ct_LIPO"; then
7523  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7524else
7525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528  IFS=$as_save_IFS
7529  test -z "$as_dir" && as_dir=.
7530    for ac_exec_ext in '' $ac_executable_extensions; do
7531  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532    ac_cv_prog_ac_ct_LIPO="lipo"
7533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534    break 2
7535  fi
7536done
7537  done
7538IFS=$as_save_IFS
7539
7540fi
7541fi
7542ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7543if test -n "$ac_ct_LIPO"; then
7544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7545$as_echo "$ac_ct_LIPO" >&6; }
7546else
7547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548$as_echo "no" >&6; }
7549fi
7550
7551  if test "x$ac_ct_LIPO" = x; then
7552    LIPO=":"
7553  else
7554    case $cross_compiling:$ac_tool_warned in
7555yes:)
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558ac_tool_warned=yes ;;
7559esac
7560    LIPO=$ac_ct_LIPO
7561  fi
7562else
7563  LIPO="$ac_cv_prog_LIPO"
7564fi
7565
7566    if test -n "$ac_tool_prefix"; then
7567  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7568set dummy ${ac_tool_prefix}otool; ac_word=$2
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570$as_echo_n "checking for $ac_word... " >&6; }
7571if ${ac_cv_prog_OTOOL+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  if test -n "$OTOOL"; then
7575  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7576else
7577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578for as_dir in $PATH
7579do
7580  IFS=$as_save_IFS
7581  test -z "$as_dir" && as_dir=.
7582    for ac_exec_ext in '' $ac_executable_extensions; do
7583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7584    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586    break 2
7587  fi
7588done
7589  done
7590IFS=$as_save_IFS
7591
7592fi
7593fi
7594OTOOL=$ac_cv_prog_OTOOL
7595if test -n "$OTOOL"; then
7596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7597$as_echo "$OTOOL" >&6; }
7598else
7599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; }
7601fi
7602
7603
7604fi
7605if test -z "$ac_cv_prog_OTOOL"; then
7606  ac_ct_OTOOL=$OTOOL
7607  # Extract the first word of "otool", so it can be a program name with args.
7608set dummy otool; ac_word=$2
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610$as_echo_n "checking for $ac_word... " >&6; }
7611if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7612  $as_echo_n "(cached) " >&6
7613else
7614  if test -n "$ac_ct_OTOOL"; then
7615  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7616else
7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620  IFS=$as_save_IFS
7621  test -z "$as_dir" && as_dir=.
7622    for ac_exec_ext in '' $ac_executable_extensions; do
7623  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624    ac_cv_prog_ac_ct_OTOOL="otool"
7625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626    break 2
7627  fi
7628done
7629  done
7630IFS=$as_save_IFS
7631
7632fi
7633fi
7634ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7635if test -n "$ac_ct_OTOOL"; then
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7637$as_echo "$ac_ct_OTOOL" >&6; }
7638else
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640$as_echo "no" >&6; }
7641fi
7642
7643  if test "x$ac_ct_OTOOL" = x; then
7644    OTOOL=":"
7645  else
7646    case $cross_compiling:$ac_tool_warned in
7647yes:)
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7650ac_tool_warned=yes ;;
7651esac
7652    OTOOL=$ac_ct_OTOOL
7653  fi
7654else
7655  OTOOL="$ac_cv_prog_OTOOL"
7656fi
7657
7658    if test -n "$ac_tool_prefix"; then
7659  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7660set dummy ${ac_tool_prefix}otool64; ac_word=$2
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662$as_echo_n "checking for $ac_word... " >&6; }
7663if ${ac_cv_prog_OTOOL64+:} false; then :
7664  $as_echo_n "(cached) " >&6
7665else
7666  if test -n "$OTOOL64"; then
7667  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7668else
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672  IFS=$as_save_IFS
7673  test -z "$as_dir" && as_dir=.
7674    for ac_exec_ext in '' $ac_executable_extensions; do
7675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678    break 2
7679  fi
7680done
7681  done
7682IFS=$as_save_IFS
7683
7684fi
7685fi
7686OTOOL64=$ac_cv_prog_OTOOL64
7687if test -n "$OTOOL64"; then
7688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7689$as_echo "$OTOOL64" >&6; }
7690else
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692$as_echo "no" >&6; }
7693fi
7694
7695
7696fi
7697if test -z "$ac_cv_prog_OTOOL64"; then
7698  ac_ct_OTOOL64=$OTOOL64
7699  # Extract the first word of "otool64", so it can be a program name with args.
7700set dummy otool64; ac_word=$2
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702$as_echo_n "checking for $ac_word... " >&6; }
7703if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  if test -n "$ac_ct_OTOOL64"; then
7707  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7708else
7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712  IFS=$as_save_IFS
7713  test -z "$as_dir" && as_dir=.
7714    for ac_exec_ext in '' $ac_executable_extensions; do
7715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716    ac_cv_prog_ac_ct_OTOOL64="otool64"
7717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718    break 2
7719  fi
7720done
7721  done
7722IFS=$as_save_IFS
7723
7724fi
7725fi
7726ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7727if test -n "$ac_ct_OTOOL64"; then
7728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7729$as_echo "$ac_ct_OTOOL64" >&6; }
7730else
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732$as_echo "no" >&6; }
7733fi
7734
7735  if test "x$ac_ct_OTOOL64" = x; then
7736    OTOOL64=":"
7737  else
7738    case $cross_compiling:$ac_tool_warned in
7739yes:)
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7742ac_tool_warned=yes ;;
7743esac
7744    OTOOL64=$ac_ct_OTOOL64
7745  fi
7746else
7747  OTOOL64="$ac_cv_prog_OTOOL64"
7748fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7777$as_echo_n "checking for -single_module linker flag... " >&6; }
7778if ${lt_cv_apple_cc_single_mod+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  lt_cv_apple_cc_single_mod=no
7782      if test -z "${LT_MULTI_MODULE}"; then
7783	# By default we will add the -single_module flag. You can override
7784	# by either setting the environment variable LT_MULTI_MODULE
7785	# non-empty at configure time, or by adding -multi_module to the
7786	# link flags.
7787	rm -rf libconftest.dylib*
7788	echo "int foo(void){return 1;}" > conftest.c
7789	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7790-dynamiclib -Wl,-single_module conftest.c" >&5
7791	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7792	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7793        _lt_result=$?
7794	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7795	  lt_cv_apple_cc_single_mod=yes
7796	else
7797	  cat conftest.err >&5
7798	fi
7799	rm -rf libconftest.dylib*
7800	rm -f conftest.*
7801      fi
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7804$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7806$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7807if ${lt_cv_ld_exported_symbols_list+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  lt_cv_ld_exported_symbols_list=no
7811      save_LDFLAGS=$LDFLAGS
7812      echo "_main" > conftest.sym
7813      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7814      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816
7817int
7818main ()
7819{
7820
7821  ;
7822  return 0;
7823}
7824_ACEOF
7825if ac_fn_c_try_link "$LINENO"; then :
7826  lt_cv_ld_exported_symbols_list=yes
7827else
7828  lt_cv_ld_exported_symbols_list=no
7829fi
7830rm -f core conftest.err conftest.$ac_objext \
7831    conftest$ac_exeext conftest.$ac_ext
7832	LDFLAGS="$save_LDFLAGS"
7833
7834fi
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7836$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7838$as_echo_n "checking for -force_load linker flag... " >&6; }
7839if ${lt_cv_ld_force_load+:} false; then :
7840  $as_echo_n "(cached) " >&6
7841else
7842  lt_cv_ld_force_load=no
7843      cat > conftest.c << _LT_EOF
7844int forced_loaded() { return 2;}
7845_LT_EOF
7846      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7847      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7848      echo "$AR cru libconftest.a conftest.o" >&5
7849      $AR cru libconftest.a conftest.o 2>&5
7850      echo "$RANLIB libconftest.a" >&5
7851      $RANLIB libconftest.a 2>&5
7852      cat > conftest.c << _LT_EOF
7853int main() { return 0;}
7854_LT_EOF
7855      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7856      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7857      _lt_result=$?
7858      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7859	lt_cv_ld_force_load=yes
7860      else
7861	cat conftest.err >&5
7862      fi
7863        rm -f conftest.err libconftest.a conftest conftest.c
7864        rm -rf conftest.dSYM
7865
7866fi
7867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7868$as_echo "$lt_cv_ld_force_load" >&6; }
7869    case $host_os in
7870    rhapsody* | darwin1.[012])
7871      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7872    darwin1.*)
7873      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7874    darwin*) # darwin 5.x on
7875      # if running on 10.5 or later, the deployment target defaults
7876      # to the OS version, if on x86, and 10.4, the deployment
7877      # target defaults to 10.4. Don't you love it?
7878      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7879	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7880	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7881	10.[012]*)
7882	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7883	10.*)
7884	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7885      esac
7886    ;;
7887  esac
7888    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7889      _lt_dar_single_mod='$single_module'
7890    fi
7891    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7892      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7893    else
7894      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7895    fi
7896    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7897      _lt_dsymutil='~$DSYMUTIL $lib || :'
7898    else
7899      _lt_dsymutil=
7900    fi
7901    ;;
7902  esac
7903
7904for ac_header in dlfcn.h
7905do :
7906  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7907"
7908if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7909  cat >>confdefs.h <<_ACEOF
7910#define HAVE_DLFCN_H 1
7911_ACEOF
7912
7913fi
7914
7915done
7916
7917
7918
7919
7920
7921# Set options
7922
7923
7924
7925        enable_dlopen=no
7926
7927
7928  enable_win32_dll=no
7929
7930
7931            # Check whether --enable-shared was given.
7932if test "${enable_shared+set}" = set; then :
7933  enableval=$enable_shared; p=${PACKAGE-default}
7934    case $enableval in
7935    yes) enable_shared=yes ;;
7936    no) enable_shared=no ;;
7937    *)
7938      enable_shared=no
7939      # Look at the argument we got.  We use all the common list separators.
7940      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7941      for pkg in $enableval; do
7942	IFS="$lt_save_ifs"
7943	if test "X$pkg" = "X$p"; then
7944	  enable_shared=yes
7945	fi
7946      done
7947      IFS="$lt_save_ifs"
7948      ;;
7949    esac
7950else
7951  enable_shared=yes
7952fi
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962  # Check whether --enable-static was given.
7963if test "${enable_static+set}" = set; then :
7964  enableval=$enable_static; p=${PACKAGE-default}
7965    case $enableval in
7966    yes) enable_static=yes ;;
7967    no) enable_static=no ;;
7968    *)
7969     enable_static=no
7970      # Look at the argument we got.  We use all the common list separators.
7971      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7972      for pkg in $enableval; do
7973	IFS="$lt_save_ifs"
7974	if test "X$pkg" = "X$p"; then
7975	  enable_static=yes
7976	fi
7977      done
7978      IFS="$lt_save_ifs"
7979      ;;
7980    esac
7981else
7982  enable_static=yes
7983fi
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994# Check whether --with-pic was given.
7995if test "${with_pic+set}" = set; then :
7996  withval=$with_pic; pic_mode="$withval"
7997else
7998  pic_mode=default
7999fi
8000
8001
8002test -z "$pic_mode" && pic_mode=default
8003
8004
8005
8006
8007
8008
8009
8010  # Check whether --enable-fast-install was given.
8011if test "${enable_fast_install+set}" = set; then :
8012  enableval=$enable_fast_install; p=${PACKAGE-default}
8013    case $enableval in
8014    yes) enable_fast_install=yes ;;
8015    no) enable_fast_install=no ;;
8016    *)
8017      enable_fast_install=no
8018      # Look at the argument we got.  We use all the common list separators.
8019      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8020      for pkg in $enableval; do
8021	IFS="$lt_save_ifs"
8022	if test "X$pkg" = "X$p"; then
8023	  enable_fast_install=yes
8024	fi
8025      done
8026      IFS="$lt_save_ifs"
8027      ;;
8028    esac
8029else
8030  enable_fast_install=yes
8031fi
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043# This can be used to rebuild libtool when needed
8044LIBTOOL_DEPS="$ltmain"
8045
8046# Always use our own libtool.
8047LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074test -z "$LN_S" && LN_S="ln -s"
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089if test -n "${ZSH_VERSION+set}" ; then
8090   setopt NO_GLOB_SUBST
8091fi
8092
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8094$as_echo_n "checking for objdir... " >&6; }
8095if ${lt_cv_objdir+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  rm -f .libs 2>/dev/null
8099mkdir .libs 2>/dev/null
8100if test -d .libs; then
8101  lt_cv_objdir=.libs
8102else
8103  # MS-DOS does not allow filenames that begin with a dot.
8104  lt_cv_objdir=_libs
8105fi
8106rmdir .libs 2>/dev/null
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8109$as_echo "$lt_cv_objdir" >&6; }
8110objdir=$lt_cv_objdir
8111
8112
8113
8114
8115
8116cat >>confdefs.h <<_ACEOF
8117#define LT_OBJDIR "$lt_cv_objdir/"
8118_ACEOF
8119
8120
8121
8122
8123case $host_os in
8124aix3*)
8125  # AIX sometimes has problems with the GCC collect2 program.  For some
8126  # reason, if we set the COLLECT_NAMES environment variable, the problems
8127  # vanish in a puff of smoke.
8128  if test "X${COLLECT_NAMES+set}" != Xset; then
8129    COLLECT_NAMES=
8130    export COLLECT_NAMES
8131  fi
8132  ;;
8133esac
8134
8135# Global variables:
8136ofile=libtool
8137can_build_shared=yes
8138
8139# All known linkers require a `.a' archive for static linking (except MSVC,
8140# which needs '.lib').
8141libext=a
8142
8143with_gnu_ld="$lt_cv_prog_gnu_ld"
8144
8145old_CC="$CC"
8146old_CFLAGS="$CFLAGS"
8147
8148# Set sane defaults for various variables
8149test -z "$CC" && CC=cc
8150test -z "$LTCC" && LTCC=$CC
8151test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8152test -z "$LD" && LD=ld
8153test -z "$ac_objext" && ac_objext=o
8154
8155for cc_temp in $compiler""; do
8156  case $cc_temp in
8157    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8158    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8159    \-*) ;;
8160    *) break;;
8161  esac
8162done
8163cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8164
8165
8166# Only perform the check for file, if the check method requires it
8167test -z "$MAGIC_CMD" && MAGIC_CMD=file
8168case $deplibs_check_method in
8169file_magic*)
8170  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8172$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8173if ${lt_cv_path_MAGIC_CMD+:} false; then :
8174  $as_echo_n "(cached) " >&6
8175else
8176  case $MAGIC_CMD in
8177[\\/*] |  ?:[\\/]*)
8178  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8179  ;;
8180*)
8181  lt_save_MAGIC_CMD="$MAGIC_CMD"
8182  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8183  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8184  for ac_dir in $ac_dummy; do
8185    IFS="$lt_save_ifs"
8186    test -z "$ac_dir" && ac_dir=.
8187    if test -f $ac_dir/${ac_tool_prefix}file; then
8188      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8189      if test -n "$file_magic_test_file"; then
8190	case $deplibs_check_method in
8191	"file_magic "*)
8192	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8193	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8194	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8195	    $EGREP "$file_magic_regex" > /dev/null; then
8196	    :
8197	  else
8198	    cat <<_LT_EOF 1>&2
8199
8200*** Warning: the command libtool uses to detect shared libraries,
8201*** $file_magic_cmd, produces output that libtool cannot recognize.
8202*** The result is that libtool may fail to recognize shared libraries
8203*** as such.  This will affect the creation of libtool libraries that
8204*** depend on shared libraries, but programs linked with such libtool
8205*** libraries will work regardless of this problem.  Nevertheless, you
8206*** may want to report the problem to your system manager and/or to
8207*** bug-libtool@gnu.org
8208
8209_LT_EOF
8210	  fi ;;
8211	esac
8212      fi
8213      break
8214    fi
8215  done
8216  IFS="$lt_save_ifs"
8217  MAGIC_CMD="$lt_save_MAGIC_CMD"
8218  ;;
8219esac
8220fi
8221
8222MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8223if test -n "$MAGIC_CMD"; then
8224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8225$as_echo "$MAGIC_CMD" >&6; }
8226else
8227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
8229fi
8230
8231
8232
8233
8234
8235if test -z "$lt_cv_path_MAGIC_CMD"; then
8236  if test -n "$ac_tool_prefix"; then
8237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8238$as_echo_n "checking for file... " >&6; }
8239if ${lt_cv_path_MAGIC_CMD+:} false; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242  case $MAGIC_CMD in
8243[\\/*] |  ?:[\\/]*)
8244  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8245  ;;
8246*)
8247  lt_save_MAGIC_CMD="$MAGIC_CMD"
8248  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8249  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8250  for ac_dir in $ac_dummy; do
8251    IFS="$lt_save_ifs"
8252    test -z "$ac_dir" && ac_dir=.
8253    if test -f $ac_dir/file; then
8254      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8255      if test -n "$file_magic_test_file"; then
8256	case $deplibs_check_method in
8257	"file_magic "*)
8258	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8259	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8261	    $EGREP "$file_magic_regex" > /dev/null; then
8262	    :
8263	  else
8264	    cat <<_LT_EOF 1>&2
8265
8266*** Warning: the command libtool uses to detect shared libraries,
8267*** $file_magic_cmd, produces output that libtool cannot recognize.
8268*** The result is that libtool may fail to recognize shared libraries
8269*** as such.  This will affect the creation of libtool libraries that
8270*** depend on shared libraries, but programs linked with such libtool
8271*** libraries will work regardless of this problem.  Nevertheless, you
8272*** may want to report the problem to your system manager and/or to
8273*** bug-libtool@gnu.org
8274
8275_LT_EOF
8276	  fi ;;
8277	esac
8278      fi
8279      break
8280    fi
8281  done
8282  IFS="$lt_save_ifs"
8283  MAGIC_CMD="$lt_save_MAGIC_CMD"
8284  ;;
8285esac
8286fi
8287
8288MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8289if test -n "$MAGIC_CMD"; then
8290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8291$as_echo "$MAGIC_CMD" >&6; }
8292else
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
8295fi
8296
8297
8298  else
8299    MAGIC_CMD=:
8300  fi
8301fi
8302
8303  fi
8304  ;;
8305esac
8306
8307# Use C for the default configuration in the libtool script
8308
8309lt_save_CC="$CC"
8310ac_ext=c
8311ac_cpp='$CPP $CPPFLAGS'
8312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8314ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315
8316
8317# Source file extension for C test sources.
8318ac_ext=c
8319
8320# Object file extension for compiled C test sources.
8321objext=o
8322objext=$objext
8323
8324# Code to be used in simple compile tests
8325lt_simple_compile_test_code="int some_variable = 0;"
8326
8327# Code to be used in simple link tests
8328lt_simple_link_test_code='int main(){return(0);}'
8329
8330
8331
8332
8333
8334
8335
8336# If no C compiler was specified, use CC.
8337LTCC=${LTCC-"$CC"}
8338
8339# If no C compiler flags were specified, use CFLAGS.
8340LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8341
8342# Allow CC to be a program name with arguments.
8343compiler=$CC
8344
8345# Save the default compiler, since it gets overwritten when the other
8346# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8347compiler_DEFAULT=$CC
8348
8349# save warnings/boilerplate of simple test code
8350ac_outfile=conftest.$ac_objext
8351echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8352eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8353_lt_compiler_boilerplate=`cat conftest.err`
8354$RM conftest*
8355
8356ac_outfile=conftest.$ac_objext
8357echo "$lt_simple_link_test_code" >conftest.$ac_ext
8358eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359_lt_linker_boilerplate=`cat conftest.err`
8360$RM -r conftest*
8361
8362
8363if test -n "$compiler"; then
8364
8365lt_prog_compiler_no_builtin_flag=
8366
8367if test "$GCC" = yes; then
8368  case $cc_basename in
8369  nvcc*)
8370    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8371  *)
8372    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8373  esac
8374
8375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8376$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8377if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8378  $as_echo_n "(cached) " >&6
8379else
8380  lt_cv_prog_compiler_rtti_exceptions=no
8381   ac_outfile=conftest.$ac_objext
8382   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8383   lt_compiler_flag="-fno-rtti -fno-exceptions"
8384   # Insert the option either (1) after the last *FLAGS variable, or
8385   # (2) before a word containing "conftest.", or (3) at the end.
8386   # Note that $ac_compile itself does not contain backslashes and begins
8387   # with a dollar sign (not a hyphen), so the echo should work correctly.
8388   # The option is referenced via a variable to avoid confusing sed.
8389   lt_compile=`echo "$ac_compile" | $SED \
8390   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8391   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8392   -e 's:$: $lt_compiler_flag:'`
8393   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8394   (eval "$lt_compile" 2>conftest.err)
8395   ac_status=$?
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   if (exit $ac_status) && test -s "$ac_outfile"; then
8399     # The compiler can only warn and ignore the option if not recognized
8400     # So say no if there are warnings other than the usual output.
8401     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8402     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8403     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8404       lt_cv_prog_compiler_rtti_exceptions=yes
8405     fi
8406   fi
8407   $RM conftest*
8408
8409fi
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8411$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8412
8413if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8414    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8415else
8416    :
8417fi
8418
8419fi
8420
8421
8422
8423
8424
8425
8426  lt_prog_compiler_wl=
8427lt_prog_compiler_pic=
8428lt_prog_compiler_static=
8429
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8431$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8432
8433  if test "$GCC" = yes; then
8434    lt_prog_compiler_wl='-Wl,'
8435    lt_prog_compiler_static='-static'
8436
8437    case $host_os in
8438      aix*)
8439      # All AIX code is PIC.
8440      if test "$host_cpu" = ia64; then
8441	# AIX 5 now supports IA64 processor
8442	lt_prog_compiler_static='-Bstatic'
8443      fi
8444      ;;
8445
8446    amigaos*)
8447      case $host_cpu in
8448      powerpc)
8449            # see comment about AmigaOS4 .so support
8450            lt_prog_compiler_pic='-fPIC'
8451        ;;
8452      m68k)
8453            # FIXME: we need at least 68020 code to build shared libraries, but
8454            # adding the `-m68020' flag to GCC prevents building anything better,
8455            # like `-m68040'.
8456            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8457        ;;
8458      esac
8459      ;;
8460
8461    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8462      # PIC is the default for these OSes.
8463      ;;
8464
8465    mingw* | cygwin* | pw32* | os2* | cegcc*)
8466      # This hack is so that the source file can tell whether it is being
8467      # built for inclusion in a dll (and should export symbols for example).
8468      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8469      # (--disable-auto-import) libraries
8470      lt_prog_compiler_pic='-DDLL_EXPORT'
8471      ;;
8472
8473    darwin* | rhapsody*)
8474      # PIC is the default on this platform
8475      # Common symbols not allowed in MH_DYLIB files
8476      lt_prog_compiler_pic='-fno-common'
8477      ;;
8478
8479    haiku*)
8480      # PIC is the default for Haiku.
8481      # The "-static" flag exists, but is broken.
8482      lt_prog_compiler_static=
8483      ;;
8484
8485    hpux*)
8486      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8487      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8488      # sets the default TLS model and affects inlining.
8489      case $host_cpu in
8490      hppa*64*)
8491	# +Z the default
8492	;;
8493      *)
8494	lt_prog_compiler_pic='-fPIC'
8495	;;
8496      esac
8497      ;;
8498
8499    interix[3-9]*)
8500      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8501      # Instead, we relocate shared libraries at runtime.
8502      ;;
8503
8504    msdosdjgpp*)
8505      # Just because we use GCC doesn't mean we suddenly get shared libraries
8506      # on systems that don't support them.
8507      lt_prog_compiler_can_build_shared=no
8508      enable_shared=no
8509      ;;
8510
8511    *nto* | *qnx*)
8512      # QNX uses GNU C++, but need to define -shared option too, otherwise
8513      # it will coredump.
8514      lt_prog_compiler_pic='-fPIC -shared'
8515      ;;
8516
8517    sysv4*MP*)
8518      if test -d /usr/nec; then
8519	lt_prog_compiler_pic=-Kconform_pic
8520      fi
8521      ;;
8522
8523    *)
8524      lt_prog_compiler_pic='-fPIC'
8525      ;;
8526    esac
8527
8528    case $cc_basename in
8529    nvcc*) # Cuda Compiler Driver 2.2
8530      lt_prog_compiler_wl='-Xlinker '
8531      lt_prog_compiler_pic='-Xcompiler -fPIC'
8532      ;;
8533    esac
8534  else
8535    # PORTME Check for flag to pass linker flags through the system compiler.
8536    case $host_os in
8537    aix*)
8538      lt_prog_compiler_wl='-Wl,'
8539      if test "$host_cpu" = ia64; then
8540	# AIX 5 now supports IA64 processor
8541	lt_prog_compiler_static='-Bstatic'
8542      else
8543	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8544      fi
8545      ;;
8546
8547    mingw* | cygwin* | pw32* | os2* | cegcc*)
8548      # This hack is so that the source file can tell whether it is being
8549      # built for inclusion in a dll (and should export symbols for example).
8550      lt_prog_compiler_pic='-DDLL_EXPORT'
8551      ;;
8552
8553    hpux9* | hpux10* | hpux11*)
8554      lt_prog_compiler_wl='-Wl,'
8555      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8556      # not for PA HP-UX.
8557      case $host_cpu in
8558      hppa*64*|ia64*)
8559	# +Z the default
8560	;;
8561      *)
8562	lt_prog_compiler_pic='+Z'
8563	;;
8564      esac
8565      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8566      lt_prog_compiler_static='${wl}-a ${wl}archive'
8567      ;;
8568
8569    irix5* | irix6* | nonstopux*)
8570      lt_prog_compiler_wl='-Wl,'
8571      # PIC (with -KPIC) is the default.
8572      lt_prog_compiler_static='-non_shared'
8573      ;;
8574
8575    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8576      case $cc_basename in
8577      # old Intel for x86_64 which still supported -KPIC.
8578      ecc*)
8579	lt_prog_compiler_wl='-Wl,'
8580	lt_prog_compiler_pic='-KPIC'
8581	lt_prog_compiler_static='-static'
8582        ;;
8583      # icc used to be incompatible with GCC.
8584      # ICC 10 doesn't accept -KPIC any more.
8585      icc* | ifort*)
8586	lt_prog_compiler_wl='-Wl,'
8587	lt_prog_compiler_pic='-fPIC'
8588	lt_prog_compiler_static='-static'
8589        ;;
8590      # Lahey Fortran 8.1.
8591      lf95*)
8592	lt_prog_compiler_wl='-Wl,'
8593	lt_prog_compiler_pic='--shared'
8594	lt_prog_compiler_static='--static'
8595	;;
8596      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8597        # Portland Group compilers (*not* the Pentium gcc compiler,
8598	# which looks to be a dead project)
8599	lt_prog_compiler_wl='-Wl,'
8600	lt_prog_compiler_pic='-fpic'
8601	lt_prog_compiler_static='-Bstatic'
8602        ;;
8603      ccc*)
8604        lt_prog_compiler_wl='-Wl,'
8605        # All Alpha code is PIC.
8606        lt_prog_compiler_static='-non_shared'
8607        ;;
8608      xl* | bgxl* | bgf* | mpixl*)
8609	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8610	lt_prog_compiler_wl='-Wl,'
8611	lt_prog_compiler_pic='-qpic'
8612	lt_prog_compiler_static='-qstaticlink'
8613	;;
8614      *)
8615	case `$CC -V 2>&1 | sed 5q` in
8616	*Sun\ F* | *Sun*Fortran*)
8617	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8618	  lt_prog_compiler_pic='-KPIC'
8619	  lt_prog_compiler_static='-Bstatic'
8620	  lt_prog_compiler_wl=''
8621	  ;;
8622	*Sun\ C*)
8623	  # Sun C 5.9
8624	  lt_prog_compiler_pic='-KPIC'
8625	  lt_prog_compiler_static='-Bstatic'
8626	  lt_prog_compiler_wl='-Wl,'
8627	  ;;
8628	esac
8629	;;
8630      esac
8631      ;;
8632
8633    newsos6)
8634      lt_prog_compiler_pic='-KPIC'
8635      lt_prog_compiler_static='-Bstatic'
8636      ;;
8637
8638    *nto* | *qnx*)
8639      # QNX uses GNU C++, but need to define -shared option too, otherwise
8640      # it will coredump.
8641      lt_prog_compiler_pic='-fPIC -shared'
8642      ;;
8643
8644    osf3* | osf4* | osf5*)
8645      lt_prog_compiler_wl='-Wl,'
8646      # All OSF/1 code is PIC.
8647      lt_prog_compiler_static='-non_shared'
8648      ;;
8649
8650    rdos*)
8651      lt_prog_compiler_static='-non_shared'
8652      ;;
8653
8654    solaris*)
8655      lt_prog_compiler_pic='-KPIC'
8656      lt_prog_compiler_static='-Bstatic'
8657      case $cc_basename in
8658      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8659	lt_prog_compiler_wl='-Qoption ld ';;
8660      *)
8661	lt_prog_compiler_wl='-Wl,';;
8662      esac
8663      ;;
8664
8665    sunos4*)
8666      lt_prog_compiler_wl='-Qoption ld '
8667      lt_prog_compiler_pic='-PIC'
8668      lt_prog_compiler_static='-Bstatic'
8669      ;;
8670
8671    sysv4 | sysv4.2uw2* | sysv4.3*)
8672      lt_prog_compiler_wl='-Wl,'
8673      lt_prog_compiler_pic='-KPIC'
8674      lt_prog_compiler_static='-Bstatic'
8675      ;;
8676
8677    sysv4*MP*)
8678      if test -d /usr/nec ;then
8679	lt_prog_compiler_pic='-Kconform_pic'
8680	lt_prog_compiler_static='-Bstatic'
8681      fi
8682      ;;
8683
8684    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8685      lt_prog_compiler_wl='-Wl,'
8686      lt_prog_compiler_pic='-KPIC'
8687      lt_prog_compiler_static='-Bstatic'
8688      ;;
8689
8690    unicos*)
8691      lt_prog_compiler_wl='-Wl,'
8692      lt_prog_compiler_can_build_shared=no
8693      ;;
8694
8695    uts4*)
8696      lt_prog_compiler_pic='-pic'
8697      lt_prog_compiler_static='-Bstatic'
8698      ;;
8699
8700    *)
8701      lt_prog_compiler_can_build_shared=no
8702      ;;
8703    esac
8704  fi
8705
8706case $host_os in
8707  # For platforms which do not support PIC, -DPIC is meaningless:
8708  *djgpp*)
8709    lt_prog_compiler_pic=
8710    ;;
8711  *)
8712    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8713    ;;
8714esac
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8716$as_echo "$lt_prog_compiler_pic" >&6; }
8717
8718
8719
8720
8721
8722
8723#
8724# Check to make sure the PIC flag actually works.
8725#
8726if test -n "$lt_prog_compiler_pic"; then
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8728$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8729if ${lt_cv_prog_compiler_pic_works+:} false; then :
8730  $as_echo_n "(cached) " >&6
8731else
8732  lt_cv_prog_compiler_pic_works=no
8733   ac_outfile=conftest.$ac_objext
8734   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8735   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8736   # Insert the option either (1) after the last *FLAGS variable, or
8737   # (2) before a word containing "conftest.", or (3) at the end.
8738   # Note that $ac_compile itself does not contain backslashes and begins
8739   # with a dollar sign (not a hyphen), so the echo should work correctly.
8740   # The option is referenced via a variable to avoid confusing sed.
8741   lt_compile=`echo "$ac_compile" | $SED \
8742   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8743   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8744   -e 's:$: $lt_compiler_flag:'`
8745   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8746   (eval "$lt_compile" 2>conftest.err)
8747   ac_status=$?
8748   cat conftest.err >&5
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   if (exit $ac_status) && test -s "$ac_outfile"; then
8751     # The compiler can only warn and ignore the option if not recognized
8752     # So say no if there are warnings other than the usual output.
8753     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8754     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8755     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8756       lt_cv_prog_compiler_pic_works=yes
8757     fi
8758   fi
8759   $RM conftest*
8760
8761fi
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8763$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8764
8765if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8766    case $lt_prog_compiler_pic in
8767     "" | " "*) ;;
8768     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8769     esac
8770else
8771    lt_prog_compiler_pic=
8772     lt_prog_compiler_can_build_shared=no
8773fi
8774
8775fi
8776
8777
8778
8779
8780
8781
8782#
8783# Check to make sure the static flag actually works.
8784#
8785wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8787$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8788if ${lt_cv_prog_compiler_static_works+:} false; then :
8789  $as_echo_n "(cached) " >&6
8790else
8791  lt_cv_prog_compiler_static_works=no
8792   save_LDFLAGS="$LDFLAGS"
8793   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8794   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8795   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8796     # The linker can only warn and ignore the option if not recognized
8797     # So say no if there are warnings
8798     if test -s conftest.err; then
8799       # Append any errors to the config.log.
8800       cat conftest.err 1>&5
8801       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8802       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8803       if diff conftest.exp conftest.er2 >/dev/null; then
8804         lt_cv_prog_compiler_static_works=yes
8805       fi
8806     else
8807       lt_cv_prog_compiler_static_works=yes
8808     fi
8809   fi
8810   $RM -r conftest*
8811   LDFLAGS="$save_LDFLAGS"
8812
8813fi
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8815$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8816
8817if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8818    :
8819else
8820    lt_prog_compiler_static=
8821fi
8822
8823
8824
8825
8826
8827
8828
8829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8830$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8831if ${lt_cv_prog_compiler_c_o+:} false; then :
8832  $as_echo_n "(cached) " >&6
8833else
8834  lt_cv_prog_compiler_c_o=no
8835   $RM -r conftest 2>/dev/null
8836   mkdir conftest
8837   cd conftest
8838   mkdir out
8839   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8840
8841   lt_compiler_flag="-o out/conftest2.$ac_objext"
8842   # Insert the option either (1) after the last *FLAGS variable, or
8843   # (2) before a word containing "conftest.", or (3) at the end.
8844   # Note that $ac_compile itself does not contain backslashes and begins
8845   # with a dollar sign (not a hyphen), so the echo should work correctly.
8846   lt_compile=`echo "$ac_compile" | $SED \
8847   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8848   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8849   -e 's:$: $lt_compiler_flag:'`
8850   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8851   (eval "$lt_compile" 2>out/conftest.err)
8852   ac_status=$?
8853   cat out/conftest.err >&5
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8856   then
8857     # The compiler can only warn and ignore the option if not recognized
8858     # So say no if there are warnings
8859     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8860     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8861     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8862       lt_cv_prog_compiler_c_o=yes
8863     fi
8864   fi
8865   chmod u+w . 2>&5
8866   $RM conftest*
8867   # SGI C++ compiler will create directory out/ii_files/ for
8868   # template instantiation
8869   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8870   $RM out/* && rmdir out
8871   cd ..
8872   $RM -r conftest
8873   $RM conftest*
8874
8875fi
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8877$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8878
8879
8880
8881
8882
8883
8884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8885$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8886if ${lt_cv_prog_compiler_c_o+:} false; then :
8887  $as_echo_n "(cached) " >&6
8888else
8889  lt_cv_prog_compiler_c_o=no
8890   $RM -r conftest 2>/dev/null
8891   mkdir conftest
8892   cd conftest
8893   mkdir out
8894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8895
8896   lt_compiler_flag="-o out/conftest2.$ac_objext"
8897   # Insert the option either (1) after the last *FLAGS variable, or
8898   # (2) before a word containing "conftest.", or (3) at the end.
8899   # Note that $ac_compile itself does not contain backslashes and begins
8900   # with a dollar sign (not a hyphen), so the echo should work correctly.
8901   lt_compile=`echo "$ac_compile" | $SED \
8902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8904   -e 's:$: $lt_compiler_flag:'`
8905   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8906   (eval "$lt_compile" 2>out/conftest.err)
8907   ac_status=$?
8908   cat out/conftest.err >&5
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8911   then
8912     # The compiler can only warn and ignore the option if not recognized
8913     # So say no if there are warnings
8914     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8915     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8916     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8917       lt_cv_prog_compiler_c_o=yes
8918     fi
8919   fi
8920   chmod u+w . 2>&5
8921   $RM conftest*
8922   # SGI C++ compiler will create directory out/ii_files/ for
8923   # template instantiation
8924   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8925   $RM out/* && rmdir out
8926   cd ..
8927   $RM -r conftest
8928   $RM conftest*
8929
8930fi
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8932$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8933
8934
8935
8936
8937hard_links="nottested"
8938if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8939  # do not overwrite the value of need_locks provided by the user
8940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8941$as_echo_n "checking if we can lock with hard links... " >&6; }
8942  hard_links=yes
8943  $RM conftest*
8944  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8945  touch conftest.a
8946  ln conftest.a conftest.b 2>&5 || hard_links=no
8947  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8949$as_echo "$hard_links" >&6; }
8950  if test "$hard_links" = no; then
8951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8952$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8953    need_locks=warn
8954  fi
8955else
8956  need_locks=no
8957fi
8958
8959
8960
8961
8962
8963
8964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8965$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8966
8967  runpath_var=
8968  allow_undefined_flag=
8969  always_export_symbols=no
8970  archive_cmds=
8971  archive_expsym_cmds=
8972  compiler_needs_object=no
8973  enable_shared_with_static_runtimes=no
8974  export_dynamic_flag_spec=
8975  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8976  hardcode_automatic=no
8977  hardcode_direct=no
8978  hardcode_direct_absolute=no
8979  hardcode_libdir_flag_spec=
8980  hardcode_libdir_flag_spec_ld=
8981  hardcode_libdir_separator=
8982  hardcode_minus_L=no
8983  hardcode_shlibpath_var=unsupported
8984  inherit_rpath=no
8985  link_all_deplibs=unknown
8986  module_cmds=
8987  module_expsym_cmds=
8988  old_archive_from_new_cmds=
8989  old_archive_from_expsyms_cmds=
8990  thread_safe_flag_spec=
8991  whole_archive_flag_spec=
8992  # include_expsyms should be a list of space-separated symbols to be *always*
8993  # included in the symbol list
8994  include_expsyms=
8995  # exclude_expsyms can be an extended regexp of symbols to exclude
8996  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8997  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8998  # as well as any symbol that contains `d'.
8999  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9000  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9001  # platforms (ab)use it in PIC code, but their linkers get confused if
9002  # the symbol is explicitly referenced.  Since portable code cannot
9003  # rely on this symbol name, it's probably fine to never include it in
9004  # preloaded symbol tables.
9005  # Exclude shared library initialization/finalization symbols.
9006  extract_expsyms_cmds=
9007
9008  case $host_os in
9009  cygwin* | mingw* | pw32* | cegcc*)
9010    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9011    # When not using gcc, we currently assume that we are using
9012    # Microsoft Visual C++.
9013    if test "$GCC" != yes; then
9014      with_gnu_ld=no
9015    fi
9016    ;;
9017  interix*)
9018    # we just hope/assume this is gcc and not c89 (= MSVC++)
9019    with_gnu_ld=yes
9020    ;;
9021  openbsd*)
9022    with_gnu_ld=no
9023    ;;
9024  esac
9025
9026  ld_shlibs=yes
9027
9028  # On some targets, GNU ld is compatible enough with the native linker
9029  # that we're better off using the native interface for both.
9030  lt_use_gnu_ld_interface=no
9031  if test "$with_gnu_ld" = yes; then
9032    case $host_os in
9033      aix*)
9034	# The AIX port of GNU ld has always aspired to compatibility
9035	# with the native linker.  However, as the warning in the GNU ld
9036	# block says, versions before 2.19.5* couldn't really create working
9037	# shared libraries, regardless of the interface used.
9038	case `$LD -v 2>&1` in
9039	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9040	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9041	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9042	  *)
9043	    lt_use_gnu_ld_interface=yes
9044	    ;;
9045	esac
9046	;;
9047      *)
9048	lt_use_gnu_ld_interface=yes
9049	;;
9050    esac
9051  fi
9052
9053  if test "$lt_use_gnu_ld_interface" = yes; then
9054    # If archive_cmds runs LD, not CC, wlarc should be empty
9055    wlarc='${wl}'
9056
9057    # Set some defaults for GNU ld with shared library support. These
9058    # are reset later if shared libraries are not supported. Putting them
9059    # here allows them to be overridden if necessary.
9060    runpath_var=LD_RUN_PATH
9061    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9062    export_dynamic_flag_spec='${wl}--export-dynamic'
9063    # ancient GNU ld didn't support --whole-archive et. al.
9064    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9065      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9066    else
9067      whole_archive_flag_spec=
9068    fi
9069    supports_anon_versioning=no
9070    case `$LD -v 2>&1` in
9071      *GNU\ gold*) supports_anon_versioning=yes ;;
9072      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9073      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9074      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9075      *\ 2.11.*) ;; # other 2.11 versions
9076      *) supports_anon_versioning=yes ;;
9077    esac
9078
9079    # See if GNU ld supports shared libraries.
9080    case $host_os in
9081    aix[3-9]*)
9082      # On AIX/PPC, the GNU linker is very broken
9083      if test "$host_cpu" != ia64; then
9084	ld_shlibs=no
9085	cat <<_LT_EOF 1>&2
9086
9087*** Warning: the GNU linker, at least up to release 2.19, is reported
9088*** to be unable to reliably create shared libraries on AIX.
9089*** Therefore, libtool is disabling shared libraries support.  If you
9090*** really care for shared libraries, you may want to install binutils
9091*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9092*** You will then need to restart the configuration process.
9093
9094_LT_EOF
9095      fi
9096      ;;
9097
9098    amigaos*)
9099      case $host_cpu in
9100      powerpc)
9101            # see comment about AmigaOS4 .so support
9102            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103            archive_expsym_cmds=''
9104        ;;
9105      m68k)
9106            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)'
9107            hardcode_libdir_flag_spec='-L$libdir'
9108            hardcode_minus_L=yes
9109        ;;
9110      esac
9111      ;;
9112
9113    beos*)
9114      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9115	allow_undefined_flag=unsupported
9116	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9117	# support --undefined.  This deserves some investigation.  FIXME
9118	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119      else
9120	ld_shlibs=no
9121      fi
9122      ;;
9123
9124    cygwin* | mingw* | pw32* | cegcc*)
9125      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9126      # as there is no search path for DLLs.
9127      hardcode_libdir_flag_spec='-L$libdir'
9128      export_dynamic_flag_spec='${wl}--export-all-symbols'
9129      allow_undefined_flag=unsupported
9130      always_export_symbols=no
9131      enable_shared_with_static_runtimes=yes
9132      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9133
9134      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9135        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9136	# If the export-symbols file already is a .def file (1st line
9137	# is EXPORTS), use it as is; otherwise, prepend...
9138	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9139	  cp $export_symbols $output_objdir/$soname.def;
9140	else
9141	  echo EXPORTS > $output_objdir/$soname.def;
9142	  cat $export_symbols >> $output_objdir/$soname.def;
9143	fi~
9144	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9145      else
9146	ld_shlibs=no
9147      fi
9148      ;;
9149
9150    haiku*)
9151      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152      link_all_deplibs=yes
9153      ;;
9154
9155    interix[3-9]*)
9156      hardcode_direct=no
9157      hardcode_shlibpath_var=no
9158      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9159      export_dynamic_flag_spec='${wl}-E'
9160      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9161      # Instead, shared libraries are loaded at an image base (0x10000000 by
9162      # default) and relocated if they conflict, which is a slow very memory
9163      # consuming and fragmenting process.  To avoid this, we pick a random,
9164      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9165      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9166      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9167      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'
9168      ;;
9169
9170    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9171      tmp_diet=no
9172      if test "$host_os" = linux-dietlibc; then
9173	case $cc_basename in
9174	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9175	esac
9176      fi
9177      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9178	 && test "$tmp_diet" = no
9179      then
9180	tmp_addflag=
9181	tmp_sharedflag='-shared'
9182	case $cc_basename,$host_cpu in
9183        pgcc*)				# Portland Group C compiler
9184	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9185	  tmp_addflag=' $pic_flag'
9186	  ;;
9187	pgf77* | pgf90* | pgf95* | pgfortran*)
9188					# Portland Group f77 and f90 compilers
9189	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9190	  tmp_addflag=' $pic_flag -Mnomain' ;;
9191	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9192	  tmp_addflag=' -i_dynamic' ;;
9193	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9194	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9195	ifc* | ifort*)			# Intel Fortran compiler
9196	  tmp_addflag=' -nofor_main' ;;
9197	lf95*)				# Lahey Fortran 8.1
9198	  whole_archive_flag_spec=
9199	  tmp_sharedflag='--shared' ;;
9200	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9201	  tmp_sharedflag='-qmkshrobj'
9202	  tmp_addflag= ;;
9203	nvcc*)	# Cuda Compiler Driver 2.2
9204	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9205	  compiler_needs_object=yes
9206	  ;;
9207	esac
9208	case `$CC -V 2>&1 | sed 5q` in
9209	*Sun\ C*)			# Sun C 5.9
9210	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9211	  compiler_needs_object=yes
9212	  tmp_sharedflag='-G' ;;
9213	*Sun\ F*)			# Sun Fortran 8.3
9214	  tmp_sharedflag='-G' ;;
9215	esac
9216	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217
9218        if test "x$supports_anon_versioning" = xyes; then
9219          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9220	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9221	    echo "local: *; };" >> $output_objdir/$libname.ver~
9222	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9223        fi
9224
9225	case $cc_basename in
9226	xlf* | bgf* | bgxlf* | mpixlf*)
9227	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9228	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9229	  hardcode_libdir_flag_spec=
9230	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9231	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9232	  if test "x$supports_anon_versioning" = xyes; then
9233	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9234	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9235	      echo "local: *; };" >> $output_objdir/$libname.ver~
9236	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9237	  fi
9238	  ;;
9239	esac
9240      else
9241        ld_shlibs=no
9242      fi
9243      ;;
9244
9245    netbsd*)
9246      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9247	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9248	wlarc=
9249      else
9250	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9252      fi
9253      ;;
9254
9255    solaris*)
9256      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9257	ld_shlibs=no
9258	cat <<_LT_EOF 1>&2
9259
9260*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9261*** create shared libraries on Solaris systems.  Therefore, libtool
9262*** is disabling shared libraries support.  We urge you to upgrade GNU
9263*** binutils to release 2.9.1 or newer.  Another option is to modify
9264*** your PATH or compiler configuration so that the native linker is
9265*** used, and then restart.
9266
9267_LT_EOF
9268      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9269	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9271      else
9272	ld_shlibs=no
9273      fi
9274      ;;
9275
9276    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9277      case `$LD -v 2>&1` in
9278        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9279	ld_shlibs=no
9280	cat <<_LT_EOF 1>&2
9281
9282*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9283*** reliably create shared libraries on SCO systems.  Therefore, libtool
9284*** is disabling shared libraries support.  We urge you to upgrade GNU
9285*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9286*** your PATH or compiler configuration so that the native linker is
9287*** used, and then restart.
9288
9289_LT_EOF
9290	;;
9291	*)
9292	  # For security reasons, it is highly recommended that you always
9293	  # use absolute paths for naming shared libraries, and exclude the
9294	  # DT_RUNPATH tag from executables and libraries.  But doing so
9295	  # requires that you compile everything twice, which is a pain.
9296	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9297	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9300	  else
9301	    ld_shlibs=no
9302	  fi
9303	;;
9304      esac
9305      ;;
9306
9307    sunos4*)
9308      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9309      wlarc=
9310      hardcode_direct=yes
9311      hardcode_shlibpath_var=no
9312      ;;
9313
9314    *)
9315      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9316	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9318      else
9319	ld_shlibs=no
9320      fi
9321      ;;
9322    esac
9323
9324    if test "$ld_shlibs" = no; then
9325      runpath_var=
9326      hardcode_libdir_flag_spec=
9327      export_dynamic_flag_spec=
9328      whole_archive_flag_spec=
9329    fi
9330  else
9331    # PORTME fill in a description of your system's linker (not GNU ld)
9332    case $host_os in
9333    aix3*)
9334      allow_undefined_flag=unsupported
9335      always_export_symbols=yes
9336      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'
9337      # Note: this linker hardcodes the directories in LIBPATH if there
9338      # are no directories specified by -L.
9339      hardcode_minus_L=yes
9340      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9341	# Neither direct hardcoding nor static linking is supported with a
9342	# broken collect2.
9343	hardcode_direct=unsupported
9344      fi
9345      ;;
9346
9347    aix[4-9]*)
9348      if test "$host_cpu" = ia64; then
9349	# On IA64, the linker does run time linking by default, so we don't
9350	# have to do anything special.
9351	aix_use_runtimelinking=no
9352	exp_sym_flag='-Bexport'
9353	no_entry_flag=""
9354      else
9355	# If we're using GNU nm, then we don't want the "-C" option.
9356	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9357	# Also, AIX nm treats weak defined symbols like other global
9358	# defined symbols, whereas GNU nm marks them as "W".
9359	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9360	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9361	else
9362	  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'
9363	fi
9364	aix_use_runtimelinking=no
9365
9366	# Test if we are trying to use run time linking or normal
9367	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9368	# need to do runtime linking.
9369	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9370	  for ld_flag in $LDFLAGS; do
9371	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9372	    aix_use_runtimelinking=yes
9373	    break
9374	  fi
9375	  done
9376	  ;;
9377	esac
9378
9379	exp_sym_flag='-bexport'
9380	no_entry_flag='-bnoentry'
9381      fi
9382
9383      # When large executables or shared objects are built, AIX ld can
9384      # have problems creating the table of contents.  If linking a library
9385      # or program results in "error TOC overflow" add -mminimal-toc to
9386      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9387      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9388
9389      archive_cmds=''
9390      hardcode_direct=yes
9391      hardcode_direct_absolute=yes
9392      hardcode_libdir_separator=':'
9393      link_all_deplibs=yes
9394      file_list_spec='${wl}-f,'
9395
9396      if test "$GCC" = yes; then
9397	case $host_os in aix4.[012]|aix4.[012].*)
9398	# We only want to do this on AIX 4.2 and lower, the check
9399	# below for broken collect2 doesn't work under 4.3+
9400	  collect2name=`${CC} -print-prog-name=collect2`
9401	  if test -f "$collect2name" &&
9402	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9403	  then
9404	  # We have reworked collect2
9405	  :
9406	  else
9407	  # We have old collect2
9408	  hardcode_direct=unsupported
9409	  # It fails to find uninstalled libraries when the uninstalled
9410	  # path is not listed in the libpath.  Setting hardcode_minus_L
9411	  # to unsupported forces relinking
9412	  hardcode_minus_L=yes
9413	  hardcode_libdir_flag_spec='-L$libdir'
9414	  hardcode_libdir_separator=
9415	  fi
9416	  ;;
9417	esac
9418	shared_flag='-shared'
9419	if test "$aix_use_runtimelinking" = yes; then
9420	  shared_flag="$shared_flag "'${wl}-G'
9421	fi
9422      else
9423	# not using gcc
9424	if test "$host_cpu" = ia64; then
9425	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9426	# chokes on -Wl,-G. The following line is correct:
9427	  shared_flag='-G'
9428	else
9429	  if test "$aix_use_runtimelinking" = yes; then
9430	    shared_flag='${wl}-G'
9431	  else
9432	    shared_flag='${wl}-bM:SRE'
9433	  fi
9434	fi
9435      fi
9436
9437      export_dynamic_flag_spec='${wl}-bexpall'
9438      # It seems that -bexpall does not export symbols beginning with
9439      # underscore (_), so it is better to generate a list of symbols to export.
9440      always_export_symbols=yes
9441      if test "$aix_use_runtimelinking" = yes; then
9442	# Warning - without using the other runtime loading flags (-brtl),
9443	# -berok will link without error, but may produce a broken library.
9444	allow_undefined_flag='-berok'
9445        # Determine the default libpath from the value encoded in an
9446        # empty executable.
9447        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448/* end confdefs.h.  */
9449
9450int
9451main ()
9452{
9453
9454  ;
9455  return 0;
9456}
9457_ACEOF
9458if ac_fn_c_try_link "$LINENO"; then :
9459
9460lt_aix_libpath_sed='
9461    /Import File Strings/,/^$/ {
9462	/^0/ {
9463	    s/^0  *\(.*\)$/\1/
9464	    p
9465	}
9466    }'
9467aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9468# Check for a 64-bit object if we didn't find anything.
9469if test -z "$aix_libpath"; then
9470  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9471fi
9472fi
9473rm -f core conftest.err conftest.$ac_objext \
9474    conftest$ac_exeext conftest.$ac_ext
9475if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9476
9477        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9478        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9479      else
9480	if test "$host_cpu" = ia64; then
9481	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9482	  allow_undefined_flag="-z nodefs"
9483	  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"
9484	else
9485	 # Determine the default libpath from the value encoded in an
9486	 # empty executable.
9487	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488/* end confdefs.h.  */
9489
9490int
9491main ()
9492{
9493
9494  ;
9495  return 0;
9496}
9497_ACEOF
9498if ac_fn_c_try_link "$LINENO"; then :
9499
9500lt_aix_libpath_sed='
9501    /Import File Strings/,/^$/ {
9502	/^0/ {
9503	    s/^0  *\(.*\)$/\1/
9504	    p
9505	}
9506    }'
9507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508# Check for a 64-bit object if we didn't find anything.
9509if test -z "$aix_libpath"; then
9510  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511fi
9512fi
9513rm -f core conftest.err conftest.$ac_objext \
9514    conftest$ac_exeext conftest.$ac_ext
9515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9516
9517	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9518	  # Warning - without using the other run time loading flags,
9519	  # -berok will link without error, but may produce a broken library.
9520	  no_undefined_flag=' ${wl}-bernotok'
9521	  allow_undefined_flag=' ${wl}-berok'
9522	  if test "$with_gnu_ld" = yes; then
9523	    # We only use this code for GNU lds that support --whole-archive.
9524	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9525	  else
9526	    # Exported symbols can be pulled into shared objects from archives
9527	    whole_archive_flag_spec='$convenience'
9528	  fi
9529	  archive_cmds_need_lc=yes
9530	  # This is similar to how AIX traditionally builds its shared libraries.
9531	  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'
9532	fi
9533      fi
9534      ;;
9535
9536    amigaos*)
9537      case $host_cpu in
9538      powerpc)
9539            # see comment about AmigaOS4 .so support
9540            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541            archive_expsym_cmds=''
9542        ;;
9543      m68k)
9544            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)'
9545            hardcode_libdir_flag_spec='-L$libdir'
9546            hardcode_minus_L=yes
9547        ;;
9548      esac
9549      ;;
9550
9551    bsdi[45]*)
9552      export_dynamic_flag_spec=-rdynamic
9553      ;;
9554
9555    cygwin* | mingw* | pw32* | cegcc*)
9556      # When not using gcc, we currently assume that we are using
9557      # Microsoft Visual C++.
9558      # hardcode_libdir_flag_spec is actually meaningless, as there is
9559      # no search path for DLLs.
9560      hardcode_libdir_flag_spec=' '
9561      allow_undefined_flag=unsupported
9562      # Tell ltmain to make .lib files, not .a files.
9563      libext=lib
9564      # Tell ltmain to make .dll files, not .so files.
9565      shrext_cmds=".dll"
9566      # FIXME: Setting linknames here is a bad hack.
9567      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9568      # The linker will automatically build a .lib file if we build a DLL.
9569      old_archive_from_new_cmds='true'
9570      # FIXME: Should let the user specify the lib program.
9571      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9572      fix_srcfile_path='`cygpath -w "$srcfile"`'
9573      enable_shared_with_static_runtimes=yes
9574      ;;
9575
9576    darwin* | rhapsody*)
9577
9578
9579  archive_cmds_need_lc=no
9580  hardcode_direct=no
9581  hardcode_automatic=yes
9582  hardcode_shlibpath_var=unsupported
9583  if test "$lt_cv_ld_force_load" = "yes"; then
9584    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9585  else
9586    whole_archive_flag_spec=''
9587  fi
9588  link_all_deplibs=yes
9589  allow_undefined_flag="$_lt_dar_allow_undefined"
9590  case $cc_basename in
9591     ifort*) _lt_dar_can_shared=yes ;;
9592     *) _lt_dar_can_shared=$GCC ;;
9593  esac
9594  if test "$_lt_dar_can_shared" = "yes"; then
9595    output_verbose_link_cmd=func_echo_all
9596    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9597    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9598    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}"
9599    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}"
9600
9601  else
9602  ld_shlibs=no
9603  fi
9604
9605      ;;
9606
9607    dgux*)
9608      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609      hardcode_libdir_flag_spec='-L$libdir'
9610      hardcode_shlibpath_var=no
9611      ;;
9612
9613    freebsd1*)
9614      ld_shlibs=no
9615      ;;
9616
9617    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9618    # support.  Future versions do this automatically, but an explicit c++rt0.o
9619    # does not break anything, and helps significantly (at the cost of a little
9620    # extra space).
9621    freebsd2.2*)
9622      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9623      hardcode_libdir_flag_spec='-R$libdir'
9624      hardcode_direct=yes
9625      hardcode_shlibpath_var=no
9626      ;;
9627
9628    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9629    freebsd2*)
9630      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9631      hardcode_direct=yes
9632      hardcode_minus_L=yes
9633      hardcode_shlibpath_var=no
9634      ;;
9635
9636    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9637    freebsd* | dragonfly*)
9638      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9639      hardcode_libdir_flag_spec='-R$libdir'
9640      hardcode_direct=yes
9641      hardcode_shlibpath_var=no
9642      ;;
9643
9644    hpux9*)
9645      if test "$GCC" = yes; then
9646	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'
9647      else
9648	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'
9649      fi
9650      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9651      hardcode_libdir_separator=:
9652      hardcode_direct=yes
9653
9654      # hardcode_minus_L: Not really in the search PATH,
9655      # but as the default location of the library.
9656      hardcode_minus_L=yes
9657      export_dynamic_flag_spec='${wl}-E'
9658      ;;
9659
9660    hpux10*)
9661      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9662	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9663      else
9664	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9665      fi
9666      if test "$with_gnu_ld" = no; then
9667	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9668	hardcode_libdir_flag_spec_ld='+b $libdir'
9669	hardcode_libdir_separator=:
9670	hardcode_direct=yes
9671	hardcode_direct_absolute=yes
9672	export_dynamic_flag_spec='${wl}-E'
9673	# hardcode_minus_L: Not really in the search PATH,
9674	# but as the default location of the library.
9675	hardcode_minus_L=yes
9676      fi
9677      ;;
9678
9679    hpux11*)
9680      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9681	case $host_cpu in
9682	hppa*64*)
9683	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9684	  ;;
9685	ia64*)
9686	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9687	  ;;
9688	*)
9689	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9690	  ;;
9691	esac
9692      else
9693	case $host_cpu in
9694	hppa*64*)
9695	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9696	  ;;
9697	ia64*)
9698	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9699	  ;;
9700	*)
9701
9702	  # Older versions of the 11.00 compiler do not understand -b yet
9703	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9704	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9705$as_echo_n "checking if $CC understands -b... " >&6; }
9706if ${lt_cv_prog_compiler__b+:} false; then :
9707  $as_echo_n "(cached) " >&6
9708else
9709  lt_cv_prog_compiler__b=no
9710   save_LDFLAGS="$LDFLAGS"
9711   LDFLAGS="$LDFLAGS -b"
9712   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9713   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9714     # The linker can only warn and ignore the option if not recognized
9715     # So say no if there are warnings
9716     if test -s conftest.err; then
9717       # Append any errors to the config.log.
9718       cat conftest.err 1>&5
9719       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9720       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9721       if diff conftest.exp conftest.er2 >/dev/null; then
9722         lt_cv_prog_compiler__b=yes
9723       fi
9724     else
9725       lt_cv_prog_compiler__b=yes
9726     fi
9727   fi
9728   $RM -r conftest*
9729   LDFLAGS="$save_LDFLAGS"
9730
9731fi
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9733$as_echo "$lt_cv_prog_compiler__b" >&6; }
9734
9735if test x"$lt_cv_prog_compiler__b" = xyes; then
9736    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9737else
9738    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9739fi
9740
9741	  ;;
9742	esac
9743      fi
9744      if test "$with_gnu_ld" = no; then
9745	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9746	hardcode_libdir_separator=:
9747
9748	case $host_cpu in
9749	hppa*64*|ia64*)
9750	  hardcode_direct=no
9751	  hardcode_shlibpath_var=no
9752	  ;;
9753	*)
9754	  hardcode_direct=yes
9755	  hardcode_direct_absolute=yes
9756	  export_dynamic_flag_spec='${wl}-E'
9757
9758	  # hardcode_minus_L: Not really in the search PATH,
9759	  # but as the default location of the library.
9760	  hardcode_minus_L=yes
9761	  ;;
9762	esac
9763      fi
9764      ;;
9765
9766    irix5* | irix6* | nonstopux*)
9767      if test "$GCC" = yes; then
9768	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9769	# Try to use the -exported_symbol ld option, if it does not
9770	# work, assume that -exports_file does not work either and
9771	# implicitly export all symbols.
9772        save_LDFLAGS="$LDFLAGS"
9773        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9774        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h.  */
9776int foo(void) {}
9777_ACEOF
9778if ac_fn_c_try_link "$LINENO"; then :
9779  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9780
9781fi
9782rm -f core conftest.err conftest.$ac_objext \
9783    conftest$ac_exeext conftest.$ac_ext
9784        LDFLAGS="$save_LDFLAGS"
9785      else
9786	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9787	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9788      fi
9789      archive_cmds_need_lc='no'
9790      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9791      hardcode_libdir_separator=:
9792      inherit_rpath=yes
9793      link_all_deplibs=yes
9794      ;;
9795
9796    netbsd*)
9797      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9798	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9799      else
9800	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9801      fi
9802      hardcode_libdir_flag_spec='-R$libdir'
9803      hardcode_direct=yes
9804      hardcode_shlibpath_var=no
9805      ;;
9806
9807    newsos6)
9808      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809      hardcode_direct=yes
9810      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9811      hardcode_libdir_separator=:
9812      hardcode_shlibpath_var=no
9813      ;;
9814
9815    *nto* | *qnx*)
9816      ;;
9817
9818    openbsd*)
9819      if test -f /usr/libexec/ld.so; then
9820	hardcode_direct=yes
9821	hardcode_shlibpath_var=no
9822	hardcode_direct_absolute=yes
9823	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9824	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9825	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9826	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9827	  export_dynamic_flag_spec='${wl}-E'
9828	else
9829	  case $host_os in
9830	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9831	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9832	     hardcode_libdir_flag_spec='-R$libdir'
9833	     ;;
9834	   *)
9835	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9836	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9837	     ;;
9838	  esac
9839	fi
9840      else
9841	ld_shlibs=no
9842      fi
9843      ;;
9844
9845    os2*)
9846      hardcode_libdir_flag_spec='-L$libdir'
9847      hardcode_minus_L=yes
9848      allow_undefined_flag=unsupported
9849      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'
9850      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9851      ;;
9852
9853    osf3*)
9854      if test "$GCC" = yes; then
9855	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9856	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9857      else
9858	allow_undefined_flag=' -expect_unresolved \*'
9859	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9860      fi
9861      archive_cmds_need_lc='no'
9862      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9863      hardcode_libdir_separator=:
9864      ;;
9865
9866    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9867      if test "$GCC" = yes; then
9868	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9869	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9870	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9871      else
9872	allow_undefined_flag=' -expect_unresolved \*'
9873	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9874	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~
9875	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9876
9877	# Both c and cxx compiler support -rpath directly
9878	hardcode_libdir_flag_spec='-rpath $libdir'
9879      fi
9880      archive_cmds_need_lc='no'
9881      hardcode_libdir_separator=:
9882      ;;
9883
9884    solaris*)
9885      no_undefined_flag=' -z defs'
9886      if test "$GCC" = yes; then
9887	wlarc='${wl}'
9888	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9889	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9890	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9891      else
9892	case `$CC -V 2>&1` in
9893	*"Compilers 5.0"*)
9894	  wlarc=''
9895	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9897	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9898	  ;;
9899	*)
9900	  wlarc='${wl}'
9901	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9902	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9903	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9904	  ;;
9905	esac
9906      fi
9907      hardcode_libdir_flag_spec='-R$libdir'
9908      hardcode_shlibpath_var=no
9909      case $host_os in
9910      solaris2.[0-5] | solaris2.[0-5].*) ;;
9911      *)
9912	# The compiler driver will combine and reorder linker options,
9913	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9914	# but is careful enough not to reorder.
9915	# Supported since Solaris 2.6 (maybe 2.5.1?)
9916	if test "$GCC" = yes; then
9917	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9918	else
9919	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9920	fi
9921	;;
9922      esac
9923      link_all_deplibs=yes
9924      ;;
9925
9926    sunos4*)
9927      if test "x$host_vendor" = xsequent; then
9928	# Use $CC to link under sequent, because it throws in some extra .o
9929	# files that make .init and .fini sections work.
9930	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9931      else
9932	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9933      fi
9934      hardcode_libdir_flag_spec='-L$libdir'
9935      hardcode_direct=yes
9936      hardcode_minus_L=yes
9937      hardcode_shlibpath_var=no
9938      ;;
9939
9940    sysv4)
9941      case $host_vendor in
9942	sni)
9943	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944	  hardcode_direct=yes # is this really true???
9945	;;
9946	siemens)
9947	  ## LD is ld it makes a PLAMLIB
9948	  ## CC just makes a GrossModule.
9949	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9950	  reload_cmds='$CC -r -o $output$reload_objs'
9951	  hardcode_direct=no
9952        ;;
9953	motorola)
9954	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9956	;;
9957      esac
9958      runpath_var='LD_RUN_PATH'
9959      hardcode_shlibpath_var=no
9960      ;;
9961
9962    sysv4.3*)
9963      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964      hardcode_shlibpath_var=no
9965      export_dynamic_flag_spec='-Bexport'
9966      ;;
9967
9968    sysv4*MP*)
9969      if test -d /usr/nec; then
9970	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971	hardcode_shlibpath_var=no
9972	runpath_var=LD_RUN_PATH
9973	hardcode_runpath_var=yes
9974	ld_shlibs=yes
9975      fi
9976      ;;
9977
9978    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9979      no_undefined_flag='${wl}-z,text'
9980      archive_cmds_need_lc=no
9981      hardcode_shlibpath_var=no
9982      runpath_var='LD_RUN_PATH'
9983
9984      if test "$GCC" = yes; then
9985	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987      else
9988	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990      fi
9991      ;;
9992
9993    sysv5* | sco3.2v5* | sco5v6*)
9994      # Note: We can NOT use -z defs as we might desire, because we do not
9995      # link with -lc, and that would cause any symbols used from libc to
9996      # always be unresolved, which means just about no library would
9997      # ever link correctly.  If we're not using GNU ld we use -z text
9998      # though, which does catch some bad symbols but isn't as heavy-handed
9999      # as -z defs.
10000      no_undefined_flag='${wl}-z,text'
10001      allow_undefined_flag='${wl}-z,nodefs'
10002      archive_cmds_need_lc=no
10003      hardcode_shlibpath_var=no
10004      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10005      hardcode_libdir_separator=':'
10006      link_all_deplibs=yes
10007      export_dynamic_flag_spec='${wl}-Bexport'
10008      runpath_var='LD_RUN_PATH'
10009
10010      if test "$GCC" = yes; then
10011	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013      else
10014	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016      fi
10017      ;;
10018
10019    uts4*)
10020      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021      hardcode_libdir_flag_spec='-L$libdir'
10022      hardcode_shlibpath_var=no
10023      ;;
10024
10025    *)
10026      ld_shlibs=no
10027      ;;
10028    esac
10029
10030    if test x$host_vendor = xsni; then
10031      case $host in
10032      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10033	export_dynamic_flag_spec='${wl}-Blargedynsym'
10034	;;
10035      esac
10036    fi
10037  fi
10038
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10040$as_echo "$ld_shlibs" >&6; }
10041test "$ld_shlibs" = no && can_build_shared=no
10042
10043with_gnu_ld=$with_gnu_ld
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059#
10060# Do we need to explicitly link libc?
10061#
10062case "x$archive_cmds_need_lc" in
10063x|xyes)
10064  # Assume -lc should be added
10065  archive_cmds_need_lc=yes
10066
10067  if test "$enable_shared" = yes && test "$GCC" = yes; then
10068    case $archive_cmds in
10069    *'~'*)
10070      # FIXME: we may have to deal with multi-command sequences.
10071      ;;
10072    '$CC '*)
10073      # Test whether the compiler implicitly links with -lc since on some
10074      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10075      # to ld, don't add -lc before -lgcc.
10076      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10077$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10078if ${lt_cv_archive_cmds_need_lc+:} false; then :
10079  $as_echo_n "(cached) " >&6
10080else
10081  $RM conftest*
10082	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10083
10084	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10085  (eval $ac_compile) 2>&5
10086  ac_status=$?
10087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10088  test $ac_status = 0; } 2>conftest.err; then
10089	  soname=conftest
10090	  lib=conftest
10091	  libobjs=conftest.$ac_objext
10092	  deplibs=
10093	  wl=$lt_prog_compiler_wl
10094	  pic_flag=$lt_prog_compiler_pic
10095	  compiler_flags=-v
10096	  linker_flags=-v
10097	  verstring=
10098	  output_objdir=.
10099	  libname=conftest
10100	  lt_save_allow_undefined_flag=$allow_undefined_flag
10101	  allow_undefined_flag=
10102	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10103  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10104  ac_status=$?
10105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10106  test $ac_status = 0; }
10107	  then
10108	    lt_cv_archive_cmds_need_lc=no
10109	  else
10110	    lt_cv_archive_cmds_need_lc=yes
10111	  fi
10112	  allow_undefined_flag=$lt_save_allow_undefined_flag
10113	else
10114	  cat conftest.err 1>&5
10115	fi
10116	$RM conftest*
10117
10118fi
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10120$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10121      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10122      ;;
10123    esac
10124  fi
10125  ;;
10126esac
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10285$as_echo_n "checking dynamic linker characteristics... " >&6; }
10286
10287if test "$GCC" = yes; then
10288  case $host_os in
10289    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10290    *) lt_awk_arg="/^libraries:/" ;;
10291  esac
10292  case $host_os in
10293    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10294    *) lt_sed_strip_eq="s,=/,/,g" ;;
10295  esac
10296  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10297  case $lt_search_path_spec in
10298  *\;*)
10299    # if the path contains ";" then we assume it to be the separator
10300    # otherwise default to the standard path separator (i.e. ":") - it is
10301    # assumed that no part of a normal pathname contains ";" but that should
10302    # okay in the real world where ";" in dirpaths is itself problematic.
10303    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10304    ;;
10305  *)
10306    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10307    ;;
10308  esac
10309  # Ok, now we have the path, separated by spaces, we can step through it
10310  # and add multilib dir if necessary.
10311  lt_tmp_lt_search_path_spec=
10312  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10313  for lt_sys_path in $lt_search_path_spec; do
10314    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10315      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10316    else
10317      test -d "$lt_sys_path" && \
10318	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10319    fi
10320  done
10321  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10322BEGIN {RS=" "; FS="/|\n";} {
10323  lt_foo="";
10324  lt_count=0;
10325  for (lt_i = NF; lt_i > 0; lt_i--) {
10326    if ($lt_i != "" && $lt_i != ".") {
10327      if ($lt_i == "..") {
10328        lt_count++;
10329      } else {
10330        if (lt_count == 0) {
10331          lt_foo="/" $lt_i lt_foo;
10332        } else {
10333          lt_count--;
10334        }
10335      }
10336    }
10337  }
10338  if (lt_foo != "") { lt_freq[lt_foo]++; }
10339  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10340}'`
10341  # AWK program above erroneously prepends '/' to C:/dos/paths
10342  # for these hosts.
10343  case $host_os in
10344    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10345      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10346  esac
10347  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10348else
10349  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10350fi
10351library_names_spec=
10352libname_spec='lib$name'
10353soname_spec=
10354shrext_cmds=".so"
10355postinstall_cmds=
10356postuninstall_cmds=
10357finish_cmds=
10358finish_eval=
10359shlibpath_var=
10360shlibpath_overrides_runpath=unknown
10361version_type=none
10362dynamic_linker="$host_os ld.so"
10363sys_lib_dlsearch_path_spec="/lib /usr/lib"
10364need_lib_prefix=unknown
10365hardcode_into_libs=no
10366
10367# when you set need_version to no, make sure it does not cause -set_version
10368# flags to be left without arguments
10369need_version=unknown
10370
10371case $host_os in
10372aix3*)
10373  version_type=linux
10374  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10375  shlibpath_var=LIBPATH
10376
10377  # AIX 3 has no versioning support, so we append a major version to the name.
10378  soname_spec='${libname}${release}${shared_ext}$major'
10379  ;;
10380
10381aix[4-9]*)
10382  version_type=linux
10383  need_lib_prefix=no
10384  need_version=no
10385  hardcode_into_libs=yes
10386  if test "$host_cpu" = ia64; then
10387    # AIX 5 supports IA64
10388    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10389    shlibpath_var=LD_LIBRARY_PATH
10390  else
10391    # With GCC up to 2.95.x, collect2 would create an import file
10392    # for dependence libraries.  The import file would start with
10393    # the line `#! .'.  This would cause the generated library to
10394    # depend on `.', always an invalid library.  This was fixed in
10395    # development snapshots of GCC prior to 3.0.
10396    case $host_os in
10397      aix4 | aix4.[01] | aix4.[01].*)
10398      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10399	   echo ' yes '
10400	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10401	:
10402      else
10403	can_build_shared=no
10404      fi
10405      ;;
10406    esac
10407    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10408    # soname into executable. Probably we can add versioning support to
10409    # collect2, so additional links can be useful in future.
10410    if test "$aix_use_runtimelinking" = yes; then
10411      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10412      # instead of lib<name>.a to let people know that these are not
10413      # typical AIX shared libraries.
10414      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415    else
10416      # We preserve .a as extension for shared libraries through AIX4.2
10417      # and later when we are not doing run time linking.
10418      library_names_spec='${libname}${release}.a $libname.a'
10419      soname_spec='${libname}${release}${shared_ext}$major'
10420    fi
10421    shlibpath_var=LIBPATH
10422  fi
10423  ;;
10424
10425amigaos*)
10426  case $host_cpu in
10427  powerpc)
10428    # Since July 2007 AmigaOS4 officially supports .so libraries.
10429    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10430    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431    ;;
10432  m68k)
10433    library_names_spec='$libname.ixlibrary $libname.a'
10434    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10435    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10436    ;;
10437  esac
10438  ;;
10439
10440beos*)
10441  library_names_spec='${libname}${shared_ext}'
10442  dynamic_linker="$host_os ld.so"
10443  shlibpath_var=LIBRARY_PATH
10444  ;;
10445
10446bsdi[45]*)
10447  version_type=linux
10448  need_version=no
10449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450  soname_spec='${libname}${release}${shared_ext}$major'
10451  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10452  shlibpath_var=LD_LIBRARY_PATH
10453  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10454  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10455  # the default ld.so.conf also contains /usr/contrib/lib and
10456  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10457  # libtool to hard-code these into programs
10458  ;;
10459
10460cygwin* | mingw* | pw32* | cegcc*)
10461  version_type=windows
10462  shrext_cmds=".dll"
10463  need_version=no
10464  need_lib_prefix=no
10465
10466  case $GCC,$host_os in
10467  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10468    library_names_spec='$libname.dll.a'
10469    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10470    postinstall_cmds='base_file=`basename \${file}`~
10471      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10472      dldir=$destdir/`dirname \$dlpath`~
10473      test -d \$dldir || mkdir -p \$dldir~
10474      $install_prog $dir/$dlname \$dldir/$dlname~
10475      chmod a+x \$dldir/$dlname~
10476      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10477        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10478      fi'
10479    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10480      dlpath=$dir/\$dldll~
10481       $RM \$dlpath'
10482    shlibpath_overrides_runpath=yes
10483
10484    case $host_os in
10485    cygwin*)
10486      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10487      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10488
10489      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10490      ;;
10491    mingw* | cegcc*)
10492      # MinGW DLLs use traditional 'lib' prefix
10493      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10494      ;;
10495    pw32*)
10496      # pw32 DLLs use 'pw' prefix rather than 'lib'
10497      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10498      ;;
10499    esac
10500    ;;
10501
10502  *)
10503    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10504    ;;
10505  esac
10506  dynamic_linker='Win32 ld.exe'
10507  # FIXME: first we should search . and the directory the executable is in
10508  shlibpath_var=PATH
10509  ;;
10510
10511darwin* | rhapsody*)
10512  dynamic_linker="$host_os dyld"
10513  version_type=darwin
10514  need_lib_prefix=no
10515  need_version=no
10516  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10517  soname_spec='${libname}${release}${major}$shared_ext'
10518  shlibpath_overrides_runpath=yes
10519  shlibpath_var=DYLD_LIBRARY_PATH
10520  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10521
10522  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10523  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10524  ;;
10525
10526dgux*)
10527  version_type=linux
10528  need_lib_prefix=no
10529  need_version=no
10530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10531  soname_spec='${libname}${release}${shared_ext}$major'
10532  shlibpath_var=LD_LIBRARY_PATH
10533  ;;
10534
10535freebsd1*)
10536  dynamic_linker=no
10537  ;;
10538
10539freebsd* | dragonfly*)
10540  # DragonFly does not have aout.  When/if they implement a new
10541  # versioning mechanism, adjust this.
10542  if test -x /usr/bin/objformat; then
10543    objformat=`/usr/bin/objformat`
10544  else
10545    case $host_os in
10546    freebsd[123]*) objformat=aout ;;
10547    *) objformat=elf ;;
10548    esac
10549  fi
10550  version_type=freebsd-$objformat
10551  case $version_type in
10552    freebsd-elf*)
10553      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10554      need_version=no
10555      need_lib_prefix=no
10556      ;;
10557    freebsd-*)
10558      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10559      need_version=yes
10560      ;;
10561  esac
10562  shlibpath_var=LD_LIBRARY_PATH
10563  case $host_os in
10564  freebsd2*)
10565    shlibpath_overrides_runpath=yes
10566    ;;
10567  freebsd3.[01]* | freebsdelf3.[01]*)
10568    shlibpath_overrides_runpath=yes
10569    hardcode_into_libs=yes
10570    ;;
10571  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10572  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10573    shlibpath_overrides_runpath=no
10574    hardcode_into_libs=yes
10575    ;;
10576  *) # from 4.6 on, and DragonFly
10577    shlibpath_overrides_runpath=yes
10578    hardcode_into_libs=yes
10579    ;;
10580  esac
10581  ;;
10582
10583gnu*)
10584  version_type=linux
10585  need_lib_prefix=no
10586  need_version=no
10587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10588  soname_spec='${libname}${release}${shared_ext}$major'
10589  shlibpath_var=LD_LIBRARY_PATH
10590  hardcode_into_libs=yes
10591  ;;
10592
10593haiku*)
10594  version_type=linux
10595  need_lib_prefix=no
10596  need_version=no
10597  dynamic_linker="$host_os runtime_loader"
10598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10599  soname_spec='${libname}${release}${shared_ext}$major'
10600  shlibpath_var=LIBRARY_PATH
10601  shlibpath_overrides_runpath=yes
10602  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10603  hardcode_into_libs=yes
10604  ;;
10605
10606hpux9* | hpux10* | hpux11*)
10607  # Give a soname corresponding to the major version so that dld.sl refuses to
10608  # link against other versions.
10609  version_type=sunos
10610  need_lib_prefix=no
10611  need_version=no
10612  case $host_cpu in
10613  ia64*)
10614    shrext_cmds='.so'
10615    hardcode_into_libs=yes
10616    dynamic_linker="$host_os dld.so"
10617    shlibpath_var=LD_LIBRARY_PATH
10618    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620    soname_spec='${libname}${release}${shared_ext}$major'
10621    if test "X$HPUX_IA64_MODE" = X32; then
10622      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10623    else
10624      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10625    fi
10626    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10627    ;;
10628  hppa*64*)
10629    shrext_cmds='.sl'
10630    hardcode_into_libs=yes
10631    dynamic_linker="$host_os dld.sl"
10632    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10633    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10634    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635    soname_spec='${libname}${release}${shared_ext}$major'
10636    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10637    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10638    ;;
10639  *)
10640    shrext_cmds='.sl'
10641    dynamic_linker="$host_os dld.sl"
10642    shlibpath_var=SHLIB_PATH
10643    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10644    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645    soname_spec='${libname}${release}${shared_ext}$major'
10646    ;;
10647  esac
10648  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10649  postinstall_cmds='chmod 555 $lib'
10650  # or fails outright, so override atomically:
10651  install_override_mode=555
10652  ;;
10653
10654interix[3-9]*)
10655  version_type=linux
10656  need_lib_prefix=no
10657  need_version=no
10658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10659  soname_spec='${libname}${release}${shared_ext}$major'
10660  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10661  shlibpath_var=LD_LIBRARY_PATH
10662  shlibpath_overrides_runpath=no
10663  hardcode_into_libs=yes
10664  ;;
10665
10666irix5* | irix6* | nonstopux*)
10667  case $host_os in
10668    nonstopux*) version_type=nonstopux ;;
10669    *)
10670	if test "$lt_cv_prog_gnu_ld" = yes; then
10671		version_type=linux
10672	else
10673		version_type=irix
10674	fi ;;
10675  esac
10676  need_lib_prefix=no
10677  need_version=no
10678  soname_spec='${libname}${release}${shared_ext}$major'
10679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10680  case $host_os in
10681  irix5* | nonstopux*)
10682    libsuff= shlibsuff=
10683    ;;
10684  *)
10685    case $LD in # libtool.m4 will add one of these switches to LD
10686    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10687      libsuff= shlibsuff= libmagic=32-bit;;
10688    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10689      libsuff=32 shlibsuff=N32 libmagic=N32;;
10690    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10691      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10692    *) libsuff= shlibsuff= libmagic=never-match;;
10693    esac
10694    ;;
10695  esac
10696  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10697  shlibpath_overrides_runpath=no
10698  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10699  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10700  hardcode_into_libs=yes
10701  ;;
10702
10703# No shared lib support for Linux oldld, aout, or coff.
10704linux*oldld* | linux*aout* | linux*coff*)
10705  dynamic_linker=no
10706  ;;
10707
10708# This must be Linux ELF.
10709linux* | k*bsd*-gnu | kopensolaris*-gnu)
10710  version_type=linux
10711  need_lib_prefix=no
10712  need_version=no
10713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714  soname_spec='${libname}${release}${shared_ext}$major'
10715  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10716  shlibpath_var=LD_LIBRARY_PATH
10717  shlibpath_overrides_runpath=no
10718
10719  # Some binutils ld are patched to set DT_RUNPATH
10720  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10721  $as_echo_n "(cached) " >&6
10722else
10723  lt_cv_shlibpath_overrides_runpath=no
10724    save_LDFLAGS=$LDFLAGS
10725    save_libdir=$libdir
10726    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10727	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10728    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h.  */
10730
10731int
10732main ()
10733{
10734
10735  ;
10736  return 0;
10737}
10738_ACEOF
10739if ac_fn_c_try_link "$LINENO"; then :
10740  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10741  lt_cv_shlibpath_overrides_runpath=yes
10742fi
10743fi
10744rm -f core conftest.err conftest.$ac_objext \
10745    conftest$ac_exeext conftest.$ac_ext
10746    LDFLAGS=$save_LDFLAGS
10747    libdir=$save_libdir
10748
10749fi
10750
10751  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10752
10753  # This implies no fast_install, which is unacceptable.
10754  # Some rework will be needed to allow for fast_install
10755  # before this can be enabled.
10756  hardcode_into_libs=yes
10757
10758  # Append ld.so.conf contents to the search path
10759  if test -f /etc/ld.so.conf; then
10760    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10761    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10762  fi
10763
10764  # We used to test for /lib/ld.so.1 and disable shared libraries on
10765  # powerpc, because MkLinux only supported shared libraries with the
10766  # GNU dynamic linker.  Since this was broken with cross compilers,
10767  # most powerpc-linux boxes support dynamic linking these days and
10768  # people can always --disable-shared, the test was removed, and we
10769  # assume the GNU/Linux dynamic linker is in use.
10770  dynamic_linker='GNU/Linux ld.so'
10771  ;;
10772
10773netbsd*)
10774  version_type=sunos
10775  need_lib_prefix=no
10776  need_version=no
10777  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10778    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10779    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10780    dynamic_linker='NetBSD (a.out) ld.so'
10781  else
10782    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10783    soname_spec='${libname}${release}${shared_ext}$major'
10784    dynamic_linker='NetBSD ld.elf_so'
10785  fi
10786  shlibpath_var=LD_LIBRARY_PATH
10787  shlibpath_overrides_runpath=yes
10788  hardcode_into_libs=yes
10789  ;;
10790
10791newsos6)
10792  version_type=linux
10793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794  shlibpath_var=LD_LIBRARY_PATH
10795  shlibpath_overrides_runpath=yes
10796  ;;
10797
10798*nto* | *qnx*)
10799  version_type=qnx
10800  need_lib_prefix=no
10801  need_version=no
10802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803  soname_spec='${libname}${release}${shared_ext}$major'
10804  shlibpath_var=LD_LIBRARY_PATH
10805  shlibpath_overrides_runpath=no
10806  hardcode_into_libs=yes
10807  dynamic_linker='ldqnx.so'
10808  ;;
10809
10810openbsd*)
10811  version_type=sunos
10812  sys_lib_dlsearch_path_spec="/usr/lib"
10813  need_lib_prefix=no
10814  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10815  case $host_os in
10816    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10817    *)				need_version=no  ;;
10818  esac
10819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10820  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10821  shlibpath_var=LD_LIBRARY_PATH
10822  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10823    case $host_os in
10824      openbsd2.[89] | openbsd2.[89].*)
10825	shlibpath_overrides_runpath=no
10826	;;
10827      *)
10828	shlibpath_overrides_runpath=yes
10829	;;
10830      esac
10831  else
10832    shlibpath_overrides_runpath=yes
10833  fi
10834  ;;
10835
10836os2*)
10837  libname_spec='$name'
10838  shrext_cmds=".dll"
10839  need_lib_prefix=no
10840  library_names_spec='$libname${shared_ext} $libname.a'
10841  dynamic_linker='OS/2 ld.exe'
10842  shlibpath_var=LIBPATH
10843  ;;
10844
10845osf3* | osf4* | osf5*)
10846  version_type=osf
10847  need_lib_prefix=no
10848  need_version=no
10849  soname_spec='${libname}${release}${shared_ext}$major'
10850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851  shlibpath_var=LD_LIBRARY_PATH
10852  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10853  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10854  ;;
10855
10856rdos*)
10857  dynamic_linker=no
10858  ;;
10859
10860solaris*)
10861  version_type=linux
10862  need_lib_prefix=no
10863  need_version=no
10864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865  soname_spec='${libname}${release}${shared_ext}$major'
10866  shlibpath_var=LD_LIBRARY_PATH
10867  shlibpath_overrides_runpath=yes
10868  hardcode_into_libs=yes
10869  # ldd complains unless libraries are executable
10870  postinstall_cmds='chmod +x $lib'
10871  ;;
10872
10873sunos4*)
10874  version_type=sunos
10875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10876  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10877  shlibpath_var=LD_LIBRARY_PATH
10878  shlibpath_overrides_runpath=yes
10879  if test "$with_gnu_ld" = yes; then
10880    need_lib_prefix=no
10881  fi
10882  need_version=yes
10883  ;;
10884
10885sysv4 | sysv4.3*)
10886  version_type=linux
10887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888  soname_spec='${libname}${release}${shared_ext}$major'
10889  shlibpath_var=LD_LIBRARY_PATH
10890  case $host_vendor in
10891    sni)
10892      shlibpath_overrides_runpath=no
10893      need_lib_prefix=no
10894      runpath_var=LD_RUN_PATH
10895      ;;
10896    siemens)
10897      need_lib_prefix=no
10898      ;;
10899    motorola)
10900      need_lib_prefix=no
10901      need_version=no
10902      shlibpath_overrides_runpath=no
10903      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10904      ;;
10905  esac
10906  ;;
10907
10908sysv4*MP*)
10909  if test -d /usr/nec ;then
10910    version_type=linux
10911    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10912    soname_spec='$libname${shared_ext}.$major'
10913    shlibpath_var=LD_LIBRARY_PATH
10914  fi
10915  ;;
10916
10917sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10918  version_type=freebsd-elf
10919  need_lib_prefix=no
10920  need_version=no
10921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10922  soname_spec='${libname}${release}${shared_ext}$major'
10923  shlibpath_var=LD_LIBRARY_PATH
10924  shlibpath_overrides_runpath=yes
10925  hardcode_into_libs=yes
10926  if test "$with_gnu_ld" = yes; then
10927    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10928  else
10929    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10930    case $host_os in
10931      sco3.2v5*)
10932        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10933	;;
10934    esac
10935  fi
10936  sys_lib_dlsearch_path_spec='/usr/lib'
10937  ;;
10938
10939tpf*)
10940  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10941  version_type=linux
10942  need_lib_prefix=no
10943  need_version=no
10944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945  shlibpath_var=LD_LIBRARY_PATH
10946  shlibpath_overrides_runpath=no
10947  hardcode_into_libs=yes
10948  ;;
10949
10950uts4*)
10951  version_type=linux
10952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953  soname_spec='${libname}${release}${shared_ext}$major'
10954  shlibpath_var=LD_LIBRARY_PATH
10955  ;;
10956
10957*)
10958  dynamic_linker=no
10959  ;;
10960esac
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10962$as_echo "$dynamic_linker" >&6; }
10963test "$dynamic_linker" = no && can_build_shared=no
10964
10965variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10966if test "$GCC" = yes; then
10967  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10968fi
10969
10970if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10971  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10972fi
10973if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10974  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10975fi
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11069$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11070hardcode_action=
11071if test -n "$hardcode_libdir_flag_spec" ||
11072   test -n "$runpath_var" ||
11073   test "X$hardcode_automatic" = "Xyes" ; then
11074
11075  # We can hardcode non-existent directories.
11076  if test "$hardcode_direct" != no &&
11077     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11078     # have to relink, otherwise we might link with an installed library
11079     # when we should be linking with a yet-to-be-installed one
11080     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11081     test "$hardcode_minus_L" != no; then
11082    # Linking always hardcodes the temporary library directory.
11083    hardcode_action=relink
11084  else
11085    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11086    hardcode_action=immediate
11087  fi
11088else
11089  # We cannot hardcode anything, or else we can only hardcode existing
11090  # directories.
11091  hardcode_action=unsupported
11092fi
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11094$as_echo "$hardcode_action" >&6; }
11095
11096if test "$hardcode_action" = relink ||
11097   test "$inherit_rpath" = yes; then
11098  # Fast installation is not supported
11099  enable_fast_install=no
11100elif test "$shlibpath_overrides_runpath" = yes ||
11101     test "$enable_shared" = no; then
11102  # Fast installation is not necessary
11103  enable_fast_install=needless
11104fi
11105
11106
11107
11108
11109
11110
11111  if test "x$enable_dlopen" != xyes; then
11112  enable_dlopen=unknown
11113  enable_dlopen_self=unknown
11114  enable_dlopen_self_static=unknown
11115else
11116  lt_cv_dlopen=no
11117  lt_cv_dlopen_libs=
11118
11119  case $host_os in
11120  beos*)
11121    lt_cv_dlopen="load_add_on"
11122    lt_cv_dlopen_libs=
11123    lt_cv_dlopen_self=yes
11124    ;;
11125
11126  mingw* | pw32* | cegcc*)
11127    lt_cv_dlopen="LoadLibrary"
11128    lt_cv_dlopen_libs=
11129    ;;
11130
11131  cygwin*)
11132    lt_cv_dlopen="dlopen"
11133    lt_cv_dlopen_libs=
11134    ;;
11135
11136  darwin*)
11137  # if libdl is installed we need to link against it
11138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11139$as_echo_n "checking for dlopen in -ldl... " >&6; }
11140if ${ac_cv_lib_dl_dlopen+:} false; then :
11141  $as_echo_n "(cached) " >&6
11142else
11143  ac_check_lib_save_LIBS=$LIBS
11144LIBS="-ldl  $LIBS"
11145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146/* end confdefs.h.  */
11147
11148/* Override any GCC internal prototype to avoid an error.
11149   Use char because int might match the return type of a GCC
11150   builtin and then its argument prototype would still apply.  */
11151#ifdef __cplusplus
11152extern "C"
11153#endif
11154char dlopen ();
11155int
11156main ()
11157{
11158return dlopen ();
11159  ;
11160  return 0;
11161}
11162_ACEOF
11163if ac_fn_c_try_link "$LINENO"; then :
11164  ac_cv_lib_dl_dlopen=yes
11165else
11166  ac_cv_lib_dl_dlopen=no
11167fi
11168rm -f core conftest.err conftest.$ac_objext \
11169    conftest$ac_exeext conftest.$ac_ext
11170LIBS=$ac_check_lib_save_LIBS
11171fi
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11173$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11174if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11175  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11176else
11177
11178    lt_cv_dlopen="dyld"
11179    lt_cv_dlopen_libs=
11180    lt_cv_dlopen_self=yes
11181
11182fi
11183
11184    ;;
11185
11186  *)
11187    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11188if test "x$ac_cv_func_shl_load" = xyes; then :
11189  lt_cv_dlopen="shl_load"
11190else
11191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11192$as_echo_n "checking for shl_load in -ldld... " >&6; }
11193if ${ac_cv_lib_dld_shl_load+:} false; then :
11194  $as_echo_n "(cached) " >&6
11195else
11196  ac_check_lib_save_LIBS=$LIBS
11197LIBS="-ldld  $LIBS"
11198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199/* end confdefs.h.  */
11200
11201/* Override any GCC internal prototype to avoid an error.
11202   Use char because int might match the return type of a GCC
11203   builtin and then its argument prototype would still apply.  */
11204#ifdef __cplusplus
11205extern "C"
11206#endif
11207char shl_load ();
11208int
11209main ()
11210{
11211return shl_load ();
11212  ;
11213  return 0;
11214}
11215_ACEOF
11216if ac_fn_c_try_link "$LINENO"; then :
11217  ac_cv_lib_dld_shl_load=yes
11218else
11219  ac_cv_lib_dld_shl_load=no
11220fi
11221rm -f core conftest.err conftest.$ac_objext \
11222    conftest$ac_exeext conftest.$ac_ext
11223LIBS=$ac_check_lib_save_LIBS
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11226$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11227if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11228  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11229else
11230  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11231if test "x$ac_cv_func_dlopen" = xyes; then :
11232  lt_cv_dlopen="dlopen"
11233else
11234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11235$as_echo_n "checking for dlopen in -ldl... " >&6; }
11236if ${ac_cv_lib_dl_dlopen+:} false; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239  ac_check_lib_save_LIBS=$LIBS
11240LIBS="-ldl  $LIBS"
11241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242/* end confdefs.h.  */
11243
11244/* Override any GCC internal prototype to avoid an error.
11245   Use char because int might match the return type of a GCC
11246   builtin and then its argument prototype would still apply.  */
11247#ifdef __cplusplus
11248extern "C"
11249#endif
11250char dlopen ();
11251int
11252main ()
11253{
11254return dlopen ();
11255  ;
11256  return 0;
11257}
11258_ACEOF
11259if ac_fn_c_try_link "$LINENO"; then :
11260  ac_cv_lib_dl_dlopen=yes
11261else
11262  ac_cv_lib_dl_dlopen=no
11263fi
11264rm -f core conftest.err conftest.$ac_objext \
11265    conftest$ac_exeext conftest.$ac_ext
11266LIBS=$ac_check_lib_save_LIBS
11267fi
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11269$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11270if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11271  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11272else
11273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11274$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11275if ${ac_cv_lib_svld_dlopen+:} false; then :
11276  $as_echo_n "(cached) " >&6
11277else
11278  ac_check_lib_save_LIBS=$LIBS
11279LIBS="-lsvld  $LIBS"
11280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281/* end confdefs.h.  */
11282
11283/* Override any GCC internal prototype to avoid an error.
11284   Use char because int might match the return type of a GCC
11285   builtin and then its argument prototype would still apply.  */
11286#ifdef __cplusplus
11287extern "C"
11288#endif
11289char dlopen ();
11290int
11291main ()
11292{
11293return dlopen ();
11294  ;
11295  return 0;
11296}
11297_ACEOF
11298if ac_fn_c_try_link "$LINENO"; then :
11299  ac_cv_lib_svld_dlopen=yes
11300else
11301  ac_cv_lib_svld_dlopen=no
11302fi
11303rm -f core conftest.err conftest.$ac_objext \
11304    conftest$ac_exeext conftest.$ac_ext
11305LIBS=$ac_check_lib_save_LIBS
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11308$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11309if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11310  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11311else
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11313$as_echo_n "checking for dld_link in -ldld... " >&6; }
11314if ${ac_cv_lib_dld_dld_link+:} false; then :
11315  $as_echo_n "(cached) " >&6
11316else
11317  ac_check_lib_save_LIBS=$LIBS
11318LIBS="-ldld  $LIBS"
11319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320/* end confdefs.h.  */
11321
11322/* Override any GCC internal prototype to avoid an error.
11323   Use char because int might match the return type of a GCC
11324   builtin and then its argument prototype would still apply.  */
11325#ifdef __cplusplus
11326extern "C"
11327#endif
11328char dld_link ();
11329int
11330main ()
11331{
11332return dld_link ();
11333  ;
11334  return 0;
11335}
11336_ACEOF
11337if ac_fn_c_try_link "$LINENO"; then :
11338  ac_cv_lib_dld_dld_link=yes
11339else
11340  ac_cv_lib_dld_dld_link=no
11341fi
11342rm -f core conftest.err conftest.$ac_objext \
11343    conftest$ac_exeext conftest.$ac_ext
11344LIBS=$ac_check_lib_save_LIBS
11345fi
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11347$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11348if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11349  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11350fi
11351
11352
11353fi
11354
11355
11356fi
11357
11358
11359fi
11360
11361
11362fi
11363
11364
11365fi
11366
11367    ;;
11368  esac
11369
11370  if test "x$lt_cv_dlopen" != xno; then
11371    enable_dlopen=yes
11372  else
11373    enable_dlopen=no
11374  fi
11375
11376  case $lt_cv_dlopen in
11377  dlopen)
11378    save_CPPFLAGS="$CPPFLAGS"
11379    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11380
11381    save_LDFLAGS="$LDFLAGS"
11382    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11383
11384    save_LIBS="$LIBS"
11385    LIBS="$lt_cv_dlopen_libs $LIBS"
11386
11387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11388$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11389if ${lt_cv_dlopen_self+:} false; then :
11390  $as_echo_n "(cached) " >&6
11391else
11392  	  if test "$cross_compiling" = yes; then :
11393  lt_cv_dlopen_self=cross
11394else
11395  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11396  lt_status=$lt_dlunknown
11397  cat > conftest.$ac_ext <<_LT_EOF
11398#line $LINENO "configure"
11399#include "confdefs.h"
11400
11401#if HAVE_DLFCN_H
11402#include <dlfcn.h>
11403#endif
11404
11405#include <stdio.h>
11406
11407#ifdef RTLD_GLOBAL
11408#  define LT_DLGLOBAL		RTLD_GLOBAL
11409#else
11410#  ifdef DL_GLOBAL
11411#    define LT_DLGLOBAL		DL_GLOBAL
11412#  else
11413#    define LT_DLGLOBAL		0
11414#  endif
11415#endif
11416
11417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11418   find out it does not work in some platform. */
11419#ifndef LT_DLLAZY_OR_NOW
11420#  ifdef RTLD_LAZY
11421#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11422#  else
11423#    ifdef DL_LAZY
11424#      define LT_DLLAZY_OR_NOW		DL_LAZY
11425#    else
11426#      ifdef RTLD_NOW
11427#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11428#      else
11429#        ifdef DL_NOW
11430#          define LT_DLLAZY_OR_NOW	DL_NOW
11431#        else
11432#          define LT_DLLAZY_OR_NOW	0
11433#        endif
11434#      endif
11435#    endif
11436#  endif
11437#endif
11438
11439/* When -fvisbility=hidden is used, assume the code has been annotated
11440   correspondingly for the symbols needed.  */
11441#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11442void fnord () __attribute__((visibility("default")));
11443#endif
11444
11445void fnord () { int i=42; }
11446int main ()
11447{
11448  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11449  int status = $lt_dlunknown;
11450
11451  if (self)
11452    {
11453      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11454      else
11455        {
11456	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11457          else puts (dlerror ());
11458	}
11459      /* dlclose (self); */
11460    }
11461  else
11462    puts (dlerror ());
11463
11464  return status;
11465}
11466_LT_EOF
11467  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11468  (eval $ac_link) 2>&5
11469  ac_status=$?
11470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11472    (./conftest; exit; ) >&5 2>/dev/null
11473    lt_status=$?
11474    case x$lt_status in
11475      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11476      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11477      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11478    esac
11479  else :
11480    # compilation failed
11481    lt_cv_dlopen_self=no
11482  fi
11483fi
11484rm -fr conftest*
11485
11486
11487fi
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11489$as_echo "$lt_cv_dlopen_self" >&6; }
11490
11491    if test "x$lt_cv_dlopen_self" = xyes; then
11492      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11493      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11494$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11495if ${lt_cv_dlopen_self_static+:} false; then :
11496  $as_echo_n "(cached) " >&6
11497else
11498  	  if test "$cross_compiling" = yes; then :
11499  lt_cv_dlopen_self_static=cross
11500else
11501  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11502  lt_status=$lt_dlunknown
11503  cat > conftest.$ac_ext <<_LT_EOF
11504#line $LINENO "configure"
11505#include "confdefs.h"
11506
11507#if HAVE_DLFCN_H
11508#include <dlfcn.h>
11509#endif
11510
11511#include <stdio.h>
11512
11513#ifdef RTLD_GLOBAL
11514#  define LT_DLGLOBAL		RTLD_GLOBAL
11515#else
11516#  ifdef DL_GLOBAL
11517#    define LT_DLGLOBAL		DL_GLOBAL
11518#  else
11519#    define LT_DLGLOBAL		0
11520#  endif
11521#endif
11522
11523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11524   find out it does not work in some platform. */
11525#ifndef LT_DLLAZY_OR_NOW
11526#  ifdef RTLD_LAZY
11527#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11528#  else
11529#    ifdef DL_LAZY
11530#      define LT_DLLAZY_OR_NOW		DL_LAZY
11531#    else
11532#      ifdef RTLD_NOW
11533#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11534#      else
11535#        ifdef DL_NOW
11536#          define LT_DLLAZY_OR_NOW	DL_NOW
11537#        else
11538#          define LT_DLLAZY_OR_NOW	0
11539#        endif
11540#      endif
11541#    endif
11542#  endif
11543#endif
11544
11545/* When -fvisbility=hidden is used, assume the code has been annotated
11546   correspondingly for the symbols needed.  */
11547#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11548void fnord () __attribute__((visibility("default")));
11549#endif
11550
11551void fnord () { int i=42; }
11552int main ()
11553{
11554  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11555  int status = $lt_dlunknown;
11556
11557  if (self)
11558    {
11559      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11560      else
11561        {
11562	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11563          else puts (dlerror ());
11564	}
11565      /* dlclose (self); */
11566    }
11567  else
11568    puts (dlerror ());
11569
11570  return status;
11571}
11572_LT_EOF
11573  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11574  (eval $ac_link) 2>&5
11575  ac_status=$?
11576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11577  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11578    (./conftest; exit; ) >&5 2>/dev/null
11579    lt_status=$?
11580    case x$lt_status in
11581      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11582      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11583      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11584    esac
11585  else :
11586    # compilation failed
11587    lt_cv_dlopen_self_static=no
11588  fi
11589fi
11590rm -fr conftest*
11591
11592
11593fi
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11595$as_echo "$lt_cv_dlopen_self_static" >&6; }
11596    fi
11597
11598    CPPFLAGS="$save_CPPFLAGS"
11599    LDFLAGS="$save_LDFLAGS"
11600    LIBS="$save_LIBS"
11601    ;;
11602  esac
11603
11604  case $lt_cv_dlopen_self in
11605  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11606  *) enable_dlopen_self=unknown ;;
11607  esac
11608
11609  case $lt_cv_dlopen_self_static in
11610  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11611  *) enable_dlopen_self_static=unknown ;;
11612  esac
11613fi
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631striplib=
11632old_striplib=
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11634$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11635if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11636  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11637  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11639$as_echo "yes" >&6; }
11640else
11641# FIXME - insert some real tests, host_os isn't really good enough
11642  case $host_os in
11643  darwin*)
11644    if test -n "$STRIP" ; then
11645      striplib="$STRIP -x"
11646      old_striplib="$STRIP -S"
11647      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648$as_echo "yes" >&6; }
11649    else
11650      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
11652    fi
11653    ;;
11654  *)
11655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656$as_echo "no" >&6; }
11657    ;;
11658  esac
11659fi
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672  # Report which library types will actually be built
11673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11674$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11676$as_echo "$can_build_shared" >&6; }
11677
11678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11679$as_echo_n "checking whether to build shared libraries... " >&6; }
11680  test "$can_build_shared" = "no" && enable_shared=no
11681
11682  # On AIX, shared libraries and static libraries use the same namespace, and
11683  # are all built from PIC.
11684  case $host_os in
11685  aix3*)
11686    test "$enable_shared" = yes && enable_static=no
11687    if test -n "$RANLIB"; then
11688      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11689      postinstall_cmds='$RANLIB $lib'
11690    fi
11691    ;;
11692
11693  aix[4-9]*)
11694    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11695      test "$enable_shared" = yes && enable_static=no
11696    fi
11697    ;;
11698  esac
11699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11700$as_echo "$enable_shared" >&6; }
11701
11702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11703$as_echo_n "checking whether to build static libraries... " >&6; }
11704  # Make sure either enable_shared or enable_static is yes.
11705  test "$enable_shared" = yes || enable_static=yes
11706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11707$as_echo "$enable_static" >&6; }
11708
11709
11710
11711
11712fi
11713ac_ext=c
11714ac_cpp='$CPP $CPPFLAGS'
11715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11717ac_compiler_gnu=$ac_cv_c_compiler_gnu
11718
11719CC="$lt_save_CC"
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733        ac_config_commands="$ac_config_commands libtool"
11734
11735
11736
11737
11738# Only expand once:
11739
11740
11741
11742# Checks for pkg-config packages
11743
11744pkg_failed=no
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5
11746$as_echo_n "checking for XMU... " >&6; }
11747
11748if test -n "$XMU_CFLAGS"; then
11749    pkg_cv_XMU_CFLAGS="$XMU_CFLAGS"
11750 elif test -n "$PKG_CONFIG"; then
11751    if test -n "$PKG_CONFIG" && \
11752    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
11753  ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
11754  ac_status=$?
11755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11756  test $ac_status = 0; }; then
11757  pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xt xext x11 xextproto" 2>/dev/null`
11758else
11759  pkg_failed=yes
11760fi
11761 else
11762    pkg_failed=untried
11763fi
11764if test -n "$XMU_LIBS"; then
11765    pkg_cv_XMU_LIBS="$XMU_LIBS"
11766 elif test -n "$PKG_CONFIG"; then
11767    if test -n "$PKG_CONFIG" && \
11768    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
11769  ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
11770  ac_status=$?
11771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11772  test $ac_status = 0; }; then
11773  pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xt xext x11 xextproto" 2>/dev/null`
11774else
11775  pkg_failed=yes
11776fi
11777 else
11778    pkg_failed=untried
11779fi
11780
11781
11782
11783if test $pkg_failed = yes; then
11784
11785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11786        _pkg_short_errors_supported=yes
11787else
11788        _pkg_short_errors_supported=no
11789fi
11790        if test $_pkg_short_errors_supported = yes; then
11791	        XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt xext x11 xextproto" 2>&1`
11792        else
11793	        XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt xext x11 xextproto" 2>&1`
11794        fi
11795	# Put the nasty error message in config.log where it belongs
11796	echo "$XMU_PKG_ERRORS" >&5
11797
11798	as_fn_error $? "Package requirements (xt xext x11 xextproto) were not met:
11799
11800$XMU_PKG_ERRORS
11801
11802Consider adjusting the PKG_CONFIG_PATH environment variable if you
11803installed software in a non-standard prefix.
11804
11805Alternatively, you may set the environment variables XMU_CFLAGS
11806and XMU_LIBS to avoid the need to call pkg-config.
11807See the pkg-config man page for more details.
11808" "$LINENO" 5
11809elif test $pkg_failed = untried; then
11810	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11812as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11813is in your PATH or set the PKG_CONFIG environment variable to the full
11814path to pkg-config.
11815
11816Alternatively, you may set the environment variables XMU_CFLAGS
11817and XMU_LIBS to avoid the need to call pkg-config.
11818See the pkg-config man page for more details.
11819
11820To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11821See \`config.log' for more details" "$LINENO" 5; }
11822else
11823	XMU_CFLAGS=$pkg_cv_XMU_CFLAGS
11824	XMU_LIBS=$pkg_cv_XMU_LIBS
11825        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11826$as_echo "yes" >&6; }
11827	:
11828fi
11829
11830pkg_failed=no
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMUU" >&5
11832$as_echo_n "checking for XMUU... " >&6; }
11833
11834if test -n "$XMUU_CFLAGS"; then
11835    pkg_cv_XMUU_CFLAGS="$XMUU_CFLAGS"
11836 elif test -n "$PKG_CONFIG"; then
11837    if test -n "$PKG_CONFIG" && \
11838    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11839  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11840  ac_status=$?
11841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11842  test $ac_status = 0; }; then
11843  pkg_cv_XMUU_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11844else
11845  pkg_failed=yes
11846fi
11847 else
11848    pkg_failed=untried
11849fi
11850if test -n "$XMUU_LIBS"; then
11851    pkg_cv_XMUU_LIBS="$XMUU_LIBS"
11852 elif test -n "$PKG_CONFIG"; then
11853    if test -n "$PKG_CONFIG" && \
11854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11855  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11856  ac_status=$?
11857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11858  test $ac_status = 0; }; then
11859  pkg_cv_XMUU_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11860else
11861  pkg_failed=yes
11862fi
11863 else
11864    pkg_failed=untried
11865fi
11866
11867
11868
11869if test $pkg_failed = yes; then
11870
11871if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11872        _pkg_short_errors_supported=yes
11873else
11874        _pkg_short_errors_supported=no
11875fi
11876        if test $_pkg_short_errors_supported = yes; then
11877	        XMUU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
11878        else
11879	        XMUU_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
11880        fi
11881	# Put the nasty error message in config.log where it belongs
11882	echo "$XMUU_PKG_ERRORS" >&5
11883
11884	as_fn_error $? "Package requirements (x11) were not met:
11885
11886$XMUU_PKG_ERRORS
11887
11888Consider adjusting the PKG_CONFIG_PATH environment variable if you
11889installed software in a non-standard prefix.
11890
11891Alternatively, you may set the environment variables XMUU_CFLAGS
11892and XMUU_LIBS to avoid the need to call pkg-config.
11893See the pkg-config man page for more details.
11894" "$LINENO" 5
11895elif test $pkg_failed = untried; then
11896	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11898as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11899is in your PATH or set the PKG_CONFIG environment variable to the full
11900path to pkg-config.
11901
11902Alternatively, you may set the environment variables XMUU_CFLAGS
11903and XMUU_LIBS to avoid the need to call pkg-config.
11904See the pkg-config man page for more details.
11905
11906To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11907See \`config.log' for more details" "$LINENO" 5; }
11908else
11909	XMUU_CFLAGS=$pkg_cv_XMUU_CFLAGS
11910	XMUU_LIBS=$pkg_cv_XMUU_LIBS
11911        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11912$as_echo "yes" >&6; }
11913	:
11914fi
11915
11916# CvtStdSel.c needs to know which network transports to build hostname
11917# conversion routines for
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11919$as_echo_n "checking return type of signal handlers... " >&6; }
11920if ${ac_cv_type_signal+:} false; then :
11921  $as_echo_n "(cached) " >&6
11922else
11923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924/* end confdefs.h.  */
11925#include <sys/types.h>
11926#include <signal.h>
11927
11928int
11929main ()
11930{
11931return *(signal (0, 0)) (0) == 1;
11932  ;
11933  return 0;
11934}
11935_ACEOF
11936if ac_fn_c_try_compile "$LINENO"; then :
11937  ac_cv_type_signal=int
11938else
11939  ac_cv_type_signal=void
11940fi
11941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942fi
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11944$as_echo "$ac_cv_type_signal" >&6; }
11945
11946cat >>confdefs.h <<_ACEOF
11947#define RETSIGTYPE $ac_cv_type_signal
11948_ACEOF
11949
11950
11951
11952
11953
11954 case $host_os in
11955	mingw*)	unixdef="no"   ;;
11956	*)	unixdef="yes"  ;;
11957 esac
11958 # Check whether --enable-unix-transport was given.
11959if test "${enable_unix_transport+set}" = set; then :
11960  enableval=$enable_unix_transport; UNIXCONN=$enableval
11961else
11962  UNIXCONN=$unixdef
11963fi
11964
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11966$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11967 if test "$UNIXCONN" = "yes"; then
11968
11969$as_echo "#define UNIXCONN 1" >>confdefs.h
11970
11971 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11973$as_echo "$UNIXCONN" >&6; }
11974 # Check whether --enable-tcp-transport was given.
11975if test "${enable_tcp_transport+set}" = set; then :
11976  enableval=$enable_tcp_transport; TCPCONN=$enableval
11977else
11978  TCPCONN=yes
11979fi
11980
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11982$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11984$as_echo "$TCPCONN" >&6; }
11985 if test "$TCPCONN" = "yes"; then
11986
11987$as_echo "#define TCPCONN 1" >>confdefs.h
11988
11989
11990 # SVR4 hides these in libraries other than libc
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11992$as_echo_n "checking for library containing socket... " >&6; }
11993if ${ac_cv_search_socket+:} false; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996  ac_func_search_save_LIBS=$LIBS
11997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998/* end confdefs.h.  */
11999
12000/* Override any GCC internal prototype to avoid an error.
12001   Use char because int might match the return type of a GCC
12002   builtin and then its argument prototype would still apply.  */
12003#ifdef __cplusplus
12004extern "C"
12005#endif
12006char socket ();
12007int
12008main ()
12009{
12010return socket ();
12011  ;
12012  return 0;
12013}
12014_ACEOF
12015for ac_lib in '' socket; do
12016  if test -z "$ac_lib"; then
12017    ac_res="none required"
12018  else
12019    ac_res=-l$ac_lib
12020    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12021  fi
12022  if ac_fn_c_try_link "$LINENO"; then :
12023  ac_cv_search_socket=$ac_res
12024fi
12025rm -f core conftest.err conftest.$ac_objext \
12026    conftest$ac_exeext
12027  if ${ac_cv_search_socket+:} false; then :
12028  break
12029fi
12030done
12031if ${ac_cv_search_socket+:} false; then :
12032
12033else
12034  ac_cv_search_socket=no
12035fi
12036rm conftest.$ac_ext
12037LIBS=$ac_func_search_save_LIBS
12038fi
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12040$as_echo "$ac_cv_search_socket" >&6; }
12041ac_res=$ac_cv_search_socket
12042if test "$ac_res" != no; then :
12043  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12044
12045fi
12046
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12048$as_echo_n "checking for library containing gethostbyname... " >&6; }
12049if ${ac_cv_search_gethostbyname+:} false; then :
12050  $as_echo_n "(cached) " >&6
12051else
12052  ac_func_search_save_LIBS=$LIBS
12053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054/* end confdefs.h.  */
12055
12056/* Override any GCC internal prototype to avoid an error.
12057   Use char because int might match the return type of a GCC
12058   builtin and then its argument prototype would still apply.  */
12059#ifdef __cplusplus
12060extern "C"
12061#endif
12062char gethostbyname ();
12063int
12064main ()
12065{
12066return gethostbyname ();
12067  ;
12068  return 0;
12069}
12070_ACEOF
12071for ac_lib in '' nsl; do
12072  if test -z "$ac_lib"; then
12073    ac_res="none required"
12074  else
12075    ac_res=-l$ac_lib
12076    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12077  fi
12078  if ac_fn_c_try_link "$LINENO"; then :
12079  ac_cv_search_gethostbyname=$ac_res
12080fi
12081rm -f core conftest.err conftest.$ac_objext \
12082    conftest$ac_exeext
12083  if ${ac_cv_search_gethostbyname+:} false; then :
12084  break
12085fi
12086done
12087if ${ac_cv_search_gethostbyname+:} false; then :
12088
12089else
12090  ac_cv_search_gethostbyname=no
12091fi
12092rm conftest.$ac_ext
12093LIBS=$ac_func_search_save_LIBS
12094fi
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12096$as_echo "$ac_cv_search_gethostbyname" >&6; }
12097ac_res=$ac_cv_search_gethostbyname
12098if test "$ac_res" != no; then :
12099  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12100
12101fi
12102
12103 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
12104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12105$as_echo_n "checking for main in -lws2_32... " >&6; }
12106if ${ac_cv_lib_ws2_32_main+:} false; then :
12107  $as_echo_n "(cached) " >&6
12108else
12109  ac_check_lib_save_LIBS=$LIBS
12110LIBS="-lws2_32  $LIBS"
12111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112/* end confdefs.h.  */
12113
12114
12115int
12116main ()
12117{
12118return main ();
12119  ;
12120  return 0;
12121}
12122_ACEOF
12123if ac_fn_c_try_link "$LINENO"; then :
12124  ac_cv_lib_ws2_32_main=yes
12125else
12126  ac_cv_lib_ws2_32_main=no
12127fi
12128rm -f core conftest.err conftest.$ac_objext \
12129    conftest$ac_exeext conftest.$ac_ext
12130LIBS=$ac_check_lib_save_LIBS
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12133$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12134if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
12135  cat >>confdefs.h <<_ACEOF
12136#define HAVE_LIBWS2_32 1
12137_ACEOF
12138
12139  LIBS="-lws2_32 $LIBS"
12140
12141fi
12142ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
12143
12144 fi
12145
12146 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12147 # Check whether --enable-ipv6 was given.
12148if test "${enable_ipv6+set}" = set; then :
12149  enableval=$enable_ipv6; IPV6CONN=$enableval
12150else
12151  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12152if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12153  IPV6CONN=yes
12154else
12155  IPV6CONN=no
12156fi
12157
12158fi
12159
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12161$as_echo_n "checking if IPv6 support should be built... " >&6; }
12162 if test "$IPV6CONN" = "yes"; then
12163
12164$as_echo "#define IPv6 1" >>confdefs.h
12165
12166 fi
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12168$as_echo "$IPV6CONN" >&6; }
12169
12170 # 4.3BSD-Reno added a new member to struct sockaddr_in
12171 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12172#include <sys/types.h>
12173#include <sys/socket.h>
12174#include <netinet/in.h>
12175
12176"
12177if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
12178
12179$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
12180
12181fi
12182
12183
12184 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12185 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12186$ac_includes_default
12187#include <sys/socket.h>
12188"
12189if test "x$ac_cv_type_socklen_t" = xyes; then :
12190
12191cat >>confdefs.h <<_ACEOF
12192#define HAVE_SOCKLEN_T 1
12193_ACEOF
12194
12195
12196fi
12197
12198
12199
12200 fi
12201 case $host_os in
12202	solaris*|sco*|sysv4*)	localdef="yes" ;;
12203	*)			localdef="no"  ;;
12204 esac
12205 # Check whether --enable-local-transport was given.
12206if test "${enable_local_transport+set}" = set; then :
12207  enableval=$enable_local_transport; LOCALCONN=$enableval
12208else
12209  LOCALCONN=$localdef
12210fi
12211
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12213$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12215$as_echo "$LOCALCONN" >&6; }
12216 if test "$LOCALCONN" = "yes"; then
12217
12218$as_echo "#define LOCALCONN 1" >>confdefs.h
12219
12220 fi
12221
12222
12223
12224#
12225# Assume that we have sprintf. If a system shows up
12226# that doesn't, we will deal with it at that point.
12227#
12228# The way to deal with it is:
12229#
12230#  1. Add a test for sprintf it here in configure.ac
12231#     that sets or unsets HAS_SNPRINTF as appropriate
12232#
12233#  2. add a copy of xc/lib/misc/snprintf.c
12234#
12235# The source file in question is Lower.c
12236#
12237
12238
12239$as_echo "#define HAS_SNPRINTF /**/" >>confdefs.h
12240
12241
12242
12243
12244
12245
12246
12247
12248# Check whether --with-lint was given.
12249if test "${with_lint+set}" = set; then :
12250  withval=$with_lint; use_lint=$withval
12251else
12252  use_lint=no
12253fi
12254
12255
12256# Obtain platform specific info like program name and options
12257# The lint program on FreeBSD and NetBSD is different from the one on Solaris
12258case $host_os in
12259  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12260	lint_name=splint
12261	lint_options="-badflag"
12262	;;
12263  *freebsd* | *netbsd*)
12264	lint_name=lint
12265	lint_options="-u -b"
12266	;;
12267  *solaris*)
12268	lint_name=lint
12269	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12270	;;
12271esac
12272
12273# Test for the presence of the program (either guessed by the code or spelled out by the user)
12274if test "x$use_lint" = x"yes" ; then
12275   # Extract the first word of "$lint_name", so it can be a program name with args.
12276set dummy $lint_name; ac_word=$2
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278$as_echo_n "checking for $ac_word... " >&6; }
12279if ${ac_cv_path_LINT+:} false; then :
12280  $as_echo_n "(cached) " >&6
12281else
12282  case $LINT in
12283  [\\/]* | ?:[\\/]*)
12284  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12285  ;;
12286  *)
12287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288for as_dir in $PATH
12289do
12290  IFS=$as_save_IFS
12291  test -z "$as_dir" && as_dir=.
12292    for ac_exec_ext in '' $ac_executable_extensions; do
12293  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12294    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
12295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12296    break 2
12297  fi
12298done
12299  done
12300IFS=$as_save_IFS
12301
12302  ;;
12303esac
12304fi
12305LINT=$ac_cv_path_LINT
12306if test -n "$LINT"; then
12307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12308$as_echo "$LINT" >&6; }
12309else
12310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
12312fi
12313
12314
12315   if test "x$LINT" = "x"; then
12316        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12317   fi
12318elif test "x$use_lint" = x"no" ; then
12319   if test "x$LINT" != "x"; then
12320      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12321$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12322   fi
12323else
12324   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12325fi
12326
12327# User supplied flags override default flags
12328if test "x$LINT_FLAGS" != "x"; then
12329   lint_options=$LINT_FLAGS
12330fi
12331
12332LINT_FLAGS=$lint_options
12333
12334 if test "x$LINT" != x; then
12335  LINT_TRUE=
12336  LINT_FALSE='#'
12337else
12338  LINT_TRUE='#'
12339  LINT_FALSE=
12340fi
12341
12342
12343
12344
12345
12346# Check whether --enable-lint-library was given.
12347if test "${enable_lint_library+set}" = set; then :
12348  enableval=$enable_lint_library; make_lint_lib=$enableval
12349else
12350  make_lint_lib=no
12351fi
12352
12353
12354if test "x$make_lint_lib" = x"yes" ; then
12355   LINTLIB=llib-lXmu.ln
12356   if test "x$LINT" = "x"; then
12357        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
12358   fi
12359elif test "x$make_lint_lib" != x"no" ; then
12360   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
12361fi
12362
12363
12364 if test x$make_lint_lib != xno; then
12365  MAKE_LINT_LIB_TRUE=
12366  MAKE_LINT_LIB_FALSE='#'
12367else
12368  MAKE_LINT_LIB_TRUE='#'
12369  MAKE_LINT_LIB_FALSE=
12370fi
12371
12372
12373
12374LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/`
12375
12376
12377ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile xmu.pc xmuu.pc"
12378
12379cat >confcache <<\_ACEOF
12380# This file is a shell script that caches the results of configure
12381# tests run on this system so they can be shared between configure
12382# scripts and configure runs, see configure's option --config-cache.
12383# It is not useful on other systems.  If it contains results you don't
12384# want to keep, you may remove or edit it.
12385#
12386# config.status only pays attention to the cache file if you give it
12387# the --recheck option to rerun configure.
12388#
12389# `ac_cv_env_foo' variables (set or unset) will be overridden when
12390# loading this file, other *unset* `ac_cv_foo' will be assigned the
12391# following values.
12392
12393_ACEOF
12394
12395# The following way of writing the cache mishandles newlines in values,
12396# but we know of no workaround that is simple, portable, and efficient.
12397# So, we kill variables containing newlines.
12398# Ultrix sh set writes to stderr and can't be redirected directly,
12399# and sets the high bit in the cache file unless we assign to the vars.
12400(
12401  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12402    eval ac_val=\$$ac_var
12403    case $ac_val in #(
12404    *${as_nl}*)
12405      case $ac_var in #(
12406      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12408      esac
12409      case $ac_var in #(
12410      _ | IFS | as_nl) ;; #(
12411      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12412      *) { eval $ac_var=; unset $ac_var;} ;;
12413      esac ;;
12414    esac
12415  done
12416
12417  (set) 2>&1 |
12418    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12419    *${as_nl}ac_space=\ *)
12420      # `set' does not quote correctly, so add quotes: double-quote
12421      # substitution turns \\\\ into \\, and sed turns \\ into \.
12422      sed -n \
12423	"s/'/'\\\\''/g;
12424	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12425      ;; #(
12426    *)
12427      # `set' quotes correctly as required by POSIX, so do not add quotes.
12428      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12429      ;;
12430    esac |
12431    sort
12432) |
12433  sed '
12434     /^ac_cv_env_/b end
12435     t clear
12436     :clear
12437     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12438     t end
12439     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12440     :end' >>confcache
12441if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12442  if test -w "$cache_file"; then
12443    if test "x$cache_file" != "x/dev/null"; then
12444      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12445$as_echo "$as_me: updating cache $cache_file" >&6;}
12446      if test ! -f "$cache_file" || test -h "$cache_file"; then
12447	cat confcache >"$cache_file"
12448      else
12449        case $cache_file in #(
12450        */* | ?:*)
12451	  mv -f confcache "$cache_file"$$ &&
12452	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12453        *)
12454	  mv -f confcache "$cache_file" ;;
12455	esac
12456      fi
12457    fi
12458  else
12459    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12460$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12461  fi
12462fi
12463rm -f confcache
12464
12465test "x$prefix" = xNONE && prefix=$ac_default_prefix
12466# Let make expand exec_prefix.
12467test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12468
12469DEFS=-DHAVE_CONFIG_H
12470
12471ac_libobjs=
12472ac_ltlibobjs=
12473U=
12474for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12475  # 1. Remove the extension, and $U if already installed.
12476  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12477  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12478  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12479  #    will be set to the directory where LIBOBJS objects are built.
12480  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12481  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12482done
12483LIBOBJS=$ac_libobjs
12484
12485LTLIBOBJS=$ac_ltlibobjs
12486
12487
12488 if test -n "$EXEEXT"; then
12489  am__EXEEXT_TRUE=
12490  am__EXEEXT_FALSE='#'
12491else
12492  am__EXEEXT_TRUE='#'
12493  am__EXEEXT_FALSE=
12494fi
12495
12496if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12497  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12498Usually this means the macro was only invoked conditionally." "$LINENO" 5
12499fi
12500if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12501  as_fn_error $? "conditional \"AMDEP\" was never defined.
12502Usually this means the macro was only invoked conditionally." "$LINENO" 5
12503fi
12504if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12505  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12506Usually this means the macro was only invoked conditionally." "$LINENO" 5
12507fi
12508if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
12509  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
12510Usually this means the macro was only invoked conditionally." "$LINENO" 5
12511fi
12512if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12513  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12514Usually this means the macro was only invoked conditionally." "$LINENO" 5
12515fi
12516if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12517  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12518Usually this means the macro was only invoked conditionally." "$LINENO" 5
12519fi
12520if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12521  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12522Usually this means the macro was only invoked conditionally." "$LINENO" 5
12523fi
12524if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12525  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12526Usually this means the macro was only invoked conditionally." "$LINENO" 5
12527fi
12528if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12529  as_fn_error $? "conditional \"LINT\" was never defined.
12530Usually this means the macro was only invoked conditionally." "$LINENO" 5
12531fi
12532if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
12533  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
12534Usually this means the macro was only invoked conditionally." "$LINENO" 5
12535fi
12536
12537: "${CONFIG_STATUS=./config.status}"
12538ac_write_fail=0
12539ac_clean_files_save=$ac_clean_files
12540ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12542$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12543as_write_fail=0
12544cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12545#! $SHELL
12546# Generated by $as_me.
12547# Run this file to recreate the current configuration.
12548# Compiler output produced by configure, useful for debugging
12549# configure, is in config.log if it exists.
12550
12551debug=false
12552ac_cs_recheck=false
12553ac_cs_silent=false
12554
12555SHELL=\${CONFIG_SHELL-$SHELL}
12556export SHELL
12557_ASEOF
12558cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12559## -------------------- ##
12560## M4sh Initialization. ##
12561## -------------------- ##
12562
12563# Be more Bourne compatible
12564DUALCASE=1; export DUALCASE # for MKS sh
12565if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12566  emulate sh
12567  NULLCMD=:
12568  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12569  # is contrary to our usage.  Disable this feature.
12570  alias -g '${1+"$@"}'='"$@"'
12571  setopt NO_GLOB_SUBST
12572else
12573  case `(set -o) 2>/dev/null` in #(
12574  *posix*) :
12575    set -o posix ;; #(
12576  *) :
12577     ;;
12578esac
12579fi
12580
12581
12582as_nl='
12583'
12584export as_nl
12585# Printing a long string crashes Solaris 7 /usr/bin/printf.
12586as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12587as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12588as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12589# Prefer a ksh shell builtin over an external printf program on Solaris,
12590# but without wasting forks for bash or zsh.
12591if test -z "$BASH_VERSION$ZSH_VERSION" \
12592    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12593  as_echo='print -r --'
12594  as_echo_n='print -rn --'
12595elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12596  as_echo='printf %s\n'
12597  as_echo_n='printf %s'
12598else
12599  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12600    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12601    as_echo_n='/usr/ucb/echo -n'
12602  else
12603    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12604    as_echo_n_body='eval
12605      arg=$1;
12606      case $arg in #(
12607      *"$as_nl"*)
12608	expr "X$arg" : "X\\(.*\\)$as_nl";
12609	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12610      esac;
12611      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12612    '
12613    export as_echo_n_body
12614    as_echo_n='sh -c $as_echo_n_body as_echo'
12615  fi
12616  export as_echo_body
12617  as_echo='sh -c $as_echo_body as_echo'
12618fi
12619
12620# The user is always right.
12621if test "${PATH_SEPARATOR+set}" != set; then
12622  PATH_SEPARATOR=:
12623  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12624    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12625      PATH_SEPARATOR=';'
12626  }
12627fi
12628
12629
12630# IFS
12631# We need space, tab and new line, in precisely that order.  Quoting is
12632# there to prevent editors from complaining about space-tab.
12633# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12634# splitting by setting IFS to empty value.)
12635IFS=" ""	$as_nl"
12636
12637# Find who we are.  Look in the path if we contain no directory separator.
12638as_myself=
12639case $0 in #((
12640  *[\\/]* ) as_myself=$0 ;;
12641  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642for as_dir in $PATH
12643do
12644  IFS=$as_save_IFS
12645  test -z "$as_dir" && as_dir=.
12646    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12647  done
12648IFS=$as_save_IFS
12649
12650     ;;
12651esac
12652# We did not find ourselves, most probably we were run as `sh COMMAND'
12653# in which case we are not to be found in the path.
12654if test "x$as_myself" = x; then
12655  as_myself=$0
12656fi
12657if test ! -f "$as_myself"; then
12658  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12659  exit 1
12660fi
12661
12662# Unset variables that we do not need and which cause bugs (e.g. in
12663# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12664# suppresses any "Segmentation fault" message there.  '((' could
12665# trigger a bug in pdksh 5.2.14.
12666for as_var in BASH_ENV ENV MAIL MAILPATH
12667do eval test x\${$as_var+set} = xset \
12668  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12669done
12670PS1='$ '
12671PS2='> '
12672PS4='+ '
12673
12674# NLS nuisances.
12675LC_ALL=C
12676export LC_ALL
12677LANGUAGE=C
12678export LANGUAGE
12679
12680# CDPATH.
12681(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12682
12683
12684# as_fn_error STATUS ERROR [LINENO LOG_FD]
12685# ----------------------------------------
12686# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12687# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12688# script with STATUS, using 1 if that was 0.
12689as_fn_error ()
12690{
12691  as_status=$1; test $as_status -eq 0 && as_status=1
12692  if test "$4"; then
12693    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12694    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12695  fi
12696  $as_echo "$as_me: error: $2" >&2
12697  as_fn_exit $as_status
12698} # as_fn_error
12699
12700
12701# as_fn_set_status STATUS
12702# -----------------------
12703# Set $? to STATUS, without forking.
12704as_fn_set_status ()
12705{
12706  return $1
12707} # as_fn_set_status
12708
12709# as_fn_exit STATUS
12710# -----------------
12711# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12712as_fn_exit ()
12713{
12714  set +e
12715  as_fn_set_status $1
12716  exit $1
12717} # as_fn_exit
12718
12719# as_fn_unset VAR
12720# ---------------
12721# Portably unset VAR.
12722as_fn_unset ()
12723{
12724  { eval $1=; unset $1;}
12725}
12726as_unset=as_fn_unset
12727# as_fn_append VAR VALUE
12728# ----------------------
12729# Append the text in VALUE to the end of the definition contained in VAR. Take
12730# advantage of any shell optimizations that allow amortized linear growth over
12731# repeated appends, instead of the typical quadratic growth present in naive
12732# implementations.
12733if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12734  eval 'as_fn_append ()
12735  {
12736    eval $1+=\$2
12737  }'
12738else
12739  as_fn_append ()
12740  {
12741    eval $1=\$$1\$2
12742  }
12743fi # as_fn_append
12744
12745# as_fn_arith ARG...
12746# ------------------
12747# Perform arithmetic evaluation on the ARGs, and store the result in the
12748# global $as_val. Take advantage of shells that can avoid forks. The arguments
12749# must be portable across $(()) and expr.
12750if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12751  eval 'as_fn_arith ()
12752  {
12753    as_val=$(( $* ))
12754  }'
12755else
12756  as_fn_arith ()
12757  {
12758    as_val=`expr "$@" || test $? -eq 1`
12759  }
12760fi # as_fn_arith
12761
12762
12763if expr a : '\(a\)' >/dev/null 2>&1 &&
12764   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12765  as_expr=expr
12766else
12767  as_expr=false
12768fi
12769
12770if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12771  as_basename=basename
12772else
12773  as_basename=false
12774fi
12775
12776if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12777  as_dirname=dirname
12778else
12779  as_dirname=false
12780fi
12781
12782as_me=`$as_basename -- "$0" ||
12783$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12784	 X"$0" : 'X\(//\)$' \| \
12785	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12786$as_echo X/"$0" |
12787    sed '/^.*\/\([^/][^/]*\)\/*$/{
12788	    s//\1/
12789	    q
12790	  }
12791	  /^X\/\(\/\/\)$/{
12792	    s//\1/
12793	    q
12794	  }
12795	  /^X\/\(\/\).*/{
12796	    s//\1/
12797	    q
12798	  }
12799	  s/.*/./; q'`
12800
12801# Avoid depending upon Character Ranges.
12802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12805as_cr_digits='0123456789'
12806as_cr_alnum=$as_cr_Letters$as_cr_digits
12807
12808ECHO_C= ECHO_N= ECHO_T=
12809case `echo -n x` in #(((((
12810-n*)
12811  case `echo 'xy\c'` in
12812  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12813  xy)  ECHO_C='\c';;
12814  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12815       ECHO_T='	';;
12816  esac;;
12817*)
12818  ECHO_N='-n';;
12819esac
12820
12821rm -f conf$$ conf$$.exe conf$$.file
12822if test -d conf$$.dir; then
12823  rm -f conf$$.dir/conf$$.file
12824else
12825  rm -f conf$$.dir
12826  mkdir conf$$.dir 2>/dev/null
12827fi
12828if (echo >conf$$.file) 2>/dev/null; then
12829  if ln -s conf$$.file conf$$ 2>/dev/null; then
12830    as_ln_s='ln -s'
12831    # ... but there are two gotchas:
12832    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12833    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12834    # In both cases, we have to default to `cp -p'.
12835    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12836      as_ln_s='cp -p'
12837  elif ln conf$$.file conf$$ 2>/dev/null; then
12838    as_ln_s=ln
12839  else
12840    as_ln_s='cp -p'
12841  fi
12842else
12843  as_ln_s='cp -p'
12844fi
12845rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12846rmdir conf$$.dir 2>/dev/null
12847
12848
12849# as_fn_mkdir_p
12850# -------------
12851# Create "$as_dir" as a directory, including parents if necessary.
12852as_fn_mkdir_p ()
12853{
12854
12855  case $as_dir in #(
12856  -*) as_dir=./$as_dir;;
12857  esac
12858  test -d "$as_dir" || eval $as_mkdir_p || {
12859    as_dirs=
12860    while :; do
12861      case $as_dir in #(
12862      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12863      *) as_qdir=$as_dir;;
12864      esac
12865      as_dirs="'$as_qdir' $as_dirs"
12866      as_dir=`$as_dirname -- "$as_dir" ||
12867$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12868	 X"$as_dir" : 'X\(//\)[^/]' \| \
12869	 X"$as_dir" : 'X\(//\)$' \| \
12870	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12871$as_echo X"$as_dir" |
12872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12873	    s//\1/
12874	    q
12875	  }
12876	  /^X\(\/\/\)[^/].*/{
12877	    s//\1/
12878	    q
12879	  }
12880	  /^X\(\/\/\)$/{
12881	    s//\1/
12882	    q
12883	  }
12884	  /^X\(\/\).*/{
12885	    s//\1/
12886	    q
12887	  }
12888	  s/.*/./; q'`
12889      test -d "$as_dir" && break
12890    done
12891    test -z "$as_dirs" || eval "mkdir $as_dirs"
12892  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12893
12894
12895} # as_fn_mkdir_p
12896if mkdir -p . 2>/dev/null; then
12897  as_mkdir_p='mkdir -p "$as_dir"'
12898else
12899  test -d ./-p && rmdir ./-p
12900  as_mkdir_p=false
12901fi
12902
12903if test -x / >/dev/null 2>&1; then
12904  as_test_x='test -x'
12905else
12906  if ls -dL / >/dev/null 2>&1; then
12907    as_ls_L_option=L
12908  else
12909    as_ls_L_option=
12910  fi
12911  as_test_x='
12912    eval sh -c '\''
12913      if test -d "$1"; then
12914	test -d "$1/.";
12915      else
12916	case $1 in #(
12917	-*)set "./$1";;
12918	esac;
12919	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12920	???[sx]*):;;*)false;;esac;fi
12921    '\'' sh
12922  '
12923fi
12924as_executable_p=$as_test_x
12925
12926# Sed expression to map a string onto a valid CPP name.
12927as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12928
12929# Sed expression to map a string onto a valid variable name.
12930as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12931
12932
12933exec 6>&1
12934## ----------------------------------- ##
12935## Main body of $CONFIG_STATUS script. ##
12936## ----------------------------------- ##
12937_ASEOF
12938test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12939
12940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12941# Save the log message, to keep $0 and so on meaningful, and to
12942# report actual input values of CONFIG_FILES etc. instead of their
12943# values after options handling.
12944ac_log="
12945This file was extended by libXmu $as_me 1.1.0, which was
12946generated by GNU Autoconf 2.68.  Invocation command line was
12947
12948  CONFIG_FILES    = $CONFIG_FILES
12949  CONFIG_HEADERS  = $CONFIG_HEADERS
12950  CONFIG_LINKS    = $CONFIG_LINKS
12951  CONFIG_COMMANDS = $CONFIG_COMMANDS
12952  $ $0 $@
12953
12954on `(hostname || uname -n) 2>/dev/null | sed 1q`
12955"
12956
12957_ACEOF
12958
12959case $ac_config_files in *"
12960"*) set x $ac_config_files; shift; ac_config_files=$*;;
12961esac
12962
12963case $ac_config_headers in *"
12964"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12965esac
12966
12967
12968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12969# Files that config.status was made for.
12970config_files="$ac_config_files"
12971config_headers="$ac_config_headers"
12972config_commands="$ac_config_commands"
12973
12974_ACEOF
12975
12976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12977ac_cs_usage="\
12978\`$as_me' instantiates files and other configuration actions
12979from templates according to the current configuration.  Unless the files
12980and actions are specified as TAGs, all are instantiated by default.
12981
12982Usage: $0 [OPTION]... [TAG]...
12983
12984  -h, --help       print this help, then exit
12985  -V, --version    print version number and configuration settings, then exit
12986      --config     print configuration, then exit
12987  -q, --quiet, --silent
12988                   do not print progress messages
12989  -d, --debug      don't remove temporary files
12990      --recheck    update $as_me by reconfiguring in the same conditions
12991      --file=FILE[:TEMPLATE]
12992                   instantiate the configuration file FILE
12993      --header=FILE[:TEMPLATE]
12994                   instantiate the configuration header FILE
12995
12996Configuration files:
12997$config_files
12998
12999Configuration headers:
13000$config_headers
13001
13002Configuration commands:
13003$config_commands
13004
13005Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13006
13007_ACEOF
13008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13009ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13010ac_cs_version="\\
13011libXmu config.status 1.1.0
13012configured by $0, generated by GNU Autoconf 2.68,
13013  with options \\"\$ac_cs_config\\"
13014
13015Copyright (C) 2010 Free Software Foundation, Inc.
13016This config.status script is free software; the Free Software Foundation
13017gives unlimited permission to copy, distribute and modify it."
13018
13019ac_pwd='$ac_pwd'
13020srcdir='$srcdir'
13021INSTALL='$INSTALL'
13022MKDIR_P='$MKDIR_P'
13023AWK='$AWK'
13024test -n "\$AWK" || AWK=awk
13025_ACEOF
13026
13027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13028# The default lists apply if the user does not specify any file.
13029ac_need_defaults=:
13030while test $# != 0
13031do
13032  case $1 in
13033  --*=?*)
13034    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13035    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13036    ac_shift=:
13037    ;;
13038  --*=)
13039    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13040    ac_optarg=
13041    ac_shift=:
13042    ;;
13043  *)
13044    ac_option=$1
13045    ac_optarg=$2
13046    ac_shift=shift
13047    ;;
13048  esac
13049
13050  case $ac_option in
13051  # Handling of the options.
13052  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13053    ac_cs_recheck=: ;;
13054  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13055    $as_echo "$ac_cs_version"; exit ;;
13056  --config | --confi | --conf | --con | --co | --c )
13057    $as_echo "$ac_cs_config"; exit ;;
13058  --debug | --debu | --deb | --de | --d | -d )
13059    debug=: ;;
13060  --file | --fil | --fi | --f )
13061    $ac_shift
13062    case $ac_optarg in
13063    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13064    '') as_fn_error $? "missing file argument" ;;
13065    esac
13066    as_fn_append CONFIG_FILES " '$ac_optarg'"
13067    ac_need_defaults=false;;
13068  --header | --heade | --head | --hea )
13069    $ac_shift
13070    case $ac_optarg in
13071    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13072    esac
13073    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13074    ac_need_defaults=false;;
13075  --he | --h)
13076    # Conflict between --help and --header
13077    as_fn_error $? "ambiguous option: \`$1'
13078Try \`$0 --help' for more information.";;
13079  --help | --hel | -h )
13080    $as_echo "$ac_cs_usage"; exit ;;
13081  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13082  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13083    ac_cs_silent=: ;;
13084
13085  # This is an error.
13086  -*) as_fn_error $? "unrecognized option: \`$1'
13087Try \`$0 --help' for more information." ;;
13088
13089  *) as_fn_append ac_config_targets " $1"
13090     ac_need_defaults=false ;;
13091
13092  esac
13093  shift
13094done
13095
13096ac_configure_extra_args=
13097
13098if $ac_cs_silent; then
13099  exec 6>/dev/null
13100  ac_configure_extra_args="$ac_configure_extra_args --silent"
13101fi
13102
13103_ACEOF
13104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13105if \$ac_cs_recheck; then
13106  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13107  shift
13108  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13109  CONFIG_SHELL='$SHELL'
13110  export CONFIG_SHELL
13111  exec "\$@"
13112fi
13113
13114_ACEOF
13115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13116exec 5>>config.log
13117{
13118  echo
13119  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13120## Running $as_me. ##
13121_ASBOX
13122  $as_echo "$ac_log"
13123} >&5
13124
13125_ACEOF
13126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13127#
13128# INIT-COMMANDS
13129#
13130AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13131
13132
13133# The HP-UX ksh and POSIX shell print the target directory to stdout
13134# if CDPATH is set.
13135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13136
13137sed_quote_subst='$sed_quote_subst'
13138double_quote_subst='$double_quote_subst'
13139delay_variable_subst='$delay_variable_subst'
13140macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13141macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13142enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13143enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13144pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13145enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13146SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13147ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13148host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13149host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13150host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13151build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13152build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13153build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13154SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13155Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13156GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13157EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13158FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13159LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13160NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13161LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13162max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13163ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13164exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13165lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13166lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13167lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13168reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13169reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13170OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13171deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13172file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13173AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13174AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13175STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13176RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13177old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13178old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13179old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13180lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13181CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13182CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13183compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13184GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13185lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13186lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13187lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13188lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13189objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13190MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13191lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13192lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13193lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13194lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13195lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13196need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13197DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13198NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13199LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13200OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13201OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13202libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13203shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13204extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13205archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13206enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13207export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13208whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13209compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13210old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13211old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13212archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13213archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13214module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13215module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13216with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13217allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13218no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13219hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13220hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13221hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13222hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13223hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13224hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13225hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13226hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13227inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13228link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13229fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13230always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13231export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13232exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13233include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13234prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13235file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13236variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13237need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13238need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13239version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13240runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13241shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13242shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13243libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13244library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13245soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13246install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13247postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13248postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13249finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13250finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13251hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13252sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13253sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13254hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13255enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13256enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13257enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13258old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13259striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13260
13261LTCC='$LTCC'
13262LTCFLAGS='$LTCFLAGS'
13263compiler='$compiler_DEFAULT'
13264
13265# A function that is used when there is no print builtin or printf.
13266func_fallback_echo ()
13267{
13268  eval 'cat <<_LTECHO_EOF
13269\$1
13270_LTECHO_EOF'
13271}
13272
13273# Quote evaled strings.
13274for var in SHELL \
13275ECHO \
13276SED \
13277GREP \
13278EGREP \
13279FGREP \
13280LD \
13281NM \
13282LN_S \
13283lt_SP2NL \
13284lt_NL2SP \
13285reload_flag \
13286OBJDUMP \
13287deplibs_check_method \
13288file_magic_cmd \
13289AR \
13290AR_FLAGS \
13291STRIP \
13292RANLIB \
13293CC \
13294CFLAGS \
13295compiler \
13296lt_cv_sys_global_symbol_pipe \
13297lt_cv_sys_global_symbol_to_cdecl \
13298lt_cv_sys_global_symbol_to_c_name_address \
13299lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13300lt_prog_compiler_no_builtin_flag \
13301lt_prog_compiler_wl \
13302lt_prog_compiler_pic \
13303lt_prog_compiler_static \
13304lt_cv_prog_compiler_c_o \
13305need_locks \
13306DSYMUTIL \
13307NMEDIT \
13308LIPO \
13309OTOOL \
13310OTOOL64 \
13311shrext_cmds \
13312export_dynamic_flag_spec \
13313whole_archive_flag_spec \
13314compiler_needs_object \
13315with_gnu_ld \
13316allow_undefined_flag \
13317no_undefined_flag \
13318hardcode_libdir_flag_spec \
13319hardcode_libdir_flag_spec_ld \
13320hardcode_libdir_separator \
13321fix_srcfile_path \
13322exclude_expsyms \
13323include_expsyms \
13324file_list_spec \
13325variables_saved_for_relink \
13326libname_spec \
13327library_names_spec \
13328soname_spec \
13329install_override_mode \
13330finish_eval \
13331old_striplib \
13332striplib; do
13333    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13334    *[\\\\\\\`\\"\\\$]*)
13335      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13336      ;;
13337    *)
13338      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13339      ;;
13340    esac
13341done
13342
13343# Double-quote double-evaled strings.
13344for var in reload_cmds \
13345old_postinstall_cmds \
13346old_postuninstall_cmds \
13347old_archive_cmds \
13348extract_expsyms_cmds \
13349old_archive_from_new_cmds \
13350old_archive_from_expsyms_cmds \
13351archive_cmds \
13352archive_expsym_cmds \
13353module_cmds \
13354module_expsym_cmds \
13355export_symbols_cmds \
13356prelink_cmds \
13357postinstall_cmds \
13358postuninstall_cmds \
13359finish_cmds \
13360sys_lib_search_path_spec \
13361sys_lib_dlsearch_path_spec; do
13362    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13363    *[\\\\\\\`\\"\\\$]*)
13364      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13365      ;;
13366    *)
13367      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13368      ;;
13369    esac
13370done
13371
13372ac_aux_dir='$ac_aux_dir'
13373xsi_shell='$xsi_shell'
13374lt_shell_append='$lt_shell_append'
13375
13376# See if we are running on zsh, and set the options which allow our
13377# commands through without removal of \ escapes INIT.
13378if test -n "\${ZSH_VERSION+set}" ; then
13379   setopt NO_GLOB_SUBST
13380fi
13381
13382
13383    PACKAGE='$PACKAGE'
13384    VERSION='$VERSION'
13385    TIMESTAMP='$TIMESTAMP'
13386    RM='$RM'
13387    ofile='$ofile'
13388
13389
13390
13391
13392_ACEOF
13393
13394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13395
13396# Handling of arguments.
13397for ac_config_target in $ac_config_targets
13398do
13399  case $ac_config_target in
13400    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13401    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13402    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13403    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13404    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13405    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13406    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13407    "xmu.pc") CONFIG_FILES="$CONFIG_FILES xmu.pc" ;;
13408    "xmuu.pc") CONFIG_FILES="$CONFIG_FILES xmuu.pc" ;;
13409
13410  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13411  esac
13412done
13413
13414
13415# If the user did not use the arguments to specify the items to instantiate,
13416# then the envvar interface is used.  Set only those that are not.
13417# We use the long form for the default assignment because of an extremely
13418# bizarre bug on SunOS 4.1.3.
13419if $ac_need_defaults; then
13420  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13421  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13422  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13423fi
13424
13425# Have a temporary directory for convenience.  Make it in the build tree
13426# simply because there is no reason against having it here, and in addition,
13427# creating and moving files from /tmp can sometimes cause problems.
13428# Hook for its removal unless debugging.
13429# Note that there is a small window in which the directory will not be cleaned:
13430# after its creation but before its name has been assigned to `$tmp'.
13431$debug ||
13432{
13433  tmp= ac_tmp=
13434  trap 'exit_status=$?
13435  : "${ac_tmp:=$tmp}"
13436  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13437' 0
13438  trap 'as_fn_exit 1' 1 2 13 15
13439}
13440# Create a (secure) tmp directory for tmp files.
13441
13442{
13443  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13444  test -d "$tmp"
13445}  ||
13446{
13447  tmp=./conf$$-$RANDOM
13448  (umask 077 && mkdir "$tmp")
13449} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13450ac_tmp=$tmp
13451
13452# Set up the scripts for CONFIG_FILES section.
13453# No need to generate them if there are no CONFIG_FILES.
13454# This happens for instance with `./config.status config.h'.
13455if test -n "$CONFIG_FILES"; then
13456
13457
13458ac_cr=`echo X | tr X '\015'`
13459# On cygwin, bash can eat \r inside `` if the user requested igncr.
13460# But we know of no other shell where ac_cr would be empty at this
13461# point, so we can use a bashism as a fallback.
13462if test "x$ac_cr" = x; then
13463  eval ac_cr=\$\'\\r\'
13464fi
13465ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13466if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13467  ac_cs_awk_cr='\\r'
13468else
13469  ac_cs_awk_cr=$ac_cr
13470fi
13471
13472echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13473_ACEOF
13474
13475
13476{
13477  echo "cat >conf$$subs.awk <<_ACEOF" &&
13478  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13479  echo "_ACEOF"
13480} >conf$$subs.sh ||
13481  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13482ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13483ac_delim='%!_!# '
13484for ac_last_try in false false false false false :; do
13485  . ./conf$$subs.sh ||
13486    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13487
13488  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13489  if test $ac_delim_n = $ac_delim_num; then
13490    break
13491  elif $ac_last_try; then
13492    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13493  else
13494    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13495  fi
13496done
13497rm -f conf$$subs.sh
13498
13499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13500cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13501_ACEOF
13502sed -n '
13503h
13504s/^/S["/; s/!.*/"]=/
13505p
13506g
13507s/^[^!]*!//
13508:repl
13509t repl
13510s/'"$ac_delim"'$//
13511t delim
13512:nl
13513h
13514s/\(.\{148\}\)..*/\1/
13515t more1
13516s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13517p
13518n
13519b repl
13520:more1
13521s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13522p
13523g
13524s/.\{148\}//
13525t nl
13526:delim
13527h
13528s/\(.\{148\}\)..*/\1/
13529t more2
13530s/["\\]/\\&/g; s/^/"/; s/$/"/
13531p
13532b
13533:more2
13534s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13535p
13536g
13537s/.\{148\}//
13538t delim
13539' <conf$$subs.awk | sed '
13540/^[^""]/{
13541  N
13542  s/\n//
13543}
13544' >>$CONFIG_STATUS || ac_write_fail=1
13545rm -f conf$$subs.awk
13546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13547_ACAWK
13548cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13549  for (key in S) S_is_set[key] = 1
13550  FS = ""
13551
13552}
13553{
13554  line = $ 0
13555  nfields = split(line, field, "@")
13556  substed = 0
13557  len = length(field[1])
13558  for (i = 2; i < nfields; i++) {
13559    key = field[i]
13560    keylen = length(key)
13561    if (S_is_set[key]) {
13562      value = S[key]
13563      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13564      len += length(value) + length(field[++i])
13565      substed = 1
13566    } else
13567      len += 1 + keylen
13568  }
13569
13570  print line
13571}
13572
13573_ACAWK
13574_ACEOF
13575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13576if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13577  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13578else
13579  cat
13580fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13581  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13582_ACEOF
13583
13584# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13585# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13586# trailing colons and then remove the whole line if VPATH becomes empty
13587# (actually we leave an empty line to preserve line numbers).
13588if test "x$srcdir" = x.; then
13589  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13590h
13591s///
13592s/^/:/
13593s/[	 ]*$/:/
13594s/:\$(srcdir):/:/g
13595s/:\${srcdir}:/:/g
13596s/:@srcdir@:/:/g
13597s/^:*//
13598s/:*$//
13599x
13600s/\(=[	 ]*\).*/\1/
13601G
13602s/\n//
13603s/^[^=]*=[	 ]*$//
13604}'
13605fi
13606
13607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13608fi # test -n "$CONFIG_FILES"
13609
13610# Set up the scripts for CONFIG_HEADERS section.
13611# No need to generate them if there are no CONFIG_HEADERS.
13612# This happens for instance with `./config.status Makefile'.
13613if test -n "$CONFIG_HEADERS"; then
13614cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13615BEGIN {
13616_ACEOF
13617
13618# Transform confdefs.h into an awk script `defines.awk', embedded as
13619# here-document in config.status, that substitutes the proper values into
13620# config.h.in to produce config.h.
13621
13622# Create a delimiter string that does not exist in confdefs.h, to ease
13623# handling of long lines.
13624ac_delim='%!_!# '
13625for ac_last_try in false false :; do
13626  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13627  if test -z "$ac_tt"; then
13628    break
13629  elif $ac_last_try; then
13630    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13631  else
13632    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13633  fi
13634done
13635
13636# For the awk script, D is an array of macro values keyed by name,
13637# likewise P contains macro parameters if any.  Preserve backslash
13638# newline sequences.
13639
13640ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13641sed -n '
13642s/.\{148\}/&'"$ac_delim"'/g
13643t rset
13644:rset
13645s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13646t def
13647d
13648:def
13649s/\\$//
13650t bsnl
13651s/["\\]/\\&/g
13652s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13653D["\1"]=" \3"/p
13654s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13655d
13656:bsnl
13657s/["\\]/\\&/g
13658s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13659D["\1"]=" \3\\\\\\n"\\/p
13660t cont
13661s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13662t cont
13663d
13664:cont
13665n
13666s/.\{148\}/&'"$ac_delim"'/g
13667t clear
13668:clear
13669s/\\$//
13670t bsnlc
13671s/["\\]/\\&/g; s/^/"/; s/$/"/p
13672d
13673:bsnlc
13674s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13675b cont
13676' <confdefs.h | sed '
13677s/'"$ac_delim"'/"\\\
13678"/g' >>$CONFIG_STATUS || ac_write_fail=1
13679
13680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13681  for (key in D) D_is_set[key] = 1
13682  FS = ""
13683}
13684/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13685  line = \$ 0
13686  split(line, arg, " ")
13687  if (arg[1] == "#") {
13688    defundef = arg[2]
13689    mac1 = arg[3]
13690  } else {
13691    defundef = substr(arg[1], 2)
13692    mac1 = arg[2]
13693  }
13694  split(mac1, mac2, "(") #)
13695  macro = mac2[1]
13696  prefix = substr(line, 1, index(line, defundef) - 1)
13697  if (D_is_set[macro]) {
13698    # Preserve the white space surrounding the "#".
13699    print prefix "define", macro P[macro] D[macro]
13700    next
13701  } else {
13702    # Replace #undef with comments.  This is necessary, for example,
13703    # in the case of _POSIX_SOURCE, which is predefined and required
13704    # on some systems where configure will not decide to define it.
13705    if (defundef == "undef") {
13706      print "/*", prefix defundef, macro, "*/"
13707      next
13708    }
13709  }
13710}
13711{ print }
13712_ACAWK
13713_ACEOF
13714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13716fi # test -n "$CONFIG_HEADERS"
13717
13718
13719eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13720shift
13721for ac_tag
13722do
13723  case $ac_tag in
13724  :[FHLC]) ac_mode=$ac_tag; continue;;
13725  esac
13726  case $ac_mode$ac_tag in
13727  :[FHL]*:*);;
13728  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13729  :[FH]-) ac_tag=-:-;;
13730  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13731  esac
13732  ac_save_IFS=$IFS
13733  IFS=:
13734  set x $ac_tag
13735  IFS=$ac_save_IFS
13736  shift
13737  ac_file=$1
13738  shift
13739
13740  case $ac_mode in
13741  :L) ac_source=$1;;
13742  :[FH])
13743    ac_file_inputs=
13744    for ac_f
13745    do
13746      case $ac_f in
13747      -) ac_f="$ac_tmp/stdin";;
13748      *) # Look for the file first in the build tree, then in the source tree
13749	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13750	 # because $ac_f cannot contain `:'.
13751	 test -f "$ac_f" ||
13752	   case $ac_f in
13753	   [\\/$]*) false;;
13754	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13755	   esac ||
13756	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13757      esac
13758      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13759      as_fn_append ac_file_inputs " '$ac_f'"
13760    done
13761
13762    # Let's still pretend it is `configure' which instantiates (i.e., don't
13763    # use $as_me), people would be surprised to read:
13764    #    /* config.h.  Generated by config.status.  */
13765    configure_input='Generated from '`
13766	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13767	`' by configure.'
13768    if test x"$ac_file" != x-; then
13769      configure_input="$ac_file.  $configure_input"
13770      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13771$as_echo "$as_me: creating $ac_file" >&6;}
13772    fi
13773    # Neutralize special characters interpreted by sed in replacement strings.
13774    case $configure_input in #(
13775    *\&* | *\|* | *\\* )
13776       ac_sed_conf_input=`$as_echo "$configure_input" |
13777       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13778    *) ac_sed_conf_input=$configure_input;;
13779    esac
13780
13781    case $ac_tag in
13782    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13783      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13784    esac
13785    ;;
13786  esac
13787
13788  ac_dir=`$as_dirname -- "$ac_file" ||
13789$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13790	 X"$ac_file" : 'X\(//\)[^/]' \| \
13791	 X"$ac_file" : 'X\(//\)$' \| \
13792	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13793$as_echo X"$ac_file" |
13794    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13795	    s//\1/
13796	    q
13797	  }
13798	  /^X\(\/\/\)[^/].*/{
13799	    s//\1/
13800	    q
13801	  }
13802	  /^X\(\/\/\)$/{
13803	    s//\1/
13804	    q
13805	  }
13806	  /^X\(\/\).*/{
13807	    s//\1/
13808	    q
13809	  }
13810	  s/.*/./; q'`
13811  as_dir="$ac_dir"; as_fn_mkdir_p
13812  ac_builddir=.
13813
13814case "$ac_dir" in
13815.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13816*)
13817  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13818  # A ".." for each directory in $ac_dir_suffix.
13819  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13820  case $ac_top_builddir_sub in
13821  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13822  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13823  esac ;;
13824esac
13825ac_abs_top_builddir=$ac_pwd
13826ac_abs_builddir=$ac_pwd$ac_dir_suffix
13827# for backward compatibility:
13828ac_top_builddir=$ac_top_build_prefix
13829
13830case $srcdir in
13831  .)  # We are building in place.
13832    ac_srcdir=.
13833    ac_top_srcdir=$ac_top_builddir_sub
13834    ac_abs_top_srcdir=$ac_pwd ;;
13835  [\\/]* | ?:[\\/]* )  # Absolute name.
13836    ac_srcdir=$srcdir$ac_dir_suffix;
13837    ac_top_srcdir=$srcdir
13838    ac_abs_top_srcdir=$srcdir ;;
13839  *) # Relative name.
13840    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13841    ac_top_srcdir=$ac_top_build_prefix$srcdir
13842    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13843esac
13844ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13845
13846
13847  case $ac_mode in
13848  :F)
13849  #
13850  # CONFIG_FILE
13851  #
13852
13853  case $INSTALL in
13854  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13855  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13856  esac
13857  ac_MKDIR_P=$MKDIR_P
13858  case $MKDIR_P in
13859  [\\/$]* | ?:[\\/]* ) ;;
13860  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13861  esac
13862_ACEOF
13863
13864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865# If the template does not know about datarootdir, expand it.
13866# FIXME: This hack should be removed a few years after 2.60.
13867ac_datarootdir_hack=; ac_datarootdir_seen=
13868ac_sed_dataroot='
13869/datarootdir/ {
13870  p
13871  q
13872}
13873/@datadir@/p
13874/@docdir@/p
13875/@infodir@/p
13876/@localedir@/p
13877/@mandir@/p'
13878case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13879*datarootdir*) ac_datarootdir_seen=yes;;
13880*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13881  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13882$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13883_ACEOF
13884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13885  ac_datarootdir_hack='
13886  s&@datadir@&$datadir&g
13887  s&@docdir@&$docdir&g
13888  s&@infodir@&$infodir&g
13889  s&@localedir@&$localedir&g
13890  s&@mandir@&$mandir&g
13891  s&\\\${datarootdir}&$datarootdir&g' ;;
13892esac
13893_ACEOF
13894
13895# Neutralize VPATH when `$srcdir' = `.'.
13896# Shell code in configure.ac might set extrasub.
13897# FIXME: do we really want to maintain this feature?
13898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899ac_sed_extra="$ac_vpsub
13900$extrasub
13901_ACEOF
13902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13903:t
13904/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13905s|@configure_input@|$ac_sed_conf_input|;t t
13906s&@top_builddir@&$ac_top_builddir_sub&;t t
13907s&@top_build_prefix@&$ac_top_build_prefix&;t t
13908s&@srcdir@&$ac_srcdir&;t t
13909s&@abs_srcdir@&$ac_abs_srcdir&;t t
13910s&@top_srcdir@&$ac_top_srcdir&;t t
13911s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13912s&@builddir@&$ac_builddir&;t t
13913s&@abs_builddir@&$ac_abs_builddir&;t t
13914s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13915s&@INSTALL@&$ac_INSTALL&;t t
13916s&@MKDIR_P@&$ac_MKDIR_P&;t t
13917$ac_datarootdir_hack
13918"
13919eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13920  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13921
13922test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13923  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13924  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13925      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13926  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13927which seems to be undefined.  Please make sure it is defined" >&5
13928$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13929which seems to be undefined.  Please make sure it is defined" >&2;}
13930
13931  rm -f "$ac_tmp/stdin"
13932  case $ac_file in
13933  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13934  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13935  esac \
13936  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13937 ;;
13938  :H)
13939  #
13940  # CONFIG_HEADER
13941  #
13942  if test x"$ac_file" != x-; then
13943    {
13944      $as_echo "/* $configure_input  */" \
13945      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13946    } >"$ac_tmp/config.h" \
13947      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13948    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13949      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13950$as_echo "$as_me: $ac_file is unchanged" >&6;}
13951    else
13952      rm -f "$ac_file"
13953      mv "$ac_tmp/config.h" "$ac_file" \
13954	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13955    fi
13956  else
13957    $as_echo "/* $configure_input  */" \
13958      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13959      || as_fn_error $? "could not create -" "$LINENO" 5
13960  fi
13961# Compute "$ac_file"'s index in $config_headers.
13962_am_arg="$ac_file"
13963_am_stamp_count=1
13964for _am_header in $config_headers :; do
13965  case $_am_header in
13966    $_am_arg | $_am_arg:* )
13967      break ;;
13968    * )
13969      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13970  esac
13971done
13972echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13973$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13974	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13975	 X"$_am_arg" : 'X\(//\)$' \| \
13976	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13977$as_echo X"$_am_arg" |
13978    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13979	    s//\1/
13980	    q
13981	  }
13982	  /^X\(\/\/\)[^/].*/{
13983	    s//\1/
13984	    q
13985	  }
13986	  /^X\(\/\/\)$/{
13987	    s//\1/
13988	    q
13989	  }
13990	  /^X\(\/\).*/{
13991	    s//\1/
13992	    q
13993	  }
13994	  s/.*/./; q'`/stamp-h$_am_stamp_count
13995 ;;
13996
13997  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13998$as_echo "$as_me: executing $ac_file commands" >&6;}
13999 ;;
14000  esac
14001
14002
14003  case $ac_file$ac_mode in
14004    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14005  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14006  # are listed without --file.  Let's play safe and only enable the eval
14007  # if we detect the quoting.
14008  case $CONFIG_FILES in
14009  *\'*) eval set x "$CONFIG_FILES" ;;
14010  *)   set x $CONFIG_FILES ;;
14011  esac
14012  shift
14013  for mf
14014  do
14015    # Strip MF so we end up with the name of the file.
14016    mf=`echo "$mf" | sed -e 's/:.*$//'`
14017    # Check whether this is an Automake generated Makefile or not.
14018    # We used to match only the files named `Makefile.in', but
14019    # some people rename them; so instead we look at the file content.
14020    # Grep'ing the first line is not enough: some people post-process
14021    # each Makefile.in and add a new line on top of each file to say so.
14022    # Grep'ing the whole file is not good either: AIX grep has a line
14023    # limit of 2048, but all sed's we know have understand at least 4000.
14024    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14025      dirpart=`$as_dirname -- "$mf" ||
14026$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14027	 X"$mf" : 'X\(//\)[^/]' \| \
14028	 X"$mf" : 'X\(//\)$' \| \
14029	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14030$as_echo X"$mf" |
14031    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14032	    s//\1/
14033	    q
14034	  }
14035	  /^X\(\/\/\)[^/].*/{
14036	    s//\1/
14037	    q
14038	  }
14039	  /^X\(\/\/\)$/{
14040	    s//\1/
14041	    q
14042	  }
14043	  /^X\(\/\).*/{
14044	    s//\1/
14045	    q
14046	  }
14047	  s/.*/./; q'`
14048    else
14049      continue
14050    fi
14051    # Extract the definition of DEPDIR, am__include, and am__quote
14052    # from the Makefile without running `make'.
14053    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14054    test -z "$DEPDIR" && continue
14055    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14056    test -z "am__include" && continue
14057    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14058    # When using ansi2knr, U may be empty or an underscore; expand it
14059    U=`sed -n 's/^U = //p' < "$mf"`
14060    # Find all dependency output files, they are included files with
14061    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14062    # simplest approach to changing $(DEPDIR) to its actual value in the
14063    # expansion.
14064    for file in `sed -n "
14065      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14066	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14067      # Make sure the directory exists.
14068      test -f "$dirpart/$file" && continue
14069      fdir=`$as_dirname -- "$file" ||
14070$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14071	 X"$file" : 'X\(//\)[^/]' \| \
14072	 X"$file" : 'X\(//\)$' \| \
14073	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14074$as_echo X"$file" |
14075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14076	    s//\1/
14077	    q
14078	  }
14079	  /^X\(\/\/\)[^/].*/{
14080	    s//\1/
14081	    q
14082	  }
14083	  /^X\(\/\/\)$/{
14084	    s//\1/
14085	    q
14086	  }
14087	  /^X\(\/\).*/{
14088	    s//\1/
14089	    q
14090	  }
14091	  s/.*/./; q'`
14092      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14093      # echo "creating $dirpart/$file"
14094      echo '# dummy' > "$dirpart/$file"
14095    done
14096  done
14097}
14098 ;;
14099    "libtool":C)
14100
14101    # See if we are running on zsh, and set the options which allow our
14102    # commands through without removal of \ escapes.
14103    if test -n "${ZSH_VERSION+set}" ; then
14104      setopt NO_GLOB_SUBST
14105    fi
14106
14107    cfgfile="${ofile}T"
14108    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14109    $RM "$cfgfile"
14110
14111    cat <<_LT_EOF >> "$cfgfile"
14112#! $SHELL
14113
14114# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14115# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14116# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14117# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14118#
14119#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14120#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14121#                 Inc.
14122#   Written by Gordon Matzigkeit, 1996
14123#
14124#   This file is part of GNU Libtool.
14125#
14126# GNU Libtool is free software; you can redistribute it and/or
14127# modify it under the terms of the GNU General Public License as
14128# published by the Free Software Foundation; either version 2 of
14129# the License, or (at your option) any later version.
14130#
14131# As a special exception to the GNU General Public License,
14132# if you distribute this file as part of a program or library that
14133# is built using GNU Libtool, you may include this file under the
14134# same distribution terms that you use for the rest of that program.
14135#
14136# GNU Libtool is distributed in the hope that it will be useful,
14137# but WITHOUT ANY WARRANTY; without even the implied warranty of
14138# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14139# GNU General Public License for more details.
14140#
14141# You should have received a copy of the GNU General Public License
14142# along with GNU Libtool; see the file COPYING.  If not, a copy
14143# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14144# obtained by writing to the Free Software Foundation, Inc.,
14145# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14146
14147
14148# The names of the tagged configurations supported by this script.
14149available_tags=""
14150
14151# ### BEGIN LIBTOOL CONFIG
14152
14153# Which release of libtool.m4 was used?
14154macro_version=$macro_version
14155macro_revision=$macro_revision
14156
14157# Whether or not to build shared libraries.
14158build_libtool_libs=$enable_shared
14159
14160# Whether or not to build static libraries.
14161build_old_libs=$enable_static
14162
14163# What type of objects to build.
14164pic_mode=$pic_mode
14165
14166# Whether or not to optimize for fast installation.
14167fast_install=$enable_fast_install
14168
14169# Shell to use when invoking shell scripts.
14170SHELL=$lt_SHELL
14171
14172# An echo program that protects backslashes.
14173ECHO=$lt_ECHO
14174
14175# The host system.
14176host_alias=$host_alias
14177host=$host
14178host_os=$host_os
14179
14180# The build system.
14181build_alias=$build_alias
14182build=$build
14183build_os=$build_os
14184
14185# A sed program that does not truncate output.
14186SED=$lt_SED
14187
14188# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14189Xsed="\$SED -e 1s/^X//"
14190
14191# A grep program that handles long lines.
14192GREP=$lt_GREP
14193
14194# An ERE matcher.
14195EGREP=$lt_EGREP
14196
14197# A literal string matcher.
14198FGREP=$lt_FGREP
14199
14200# A BSD- or MS-compatible name lister.
14201NM=$lt_NM
14202
14203# Whether we need soft or hard links.
14204LN_S=$lt_LN_S
14205
14206# What is the maximum length of a command?
14207max_cmd_len=$max_cmd_len
14208
14209# Object file suffix (normally "o").
14210objext=$ac_objext
14211
14212# Executable file suffix (normally "").
14213exeext=$exeext
14214
14215# whether the shell understands "unset".
14216lt_unset=$lt_unset
14217
14218# turn spaces into newlines.
14219SP2NL=$lt_lt_SP2NL
14220
14221# turn newlines into spaces.
14222NL2SP=$lt_lt_NL2SP
14223
14224# An object symbol dumper.
14225OBJDUMP=$lt_OBJDUMP
14226
14227# Method to check whether dependent libraries are shared objects.
14228deplibs_check_method=$lt_deplibs_check_method
14229
14230# Command to use when deplibs_check_method == "file_magic".
14231file_magic_cmd=$lt_file_magic_cmd
14232
14233# The archiver.
14234AR=$lt_AR
14235AR_FLAGS=$lt_AR_FLAGS
14236
14237# A symbol stripping program.
14238STRIP=$lt_STRIP
14239
14240# Commands used to install an old-style archive.
14241RANLIB=$lt_RANLIB
14242old_postinstall_cmds=$lt_old_postinstall_cmds
14243old_postuninstall_cmds=$lt_old_postuninstall_cmds
14244
14245# Whether to use a lock for old archive extraction.
14246lock_old_archive_extraction=$lock_old_archive_extraction
14247
14248# A C compiler.
14249LTCC=$lt_CC
14250
14251# LTCC compiler flags.
14252LTCFLAGS=$lt_CFLAGS
14253
14254# Take the output of nm and produce a listing of raw symbols and C names.
14255global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14256
14257# Transform the output of nm in a proper C declaration.
14258global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14259
14260# Transform the output of nm in a C name address pair.
14261global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14262
14263# Transform the output of nm in a C name address pair when lib prefix is needed.
14264global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14265
14266# The name of the directory that contains temporary libtool files.
14267objdir=$objdir
14268
14269# Used to examine libraries when file_magic_cmd begins with "file".
14270MAGIC_CMD=$MAGIC_CMD
14271
14272# Must we lock files when doing compilation?
14273need_locks=$lt_need_locks
14274
14275# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14276DSYMUTIL=$lt_DSYMUTIL
14277
14278# Tool to change global to local symbols on Mac OS X.
14279NMEDIT=$lt_NMEDIT
14280
14281# Tool to manipulate fat objects and archives on Mac OS X.
14282LIPO=$lt_LIPO
14283
14284# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14285OTOOL=$lt_OTOOL
14286
14287# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14288OTOOL64=$lt_OTOOL64
14289
14290# Old archive suffix (normally "a").
14291libext=$libext
14292
14293# Shared library suffix (normally ".so").
14294shrext_cmds=$lt_shrext_cmds
14295
14296# The commands to extract the exported symbol list from a shared archive.
14297extract_expsyms_cmds=$lt_extract_expsyms_cmds
14298
14299# Variables whose values should be saved in libtool wrapper scripts and
14300# restored at link time.
14301variables_saved_for_relink=$lt_variables_saved_for_relink
14302
14303# Do we need the "lib" prefix for modules?
14304need_lib_prefix=$need_lib_prefix
14305
14306# Do we need a version for libraries?
14307need_version=$need_version
14308
14309# Library versioning type.
14310version_type=$version_type
14311
14312# Shared library runtime path variable.
14313runpath_var=$runpath_var
14314
14315# Shared library path variable.
14316shlibpath_var=$shlibpath_var
14317
14318# Is shlibpath searched before the hard-coded library search path?
14319shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14320
14321# Format of library name prefix.
14322libname_spec=$lt_libname_spec
14323
14324# List of archive names.  First name is the real one, the rest are links.
14325# The last name is the one that the linker finds with -lNAME
14326library_names_spec=$lt_library_names_spec
14327
14328# The coded name of the library, if different from the real name.
14329soname_spec=$lt_soname_spec
14330
14331# Permission mode override for installation of shared libraries.
14332install_override_mode=$lt_install_override_mode
14333
14334# Command to use after installation of a shared archive.
14335postinstall_cmds=$lt_postinstall_cmds
14336
14337# Command to use after uninstallation of a shared archive.
14338postuninstall_cmds=$lt_postuninstall_cmds
14339
14340# Commands used to finish a libtool library installation in a directory.
14341finish_cmds=$lt_finish_cmds
14342
14343# As "finish_cmds", except a single script fragment to be evaled but
14344# not shown.
14345finish_eval=$lt_finish_eval
14346
14347# Whether we should hardcode library paths into libraries.
14348hardcode_into_libs=$hardcode_into_libs
14349
14350# Compile-time system search path for libraries.
14351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14352
14353# Run-time system search path for libraries.
14354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14355
14356# Whether dlopen is supported.
14357dlopen_support=$enable_dlopen
14358
14359# Whether dlopen of programs is supported.
14360dlopen_self=$enable_dlopen_self
14361
14362# Whether dlopen of statically linked programs is supported.
14363dlopen_self_static=$enable_dlopen_self_static
14364
14365# Commands to strip libraries.
14366old_striplib=$lt_old_striplib
14367striplib=$lt_striplib
14368
14369
14370# The linker used to build libraries.
14371LD=$lt_LD
14372
14373# How to create reloadable object files.
14374reload_flag=$lt_reload_flag
14375reload_cmds=$lt_reload_cmds
14376
14377# Commands used to build an old-style archive.
14378old_archive_cmds=$lt_old_archive_cmds
14379
14380# A language specific compiler.
14381CC=$lt_compiler
14382
14383# Is the compiler the GNU compiler?
14384with_gcc=$GCC
14385
14386# Compiler flag to turn off builtin functions.
14387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14388
14389# How to pass a linker flag through the compiler.
14390wl=$lt_lt_prog_compiler_wl
14391
14392# Additional compiler flags for building library objects.
14393pic_flag=$lt_lt_prog_compiler_pic
14394
14395# Compiler flag to prevent dynamic linking.
14396link_static_flag=$lt_lt_prog_compiler_static
14397
14398# Does compiler simultaneously support -c and -o options?
14399compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14400
14401# Whether or not to add -lc for building shared libraries.
14402build_libtool_need_lc=$archive_cmds_need_lc
14403
14404# Whether or not to disallow shared libs when runtime libs are static.
14405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14406
14407# Compiler flag to allow reflexive dlopens.
14408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14409
14410# Compiler flag to generate shared objects directly from archives.
14411whole_archive_flag_spec=$lt_whole_archive_flag_spec
14412
14413# Whether the compiler copes with passing no objects directly.
14414compiler_needs_object=$lt_compiler_needs_object
14415
14416# Create an old-style archive from a shared archive.
14417old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14418
14419# Create a temporary old-style archive to link instead of a shared archive.
14420old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14421
14422# Commands used to build a shared archive.
14423archive_cmds=$lt_archive_cmds
14424archive_expsym_cmds=$lt_archive_expsym_cmds
14425
14426# Commands used to build a loadable module if different from building
14427# a shared archive.
14428module_cmds=$lt_module_cmds
14429module_expsym_cmds=$lt_module_expsym_cmds
14430
14431# Whether we are building with GNU ld or not.
14432with_gnu_ld=$lt_with_gnu_ld
14433
14434# Flag that allows shared libraries with undefined symbols to be built.
14435allow_undefined_flag=$lt_allow_undefined_flag
14436
14437# Flag that enforces no undefined symbols.
14438no_undefined_flag=$lt_no_undefined_flag
14439
14440# Flag to hardcode \$libdir into a binary during linking.
14441# This must work even if \$libdir does not exist
14442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14443
14444# If ld is used when linking, flag to hardcode \$libdir into a binary
14445# during linking.  This must work even if \$libdir does not exist.
14446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14447
14448# Whether we need a single "-rpath" flag with a separated argument.
14449hardcode_libdir_separator=$lt_hardcode_libdir_separator
14450
14451# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14452# DIR into the resulting binary.
14453hardcode_direct=$hardcode_direct
14454
14455# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14456# DIR into the resulting binary and the resulting library dependency is
14457# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14458# library is relocated.
14459hardcode_direct_absolute=$hardcode_direct_absolute
14460
14461# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14462# into the resulting binary.
14463hardcode_minus_L=$hardcode_minus_L
14464
14465# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14466# into the resulting binary.
14467hardcode_shlibpath_var=$hardcode_shlibpath_var
14468
14469# Set to "yes" if building a shared library automatically hardcodes DIR
14470# into the library and all subsequent libraries and executables linked
14471# against it.
14472hardcode_automatic=$hardcode_automatic
14473
14474# Set to yes if linker adds runtime paths of dependent libraries
14475# to runtime path list.
14476inherit_rpath=$inherit_rpath
14477
14478# Whether libtool must link a program against all its dependency libraries.
14479link_all_deplibs=$link_all_deplibs
14480
14481# Fix the shell variable \$srcfile for the compiler.
14482fix_srcfile_path=$lt_fix_srcfile_path
14483
14484# Set to "yes" if exported symbols are required.
14485always_export_symbols=$always_export_symbols
14486
14487# The commands to list exported symbols.
14488export_symbols_cmds=$lt_export_symbols_cmds
14489
14490# Symbols that should not be listed in the preloaded symbols.
14491exclude_expsyms=$lt_exclude_expsyms
14492
14493# Symbols that must always be exported.
14494include_expsyms=$lt_include_expsyms
14495
14496# Commands necessary for linking programs (against libraries) with templates.
14497prelink_cmds=$lt_prelink_cmds
14498
14499# Specify filename containing input files.
14500file_list_spec=$lt_file_list_spec
14501
14502# How to hardcode a shared library path into an executable.
14503hardcode_action=$hardcode_action
14504
14505# ### END LIBTOOL CONFIG
14506
14507_LT_EOF
14508
14509  case $host_os in
14510  aix3*)
14511    cat <<\_LT_EOF >> "$cfgfile"
14512# AIX sometimes has problems with the GCC collect2 program.  For some
14513# reason, if we set the COLLECT_NAMES environment variable, the problems
14514# vanish in a puff of smoke.
14515if test "X${COLLECT_NAMES+set}" != Xset; then
14516  COLLECT_NAMES=
14517  export COLLECT_NAMES
14518fi
14519_LT_EOF
14520    ;;
14521  esac
14522
14523
14524ltmain="$ac_aux_dir/ltmain.sh"
14525
14526
14527  # We use sed instead of cat because bash on DJGPP gets confused if
14528  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14529  # text mode, it properly converts lines to CR/LF.  This bash problem
14530  # is reportedly fixed, but why not run on old versions too?
14531  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14532    || (rm -f "$cfgfile"; exit 1)
14533
14534  case $xsi_shell in
14535  yes)
14536    cat << \_LT_EOF >> "$cfgfile"
14537
14538# func_dirname file append nondir_replacement
14539# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14540# otherwise set result to NONDIR_REPLACEMENT.
14541func_dirname ()
14542{
14543  case ${1} in
14544    */*) func_dirname_result="${1%/*}${2}" ;;
14545    *  ) func_dirname_result="${3}" ;;
14546  esac
14547}
14548
14549# func_basename file
14550func_basename ()
14551{
14552  func_basename_result="${1##*/}"
14553}
14554
14555# func_dirname_and_basename file append nondir_replacement
14556# perform func_basename and func_dirname in a single function
14557# call:
14558#   dirname:  Compute the dirname of FILE.  If nonempty,
14559#             add APPEND to the result, otherwise set result
14560#             to NONDIR_REPLACEMENT.
14561#             value returned in "$func_dirname_result"
14562#   basename: Compute filename of FILE.
14563#             value retuned in "$func_basename_result"
14564# Implementation must be kept synchronized with func_dirname
14565# and func_basename. For efficiency, we do not delegate to
14566# those functions but instead duplicate the functionality here.
14567func_dirname_and_basename ()
14568{
14569  case ${1} in
14570    */*) func_dirname_result="${1%/*}${2}" ;;
14571    *  ) func_dirname_result="${3}" ;;
14572  esac
14573  func_basename_result="${1##*/}"
14574}
14575
14576# func_stripname prefix suffix name
14577# strip PREFIX and SUFFIX off of NAME.
14578# PREFIX and SUFFIX must not contain globbing or regex special
14579# characters, hashes, percent signs, but SUFFIX may contain a leading
14580# dot (in which case that matches only a dot).
14581func_stripname ()
14582{
14583  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14584  # positional parameters, so assign one to ordinary parameter first.
14585  func_stripname_result=${3}
14586  func_stripname_result=${func_stripname_result#"${1}"}
14587  func_stripname_result=${func_stripname_result%"${2}"}
14588}
14589
14590# func_opt_split
14591func_opt_split ()
14592{
14593  func_opt_split_opt=${1%%=*}
14594  func_opt_split_arg=${1#*=}
14595}
14596
14597# func_lo2o object
14598func_lo2o ()
14599{
14600  case ${1} in
14601    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14602    *)    func_lo2o_result=${1} ;;
14603  esac
14604}
14605
14606# func_xform libobj-or-source
14607func_xform ()
14608{
14609  func_xform_result=${1%.*}.lo
14610}
14611
14612# func_arith arithmetic-term...
14613func_arith ()
14614{
14615  func_arith_result=$(( $* ))
14616}
14617
14618# func_len string
14619# STRING may not start with a hyphen.
14620func_len ()
14621{
14622  func_len_result=${#1}
14623}
14624
14625_LT_EOF
14626    ;;
14627  *) # Bourne compatible functions.
14628    cat << \_LT_EOF >> "$cfgfile"
14629
14630# func_dirname file append nondir_replacement
14631# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14632# otherwise set result to NONDIR_REPLACEMENT.
14633func_dirname ()
14634{
14635  # Extract subdirectory from the argument.
14636  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14637  if test "X$func_dirname_result" = "X${1}"; then
14638    func_dirname_result="${3}"
14639  else
14640    func_dirname_result="$func_dirname_result${2}"
14641  fi
14642}
14643
14644# func_basename file
14645func_basename ()
14646{
14647  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14648}
14649
14650
14651# func_stripname prefix suffix name
14652# strip PREFIX and SUFFIX off of NAME.
14653# PREFIX and SUFFIX must not contain globbing or regex special
14654# characters, hashes, percent signs, but SUFFIX may contain a leading
14655# dot (in which case that matches only a dot).
14656# func_strip_suffix prefix name
14657func_stripname ()
14658{
14659  case ${2} in
14660    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14661    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14662  esac
14663}
14664
14665# sed scripts:
14666my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14667my_sed_long_arg='1s/^-[^=]*=//'
14668
14669# func_opt_split
14670func_opt_split ()
14671{
14672  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14673  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14674}
14675
14676# func_lo2o object
14677func_lo2o ()
14678{
14679  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14680}
14681
14682# func_xform libobj-or-source
14683func_xform ()
14684{
14685  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14686}
14687
14688# func_arith arithmetic-term...
14689func_arith ()
14690{
14691  func_arith_result=`expr "$@"`
14692}
14693
14694# func_len string
14695# STRING may not start with a hyphen.
14696func_len ()
14697{
14698  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14699}
14700
14701_LT_EOF
14702esac
14703
14704case $lt_shell_append in
14705  yes)
14706    cat << \_LT_EOF >> "$cfgfile"
14707
14708# func_append var value
14709# Append VALUE to the end of shell variable VAR.
14710func_append ()
14711{
14712  eval "$1+=\$2"
14713}
14714_LT_EOF
14715    ;;
14716  *)
14717    cat << \_LT_EOF >> "$cfgfile"
14718
14719# func_append var value
14720# Append VALUE to the end of shell variable VAR.
14721func_append ()
14722{
14723  eval "$1=\$$1\$2"
14724}
14725
14726_LT_EOF
14727    ;;
14728  esac
14729
14730
14731  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14732    || (rm -f "$cfgfile"; exit 1)
14733
14734  mv -f "$cfgfile" "$ofile" ||
14735    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14736  chmod +x "$ofile"
14737
14738 ;;
14739
14740  esac
14741done # for ac_tag
14742
14743
14744as_fn_exit 0
14745_ACEOF
14746ac_clean_files=$ac_clean_files_save
14747
14748test $ac_write_fail = 0 ||
14749  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14750
14751
14752# configure is writing to config.log, and then calls config.status.
14753# config.status does its own redirection, appending to config.log.
14754# Unfortunately, on DOS this fails, as config.log is still kept open
14755# by configure, so config.status won't be able to write to it; its
14756# output is simply discarded.  So we exec the FD to /dev/null,
14757# effectively closing config.log, so it can be properly (re)opened and
14758# appended to by config.status.  When coming back to configure, we
14759# need to make the FD available again.
14760if test "$no_create" != yes; then
14761  ac_cs_success=:
14762  ac_config_status_args=
14763  test "$silent" = yes &&
14764    ac_config_status_args="$ac_config_status_args --quiet"
14765  exec 5>/dev/null
14766  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14767  exec 5>>config.log
14768  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14769  # would make configure fail if this is the last instruction.
14770  $ac_cs_success || as_fn_exit 1
14771fi
14772if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14773  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14774$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14775fi
14776
14777