configure revision f353fbad
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXaw 1.0.9.
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='libXaw'
633PACKAGE_TARNAME='libXaw'
634PACKAGE_VERSION='1.0.9'
635PACKAGE_STRING='libXaw 1.0.9'
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
680BUILD_XAW7_FALSE
681BUILD_XAW7_TRUE
682BUILD_XAW6_FALSE
683BUILD_XAW6_TRUE
684XAW7_LIBS
685XAW7_CFLAGS
686XAW6_LIBS
687XAW6_CFLAGS
688PLATFORM_DARWIN_FALSE
689PLATFORM_DARWIN_TRUE
690PLATFORM_WIN32_FALSE
691PLATFORM_WIN32_TRUE
692LIBEXT
693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698MANIFEST_TOOL
699RANLIB
700ac_ct_AR
701AR
702DLLTOOL
703OBJDUMP
704LN_S
705NM
706ac_ct_DUMPBIN
707DUMPBIN
708LD
709FGREP
710LIBTOOL
711HAVE_STYLESHEETS_FALSE
712HAVE_STYLESHEETS_TRUE
713XSL_STYLESHEET
714STYLESHEET_SRCDIR
715XORG_SGML_PATH
716HAVE_FOP_FALSE
717HAVE_FOP_TRUE
718FOP
719HAVE_XMLTO_FALSE
720HAVE_XMLTO_TRUE
721HAVE_XMLTO_TEXT_FALSE
722HAVE_XMLTO_TEXT_TRUE
723XMLTO
724ENABLE_SPECS_FALSE
725ENABLE_SPECS_TRUE
726AM_BACKSLASH
727AM_DEFAULT_VERBOSITY
728MAN_SUBSTS
729XORG_MAN_PAGE
730ADMIN_MAN_DIR
731DRIVER_MAN_DIR
732MISC_MAN_DIR
733FILE_MAN_DIR
734LIB_MAN_DIR
735APP_MAN_DIR
736ADMIN_MAN_SUFFIX
737DRIVER_MAN_SUFFIX
738MISC_MAN_SUFFIX
739FILE_MAN_SUFFIX
740LIB_MAN_SUFFIX
741APP_MAN_SUFFIX
742SED
743host_os
744host_vendor
745host_cpu
746host
747build_os
748build_vendor
749build_cpu
750build
751INSTALL_CMD
752PKG_CONFIG
753CHANGELOG_CMD
754CWARNFLAGS
755EGREP
756GREP
757CPP
758am__fastdepCC_FALSE
759am__fastdepCC_TRUE
760CCDEPMODE
761AMDEPBACKSLASH
762AMDEP_FALSE
763AMDEP_TRUE
764am__quote
765am__include
766DEPDIR
767OBJEXT
768EXEEXT
769ac_ct_CC
770CPPFLAGS
771LDFLAGS
772CFLAGS
773CC
774MAINT
775MAINTAINER_MODE_FALSE
776MAINTAINER_MODE_TRUE
777am__untar
778am__tar
779AMTAR
780am__leading_dot
781SET_MAKE
782AWK
783mkdir_p
784MKDIR_P
785INSTALL_STRIP_PROGRAM
786STRIP
787install_sh
788MAKEINFO
789AUTOHEADER
790AUTOMAKE
791AUTOCONF
792ACLOCAL
793VERSION
794PACKAGE
795CYGPATH_W
796am__isrc
797INSTALL_DATA
798INSTALL_SCRIPT
799INSTALL_PROGRAM
800target_alias
801host_alias
802build_alias
803LIBS
804ECHO_T
805ECHO_N
806ECHO_C
807DEFS
808mandir
809localedir
810libdir
811psdir
812pdfdir
813dvidir
814htmldir
815infodir
816docdir
817oldincludedir
818includedir
819localstatedir
820sharedstatedir
821sysconfdir
822datadir
823datarootdir
824libexecdir
825sbindir
826bindir
827program_transform_name
828prefix
829exec_prefix
830PACKAGE_URL
831PACKAGE_BUGREPORT
832PACKAGE_STRING
833PACKAGE_VERSION
834PACKAGE_TARNAME
835PACKAGE_NAME
836PATH_SEPARATOR
837SHELL'
838ac_subst_files=''
839ac_user_opts='
840enable_option_checking
841enable_maintainer_mode
842enable_dependency_tracking
843enable_strict_compilation
844enable_silent_rules
845enable_specs
846with_xmlto
847with_fop
848enable_shared
849enable_static
850with_pic
851enable_fast_install
852with_gnu_ld
853with_sysroot
854enable_libtool_lock
855enable_xaw6
856enable_xaw7
857'
858      ac_precious_vars='build_alias
859host_alias
860target_alias
861CC
862CFLAGS
863LDFLAGS
864LIBS
865CPPFLAGS
866CPP
867PKG_CONFIG
868XMLTO
869FOP
870XAW6_CFLAGS
871XAW6_LIBS
872XAW7_CFLAGS
873XAW7_LIBS'
874
875
876# Initialize some variables set by options.
877ac_init_help=
878ac_init_version=false
879ac_unrecognized_opts=
880ac_unrecognized_sep=
881# The variables have the same names as the options, with
882# dashes changed to underlines.
883cache_file=/dev/null
884exec_prefix=NONE
885no_create=
886no_recursion=
887prefix=NONE
888program_prefix=NONE
889program_suffix=NONE
890program_transform_name=s,x,x,
891silent=
892site=
893srcdir=
894verbose=
895x_includes=NONE
896x_libraries=NONE
897
898# Installation directory options.
899# These are left unexpanded so users can "make install exec_prefix=/foo"
900# and all the variables that are supposed to be based on exec_prefix
901# by default will actually change.
902# Use braces instead of parens because sh, perl, etc. also accept them.
903# (The list follows the same order as the GNU Coding Standards.)
904bindir='${exec_prefix}/bin'
905sbindir='${exec_prefix}/sbin'
906libexecdir='${exec_prefix}/libexec'
907datarootdir='${prefix}/share'
908datadir='${datarootdir}'
909sysconfdir='${prefix}/etc'
910sharedstatedir='${prefix}/com'
911localstatedir='${prefix}/var'
912includedir='${prefix}/include'
913oldincludedir='/usr/include'
914docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
915infodir='${datarootdir}/info'
916htmldir='${docdir}'
917dvidir='${docdir}'
918pdfdir='${docdir}'
919psdir='${docdir}'
920libdir='${exec_prefix}/lib'
921localedir='${datarootdir}/locale'
922mandir='${datarootdir}/man'
923
924ac_prev=
925ac_dashdash=
926for ac_option
927do
928  # If the previous option needs an argument, assign it.
929  if test -n "$ac_prev"; then
930    eval $ac_prev=\$ac_option
931    ac_prev=
932    continue
933  fi
934
935  case $ac_option in
936  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937  *=)   ac_optarg= ;;
938  *)    ac_optarg=yes ;;
939  esac
940
941  # Accept the important Cygnus configure options, so we can diagnose typos.
942
943  case $ac_dashdash$ac_option in
944  --)
945    ac_dashdash=yes ;;
946
947  -bindir | --bindir | --bindi | --bind | --bin | --bi)
948    ac_prev=bindir ;;
949  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950    bindir=$ac_optarg ;;
951
952  -build | --build | --buil | --bui | --bu)
953    ac_prev=build_alias ;;
954  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955    build_alias=$ac_optarg ;;
956
957  -cache-file | --cache-file | --cache-fil | --cache-fi \
958  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959    ac_prev=cache_file ;;
960  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962    cache_file=$ac_optarg ;;
963
964  --config-cache | -C)
965    cache_file=config.cache ;;
966
967  -datadir | --datadir | --datadi | --datad)
968    ac_prev=datadir ;;
969  -datadir=* | --datadir=* | --datadi=* | --datad=*)
970    datadir=$ac_optarg ;;
971
972  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973  | --dataroo | --dataro | --datar)
974    ac_prev=datarootdir ;;
975  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977    datarootdir=$ac_optarg ;;
978
979  -disable-* | --disable-*)
980    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981    # Reject names that are not valid shell variable names.
982    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983      as_fn_error $? "invalid feature name: $ac_useropt"
984    ac_useropt_orig=$ac_useropt
985    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986    case $ac_user_opts in
987      *"
988"enable_$ac_useropt"
989"*) ;;
990      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991	 ac_unrecognized_sep=', ';;
992    esac
993    eval enable_$ac_useropt=no ;;
994
995  -docdir | --docdir | --docdi | --doc | --do)
996    ac_prev=docdir ;;
997  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998    docdir=$ac_optarg ;;
999
1000  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001    ac_prev=dvidir ;;
1002  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003    dvidir=$ac_optarg ;;
1004
1005  -enable-* | --enable-*)
1006    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007    # Reject names that are not valid shell variable names.
1008    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009      as_fn_error $? "invalid feature name: $ac_useropt"
1010    ac_useropt_orig=$ac_useropt
1011    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012    case $ac_user_opts in
1013      *"
1014"enable_$ac_useropt"
1015"*) ;;
1016      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017	 ac_unrecognized_sep=', ';;
1018    esac
1019    eval enable_$ac_useropt=\$ac_optarg ;;
1020
1021  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023  | --exec | --exe | --ex)
1024    ac_prev=exec_prefix ;;
1025  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027  | --exec=* | --exe=* | --ex=*)
1028    exec_prefix=$ac_optarg ;;
1029
1030  -gas | --gas | --ga | --g)
1031    # Obsolete; use --with-gas.
1032    with_gas=yes ;;
1033
1034  -help | --help | --hel | --he | -h)
1035    ac_init_help=long ;;
1036  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037    ac_init_help=recursive ;;
1038  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039    ac_init_help=short ;;
1040
1041  -host | --host | --hos | --ho)
1042    ac_prev=host_alias ;;
1043  -host=* | --host=* | --hos=* | --ho=*)
1044    host_alias=$ac_optarg ;;
1045
1046  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047    ac_prev=htmldir ;;
1048  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049  | --ht=*)
1050    htmldir=$ac_optarg ;;
1051
1052  -includedir | --includedir | --includedi | --included | --include \
1053  | --includ | --inclu | --incl | --inc)
1054    ac_prev=includedir ;;
1055  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056  | --includ=* | --inclu=* | --incl=* | --inc=*)
1057    includedir=$ac_optarg ;;
1058
1059  -infodir | --infodir | --infodi | --infod | --info | --inf)
1060    ac_prev=infodir ;;
1061  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062    infodir=$ac_optarg ;;
1063
1064  -libdir | --libdir | --libdi | --libd)
1065    ac_prev=libdir ;;
1066  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067    libdir=$ac_optarg ;;
1068
1069  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070  | --libexe | --libex | --libe)
1071    ac_prev=libexecdir ;;
1072  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073  | --libexe=* | --libex=* | --libe=*)
1074    libexecdir=$ac_optarg ;;
1075
1076  -localedir | --localedir | --localedi | --localed | --locale)
1077    ac_prev=localedir ;;
1078  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079    localedir=$ac_optarg ;;
1080
1081  -localstatedir | --localstatedir | --localstatedi | --localstated \
1082  | --localstate | --localstat | --localsta | --localst | --locals)
1083    ac_prev=localstatedir ;;
1084  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086    localstatedir=$ac_optarg ;;
1087
1088  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089    ac_prev=mandir ;;
1090  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091    mandir=$ac_optarg ;;
1092
1093  -nfp | --nfp | --nf)
1094    # Obsolete; use --without-fp.
1095    with_fp=no ;;
1096
1097  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098  | --no-cr | --no-c | -n)
1099    no_create=yes ;;
1100
1101  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103    no_recursion=yes ;;
1104
1105  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107  | --oldin | --oldi | --old | --ol | --o)
1108    ac_prev=oldincludedir ;;
1109  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112    oldincludedir=$ac_optarg ;;
1113
1114  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115    ac_prev=prefix ;;
1116  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117    prefix=$ac_optarg ;;
1118
1119  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120  | --program-pre | --program-pr | --program-p)
1121    ac_prev=program_prefix ;;
1122  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124    program_prefix=$ac_optarg ;;
1125
1126  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127  | --program-suf | --program-su | --program-s)
1128    ac_prev=program_suffix ;;
1129  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131    program_suffix=$ac_optarg ;;
1132
1133  -program-transform-name | --program-transform-name \
1134  | --program-transform-nam | --program-transform-na \
1135  | --program-transform-n | --program-transform- \
1136  | --program-transform | --program-transfor \
1137  | --program-transfo | --program-transf \
1138  | --program-trans | --program-tran \
1139  | --progr-tra | --program-tr | --program-t)
1140    ac_prev=program_transform_name ;;
1141  -program-transform-name=* | --program-transform-name=* \
1142  | --program-transform-nam=* | --program-transform-na=* \
1143  | --program-transform-n=* | --program-transform-=* \
1144  | --program-transform=* | --program-transfor=* \
1145  | --program-transfo=* | --program-transf=* \
1146  | --program-trans=* | --program-tran=* \
1147  | --progr-tra=* | --program-tr=* | --program-t=*)
1148    program_transform_name=$ac_optarg ;;
1149
1150  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151    ac_prev=pdfdir ;;
1152  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153    pdfdir=$ac_optarg ;;
1154
1155  -psdir | --psdir | --psdi | --psd | --ps)
1156    ac_prev=psdir ;;
1157  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158    psdir=$ac_optarg ;;
1159
1160  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161  | -silent | --silent | --silen | --sile | --sil)
1162    silent=yes ;;
1163
1164  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165    ac_prev=sbindir ;;
1166  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167  | --sbi=* | --sb=*)
1168    sbindir=$ac_optarg ;;
1169
1170  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172  | --sharedst | --shareds | --shared | --share | --shar \
1173  | --sha | --sh)
1174    ac_prev=sharedstatedir ;;
1175  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178  | --sha=* | --sh=*)
1179    sharedstatedir=$ac_optarg ;;
1180
1181  -site | --site | --sit)
1182    ac_prev=site ;;
1183  -site=* | --site=* | --sit=*)
1184    site=$ac_optarg ;;
1185
1186  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187    ac_prev=srcdir ;;
1188  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189    srcdir=$ac_optarg ;;
1190
1191  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192  | --syscon | --sysco | --sysc | --sys | --sy)
1193    ac_prev=sysconfdir ;;
1194  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196    sysconfdir=$ac_optarg ;;
1197
1198  -target | --target | --targe | --targ | --tar | --ta | --t)
1199    ac_prev=target_alias ;;
1200  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201    target_alias=$ac_optarg ;;
1202
1203  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204    verbose=yes ;;
1205
1206  -version | --version | --versio | --versi | --vers | -V)
1207    ac_init_version=: ;;
1208
1209  -with-* | --with-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      as_fn_error $? "invalid package name: $ac_useropt"
1214    ac_useropt_orig=$ac_useropt
1215    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216    case $ac_user_opts in
1217      *"
1218"with_$ac_useropt"
1219"*) ;;
1220      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221	 ac_unrecognized_sep=', ';;
1222    esac
1223    eval with_$ac_useropt=\$ac_optarg ;;
1224
1225  -without-* | --without-*)
1226    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227    # Reject names that are not valid shell variable names.
1228    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229      as_fn_error $? "invalid package name: $ac_useropt"
1230    ac_useropt_orig=$ac_useropt
1231    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232    case $ac_user_opts in
1233      *"
1234"with_$ac_useropt"
1235"*) ;;
1236      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237	 ac_unrecognized_sep=', ';;
1238    esac
1239    eval with_$ac_useropt=no ;;
1240
1241  --x)
1242    # Obsolete; use --with-x.
1243    with_x=yes ;;
1244
1245  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246  | --x-incl | --x-inc | --x-in | --x-i)
1247    ac_prev=x_includes ;;
1248  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250    x_includes=$ac_optarg ;;
1251
1252  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254    ac_prev=x_libraries ;;
1255  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257    x_libraries=$ac_optarg ;;
1258
1259  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260Try \`$0 --help' for more information"
1261    ;;
1262
1263  *=*)
1264    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265    # Reject names that are not valid shell variable names.
1266    case $ac_envvar in #(
1267      '' | [0-9]* | *[!_$as_cr_alnum]* )
1268      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269    esac
1270    eval $ac_envvar=\$ac_optarg
1271    export $ac_envvar ;;
1272
1273  *)
1274    # FIXME: should be removed in autoconf 3.0.
1275    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279    ;;
1280
1281  esac
1282done
1283
1284if test -n "$ac_prev"; then
1285  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286  as_fn_error $? "missing argument to $ac_option"
1287fi
1288
1289if test -n "$ac_unrecognized_opts"; then
1290  case $enable_option_checking in
1291    no) ;;
1292    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294  esac
1295fi
1296
1297# Check all directory arguments for consistency.
1298for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299		datadir sysconfdir sharedstatedir localstatedir includedir \
1300		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301		libdir localedir mandir
1302do
1303  eval ac_val=\$$ac_var
1304  # Remove trailing slashes.
1305  case $ac_val in
1306    */ )
1307      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308      eval $ac_var=\$ac_val;;
1309  esac
1310  # Be sure to have absolute directory names.
1311  case $ac_val in
1312    [\\/$]* | ?:[\\/]* )  continue;;
1313    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314  esac
1315  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316done
1317
1318# There might be people who depend on the old broken behavior: `$host'
1319# used to hold the argument of --host etc.
1320# FIXME: To remove some day.
1321build=$build_alias
1322host=$host_alias
1323target=$target_alias
1324
1325# FIXME: To remove some day.
1326if test "x$host_alias" != x; then
1327  if test "x$build_alias" = x; then
1328    cross_compiling=maybe
1329    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1330    If a cross compiler is detected then cross compile mode will be used" >&2
1331  elif test "x$build_alias" != "x$host_alias"; then
1332    cross_compiling=yes
1333  fi
1334fi
1335
1336ac_tool_prefix=
1337test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339test "$silent" = yes && exec 6>/dev/null
1340
1341
1342ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343ac_ls_di=`ls -di .` &&
1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345  as_fn_error $? "working directory cannot be determined"
1346test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347  as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350# Find the source files, if location was not specified.
1351if test -z "$srcdir"; then
1352  ac_srcdir_defaulted=yes
1353  # Try the directory containing this script, then the parent directory.
1354  ac_confdir=`$as_dirname -- "$as_myself" ||
1355$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356	 X"$as_myself" : 'X\(//\)[^/]' \| \
1357	 X"$as_myself" : 'X\(//\)$' \| \
1358	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359$as_echo X"$as_myself" |
1360    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\/\)[^/].*/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\/\)$/{
1369	    s//\1/
1370	    q
1371	  }
1372	  /^X\(\/\).*/{
1373	    s//\1/
1374	    q
1375	  }
1376	  s/.*/./; q'`
1377  srcdir=$ac_confdir
1378  if test ! -r "$srcdir/$ac_unique_file"; then
1379    srcdir=..
1380  fi
1381else
1382  ac_srcdir_defaulted=no
1383fi
1384if test ! -r "$srcdir/$ac_unique_file"; then
1385  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387fi
1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389ac_abs_confdir=`(
1390	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391	pwd)`
1392# When building in place, set srcdir=.
1393if test "$ac_abs_confdir" = "$ac_pwd"; then
1394  srcdir=.
1395fi
1396# Remove unnecessary trailing slashes from srcdir.
1397# Double slashes in file names in object file debugging info
1398# mess up M-x gdb in Emacs.
1399case $srcdir in
1400*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401esac
1402for ac_var in $ac_precious_vars; do
1403  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404  eval ac_env_${ac_var}_value=\$${ac_var}
1405  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407done
1408
1409#
1410# Report the --help message.
1411#
1412if test "$ac_init_help" = "long"; then
1413  # Omit some internal or obsolete options to make the list less imposing.
1414  # This message is too long to be a string in the A/UX 3.1 sh.
1415  cat <<_ACEOF
1416\`configure' configures libXaw 1.0.9 to adapt to many kinds of systems.
1417
1418Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423Defaults for the options are specified in brackets.
1424
1425Configuration:
1426  -h, --help              display this help and exit
1427      --help=short        display options specific to this package
1428      --help=recursive    display the short help of all the included packages
1429  -V, --version           display version information and exit
1430  -q, --quiet, --silent   do not print \`checking ...' messages
1431      --cache-file=FILE   cache test results in FILE [disabled]
1432  -C, --config-cache      alias for \`--cache-file=config.cache'
1433  -n, --no-create         do not create output files
1434      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436Installation directories:
1437  --prefix=PREFIX         install architecture-independent files in PREFIX
1438                          [$ac_default_prefix]
1439  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                          [PREFIX]
1441
1442By default, \`make install' will install all the files in
1443\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445for instance \`--prefix=\$HOME'.
1446
1447For better control, use the options below.
1448
1449Fine tuning of the installation directories:
1450  --bindir=DIR            user executables [EPREFIX/bin]
1451  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1452  --libexecdir=DIR        program executables [EPREFIX/libexec]
1453  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1454  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1455  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1456  --libdir=DIR            object code libraries [EPREFIX/lib]
1457  --includedir=DIR        C header files [PREFIX/include]
1458  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461  --infodir=DIR           info documentation [DATAROOTDIR/info]
1462  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463  --mandir=DIR            man documentation [DATAROOTDIR/man]
1464  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXaw]
1465  --htmldir=DIR           html documentation [DOCDIR]
1466  --dvidir=DIR            dvi documentation [DOCDIR]
1467  --pdfdir=DIR            pdf documentation [DOCDIR]
1468  --psdir=DIR             ps documentation [DOCDIR]
1469_ACEOF
1470
1471  cat <<\_ACEOF
1472
1473Program names:
1474  --program-prefix=PREFIX            prepend PREFIX to installed program names
1475  --program-suffix=SUFFIX            append SUFFIX to installed program names
1476  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477
1478System types:
1479  --build=BUILD     configure for building on BUILD [guessed]
1480  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485  case $ac_init_help in
1486     short | recursive ) echo "Configuration of libXaw 1.0.9:";;
1487   esac
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-option-checking  ignore unrecognized --enable/--with options
1492  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1493  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1494  --enable-maintainer-mode  enable make rules and dependencies not useful
1495			  (and sometimes confusing) to the casual installer
1496  --disable-dependency-tracking  speeds up one-time build
1497  --enable-dependency-tracking   do not reject slow dependency extractors
1498  --enable-strict-compilation
1499                          Enable all warnings from compiler and make them
1500                          errors (default: disabled)
1501  --enable-silent-rules          less verbose build output (undo: `make V=1')
1502  --disable-silent-rules         verbose build output (undo: `make V=0')
1503  --enable-specs          Enable building the specs (default: yes)
1504  --enable-shared[=PKGS]  build shared libraries [default=yes]
1505  --enable-static[=PKGS]  build static libraries [default=yes]
1506  --enable-fast-install[=PKGS]
1507                          optimize for fast installation [default=yes]
1508  --disable-libtool-lock  avoid locking (might break parallel builds)
1509  --disable-xaw6          Disable building of libXaw.so.6
1510  --disable-xaw7          Disable building of libXaw.so.7
1511
1512Optional Packages:
1513  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1514  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1515  --with-xmlto            Use xmlto to regenerate documentation (default:
1516                          auto)
1517  --with-fop              Use fop to regenerate documentation (default: auto)
1518  --with-pic              try to use only PIC/non-PIC objects [default=use
1519                          both]
1520  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521  --with-sysroot=DIR Search for dependent libraries within DIR
1522                        (or the compiler's sysroot if not specified).
1523
1524Some influential environment variables:
1525  CC          C compiler command
1526  CFLAGS      C compiler flags
1527  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1528              nonstandard directory <lib dir>
1529  LIBS        libraries to pass to the linker, e.g. -l<library>
1530  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531              you have headers in a nonstandard directory <include dir>
1532  CPP         C preprocessor
1533  PKG_CONFIG  path to pkg-config utility
1534  XMLTO       Path to xmlto command
1535  FOP         Path to fop command
1536  XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config
1537  XAW6_LIBS   linker flags for XAW6, overriding pkg-config
1538  XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config
1539  XAW7_LIBS   linker flags for XAW7, overriding pkg-config
1540
1541Use these variables to override the choices made by `configure' or to help
1542it to find libraries and programs with nonstandard names/locations.
1543
1544Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1545_ACEOF
1546ac_status=$?
1547fi
1548
1549if test "$ac_init_help" = "recursive"; then
1550  # If there are subdirs, report their specific --help.
1551  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552    test -d "$ac_dir" ||
1553      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554      continue
1555    ac_builddir=.
1556
1557case "$ac_dir" in
1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559*)
1560  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561  # A ".." for each directory in $ac_dir_suffix.
1562  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563  case $ac_top_builddir_sub in
1564  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566  esac ;;
1567esac
1568ac_abs_top_builddir=$ac_pwd
1569ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570# for backward compatibility:
1571ac_top_builddir=$ac_top_build_prefix
1572
1573case $srcdir in
1574  .)  # We are building in place.
1575    ac_srcdir=.
1576    ac_top_srcdir=$ac_top_builddir_sub
1577    ac_abs_top_srcdir=$ac_pwd ;;
1578  [\\/]* | ?:[\\/]* )  # Absolute name.
1579    ac_srcdir=$srcdir$ac_dir_suffix;
1580    ac_top_srcdir=$srcdir
1581    ac_abs_top_srcdir=$srcdir ;;
1582  *) # Relative name.
1583    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584    ac_top_srcdir=$ac_top_build_prefix$srcdir
1585    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586esac
1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589    cd "$ac_dir" || { ac_status=$?; continue; }
1590    # Check for guested configure.
1591    if test -f "$ac_srcdir/configure.gnu"; then
1592      echo &&
1593      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594    elif test -f "$ac_srcdir/configure"; then
1595      echo &&
1596      $SHELL "$ac_srcdir/configure" --help=recursive
1597    else
1598      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599    fi || ac_status=$?
1600    cd "$ac_pwd" || { ac_status=$?; break; }
1601  done
1602fi
1603
1604test -n "$ac_init_help" && exit $ac_status
1605if $ac_init_version; then
1606  cat <<\_ACEOF
1607libXaw configure 1.0.9
1608generated by GNU Autoconf 2.68
1609
1610Copyright (C) 2010 Free Software Foundation, Inc.
1611This configure script is free software; the Free Software Foundation
1612gives unlimited permission to copy, distribute and modify it.
1613_ACEOF
1614  exit
1615fi
1616
1617## ------------------------ ##
1618## Autoconf initialization. ##
1619## ------------------------ ##
1620
1621# ac_fn_c_try_compile LINENO
1622# --------------------------
1623# Try to compile conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_c_try_compile ()
1625{
1626  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627  rm -f conftest.$ac_objext
1628  if { { ac_try="$ac_compile"
1629case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_compile") 2>conftest.err
1636  ac_status=$?
1637  if test -s conftest.err; then
1638    grep -v '^ *+' conftest.err >conftest.er1
1639    cat conftest.er1 >&5
1640    mv -f conftest.er1 conftest.err
1641  fi
1642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643  test $ac_status = 0; } && {
1644	 test -z "$ac_c_werror_flag" ||
1645	 test ! -s conftest.err
1646       } && test -s conftest.$ac_objext; then :
1647  ac_retval=0
1648else
1649  $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652	ac_retval=1
1653fi
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655  as_fn_set_status $ac_retval
1656
1657} # ac_fn_c_try_compile
1658
1659# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1660# ---------------------------------------------
1661# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1662# accordingly.
1663ac_fn_c_check_decl ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  as_decl_name=`echo $2|sed 's/ *(.*//'`
1667  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1669$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1670if eval \${$3+:} false; then :
1671  $as_echo_n "(cached) " >&6
1672else
1673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h.  */
1675$4
1676int
1677main ()
1678{
1679#ifndef $as_decl_name
1680#ifdef __cplusplus
1681  (void) $as_decl_use;
1682#else
1683  (void) $as_decl_name;
1684#endif
1685#endif
1686
1687  ;
1688  return 0;
1689}
1690_ACEOF
1691if ac_fn_c_try_compile "$LINENO"; then :
1692  eval "$3=yes"
1693else
1694  eval "$3=no"
1695fi
1696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697fi
1698eval ac_res=\$$3
1699	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700$as_echo "$ac_res" >&6; }
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702
1703} # ac_fn_c_check_decl
1704
1705# ac_fn_c_try_cpp LINENO
1706# ----------------------
1707# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_cpp ()
1709{
1710  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711  if { { ac_try="$ac_cpp conftest.$ac_ext"
1712case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719  ac_status=$?
1720  if test -s conftest.err; then
1721    grep -v '^ *+' conftest.err >conftest.er1
1722    cat conftest.er1 >&5
1723    mv -f conftest.er1 conftest.err
1724  fi
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; } > conftest.i && {
1727	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728	 test ! -s conftest.err
1729       }; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735    ac_retval=1
1736fi
1737  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738  as_fn_set_status $ac_retval
1739
1740} # ac_fn_c_try_cpp
1741
1742# ac_fn_c_try_run LINENO
1743# ----------------------
1744# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745# that executables *can* be run.
1746ac_fn_c_try_run ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  if { { ac_try="$ac_link"
1750case "(($ac_try" in
1751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752  *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756  (eval "$ac_link") 2>&5
1757  ac_status=$?
1758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760  { { case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_try") 2>&5
1767  ac_status=$?
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; }; }; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: program exited with status $ac_status" >&5
1773       $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776       ac_retval=$ac_status
1777fi
1778  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780  as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_run
1783
1784# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785# -------------------------------------------------------
1786# Tests whether HEADER exists and can be compiled using the include files in
1787# INCLUDES, setting the cache variable VAR accordingly.
1788ac_fn_c_check_header_compile ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if eval \${$3+:} false; then :
1794  $as_echo_n "(cached) " >&6
1795else
1796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h.  */
1798$4
1799#include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802  eval "$3=yes"
1803else
1804  eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813} # ac_fn_c_check_header_compile
1814
1815# ac_fn_c_try_link LINENO
1816# -----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded.
1818ac_fn_c_try_link ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  rm -f conftest.$ac_objext conftest$ac_exeext
1822  if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825  *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829  (eval "$ac_link") 2>conftest.err
1830  ac_status=$?
1831  if test -s conftest.err; then
1832    grep -v '^ *+' conftest.err >conftest.er1
1833    cat conftest.er1 >&5
1834    mv -f conftest.er1 conftest.err
1835  fi
1836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837  test $ac_status = 0; } && {
1838	 test -z "$ac_c_werror_flag" ||
1839	 test ! -s conftest.err
1840       } && test -s conftest$ac_exeext && {
1841	 test "$cross_compiling" = yes ||
1842	 $as_test_x conftest$ac_exeext
1843       }; then :
1844  ac_retval=0
1845else
1846  $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849	ac_retval=1
1850fi
1851  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1852  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1853  # interfere with the next link command; also delete a directory that is
1854  # left behind by Apple's compiler.  We do this before executing the actions.
1855  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_c_try_link
1860
1861# ac_fn_c_check_func LINENO FUNC VAR
1862# ----------------------------------
1863# Tests whether FUNC exists, setting the cache variable VAR accordingly
1864ac_fn_c_check_func ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1876#define $2 innocuous_$2
1877
1878/* System header to define __stub macros and hopefully few prototypes,
1879    which can conflict with char $2 (); below.
1880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881    <limits.h> exists even on freestanding compilers.  */
1882
1883#ifdef __STDC__
1884# include <limits.h>
1885#else
1886# include <assert.h>
1887#endif
1888
1889#undef $2
1890
1891/* Override any GCC internal prototype to avoid an error.
1892   Use char because int might match the return type of a GCC
1893   builtin and then its argument prototype would still apply.  */
1894#ifdef __cplusplus
1895extern "C"
1896#endif
1897char $2 ();
1898/* The GNU C library defines this for functions which it implements
1899    to always fail with ENOSYS.  Some functions are actually named
1900    something starting with __ and the normal name is an alias.  */
1901#if defined __stub_$2 || defined __stub___$2
1902choke me
1903#endif
1904
1905int
1906main ()
1907{
1908return $2 ();
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_link "$LINENO"; then :
1914  eval "$3=yes"
1915else
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext \
1919    conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927
1928# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929# -------------------------------------------------------
1930# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931# the include files in INCLUDES and setting the cache variable VAR
1932# accordingly.
1933ac_fn_c_check_header_mongrel ()
1934{
1935  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936  if eval \${$3+:} false; then :
1937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if eval \${$3+:} false; then :
1940  $as_echo_n "(cached) " >&6
1941fi
1942eval ac_res=\$$3
1943	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945else
1946  # Is the header compilable?
1947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948$as_echo_n "checking $2 usability... " >&6; }
1949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h.  */
1951$4
1952#include <$2>
1953_ACEOF
1954if ac_fn_c_try_compile "$LINENO"; then :
1955  ac_header_compiler=yes
1956else
1957  ac_header_compiler=no
1958fi
1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961$as_echo "$ac_header_compiler" >&6; }
1962
1963# Is the header present?
1964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965$as_echo_n "checking $2 presence... " >&6; }
1966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h.  */
1968#include <$2>
1969_ACEOF
1970if ac_fn_c_try_cpp "$LINENO"; then :
1971  ac_header_preproc=yes
1972else
1973  ac_header_preproc=no
1974fi
1975rm -f conftest.err conftest.i conftest.$ac_ext
1976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977$as_echo "$ac_header_preproc" >&6; }
1978
1979# So?  What about this header?
1980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1981  yes:no: )
1982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986    ;;
1987  no:yes:* )
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1991$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1995$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1996    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998( $as_echo "## ---------------------------------------------------------------------- ##
1999## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2000## ---------------------------------------------------------------------- ##"
2001     ) | sed "s/^/$as_me: WARNING:     /" >&2
2002    ;;
2003esac
2004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005$as_echo_n "checking for $2... " >&6; }
2006if eval \${$3+:} false; then :
2007  $as_echo_n "(cached) " >&6
2008else
2009  eval "$3=\$ac_header_compiler"
2010fi
2011eval ac_res=\$$3
2012	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014fi
2015  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017} # ac_fn_c_check_header_mongrel
2018cat >config.log <<_ACEOF
2019This file contains any messages produced by compilers while
2020running configure, to aid debugging if configure makes a mistake.
2021
2022It was created by libXaw $as_me 1.0.9, which was
2023generated by GNU Autoconf 2.68.  Invocation command line was
2024
2025  $ $0 $@
2026
2027_ACEOF
2028exec 5>>config.log
2029{
2030cat <<_ASUNAME
2031## --------- ##
2032## Platform. ##
2033## --------- ##
2034
2035hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2036uname -m = `(uname -m) 2>/dev/null || echo unknown`
2037uname -r = `(uname -r) 2>/dev/null || echo unknown`
2038uname -s = `(uname -s) 2>/dev/null || echo unknown`
2039uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040
2041/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2042/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2043
2044/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2045/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2046/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2047/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2048/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2049/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2050/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2051
2052_ASUNAME
2053
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057  IFS=$as_save_IFS
2058  test -z "$as_dir" && as_dir=.
2059    $as_echo "PATH: $as_dir"
2060  done
2061IFS=$as_save_IFS
2062
2063} >&5
2064
2065cat >&5 <<_ACEOF
2066
2067
2068## ----------- ##
2069## Core tests. ##
2070## ----------- ##
2071
2072_ACEOF
2073
2074
2075# Keep a trace of the command line.
2076# Strip out --no-create and --no-recursion so they do not pile up.
2077# Strip out --silent because we don't want to record it for future runs.
2078# Also quote any args containing shell meta-characters.
2079# Make two passes to allow for proper duplicate-argument suppression.
2080ac_configure_args=
2081ac_configure_args0=
2082ac_configure_args1=
2083ac_must_keep_next=false
2084for ac_pass in 1 2
2085do
2086  for ac_arg
2087  do
2088    case $ac_arg in
2089    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2090    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2091    | -silent | --silent | --silen | --sile | --sil)
2092      continue ;;
2093    *\'*)
2094      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2095    esac
2096    case $ac_pass in
2097    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2098    2)
2099      as_fn_append ac_configure_args1 " '$ac_arg'"
2100      if test $ac_must_keep_next = true; then
2101	ac_must_keep_next=false # Got value, back to normal.
2102      else
2103	case $ac_arg in
2104	  *=* | --config-cache | -C | -disable-* | --disable-* \
2105	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2106	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2107	  | -with-* | --with-* | -without-* | --without-* | --x)
2108	    case "$ac_configure_args0 " in
2109	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2110	    esac
2111	    ;;
2112	  -* ) ac_must_keep_next=true ;;
2113	esac
2114      fi
2115      as_fn_append ac_configure_args " '$ac_arg'"
2116      ;;
2117    esac
2118  done
2119done
2120{ ac_configure_args0=; unset ac_configure_args0;}
2121{ ac_configure_args1=; unset ac_configure_args1;}
2122
2123# When interrupted or exit'd, cleanup temporary files, and complete
2124# config.log.  We remove comments because anyway the quotes in there
2125# would cause problems or look ugly.
2126# WARNING: Use '\'' to represent an apostrophe within the trap.
2127# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2128trap 'exit_status=$?
2129  # Save into config.log some information that might help in debugging.
2130  {
2131    echo
2132
2133    $as_echo "## ---------------- ##
2134## Cache variables. ##
2135## ---------------- ##"
2136    echo
2137    # The following way of writing the cache mishandles newlines in values,
2138(
2139  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2140    eval ac_val=\$$ac_var
2141    case $ac_val in #(
2142    *${as_nl}*)
2143      case $ac_var in #(
2144      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2145$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2146      esac
2147      case $ac_var in #(
2148      _ | IFS | as_nl) ;; #(
2149      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2150      *) { eval $ac_var=; unset $ac_var;} ;;
2151      esac ;;
2152    esac
2153  done
2154  (set) 2>&1 |
2155    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2156    *${as_nl}ac_space=\ *)
2157      sed -n \
2158	"s/'\''/'\''\\\\'\'''\''/g;
2159	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2160      ;; #(
2161    *)
2162      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2163      ;;
2164    esac |
2165    sort
2166)
2167    echo
2168
2169    $as_echo "## ----------------- ##
2170## Output variables. ##
2171## ----------------- ##"
2172    echo
2173    for ac_var in $ac_subst_vars
2174    do
2175      eval ac_val=\$$ac_var
2176      case $ac_val in
2177      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178      esac
2179      $as_echo "$ac_var='\''$ac_val'\''"
2180    done | sort
2181    echo
2182
2183    if test -n "$ac_subst_files"; then
2184      $as_echo "## ------------------- ##
2185## File substitutions. ##
2186## ------------------- ##"
2187      echo
2188      for ac_var in $ac_subst_files
2189      do
2190	eval ac_val=\$$ac_var
2191	case $ac_val in
2192	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193	esac
2194	$as_echo "$ac_var='\''$ac_val'\''"
2195      done | sort
2196      echo
2197    fi
2198
2199    if test -s confdefs.h; then
2200      $as_echo "## ----------- ##
2201## confdefs.h. ##
2202## ----------- ##"
2203      echo
2204      cat confdefs.h
2205      echo
2206    fi
2207    test "$ac_signal" != 0 &&
2208      $as_echo "$as_me: caught signal $ac_signal"
2209    $as_echo "$as_me: exit $exit_status"
2210  } >&5
2211  rm -f core *.core core.conftest.* &&
2212    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2213    exit $exit_status
2214' 0
2215for ac_signal in 1 2 13 15; do
2216  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2217done
2218ac_signal=0
2219
2220# confdefs.h avoids OS command line length limits that DEFS can exceed.
2221rm -f -r conftest* confdefs.h
2222
2223$as_echo "/* confdefs.h */" > confdefs.h
2224
2225# Predefined preprocessor variables.
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_NAME "$PACKAGE_NAME"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_VERSION "$PACKAGE_VERSION"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_STRING "$PACKAGE_STRING"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_URL "$PACKAGE_URL"
2249_ACEOF
2250
2251
2252# Let the site file select an alternate cache file if it wants to.
2253# Prefer an explicitly selected file to automatically selected ones.
2254ac_site_file1=NONE
2255ac_site_file2=NONE
2256if test -n "$CONFIG_SITE"; then
2257  # We do not want a PATH search for config.site.
2258  case $CONFIG_SITE in #((
2259    -*)  ac_site_file1=./$CONFIG_SITE;;
2260    */*) ac_site_file1=$CONFIG_SITE;;
2261    *)   ac_site_file1=./$CONFIG_SITE;;
2262  esac
2263elif test "x$prefix" != xNONE; then
2264  ac_site_file1=$prefix/share/config.site
2265  ac_site_file2=$prefix/etc/config.site
2266else
2267  ac_site_file1=$ac_default_prefix/share/config.site
2268  ac_site_file2=$ac_default_prefix/etc/config.site
2269fi
2270for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271do
2272  test "x$ac_site_file" = xNONE && continue
2273  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2274    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2275$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2276    sed 's/^/| /' "$ac_site_file" >&5
2277    . "$ac_site_file" \
2278      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280as_fn_error $? "failed to load site script $ac_site_file
2281See \`config.log' for more details" "$LINENO" 5; }
2282  fi
2283done
2284
2285if test -r "$cache_file"; then
2286  # Some versions of bash will fail to source /dev/null (special files
2287  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2288  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2289    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2290$as_echo "$as_me: loading cache $cache_file" >&6;}
2291    case $cache_file in
2292      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2293      *)                      . "./$cache_file";;
2294    esac
2295  fi
2296else
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2298$as_echo "$as_me: creating cache $cache_file" >&6;}
2299  >$cache_file
2300fi
2301
2302# Check that the precious variables saved in the cache have kept the same
2303# value.
2304ac_cache_corrupted=false
2305for ac_var in $ac_precious_vars; do
2306  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2307  eval ac_new_set=\$ac_env_${ac_var}_set
2308  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2309  eval ac_new_val=\$ac_env_${ac_var}_value
2310  case $ac_old_set,$ac_new_set in
2311    set,)
2312      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2313$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2314      ac_cache_corrupted=: ;;
2315    ,set)
2316      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2317$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2318      ac_cache_corrupted=: ;;
2319    ,);;
2320    *)
2321      if test "x$ac_old_val" != "x$ac_new_val"; then
2322	# differences in whitespace do not lead to failure.
2323	ac_old_val_w=`echo x $ac_old_val`
2324	ac_new_val_w=`echo x $ac_new_val`
2325	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2326	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2327$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328	  ac_cache_corrupted=:
2329	else
2330	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2331$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2332	  eval $ac_var=\$ac_old_val
2333	fi
2334	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2335$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2336	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2337$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2338      fi;;
2339  esac
2340  # Pass precious variables to config.status.
2341  if test "$ac_new_set" = set; then
2342    case $ac_new_val in
2343    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2344    *) ac_arg=$ac_var=$ac_new_val ;;
2345    esac
2346    case " $ac_configure_args " in
2347      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2348      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2349    esac
2350  fi
2351done
2352if $ac_cache_corrupted; then
2353  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2356$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2357  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2358fi
2359## -------------------- ##
2360## Main body of script. ##
2361## -------------------- ##
2362
2363ac_ext=c
2364ac_cpp='$CPP $CPPFLAGS'
2365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368
2369
2370
2371ac_config_headers="$ac_config_headers config.h"
2372
2373
2374# Initialize Automake
2375am__api_version='1.11'
2376
2377ac_aux_dir=
2378for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2379  if test -f "$ac_dir/install-sh"; then
2380    ac_aux_dir=$ac_dir
2381    ac_install_sh="$ac_aux_dir/install-sh -c"
2382    break
2383  elif test -f "$ac_dir/install.sh"; then
2384    ac_aux_dir=$ac_dir
2385    ac_install_sh="$ac_aux_dir/install.sh -c"
2386    break
2387  elif test -f "$ac_dir/shtool"; then
2388    ac_aux_dir=$ac_dir
2389    ac_install_sh="$ac_aux_dir/shtool install -c"
2390    break
2391  fi
2392done
2393if test -z "$ac_aux_dir"; then
2394  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2395fi
2396
2397# These three variables are undocumented and unsupported,
2398# and are intended to be withdrawn in a future Autoconf release.
2399# They can cause serious problems if a builder's source tree is in a directory
2400# whose full name contains unusual characters.
2401ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2402ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2403ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2404
2405
2406# Find a good install program.  We prefer a C program (faster),
2407# so one script is as good as another.  But avoid the broken or
2408# incompatible versions:
2409# SysV /etc/install, /usr/sbin/install
2410# SunOS /usr/etc/install
2411# IRIX /sbin/install
2412# AIX /bin/install
2413# AmigaOS /C/install, which installs bootblocks on floppy discs
2414# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2415# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417# OS/2's system install, which has a completely different semantic
2418# ./install, which can be erroneously created by make from ./install.sh.
2419# Reject install programs that cannot install multiple files.
2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2421$as_echo_n "checking for a BSD-compatible install... " >&6; }
2422if test -z "$INSTALL"; then
2423if ${ac_cv_path_install+:} false; then :
2424  $as_echo_n "(cached) " >&6
2425else
2426  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429  IFS=$as_save_IFS
2430  test -z "$as_dir" && as_dir=.
2431    # Account for people who put trailing slashes in PATH elements.
2432case $as_dir/ in #((
2433  ./ | .// | /[cC]/* | \
2434  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2435  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2436  /usr/ucb/* ) ;;
2437  *)
2438    # OSF1 and SCO ODT 3.0 have their own names for install.
2439    # Don't use installbsd from OSF since it installs stuff as root
2440    # by default.
2441    for ac_prog in ginstall scoinst install; do
2442      for ac_exec_ext in '' $ac_executable_extensions; do
2443	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2444	  if test $ac_prog = install &&
2445	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446	    # AIX install.  It has an incompatible calling convention.
2447	    :
2448	  elif test $ac_prog = install &&
2449	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450	    # program-specific install script used by HP pwplus--don't use.
2451	    :
2452	  else
2453	    rm -rf conftest.one conftest.two conftest.dir
2454	    echo one > conftest.one
2455	    echo two > conftest.two
2456	    mkdir conftest.dir
2457	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2458	      test -s conftest.one && test -s conftest.two &&
2459	      test -s conftest.dir/conftest.one &&
2460	      test -s conftest.dir/conftest.two
2461	    then
2462	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2463	      break 3
2464	    fi
2465	  fi
2466	fi
2467      done
2468    done
2469    ;;
2470esac
2471
2472  done
2473IFS=$as_save_IFS
2474
2475rm -rf conftest.one conftest.two conftest.dir
2476
2477fi
2478  if test "${ac_cv_path_install+set}" = set; then
2479    INSTALL=$ac_cv_path_install
2480  else
2481    # As a last resort, use the slow shell script.  Don't cache a
2482    # value for INSTALL within a source directory, because that will
2483    # break other packages using the cache if that directory is
2484    # removed, or if the value is a relative name.
2485    INSTALL=$ac_install_sh
2486  fi
2487fi
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2489$as_echo "$INSTALL" >&6; }
2490
2491# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2492# It thinks the first close brace ends the variable substitution.
2493test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2494
2495test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2496
2497test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2498
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2500$as_echo_n "checking whether build environment is sane... " >&6; }
2501# Just in case
2502sleep 1
2503echo timestamp > conftest.file
2504# Reject unsafe characters in $srcdir or the absolute working directory
2505# name.  Accept space and tab only in the latter.
2506am_lf='
2507'
2508case `pwd` in
2509  *[\\\"\#\$\&\'\`$am_lf]*)
2510    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2511esac
2512case $srcdir in
2513  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2514    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2515esac
2516
2517# Do `set' in a subshell so we don't clobber the current shell's
2518# arguments.  Must try -L first in case configure is actually a
2519# symlink; some systems play weird games with the mod time of symlinks
2520# (eg FreeBSD returns the mod time of the symlink's containing
2521# directory).
2522if (
2523   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2524   if test "$*" = "X"; then
2525      # -L didn't work.
2526      set X `ls -t "$srcdir/configure" conftest.file`
2527   fi
2528   rm -f conftest.file
2529   if test "$*" != "X $srcdir/configure conftest.file" \
2530      && test "$*" != "X conftest.file $srcdir/configure"; then
2531
2532      # If neither matched, then we have a broken ls.  This can happen
2533      # if, for instance, CONFIG_SHELL is bash and it inherits a
2534      # broken ls alias from the environment.  This has actually
2535      # happened.  Such a system could not be considered "sane".
2536      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2537alias in your environment" "$LINENO" 5
2538   fi
2539
2540   test "$2" = conftest.file
2541   )
2542then
2543   # Ok.
2544   :
2545else
2546   as_fn_error $? "newly created file is older than distributed files!
2547Check your system clock" "$LINENO" 5
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2550$as_echo "yes" >&6; }
2551test "$program_prefix" != NONE &&
2552  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2553# Use a double $ so make ignores it.
2554test "$program_suffix" != NONE &&
2555  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2556# Double any \ or $.
2557# By default was `s,x,x', remove it if useless.
2558ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2559program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2560
2561# expand $ac_aux_dir to an absolute path
2562am_aux_dir=`cd $ac_aux_dir && pwd`
2563
2564if test x"${MISSING+set}" != xset; then
2565  case $am_aux_dir in
2566  *\ * | *\	*)
2567    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2568  *)
2569    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2570  esac
2571fi
2572# Use eval to expand $SHELL
2573if eval "$MISSING --run true"; then
2574  am_missing_run="$MISSING --run "
2575else
2576  am_missing_run=
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2578$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2579fi
2580
2581if test x"${install_sh}" != xset; then
2582  case $am_aux_dir in
2583  *\ * | *\	*)
2584    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2585  *)
2586    install_sh="\${SHELL} $am_aux_dir/install-sh"
2587  esac
2588fi
2589
2590# Installed binaries are usually stripped using `strip' when the user
2591# run `make install-strip'.  However `strip' might not be the right
2592# tool to use in cross-compilation environments, therefore Automake
2593# will honor the `STRIP' environment variable to overrule this program.
2594if test "$cross_compiling" != no; then
2595  if test -n "$ac_tool_prefix"; then
2596  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2597set dummy ${ac_tool_prefix}strip; ac_word=$2
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599$as_echo_n "checking for $ac_word... " >&6; }
2600if ${ac_cv_prog_STRIP+:} false; then :
2601  $as_echo_n "(cached) " >&6
2602else
2603  if test -n "$STRIP"; then
2604  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2605else
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609  IFS=$as_save_IFS
2610  test -z "$as_dir" && as_dir=.
2611    for ac_exec_ext in '' $ac_executable_extensions; do
2612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615    break 2
2616  fi
2617done
2618  done
2619IFS=$as_save_IFS
2620
2621fi
2622fi
2623STRIP=$ac_cv_prog_STRIP
2624if test -n "$STRIP"; then
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2626$as_echo "$STRIP" >&6; }
2627else
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629$as_echo "no" >&6; }
2630fi
2631
2632
2633fi
2634if test -z "$ac_cv_prog_STRIP"; then
2635  ac_ct_STRIP=$STRIP
2636  # Extract the first word of "strip", so it can be a program name with args.
2637set dummy strip; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  if test -n "$ac_ct_STRIP"; then
2644  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651    for ac_exec_ext in '' $ac_executable_extensions; do
2652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653    ac_cv_prog_ac_ct_STRIP="strip"
2654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655    break 2
2656  fi
2657done
2658  done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2664if test -n "$ac_ct_STRIP"; then
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2666$as_echo "$ac_ct_STRIP" >&6; }
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672  if test "x$ac_ct_STRIP" = x; then
2673    STRIP=":"
2674  else
2675    case $cross_compiling:$ac_tool_warned in
2676yes:)
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2679ac_tool_warned=yes ;;
2680esac
2681    STRIP=$ac_ct_STRIP
2682  fi
2683else
2684  STRIP="$ac_cv_prog_STRIP"
2685fi
2686
2687fi
2688INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2689
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2691$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2692if test -z "$MKDIR_P"; then
2693  if ${ac_cv_path_mkdir+:} false; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2698do
2699  IFS=$as_save_IFS
2700  test -z "$as_dir" && as_dir=.
2701    for ac_prog in mkdir gmkdir; do
2702	 for ac_exec_ext in '' $ac_executable_extensions; do
2703	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2704	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2705	     'mkdir (GNU coreutils) '* | \
2706	     'mkdir (coreutils) '* | \
2707	     'mkdir (fileutils) '4.1*)
2708	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2709	       break 3;;
2710	   esac
2711	 done
2712       done
2713  done
2714IFS=$as_save_IFS
2715
2716fi
2717
2718  test -d ./--version && rmdir ./--version
2719  if test "${ac_cv_path_mkdir+set}" = set; then
2720    MKDIR_P="$ac_cv_path_mkdir -p"
2721  else
2722    # As a last resort, use the slow shell script.  Don't cache a
2723    # value for MKDIR_P within a source directory, because that will
2724    # break other packages using the cache if that directory is
2725    # removed, or if the value is a relative name.
2726    MKDIR_P="$ac_install_sh -d"
2727  fi
2728fi
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2730$as_echo "$MKDIR_P" >&6; }
2731
2732mkdir_p="$MKDIR_P"
2733case $mkdir_p in
2734  [\\/$]* | ?:[\\/]*) ;;
2735  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2736esac
2737
2738for ac_prog in gawk mawk nawk awk
2739do
2740  # Extract the first word of "$ac_prog", so it can be a program name with args.
2741set dummy $ac_prog; ac_word=$2
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743$as_echo_n "checking for $ac_word... " >&6; }
2744if ${ac_cv_prog_AWK+:} false; then :
2745  $as_echo_n "(cached) " >&6
2746else
2747  if test -n "$AWK"; then
2748  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  test -z "$as_dir" && as_dir=.
2755    for ac_exec_ext in '' $ac_executable_extensions; do
2756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757    ac_cv_prog_AWK="$ac_prog"
2758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762  done
2763IFS=$as_save_IFS
2764
2765fi
2766fi
2767AWK=$ac_cv_prog_AWK
2768if test -n "$AWK"; then
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2770$as_echo "$AWK" >&6; }
2771else
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773$as_echo "no" >&6; }
2774fi
2775
2776
2777  test -n "$AWK" && break
2778done
2779
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2781$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2782set x ${MAKE-make}
2783ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2784if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2785  $as_echo_n "(cached) " >&6
2786else
2787  cat >conftest.make <<\_ACEOF
2788SHELL = /bin/sh
2789all:
2790	@echo '@@@%%%=$(MAKE)=@@@%%%'
2791_ACEOF
2792# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2793case `${MAKE-make} -f conftest.make 2>/dev/null` in
2794  *@@@%%%=?*=@@@%%%*)
2795    eval ac_cv_prog_make_${ac_make}_set=yes;;
2796  *)
2797    eval ac_cv_prog_make_${ac_make}_set=no;;
2798esac
2799rm -f conftest.make
2800fi
2801if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2803$as_echo "yes" >&6; }
2804  SET_MAKE=
2805else
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807$as_echo "no" >&6; }
2808  SET_MAKE="MAKE=${MAKE-make}"
2809fi
2810
2811rm -rf .tst 2>/dev/null
2812mkdir .tst 2>/dev/null
2813if test -d .tst; then
2814  am__leading_dot=.
2815else
2816  am__leading_dot=_
2817fi
2818rmdir .tst 2>/dev/null
2819
2820if test "`cd $srcdir && pwd`" != "`pwd`"; then
2821  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2822  # is not polluted with repeated "-I."
2823  am__isrc=' -I$(srcdir)'
2824  # test to see if srcdir already configured
2825  if test -f $srcdir/config.status; then
2826    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2827  fi
2828fi
2829
2830# test whether we have cygpath
2831if test -z "$CYGPATH_W"; then
2832  if (cygpath --version) >/dev/null 2>/dev/null; then
2833    CYGPATH_W='cygpath -w'
2834  else
2835    CYGPATH_W=echo
2836  fi
2837fi
2838
2839
2840# Define the identity of the package.
2841 PACKAGE='libXaw'
2842 VERSION='1.0.9'
2843
2844
2845cat >>confdefs.h <<_ACEOF
2846#define PACKAGE "$PACKAGE"
2847_ACEOF
2848
2849
2850cat >>confdefs.h <<_ACEOF
2851#define VERSION "$VERSION"
2852_ACEOF
2853
2854# Some tools Automake needs.
2855
2856ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2857
2858
2859AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860
2861
2862AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863
2864
2865AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866
2867
2868MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2869
2870# We need awk for the "check" target.  The system "awk" is bad on
2871# some platforms.
2872# Always define AMTAR for backward compatibility.
2873
2874AMTAR=${AMTAR-"${am_missing_run}tar"}
2875
2876am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2877
2878
2879
2880
2881
2882
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2884$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2885    # Check whether --enable-maintainer-mode was given.
2886if test "${enable_maintainer_mode+set}" = set; then :
2887  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2888else
2889  USE_MAINTAINER_MODE=no
2890fi
2891
2892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2893$as_echo "$USE_MAINTAINER_MODE" >&6; }
2894   if test $USE_MAINTAINER_MODE = yes; then
2895  MAINTAINER_MODE_TRUE=
2896  MAINTAINER_MODE_FALSE='#'
2897else
2898  MAINTAINER_MODE_TRUE='#'
2899  MAINTAINER_MODE_FALSE=
2900fi
2901
2902  MAINT=$MAINTAINER_MODE_TRUE
2903
2904
2905
2906# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918DEPDIR="${am__leading_dot}deps"
2919
2920ac_config_commands="$ac_config_commands depfiles"
2921
2922
2923am_make=${MAKE-make}
2924cat > confinc << 'END'
2925am__doit:
2926	@echo this is the am__doit target
2927.PHONY: am__doit
2928END
2929# If we don't find an include directive, just comment out the code.
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2931$as_echo_n "checking for style of include used by $am_make... " >&6; }
2932am__include="#"
2933am__quote=
2934_am_result=none
2935# First try GNU make style include.
2936echo "include confinc" > confmf
2937# Ignore all kinds of additional output from `make'.
2938case `$am_make -s -f confmf 2> /dev/null` in #(
2939*the\ am__doit\ target*)
2940  am__include=include
2941  am__quote=
2942  _am_result=GNU
2943  ;;
2944esac
2945# Now try BSD make style include.
2946if test "$am__include" = "#"; then
2947   echo '.include "confinc"' > confmf
2948   case `$am_make -s -f confmf 2> /dev/null` in #(
2949   *the\ am__doit\ target*)
2950     am__include=.include
2951     am__quote="\""
2952     _am_result=BSD
2953     ;;
2954   esac
2955fi
2956
2957
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2959$as_echo "$_am_result" >&6; }
2960rm -f confinc confmf
2961
2962# Check whether --enable-dependency-tracking was given.
2963if test "${enable_dependency_tracking+set}" = set; then :
2964  enableval=$enable_dependency_tracking;
2965fi
2966
2967if test "x$enable_dependency_tracking" != xno; then
2968  am_depcomp="$ac_aux_dir/depcomp"
2969  AMDEPBACKSLASH='\'
2970fi
2971 if test "x$enable_dependency_tracking" != xno; then
2972  AMDEP_TRUE=
2973  AMDEP_FALSE='#'
2974else
2975  AMDEP_TRUE='#'
2976  AMDEP_FALSE=
2977fi
2978
2979
2980ac_ext=c
2981ac_cpp='$CPP $CPPFLAGS'
2982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985if test -n "$ac_tool_prefix"; then
2986  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2987set dummy ${ac_tool_prefix}gcc; ac_word=$2
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989$as_echo_n "checking for $ac_word... " >&6; }
2990if ${ac_cv_prog_CC+:} false; then :
2991  $as_echo_n "(cached) " >&6
2992else
2993  if test -n "$CC"; then
2994  ac_cv_prog_CC="$CC" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999  IFS=$as_save_IFS
3000  test -z "$as_dir" && as_dir=.
3001    for ac_exec_ext in '' $ac_executable_extensions; do
3002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005    break 2
3006  fi
3007done
3008  done
3009IFS=$as_save_IFS
3010
3011fi
3012fi
3013CC=$ac_cv_prog_CC
3014if test -n "$CC"; then
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016$as_echo "$CC" >&6; }
3017else
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
3020fi
3021
3022
3023fi
3024if test -z "$ac_cv_prog_CC"; then
3025  ac_ct_CC=$CC
3026  # Extract the first word of "gcc", so it can be a program name with args.
3027set dummy gcc; ac_word=$2
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029$as_echo_n "checking for $ac_word... " >&6; }
3030if ${ac_cv_prog_ac_ct_CC+:} false; then :
3031  $as_echo_n "(cached) " >&6
3032else
3033  if test -n "$ac_ct_CC"; then
3034  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035else
3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039  IFS=$as_save_IFS
3040  test -z "$as_dir" && as_dir=.
3041    for ac_exec_ext in '' $ac_executable_extensions; do
3042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043    ac_cv_prog_ac_ct_CC="gcc"
3044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045    break 2
3046  fi
3047done
3048  done
3049IFS=$as_save_IFS
3050
3051fi
3052fi
3053ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054if test -n "$ac_ct_CC"; then
3055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056$as_echo "$ac_ct_CC" >&6; }
3057else
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059$as_echo "no" >&6; }
3060fi
3061
3062  if test "x$ac_ct_CC" = x; then
3063    CC=""
3064  else
3065    case $cross_compiling:$ac_tool_warned in
3066yes:)
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069ac_tool_warned=yes ;;
3070esac
3071    CC=$ac_ct_CC
3072  fi
3073else
3074  CC="$ac_cv_prog_CC"
3075fi
3076
3077if test -z "$CC"; then
3078          if test -n "$ac_tool_prefix"; then
3079    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3080set dummy ${ac_tool_prefix}cc; ac_word=$2
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082$as_echo_n "checking for $ac_word... " >&6; }
3083if ${ac_cv_prog_CC+:} false; then :
3084  $as_echo_n "(cached) " >&6
3085else
3086  if test -n "$CC"; then
3087  ac_cv_prog_CC="$CC" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092  IFS=$as_save_IFS
3093  test -z "$as_dir" && as_dir=.
3094    for ac_exec_ext in '' $ac_executable_extensions; do
3095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096    ac_cv_prog_CC="${ac_tool_prefix}cc"
3097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098    break 2
3099  fi
3100done
3101  done
3102IFS=$as_save_IFS
3103
3104fi
3105fi
3106CC=$ac_cv_prog_CC
3107if test -n "$CC"; then
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109$as_echo "$CC" >&6; }
3110else
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112$as_echo "no" >&6; }
3113fi
3114
3115
3116  fi
3117fi
3118if test -z "$CC"; then
3119  # Extract the first word of "cc", so it can be a program name with args.
3120set dummy cc; ac_word=$2
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122$as_echo_n "checking for $ac_word... " >&6; }
3123if ${ac_cv_prog_CC+:} false; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  if test -n "$CC"; then
3127  ac_cv_prog_CC="$CC" # Let the user override the test.
3128else
3129  ac_prog_rejected=no
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135    for ac_exec_ext in '' $ac_executable_extensions; do
3136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3138       ac_prog_rejected=yes
3139       continue
3140     fi
3141    ac_cv_prog_CC="cc"
3142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143    break 2
3144  fi
3145done
3146  done
3147IFS=$as_save_IFS
3148
3149if test $ac_prog_rejected = yes; then
3150  # We found a bogon in the path, so make sure we never use it.
3151  set dummy $ac_cv_prog_CC
3152  shift
3153  if test $# != 0; then
3154    # We chose a different compiler from the bogus one.
3155    # However, it has the same basename, so the bogon will be chosen
3156    # first if we set CC to just the basename; use the full file name.
3157    shift
3158    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3159  fi
3160fi
3161fi
3162fi
3163CC=$ac_cv_prog_CC
3164if test -n "$CC"; then
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3166$as_echo "$CC" >&6; }
3167else
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
3170fi
3171
3172
3173fi
3174if test -z "$CC"; then
3175  if test -n "$ac_tool_prefix"; then
3176  for ac_prog in cl.exe
3177  do
3178    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181$as_echo_n "checking for $ac_word... " >&6; }
3182if ${ac_cv_prog_CC+:} false; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185  if test -n "$CC"; then
3186  ac_cv_prog_CC="$CC" # Let the user override the test.
3187else
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191  IFS=$as_save_IFS
3192  test -z "$as_dir" && as_dir=.
3193    for ac_exec_ext in '' $ac_executable_extensions; do
3194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197    break 2
3198  fi
3199done
3200  done
3201IFS=$as_save_IFS
3202
3203fi
3204fi
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208$as_echo "$CC" >&6; }
3209else
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
3212fi
3213
3214
3215    test -n "$CC" && break
3216  done
3217fi
3218if test -z "$CC"; then
3219  ac_ct_CC=$CC
3220  for ac_prog in cl.exe
3221do
3222  # Extract the first word of "$ac_prog", so it can be a program name with args.
3223set dummy $ac_prog; ac_word=$2
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225$as_echo_n "checking for $ac_word... " >&6; }
3226if ${ac_cv_prog_ac_ct_CC+:} false; then :
3227  $as_echo_n "(cached) " >&6
3228else
3229  if test -n "$ac_ct_CC"; then
3230  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231else
3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH
3234do
3235  IFS=$as_save_IFS
3236  test -z "$as_dir" && as_dir=.
3237    for ac_exec_ext in '' $ac_executable_extensions; do
3238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239    ac_cv_prog_ac_ct_CC="$ac_prog"
3240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241    break 2
3242  fi
3243done
3244  done
3245IFS=$as_save_IFS
3246
3247fi
3248fi
3249ac_ct_CC=$ac_cv_prog_ac_ct_CC
3250if test -n "$ac_ct_CC"; then
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3252$as_echo "$ac_ct_CC" >&6; }
3253else
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256fi
3257
3258
3259  test -n "$ac_ct_CC" && break
3260done
3261
3262  if test "x$ac_ct_CC" = x; then
3263    CC=""
3264  else
3265    case $cross_compiling:$ac_tool_warned in
3266yes:)
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3269ac_tool_warned=yes ;;
3270esac
3271    CC=$ac_ct_CC
3272  fi
3273fi
3274
3275fi
3276
3277
3278test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280as_fn_error $? "no acceptable C compiler found in \$PATH
3281See \`config.log' for more details" "$LINENO" 5; }
3282
3283# Provide some information about the compiler.
3284$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3285set X $ac_compile
3286ac_compiler=$2
3287for ac_option in --version -v -V -qversion; do
3288  { { ac_try="$ac_compiler $ac_option >&5"
3289case "(($ac_try" in
3290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291  *) ac_try_echo=$ac_try;;
3292esac
3293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294$as_echo "$ac_try_echo"; } >&5
3295  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3296  ac_status=$?
3297  if test -s conftest.err; then
3298    sed '10a\
3299... rest of stderr output deleted ...
3300         10q' conftest.err >conftest.er1
3301    cat conftest.er1 >&5
3302  fi
3303  rm -f conftest.er1 conftest.err
3304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305  test $ac_status = 0; }
3306done
3307
3308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h.  */
3310
3311int
3312main ()
3313{
3314
3315  ;
3316  return 0;
3317}
3318_ACEOF
3319ac_clean_files_save=$ac_clean_files
3320ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3321# Try to create an executable without -o first, disregard a.out.
3322# It will help us diagnose broken compilers, and finding out an intuition
3323# of exeext.
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3325$as_echo_n "checking whether the C compiler works... " >&6; }
3326ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3327
3328# The possible output files:
3329ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3330
3331ac_rmfiles=
3332for ac_file in $ac_files
3333do
3334  case $ac_file in
3335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3337  esac
3338done
3339rm -f $ac_rmfiles
3340
3341if { { ac_try="$ac_link_default"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348  (eval "$ac_link_default") 2>&5
3349  ac_status=$?
3350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351  test $ac_status = 0; }; then :
3352  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3353# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3354# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3355# so that the user can short-circuit this test for compilers unknown to
3356# Autoconf.
3357for ac_file in $ac_files ''
3358do
3359  test -f "$ac_file" || continue
3360  case $ac_file in
3361    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3362	;;
3363    [ab].out )
3364	# We found the default executable, but exeext='' is most
3365	# certainly right.
3366	break;;
3367    *.* )
3368	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3369	then :; else
3370	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371	fi
3372	# We set ac_cv_exeext here because the later test for it is not
3373	# safe: cross compilers may not add the suffix if given an `-o'
3374	# argument, so we may need to know it at that point already.
3375	# Even if this section looks crufty: it has the advantage of
3376	# actually working.
3377	break;;
3378    * )
3379	break;;
3380  esac
3381done
3382test "$ac_cv_exeext" = no && ac_cv_exeext=
3383
3384else
3385  ac_file=''
3386fi
3387if test -z "$ac_file"; then :
3388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389$as_echo "no" >&6; }
3390$as_echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395as_fn_error 77 "C compiler cannot create executables
3396See \`config.log' for more details" "$LINENO" 5; }
3397else
3398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399$as_echo "yes" >&6; }
3400fi
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3402$as_echo_n "checking for C compiler default output file name... " >&6; }
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3404$as_echo "$ac_file" >&6; }
3405ac_exeext=$ac_cv_exeext
3406
3407rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3408ac_clean_files=$ac_clean_files_save
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3410$as_echo_n "checking for suffix of executables... " >&6; }
3411if { { ac_try="$ac_link"
3412case "(($ac_try" in
3413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414  *) ac_try_echo=$ac_try;;
3415esac
3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417$as_echo "$ac_try_echo"; } >&5
3418  (eval "$ac_link") 2>&5
3419  ac_status=$?
3420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421  test $ac_status = 0; }; then :
3422  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3423# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3424# work properly (i.e., refer to `conftest.exe'), while it won't with
3425# `rm'.
3426for ac_file in conftest.exe conftest conftest.*; do
3427  test -f "$ac_file" || continue
3428  case $ac_file in
3429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3431	  break;;
3432    * ) break;;
3433  esac
3434done
3435else
3436  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3439See \`config.log' for more details" "$LINENO" 5; }
3440fi
3441rm -f conftest conftest$ac_cv_exeext
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3443$as_echo "$ac_cv_exeext" >&6; }
3444
3445rm -f conftest.$ac_ext
3446EXEEXT=$ac_cv_exeext
3447ac_exeext=$EXEEXT
3448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450#include <stdio.h>
3451int
3452main ()
3453{
3454FILE *f = fopen ("conftest.out", "w");
3455 return ferror (f) || fclose (f) != 0;
3456
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461ac_clean_files="$ac_clean_files conftest.out"
3462# Check that the compiler produces executables we can run.  If not, either
3463# the compiler is broken, or we cross compile.
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3465$as_echo_n "checking whether we are cross compiling... " >&6; }
3466if test "$cross_compiling" != yes; then
3467  { { ac_try="$ac_link"
3468case "(($ac_try" in
3469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470  *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474  (eval "$ac_link") 2>&5
3475  ac_status=$?
3476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477  test $ac_status = 0; }
3478  if { ac_try='./conftest$ac_cv_exeext'
3479  { { case "(($ac_try" in
3480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481  *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484$as_echo "$ac_try_echo"; } >&5
3485  (eval "$ac_try") 2>&5
3486  ac_status=$?
3487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488  test $ac_status = 0; }; }; then
3489    cross_compiling=no
3490  else
3491    if test "$cross_compiling" = maybe; then
3492	cross_compiling=yes
3493    else
3494	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496as_fn_error $? "cannot run C compiled programs.
3497If you meant to cross compile, use \`--host'.
3498See \`config.log' for more details" "$LINENO" 5; }
3499    fi
3500  fi
3501fi
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3503$as_echo "$cross_compiling" >&6; }
3504
3505rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3506ac_clean_files=$ac_clean_files_save
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3508$as_echo_n "checking for suffix of object files... " >&6; }
3509if ${ac_cv_objext+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518
3519  ;
3520  return 0;
3521}
3522_ACEOF
3523rm -f conftest.o conftest.obj
3524if { { ac_try="$ac_compile"
3525case "(($ac_try" in
3526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527  *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531  (eval "$ac_compile") 2>&5
3532  ac_status=$?
3533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534  test $ac_status = 0; }; then :
3535  for ac_file in conftest.o conftest.obj conftest.*; do
3536  test -f "$ac_file" || continue;
3537  case $ac_file in
3538    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3539    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3540       break;;
3541  esac
3542done
3543else
3544  $as_echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549as_fn_error $? "cannot compute suffix of object files: cannot compile
3550See \`config.log' for more details" "$LINENO" 5; }
3551fi
3552rm -f conftest.$ac_cv_objext conftest.$ac_ext
3553fi
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3555$as_echo "$ac_cv_objext" >&6; }
3556OBJEXT=$ac_cv_objext
3557ac_objext=$OBJEXT
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3559$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3560if ${ac_cv_c_compiler_gnu+:} false; then :
3561  $as_echo_n "(cached) " >&6
3562else
3563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565
3566int
3567main ()
3568{
3569#ifndef __GNUC__
3570       choke me
3571#endif
3572
3573  ;
3574  return 0;
3575}
3576_ACEOF
3577if ac_fn_c_try_compile "$LINENO"; then :
3578  ac_compiler_gnu=yes
3579else
3580  ac_compiler_gnu=no
3581fi
3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3587$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3588if test $ac_compiler_gnu = yes; then
3589  GCC=yes
3590else
3591  GCC=
3592fi
3593ac_test_CFLAGS=${CFLAGS+set}
3594ac_save_CFLAGS=$CFLAGS
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3596$as_echo_n "checking whether $CC accepts -g... " >&6; }
3597if ${ac_cv_prog_cc_g+:} false; then :
3598  $as_echo_n "(cached) " >&6
3599else
3600  ac_save_c_werror_flag=$ac_c_werror_flag
3601   ac_c_werror_flag=yes
3602   ac_cv_prog_cc_g=no
3603   CFLAGS="-g"
3604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615if ac_fn_c_try_compile "$LINENO"; then :
3616  ac_cv_prog_cc_g=yes
3617else
3618  CFLAGS=""
3619      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h.  */
3621
3622int
3623main ()
3624{
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630if ac_fn_c_try_compile "$LINENO"; then :
3631
3632else
3633  ac_c_werror_flag=$ac_save_c_werror_flag
3634	 CFLAGS="-g"
3635	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637
3638int
3639main ()
3640{
3641
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646if ac_fn_c_try_compile "$LINENO"; then :
3647  ac_cv_prog_cc_g=yes
3648fi
3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650fi
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654   ac_c_werror_flag=$ac_save_c_werror_flag
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3657$as_echo "$ac_cv_prog_cc_g" >&6; }
3658if test "$ac_test_CFLAGS" = set; then
3659  CFLAGS=$ac_save_CFLAGS
3660elif test $ac_cv_prog_cc_g = yes; then
3661  if test "$GCC" = yes; then
3662    CFLAGS="-g -O2"
3663  else
3664    CFLAGS="-g"
3665  fi
3666else
3667  if test "$GCC" = yes; then
3668    CFLAGS="-O2"
3669  else
3670    CFLAGS=
3671  fi
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3674$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3675if ${ac_cv_prog_cc_c89+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  ac_cv_prog_cc_c89=no
3679ac_save_CC=$CC
3680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682#include <stdarg.h>
3683#include <stdio.h>
3684#include <sys/types.h>
3685#include <sys/stat.h>
3686/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3687struct buf { int x; };
3688FILE * (*rcsopen) (struct buf *, struct stat *, int);
3689static char *e (p, i)
3690     char **p;
3691     int i;
3692{
3693  return p[i];
3694}
3695static char *f (char * (*g) (char **, int), char **p, ...)
3696{
3697  char *s;
3698  va_list v;
3699  va_start (v,p);
3700  s = g (p, va_arg (v,int));
3701  va_end (v);
3702  return s;
3703}
3704
3705/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3706   function prototypes and stuff, but not '\xHH' hex character constants.
3707   These don't provoke an error unfortunately, instead are silently treated
3708   as 'x'.  The following induces an error, until -std is added to get
3709   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3710   array size at least.  It's necessary to write '\x00'==0 to get something
3711   that's true only with -std.  */
3712int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3713
3714/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3715   inside strings and character constants.  */
3716#define FOO(x) 'x'
3717int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3718
3719int test (int i, double x);
3720struct s1 {int (*f) (int a);};
3721struct s2 {int (*f) (double a);};
3722int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3723int argc;
3724char **argv;
3725int
3726main ()
3727{
3728return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3729  ;
3730  return 0;
3731}
3732_ACEOF
3733for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3734	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3735do
3736  CC="$ac_save_CC $ac_arg"
3737  if ac_fn_c_try_compile "$LINENO"; then :
3738  ac_cv_prog_cc_c89=$ac_arg
3739fi
3740rm -f core conftest.err conftest.$ac_objext
3741  test "x$ac_cv_prog_cc_c89" != "xno" && break
3742done
3743rm -f conftest.$ac_ext
3744CC=$ac_save_CC
3745
3746fi
3747# AC_CACHE_VAL
3748case "x$ac_cv_prog_cc_c89" in
3749  x)
3750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3751$as_echo "none needed" >&6; } ;;
3752  xno)
3753    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3754$as_echo "unsupported" >&6; } ;;
3755  *)
3756    CC="$CC $ac_cv_prog_cc_c89"
3757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3758$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3759esac
3760if test "x$ac_cv_prog_cc_c89" != xno; then :
3761
3762fi
3763
3764ac_ext=c
3765ac_cpp='$CPP $CPPFLAGS'
3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769
3770depcc="$CC"   am_compiler_list=
3771
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3773$as_echo_n "checking dependency style of $depcc... " >&6; }
3774if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3775  $as_echo_n "(cached) " >&6
3776else
3777  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3778  # We make a subdir and do the tests there.  Otherwise we can end up
3779  # making bogus files that we don't know about and never remove.  For
3780  # instance it was reported that on HP-UX the gcc test will end up
3781  # making a dummy file named `D' -- because `-MD' means `put the output
3782  # in D'.
3783  mkdir conftest.dir
3784  # Copy depcomp to subdir because otherwise we won't find it if we're
3785  # using a relative directory.
3786  cp "$am_depcomp" conftest.dir
3787  cd conftest.dir
3788  # We will build objects and dependencies in a subdirectory because
3789  # it helps to detect inapplicable dependency modes.  For instance
3790  # both Tru64's cc and ICC support -MD to output dependencies as a
3791  # side effect of compilation, but ICC will put the dependencies in
3792  # the current directory while Tru64 will put them in the object
3793  # directory.
3794  mkdir sub
3795
3796  am_cv_CC_dependencies_compiler_type=none
3797  if test "$am_compiler_list" = ""; then
3798     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799  fi
3800  am__universal=false
3801  case " $depcc " in #(
3802     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803     esac
3804
3805  for depmode in $am_compiler_list; do
3806    # Setup a source with many dependencies, because some compilers
3807    # like to wrap large dependency lists on column 80 (with \), and
3808    # we should not choose a depcomp mode which is confused by this.
3809    #
3810    # We need to recreate these files for each test, as the compiler may
3811    # overwrite some of them when testing with obscure command lines.
3812    # This happens at least with the AIX C compiler.
3813    : > sub/conftest.c
3814    for i in 1 2 3 4 5 6; do
3815      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3817      # Solaris 8's {/usr,}/bin/sh.
3818      touch sub/conftst$i.h
3819    done
3820    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3823    # mode.  It turns out that the SunPro C++ compiler does not properly
3824    # handle `-M -o', and we need to detect this.  Also, some Intel
3825    # versions had trouble with output in subdirs
3826    am__obj=sub/conftest.${OBJEXT-o}
3827    am__minus_obj="-o $am__obj"
3828    case $depmode in
3829    gcc)
3830      # This depmode causes a compiler race in universal mode.
3831      test "$am__universal" = false || continue
3832      ;;
3833    nosideeffect)
3834      # after this tag, mechanisms are not by side-effect, so they'll
3835      # only be used when explicitly requested
3836      if test "x$enable_dependency_tracking" = xyes; then
3837	continue
3838      else
3839	break
3840      fi
3841      ;;
3842    msvisualcpp | msvcmsys)
3843      # This compiler won't grok `-c -o', but also, the minuso test has
3844      # not run yet.  These depmodes are late enough in the game, and
3845      # so weak that their functioning should not be impacted.
3846      am__obj=conftest.${OBJEXT-o}
3847      am__minus_obj=
3848      ;;
3849    none) break ;;
3850    esac
3851    if depmode=$depmode \
3852       source=sub/conftest.c object=$am__obj \
3853       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855         >/dev/null 2>conftest.err &&
3856       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860      # icc doesn't choke on unknown options, it will just issue warnings
3861      # or remarks (even with -Werror).  So we grep stderr for any message
3862      # that says an option was ignored or not supported.
3863      # When given -MP, icc 7.0 and 7.1 complain thusly:
3864      #   icc: Command line warning: ignoring option '-M'; no argument required
3865      # The diagnosis changed in icc 8.0:
3866      #   icc: Command line remark: option '-MP' not supported
3867      if (grep 'ignoring option' conftest.err ||
3868          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869        am_cv_CC_dependencies_compiler_type=$depmode
3870        break
3871      fi
3872    fi
3873  done
3874
3875  cd ..
3876  rm -rf conftest.dir
3877else
3878  am_cv_CC_dependencies_compiler_type=none
3879fi
3880
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886 if
3887  test "x$enable_dependency_tracking" != xno \
3888  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889  am__fastdepCC_TRUE=
3890  am__fastdepCC_FALSE='#'
3891else
3892  am__fastdepCC_TRUE='#'
3893  am__fastdepCC_FALSE=
3894fi
3895
3896
3897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3898$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3899if ${ac_cv_prog_cc_c99+:} false; then :
3900  $as_echo_n "(cached) " >&6
3901else
3902  ac_cv_prog_cc_c99=no
3903ac_save_CC=$CC
3904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h.  */
3906#include <stdarg.h>
3907#include <stdbool.h>
3908#include <stdlib.h>
3909#include <wchar.h>
3910#include <stdio.h>
3911
3912// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3913#define debug(...) fprintf (stderr, __VA_ARGS__)
3914#define showlist(...) puts (#__VA_ARGS__)
3915#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3916static void
3917test_varargs_macros (void)
3918{
3919  int x = 1234;
3920  int y = 5678;
3921  debug ("Flag");
3922  debug ("X = %d\n", x);
3923  showlist (The first, second, and third items.);
3924  report (x>y, "x is %d but y is %d", x, y);
3925}
3926
3927// Check long long types.
3928#define BIG64 18446744073709551615ull
3929#define BIG32 4294967295ul
3930#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3931#if !BIG_OK
3932  your preprocessor is broken;
3933#endif
3934#if BIG_OK
3935#else
3936  your preprocessor is broken;
3937#endif
3938static long long int bignum = -9223372036854775807LL;
3939static unsigned long long int ubignum = BIG64;
3940
3941struct incomplete_array
3942{
3943  int datasize;
3944  double data[];
3945};
3946
3947struct named_init {
3948  int number;
3949  const wchar_t *name;
3950  double average;
3951};
3952
3953typedef const char *ccp;
3954
3955static inline int
3956test_restrict (ccp restrict text)
3957{
3958  // See if C++-style comments work.
3959  // Iterate through items via the restricted pointer.
3960  // Also check for declarations in for loops.
3961  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3962    continue;
3963  return 0;
3964}
3965
3966// Check varargs and va_copy.
3967static void
3968test_varargs (const char *format, ...)
3969{
3970  va_list args;
3971  va_start (args, format);
3972  va_list args_copy;
3973  va_copy (args_copy, args);
3974
3975  const char *str;
3976  int number;
3977  float fnumber;
3978
3979  while (*format)
3980    {
3981      switch (*format++)
3982	{
3983	case 's': // string
3984	  str = va_arg (args_copy, const char *);
3985	  break;
3986	case 'd': // int
3987	  number = va_arg (args_copy, int);
3988	  break;
3989	case 'f': // float
3990	  fnumber = va_arg (args_copy, double);
3991	  break;
3992	default:
3993	  break;
3994	}
3995    }
3996  va_end (args_copy);
3997  va_end (args);
3998}
3999
4000int
4001main ()
4002{
4003
4004  // Check bool.
4005  _Bool success = false;
4006
4007  // Check restrict.
4008  if (test_restrict ("String literal") == 0)
4009    success = true;
4010  char *restrict newvar = "Another string";
4011
4012  // Check varargs.
4013  test_varargs ("s, d' f .", "string", 65, 34.234);
4014  test_varargs_macros ();
4015
4016  // Check flexible array members.
4017  struct incomplete_array *ia =
4018    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4019  ia->datasize = 10;
4020  for (int i = 0; i < ia->datasize; ++i)
4021    ia->data[i] = i * 1.234;
4022
4023  // Check named initializers.
4024  struct named_init ni = {
4025    .number = 34,
4026    .name = L"Test wide string",
4027    .average = 543.34343,
4028  };
4029
4030  ni.number = 58;
4031
4032  int dynamic_array[ni.number];
4033  dynamic_array[ni.number - 1] = 543;
4034
4035  // work around unused variable warnings
4036  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4037	  || dynamic_array[ni.number - 1] != 543);
4038
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4044do
4045  CC="$ac_save_CC $ac_arg"
4046  if ac_fn_c_try_compile "$LINENO"; then :
4047  ac_cv_prog_cc_c99=$ac_arg
4048fi
4049rm -f core conftest.err conftest.$ac_objext
4050  test "x$ac_cv_prog_cc_c99" != "xno" && break
4051done
4052rm -f conftest.$ac_ext
4053CC=$ac_save_CC
4054
4055fi
4056# AC_CACHE_VAL
4057case "x$ac_cv_prog_cc_c99" in
4058  x)
4059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060$as_echo "none needed" >&6; } ;;
4061  xno)
4062    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063$as_echo "unsupported" >&6; } ;;
4064  *)
4065    CC="$CC $ac_cv_prog_cc_c99"
4066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4067$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4068esac
4069if test "x$ac_cv_prog_cc_c99" != xno; then :
4070
4071fi
4072
4073
4074
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4081$as_echo_n "checking how to run the C preprocessor... " >&6; }
4082# On Suns, sometimes $CPP names a directory.
4083if test -n "$CPP" && test -d "$CPP"; then
4084  CPP=
4085fi
4086if test -z "$CPP"; then
4087  if ${ac_cv_prog_CPP+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090      # Double quotes because CPP needs to be expanded
4091    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4092    do
4093      ac_preproc_ok=false
4094for ac_c_preproc_warn_flag in '' yes
4095do
4096  # Use a header file that comes with gcc, so configuring glibc
4097  # with a fresh cross-compiler works.
4098  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099  # <limits.h> exists even on freestanding compilers.
4100  # On the NeXT, cc -E runs the code through the compiler's parser,
4101  # not just through cpp. "Syntax error" is here to catch this case.
4102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103/* end confdefs.h.  */
4104#ifdef __STDC__
4105# include <limits.h>
4106#else
4107# include <assert.h>
4108#endif
4109		     Syntax error
4110_ACEOF
4111if ac_fn_c_try_cpp "$LINENO"; then :
4112
4113else
4114  # Broken: fails on valid input.
4115continue
4116fi
4117rm -f conftest.err conftest.i conftest.$ac_ext
4118
4119  # OK, works on sane cases.  Now check whether nonexistent headers
4120  # can be detected and how.
4121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#include <ac_nonexistent.h>
4124_ACEOF
4125if ac_fn_c_try_cpp "$LINENO"; then :
4126  # Broken: success on invalid input.
4127continue
4128else
4129  # Passes both tests.
4130ac_preproc_ok=:
4131break
4132fi
4133rm -f conftest.err conftest.i conftest.$ac_ext
4134
4135done
4136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4137rm -f conftest.i conftest.err conftest.$ac_ext
4138if $ac_preproc_ok; then :
4139  break
4140fi
4141
4142    done
4143    ac_cv_prog_CPP=$CPP
4144
4145fi
4146  CPP=$ac_cv_prog_CPP
4147else
4148  ac_cv_prog_CPP=$CPP
4149fi
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4151$as_echo "$CPP" >&6; }
4152ac_preproc_ok=false
4153for ac_c_preproc_warn_flag in '' yes
4154do
4155  # Use a header file that comes with gcc, so configuring glibc
4156  # with a fresh cross-compiler works.
4157  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158  # <limits.h> exists even on freestanding compilers.
4159  # On the NeXT, cc -E runs the code through the compiler's parser,
4160  # not just through cpp. "Syntax error" is here to catch this case.
4161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163#ifdef __STDC__
4164# include <limits.h>
4165#else
4166# include <assert.h>
4167#endif
4168		     Syntax error
4169_ACEOF
4170if ac_fn_c_try_cpp "$LINENO"; then :
4171
4172else
4173  # Broken: fails on valid input.
4174continue
4175fi
4176rm -f conftest.err conftest.i conftest.$ac_ext
4177
4178  # OK, works on sane cases.  Now check whether nonexistent headers
4179  # can be detected and how.
4180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h.  */
4182#include <ac_nonexistent.h>
4183_ACEOF
4184if ac_fn_c_try_cpp "$LINENO"; then :
4185  # Broken: success on invalid input.
4186continue
4187else
4188  # Passes both tests.
4189ac_preproc_ok=:
4190break
4191fi
4192rm -f conftest.err conftest.i conftest.$ac_ext
4193
4194done
4195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4196rm -f conftest.i conftest.err conftest.$ac_ext
4197if $ac_preproc_ok; then :
4198
4199else
4200  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4202as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4203See \`config.log' for more details" "$LINENO" 5; }
4204fi
4205
4206ac_ext=c
4207ac_cpp='$CPP $CPPFLAGS'
4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211
4212
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4214$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4215if ${ac_cv_path_GREP+:} false; then :
4216  $as_echo_n "(cached) " >&6
4217else
4218  if test -z "$GREP"; then
4219  ac_path_GREP_found=false
4220  # Loop through the user's path and test for each of PROGNAME-LIST
4221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223do
4224  IFS=$as_save_IFS
4225  test -z "$as_dir" && as_dir=.
4226    for ac_prog in grep ggrep; do
4227    for ac_exec_ext in '' $ac_executable_extensions; do
4228      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4229      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4230# Check for GNU ac_path_GREP and select it if it is found.
4231  # Check for GNU $ac_path_GREP
4232case `"$ac_path_GREP" --version 2>&1` in
4233*GNU*)
4234  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4235*)
4236  ac_count=0
4237  $as_echo_n 0123456789 >"conftest.in"
4238  while :
4239  do
4240    cat "conftest.in" "conftest.in" >"conftest.tmp"
4241    mv "conftest.tmp" "conftest.in"
4242    cp "conftest.in" "conftest.nl"
4243    $as_echo 'GREP' >> "conftest.nl"
4244    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246    as_fn_arith $ac_count + 1 && ac_count=$as_val
4247    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248      # Best one so far, save it but keep looking for a better one
4249      ac_cv_path_GREP="$ac_path_GREP"
4250      ac_path_GREP_max=$ac_count
4251    fi
4252    # 10*(2^10) chars as input seems more than enough
4253    test $ac_count -gt 10 && break
4254  done
4255  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256esac
4257
4258      $ac_path_GREP_found && break 3
4259    done
4260  done
4261  done
4262IFS=$as_save_IFS
4263  if test -z "$ac_cv_path_GREP"; then
4264    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265  fi
4266else
4267  ac_cv_path_GREP=$GREP
4268fi
4269
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4272$as_echo "$ac_cv_path_GREP" >&6; }
4273 GREP="$ac_cv_path_GREP"
4274
4275
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4277$as_echo_n "checking for egrep... " >&6; }
4278if ${ac_cv_path_EGREP+:} false; then :
4279  $as_echo_n "(cached) " >&6
4280else
4281  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4282   then ac_cv_path_EGREP="$GREP -E"
4283   else
4284     if test -z "$EGREP"; then
4285  ac_path_EGREP_found=false
4286  # Loop through the user's path and test for each of PROGNAME-LIST
4287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292    for ac_prog in egrep; do
4293    for ac_exec_ext in '' $ac_executable_extensions; do
4294      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4295      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4296# Check for GNU ac_path_EGREP and select it if it is found.
4297  # Check for GNU $ac_path_EGREP
4298case `"$ac_path_EGREP" --version 2>&1` in
4299*GNU*)
4300  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4301*)
4302  ac_count=0
4303  $as_echo_n 0123456789 >"conftest.in"
4304  while :
4305  do
4306    cat "conftest.in" "conftest.in" >"conftest.tmp"
4307    mv "conftest.tmp" "conftest.in"
4308    cp "conftest.in" "conftest.nl"
4309    $as_echo 'EGREP' >> "conftest.nl"
4310    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312    as_fn_arith $ac_count + 1 && ac_count=$as_val
4313    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4314      # Best one so far, save it but keep looking for a better one
4315      ac_cv_path_EGREP="$ac_path_EGREP"
4316      ac_path_EGREP_max=$ac_count
4317    fi
4318    # 10*(2^10) chars as input seems more than enough
4319    test $ac_count -gt 10 && break
4320  done
4321  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322esac
4323
4324      $ac_path_EGREP_found && break 3
4325    done
4326  done
4327  done
4328IFS=$as_save_IFS
4329  if test -z "$ac_cv_path_EGREP"; then
4330    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331  fi
4332else
4333  ac_cv_path_EGREP=$EGREP
4334fi
4335
4336   fi
4337fi
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4339$as_echo "$ac_cv_path_EGREP" >&6; }
4340 EGREP="$ac_cv_path_EGREP"
4341
4342
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4344$as_echo_n "checking for ANSI C header files... " >&6; }
4345if ${ac_cv_header_stdc+:} false; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349/* end confdefs.h.  */
4350#include <stdlib.h>
4351#include <stdarg.h>
4352#include <string.h>
4353#include <float.h>
4354
4355int
4356main ()
4357{
4358
4359  ;
4360  return 0;
4361}
4362_ACEOF
4363if ac_fn_c_try_compile "$LINENO"; then :
4364  ac_cv_header_stdc=yes
4365else
4366  ac_cv_header_stdc=no
4367fi
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369
4370if test $ac_cv_header_stdc = yes; then
4371  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374#include <string.h>
4375
4376_ACEOF
4377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378  $EGREP "memchr" >/dev/null 2>&1; then :
4379
4380else
4381  ac_cv_header_stdc=no
4382fi
4383rm -f conftest*
4384
4385fi
4386
4387if test $ac_cv_header_stdc = yes; then
4388  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h.  */
4391#include <stdlib.h>
4392
4393_ACEOF
4394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4395  $EGREP "free" >/dev/null 2>&1; then :
4396
4397else
4398  ac_cv_header_stdc=no
4399fi
4400rm -f conftest*
4401
4402fi
4403
4404if test $ac_cv_header_stdc = yes; then
4405  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4406  if test "$cross_compiling" = yes; then :
4407  :
4408else
4409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h.  */
4411#include <ctype.h>
4412#include <stdlib.h>
4413#if ((' ' & 0x0FF) == 0x020)
4414# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4416#else
4417# define ISLOWER(c) \
4418		   (('a' <= (c) && (c) <= 'i') \
4419		     || ('j' <= (c) && (c) <= 'r') \
4420		     || ('s' <= (c) && (c) <= 'z'))
4421# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422#endif
4423
4424#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4425int
4426main ()
4427{
4428  int i;
4429  for (i = 0; i < 256; i++)
4430    if (XOR (islower (i), ISLOWER (i))
4431	|| toupper (i) != TOUPPER (i))
4432      return 2;
4433  return 0;
4434}
4435_ACEOF
4436if ac_fn_c_try_run "$LINENO"; then :
4437
4438else
4439  ac_cv_header_stdc=no
4440fi
4441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4442  conftest.$ac_objext conftest.beam conftest.$ac_ext
4443fi
4444
4445fi
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4448$as_echo "$ac_cv_header_stdc" >&6; }
4449if test $ac_cv_header_stdc = yes; then
4450
4451$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4452
4453fi
4454
4455# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4456for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4457		  inttypes.h stdint.h unistd.h
4458do :
4459  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4460ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4461"
4462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4463  cat >>confdefs.h <<_ACEOF
4464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465_ACEOF
4466
4467fi
4468
4469done
4470
4471
4472
4473
4474if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4475	if test -n "$ac_tool_prefix"; then
4476  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4477set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479$as_echo_n "checking for $ac_word... " >&6; }
4480if ${ac_cv_path_PKG_CONFIG+:} false; then :
4481  $as_echo_n "(cached) " >&6
4482else
4483  case $PKG_CONFIG in
4484  [\\/]* | ?:[\\/]*)
4485  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4486  ;;
4487  *)
4488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491  IFS=$as_save_IFS
4492  test -z "$as_dir" && as_dir=.
4493    for ac_exec_ext in '' $ac_executable_extensions; do
4494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497    break 2
4498  fi
4499done
4500  done
4501IFS=$as_save_IFS
4502
4503  ;;
4504esac
4505fi
4506PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4507if test -n "$PKG_CONFIG"; then
4508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4509$as_echo "$PKG_CONFIG" >&6; }
4510else
4511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512$as_echo "no" >&6; }
4513fi
4514
4515
4516fi
4517if test -z "$ac_cv_path_PKG_CONFIG"; then
4518  ac_pt_PKG_CONFIG=$PKG_CONFIG
4519  # Extract the first word of "pkg-config", so it can be a program name with args.
4520set dummy pkg-config; ac_word=$2
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522$as_echo_n "checking for $ac_word... " >&6; }
4523if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4524  $as_echo_n "(cached) " >&6
4525else
4526  case $ac_pt_PKG_CONFIG in
4527  [\\/]* | ?:[\\/]*)
4528  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4529  ;;
4530  *)
4531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534  IFS=$as_save_IFS
4535  test -z "$as_dir" && as_dir=.
4536    for ac_exec_ext in '' $ac_executable_extensions; do
4537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540    break 2
4541  fi
4542done
4543  done
4544IFS=$as_save_IFS
4545
4546  ;;
4547esac
4548fi
4549ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4550if test -n "$ac_pt_PKG_CONFIG"; then
4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4552$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4553else
4554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; }
4556fi
4557
4558  if test "x$ac_pt_PKG_CONFIG" = x; then
4559    PKG_CONFIG=""
4560  else
4561    case $cross_compiling:$ac_tool_warned in
4562yes:)
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4565ac_tool_warned=yes ;;
4566esac
4567    PKG_CONFIG=$ac_pt_PKG_CONFIG
4568  fi
4569else
4570  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4571fi
4572
4573fi
4574if test -n "$PKG_CONFIG"; then
4575	_pkg_min_version=0.9.0
4576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4577$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4578	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4579		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580$as_echo "yes" >&6; }
4581	else
4582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584		PKG_CONFIG=""
4585	fi
4586
4587fi
4588# Make sure we can run config.sub.
4589$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4590  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4591
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4593$as_echo_n "checking build system type... " >&6; }
4594if ${ac_cv_build+:} false; then :
4595  $as_echo_n "(cached) " >&6
4596else
4597  ac_build_alias=$build_alias
4598test "x$ac_build_alias" = x &&
4599  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4600test "x$ac_build_alias" = x &&
4601  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4602ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4603  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4604
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4607$as_echo "$ac_cv_build" >&6; }
4608case $ac_cv_build in
4609*-*-*) ;;
4610*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4611esac
4612build=$ac_cv_build
4613ac_save_IFS=$IFS; IFS='-'
4614set x $ac_cv_build
4615shift
4616build_cpu=$1
4617build_vendor=$2
4618shift; shift
4619# Remember, the first character of IFS is used to create $*,
4620# except with old shells:
4621build_os=$*
4622IFS=$ac_save_IFS
4623case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4624
4625
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4627$as_echo_n "checking host system type... " >&6; }
4628if ${ac_cv_host+:} false; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631  if test "x$host_alias" = x; then
4632  ac_cv_host=$ac_cv_build
4633else
4634  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4635    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4636fi
4637
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4640$as_echo "$ac_cv_host" >&6; }
4641case $ac_cv_host in
4642*-*-*) ;;
4643*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4644esac
4645host=$ac_cv_host
4646ac_save_IFS=$IFS; IFS='-'
4647set x $ac_cv_host
4648shift
4649host_cpu=$1
4650host_vendor=$2
4651shift; shift
4652# Remember, the first character of IFS is used to create $*,
4653# except with old shells:
4654host_os=$*
4655IFS=$ac_save_IFS
4656case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4657
4658
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4660$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4661if ${ac_cv_path_SED+:} false; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4665     for ac_i in 1 2 3 4 5 6 7; do
4666       ac_script="$ac_script$as_nl$ac_script"
4667     done
4668     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4669     { ac_script=; unset ac_script;}
4670     if test -z "$SED"; then
4671  ac_path_SED_found=false
4672  # Loop through the user's path and test for each of PROGNAME-LIST
4673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676  IFS=$as_save_IFS
4677  test -z "$as_dir" && as_dir=.
4678    for ac_prog in sed gsed; do
4679    for ac_exec_ext in '' $ac_executable_extensions; do
4680      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4681      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4682# Check for GNU ac_path_SED and select it if it is found.
4683  # Check for GNU $ac_path_SED
4684case `"$ac_path_SED" --version 2>&1` in
4685*GNU*)
4686  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4687*)
4688  ac_count=0
4689  $as_echo_n 0123456789 >"conftest.in"
4690  while :
4691  do
4692    cat "conftest.in" "conftest.in" >"conftest.tmp"
4693    mv "conftest.tmp" "conftest.in"
4694    cp "conftest.in" "conftest.nl"
4695    $as_echo '' >> "conftest.nl"
4696    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698    as_fn_arith $ac_count + 1 && ac_count=$as_val
4699    if test $ac_count -gt ${ac_path_SED_max-0}; then
4700      # Best one so far, save it but keep looking for a better one
4701      ac_cv_path_SED="$ac_path_SED"
4702      ac_path_SED_max=$ac_count
4703    fi
4704    # 10*(2^10) chars as input seems more than enough
4705    test $ac_count -gt 10 && break
4706  done
4707  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708esac
4709
4710      $ac_path_SED_found && break 3
4711    done
4712  done
4713  done
4714IFS=$as_save_IFS
4715  if test -z "$ac_cv_path_SED"; then
4716    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4717  fi
4718else
4719  ac_cv_path_SED=$SED
4720fi
4721
4722fi
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4724$as_echo "$ac_cv_path_SED" >&6; }
4725 SED="$ac_cv_path_SED"
4726  rm -f conftest.sed
4727
4728
4729
4730
4731
4732if  test "x$GCC" = xyes ; then
4733    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4734-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4735-Wbad-function-cast -Wformat=2"
4736    case `$CC -dumpversion` in
4737    3.4.* | 4.*)
4738	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4739	;;
4740    esac
4741else
4742    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4743if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4744  SUNCC="yes"
4745else
4746  SUNCC="no"
4747fi
4748
4749    if test "x$SUNCC" = "xyes"; then
4750	CWARNFLAGS="-v"
4751    fi
4752fi
4753
4754
4755
4756# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4757
4758
4759
4760# Check whether --enable-strict-compilation was given.
4761if test "${enable_strict_compilation+set}" = set; then :
4762  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4763else
4764  STRICT_COMPILE=no
4765fi
4766
4767if test "x$STRICT_COMPILE" = "xyes"; then
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	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4776if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4777  INTELCC="yes"
4778else
4779  INTELCC="no"
4780fi
4781
4782	if test "x$GCC" = xyes ; then
4783		STRICT_CFLAGS="-pedantic -Werror"
4784	elif test "x$SUNCC" = "xyes"; then
4785		STRICT_CFLAGS="-errwarn"
4786    elif test "x$INTELCC" = "xyes"; then
4787		STRICT_CFLAGS="-Werror"
4788	fi
4789fi
4790CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4791
4792
4793
4794
4795cat >>confdefs.h <<_ACEOF
4796#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4797_ACEOF
4798
4799	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4800	if test "x$PVM" = "x"; then
4801		PVM="0"
4802	fi
4803
4804cat >>confdefs.h <<_ACEOF
4805#define PACKAGE_VERSION_MINOR $PVM
4806_ACEOF
4807
4808	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4809	if test "x$PVP" = "x"; then
4810		PVP="0"
4811	fi
4812
4813cat >>confdefs.h <<_ACEOF
4814#define PACKAGE_VERSION_PATCHLEVEL $PVP
4815_ACEOF
4816
4817
4818
4819CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4820mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4821|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4822echo 'git directory not found: installing possibly empty changelog.' >&2)"
4823
4824
4825
4826
4827macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4828INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4829mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4830|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4831echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4832
4833
4834
4835
4836
4837
4838if test x$APP_MAN_SUFFIX = x    ; then
4839    APP_MAN_SUFFIX=1
4840fi
4841if test x$APP_MAN_DIR = x    ; then
4842    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4843fi
4844
4845if test x$LIB_MAN_SUFFIX = x    ; then
4846    LIB_MAN_SUFFIX=3
4847fi
4848if test x$LIB_MAN_DIR = x    ; then
4849    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4850fi
4851
4852if test x$FILE_MAN_SUFFIX = x    ; then
4853    case $host_os in
4854	solaris*)	FILE_MAN_SUFFIX=4  ;;
4855	*)		FILE_MAN_SUFFIX=5  ;;
4856    esac
4857fi
4858if test x$FILE_MAN_DIR = x    ; then
4859    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4860fi
4861
4862if test x$MISC_MAN_SUFFIX = x    ; then
4863    case $host_os in
4864	solaris*)	MISC_MAN_SUFFIX=5  ;;
4865	*)		MISC_MAN_SUFFIX=7  ;;
4866    esac
4867fi
4868if test x$MISC_MAN_DIR = x    ; then
4869    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4870fi
4871
4872if test x$DRIVER_MAN_SUFFIX = x    ; then
4873    case $host_os in
4874	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4875	*)		DRIVER_MAN_SUFFIX=4  ;;
4876    esac
4877fi
4878if test x$DRIVER_MAN_DIR = x    ; then
4879    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4880fi
4881
4882if test x$ADMIN_MAN_SUFFIX = x    ; then
4883    case $host_os in
4884	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4885	*)		ADMIN_MAN_SUFFIX=8  ;;
4886    esac
4887fi
4888if test x$ADMIN_MAN_DIR = x    ; then
4889    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4890fi
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906XORG_MAN_PAGE="X Version 11"
4907
4908MAN_SUBSTS="\
4909	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4910	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4911	-e 's|__xservername__|Xorg|g' \
4912	-e 's|__xconfigfile__|xorg.conf|g' \
4913	-e 's|__projectroot__|\$(prefix)|g' \
4914	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4915	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4916	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4917	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4918	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4919	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4920	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4921
4922
4923
4924# Check whether --enable-silent-rules was given.
4925if test "${enable_silent_rules+set}" = set; then :
4926  enableval=$enable_silent_rules;
4927fi
4928
4929case $enable_silent_rules in
4930yes) AM_DEFAULT_VERBOSITY=0;;
4931no)  AM_DEFAULT_VERBOSITY=1;;
4932*)   AM_DEFAULT_VERBOSITY=0;;
4933esac
4934AM_BACKSLASH='\'
4935
4936
4937
4938
4939# Check whether --enable-specs was given.
4940if test "${enable_specs+set}" = set; then :
4941  enableval=$enable_specs; build_specs=$enableval
4942else
4943  build_specs=yes
4944fi
4945
4946
4947 if test x$build_specs = xyes; then
4948  ENABLE_SPECS_TRUE=
4949  ENABLE_SPECS_FALSE='#'
4950else
4951  ENABLE_SPECS_TRUE='#'
4952  ENABLE_SPECS_FALSE=
4953fi
4954
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
4956$as_echo_n "checking whether to build functional specifications... " >&6; }
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
4958$as_echo "$build_specs" >&6; }
4959
4960
4961
4962
4963
4964# Check whether --with-xmlto was given.
4965if test "${with_xmlto+set}" = set; then :
4966  withval=$with_xmlto; use_xmlto=$withval
4967else
4968  use_xmlto=auto
4969fi
4970
4971
4972
4973if test "x$use_xmlto" = x"auto"; then
4974   # Extract the first word of "xmlto", so it can be a program name with args.
4975set dummy xmlto; ac_word=$2
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977$as_echo_n "checking for $ac_word... " >&6; }
4978if ${ac_cv_path_XMLTO+:} false; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  case $XMLTO in
4982  [\\/]* | ?:[\\/]*)
4983  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
4984  ;;
4985  *)
4986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989  IFS=$as_save_IFS
4990  test -z "$as_dir" && as_dir=.
4991    for ac_exec_ext in '' $ac_executable_extensions; do
4992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
4994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995    break 2
4996  fi
4997done
4998  done
4999IFS=$as_save_IFS
5000
5001  ;;
5002esac
5003fi
5004XMLTO=$ac_cv_path_XMLTO
5005if test -n "$XMLTO"; then
5006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5007$as_echo "$XMLTO" >&6; }
5008else
5009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010$as_echo "no" >&6; }
5011fi
5012
5013
5014   if test "x$XMLTO" = "x"; then
5015        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
5016$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
5017	have_xmlto=no
5018   else
5019        have_xmlto=yes
5020   fi
5021elif test "x$use_xmlto" = x"yes" ; then
5022   # Extract the first word of "xmlto", so it can be a program name with args.
5023set dummy xmlto; ac_word=$2
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025$as_echo_n "checking for $ac_word... " >&6; }
5026if ${ac_cv_path_XMLTO+:} false; then :
5027  $as_echo_n "(cached) " >&6
5028else
5029  case $XMLTO in
5030  [\\/]* | ?:[\\/]*)
5031  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5032  ;;
5033  *)
5034  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037  IFS=$as_save_IFS
5038  test -z "$as_dir" && as_dir=.
5039    for ac_exec_ext in '' $ac_executable_extensions; do
5040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043    break 2
5044  fi
5045done
5046  done
5047IFS=$as_save_IFS
5048
5049  ;;
5050esac
5051fi
5052XMLTO=$ac_cv_path_XMLTO
5053if test -n "$XMLTO"; then
5054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5055$as_echo "$XMLTO" >&6; }
5056else
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058$as_echo "no" >&6; }
5059fi
5060
5061
5062   if test "x$XMLTO" = "x"; then
5063        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
5064   fi
5065   have_xmlto=yes
5066elif test "x$use_xmlto" = x"no" ; then
5067   if test "x$XMLTO" != "x"; then
5068      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
5069$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
5070   fi
5071   have_xmlto=no
5072else
5073   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
5074fi
5075
5076# Test for a minimum version of xmlto, if provided.
5077if test "$have_xmlto" = yes; then
5078    # scrape the xmlto version
5079    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
5080$as_echo_n "checking the xmlto version... " >&6; }
5081    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
5082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
5083$as_echo "$xmlto_version" >&6; }
5084    as_arg_v1=$xmlto_version
5085as_arg_v2=0.0.20
5086awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5087case $? in #(
5088  1) :
5089    if test "x$use_xmlto" = xauto; then
5090            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
5091$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
5092            have_xmlto=no
5093        else
5094            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
5095        fi ;; #(
5096  0) :
5097     ;; #(
5098  2) :
5099     ;; #(
5100  *) :
5101     ;;
5102esac
5103fi
5104
5105# Test for the ability of xmlto to generate a text target
5106have_xmlto_text=no
5107cat > conftest.xml << "EOF"
5108EOF
5109if test "$have_xmlto" = yes; then :
5110  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
5111  have_xmlto_text=yes
5112else
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
5114$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
5115fi
5116fi
5117rm -f conftest.xml
5118 if test $have_xmlto_text = yes; then
5119  HAVE_XMLTO_TEXT_TRUE=
5120  HAVE_XMLTO_TEXT_FALSE='#'
5121else
5122  HAVE_XMLTO_TEXT_TRUE='#'
5123  HAVE_XMLTO_TEXT_FALSE=
5124fi
5125
5126 if test "$have_xmlto" = yes; then
5127  HAVE_XMLTO_TRUE=
5128  HAVE_XMLTO_FALSE='#'
5129else
5130  HAVE_XMLTO_TRUE='#'
5131  HAVE_XMLTO_FALSE=
5132fi
5133
5134
5135
5136
5137
5138
5139# Check whether --with-fop was given.
5140if test "${with_fop+set}" = set; then :
5141  withval=$with_fop; use_fop=$withval
5142else
5143  use_fop=auto
5144fi
5145
5146
5147
5148if test "x$use_fop" = x"auto"; then
5149   # Extract the first word of "fop", so it can be a program name with args.
5150set dummy fop; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if ${ac_cv_path_FOP+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  case $FOP in
5157  [\\/]* | ?:[\\/]*)
5158  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5159  ;;
5160  *)
5161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164  IFS=$as_save_IFS
5165  test -z "$as_dir" && as_dir=.
5166    for ac_exec_ext in '' $ac_executable_extensions; do
5167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170    break 2
5171  fi
5172done
5173  done
5174IFS=$as_save_IFS
5175
5176  ;;
5177esac
5178fi
5179FOP=$ac_cv_path_FOP
5180if test -n "$FOP"; then
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5182$as_echo "$FOP" >&6; }
5183else
5184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
5186fi
5187
5188
5189   if test "x$FOP" = "x"; then
5190        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
5191$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5192	have_fop=no
5193   else
5194        have_fop=yes
5195   fi
5196elif test "x$use_fop" = x"yes" ; then
5197   # Extract the first word of "fop", so it can be a program name with args.
5198set dummy fop; ac_word=$2
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200$as_echo_n "checking for $ac_word... " >&6; }
5201if ${ac_cv_path_FOP+:} false; then :
5202  $as_echo_n "(cached) " >&6
5203else
5204  case $FOP in
5205  [\\/]* | ?:[\\/]*)
5206  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5207  ;;
5208  *)
5209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212  IFS=$as_save_IFS
5213  test -z "$as_dir" && as_dir=.
5214    for ac_exec_ext in '' $ac_executable_extensions; do
5215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218    break 2
5219  fi
5220done
5221  done
5222IFS=$as_save_IFS
5223
5224  ;;
5225esac
5226fi
5227FOP=$ac_cv_path_FOP
5228if test -n "$FOP"; then
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5230$as_echo "$FOP" >&6; }
5231else
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }
5234fi
5235
5236
5237   if test "x$FOP" = "x"; then
5238        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
5239   fi
5240   have_fop=yes
5241elif test "x$use_fop" = x"no" ; then
5242   if test "x$FOP" != "x"; then
5243      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5244$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5245   fi
5246   have_fop=no
5247else
5248   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
5249fi
5250 if test "$have_fop" = yes; then
5251  HAVE_FOP_TRUE=
5252  HAVE_FOP_FALSE='#'
5253else
5254  HAVE_FOP_TRUE='#'
5255  HAVE_FOP_FALSE=
5256fi
5257
5258
5259
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
5261$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
5262XORG_SGML_PATH=
5263if test -n "$PKG_CONFIG" && \
5264    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
5265  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
5266  ac_status=$?
5267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268  test $ac_status = 0; }; then
5269  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
5270else
5271  :
5272
5273fi
5274
5275# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
5276# the path and the name of the doc stylesheet
5277if test "x$XORG_SGML_PATH" != "x" ; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
5279$as_echo "$XORG_SGML_PATH" >&6; }
5280   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
5281   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
5282else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284$as_echo "no" >&6; }
5285fi
5286
5287
5288
5289
5290 if test "x$XSL_STYLESHEET" != "x"; then
5291  HAVE_STYLESHEETS_TRUE=
5292  HAVE_STYLESHEETS_FALSE='#'
5293else
5294  HAVE_STYLESHEETS_TRUE='#'
5295  HAVE_STYLESHEETS_FALSE=
5296fi
5297
5298
5299
5300# Check for progs
5301case `pwd` in
5302  *\ * | *\	*)
5303    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5304$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5305esac
5306
5307
5308
5309macro_version='2.4'
5310macro_revision='1.3293'
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324ltmain="$ac_aux_dir/ltmain.sh"
5325
5326# Backslashify metacharacters that are still active within
5327# double-quoted strings.
5328sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5329
5330# Same as above, but do not quote variable references.
5331double_quote_subst='s/\(["`\\]\)/\\\1/g'
5332
5333# Sed substitution to delay expansion of an escaped shell variable in a
5334# double_quote_subst'ed string.
5335delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5336
5337# Sed substitution to delay expansion of an escaped single quote.
5338delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5339
5340# Sed substitution to avoid accidental globbing in evaled expressions
5341no_glob_subst='s/\*/\\\*/g'
5342
5343ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5344ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5345ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5346
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5348$as_echo_n "checking how to print strings... " >&6; }
5349# Test print first, because it will be a builtin if present.
5350if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5351   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5352  ECHO='print -r --'
5353elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5354  ECHO='printf %s\n'
5355else
5356  # Use this function as a fallback that always works.
5357  func_fallback_echo ()
5358  {
5359    eval 'cat <<_LTECHO_EOF
5360$1
5361_LTECHO_EOF'
5362  }
5363  ECHO='func_fallback_echo'
5364fi
5365
5366# func_echo_all arg...
5367# Invoke $ECHO with all args, space-separated.
5368func_echo_all ()
5369{
5370    $ECHO ""
5371}
5372
5373case "$ECHO" in
5374  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5375$as_echo "printf" >&6; } ;;
5376  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5377$as_echo "print -r" >&6; } ;;
5378  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5379$as_echo "cat" >&6; } ;;
5380esac
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5396$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5397if ${ac_cv_path_SED+:} false; then :
5398  $as_echo_n "(cached) " >&6
5399else
5400            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5401     for ac_i in 1 2 3 4 5 6 7; do
5402       ac_script="$ac_script$as_nl$ac_script"
5403     done
5404     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5405     { ac_script=; unset ac_script;}
5406     if test -z "$SED"; then
5407  ac_path_SED_found=false
5408  # Loop through the user's path and test for each of PROGNAME-LIST
5409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414    for ac_prog in sed gsed; do
5415    for ac_exec_ext in '' $ac_executable_extensions; do
5416      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5417      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5418# Check for GNU ac_path_SED and select it if it is found.
5419  # Check for GNU $ac_path_SED
5420case `"$ac_path_SED" --version 2>&1` in
5421*GNU*)
5422  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5423*)
5424  ac_count=0
5425  $as_echo_n 0123456789 >"conftest.in"
5426  while :
5427  do
5428    cat "conftest.in" "conftest.in" >"conftest.tmp"
5429    mv "conftest.tmp" "conftest.in"
5430    cp "conftest.in" "conftest.nl"
5431    $as_echo '' >> "conftest.nl"
5432    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5433    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5434    as_fn_arith $ac_count + 1 && ac_count=$as_val
5435    if test $ac_count -gt ${ac_path_SED_max-0}; then
5436      # Best one so far, save it but keep looking for a better one
5437      ac_cv_path_SED="$ac_path_SED"
5438      ac_path_SED_max=$ac_count
5439    fi
5440    # 10*(2^10) chars as input seems more than enough
5441    test $ac_count -gt 10 && break
5442  done
5443  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5444esac
5445
5446      $ac_path_SED_found && break 3
5447    done
5448  done
5449  done
5450IFS=$as_save_IFS
5451  if test -z "$ac_cv_path_SED"; then
5452    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5453  fi
5454else
5455  ac_cv_path_SED=$SED
5456fi
5457
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5460$as_echo "$ac_cv_path_SED" >&6; }
5461 SED="$ac_cv_path_SED"
5462  rm -f conftest.sed
5463
5464test -z "$SED" && SED=sed
5465Xsed="$SED -e 1s/^X//"
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5478$as_echo_n "checking for fgrep... " >&6; }
5479if ${ac_cv_path_FGREP+:} false; then :
5480  $as_echo_n "(cached) " >&6
5481else
5482  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5483   then ac_cv_path_FGREP="$GREP -F"
5484   else
5485     if test -z "$FGREP"; then
5486  ac_path_FGREP_found=false
5487  # Loop through the user's path and test for each of PROGNAME-LIST
5488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5490do
5491  IFS=$as_save_IFS
5492  test -z "$as_dir" && as_dir=.
5493    for ac_prog in fgrep; do
5494    for ac_exec_ext in '' $ac_executable_extensions; do
5495      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5496      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5497# Check for GNU ac_path_FGREP and select it if it is found.
5498  # Check for GNU $ac_path_FGREP
5499case `"$ac_path_FGREP" --version 2>&1` in
5500*GNU*)
5501  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5502*)
5503  ac_count=0
5504  $as_echo_n 0123456789 >"conftest.in"
5505  while :
5506  do
5507    cat "conftest.in" "conftest.in" >"conftest.tmp"
5508    mv "conftest.tmp" "conftest.in"
5509    cp "conftest.in" "conftest.nl"
5510    $as_echo 'FGREP' >> "conftest.nl"
5511    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5512    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5513    as_fn_arith $ac_count + 1 && ac_count=$as_val
5514    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5515      # Best one so far, save it but keep looking for a better one
5516      ac_cv_path_FGREP="$ac_path_FGREP"
5517      ac_path_FGREP_max=$ac_count
5518    fi
5519    # 10*(2^10) chars as input seems more than enough
5520    test $ac_count -gt 10 && break
5521  done
5522  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5523esac
5524
5525      $ac_path_FGREP_found && break 3
5526    done
5527  done
5528  done
5529IFS=$as_save_IFS
5530  if test -z "$ac_cv_path_FGREP"; then
5531    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5532  fi
5533else
5534  ac_cv_path_FGREP=$FGREP
5535fi
5536
5537   fi
5538fi
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5540$as_echo "$ac_cv_path_FGREP" >&6; }
5541 FGREP="$ac_cv_path_FGREP"
5542
5543
5544test -z "$GREP" && GREP=grep
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564# Check whether --with-gnu-ld was given.
5565if test "${with_gnu_ld+set}" = set; then :
5566  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5567else
5568  with_gnu_ld=no
5569fi
5570
5571ac_prog=ld
5572if test "$GCC" = yes; then
5573  # Check if gcc -print-prog-name=ld gives a path.
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5575$as_echo_n "checking for ld used by $CC... " >&6; }
5576  case $host in
5577  *-*-mingw*)
5578    # gcc leaves a trailing carriage return which upsets mingw
5579    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5580  *)
5581    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5582  esac
5583  case $ac_prog in
5584    # Accept absolute paths.
5585    [\\/]* | ?:[\\/]*)
5586      re_direlt='/[^/][^/]*/\.\./'
5587      # Canonicalize the pathname of ld
5588      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5589      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5590	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5591      done
5592      test -z "$LD" && LD="$ac_prog"
5593      ;;
5594  "")
5595    # If it fails, then pretend we aren't using GCC.
5596    ac_prog=ld
5597    ;;
5598  *)
5599    # If it is relative, then search for the first ld in PATH.
5600    with_gnu_ld=unknown
5601    ;;
5602  esac
5603elif test "$with_gnu_ld" = yes; then
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5605$as_echo_n "checking for GNU ld... " >&6; }
5606else
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5608$as_echo_n "checking for non-GNU ld... " >&6; }
5609fi
5610if ${lt_cv_path_LD+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  if test -z "$LD"; then
5614  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5615  for ac_dir in $PATH; do
5616    IFS="$lt_save_ifs"
5617    test -z "$ac_dir" && ac_dir=.
5618    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5619      lt_cv_path_LD="$ac_dir/$ac_prog"
5620      # Check to see if the program is GNU ld.  I'd rather use --version,
5621      # but apparently some variants of GNU ld only accept -v.
5622      # Break only if it was the GNU/non-GNU ld that we prefer.
5623      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5624      *GNU* | *'with BFD'*)
5625	test "$with_gnu_ld" != no && break
5626	;;
5627      *)
5628	test "$with_gnu_ld" != yes && break
5629	;;
5630      esac
5631    fi
5632  done
5633  IFS="$lt_save_ifs"
5634else
5635  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5636fi
5637fi
5638
5639LD="$lt_cv_path_LD"
5640if test -n "$LD"; then
5641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5642$as_echo "$LD" >&6; }
5643else
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645$as_echo "no" >&6; }
5646fi
5647test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5649$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5650if ${lt_cv_prog_gnu_ld+:} false; then :
5651  $as_echo_n "(cached) " >&6
5652else
5653  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5654case `$LD -v 2>&1 </dev/null` in
5655*GNU* | *'with BFD'*)
5656  lt_cv_prog_gnu_ld=yes
5657  ;;
5658*)
5659  lt_cv_prog_gnu_ld=no
5660  ;;
5661esac
5662fi
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5664$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5665with_gnu_ld=$lt_cv_prog_gnu_ld
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5676$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5677if ${lt_cv_path_NM+:} false; then :
5678  $as_echo_n "(cached) " >&6
5679else
5680  if test -n "$NM"; then
5681  # Let the user override the test.
5682  lt_cv_path_NM="$NM"
5683else
5684  lt_nm_to_check="${ac_tool_prefix}nm"
5685  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5686    lt_nm_to_check="$lt_nm_to_check nm"
5687  fi
5688  for lt_tmp_nm in $lt_nm_to_check; do
5689    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5690    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5691      IFS="$lt_save_ifs"
5692      test -z "$ac_dir" && ac_dir=.
5693      tmp_nm="$ac_dir/$lt_tmp_nm"
5694      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5695	# Check to see if the nm accepts a BSD-compat flag.
5696	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5697	#   nm: unknown option "B" ignored
5698	# Tru64's nm complains that /dev/null is an invalid object file
5699	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5700	*/dev/null* | *'Invalid file or object type'*)
5701	  lt_cv_path_NM="$tmp_nm -B"
5702	  break
5703	  ;;
5704	*)
5705	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5706	  */dev/null*)
5707	    lt_cv_path_NM="$tmp_nm -p"
5708	    break
5709	    ;;
5710	  *)
5711	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5712	    continue # so that we can try to find one that supports BSD flags
5713	    ;;
5714	  esac
5715	  ;;
5716	esac
5717      fi
5718    done
5719    IFS="$lt_save_ifs"
5720  done
5721  : ${lt_cv_path_NM=no}
5722fi
5723fi
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5725$as_echo "$lt_cv_path_NM" >&6; }
5726if test "$lt_cv_path_NM" != "no"; then
5727  NM="$lt_cv_path_NM"
5728else
5729  # Didn't find any BSD compatible name lister, look for dumpbin.
5730  if test -n "$DUMPBIN"; then :
5731    # Let the user override the test.
5732  else
5733    if test -n "$ac_tool_prefix"; then
5734  for ac_prog in dumpbin "link -dump"
5735  do
5736    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5737set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739$as_echo_n "checking for $ac_word... " >&6; }
5740if ${ac_cv_prog_DUMPBIN+:} false; then :
5741  $as_echo_n "(cached) " >&6
5742else
5743  if test -n "$DUMPBIN"; then
5744  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749  IFS=$as_save_IFS
5750  test -z "$as_dir" && as_dir=.
5751    for ac_exec_ext in '' $ac_executable_extensions; do
5752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755    break 2
5756  fi
5757done
5758  done
5759IFS=$as_save_IFS
5760
5761fi
5762fi
5763DUMPBIN=$ac_cv_prog_DUMPBIN
5764if test -n "$DUMPBIN"; then
5765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5766$as_echo "$DUMPBIN" >&6; }
5767else
5768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769$as_echo "no" >&6; }
5770fi
5771
5772
5773    test -n "$DUMPBIN" && break
5774  done
5775fi
5776if test -z "$DUMPBIN"; then
5777  ac_ct_DUMPBIN=$DUMPBIN
5778  for ac_prog in dumpbin "link -dump"
5779do
5780  # Extract the first word of "$ac_prog", so it can be a program name with args.
5781set dummy $ac_prog; ac_word=$2
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783$as_echo_n "checking for $ac_word... " >&6; }
5784if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  if test -n "$ac_ct_DUMPBIN"; then
5788  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5789else
5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793  IFS=$as_save_IFS
5794  test -z "$as_dir" && as_dir=.
5795    for ac_exec_ext in '' $ac_executable_extensions; do
5796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799    break 2
5800  fi
5801done
5802  done
5803IFS=$as_save_IFS
5804
5805fi
5806fi
5807ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5808if test -n "$ac_ct_DUMPBIN"; then
5809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5810$as_echo "$ac_ct_DUMPBIN" >&6; }
5811else
5812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813$as_echo "no" >&6; }
5814fi
5815
5816
5817  test -n "$ac_ct_DUMPBIN" && break
5818done
5819
5820  if test "x$ac_ct_DUMPBIN" = x; then
5821    DUMPBIN=":"
5822  else
5823    case $cross_compiling:$ac_tool_warned in
5824yes:)
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5827ac_tool_warned=yes ;;
5828esac
5829    DUMPBIN=$ac_ct_DUMPBIN
5830  fi
5831fi
5832
5833    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5834    *COFF*)
5835      DUMPBIN="$DUMPBIN -symbols"
5836      ;;
5837    *)
5838      DUMPBIN=:
5839      ;;
5840    esac
5841  fi
5842
5843  if test "$DUMPBIN" != ":"; then
5844    NM="$DUMPBIN"
5845  fi
5846fi
5847test -z "$NM" && NM=nm
5848
5849
5850
5851
5852
5853
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5855$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5856if ${lt_cv_nm_interface+:} false; then :
5857  $as_echo_n "(cached) " >&6
5858else
5859  lt_cv_nm_interface="BSD nm"
5860  echo "int some_variable = 0;" > conftest.$ac_ext
5861  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5862  (eval "$ac_compile" 2>conftest.err)
5863  cat conftest.err >&5
5864  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5865  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5866  cat conftest.err >&5
5867  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5868  cat conftest.out >&5
5869  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5870    lt_cv_nm_interface="MS dumpbin"
5871  fi
5872  rm -f conftest*
5873fi
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5875$as_echo "$lt_cv_nm_interface" >&6; }
5876
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5878$as_echo_n "checking whether ln -s works... " >&6; }
5879LN_S=$as_ln_s
5880if test "$LN_S" = "ln -s"; then
5881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5882$as_echo "yes" >&6; }
5883else
5884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5885$as_echo "no, using $LN_S" >&6; }
5886fi
5887
5888# find the maximum length of command line arguments
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5890$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5891if ${lt_cv_sys_max_cmd_len+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894    i=0
5895  teststring="ABCD"
5896
5897  case $build_os in
5898  msdosdjgpp*)
5899    # On DJGPP, this test can blow up pretty badly due to problems in libc
5900    # (any single argument exceeding 2000 bytes causes a buffer overrun
5901    # during glob expansion).  Even if it were fixed, the result of this
5902    # check would be larger than it should be.
5903    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5904    ;;
5905
5906  gnu*)
5907    # Under GNU Hurd, this test is not required because there is
5908    # no limit to the length of command line arguments.
5909    # Libtool will interpret -1 as no limit whatsoever
5910    lt_cv_sys_max_cmd_len=-1;
5911    ;;
5912
5913  cygwin* | mingw* | cegcc*)
5914    # On Win9x/ME, this test blows up -- it succeeds, but takes
5915    # about 5 minutes as the teststring grows exponentially.
5916    # Worse, since 9x/ME are not pre-emptively multitasking,
5917    # you end up with a "frozen" computer, even though with patience
5918    # the test eventually succeeds (with a max line length of 256k).
5919    # Instead, let's just punt: use the minimum linelength reported by
5920    # all of the supported platforms: 8192 (on NT/2K/XP).
5921    lt_cv_sys_max_cmd_len=8192;
5922    ;;
5923
5924  mint*)
5925    # On MiNT this can take a long time and run out of memory.
5926    lt_cv_sys_max_cmd_len=8192;
5927    ;;
5928
5929  amigaos*)
5930    # On AmigaOS with pdksh, this test takes hours, literally.
5931    # So we just punt and use a minimum line length of 8192.
5932    lt_cv_sys_max_cmd_len=8192;
5933    ;;
5934
5935  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5936    # This has been around since 386BSD, at least.  Likely further.
5937    if test -x /sbin/sysctl; then
5938      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5939    elif test -x /usr/sbin/sysctl; then
5940      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5941    else
5942      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5943    fi
5944    # And add a safety zone
5945    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5946    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5947    ;;
5948
5949  interix*)
5950    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5951    lt_cv_sys_max_cmd_len=196608
5952    ;;
5953
5954  osf*)
5955    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5956    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5957    # nice to cause kernel panics so lets avoid the loop below.
5958    # First set a reasonable default.
5959    lt_cv_sys_max_cmd_len=16384
5960    #
5961    if test -x /sbin/sysconfig; then
5962      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5963        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5964      esac
5965    fi
5966    ;;
5967  sco3.2v5*)
5968    lt_cv_sys_max_cmd_len=102400
5969    ;;
5970  sysv5* | sco5v6* | sysv4.2uw2*)
5971    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5972    if test -n "$kargmax"; then
5973      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5974    else
5975      lt_cv_sys_max_cmd_len=32768
5976    fi
5977    ;;
5978  *)
5979    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5980    if test -n "$lt_cv_sys_max_cmd_len"; then
5981      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5982      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5983    else
5984      # Make teststring a little bigger before we do anything with it.
5985      # a 1K string should be a reasonable start.
5986      for i in 1 2 3 4 5 6 7 8 ; do
5987        teststring=$teststring$teststring
5988      done
5989      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5990      # If test is not a shell built-in, we'll probably end up computing a
5991      # maximum length that is only half of the actual maximum length, but
5992      # we can't tell.
5993      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5994	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5995	      test $i != 17 # 1/2 MB should be enough
5996      do
5997        i=`expr $i + 1`
5998        teststring=$teststring$teststring
5999      done
6000      # Only check the string length outside the loop.
6001      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6002      teststring=
6003      # Add a significant safety factor because C++ compilers can tack on
6004      # massive amounts of additional arguments before passing them to the
6005      # linker.  It appears as though 1/2 is a usable value.
6006      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6007    fi
6008    ;;
6009  esac
6010
6011fi
6012
6013if test -n $lt_cv_sys_max_cmd_len ; then
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6015$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6016else
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6018$as_echo "none" >&6; }
6019fi
6020max_cmd_len=$lt_cv_sys_max_cmd_len
6021
6022
6023
6024
6025
6026
6027: ${CP="cp -f"}
6028: ${MV="mv -f"}
6029: ${RM="rm -f"}
6030
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6032$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6033# Try some XSI features
6034xsi_shell=no
6035( _lt_dummy="a/b/c"
6036  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6037      = c,a/b,b/c, \
6038    && eval 'test $(( 1 + 1 )) -eq 2 \
6039    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6040  && xsi_shell=yes
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6042$as_echo "$xsi_shell" >&6; }
6043
6044
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6046$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6047lt_shell_append=no
6048( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6049    >/dev/null 2>&1 \
6050  && lt_shell_append=yes
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6052$as_echo "$lt_shell_append" >&6; }
6053
6054
6055if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6056  lt_unset=unset
6057else
6058  lt_unset=false
6059fi
6060
6061
6062
6063
6064
6065# test EBCDIC or ASCII
6066case `echo X|tr X '\101'` in
6067 A) # ASCII based system
6068    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6069  lt_SP2NL='tr \040 \012'
6070  lt_NL2SP='tr \015\012 \040\040'
6071  ;;
6072 *) # EBCDIC based system
6073  lt_SP2NL='tr \100 \n'
6074  lt_NL2SP='tr \r\n \100\100'
6075  ;;
6076esac
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6087$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6088if ${lt_cv_to_host_file_cmd+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  case $host in
6092  *-*-mingw* )
6093    case $build in
6094      *-*-mingw* ) # actually msys
6095        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6096        ;;
6097      *-*-cygwin* )
6098        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6099        ;;
6100      * ) # otherwise, assume *nix
6101        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6102        ;;
6103    esac
6104    ;;
6105  *-*-cygwin* )
6106    case $build in
6107      *-*-mingw* ) # actually msys
6108        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6109        ;;
6110      *-*-cygwin* )
6111        lt_cv_to_host_file_cmd=func_convert_file_noop
6112        ;;
6113      * ) # otherwise, assume *nix
6114        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6115        ;;
6116    esac
6117    ;;
6118  * ) # unhandled hosts (and "normal" native builds)
6119    lt_cv_to_host_file_cmd=func_convert_file_noop
6120    ;;
6121esac
6122
6123fi
6124
6125to_host_file_cmd=$lt_cv_to_host_file_cmd
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6127$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6128
6129
6130
6131
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6134$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6135if ${lt_cv_to_tool_file_cmd+:} false; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138  #assume ordinary cross tools, or native build.
6139lt_cv_to_tool_file_cmd=func_convert_file_noop
6140case $host in
6141  *-*-mingw* )
6142    case $build in
6143      *-*-mingw* ) # actually msys
6144        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6145        ;;
6146    esac
6147    ;;
6148esac
6149
6150fi
6151
6152to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6154$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6155
6156
6157
6158
6159
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6161$as_echo_n "checking for $LD option to reload object files... " >&6; }
6162if ${lt_cv_ld_reload_flag+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  lt_cv_ld_reload_flag='-r'
6166fi
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6168$as_echo "$lt_cv_ld_reload_flag" >&6; }
6169reload_flag=$lt_cv_ld_reload_flag
6170case $reload_flag in
6171"" | " "*) ;;
6172*) reload_flag=" $reload_flag" ;;
6173esac
6174reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175case $host_os in
6176  cygwin* | mingw* | pw32* | cegcc*)
6177    if test "$GCC" != yes; then
6178      reload_cmds=false
6179    fi
6180    ;;
6181  darwin*)
6182    if test "$GCC" = yes; then
6183      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6184    else
6185      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6186    fi
6187    ;;
6188esac
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198if test -n "$ac_tool_prefix"; then
6199  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6200set dummy ${ac_tool_prefix}objdump; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if ${ac_cv_prog_OBJDUMP+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  if test -n "$OBJDUMP"; then
6207  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  test -z "$as_dir" && as_dir=.
6214    for ac_exec_ext in '' $ac_executable_extensions; do
6215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218    break 2
6219  fi
6220done
6221  done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226OBJDUMP=$ac_cv_prog_OBJDUMP
6227if test -n "$OBJDUMP"; then
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6229$as_echo "$OBJDUMP" >&6; }
6230else
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235
6236fi
6237if test -z "$ac_cv_prog_OBJDUMP"; then
6238  ac_ct_OBJDUMP=$OBJDUMP
6239  # Extract the first word of "objdump", so it can be a program name with args.
6240set dummy objdump; ac_word=$2
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6244  $as_echo_n "(cached) " >&6
6245else
6246  if test -n "$ac_ct_OBJDUMP"; then
6247  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252  IFS=$as_save_IFS
6253  test -z "$as_dir" && as_dir=.
6254    for ac_exec_ext in '' $ac_executable_extensions; do
6255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258    break 2
6259  fi
6260done
6261  done
6262IFS=$as_save_IFS
6263
6264fi
6265fi
6266ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6267if test -n "$ac_ct_OBJDUMP"; then
6268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6269$as_echo "$ac_ct_OBJDUMP" >&6; }
6270else
6271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272$as_echo "no" >&6; }
6273fi
6274
6275  if test "x$ac_ct_OBJDUMP" = x; then
6276    OBJDUMP="false"
6277  else
6278    case $cross_compiling:$ac_tool_warned in
6279yes:)
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282ac_tool_warned=yes ;;
6283esac
6284    OBJDUMP=$ac_ct_OBJDUMP
6285  fi
6286else
6287  OBJDUMP="$ac_cv_prog_OBJDUMP"
6288fi
6289
6290test -z "$OBJDUMP" && OBJDUMP=objdump
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6301$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6302if ${lt_cv_deplibs_check_method+:} false; then :
6303  $as_echo_n "(cached) " >&6
6304else
6305  lt_cv_file_magic_cmd='$MAGIC_CMD'
6306lt_cv_file_magic_test_file=
6307lt_cv_deplibs_check_method='unknown'
6308# Need to set the preceding variable on all platforms that support
6309# interlibrary dependencies.
6310# 'none' -- dependencies not supported.
6311# `unknown' -- same as none, but documents that we really don't know.
6312# 'pass_all' -- all dependencies passed with no checks.
6313# 'test_compile' -- check by making test program.
6314# 'file_magic [[regex]]' -- check by looking for files in library path
6315# which responds to the $file_magic_cmd with a given extended regex.
6316# If you have `file' or equivalent on your system and you're not sure
6317# whether `pass_all' will *always* work, you probably want this one.
6318
6319case $host_os in
6320aix[4-9]*)
6321  lt_cv_deplibs_check_method=pass_all
6322  ;;
6323
6324beos*)
6325  lt_cv_deplibs_check_method=pass_all
6326  ;;
6327
6328bsdi[45]*)
6329  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6330  lt_cv_file_magic_cmd='/usr/bin/file -L'
6331  lt_cv_file_magic_test_file=/shlib/libc.so
6332  ;;
6333
6334cygwin*)
6335  # func_win32_libid is a shell function defined in ltmain.sh
6336  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6337  lt_cv_file_magic_cmd='func_win32_libid'
6338  ;;
6339
6340mingw* | pw32*)
6341  # Base MSYS/MinGW do not provide the 'file' command needed by
6342  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6343  # unless we find 'file', for example because we are cross-compiling.
6344  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6345  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6346    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6347    lt_cv_file_magic_cmd='func_win32_libid'
6348  else
6349    # Keep this pattern in sync with the one in func_win32_libid.
6350    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6351    lt_cv_file_magic_cmd='$OBJDUMP -f'
6352  fi
6353  ;;
6354
6355cegcc*)
6356  # use the weaker test based on 'objdump'. See mingw*.
6357  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6358  lt_cv_file_magic_cmd='$OBJDUMP -f'
6359  ;;
6360
6361darwin* | rhapsody*)
6362  lt_cv_deplibs_check_method=pass_all
6363  ;;
6364
6365freebsd* | dragonfly*)
6366  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6367    case $host_cpu in
6368    i*86 )
6369      # Not sure whether the presence of OpenBSD here was a mistake.
6370      # Let's accept both of them until this is cleared up.
6371      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6372      lt_cv_file_magic_cmd=/usr/bin/file
6373      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6374      ;;
6375    esac
6376  else
6377    lt_cv_deplibs_check_method=pass_all
6378  fi
6379  ;;
6380
6381gnu*)
6382  lt_cv_deplibs_check_method=pass_all
6383  ;;
6384
6385haiku*)
6386  lt_cv_deplibs_check_method=pass_all
6387  ;;
6388
6389hpux10.20* | hpux11*)
6390  lt_cv_file_magic_cmd=/usr/bin/file
6391  case $host_cpu in
6392  ia64*)
6393    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6394    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6395    ;;
6396  hppa*64*)
6397    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]'
6398    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6399    ;;
6400  *)
6401    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6402    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6403    ;;
6404  esac
6405  ;;
6406
6407interix[3-9]*)
6408  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6409  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6410  ;;
6411
6412irix5* | irix6* | nonstopux*)
6413  case $LD in
6414  *-32|*"-32 ") libmagic=32-bit;;
6415  *-n32|*"-n32 ") libmagic=N32;;
6416  *-64|*"-64 ") libmagic=64-bit;;
6417  *) libmagic=never-match;;
6418  esac
6419  lt_cv_deplibs_check_method=pass_all
6420  ;;
6421
6422# This must be Linux ELF.
6423linux* | k*bsd*-gnu | kopensolaris*-gnu)
6424  lt_cv_deplibs_check_method=pass_all
6425  ;;
6426
6427netbsd*)
6428  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6429    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6430  else
6431    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6432  fi
6433  ;;
6434
6435newos6*)
6436  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6437  lt_cv_file_magic_cmd=/usr/bin/file
6438  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6439  ;;
6440
6441*nto* | *qnx*)
6442  lt_cv_deplibs_check_method=pass_all
6443  ;;
6444
6445openbsd*)
6446  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6447    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6448  else
6449    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6450  fi
6451  ;;
6452
6453osf3* | osf4* | osf5*)
6454  lt_cv_deplibs_check_method=pass_all
6455  ;;
6456
6457rdos*)
6458  lt_cv_deplibs_check_method=pass_all
6459  ;;
6460
6461solaris*)
6462  lt_cv_deplibs_check_method=pass_all
6463  ;;
6464
6465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6466  lt_cv_deplibs_check_method=pass_all
6467  ;;
6468
6469sysv4 | sysv4.3*)
6470  case $host_vendor in
6471  motorola)
6472    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]'
6473    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6474    ;;
6475  ncr)
6476    lt_cv_deplibs_check_method=pass_all
6477    ;;
6478  sequent)
6479    lt_cv_file_magic_cmd='/bin/file'
6480    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6481    ;;
6482  sni)
6483    lt_cv_file_magic_cmd='/bin/file'
6484    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6485    lt_cv_file_magic_test_file=/lib/libc.so
6486    ;;
6487  siemens)
6488    lt_cv_deplibs_check_method=pass_all
6489    ;;
6490  pc)
6491    lt_cv_deplibs_check_method=pass_all
6492    ;;
6493  esac
6494  ;;
6495
6496tpf*)
6497  lt_cv_deplibs_check_method=pass_all
6498  ;;
6499esac
6500
6501fi
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6503$as_echo "$lt_cv_deplibs_check_method" >&6; }
6504
6505file_magic_glob=
6506want_nocaseglob=no
6507if test "$build" = "$host"; then
6508  case $host_os in
6509  mingw* | pw32*)
6510    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6511      want_nocaseglob=yes
6512    else
6513      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6514    fi
6515    ;;
6516  esac
6517fi
6518
6519file_magic_cmd=$lt_cv_file_magic_cmd
6520deplibs_check_method=$lt_cv_deplibs_check_method
6521test -z "$deplibs_check_method" && deplibs_check_method=unknown
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544if test -n "$ac_tool_prefix"; then
6545  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6546set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548$as_echo_n "checking for $ac_word... " >&6; }
6549if ${ac_cv_prog_DLLTOOL+:} false; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552  if test -n "$DLLTOOL"; then
6553  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6554else
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558  IFS=$as_save_IFS
6559  test -z "$as_dir" && as_dir=.
6560    for ac_exec_ext in '' $ac_executable_extensions; do
6561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564    break 2
6565  fi
6566done
6567  done
6568IFS=$as_save_IFS
6569
6570fi
6571fi
6572DLLTOOL=$ac_cv_prog_DLLTOOL
6573if test -n "$DLLTOOL"; then
6574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6575$as_echo "$DLLTOOL" >&6; }
6576else
6577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578$as_echo "no" >&6; }
6579fi
6580
6581
6582fi
6583if test -z "$ac_cv_prog_DLLTOOL"; then
6584  ac_ct_DLLTOOL=$DLLTOOL
6585  # Extract the first word of "dlltool", so it can be a program name with args.
6586set dummy dlltool; ac_word=$2
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588$as_echo_n "checking for $ac_word... " >&6; }
6589if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6590  $as_echo_n "(cached) " >&6
6591else
6592  if test -n "$ac_ct_DLLTOOL"; then
6593  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598  IFS=$as_save_IFS
6599  test -z "$as_dir" && as_dir=.
6600    for ac_exec_ext in '' $ac_executable_extensions; do
6601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604    break 2
6605  fi
6606done
6607  done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
6612ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6613if test -n "$ac_ct_DLLTOOL"; then
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6615$as_echo "$ac_ct_DLLTOOL" >&6; }
6616else
6617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618$as_echo "no" >&6; }
6619fi
6620
6621  if test "x$ac_ct_DLLTOOL" = x; then
6622    DLLTOOL="false"
6623  else
6624    case $cross_compiling:$ac_tool_warned in
6625yes:)
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628ac_tool_warned=yes ;;
6629esac
6630    DLLTOOL=$ac_ct_DLLTOOL
6631  fi
6632else
6633  DLLTOOL="$ac_cv_prog_DLLTOOL"
6634fi
6635
6636test -z "$DLLTOOL" && DLLTOOL=dlltool
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6648$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6649if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  lt_cv_sharedlib_from_linklib_cmd='unknown'
6653
6654case $host_os in
6655cygwin* | mingw* | pw32* | cegcc*)
6656  # two different shell functions defined in ltmain.sh
6657  # decide which to use based on capabilities of $DLLTOOL
6658  case `$DLLTOOL --help 2>&1` in
6659  *--identify-strict*)
6660    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6661    ;;
6662  *)
6663    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6664    ;;
6665  esac
6666  ;;
6667*)
6668  # fallback: assume linklib IS sharedlib
6669  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6670  ;;
6671esac
6672
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6675$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6676sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6677test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6678
6679
6680
6681
6682
6683
6684
6685if test -n "$ac_tool_prefix"; then
6686  for ac_prog in ar
6687  do
6688    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if ${ac_cv_prog_AR+:} false; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  if test -n "$AR"; then
6696  ac_cv_prog_AR="$AR" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715AR=$ac_cv_prog_AR
6716if test -n "$AR"; then
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6718$as_echo "$AR" >&6; }
6719else
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725    test -n "$AR" && break
6726  done
6727fi
6728if test -z "$AR"; then
6729  ac_ct_AR=$AR
6730  for ac_prog in ar
6731do
6732  # Extract the first word of "$ac_prog", so it can be a program name with args.
6733set dummy $ac_prog; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if ${ac_cv_prog_ac_ct_AR+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739  if test -n "$ac_ct_AR"; then
6740  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747    for ac_exec_ext in '' $ac_executable_extensions; do
6748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749    ac_cv_prog_ac_ct_AR="$ac_prog"
6750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754  done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_AR=$ac_cv_prog_ac_ct_AR
6760if test -n "$ac_ct_AR"; then
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6762$as_echo "$ac_ct_AR" >&6; }
6763else
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768
6769  test -n "$ac_ct_AR" && break
6770done
6771
6772  if test "x$ac_ct_AR" = x; then
6773    AR="false"
6774  else
6775    case $cross_compiling:$ac_tool_warned in
6776yes:)
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779ac_tool_warned=yes ;;
6780esac
6781    AR=$ac_ct_AR
6782  fi
6783fi
6784
6785: ${AR=ar}
6786: ${AR_FLAGS=cru}
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6799$as_echo_n "checking for archiver @FILE support... " >&6; }
6800if ${lt_cv_ar_at_file+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  lt_cv_ar_at_file=no
6804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805/* end confdefs.h.  */
6806
6807int
6808main ()
6809{
6810
6811  ;
6812  return 0;
6813}
6814_ACEOF
6815if ac_fn_c_try_compile "$LINENO"; then :
6816  echo conftest.$ac_objext > conftest.lst
6817      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6818      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6819  (eval $lt_ar_try) 2>&5
6820  ac_status=$?
6821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822  test $ac_status = 0; }
6823      if test "$ac_status" -eq 0; then
6824	# Ensure the archiver fails upon bogus file names.
6825	rm -f conftest.$ac_objext libconftest.a
6826	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6827  (eval $lt_ar_try) 2>&5
6828  ac_status=$?
6829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830  test $ac_status = 0; }
6831	if test "$ac_status" -ne 0; then
6832          lt_cv_ar_at_file=@
6833        fi
6834      fi
6835      rm -f conftest.* libconftest.a
6836
6837fi
6838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6842$as_echo "$lt_cv_ar_at_file" >&6; }
6843
6844if test "x$lt_cv_ar_at_file" = xno; then
6845  archiver_list_spec=
6846else
6847  archiver_list_spec=$lt_cv_ar_at_file
6848fi
6849
6850
6851
6852
6853
6854
6855
6856if test -n "$ac_tool_prefix"; then
6857  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6858set dummy ${ac_tool_prefix}strip; ac_word=$2
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if ${ac_cv_prog_STRIP+:} false; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$STRIP"; then
6865  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872    for ac_exec_ext in '' $ac_executable_extensions; do
6873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879  done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884STRIP=$ac_cv_prog_STRIP
6885if test -n "$STRIP"; then
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6887$as_echo "$STRIP" >&6; }
6888else
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893
6894fi
6895if test -z "$ac_cv_prog_STRIP"; then
6896  ac_ct_STRIP=$STRIP
6897  # Extract the first word of "strip", so it can be a program name with args.
6898set dummy strip; ac_word=$2
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
6901if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6902  $as_echo_n "(cached) " >&6
6903else
6904  if test -n "$ac_ct_STRIP"; then
6905  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910  IFS=$as_save_IFS
6911  test -z "$as_dir" && as_dir=.
6912    for ac_exec_ext in '' $ac_executable_extensions; do
6913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914    ac_cv_prog_ac_ct_STRIP="strip"
6915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916    break 2
6917  fi
6918done
6919  done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
6924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6925if test -n "$ac_ct_STRIP"; then
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6927$as_echo "$ac_ct_STRIP" >&6; }
6928else
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933  if test "x$ac_ct_STRIP" = x; then
6934    STRIP=":"
6935  else
6936    case $cross_compiling:$ac_tool_warned in
6937yes:)
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940ac_tool_warned=yes ;;
6941esac
6942    STRIP=$ac_ct_STRIP
6943  fi
6944else
6945  STRIP="$ac_cv_prog_STRIP"
6946fi
6947
6948test -z "$STRIP" && STRIP=:
6949
6950
6951
6952
6953
6954
6955if test -n "$ac_tool_prefix"; then
6956  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6957set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959$as_echo_n "checking for $ac_word... " >&6; }
6960if ${ac_cv_prog_RANLIB+:} false; then :
6961  $as_echo_n "(cached) " >&6
6962else
6963  if test -n "$RANLIB"; then
6964  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6965else
6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969  IFS=$as_save_IFS
6970  test -z "$as_dir" && as_dir=.
6971    for ac_exec_ext in '' $ac_executable_extensions; do
6972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975    break 2
6976  fi
6977done
6978  done
6979IFS=$as_save_IFS
6980
6981fi
6982fi
6983RANLIB=$ac_cv_prog_RANLIB
6984if test -n "$RANLIB"; then
6985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6986$as_echo "$RANLIB" >&6; }
6987else
6988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989$as_echo "no" >&6; }
6990fi
6991
6992
6993fi
6994if test -z "$ac_cv_prog_RANLIB"; then
6995  ac_ct_RANLIB=$RANLIB
6996  # Extract the first word of "ranlib", so it can be a program name with args.
6997set dummy ranlib; ac_word=$2
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999$as_echo_n "checking for $ac_word... " >&6; }
7000if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7001  $as_echo_n "(cached) " >&6
7002else
7003  if test -n "$ac_ct_RANLIB"; then
7004  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7005else
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009  IFS=$as_save_IFS
7010  test -z "$as_dir" && as_dir=.
7011    for ac_exec_ext in '' $ac_executable_extensions; do
7012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013    ac_cv_prog_ac_ct_RANLIB="ranlib"
7014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015    break 2
7016  fi
7017done
7018  done
7019IFS=$as_save_IFS
7020
7021fi
7022fi
7023ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7024if test -n "$ac_ct_RANLIB"; then
7025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7026$as_echo "$ac_ct_RANLIB" >&6; }
7027else
7028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029$as_echo "no" >&6; }
7030fi
7031
7032  if test "x$ac_ct_RANLIB" = x; then
7033    RANLIB=":"
7034  else
7035    case $cross_compiling:$ac_tool_warned in
7036yes:)
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039ac_tool_warned=yes ;;
7040esac
7041    RANLIB=$ac_ct_RANLIB
7042  fi
7043else
7044  RANLIB="$ac_cv_prog_RANLIB"
7045fi
7046
7047test -z "$RANLIB" && RANLIB=:
7048
7049
7050
7051
7052
7053
7054# Determine commands to create old-style static archives.
7055old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7056old_postinstall_cmds='chmod 644 $oldlib'
7057old_postuninstall_cmds=
7058
7059if test -n "$RANLIB"; then
7060  case $host_os in
7061  openbsd*)
7062    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7063    ;;
7064  *)
7065    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7066    ;;
7067  esac
7068  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7069fi
7070
7071case $host_os in
7072  darwin*)
7073    lock_old_archive_extraction=yes ;;
7074  *)
7075    lock_old_archive_extraction=no ;;
7076esac
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116# If no C compiler was specified, use CC.
7117LTCC=${LTCC-"$CC"}
7118
7119# If no C compiler flags were specified, use CFLAGS.
7120LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7121
7122# Allow CC to be a program name with arguments.
7123compiler=$CC
7124
7125
7126# Check for command to grab the raw symbol name followed by C symbol from nm.
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7128$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7129if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132
7133# These are sane defaults that work on at least a few old systems.
7134# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7135
7136# Character class describing NM global symbol codes.
7137symcode='[BCDEGRST]'
7138
7139# Regexp to match symbols that can be accessed directly from C.
7140sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7141
7142# Define system-specific variables.
7143case $host_os in
7144aix*)
7145  symcode='[BCDT]'
7146  ;;
7147cygwin* | mingw* | pw32* | cegcc*)
7148  symcode='[ABCDGISTW]'
7149  ;;
7150hpux*)
7151  if test "$host_cpu" = ia64; then
7152    symcode='[ABCDEGRST]'
7153  fi
7154  ;;
7155irix* | nonstopux*)
7156  symcode='[BCDEGRST]'
7157  ;;
7158osf*)
7159  symcode='[BCDEGQRST]'
7160  ;;
7161solaris*)
7162  symcode='[BDRT]'
7163  ;;
7164sco3.2v5*)
7165  symcode='[DT]'
7166  ;;
7167sysv4.2uw2*)
7168  symcode='[DT]'
7169  ;;
7170sysv5* | sco5v6* | unixware* | OpenUNIX*)
7171  symcode='[ABDT]'
7172  ;;
7173sysv4)
7174  symcode='[DFNSTU]'
7175  ;;
7176esac
7177
7178# If we're using GNU nm, then use its standard symbol codes.
7179case `$NM -V 2>&1` in
7180*GNU* | *'with BFD'*)
7181  symcode='[ABCDGIRSTW]' ;;
7182esac
7183
7184# Transform an extracted symbol line into a proper C declaration.
7185# Some systems (esp. on ia64) link data and code symbols differently,
7186# so use this general approach.
7187lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7188
7189# Transform an extracted symbol line into symbol name and symbol address
7190lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7191lt_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'"
7192
7193# Handle CRLF in mingw tool chain
7194opt_cr=
7195case $build_os in
7196mingw*)
7197  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7198  ;;
7199esac
7200
7201# Try without a prefix underscore, then with it.
7202for ac_symprfx in "" "_"; do
7203
7204  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7205  symxfrm="\\1 $ac_symprfx\\2 \\2"
7206
7207  # Write the raw and C identifiers.
7208  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7209    # Fake it for dumpbin and say T for any non-static function
7210    # and D for any global variable.
7211    # Also find C++ and __fastcall symbols from MSVC++,
7212    # which start with @ or ?.
7213    lt_cv_sys_global_symbol_pipe="$AWK '"\
7214"     {last_section=section; section=\$ 3};"\
7215"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7216"     \$ 0!~/External *\|/{next};"\
7217"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7218"     {if(hide[section]) next};"\
7219"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7220"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7221"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7222"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7223"     ' prfx=^$ac_symprfx"
7224  else
7225    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7226  fi
7227  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7228
7229  # Check to see that the pipe works correctly.
7230  pipe_works=no
7231
7232  rm -f conftest*
7233  cat > conftest.$ac_ext <<_LT_EOF
7234#ifdef __cplusplus
7235extern "C" {
7236#endif
7237char nm_test_var;
7238void nm_test_func(void);
7239void nm_test_func(void){}
7240#ifdef __cplusplus
7241}
7242#endif
7243int main(){nm_test_var='a';nm_test_func();return(0);}
7244_LT_EOF
7245
7246  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7247  (eval $ac_compile) 2>&5
7248  ac_status=$?
7249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250  test $ac_status = 0; }; then
7251    # Now try to grab the symbols.
7252    nlist=conftest.nm
7253    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7254  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7255  ac_status=$?
7256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7257  test $ac_status = 0; } && test -s "$nlist"; then
7258      # Try sorting and uniquifying the output.
7259      if sort "$nlist" | uniq > "$nlist"T; then
7260	mv -f "$nlist"T "$nlist"
7261      else
7262	rm -f "$nlist"T
7263      fi
7264
7265      # Make sure that we snagged all the symbols we need.
7266      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7267	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7268	  cat <<_LT_EOF > conftest.$ac_ext
7269/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7270#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7271/* DATA imports from DLLs on WIN32 con't be const, because runtime
7272   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7273# define LT_DLSYM_CONST
7274#elif defined(__osf__)
7275/* This system does not cope well with relocations in const data.  */
7276# define LT_DLSYM_CONST
7277#else
7278# define LT_DLSYM_CONST const
7279#endif
7280
7281#ifdef __cplusplus
7282extern "C" {
7283#endif
7284
7285_LT_EOF
7286	  # Now generate the symbol file.
7287	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7288
7289	  cat <<_LT_EOF >> conftest.$ac_ext
7290
7291/* The mapping between symbol names and symbols.  */
7292LT_DLSYM_CONST struct {
7293  const char *name;
7294  void       *address;
7295}
7296lt__PROGRAM__LTX_preloaded_symbols[] =
7297{
7298  { "@PROGRAM@", (void *) 0 },
7299_LT_EOF
7300	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7301	  cat <<\_LT_EOF >> conftest.$ac_ext
7302  {0, (void *) 0}
7303};
7304
7305/* This works around a problem in FreeBSD linker */
7306#ifdef FREEBSD_WORKAROUND
7307static const void *lt_preloaded_setup() {
7308  return lt__PROGRAM__LTX_preloaded_symbols;
7309}
7310#endif
7311
7312#ifdef __cplusplus
7313}
7314#endif
7315_LT_EOF
7316	  # Now try linking the two files.
7317	  mv conftest.$ac_objext conftstm.$ac_objext
7318	  lt_globsym_save_LIBS=$LIBS
7319	  lt_globsym_save_CFLAGS=$CFLAGS
7320	  LIBS="conftstm.$ac_objext"
7321	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7322	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7323  (eval $ac_link) 2>&5
7324  ac_status=$?
7325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7327	    pipe_works=yes
7328	  fi
7329	  LIBS=$lt_globsym_save_LIBS
7330	  CFLAGS=$lt_globsym_save_CFLAGS
7331	else
7332	  echo "cannot find nm_test_func in $nlist" >&5
7333	fi
7334      else
7335	echo "cannot find nm_test_var in $nlist" >&5
7336      fi
7337    else
7338      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7339    fi
7340  else
7341    echo "$progname: failed program was:" >&5
7342    cat conftest.$ac_ext >&5
7343  fi
7344  rm -rf conftest* conftst*
7345
7346  # Do not use the global_symbol_pipe unless it works.
7347  if test "$pipe_works" = yes; then
7348    break
7349  else
7350    lt_cv_sys_global_symbol_pipe=
7351  fi
7352done
7353
7354fi
7355
7356if test -z "$lt_cv_sys_global_symbol_pipe"; then
7357  lt_cv_sys_global_symbol_to_cdecl=
7358fi
7359if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7361$as_echo "failed" >&6; }
7362else
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7364$as_echo "ok" >&6; }
7365fi
7366
7367# Response file support.
7368if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7369  nm_file_list_spec='@'
7370elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7371  nm_file_list_spec='@'
7372fi
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7401$as_echo_n "checking for sysroot... " >&6; }
7402
7403# Check whether --with-sysroot was given.
7404if test "${with_sysroot+set}" = set; then :
7405  withval=$with_sysroot;
7406else
7407  with_sysroot=no
7408fi
7409
7410
7411lt_sysroot=
7412case ${with_sysroot} in #(
7413 yes)
7414   if test "$GCC" = yes; then
7415     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7416   fi
7417   ;; #(
7418 /*)
7419   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7420   ;; #(
7421 no|'')
7422   ;; #(
7423 *)
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7425$as_echo "${with_sysroot}" >&6; }
7426   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7427   ;;
7428esac
7429
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7431$as_echo "${lt_sysroot:-no}" >&6; }
7432
7433
7434
7435
7436
7437# Check whether --enable-libtool-lock was given.
7438if test "${enable_libtool_lock+set}" = set; then :
7439  enableval=$enable_libtool_lock;
7440fi
7441
7442test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7443
7444# Some flags need to be propagated to the compiler or linker for good
7445# libtool support.
7446case $host in
7447ia64-*-hpux*)
7448  # Find out which ABI we are using.
7449  echo 'int i;' > conftest.$ac_ext
7450  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7451  (eval $ac_compile) 2>&5
7452  ac_status=$?
7453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7454  test $ac_status = 0; }; then
7455    case `/usr/bin/file conftest.$ac_objext` in
7456      *ELF-32*)
7457	HPUX_IA64_MODE="32"
7458	;;
7459      *ELF-64*)
7460	HPUX_IA64_MODE="64"
7461	;;
7462    esac
7463  fi
7464  rm -rf conftest*
7465  ;;
7466*-*-irix6*)
7467  # Find out which ABI we are using.
7468  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7469  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7470  (eval $ac_compile) 2>&5
7471  ac_status=$?
7472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473  test $ac_status = 0; }; then
7474    if test "$lt_cv_prog_gnu_ld" = yes; then
7475      case `/usr/bin/file conftest.$ac_objext` in
7476	*32-bit*)
7477	  LD="${LD-ld} -melf32bsmip"
7478	  ;;
7479	*N32*)
7480	  LD="${LD-ld} -melf32bmipn32"
7481	  ;;
7482	*64-bit*)
7483	  LD="${LD-ld} -melf64bmip"
7484	;;
7485      esac
7486    else
7487      case `/usr/bin/file conftest.$ac_objext` in
7488	*32-bit*)
7489	  LD="${LD-ld} -32"
7490	  ;;
7491	*N32*)
7492	  LD="${LD-ld} -n32"
7493	  ;;
7494	*64-bit*)
7495	  LD="${LD-ld} -64"
7496	  ;;
7497      esac
7498    fi
7499  fi
7500  rm -rf conftest*
7501  ;;
7502
7503x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7504s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7505  # Find out which ABI we are using.
7506  echo 'int i;' > conftest.$ac_ext
7507  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7508  (eval $ac_compile) 2>&5
7509  ac_status=$?
7510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511  test $ac_status = 0; }; then
7512    case `/usr/bin/file conftest.o` in
7513      *32-bit*)
7514	case $host in
7515	  x86_64-*kfreebsd*-gnu)
7516	    LD="${LD-ld} -m elf_i386_fbsd"
7517	    ;;
7518	  x86_64-*linux*)
7519	    LD="${LD-ld} -m elf_i386"
7520	    ;;
7521	  ppc64-*linux*|powerpc64-*linux*)
7522	    LD="${LD-ld} -m elf32ppclinux"
7523	    ;;
7524	  s390x-*linux*)
7525	    LD="${LD-ld} -m elf_s390"
7526	    ;;
7527	  sparc64-*linux*)
7528	    LD="${LD-ld} -m elf32_sparc"
7529	    ;;
7530	esac
7531	;;
7532      *64-bit*)
7533	case $host in
7534	  x86_64-*kfreebsd*-gnu)
7535	    LD="${LD-ld} -m elf_x86_64_fbsd"
7536	    ;;
7537	  x86_64-*linux*)
7538	    LD="${LD-ld} -m elf_x86_64"
7539	    ;;
7540	  ppc*-*linux*|powerpc*-*linux*)
7541	    LD="${LD-ld} -m elf64ppc"
7542	    ;;
7543	  s390*-*linux*|s390*-*tpf*)
7544	    LD="${LD-ld} -m elf64_s390"
7545	    ;;
7546	  sparc*-*linux*)
7547	    LD="${LD-ld} -m elf64_sparc"
7548	    ;;
7549	esac
7550	;;
7551    esac
7552  fi
7553  rm -rf conftest*
7554  ;;
7555
7556*-*-sco3.2v5*)
7557  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7558  SAVE_CFLAGS="$CFLAGS"
7559  CFLAGS="$CFLAGS -belf"
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7561$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7562if ${lt_cv_cc_needs_belf+:} false; then :
7563  $as_echo_n "(cached) " >&6
7564else
7565  ac_ext=c
7566ac_cpp='$CPP $CPPFLAGS'
7567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570
7571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572/* end confdefs.h.  */
7573
7574int
7575main ()
7576{
7577
7578  ;
7579  return 0;
7580}
7581_ACEOF
7582if ac_fn_c_try_link "$LINENO"; then :
7583  lt_cv_cc_needs_belf=yes
7584else
7585  lt_cv_cc_needs_belf=no
7586fi
7587rm -f core conftest.err conftest.$ac_objext \
7588    conftest$ac_exeext conftest.$ac_ext
7589     ac_ext=c
7590ac_cpp='$CPP $CPPFLAGS'
7591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7593ac_compiler_gnu=$ac_cv_c_compiler_gnu
7594
7595fi
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7597$as_echo "$lt_cv_cc_needs_belf" >&6; }
7598  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7599    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7600    CFLAGS="$SAVE_CFLAGS"
7601  fi
7602  ;;
7603sparc*-*solaris*)
7604  # Find out which ABI we are using.
7605  echo 'int i;' > conftest.$ac_ext
7606  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607  (eval $ac_compile) 2>&5
7608  ac_status=$?
7609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610  test $ac_status = 0; }; then
7611    case `/usr/bin/file conftest.o` in
7612    *64-bit*)
7613      case $lt_cv_prog_gnu_ld in
7614      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7615      *)
7616	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7617	  LD="${LD-ld} -64"
7618	fi
7619	;;
7620      esac
7621      ;;
7622    esac
7623  fi
7624  rm -rf conftest*
7625  ;;
7626esac
7627
7628need_locks="$enable_libtool_lock"
7629
7630if test -n "$ac_tool_prefix"; then
7631  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7632set dummy ${ac_tool_prefix}mt; ac_word=$2
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634$as_echo_n "checking for $ac_word... " >&6; }
7635if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  if test -n "$MANIFEST_TOOL"; then
7639  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7640else
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644  IFS=$as_save_IFS
7645  test -z "$as_dir" && as_dir=.
7646    for ac_exec_ext in '' $ac_executable_extensions; do
7647  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650    break 2
7651  fi
7652done
7653  done
7654IFS=$as_save_IFS
7655
7656fi
7657fi
7658MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7659if test -n "$MANIFEST_TOOL"; then
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7661$as_echo "$MANIFEST_TOOL" >&6; }
7662else
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664$as_echo "no" >&6; }
7665fi
7666
7667
7668fi
7669if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7670  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7671  # Extract the first word of "mt", so it can be a program name with args.
7672set dummy mt; ac_word=$2
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674$as_echo_n "checking for $ac_word... " >&6; }
7675if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  if test -n "$ac_ct_MANIFEST_TOOL"; then
7679  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7680else
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684  IFS=$as_save_IFS
7685  test -z "$as_dir" && as_dir=.
7686    for ac_exec_ext in '' $ac_executable_extensions; do
7687  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690    break 2
7691  fi
7692done
7693  done
7694IFS=$as_save_IFS
7695
7696fi
7697fi
7698ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7699if test -n "$ac_ct_MANIFEST_TOOL"; then
7700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7701$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7702else
7703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705fi
7706
7707  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7708    MANIFEST_TOOL=":"
7709  else
7710    case $cross_compiling:$ac_tool_warned in
7711yes:)
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7714ac_tool_warned=yes ;;
7715esac
7716    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7717  fi
7718else
7719  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7720fi
7721
7722test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7724$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7725if ${lt_cv_path_mainfest_tool+:} false; then :
7726  $as_echo_n "(cached) " >&6
7727else
7728  lt_cv_path_mainfest_tool=no
7729  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7730  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7731  cat conftest.err >&5
7732  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7733    lt_cv_path_mainfest_tool=yes
7734  fi
7735  rm -f conftest*
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7738$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7739if test "x$lt_cv_path_mainfest_tool" != xyes; then
7740  MANIFEST_TOOL=:
7741fi
7742
7743
7744
7745
7746
7747
7748  case $host_os in
7749    rhapsody* | darwin*)
7750    if test -n "$ac_tool_prefix"; then
7751  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7752set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754$as_echo_n "checking for $ac_word... " >&6; }
7755if ${ac_cv_prog_DSYMUTIL+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  if test -n "$DSYMUTIL"; then
7759  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7760else
7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764  IFS=$as_save_IFS
7765  test -z "$as_dir" && as_dir=.
7766    for ac_exec_ext in '' $ac_executable_extensions; do
7767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7768    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770    break 2
7771  fi
7772done
7773  done
7774IFS=$as_save_IFS
7775
7776fi
7777fi
7778DSYMUTIL=$ac_cv_prog_DSYMUTIL
7779if test -n "$DSYMUTIL"; then
7780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7781$as_echo "$DSYMUTIL" >&6; }
7782else
7783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784$as_echo "no" >&6; }
7785fi
7786
7787
7788fi
7789if test -z "$ac_cv_prog_DSYMUTIL"; then
7790  ac_ct_DSYMUTIL=$DSYMUTIL
7791  # Extract the first word of "dsymutil", so it can be a program name with args.
7792set dummy dsymutil; ac_word=$2
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  if test -n "$ac_ct_DSYMUTIL"; then
7799  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804  IFS=$as_save_IFS
7805  test -z "$as_dir" && as_dir=.
7806    for ac_exec_ext in '' $ac_executable_extensions; do
7807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810    break 2
7811  fi
7812done
7813  done
7814IFS=$as_save_IFS
7815
7816fi
7817fi
7818ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7819if test -n "$ac_ct_DSYMUTIL"; then
7820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7821$as_echo "$ac_ct_DSYMUTIL" >&6; }
7822else
7823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825fi
7826
7827  if test "x$ac_ct_DSYMUTIL" = x; then
7828    DSYMUTIL=":"
7829  else
7830    case $cross_compiling:$ac_tool_warned in
7831yes:)
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834ac_tool_warned=yes ;;
7835esac
7836    DSYMUTIL=$ac_ct_DSYMUTIL
7837  fi
7838else
7839  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7840fi
7841
7842    if test -n "$ac_tool_prefix"; then
7843  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7844set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846$as_echo_n "checking for $ac_word... " >&6; }
7847if ${ac_cv_prog_NMEDIT+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  if test -n "$NMEDIT"; then
7851  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856  IFS=$as_save_IFS
7857  test -z "$as_dir" && as_dir=.
7858    for ac_exec_ext in '' $ac_executable_extensions; do
7859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862    break 2
7863  fi
7864done
7865  done
7866IFS=$as_save_IFS
7867
7868fi
7869fi
7870NMEDIT=$ac_cv_prog_NMEDIT
7871if test -n "$NMEDIT"; then
7872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7873$as_echo "$NMEDIT" >&6; }
7874else
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
7877fi
7878
7879
7880fi
7881if test -z "$ac_cv_prog_NMEDIT"; then
7882  ac_ct_NMEDIT=$NMEDIT
7883  # Extract the first word of "nmedit", so it can be a program name with args.
7884set dummy nmedit; ac_word=$2
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886$as_echo_n "checking for $ac_word... " >&6; }
7887if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  if test -n "$ac_ct_NMEDIT"; then
7891  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896  IFS=$as_save_IFS
7897  test -z "$as_dir" && as_dir=.
7898    for ac_exec_ext in '' $ac_executable_extensions; do
7899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902    break 2
7903  fi
7904done
7905  done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7911if test -n "$ac_ct_NMEDIT"; then
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7913$as_echo "$ac_ct_NMEDIT" >&6; }
7914else
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919  if test "x$ac_ct_NMEDIT" = x; then
7920    NMEDIT=":"
7921  else
7922    case $cross_compiling:$ac_tool_warned in
7923yes:)
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7926ac_tool_warned=yes ;;
7927esac
7928    NMEDIT=$ac_ct_NMEDIT
7929  fi
7930else
7931  NMEDIT="$ac_cv_prog_NMEDIT"
7932fi
7933
7934    if test -n "$ac_tool_prefix"; then
7935  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7936set dummy ${ac_tool_prefix}lipo; ac_word=$2
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
7939if ${ac_cv_prog_LIPO+:} false; then :
7940  $as_echo_n "(cached) " >&6
7941else
7942  if test -n "$LIPO"; then
7943  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7944else
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948  IFS=$as_save_IFS
7949  test -z "$as_dir" && as_dir=.
7950    for ac_exec_ext in '' $ac_executable_extensions; do
7951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7952    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954    break 2
7955  fi
7956done
7957  done
7958IFS=$as_save_IFS
7959
7960fi
7961fi
7962LIPO=$ac_cv_prog_LIPO
7963if test -n "$LIPO"; then
7964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7965$as_echo "$LIPO" >&6; }
7966else
7967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
7969fi
7970
7971
7972fi
7973if test -z "$ac_cv_prog_LIPO"; then
7974  ac_ct_LIPO=$LIPO
7975  # Extract the first word of "lipo", so it can be a program name with args.
7976set dummy lipo; ac_word=$2
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978$as_echo_n "checking for $ac_word... " >&6; }
7979if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  if test -n "$ac_ct_LIPO"; then
7983  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988  IFS=$as_save_IFS
7989  test -z "$as_dir" && as_dir=.
7990    for ac_exec_ext in '' $ac_executable_extensions; do
7991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7992    ac_cv_prog_ac_ct_LIPO="lipo"
7993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997  done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8003if test -n "$ac_ct_LIPO"; then
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8005$as_echo "$ac_ct_LIPO" >&6; }
8006else
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
8009fi
8010
8011  if test "x$ac_ct_LIPO" = x; then
8012    LIPO=":"
8013  else
8014    case $cross_compiling:$ac_tool_warned in
8015yes:)
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018ac_tool_warned=yes ;;
8019esac
8020    LIPO=$ac_ct_LIPO
8021  fi
8022else
8023  LIPO="$ac_cv_prog_LIPO"
8024fi
8025
8026    if test -n "$ac_tool_prefix"; then
8027  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8028set dummy ${ac_tool_prefix}otool; ac_word=$2
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030$as_echo_n "checking for $ac_word... " >&6; }
8031if ${ac_cv_prog_OTOOL+:} false; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  if test -n "$OTOOL"; then
8035  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8036else
8037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038for as_dir in $PATH
8039do
8040  IFS=$as_save_IFS
8041  test -z "$as_dir" && as_dir=.
8042    for ac_exec_ext in '' $ac_executable_extensions; do
8043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046    break 2
8047  fi
8048done
8049  done
8050IFS=$as_save_IFS
8051
8052fi
8053fi
8054OTOOL=$ac_cv_prog_OTOOL
8055if test -n "$OTOOL"; then
8056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8057$as_echo "$OTOOL" >&6; }
8058else
8059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060$as_echo "no" >&6; }
8061fi
8062
8063
8064fi
8065if test -z "$ac_cv_prog_OTOOL"; then
8066  ac_ct_OTOOL=$OTOOL
8067  # Extract the first word of "otool", so it can be a program name with args.
8068set dummy otool; ac_word=$2
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
8071if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8072  $as_echo_n "(cached) " >&6
8073else
8074  if test -n "$ac_ct_OTOOL"; then
8075  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080  IFS=$as_save_IFS
8081  test -z "$as_dir" && as_dir=.
8082    for ac_exec_ext in '' $ac_executable_extensions; do
8083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084    ac_cv_prog_ac_ct_OTOOL="otool"
8085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086    break 2
8087  fi
8088done
8089  done
8090IFS=$as_save_IFS
8091
8092fi
8093fi
8094ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8095if test -n "$ac_ct_OTOOL"; then
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8097$as_echo "$ac_ct_OTOOL" >&6; }
8098else
8099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
8101fi
8102
8103  if test "x$ac_ct_OTOOL" = x; then
8104    OTOOL=":"
8105  else
8106    case $cross_compiling:$ac_tool_warned in
8107yes:)
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8110ac_tool_warned=yes ;;
8111esac
8112    OTOOL=$ac_ct_OTOOL
8113  fi
8114else
8115  OTOOL="$ac_cv_prog_OTOOL"
8116fi
8117
8118    if test -n "$ac_tool_prefix"; then
8119  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8120set dummy ${ac_tool_prefix}otool64; ac_word=$2
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
8123if ${ac_cv_prog_OTOOL64+:} false; then :
8124  $as_echo_n "(cached) " >&6
8125else
8126  if test -n "$OTOOL64"; then
8127  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8128else
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132  IFS=$as_save_IFS
8133  test -z "$as_dir" && as_dir=.
8134    for ac_exec_ext in '' $ac_executable_extensions; do
8135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138    break 2
8139  fi
8140done
8141  done
8142IFS=$as_save_IFS
8143
8144fi
8145fi
8146OTOOL64=$ac_cv_prog_OTOOL64
8147if test -n "$OTOOL64"; then
8148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8149$as_echo "$OTOOL64" >&6; }
8150else
8151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
8153fi
8154
8155
8156fi
8157if test -z "$ac_cv_prog_OTOOL64"; then
8158  ac_ct_OTOOL64=$OTOOL64
8159  # Extract the first word of "otool64", so it can be a program name with args.
8160set dummy otool64; ac_word=$2
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; }
8163if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8164  $as_echo_n "(cached) " >&6
8165else
8166  if test -n "$ac_ct_OTOOL64"; then
8167  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8168else
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172  IFS=$as_save_IFS
8173  test -z "$as_dir" && as_dir=.
8174    for ac_exec_ext in '' $ac_executable_extensions; do
8175  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176    ac_cv_prog_ac_ct_OTOOL64="otool64"
8177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178    break 2
8179  fi
8180done
8181  done
8182IFS=$as_save_IFS
8183
8184fi
8185fi
8186ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8187if test -n "$ac_ct_OTOOL64"; then
8188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8189$as_echo "$ac_ct_OTOOL64" >&6; }
8190else
8191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192$as_echo "no" >&6; }
8193fi
8194
8195  if test "x$ac_ct_OTOOL64" = x; then
8196    OTOOL64=":"
8197  else
8198    case $cross_compiling:$ac_tool_warned in
8199yes:)
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8202ac_tool_warned=yes ;;
8203esac
8204    OTOOL64=$ac_ct_OTOOL64
8205  fi
8206else
8207  OTOOL64="$ac_cv_prog_OTOOL64"
8208fi
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8237$as_echo_n "checking for -single_module linker flag... " >&6; }
8238if ${lt_cv_apple_cc_single_mod+:} false; then :
8239  $as_echo_n "(cached) " >&6
8240else
8241  lt_cv_apple_cc_single_mod=no
8242      if test -z "${LT_MULTI_MODULE}"; then
8243	# By default we will add the -single_module flag. You can override
8244	# by either setting the environment variable LT_MULTI_MODULE
8245	# non-empty at configure time, or by adding -multi_module to the
8246	# link flags.
8247	rm -rf libconftest.dylib*
8248	echo "int foo(void){return 1;}" > conftest.c
8249	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8250-dynamiclib -Wl,-single_module conftest.c" >&5
8251	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8252	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8253        _lt_result=$?
8254	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8255	  lt_cv_apple_cc_single_mod=yes
8256	else
8257	  cat conftest.err >&5
8258	fi
8259	rm -rf libconftest.dylib*
8260	rm -f conftest.*
8261      fi
8262fi
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8264$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8266$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8267if ${lt_cv_ld_exported_symbols_list+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  lt_cv_ld_exported_symbols_list=no
8271      save_LDFLAGS=$LDFLAGS
8272      echo "_main" > conftest.sym
8273      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8274      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275/* end confdefs.h.  */
8276
8277int
8278main ()
8279{
8280
8281  ;
8282  return 0;
8283}
8284_ACEOF
8285if ac_fn_c_try_link "$LINENO"; then :
8286  lt_cv_ld_exported_symbols_list=yes
8287else
8288  lt_cv_ld_exported_symbols_list=no
8289fi
8290rm -f core conftest.err conftest.$ac_objext \
8291    conftest$ac_exeext conftest.$ac_ext
8292	LDFLAGS="$save_LDFLAGS"
8293
8294fi
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8296$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8298$as_echo_n "checking for -force_load linker flag... " >&6; }
8299if ${lt_cv_ld_force_load+:} false; then :
8300  $as_echo_n "(cached) " >&6
8301else
8302  lt_cv_ld_force_load=no
8303      cat > conftest.c << _LT_EOF
8304int forced_loaded() { return 2;}
8305_LT_EOF
8306      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8307      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8308      echo "$AR cru libconftest.a conftest.o" >&5
8309      $AR cru libconftest.a conftest.o 2>&5
8310      echo "$RANLIB libconftest.a" >&5
8311      $RANLIB libconftest.a 2>&5
8312      cat > conftest.c << _LT_EOF
8313int main() { return 0;}
8314_LT_EOF
8315      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8316      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8317      _lt_result=$?
8318      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8319	lt_cv_ld_force_load=yes
8320      else
8321	cat conftest.err >&5
8322      fi
8323        rm -f conftest.err libconftest.a conftest conftest.c
8324        rm -rf conftest.dSYM
8325
8326fi
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8328$as_echo "$lt_cv_ld_force_load" >&6; }
8329    case $host_os in
8330    rhapsody* | darwin1.[012])
8331      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8332    darwin1.*)
8333      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8334    darwin*) # darwin 5.x on
8335      # if running on 10.5 or later, the deployment target defaults
8336      # to the OS version, if on x86, and 10.4, the deployment
8337      # target defaults to 10.4. Don't you love it?
8338      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8339	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8340	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8341	10.[012]*)
8342	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8343	10.*)
8344	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8345      esac
8346    ;;
8347  esac
8348    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8349      _lt_dar_single_mod='$single_module'
8350    fi
8351    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8352      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8353    else
8354      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8355    fi
8356    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8357      _lt_dsymutil='~$DSYMUTIL $lib || :'
8358    else
8359      _lt_dsymutil=
8360    fi
8361    ;;
8362  esac
8363
8364for ac_header in dlfcn.h
8365do :
8366  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8367"
8368if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8369  cat >>confdefs.h <<_ACEOF
8370#define HAVE_DLFCN_H 1
8371_ACEOF
8372
8373fi
8374
8375done
8376
8377
8378
8379
8380
8381# Set options
8382
8383
8384
8385        enable_dlopen=no
8386
8387
8388  enable_win32_dll=no
8389
8390
8391            # Check whether --enable-shared was given.
8392if test "${enable_shared+set}" = set; then :
8393  enableval=$enable_shared; p=${PACKAGE-default}
8394    case $enableval in
8395    yes) enable_shared=yes ;;
8396    no) enable_shared=no ;;
8397    *)
8398      enable_shared=no
8399      # Look at the argument we got.  We use all the common list separators.
8400      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8401      for pkg in $enableval; do
8402	IFS="$lt_save_ifs"
8403	if test "X$pkg" = "X$p"; then
8404	  enable_shared=yes
8405	fi
8406      done
8407      IFS="$lt_save_ifs"
8408      ;;
8409    esac
8410else
8411  enable_shared=yes
8412fi
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422  # Check whether --enable-static was given.
8423if test "${enable_static+set}" = set; then :
8424  enableval=$enable_static; p=${PACKAGE-default}
8425    case $enableval in
8426    yes) enable_static=yes ;;
8427    no) enable_static=no ;;
8428    *)
8429     enable_static=no
8430      # Look at the argument we got.  We use all the common list separators.
8431      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8432      for pkg in $enableval; do
8433	IFS="$lt_save_ifs"
8434	if test "X$pkg" = "X$p"; then
8435	  enable_static=yes
8436	fi
8437      done
8438      IFS="$lt_save_ifs"
8439      ;;
8440    esac
8441else
8442  enable_static=yes
8443fi
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454# Check whether --with-pic was given.
8455if test "${with_pic+set}" = set; then :
8456  withval=$with_pic; pic_mode="$withval"
8457else
8458  pic_mode=default
8459fi
8460
8461
8462test -z "$pic_mode" && pic_mode=default
8463
8464
8465
8466
8467
8468
8469
8470  # Check whether --enable-fast-install was given.
8471if test "${enable_fast_install+set}" = set; then :
8472  enableval=$enable_fast_install; p=${PACKAGE-default}
8473    case $enableval in
8474    yes) enable_fast_install=yes ;;
8475    no) enable_fast_install=no ;;
8476    *)
8477      enable_fast_install=no
8478      # Look at the argument we got.  We use all the common list separators.
8479      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480      for pkg in $enableval; do
8481	IFS="$lt_save_ifs"
8482	if test "X$pkg" = "X$p"; then
8483	  enable_fast_install=yes
8484	fi
8485      done
8486      IFS="$lt_save_ifs"
8487      ;;
8488    esac
8489else
8490  enable_fast_install=yes
8491fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503# This can be used to rebuild libtool when needed
8504LIBTOOL_DEPS="$ltmain"
8505
8506# Always use our own libtool.
8507LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534test -z "$LN_S" && LN_S="ln -s"
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549if test -n "${ZSH_VERSION+set}" ; then
8550   setopt NO_GLOB_SUBST
8551fi
8552
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8554$as_echo_n "checking for objdir... " >&6; }
8555if ${lt_cv_objdir+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  rm -f .libs 2>/dev/null
8559mkdir .libs 2>/dev/null
8560if test -d .libs; then
8561  lt_cv_objdir=.libs
8562else
8563  # MS-DOS does not allow filenames that begin with a dot.
8564  lt_cv_objdir=_libs
8565fi
8566rmdir .libs 2>/dev/null
8567fi
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8569$as_echo "$lt_cv_objdir" >&6; }
8570objdir=$lt_cv_objdir
8571
8572
8573
8574
8575
8576cat >>confdefs.h <<_ACEOF
8577#define LT_OBJDIR "$lt_cv_objdir/"
8578_ACEOF
8579
8580
8581
8582
8583case $host_os in
8584aix3*)
8585  # AIX sometimes has problems with the GCC collect2 program.  For some
8586  # reason, if we set the COLLECT_NAMES environment variable, the problems
8587  # vanish in a puff of smoke.
8588  if test "X${COLLECT_NAMES+set}" != Xset; then
8589    COLLECT_NAMES=
8590    export COLLECT_NAMES
8591  fi
8592  ;;
8593esac
8594
8595# Global variables:
8596ofile=libtool
8597can_build_shared=yes
8598
8599# All known linkers require a `.a' archive for static linking (except MSVC,
8600# which needs '.lib').
8601libext=a
8602
8603with_gnu_ld="$lt_cv_prog_gnu_ld"
8604
8605old_CC="$CC"
8606old_CFLAGS="$CFLAGS"
8607
8608# Set sane defaults for various variables
8609test -z "$CC" && CC=cc
8610test -z "$LTCC" && LTCC=$CC
8611test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8612test -z "$LD" && LD=ld
8613test -z "$ac_objext" && ac_objext=o
8614
8615for cc_temp in $compiler""; do
8616  case $cc_temp in
8617    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8618    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8619    \-*) ;;
8620    *) break;;
8621  esac
8622done
8623cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8624
8625
8626# Only perform the check for file, if the check method requires it
8627test -z "$MAGIC_CMD" && MAGIC_CMD=file
8628case $deplibs_check_method in
8629file_magic*)
8630  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8632$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8633if ${lt_cv_path_MAGIC_CMD+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  case $MAGIC_CMD in
8637[\\/*] |  ?:[\\/]*)
8638  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8639  ;;
8640*)
8641  lt_save_MAGIC_CMD="$MAGIC_CMD"
8642  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8643  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8644  for ac_dir in $ac_dummy; do
8645    IFS="$lt_save_ifs"
8646    test -z "$ac_dir" && ac_dir=.
8647    if test -f $ac_dir/${ac_tool_prefix}file; then
8648      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8649      if test -n "$file_magic_test_file"; then
8650	case $deplibs_check_method in
8651	"file_magic "*)
8652	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8653	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8654	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8655	    $EGREP "$file_magic_regex" > /dev/null; then
8656	    :
8657	  else
8658	    cat <<_LT_EOF 1>&2
8659
8660*** Warning: the command libtool uses to detect shared libraries,
8661*** $file_magic_cmd, produces output that libtool cannot recognize.
8662*** The result is that libtool may fail to recognize shared libraries
8663*** as such.  This will affect the creation of libtool libraries that
8664*** depend on shared libraries, but programs linked with such libtool
8665*** libraries will work regardless of this problem.  Nevertheless, you
8666*** may want to report the problem to your system manager and/or to
8667*** bug-libtool@gnu.org
8668
8669_LT_EOF
8670	  fi ;;
8671	esac
8672      fi
8673      break
8674    fi
8675  done
8676  IFS="$lt_save_ifs"
8677  MAGIC_CMD="$lt_save_MAGIC_CMD"
8678  ;;
8679esac
8680fi
8681
8682MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8683if test -n "$MAGIC_CMD"; then
8684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8685$as_echo "$MAGIC_CMD" >&6; }
8686else
8687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
8689fi
8690
8691
8692
8693
8694
8695if test -z "$lt_cv_path_MAGIC_CMD"; then
8696  if test -n "$ac_tool_prefix"; then
8697    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8698$as_echo_n "checking for file... " >&6; }
8699if ${lt_cv_path_MAGIC_CMD+:} false; then :
8700  $as_echo_n "(cached) " >&6
8701else
8702  case $MAGIC_CMD in
8703[\\/*] |  ?:[\\/]*)
8704  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8705  ;;
8706*)
8707  lt_save_MAGIC_CMD="$MAGIC_CMD"
8708  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8709  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8710  for ac_dir in $ac_dummy; do
8711    IFS="$lt_save_ifs"
8712    test -z "$ac_dir" && ac_dir=.
8713    if test -f $ac_dir/file; then
8714      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8715      if test -n "$file_magic_test_file"; then
8716	case $deplibs_check_method in
8717	"file_magic "*)
8718	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8719	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8720	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8721	    $EGREP "$file_magic_regex" > /dev/null; then
8722	    :
8723	  else
8724	    cat <<_LT_EOF 1>&2
8725
8726*** Warning: the command libtool uses to detect shared libraries,
8727*** $file_magic_cmd, produces output that libtool cannot recognize.
8728*** The result is that libtool may fail to recognize shared libraries
8729*** as such.  This will affect the creation of libtool libraries that
8730*** depend on shared libraries, but programs linked with such libtool
8731*** libraries will work regardless of this problem.  Nevertheless, you
8732*** may want to report the problem to your system manager and/or to
8733*** bug-libtool@gnu.org
8734
8735_LT_EOF
8736	  fi ;;
8737	esac
8738      fi
8739      break
8740    fi
8741  done
8742  IFS="$lt_save_ifs"
8743  MAGIC_CMD="$lt_save_MAGIC_CMD"
8744  ;;
8745esac
8746fi
8747
8748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8749if test -n "$MAGIC_CMD"; then
8750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8751$as_echo "$MAGIC_CMD" >&6; }
8752else
8753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754$as_echo "no" >&6; }
8755fi
8756
8757
8758  else
8759    MAGIC_CMD=:
8760  fi
8761fi
8762
8763  fi
8764  ;;
8765esac
8766
8767# Use C for the default configuration in the libtool script
8768
8769lt_save_CC="$CC"
8770ac_ext=c
8771ac_cpp='$CPP $CPPFLAGS'
8772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775
8776
8777# Source file extension for C test sources.
8778ac_ext=c
8779
8780# Object file extension for compiled C test sources.
8781objext=o
8782objext=$objext
8783
8784# Code to be used in simple compile tests
8785lt_simple_compile_test_code="int some_variable = 0;"
8786
8787# Code to be used in simple link tests
8788lt_simple_link_test_code='int main(){return(0);}'
8789
8790
8791
8792
8793
8794
8795
8796# If no C compiler was specified, use CC.
8797LTCC=${LTCC-"$CC"}
8798
8799# If no C compiler flags were specified, use CFLAGS.
8800LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8801
8802# Allow CC to be a program name with arguments.
8803compiler=$CC
8804
8805# Save the default compiler, since it gets overwritten when the other
8806# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8807compiler_DEFAULT=$CC
8808
8809# save warnings/boilerplate of simple test code
8810ac_outfile=conftest.$ac_objext
8811echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8812eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8813_lt_compiler_boilerplate=`cat conftest.err`
8814$RM conftest*
8815
8816ac_outfile=conftest.$ac_objext
8817echo "$lt_simple_link_test_code" >conftest.$ac_ext
8818eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8819_lt_linker_boilerplate=`cat conftest.err`
8820$RM -r conftest*
8821
8822
8823if test -n "$compiler"; then
8824
8825lt_prog_compiler_no_builtin_flag=
8826
8827if test "$GCC" = yes; then
8828  case $cc_basename in
8829  nvcc*)
8830    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8831  *)
8832    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8833  esac
8834
8835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8836$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8837if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8838  $as_echo_n "(cached) " >&6
8839else
8840  lt_cv_prog_compiler_rtti_exceptions=no
8841   ac_outfile=conftest.$ac_objext
8842   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8843   lt_compiler_flag="-fno-rtti -fno-exceptions"
8844   # Insert the option either (1) after the last *FLAGS variable, or
8845   # (2) before a word containing "conftest.", or (3) at the end.
8846   # Note that $ac_compile itself does not contain backslashes and begins
8847   # with a dollar sign (not a hyphen), so the echo should work correctly.
8848   # The option is referenced via a variable to avoid confusing sed.
8849   lt_compile=`echo "$ac_compile" | $SED \
8850   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8851   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8852   -e 's:$: $lt_compiler_flag:'`
8853   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8854   (eval "$lt_compile" 2>conftest.err)
8855   ac_status=$?
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   if (exit $ac_status) && test -s "$ac_outfile"; then
8859     # The compiler can only warn and ignore the option if not recognized
8860     # So say no if there are warnings other than the usual output.
8861     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8862     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8863     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8864       lt_cv_prog_compiler_rtti_exceptions=yes
8865     fi
8866   fi
8867   $RM conftest*
8868
8869fi
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8871$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8872
8873if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8874    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8875else
8876    :
8877fi
8878
8879fi
8880
8881
8882
8883
8884
8885
8886  lt_prog_compiler_wl=
8887lt_prog_compiler_pic=
8888lt_prog_compiler_static=
8889
8890
8891  if test "$GCC" = yes; then
8892    lt_prog_compiler_wl='-Wl,'
8893    lt_prog_compiler_static='-static'
8894
8895    case $host_os in
8896      aix*)
8897      # All AIX code is PIC.
8898      if test "$host_cpu" = ia64; then
8899	# AIX 5 now supports IA64 processor
8900	lt_prog_compiler_static='-Bstatic'
8901      fi
8902      ;;
8903
8904    amigaos*)
8905      case $host_cpu in
8906      powerpc)
8907            # see comment about AmigaOS4 .so support
8908            lt_prog_compiler_pic='-fPIC'
8909        ;;
8910      m68k)
8911            # FIXME: we need at least 68020 code to build shared libraries, but
8912            # adding the `-m68020' flag to GCC prevents building anything better,
8913            # like `-m68040'.
8914            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8915        ;;
8916      esac
8917      ;;
8918
8919    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8920      # PIC is the default for these OSes.
8921      ;;
8922
8923    mingw* | cygwin* | pw32* | os2* | cegcc*)
8924      # This hack is so that the source file can tell whether it is being
8925      # built for inclusion in a dll (and should export symbols for example).
8926      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8927      # (--disable-auto-import) libraries
8928      lt_prog_compiler_pic='-DDLL_EXPORT'
8929      ;;
8930
8931    darwin* | rhapsody*)
8932      # PIC is the default on this platform
8933      # Common symbols not allowed in MH_DYLIB files
8934      lt_prog_compiler_pic='-fno-common'
8935      ;;
8936
8937    haiku*)
8938      # PIC is the default for Haiku.
8939      # The "-static" flag exists, but is broken.
8940      lt_prog_compiler_static=
8941      ;;
8942
8943    hpux*)
8944      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8945      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8946      # sets the default TLS model and affects inlining.
8947      case $host_cpu in
8948      hppa*64*)
8949	# +Z the default
8950	;;
8951      *)
8952	lt_prog_compiler_pic='-fPIC'
8953	;;
8954      esac
8955      ;;
8956
8957    interix[3-9]*)
8958      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8959      # Instead, we relocate shared libraries at runtime.
8960      ;;
8961
8962    msdosdjgpp*)
8963      # Just because we use GCC doesn't mean we suddenly get shared libraries
8964      # on systems that don't support them.
8965      lt_prog_compiler_can_build_shared=no
8966      enable_shared=no
8967      ;;
8968
8969    *nto* | *qnx*)
8970      # QNX uses GNU C++, but need to define -shared option too, otherwise
8971      # it will coredump.
8972      lt_prog_compiler_pic='-fPIC -shared'
8973      ;;
8974
8975    sysv4*MP*)
8976      if test -d /usr/nec; then
8977	lt_prog_compiler_pic=-Kconform_pic
8978      fi
8979      ;;
8980
8981    *)
8982      lt_prog_compiler_pic='-fPIC'
8983      ;;
8984    esac
8985
8986    case $cc_basename in
8987    nvcc*) # Cuda Compiler Driver 2.2
8988      lt_prog_compiler_wl='-Xlinker '
8989      lt_prog_compiler_pic='-Xcompiler -fPIC'
8990      ;;
8991    esac
8992  else
8993    # PORTME Check for flag to pass linker flags through the system compiler.
8994    case $host_os in
8995    aix*)
8996      lt_prog_compiler_wl='-Wl,'
8997      if test "$host_cpu" = ia64; then
8998	# AIX 5 now supports IA64 processor
8999	lt_prog_compiler_static='-Bstatic'
9000      else
9001	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9002      fi
9003      ;;
9004
9005    mingw* | cygwin* | pw32* | os2* | cegcc*)
9006      # This hack is so that the source file can tell whether it is being
9007      # built for inclusion in a dll (and should export symbols for example).
9008      lt_prog_compiler_pic='-DDLL_EXPORT'
9009      ;;
9010
9011    hpux9* | hpux10* | hpux11*)
9012      lt_prog_compiler_wl='-Wl,'
9013      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9014      # not for PA HP-UX.
9015      case $host_cpu in
9016      hppa*64*|ia64*)
9017	# +Z the default
9018	;;
9019      *)
9020	lt_prog_compiler_pic='+Z'
9021	;;
9022      esac
9023      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9024      lt_prog_compiler_static='${wl}-a ${wl}archive'
9025      ;;
9026
9027    irix5* | irix6* | nonstopux*)
9028      lt_prog_compiler_wl='-Wl,'
9029      # PIC (with -KPIC) is the default.
9030      lt_prog_compiler_static='-non_shared'
9031      ;;
9032
9033    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9034      case $cc_basename in
9035      # old Intel for x86_64 which still supported -KPIC.
9036      ecc*)
9037	lt_prog_compiler_wl='-Wl,'
9038	lt_prog_compiler_pic='-KPIC'
9039	lt_prog_compiler_static='-static'
9040        ;;
9041      # icc used to be incompatible with GCC.
9042      # ICC 10 doesn't accept -KPIC any more.
9043      icc* | ifort*)
9044	lt_prog_compiler_wl='-Wl,'
9045	lt_prog_compiler_pic='-fPIC'
9046	lt_prog_compiler_static='-static'
9047        ;;
9048      # Lahey Fortran 8.1.
9049      lf95*)
9050	lt_prog_compiler_wl='-Wl,'
9051	lt_prog_compiler_pic='--shared'
9052	lt_prog_compiler_static='--static'
9053	;;
9054      nagfor*)
9055	# NAG Fortran compiler
9056	lt_prog_compiler_wl='-Wl,-Wl,,'
9057	lt_prog_compiler_pic='-PIC'
9058	lt_prog_compiler_static='-Bstatic'
9059	;;
9060      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9061        # Portland Group compilers (*not* the Pentium gcc compiler,
9062	# which looks to be a dead project)
9063	lt_prog_compiler_wl='-Wl,'
9064	lt_prog_compiler_pic='-fpic'
9065	lt_prog_compiler_static='-Bstatic'
9066        ;;
9067      ccc*)
9068        lt_prog_compiler_wl='-Wl,'
9069        # All Alpha code is PIC.
9070        lt_prog_compiler_static='-non_shared'
9071        ;;
9072      xl* | bgxl* | bgf* | mpixl*)
9073	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9074	lt_prog_compiler_wl='-Wl,'
9075	lt_prog_compiler_pic='-qpic'
9076	lt_prog_compiler_static='-qstaticlink'
9077	;;
9078      *)
9079	case `$CC -V 2>&1 | sed 5q` in
9080	*Sun\ F* | *Sun*Fortran*)
9081	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9082	  lt_prog_compiler_pic='-KPIC'
9083	  lt_prog_compiler_static='-Bstatic'
9084	  lt_prog_compiler_wl=''
9085	  ;;
9086	*Sun\ C*)
9087	  # Sun C 5.9
9088	  lt_prog_compiler_pic='-KPIC'
9089	  lt_prog_compiler_static='-Bstatic'
9090	  lt_prog_compiler_wl='-Wl,'
9091	  ;;
9092	esac
9093	;;
9094      esac
9095      ;;
9096
9097    newsos6)
9098      lt_prog_compiler_pic='-KPIC'
9099      lt_prog_compiler_static='-Bstatic'
9100      ;;
9101
9102    *nto* | *qnx*)
9103      # QNX uses GNU C++, but need to define -shared option too, otherwise
9104      # it will coredump.
9105      lt_prog_compiler_pic='-fPIC -shared'
9106      ;;
9107
9108    osf3* | osf4* | osf5*)
9109      lt_prog_compiler_wl='-Wl,'
9110      # All OSF/1 code is PIC.
9111      lt_prog_compiler_static='-non_shared'
9112      ;;
9113
9114    rdos*)
9115      lt_prog_compiler_static='-non_shared'
9116      ;;
9117
9118    solaris*)
9119      lt_prog_compiler_pic='-KPIC'
9120      lt_prog_compiler_static='-Bstatic'
9121      case $cc_basename in
9122      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9123	lt_prog_compiler_wl='-Qoption ld ';;
9124      *)
9125	lt_prog_compiler_wl='-Wl,';;
9126      esac
9127      ;;
9128
9129    sunos4*)
9130      lt_prog_compiler_wl='-Qoption ld '
9131      lt_prog_compiler_pic='-PIC'
9132      lt_prog_compiler_static='-Bstatic'
9133      ;;
9134
9135    sysv4 | sysv4.2uw2* | sysv4.3*)
9136      lt_prog_compiler_wl='-Wl,'
9137      lt_prog_compiler_pic='-KPIC'
9138      lt_prog_compiler_static='-Bstatic'
9139      ;;
9140
9141    sysv4*MP*)
9142      if test -d /usr/nec ;then
9143	lt_prog_compiler_pic='-Kconform_pic'
9144	lt_prog_compiler_static='-Bstatic'
9145      fi
9146      ;;
9147
9148    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9149      lt_prog_compiler_wl='-Wl,'
9150      lt_prog_compiler_pic='-KPIC'
9151      lt_prog_compiler_static='-Bstatic'
9152      ;;
9153
9154    unicos*)
9155      lt_prog_compiler_wl='-Wl,'
9156      lt_prog_compiler_can_build_shared=no
9157      ;;
9158
9159    uts4*)
9160      lt_prog_compiler_pic='-pic'
9161      lt_prog_compiler_static='-Bstatic'
9162      ;;
9163
9164    *)
9165      lt_prog_compiler_can_build_shared=no
9166      ;;
9167    esac
9168  fi
9169
9170case $host_os in
9171  # For platforms which do not support PIC, -DPIC is meaningless:
9172  *djgpp*)
9173    lt_prog_compiler_pic=
9174    ;;
9175  *)
9176    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9177    ;;
9178esac
9179
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9181$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9182if ${lt_cv_prog_compiler_pic+:} false; then :
9183  $as_echo_n "(cached) " >&6
9184else
9185  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9188$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9189lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9190
9191#
9192# Check to make sure the PIC flag actually works.
9193#
9194if test -n "$lt_prog_compiler_pic"; then
9195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9196$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9197if ${lt_cv_prog_compiler_pic_works+:} false; then :
9198  $as_echo_n "(cached) " >&6
9199else
9200  lt_cv_prog_compiler_pic_works=no
9201   ac_outfile=conftest.$ac_objext
9202   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9203   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9204   # Insert the option either (1) after the last *FLAGS variable, or
9205   # (2) before a word containing "conftest.", or (3) at the end.
9206   # Note that $ac_compile itself does not contain backslashes and begins
9207   # with a dollar sign (not a hyphen), so the echo should work correctly.
9208   # The option is referenced via a variable to avoid confusing sed.
9209   lt_compile=`echo "$ac_compile" | $SED \
9210   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9211   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9212   -e 's:$: $lt_compiler_flag:'`
9213   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9214   (eval "$lt_compile" 2>conftest.err)
9215   ac_status=$?
9216   cat conftest.err >&5
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   if (exit $ac_status) && test -s "$ac_outfile"; then
9219     # The compiler can only warn and ignore the option if not recognized
9220     # So say no if there are warnings other than the usual output.
9221     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9222     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9223     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9224       lt_cv_prog_compiler_pic_works=yes
9225     fi
9226   fi
9227   $RM conftest*
9228
9229fi
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9231$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9232
9233if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9234    case $lt_prog_compiler_pic in
9235     "" | " "*) ;;
9236     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9237     esac
9238else
9239    lt_prog_compiler_pic=
9240     lt_prog_compiler_can_build_shared=no
9241fi
9242
9243fi
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255#
9256# Check to make sure the static flag actually works.
9257#
9258wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9260$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9261if ${lt_cv_prog_compiler_static_works+:} false; then :
9262  $as_echo_n "(cached) " >&6
9263else
9264  lt_cv_prog_compiler_static_works=no
9265   save_LDFLAGS="$LDFLAGS"
9266   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9267   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9268   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9269     # The linker can only warn and ignore the option if not recognized
9270     # So say no if there are warnings
9271     if test -s conftest.err; then
9272       # Append any errors to the config.log.
9273       cat conftest.err 1>&5
9274       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9275       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9276       if diff conftest.exp conftest.er2 >/dev/null; then
9277         lt_cv_prog_compiler_static_works=yes
9278       fi
9279     else
9280       lt_cv_prog_compiler_static_works=yes
9281     fi
9282   fi
9283   $RM -r conftest*
9284   LDFLAGS="$save_LDFLAGS"
9285
9286fi
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9288$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9289
9290if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9291    :
9292else
9293    lt_prog_compiler_static=
9294fi
9295
9296
9297
9298
9299
9300
9301
9302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9303$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9304if ${lt_cv_prog_compiler_c_o+:} false; then :
9305  $as_echo_n "(cached) " >&6
9306else
9307  lt_cv_prog_compiler_c_o=no
9308   $RM -r conftest 2>/dev/null
9309   mkdir conftest
9310   cd conftest
9311   mkdir out
9312   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9313
9314   lt_compiler_flag="-o out/conftest2.$ac_objext"
9315   # Insert the option either (1) after the last *FLAGS variable, or
9316   # (2) before a word containing "conftest.", or (3) at the end.
9317   # Note that $ac_compile itself does not contain backslashes and begins
9318   # with a dollar sign (not a hyphen), so the echo should work correctly.
9319   lt_compile=`echo "$ac_compile" | $SED \
9320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9322   -e 's:$: $lt_compiler_flag:'`
9323   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9324   (eval "$lt_compile" 2>out/conftest.err)
9325   ac_status=$?
9326   cat out/conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9329   then
9330     # The compiler can only warn and ignore the option if not recognized
9331     # So say no if there are warnings
9332     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9333     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9334     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9335       lt_cv_prog_compiler_c_o=yes
9336     fi
9337   fi
9338   chmod u+w . 2>&5
9339   $RM conftest*
9340   # SGI C++ compiler will create directory out/ii_files/ for
9341   # template instantiation
9342   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9343   $RM out/* && rmdir out
9344   cd ..
9345   $RM -r conftest
9346   $RM conftest*
9347
9348fi
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9350$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9351
9352
9353
9354
9355
9356
9357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9358$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9359if ${lt_cv_prog_compiler_c_o+:} false; then :
9360  $as_echo_n "(cached) " >&6
9361else
9362  lt_cv_prog_compiler_c_o=no
9363   $RM -r conftest 2>/dev/null
9364   mkdir conftest
9365   cd conftest
9366   mkdir out
9367   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368
9369   lt_compiler_flag="-o out/conftest2.$ac_objext"
9370   # Insert the option either (1) after the last *FLAGS variable, or
9371   # (2) before a word containing "conftest.", or (3) at the end.
9372   # Note that $ac_compile itself does not contain backslashes and begins
9373   # with a dollar sign (not a hyphen), so the echo should work correctly.
9374   lt_compile=`echo "$ac_compile" | $SED \
9375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377   -e 's:$: $lt_compiler_flag:'`
9378   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9379   (eval "$lt_compile" 2>out/conftest.err)
9380   ac_status=$?
9381   cat out/conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9384   then
9385     # The compiler can only warn and ignore the option if not recognized
9386     # So say no if there are warnings
9387     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9388     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9389     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9390       lt_cv_prog_compiler_c_o=yes
9391     fi
9392   fi
9393   chmod u+w . 2>&5
9394   $RM conftest*
9395   # SGI C++ compiler will create directory out/ii_files/ for
9396   # template instantiation
9397   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9398   $RM out/* && rmdir out
9399   cd ..
9400   $RM -r conftest
9401   $RM conftest*
9402
9403fi
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9405$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9406
9407
9408
9409
9410hard_links="nottested"
9411if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9412  # do not overwrite the value of need_locks provided by the user
9413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9414$as_echo_n "checking if we can lock with hard links... " >&6; }
9415  hard_links=yes
9416  $RM conftest*
9417  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9418  touch conftest.a
9419  ln conftest.a conftest.b 2>&5 || hard_links=no
9420  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9422$as_echo "$hard_links" >&6; }
9423  if test "$hard_links" = no; then
9424    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9425$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9426    need_locks=warn
9427  fi
9428else
9429  need_locks=no
9430fi
9431
9432
9433
9434
9435
9436
9437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9438$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9439
9440  runpath_var=
9441  allow_undefined_flag=
9442  always_export_symbols=no
9443  archive_cmds=
9444  archive_expsym_cmds=
9445  compiler_needs_object=no
9446  enable_shared_with_static_runtimes=no
9447  export_dynamic_flag_spec=
9448  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9449  hardcode_automatic=no
9450  hardcode_direct=no
9451  hardcode_direct_absolute=no
9452  hardcode_libdir_flag_spec=
9453  hardcode_libdir_flag_spec_ld=
9454  hardcode_libdir_separator=
9455  hardcode_minus_L=no
9456  hardcode_shlibpath_var=unsupported
9457  inherit_rpath=no
9458  link_all_deplibs=unknown
9459  module_cmds=
9460  module_expsym_cmds=
9461  old_archive_from_new_cmds=
9462  old_archive_from_expsyms_cmds=
9463  thread_safe_flag_spec=
9464  whole_archive_flag_spec=
9465  # include_expsyms should be a list of space-separated symbols to be *always*
9466  # included in the symbol list
9467  include_expsyms=
9468  # exclude_expsyms can be an extended regexp of symbols to exclude
9469  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9470  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9471  # as well as any symbol that contains `d'.
9472  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9473  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9474  # platforms (ab)use it in PIC code, but their linkers get confused if
9475  # the symbol is explicitly referenced.  Since portable code cannot
9476  # rely on this symbol name, it's probably fine to never include it in
9477  # preloaded symbol tables.
9478  # Exclude shared library initialization/finalization symbols.
9479  extract_expsyms_cmds=
9480
9481  case $host_os in
9482  cygwin* | mingw* | pw32* | cegcc*)
9483    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9484    # When not using gcc, we currently assume that we are using
9485    # Microsoft Visual C++.
9486    if test "$GCC" != yes; then
9487      with_gnu_ld=no
9488    fi
9489    ;;
9490  interix*)
9491    # we just hope/assume this is gcc and not c89 (= MSVC++)
9492    with_gnu_ld=yes
9493    ;;
9494  openbsd*)
9495    with_gnu_ld=no
9496    ;;
9497  esac
9498
9499  ld_shlibs=yes
9500
9501  # On some targets, GNU ld is compatible enough with the native linker
9502  # that we're better off using the native interface for both.
9503  lt_use_gnu_ld_interface=no
9504  if test "$with_gnu_ld" = yes; then
9505    case $host_os in
9506      aix*)
9507	# The AIX port of GNU ld has always aspired to compatibility
9508	# with the native linker.  However, as the warning in the GNU ld
9509	# block says, versions before 2.19.5* couldn't really create working
9510	# shared libraries, regardless of the interface used.
9511	case `$LD -v 2>&1` in
9512	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9513	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9514	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9515	  *)
9516	    lt_use_gnu_ld_interface=yes
9517	    ;;
9518	esac
9519	;;
9520      *)
9521	lt_use_gnu_ld_interface=yes
9522	;;
9523    esac
9524  fi
9525
9526  if test "$lt_use_gnu_ld_interface" = yes; then
9527    # If archive_cmds runs LD, not CC, wlarc should be empty
9528    wlarc='${wl}'
9529
9530    # Set some defaults for GNU ld with shared library support. These
9531    # are reset later if shared libraries are not supported. Putting them
9532    # here allows them to be overridden if necessary.
9533    runpath_var=LD_RUN_PATH
9534    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9535    export_dynamic_flag_spec='${wl}--export-dynamic'
9536    # ancient GNU ld didn't support --whole-archive et. al.
9537    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9538      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9539    else
9540      whole_archive_flag_spec=
9541    fi
9542    supports_anon_versioning=no
9543    case `$LD -v 2>&1` in
9544      *GNU\ gold*) supports_anon_versioning=yes ;;
9545      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9546      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9547      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9548      *\ 2.11.*) ;; # other 2.11 versions
9549      *) supports_anon_versioning=yes ;;
9550    esac
9551
9552    # See if GNU ld supports shared libraries.
9553    case $host_os in
9554    aix[3-9]*)
9555      # On AIX/PPC, the GNU linker is very broken
9556      if test "$host_cpu" != ia64; then
9557	ld_shlibs=no
9558	cat <<_LT_EOF 1>&2
9559
9560*** Warning: the GNU linker, at least up to release 2.19, is reported
9561*** to be unable to reliably create shared libraries on AIX.
9562*** Therefore, libtool is disabling shared libraries support.  If you
9563*** really care for shared libraries, you may want to install binutils
9564*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9565*** You will then need to restart the configuration process.
9566
9567_LT_EOF
9568      fi
9569      ;;
9570
9571    amigaos*)
9572      case $host_cpu in
9573      powerpc)
9574            # see comment about AmigaOS4 .so support
9575            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576            archive_expsym_cmds=''
9577        ;;
9578      m68k)
9579            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)'
9580            hardcode_libdir_flag_spec='-L$libdir'
9581            hardcode_minus_L=yes
9582        ;;
9583      esac
9584      ;;
9585
9586    beos*)
9587      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9588	allow_undefined_flag=unsupported
9589	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9590	# support --undefined.  This deserves some investigation.  FIXME
9591	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9592      else
9593	ld_shlibs=no
9594      fi
9595      ;;
9596
9597    cygwin* | mingw* | pw32* | cegcc*)
9598      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9599      # as there is no search path for DLLs.
9600      hardcode_libdir_flag_spec='-L$libdir'
9601      export_dynamic_flag_spec='${wl}--export-all-symbols'
9602      allow_undefined_flag=unsupported
9603      always_export_symbols=no
9604      enable_shared_with_static_runtimes=yes
9605      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9606      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9607
9608      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9609        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9610	# If the export-symbols file already is a .def file (1st line
9611	# is EXPORTS), use it as is; otherwise, prepend...
9612	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9613	  cp $export_symbols $output_objdir/$soname.def;
9614	else
9615	  echo EXPORTS > $output_objdir/$soname.def;
9616	  cat $export_symbols >> $output_objdir/$soname.def;
9617	fi~
9618	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9619      else
9620	ld_shlibs=no
9621      fi
9622      ;;
9623
9624    haiku*)
9625      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626      link_all_deplibs=yes
9627      ;;
9628
9629    interix[3-9]*)
9630      hardcode_direct=no
9631      hardcode_shlibpath_var=no
9632      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9633      export_dynamic_flag_spec='${wl}-E'
9634      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9635      # Instead, shared libraries are loaded at an image base (0x10000000 by
9636      # default) and relocated if they conflict, which is a slow very memory
9637      # consuming and fragmenting process.  To avoid this, we pick a random,
9638      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9639      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9640      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9641      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'
9642      ;;
9643
9644    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9645      tmp_diet=no
9646      if test "$host_os" = linux-dietlibc; then
9647	case $cc_basename in
9648	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9649	esac
9650      fi
9651      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9652	 && test "$tmp_diet" = no
9653      then
9654	tmp_addflag=' $pic_flag'
9655	tmp_sharedflag='-shared'
9656	case $cc_basename,$host_cpu in
9657        pgcc*)				# Portland Group C compiler
9658	  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'
9659	  tmp_addflag=' $pic_flag'
9660	  ;;
9661	pgf77* | pgf90* | pgf95* | pgfortran*)
9662					# Portland Group f77 and f90 compilers
9663	  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'
9664	  tmp_addflag=' $pic_flag -Mnomain' ;;
9665	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9666	  tmp_addflag=' -i_dynamic' ;;
9667	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9668	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9669	ifc* | ifort*)			# Intel Fortran compiler
9670	  tmp_addflag=' -nofor_main' ;;
9671	lf95*)				# Lahey Fortran 8.1
9672	  whole_archive_flag_spec=
9673	  tmp_sharedflag='--shared' ;;
9674	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9675	  tmp_sharedflag='-qmkshrobj'
9676	  tmp_addflag= ;;
9677	nvcc*)	# Cuda Compiler Driver 2.2
9678	  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'
9679	  compiler_needs_object=yes
9680	  ;;
9681	esac
9682	case `$CC -V 2>&1 | sed 5q` in
9683	*Sun\ C*)			# Sun C 5.9
9684	  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'
9685	  compiler_needs_object=yes
9686	  tmp_sharedflag='-G' ;;
9687	*Sun\ F*)			# Sun Fortran 8.3
9688	  tmp_sharedflag='-G' ;;
9689	esac
9690	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691
9692        if test "x$supports_anon_versioning" = xyes; then
9693          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9694	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9695	    echo "local: *; };" >> $output_objdir/$libname.ver~
9696	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9697        fi
9698
9699	case $cc_basename in
9700	xlf* | bgf* | bgxlf* | mpixlf*)
9701	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9702	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9703	  hardcode_libdir_flag_spec=
9704	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9705	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9706	  if test "x$supports_anon_versioning" = xyes; then
9707	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9708	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9709	      echo "local: *; };" >> $output_objdir/$libname.ver~
9710	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9711	  fi
9712	  ;;
9713	esac
9714      else
9715        ld_shlibs=no
9716      fi
9717      ;;
9718
9719    netbsd*)
9720      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9721	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9722	wlarc=
9723      else
9724	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9725	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9726      fi
9727      ;;
9728
9729    solaris*)
9730      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9731	ld_shlibs=no
9732	cat <<_LT_EOF 1>&2
9733
9734*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9735*** create shared libraries on Solaris systems.  Therefore, libtool
9736*** is disabling shared libraries support.  We urge you to upgrade GNU
9737*** binutils to release 2.9.1 or newer.  Another option is to modify
9738*** your PATH or compiler configuration so that the native linker is
9739*** used, and then restart.
9740
9741_LT_EOF
9742      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9743	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9745      else
9746	ld_shlibs=no
9747      fi
9748      ;;
9749
9750    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9751      case `$LD -v 2>&1` in
9752        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9753	ld_shlibs=no
9754	cat <<_LT_EOF 1>&2
9755
9756*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9757*** reliably create shared libraries on SCO systems.  Therefore, libtool
9758*** is disabling shared libraries support.  We urge you to upgrade GNU
9759*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9760*** your PATH or compiler configuration so that the native linker is
9761*** used, and then restart.
9762
9763_LT_EOF
9764	;;
9765	*)
9766	  # For security reasons, it is highly recommended that you always
9767	  # use absolute paths for naming shared libraries, and exclude the
9768	  # DT_RUNPATH tag from executables and libraries.  But doing so
9769	  # requires that you compile everything twice, which is a pain.
9770	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9771	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9772	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9774	  else
9775	    ld_shlibs=no
9776	  fi
9777	;;
9778      esac
9779      ;;
9780
9781    sunos4*)
9782      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9783      wlarc=
9784      hardcode_direct=yes
9785      hardcode_shlibpath_var=no
9786      ;;
9787
9788    *)
9789      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9790	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9791	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9792      else
9793	ld_shlibs=no
9794      fi
9795      ;;
9796    esac
9797
9798    if test "$ld_shlibs" = no; then
9799      runpath_var=
9800      hardcode_libdir_flag_spec=
9801      export_dynamic_flag_spec=
9802      whole_archive_flag_spec=
9803    fi
9804  else
9805    # PORTME fill in a description of your system's linker (not GNU ld)
9806    case $host_os in
9807    aix3*)
9808      allow_undefined_flag=unsupported
9809      always_export_symbols=yes
9810      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'
9811      # Note: this linker hardcodes the directories in LIBPATH if there
9812      # are no directories specified by -L.
9813      hardcode_minus_L=yes
9814      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9815	# Neither direct hardcoding nor static linking is supported with a
9816	# broken collect2.
9817	hardcode_direct=unsupported
9818      fi
9819      ;;
9820
9821    aix[4-9]*)
9822      if test "$host_cpu" = ia64; then
9823	# On IA64, the linker does run time linking by default, so we don't
9824	# have to do anything special.
9825	aix_use_runtimelinking=no
9826	exp_sym_flag='-Bexport'
9827	no_entry_flag=""
9828      else
9829	# If we're using GNU nm, then we don't want the "-C" option.
9830	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9831	# Also, AIX nm treats weak defined symbols like other global
9832	# defined symbols, whereas GNU nm marks them as "W".
9833	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9834	  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'
9835	else
9836	  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'
9837	fi
9838	aix_use_runtimelinking=no
9839
9840	# Test if we are trying to use run time linking or normal
9841	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9842	# need to do runtime linking.
9843	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9844	  for ld_flag in $LDFLAGS; do
9845	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9846	    aix_use_runtimelinking=yes
9847	    break
9848	  fi
9849	  done
9850	  ;;
9851	esac
9852
9853	exp_sym_flag='-bexport'
9854	no_entry_flag='-bnoentry'
9855      fi
9856
9857      # When large executables or shared objects are built, AIX ld can
9858      # have problems creating the table of contents.  If linking a library
9859      # or program results in "error TOC overflow" add -mminimal-toc to
9860      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9861      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9862
9863      archive_cmds=''
9864      hardcode_direct=yes
9865      hardcode_direct_absolute=yes
9866      hardcode_libdir_separator=':'
9867      link_all_deplibs=yes
9868      file_list_spec='${wl}-f,'
9869
9870      if test "$GCC" = yes; then
9871	case $host_os in aix4.[012]|aix4.[012].*)
9872	# We only want to do this on AIX 4.2 and lower, the check
9873	# below for broken collect2 doesn't work under 4.3+
9874	  collect2name=`${CC} -print-prog-name=collect2`
9875	  if test -f "$collect2name" &&
9876	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9877	  then
9878	  # We have reworked collect2
9879	  :
9880	  else
9881	  # We have old collect2
9882	  hardcode_direct=unsupported
9883	  # It fails to find uninstalled libraries when the uninstalled
9884	  # path is not listed in the libpath.  Setting hardcode_minus_L
9885	  # to unsupported forces relinking
9886	  hardcode_minus_L=yes
9887	  hardcode_libdir_flag_spec='-L$libdir'
9888	  hardcode_libdir_separator=
9889	  fi
9890	  ;;
9891	esac
9892	shared_flag='-shared'
9893	if test "$aix_use_runtimelinking" = yes; then
9894	  shared_flag="$shared_flag "'${wl}-G'
9895	fi
9896      else
9897	# not using gcc
9898	if test "$host_cpu" = ia64; then
9899	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9900	# chokes on -Wl,-G. The following line is correct:
9901	  shared_flag='-G'
9902	else
9903	  if test "$aix_use_runtimelinking" = yes; then
9904	    shared_flag='${wl}-G'
9905	  else
9906	    shared_flag='${wl}-bM:SRE'
9907	  fi
9908	fi
9909      fi
9910
9911      export_dynamic_flag_spec='${wl}-bexpall'
9912      # It seems that -bexpall does not export symbols beginning with
9913      # underscore (_), so it is better to generate a list of symbols to export.
9914      always_export_symbols=yes
9915      if test "$aix_use_runtimelinking" = yes; then
9916	# Warning - without using the other runtime loading flags (-brtl),
9917	# -berok will link without error, but may produce a broken library.
9918	allow_undefined_flag='-berok'
9919        # Determine the default libpath from the value encoded in an
9920        # empty executable.
9921        if test "${lt_cv_aix_libpath+set}" = set; then
9922  aix_libpath=$lt_cv_aix_libpath
9923else
9924  if ${lt_cv_aix_libpath_+:} false; then :
9925  $as_echo_n "(cached) " >&6
9926else
9927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928/* end confdefs.h.  */
9929
9930int
9931main ()
9932{
9933
9934  ;
9935  return 0;
9936}
9937_ACEOF
9938if ac_fn_c_try_link "$LINENO"; then :
9939
9940  lt_aix_libpath_sed='
9941      /Import File Strings/,/^$/ {
9942	  /^0/ {
9943	      s/^0  *\([^ ]*\) *$/\1/
9944	      p
9945	  }
9946      }'
9947  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9948  # Check for a 64-bit object if we didn't find anything.
9949  if test -z "$lt_cv_aix_libpath_"; then
9950    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9951  fi
9952fi
9953rm -f core conftest.err conftest.$ac_objext \
9954    conftest$ac_exeext conftest.$ac_ext
9955  if test -z "$lt_cv_aix_libpath_"; then
9956    lt_cv_aix_libpath_="/usr/lib:/lib"
9957  fi
9958
9959fi
9960
9961  aix_libpath=$lt_cv_aix_libpath_
9962fi
9963
9964        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9965        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"
9966      else
9967	if test "$host_cpu" = ia64; then
9968	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9969	  allow_undefined_flag="-z nodefs"
9970	  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"
9971	else
9972	 # Determine the default libpath from the value encoded in an
9973	 # empty executable.
9974	 if test "${lt_cv_aix_libpath+set}" = set; then
9975  aix_libpath=$lt_cv_aix_libpath
9976else
9977  if ${lt_cv_aix_libpath_+:} false; then :
9978  $as_echo_n "(cached) " >&6
9979else
9980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981/* end confdefs.h.  */
9982
9983int
9984main ()
9985{
9986
9987  ;
9988  return 0;
9989}
9990_ACEOF
9991if ac_fn_c_try_link "$LINENO"; then :
9992
9993  lt_aix_libpath_sed='
9994      /Import File Strings/,/^$/ {
9995	  /^0/ {
9996	      s/^0  *\([^ ]*\) *$/\1/
9997	      p
9998	  }
9999      }'
10000  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10001  # Check for a 64-bit object if we didn't find anything.
10002  if test -z "$lt_cv_aix_libpath_"; then
10003    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10004  fi
10005fi
10006rm -f core conftest.err conftest.$ac_objext \
10007    conftest$ac_exeext conftest.$ac_ext
10008  if test -z "$lt_cv_aix_libpath_"; then
10009    lt_cv_aix_libpath_="/usr/lib:/lib"
10010  fi
10011
10012fi
10013
10014  aix_libpath=$lt_cv_aix_libpath_
10015fi
10016
10017	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10018	  # Warning - without using the other run time loading flags,
10019	  # -berok will link without error, but may produce a broken library.
10020	  no_undefined_flag=' ${wl}-bernotok'
10021	  allow_undefined_flag=' ${wl}-berok'
10022	  if test "$with_gnu_ld" = yes; then
10023	    # We only use this code for GNU lds that support --whole-archive.
10024	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10025	  else
10026	    # Exported symbols can be pulled into shared objects from archives
10027	    whole_archive_flag_spec='$convenience'
10028	  fi
10029	  archive_cmds_need_lc=yes
10030	  # This is similar to how AIX traditionally builds its shared libraries.
10031	  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'
10032	fi
10033      fi
10034      ;;
10035
10036    amigaos*)
10037      case $host_cpu in
10038      powerpc)
10039            # see comment about AmigaOS4 .so support
10040            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10041            archive_expsym_cmds=''
10042        ;;
10043      m68k)
10044            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)'
10045            hardcode_libdir_flag_spec='-L$libdir'
10046            hardcode_minus_L=yes
10047        ;;
10048      esac
10049      ;;
10050
10051    bsdi[45]*)
10052      export_dynamic_flag_spec=-rdynamic
10053      ;;
10054
10055    cygwin* | mingw* | pw32* | cegcc*)
10056      # When not using gcc, we currently assume that we are using
10057      # Microsoft Visual C++.
10058      # hardcode_libdir_flag_spec is actually meaningless, as there is
10059      # no search path for DLLs.
10060      case $cc_basename in
10061      cl*)
10062	# Native MSVC
10063	hardcode_libdir_flag_spec=' '
10064	allow_undefined_flag=unsupported
10065	always_export_symbols=yes
10066	file_list_spec='@'
10067	# Tell ltmain to make .lib files, not .a files.
10068	libext=lib
10069	# Tell ltmain to make .dll files, not .so files.
10070	shrext_cmds=".dll"
10071	# FIXME: Setting linknames here is a bad hack.
10072	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10073	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10074	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10075	  else
10076	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10077	  fi~
10078	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10079	  linknames='
10080	# The linker will not automatically build a static lib if we build a DLL.
10081	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10082	enable_shared_with_static_runtimes=yes
10083	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10084	# Don't use ranlib
10085	old_postinstall_cmds='chmod 644 $oldlib'
10086	postlink_cmds='lt_outputfile="@OUTPUT@"~
10087	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10088	  case $lt_outputfile in
10089	    *.exe|*.EXE) ;;
10090	    *)
10091	      lt_outputfile="$lt_outputfile.exe"
10092	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10093	      ;;
10094	  esac~
10095	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10096	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10097	    $RM "$lt_outputfile.manifest";
10098	  fi'
10099	;;
10100      *)
10101	# Assume MSVC wrapper
10102	hardcode_libdir_flag_spec=' '
10103	allow_undefined_flag=unsupported
10104	# Tell ltmain to make .lib files, not .a files.
10105	libext=lib
10106	# Tell ltmain to make .dll files, not .so files.
10107	shrext_cmds=".dll"
10108	# FIXME: Setting linknames here is a bad hack.
10109	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10110	# The linker will automatically build a .lib file if we build a DLL.
10111	old_archive_from_new_cmds='true'
10112	# FIXME: Should let the user specify the lib program.
10113	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10114	enable_shared_with_static_runtimes=yes
10115	;;
10116      esac
10117      ;;
10118
10119    darwin* | rhapsody*)
10120
10121
10122  archive_cmds_need_lc=no
10123  hardcode_direct=no
10124  hardcode_automatic=yes
10125  hardcode_shlibpath_var=unsupported
10126  if test "$lt_cv_ld_force_load" = "yes"; then
10127    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\"`'
10128  else
10129    whole_archive_flag_spec=''
10130  fi
10131  link_all_deplibs=yes
10132  allow_undefined_flag="$_lt_dar_allow_undefined"
10133  case $cc_basename in
10134     ifort*) _lt_dar_can_shared=yes ;;
10135     *) _lt_dar_can_shared=$GCC ;;
10136  esac
10137  if test "$_lt_dar_can_shared" = "yes"; then
10138    output_verbose_link_cmd=func_echo_all
10139    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10140    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10141    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}"
10142    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}"
10143
10144  else
10145  ld_shlibs=no
10146  fi
10147
10148      ;;
10149
10150    dgux*)
10151      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152      hardcode_libdir_flag_spec='-L$libdir'
10153      hardcode_shlibpath_var=no
10154      ;;
10155
10156    freebsd1*)
10157      ld_shlibs=no
10158      ;;
10159
10160    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10161    # support.  Future versions do this automatically, but an explicit c++rt0.o
10162    # does not break anything, and helps significantly (at the cost of a little
10163    # extra space).
10164    freebsd2.2*)
10165      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10166      hardcode_libdir_flag_spec='-R$libdir'
10167      hardcode_direct=yes
10168      hardcode_shlibpath_var=no
10169      ;;
10170
10171    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10172    freebsd2*)
10173      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10174      hardcode_direct=yes
10175      hardcode_minus_L=yes
10176      hardcode_shlibpath_var=no
10177      ;;
10178
10179    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10180    freebsd* | dragonfly*)
10181      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10182      hardcode_libdir_flag_spec='-R$libdir'
10183      hardcode_direct=yes
10184      hardcode_shlibpath_var=no
10185      ;;
10186
10187    hpux9*)
10188      if test "$GCC" = yes; then
10189	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10190      else
10191	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'
10192      fi
10193      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10194      hardcode_libdir_separator=:
10195      hardcode_direct=yes
10196
10197      # hardcode_minus_L: Not really in the search PATH,
10198      # but as the default location of the library.
10199      hardcode_minus_L=yes
10200      export_dynamic_flag_spec='${wl}-E'
10201      ;;
10202
10203    hpux10*)
10204      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10205	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10206      else
10207	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10208      fi
10209      if test "$with_gnu_ld" = no; then
10210	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10211	hardcode_libdir_flag_spec_ld='+b $libdir'
10212	hardcode_libdir_separator=:
10213	hardcode_direct=yes
10214	hardcode_direct_absolute=yes
10215	export_dynamic_flag_spec='${wl}-E'
10216	# hardcode_minus_L: Not really in the search PATH,
10217	# but as the default location of the library.
10218	hardcode_minus_L=yes
10219      fi
10220      ;;
10221
10222    hpux11*)
10223      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10224	case $host_cpu in
10225	hppa*64*)
10226	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10227	  ;;
10228	ia64*)
10229	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10230	  ;;
10231	*)
10232	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10233	  ;;
10234	esac
10235      else
10236	case $host_cpu in
10237	hppa*64*)
10238	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10239	  ;;
10240	ia64*)
10241	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10242	  ;;
10243	*)
10244
10245	  # Older versions of the 11.00 compiler do not understand -b yet
10246	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10247	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10248$as_echo_n "checking if $CC understands -b... " >&6; }
10249if ${lt_cv_prog_compiler__b+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  lt_cv_prog_compiler__b=no
10253   save_LDFLAGS="$LDFLAGS"
10254   LDFLAGS="$LDFLAGS -b"
10255   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10256   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10257     # The linker can only warn and ignore the option if not recognized
10258     # So say no if there are warnings
10259     if test -s conftest.err; then
10260       # Append any errors to the config.log.
10261       cat conftest.err 1>&5
10262       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10263       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10264       if diff conftest.exp conftest.er2 >/dev/null; then
10265         lt_cv_prog_compiler__b=yes
10266       fi
10267     else
10268       lt_cv_prog_compiler__b=yes
10269     fi
10270   fi
10271   $RM -r conftest*
10272   LDFLAGS="$save_LDFLAGS"
10273
10274fi
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10276$as_echo "$lt_cv_prog_compiler__b" >&6; }
10277
10278if test x"$lt_cv_prog_compiler__b" = xyes; then
10279    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10280else
10281    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10282fi
10283
10284	  ;;
10285	esac
10286      fi
10287      if test "$with_gnu_ld" = no; then
10288	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10289	hardcode_libdir_separator=:
10290
10291	case $host_cpu in
10292	hppa*64*|ia64*)
10293	  hardcode_direct=no
10294	  hardcode_shlibpath_var=no
10295	  ;;
10296	*)
10297	  hardcode_direct=yes
10298	  hardcode_direct_absolute=yes
10299	  export_dynamic_flag_spec='${wl}-E'
10300
10301	  # hardcode_minus_L: Not really in the search PATH,
10302	  # but as the default location of the library.
10303	  hardcode_minus_L=yes
10304	  ;;
10305	esac
10306      fi
10307      ;;
10308
10309    irix5* | irix6* | nonstopux*)
10310      if test "$GCC" = yes; then
10311	archive_cmds='$CC -shared $pic_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'
10312	# Try to use the -exported_symbol ld option, if it does not
10313	# work, assume that -exports_file does not work either and
10314	# implicitly export all symbols.
10315	# This should be the same for all languages, so no per-tag cache variable.
10316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10317$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10318if ${lt_cv_irix_exported_symbol+:} false; then :
10319  $as_echo_n "(cached) " >&6
10320else
10321  save_LDFLAGS="$LDFLAGS"
10322	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10323	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324/* end confdefs.h.  */
10325int foo (void) { return 0; }
10326_ACEOF
10327if ac_fn_c_try_link "$LINENO"; then :
10328  lt_cv_irix_exported_symbol=yes
10329else
10330  lt_cv_irix_exported_symbol=no
10331fi
10332rm -f core conftest.err conftest.$ac_objext \
10333    conftest$ac_exeext conftest.$ac_ext
10334           LDFLAGS="$save_LDFLAGS"
10335fi
10336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10337$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10338	if test "$lt_cv_irix_exported_symbol" = yes; then
10339          archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10340	fi
10341      else
10342	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'
10343	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'
10344      fi
10345      archive_cmds_need_lc='no'
10346      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10347      hardcode_libdir_separator=:
10348      inherit_rpath=yes
10349      link_all_deplibs=yes
10350      ;;
10351
10352    netbsd*)
10353      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10355      else
10356	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10357      fi
10358      hardcode_libdir_flag_spec='-R$libdir'
10359      hardcode_direct=yes
10360      hardcode_shlibpath_var=no
10361      ;;
10362
10363    newsos6)
10364      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10365      hardcode_direct=yes
10366      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10367      hardcode_libdir_separator=:
10368      hardcode_shlibpath_var=no
10369      ;;
10370
10371    *nto* | *qnx*)
10372      ;;
10373
10374    openbsd*)
10375      if test -f /usr/libexec/ld.so; then
10376	hardcode_direct=yes
10377	hardcode_shlibpath_var=no
10378	hardcode_direct_absolute=yes
10379	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10380	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10381	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10382	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10383	  export_dynamic_flag_spec='${wl}-E'
10384	else
10385	  case $host_os in
10386	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10387	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10388	     hardcode_libdir_flag_spec='-R$libdir'
10389	     ;;
10390	   *)
10391	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10392	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10393	     ;;
10394	  esac
10395	fi
10396      else
10397	ld_shlibs=no
10398      fi
10399      ;;
10400
10401    os2*)
10402      hardcode_libdir_flag_spec='-L$libdir'
10403      hardcode_minus_L=yes
10404      allow_undefined_flag=unsupported
10405      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'
10406      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10407      ;;
10408
10409    osf3*)
10410      if test "$GCC" = yes; then
10411	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10412	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'
10413      else
10414	allow_undefined_flag=' -expect_unresolved \*'
10415	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'
10416      fi
10417      archive_cmds_need_lc='no'
10418      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10419      hardcode_libdir_separator=:
10420      ;;
10421
10422    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10423      if test "$GCC" = yes; then
10424	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10425	archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
10426	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10427      else
10428	allow_undefined_flag=' -expect_unresolved \*'
10429	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'
10430	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~
10431	$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'
10432
10433	# Both c and cxx compiler support -rpath directly
10434	hardcode_libdir_flag_spec='-rpath $libdir'
10435      fi
10436      archive_cmds_need_lc='no'
10437      hardcode_libdir_separator=:
10438      ;;
10439
10440    solaris*)
10441      no_undefined_flag=' -z defs'
10442      if test "$GCC" = yes; then
10443	wlarc='${wl}'
10444	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10445	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10446	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10447      else
10448	case `$CC -V 2>&1` in
10449	*"Compilers 5.0"*)
10450	  wlarc=''
10451	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10453	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10454	  ;;
10455	*)
10456	  wlarc='${wl}'
10457	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10458	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10459	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10460	  ;;
10461	esac
10462      fi
10463      hardcode_libdir_flag_spec='-R$libdir'
10464      hardcode_shlibpath_var=no
10465      case $host_os in
10466      solaris2.[0-5] | solaris2.[0-5].*) ;;
10467      *)
10468	# The compiler driver will combine and reorder linker options,
10469	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10470	# but is careful enough not to reorder.
10471	# Supported since Solaris 2.6 (maybe 2.5.1?)
10472	if test "$GCC" = yes; then
10473	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10474	else
10475	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10476	fi
10477	;;
10478      esac
10479      link_all_deplibs=yes
10480      ;;
10481
10482    sunos4*)
10483      if test "x$host_vendor" = xsequent; then
10484	# Use $CC to link under sequent, because it throws in some extra .o
10485	# files that make .init and .fini sections work.
10486	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10487      else
10488	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10489      fi
10490      hardcode_libdir_flag_spec='-L$libdir'
10491      hardcode_direct=yes
10492      hardcode_minus_L=yes
10493      hardcode_shlibpath_var=no
10494      ;;
10495
10496    sysv4)
10497      case $host_vendor in
10498	sni)
10499	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10500	  hardcode_direct=yes # is this really true???
10501	;;
10502	siemens)
10503	  ## LD is ld it makes a PLAMLIB
10504	  ## CC just makes a GrossModule.
10505	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10506	  reload_cmds='$CC -r -o $output$reload_objs'
10507	  hardcode_direct=no
10508        ;;
10509	motorola)
10510	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10511	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10512	;;
10513      esac
10514      runpath_var='LD_RUN_PATH'
10515      hardcode_shlibpath_var=no
10516      ;;
10517
10518    sysv4.3*)
10519      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10520      hardcode_shlibpath_var=no
10521      export_dynamic_flag_spec='-Bexport'
10522      ;;
10523
10524    sysv4*MP*)
10525      if test -d /usr/nec; then
10526	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527	hardcode_shlibpath_var=no
10528	runpath_var=LD_RUN_PATH
10529	hardcode_runpath_var=yes
10530	ld_shlibs=yes
10531      fi
10532      ;;
10533
10534    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10535      no_undefined_flag='${wl}-z,text'
10536      archive_cmds_need_lc=no
10537      hardcode_shlibpath_var=no
10538      runpath_var='LD_RUN_PATH'
10539
10540      if test "$GCC" = yes; then
10541	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10542	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543      else
10544	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10545	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10546      fi
10547      ;;
10548
10549    sysv5* | sco3.2v5* | sco5v6*)
10550      # Note: We can NOT use -z defs as we might desire, because we do not
10551      # link with -lc, and that would cause any symbols used from libc to
10552      # always be unresolved, which means just about no library would
10553      # ever link correctly.  If we're not using GNU ld we use -z text
10554      # though, which does catch some bad symbols but isn't as heavy-handed
10555      # as -z defs.
10556      no_undefined_flag='${wl}-z,text'
10557      allow_undefined_flag='${wl}-z,nodefs'
10558      archive_cmds_need_lc=no
10559      hardcode_shlibpath_var=no
10560      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10561      hardcode_libdir_separator=':'
10562      link_all_deplibs=yes
10563      export_dynamic_flag_spec='${wl}-Bexport'
10564      runpath_var='LD_RUN_PATH'
10565
10566      if test "$GCC" = yes; then
10567	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10568	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569      else
10570	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10571	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10572      fi
10573      ;;
10574
10575    uts4*)
10576      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10577      hardcode_libdir_flag_spec='-L$libdir'
10578      hardcode_shlibpath_var=no
10579      ;;
10580
10581    *)
10582      ld_shlibs=no
10583      ;;
10584    esac
10585
10586    if test x$host_vendor = xsni; then
10587      case $host in
10588      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10589	export_dynamic_flag_spec='${wl}-Blargedynsym'
10590	;;
10591      esac
10592    fi
10593  fi
10594
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10596$as_echo "$ld_shlibs" >&6; }
10597test "$ld_shlibs" = no && can_build_shared=no
10598
10599with_gnu_ld=$with_gnu_ld
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615#
10616# Do we need to explicitly link libc?
10617#
10618case "x$archive_cmds_need_lc" in
10619x|xyes)
10620  # Assume -lc should be added
10621  archive_cmds_need_lc=yes
10622
10623  if test "$enable_shared" = yes && test "$GCC" = yes; then
10624    case $archive_cmds in
10625    *'~'*)
10626      # FIXME: we may have to deal with multi-command sequences.
10627      ;;
10628    '$CC '*)
10629      # Test whether the compiler implicitly links with -lc since on some
10630      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10631      # to ld, don't add -lc before -lgcc.
10632      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10633$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10634if ${lt_cv_archive_cmds_need_lc+:} false; then :
10635  $as_echo_n "(cached) " >&6
10636else
10637  $RM conftest*
10638	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10639
10640	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10641  (eval $ac_compile) 2>&5
10642  ac_status=$?
10643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10644  test $ac_status = 0; } 2>conftest.err; then
10645	  soname=conftest
10646	  lib=conftest
10647	  libobjs=conftest.$ac_objext
10648	  deplibs=
10649	  wl=$lt_prog_compiler_wl
10650	  pic_flag=$lt_prog_compiler_pic
10651	  compiler_flags=-v
10652	  linker_flags=-v
10653	  verstring=
10654	  output_objdir=.
10655	  libname=conftest
10656	  lt_save_allow_undefined_flag=$allow_undefined_flag
10657	  allow_undefined_flag=
10658	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10659  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10660  ac_status=$?
10661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662  test $ac_status = 0; }
10663	  then
10664	    lt_cv_archive_cmds_need_lc=no
10665	  else
10666	    lt_cv_archive_cmds_need_lc=yes
10667	  fi
10668	  allow_undefined_flag=$lt_save_allow_undefined_flag
10669	else
10670	  cat conftest.err 1>&5
10671	fi
10672	$RM conftest*
10673
10674fi
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10676$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10677      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10678      ;;
10679    esac
10680  fi
10681  ;;
10682esac
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10841$as_echo_n "checking dynamic linker characteristics... " >&6; }
10842
10843if test "$GCC" = yes; then
10844  case $host_os in
10845    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10846    *) lt_awk_arg="/^libraries:/" ;;
10847  esac
10848  case $host_os in
10849    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10850    *) lt_sed_strip_eq="s,=/,/,g" ;;
10851  esac
10852  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10853  case $lt_search_path_spec in
10854  *\;*)
10855    # if the path contains ";" then we assume it to be the separator
10856    # otherwise default to the standard path separator (i.e. ":") - it is
10857    # assumed that no part of a normal pathname contains ";" but that should
10858    # okay in the real world where ";" in dirpaths is itself problematic.
10859    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10860    ;;
10861  *)
10862    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10863    ;;
10864  esac
10865  # Ok, now we have the path, separated by spaces, we can step through it
10866  # and add multilib dir if necessary.
10867  lt_tmp_lt_search_path_spec=
10868  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10869  for lt_sys_path in $lt_search_path_spec; do
10870    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10871      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10872    else
10873      test -d "$lt_sys_path" && \
10874	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10875    fi
10876  done
10877  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10878BEGIN {RS=" "; FS="/|\n";} {
10879  lt_foo="";
10880  lt_count=0;
10881  for (lt_i = NF; lt_i > 0; lt_i--) {
10882    if ($lt_i != "" && $lt_i != ".") {
10883      if ($lt_i == "..") {
10884        lt_count++;
10885      } else {
10886        if (lt_count == 0) {
10887          lt_foo="/" $lt_i lt_foo;
10888        } else {
10889          lt_count--;
10890        }
10891      }
10892    }
10893  }
10894  if (lt_foo != "") { lt_freq[lt_foo]++; }
10895  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10896}'`
10897  # AWK program above erroneously prepends '/' to C:/dos/paths
10898  # for these hosts.
10899  case $host_os in
10900    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10901      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10902  esac
10903  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10904else
10905  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10906fi
10907library_names_spec=
10908libname_spec='lib$name'
10909soname_spec=
10910shrext_cmds=".so"
10911postinstall_cmds=
10912postuninstall_cmds=
10913finish_cmds=
10914finish_eval=
10915shlibpath_var=
10916shlibpath_overrides_runpath=unknown
10917version_type=none
10918dynamic_linker="$host_os ld.so"
10919sys_lib_dlsearch_path_spec="/lib /usr/lib"
10920need_lib_prefix=unknown
10921hardcode_into_libs=no
10922
10923# when you set need_version to no, make sure it does not cause -set_version
10924# flags to be left without arguments
10925need_version=unknown
10926
10927case $host_os in
10928aix3*)
10929  version_type=linux
10930  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10931  shlibpath_var=LIBPATH
10932
10933  # AIX 3 has no versioning support, so we append a major version to the name.
10934  soname_spec='${libname}${release}${shared_ext}$major'
10935  ;;
10936
10937aix[4-9]*)
10938  version_type=linux
10939  need_lib_prefix=no
10940  need_version=no
10941  hardcode_into_libs=yes
10942  if test "$host_cpu" = ia64; then
10943    # AIX 5 supports IA64
10944    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10945    shlibpath_var=LD_LIBRARY_PATH
10946  else
10947    # With GCC up to 2.95.x, collect2 would create an import file
10948    # for dependence libraries.  The import file would start with
10949    # the line `#! .'.  This would cause the generated library to
10950    # depend on `.', always an invalid library.  This was fixed in
10951    # development snapshots of GCC prior to 3.0.
10952    case $host_os in
10953      aix4 | aix4.[01] | aix4.[01].*)
10954      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10955	   echo ' yes '
10956	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10957	:
10958      else
10959	can_build_shared=no
10960      fi
10961      ;;
10962    esac
10963    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10964    # soname into executable. Probably we can add versioning support to
10965    # collect2, so additional links can be useful in future.
10966    if test "$aix_use_runtimelinking" = yes; then
10967      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10968      # instead of lib<name>.a to let people know that these are not
10969      # typical AIX shared libraries.
10970      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971    else
10972      # We preserve .a as extension for shared libraries through AIX4.2
10973      # and later when we are not doing run time linking.
10974      library_names_spec='${libname}${release}.a $libname.a'
10975      soname_spec='${libname}${release}${shared_ext}$major'
10976    fi
10977    shlibpath_var=LIBPATH
10978  fi
10979  ;;
10980
10981amigaos*)
10982  case $host_cpu in
10983  powerpc)
10984    # Since July 2007 AmigaOS4 officially supports .so libraries.
10985    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10986    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987    ;;
10988  m68k)
10989    library_names_spec='$libname.ixlibrary $libname.a'
10990    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10991    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'
10992    ;;
10993  esac
10994  ;;
10995
10996beos*)
10997  library_names_spec='${libname}${shared_ext}'
10998  dynamic_linker="$host_os ld.so"
10999  shlibpath_var=LIBRARY_PATH
11000  ;;
11001
11002bsdi[45]*)
11003  version_type=linux
11004  need_version=no
11005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006  soname_spec='${libname}${release}${shared_ext}$major'
11007  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11008  shlibpath_var=LD_LIBRARY_PATH
11009  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11010  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11011  # the default ld.so.conf also contains /usr/contrib/lib and
11012  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11013  # libtool to hard-code these into programs
11014  ;;
11015
11016cygwin* | mingw* | pw32* | cegcc*)
11017  version_type=windows
11018  shrext_cmds=".dll"
11019  need_version=no
11020  need_lib_prefix=no
11021
11022  case $GCC,$cc_basename in
11023  yes,*)
11024    # gcc
11025    library_names_spec='$libname.dll.a'
11026    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11027    postinstall_cmds='base_file=`basename \${file}`~
11028      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11029      dldir=$destdir/`dirname \$dlpath`~
11030      test -d \$dldir || mkdir -p \$dldir~
11031      $install_prog $dir/$dlname \$dldir/$dlname~
11032      chmod a+x \$dldir/$dlname~
11033      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11034        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11035      fi'
11036    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11037      dlpath=$dir/\$dldll~
11038       $RM \$dlpath'
11039    shlibpath_overrides_runpath=yes
11040
11041    case $host_os in
11042    cygwin*)
11043      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11044      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11045
11046      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11047      ;;
11048    mingw* | cegcc*)
11049      # MinGW DLLs use traditional 'lib' prefix
11050      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11051      ;;
11052    pw32*)
11053      # pw32 DLLs use 'pw' prefix rather than 'lib'
11054      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11055      ;;
11056    esac
11057    dynamic_linker='Win32 ld.exe'
11058    ;;
11059
11060  *,cl*)
11061    # Native MSVC
11062    libname_spec='$name'
11063    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11064    library_names_spec='${libname}.dll.lib'
11065
11066    case $build_os in
11067    mingw*)
11068      sys_lib_search_path_spec=
11069      lt_save_ifs=$IFS
11070      IFS=';'
11071      for lt_path in $LIB
11072      do
11073        IFS=$lt_save_ifs
11074        # Let DOS variable expansion print the short 8.3 style file name.
11075        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11076        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11077      done
11078      IFS=$lt_save_ifs
11079      # Convert to MSYS style.
11080      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11081      ;;
11082    cygwin*)
11083      # Convert to unix form, then to dos form, then back to unix form
11084      # but this time dos style (no spaces!) so that the unix form looks
11085      # like /cygdrive/c/PROGRA~1:/cygdr...
11086      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11087      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11088      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11089      ;;
11090    *)
11091      sys_lib_search_path_spec="$LIB"
11092      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11093        # It is most probably a Windows format PATH.
11094        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11095      else
11096        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11097      fi
11098      # FIXME: find the short name or the path components, as spaces are
11099      # common. (e.g. "Program Files" -> "PROGRA~1")
11100      ;;
11101    esac
11102
11103    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11104    postinstall_cmds='base_file=`basename \${file}`~
11105      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11106      dldir=$destdir/`dirname \$dlpath`~
11107      test -d \$dldir || mkdir -p \$dldir~
11108      $install_prog $dir/$dlname \$dldir/$dlname'
11109    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11110      dlpath=$dir/\$dldll~
11111       $RM \$dlpath'
11112    shlibpath_overrides_runpath=yes
11113    dynamic_linker='Win32 link.exe'
11114    ;;
11115
11116  *)
11117    # Assume MSVC wrapper
11118    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11119    dynamic_linker='Win32 ld.exe'
11120    ;;
11121  esac
11122  # FIXME: first we should search . and the directory the executable is in
11123  shlibpath_var=PATH
11124  ;;
11125
11126darwin* | rhapsody*)
11127  dynamic_linker="$host_os dyld"
11128  version_type=darwin
11129  need_lib_prefix=no
11130  need_version=no
11131  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11132  soname_spec='${libname}${release}${major}$shared_ext'
11133  shlibpath_overrides_runpath=yes
11134  shlibpath_var=DYLD_LIBRARY_PATH
11135  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11136
11137  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11138  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11139  ;;
11140
11141dgux*)
11142  version_type=linux
11143  need_lib_prefix=no
11144  need_version=no
11145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11146  soname_spec='${libname}${release}${shared_ext}$major'
11147  shlibpath_var=LD_LIBRARY_PATH
11148  ;;
11149
11150freebsd1*)
11151  dynamic_linker=no
11152  ;;
11153
11154freebsd* | dragonfly*)
11155  # DragonFly does not have aout.  When/if they implement a new
11156  # versioning mechanism, adjust this.
11157  if test -x /usr/bin/objformat; then
11158    objformat=`/usr/bin/objformat`
11159  else
11160    case $host_os in
11161    freebsd[123]*) objformat=aout ;;
11162    *) objformat=elf ;;
11163    esac
11164  fi
11165  version_type=freebsd-$objformat
11166  case $version_type in
11167    freebsd-elf*)
11168      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11169      need_version=no
11170      need_lib_prefix=no
11171      ;;
11172    freebsd-*)
11173      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11174      need_version=yes
11175      ;;
11176  esac
11177  shlibpath_var=LD_LIBRARY_PATH
11178  case $host_os in
11179  freebsd2*)
11180    shlibpath_overrides_runpath=yes
11181    ;;
11182  freebsd3.[01]* | freebsdelf3.[01]*)
11183    shlibpath_overrides_runpath=yes
11184    hardcode_into_libs=yes
11185    ;;
11186  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11187  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11188    shlibpath_overrides_runpath=no
11189    hardcode_into_libs=yes
11190    ;;
11191  *) # from 4.6 on, and DragonFly
11192    shlibpath_overrides_runpath=yes
11193    hardcode_into_libs=yes
11194    ;;
11195  esac
11196  ;;
11197
11198gnu*)
11199  version_type=linux
11200  need_lib_prefix=no
11201  need_version=no
11202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11203  soname_spec='${libname}${release}${shared_ext}$major'
11204  shlibpath_var=LD_LIBRARY_PATH
11205  hardcode_into_libs=yes
11206  ;;
11207
11208haiku*)
11209  version_type=linux
11210  need_lib_prefix=no
11211  need_version=no
11212  dynamic_linker="$host_os runtime_loader"
11213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11214  soname_spec='${libname}${release}${shared_ext}$major'
11215  shlibpath_var=LIBRARY_PATH
11216  shlibpath_overrides_runpath=yes
11217  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11218  hardcode_into_libs=yes
11219  ;;
11220
11221hpux9* | hpux10* | hpux11*)
11222  # Give a soname corresponding to the major version so that dld.sl refuses to
11223  # link against other versions.
11224  version_type=sunos
11225  need_lib_prefix=no
11226  need_version=no
11227  case $host_cpu in
11228  ia64*)
11229    shrext_cmds='.so'
11230    hardcode_into_libs=yes
11231    dynamic_linker="$host_os dld.so"
11232    shlibpath_var=LD_LIBRARY_PATH
11233    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11234    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235    soname_spec='${libname}${release}${shared_ext}$major'
11236    if test "X$HPUX_IA64_MODE" = X32; then
11237      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11238    else
11239      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11240    fi
11241    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11242    ;;
11243  hppa*64*)
11244    shrext_cmds='.sl'
11245    hardcode_into_libs=yes
11246    dynamic_linker="$host_os dld.sl"
11247    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11248    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11249    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250    soname_spec='${libname}${release}${shared_ext}$major'
11251    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11252    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11253    ;;
11254  *)
11255    shrext_cmds='.sl'
11256    dynamic_linker="$host_os dld.sl"
11257    shlibpath_var=SHLIB_PATH
11258    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11259    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260    soname_spec='${libname}${release}${shared_ext}$major'
11261    ;;
11262  esac
11263  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11264  postinstall_cmds='chmod 555 $lib'
11265  # or fails outright, so override atomically:
11266  install_override_mode=555
11267  ;;
11268
11269interix[3-9]*)
11270  version_type=linux
11271  need_lib_prefix=no
11272  need_version=no
11273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11274  soname_spec='${libname}${release}${shared_ext}$major'
11275  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11276  shlibpath_var=LD_LIBRARY_PATH
11277  shlibpath_overrides_runpath=no
11278  hardcode_into_libs=yes
11279  ;;
11280
11281irix5* | irix6* | nonstopux*)
11282  case $host_os in
11283    nonstopux*) version_type=nonstopux ;;
11284    *)
11285	if test "$lt_cv_prog_gnu_ld" = yes; then
11286		version_type=linux
11287	else
11288		version_type=irix
11289	fi ;;
11290  esac
11291  need_lib_prefix=no
11292  need_version=no
11293  soname_spec='${libname}${release}${shared_ext}$major'
11294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11295  case $host_os in
11296  irix5* | nonstopux*)
11297    libsuff= shlibsuff=
11298    ;;
11299  *)
11300    case $LD in # libtool.m4 will add one of these switches to LD
11301    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11302      libsuff= shlibsuff= libmagic=32-bit;;
11303    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11304      libsuff=32 shlibsuff=N32 libmagic=N32;;
11305    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11306      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11307    *) libsuff= shlibsuff= libmagic=never-match;;
11308    esac
11309    ;;
11310  esac
11311  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11312  shlibpath_overrides_runpath=no
11313  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11314  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11315  hardcode_into_libs=yes
11316  ;;
11317
11318# No shared lib support for Linux oldld, aout, or coff.
11319linux*oldld* | linux*aout* | linux*coff*)
11320  dynamic_linker=no
11321  ;;
11322
11323# This must be Linux ELF.
11324linux* | k*bsd*-gnu | kopensolaris*-gnu)
11325  version_type=linux
11326  need_lib_prefix=no
11327  need_version=no
11328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329  soname_spec='${libname}${release}${shared_ext}$major'
11330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11331  shlibpath_var=LD_LIBRARY_PATH
11332  shlibpath_overrides_runpath=no
11333
11334  # Some binutils ld are patched to set DT_RUNPATH
11335  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11336  $as_echo_n "(cached) " >&6
11337else
11338  lt_cv_shlibpath_overrides_runpath=no
11339    save_LDFLAGS=$LDFLAGS
11340    save_libdir=$libdir
11341    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11342	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11343    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h.  */
11345
11346int
11347main ()
11348{
11349
11350  ;
11351  return 0;
11352}
11353_ACEOF
11354if ac_fn_c_try_link "$LINENO"; then :
11355  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11356  lt_cv_shlibpath_overrides_runpath=yes
11357fi
11358fi
11359rm -f core conftest.err conftest.$ac_objext \
11360    conftest$ac_exeext conftest.$ac_ext
11361    LDFLAGS=$save_LDFLAGS
11362    libdir=$save_libdir
11363
11364fi
11365
11366  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11367
11368  # This implies no fast_install, which is unacceptable.
11369  # Some rework will be needed to allow for fast_install
11370  # before this can be enabled.
11371  hardcode_into_libs=yes
11372
11373  # Append ld.so.conf contents to the search path
11374  if test -f /etc/ld.so.conf; then
11375    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' ' '`
11376    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11377  fi
11378
11379  # We used to test for /lib/ld.so.1 and disable shared libraries on
11380  # powerpc, because MkLinux only supported shared libraries with the
11381  # GNU dynamic linker.  Since this was broken with cross compilers,
11382  # most powerpc-linux boxes support dynamic linking these days and
11383  # people can always --disable-shared, the test was removed, and we
11384  # assume the GNU/Linux dynamic linker is in use.
11385  dynamic_linker='GNU/Linux ld.so'
11386  ;;
11387
11388netbsd*)
11389  version_type=sunos
11390  need_lib_prefix=no
11391  need_version=no
11392  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11394    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11395    dynamic_linker='NetBSD (a.out) ld.so'
11396  else
11397    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11398    soname_spec='${libname}${release}${shared_ext}$major'
11399    dynamic_linker='NetBSD ld.elf_so'
11400  fi
11401  shlibpath_var=LD_LIBRARY_PATH
11402  shlibpath_overrides_runpath=yes
11403  hardcode_into_libs=yes
11404  ;;
11405
11406newsos6)
11407  version_type=linux
11408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409  shlibpath_var=LD_LIBRARY_PATH
11410  shlibpath_overrides_runpath=yes
11411  ;;
11412
11413*nto* | *qnx*)
11414  version_type=qnx
11415  need_lib_prefix=no
11416  need_version=no
11417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418  soname_spec='${libname}${release}${shared_ext}$major'
11419  shlibpath_var=LD_LIBRARY_PATH
11420  shlibpath_overrides_runpath=no
11421  hardcode_into_libs=yes
11422  dynamic_linker='ldqnx.so'
11423  ;;
11424
11425openbsd*)
11426  version_type=sunos
11427  sys_lib_dlsearch_path_spec="/usr/lib"
11428  need_lib_prefix=no
11429  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11430  case $host_os in
11431    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11432    *)				need_version=no  ;;
11433  esac
11434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11435  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11436  shlibpath_var=LD_LIBRARY_PATH
11437  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11438    case $host_os in
11439      openbsd2.[89] | openbsd2.[89].*)
11440	shlibpath_overrides_runpath=no
11441	;;
11442      *)
11443	shlibpath_overrides_runpath=yes
11444	;;
11445      esac
11446  else
11447    shlibpath_overrides_runpath=yes
11448  fi
11449  ;;
11450
11451os2*)
11452  libname_spec='$name'
11453  shrext_cmds=".dll"
11454  need_lib_prefix=no
11455  library_names_spec='$libname${shared_ext} $libname.a'
11456  dynamic_linker='OS/2 ld.exe'
11457  shlibpath_var=LIBPATH
11458  ;;
11459
11460osf3* | osf4* | osf5*)
11461  version_type=osf
11462  need_lib_prefix=no
11463  need_version=no
11464  soname_spec='${libname}${release}${shared_ext}$major'
11465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466  shlibpath_var=LD_LIBRARY_PATH
11467  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11468  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11469  ;;
11470
11471rdos*)
11472  dynamic_linker=no
11473  ;;
11474
11475solaris*)
11476  version_type=linux
11477  need_lib_prefix=no
11478  need_version=no
11479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480  soname_spec='${libname}${release}${shared_ext}$major'
11481  shlibpath_var=LD_LIBRARY_PATH
11482  shlibpath_overrides_runpath=yes
11483  hardcode_into_libs=yes
11484  # ldd complains unless libraries are executable
11485  postinstall_cmds='chmod +x $lib'
11486  ;;
11487
11488sunos4*)
11489  version_type=sunos
11490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11491  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11492  shlibpath_var=LD_LIBRARY_PATH
11493  shlibpath_overrides_runpath=yes
11494  if test "$with_gnu_ld" = yes; then
11495    need_lib_prefix=no
11496  fi
11497  need_version=yes
11498  ;;
11499
11500sysv4 | sysv4.3*)
11501  version_type=linux
11502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503  soname_spec='${libname}${release}${shared_ext}$major'
11504  shlibpath_var=LD_LIBRARY_PATH
11505  case $host_vendor in
11506    sni)
11507      shlibpath_overrides_runpath=no
11508      need_lib_prefix=no
11509      runpath_var=LD_RUN_PATH
11510      ;;
11511    siemens)
11512      need_lib_prefix=no
11513      ;;
11514    motorola)
11515      need_lib_prefix=no
11516      need_version=no
11517      shlibpath_overrides_runpath=no
11518      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11519      ;;
11520  esac
11521  ;;
11522
11523sysv4*MP*)
11524  if test -d /usr/nec ;then
11525    version_type=linux
11526    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11527    soname_spec='$libname${shared_ext}.$major'
11528    shlibpath_var=LD_LIBRARY_PATH
11529  fi
11530  ;;
11531
11532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11533  version_type=freebsd-elf
11534  need_lib_prefix=no
11535  need_version=no
11536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11537  soname_spec='${libname}${release}${shared_ext}$major'
11538  shlibpath_var=LD_LIBRARY_PATH
11539  shlibpath_overrides_runpath=yes
11540  hardcode_into_libs=yes
11541  if test "$with_gnu_ld" = yes; then
11542    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11543  else
11544    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11545    case $host_os in
11546      sco3.2v5*)
11547        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11548	;;
11549    esac
11550  fi
11551  sys_lib_dlsearch_path_spec='/usr/lib'
11552  ;;
11553
11554tpf*)
11555  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11556  version_type=linux
11557  need_lib_prefix=no
11558  need_version=no
11559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560  shlibpath_var=LD_LIBRARY_PATH
11561  shlibpath_overrides_runpath=no
11562  hardcode_into_libs=yes
11563  ;;
11564
11565uts4*)
11566  version_type=linux
11567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568  soname_spec='${libname}${release}${shared_ext}$major'
11569  shlibpath_var=LD_LIBRARY_PATH
11570  ;;
11571
11572*)
11573  dynamic_linker=no
11574  ;;
11575esac
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11577$as_echo "$dynamic_linker" >&6; }
11578test "$dynamic_linker" = no && can_build_shared=no
11579
11580variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11581if test "$GCC" = yes; then
11582  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11583fi
11584
11585if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11586  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11587fi
11588if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11589  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11590fi
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11684$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11685hardcode_action=
11686if test -n "$hardcode_libdir_flag_spec" ||
11687   test -n "$runpath_var" ||
11688   test "X$hardcode_automatic" = "Xyes" ; then
11689
11690  # We can hardcode non-existent directories.
11691  if test "$hardcode_direct" != no &&
11692     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11693     # have to relink, otherwise we might link with an installed library
11694     # when we should be linking with a yet-to-be-installed one
11695     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11696     test "$hardcode_minus_L" != no; then
11697    # Linking always hardcodes the temporary library directory.
11698    hardcode_action=relink
11699  else
11700    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11701    hardcode_action=immediate
11702  fi
11703else
11704  # We cannot hardcode anything, or else we can only hardcode existing
11705  # directories.
11706  hardcode_action=unsupported
11707fi
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11709$as_echo "$hardcode_action" >&6; }
11710
11711if test "$hardcode_action" = relink ||
11712   test "$inherit_rpath" = yes; then
11713  # Fast installation is not supported
11714  enable_fast_install=no
11715elif test "$shlibpath_overrides_runpath" = yes ||
11716     test "$enable_shared" = no; then
11717  # Fast installation is not necessary
11718  enable_fast_install=needless
11719fi
11720
11721
11722
11723
11724
11725
11726  if test "x$enable_dlopen" != xyes; then
11727  enable_dlopen=unknown
11728  enable_dlopen_self=unknown
11729  enable_dlopen_self_static=unknown
11730else
11731  lt_cv_dlopen=no
11732  lt_cv_dlopen_libs=
11733
11734  case $host_os in
11735  beos*)
11736    lt_cv_dlopen="load_add_on"
11737    lt_cv_dlopen_libs=
11738    lt_cv_dlopen_self=yes
11739    ;;
11740
11741  mingw* | pw32* | cegcc*)
11742    lt_cv_dlopen="LoadLibrary"
11743    lt_cv_dlopen_libs=
11744    ;;
11745
11746  cygwin*)
11747    lt_cv_dlopen="dlopen"
11748    lt_cv_dlopen_libs=
11749    ;;
11750
11751  darwin*)
11752  # if libdl is installed we need to link against it
11753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11754$as_echo_n "checking for dlopen in -ldl... " >&6; }
11755if ${ac_cv_lib_dl_dlopen+:} false; then :
11756  $as_echo_n "(cached) " >&6
11757else
11758  ac_check_lib_save_LIBS=$LIBS
11759LIBS="-ldl  $LIBS"
11760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761/* end confdefs.h.  */
11762
11763/* Override any GCC internal prototype to avoid an error.
11764   Use char because int might match the return type of a GCC
11765   builtin and then its argument prototype would still apply.  */
11766#ifdef __cplusplus
11767extern "C"
11768#endif
11769char dlopen ();
11770int
11771main ()
11772{
11773return dlopen ();
11774  ;
11775  return 0;
11776}
11777_ACEOF
11778if ac_fn_c_try_link "$LINENO"; then :
11779  ac_cv_lib_dl_dlopen=yes
11780else
11781  ac_cv_lib_dl_dlopen=no
11782fi
11783rm -f core conftest.err conftest.$ac_objext \
11784    conftest$ac_exeext conftest.$ac_ext
11785LIBS=$ac_check_lib_save_LIBS
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11788$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11789if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11790  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11791else
11792
11793    lt_cv_dlopen="dyld"
11794    lt_cv_dlopen_libs=
11795    lt_cv_dlopen_self=yes
11796
11797fi
11798
11799    ;;
11800
11801  *)
11802    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11803if test "x$ac_cv_func_shl_load" = xyes; then :
11804  lt_cv_dlopen="shl_load"
11805else
11806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11807$as_echo_n "checking for shl_load in -ldld... " >&6; }
11808if ${ac_cv_lib_dld_shl_load+:} false; then :
11809  $as_echo_n "(cached) " >&6
11810else
11811  ac_check_lib_save_LIBS=$LIBS
11812LIBS="-ldld  $LIBS"
11813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h.  */
11815
11816/* Override any GCC internal prototype to avoid an error.
11817   Use char because int might match the return type of a GCC
11818   builtin and then its argument prototype would still apply.  */
11819#ifdef __cplusplus
11820extern "C"
11821#endif
11822char shl_load ();
11823int
11824main ()
11825{
11826return shl_load ();
11827  ;
11828  return 0;
11829}
11830_ACEOF
11831if ac_fn_c_try_link "$LINENO"; then :
11832  ac_cv_lib_dld_shl_load=yes
11833else
11834  ac_cv_lib_dld_shl_load=no
11835fi
11836rm -f core conftest.err conftest.$ac_objext \
11837    conftest$ac_exeext conftest.$ac_ext
11838LIBS=$ac_check_lib_save_LIBS
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11841$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11842if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11843  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11844else
11845  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11846if test "x$ac_cv_func_dlopen" = xyes; then :
11847  lt_cv_dlopen="dlopen"
11848else
11849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11850$as_echo_n "checking for dlopen in -ldl... " >&6; }
11851if ${ac_cv_lib_dl_dlopen+:} false; then :
11852  $as_echo_n "(cached) " >&6
11853else
11854  ac_check_lib_save_LIBS=$LIBS
11855LIBS="-ldl  $LIBS"
11856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857/* end confdefs.h.  */
11858
11859/* Override any GCC internal prototype to avoid an error.
11860   Use char because int might match the return type of a GCC
11861   builtin and then its argument prototype would still apply.  */
11862#ifdef __cplusplus
11863extern "C"
11864#endif
11865char dlopen ();
11866int
11867main ()
11868{
11869return dlopen ();
11870  ;
11871  return 0;
11872}
11873_ACEOF
11874if ac_fn_c_try_link "$LINENO"; then :
11875  ac_cv_lib_dl_dlopen=yes
11876else
11877  ac_cv_lib_dl_dlopen=no
11878fi
11879rm -f core conftest.err conftest.$ac_objext \
11880    conftest$ac_exeext conftest.$ac_ext
11881LIBS=$ac_check_lib_save_LIBS
11882fi
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11884$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11885if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11886  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11887else
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11889$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11890if ${ac_cv_lib_svld_dlopen+:} false; then :
11891  $as_echo_n "(cached) " >&6
11892else
11893  ac_check_lib_save_LIBS=$LIBS
11894LIBS="-lsvld  $LIBS"
11895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896/* end confdefs.h.  */
11897
11898/* Override any GCC internal prototype to avoid an error.
11899   Use char because int might match the return type of a GCC
11900   builtin and then its argument prototype would still apply.  */
11901#ifdef __cplusplus
11902extern "C"
11903#endif
11904char dlopen ();
11905int
11906main ()
11907{
11908return dlopen ();
11909  ;
11910  return 0;
11911}
11912_ACEOF
11913if ac_fn_c_try_link "$LINENO"; then :
11914  ac_cv_lib_svld_dlopen=yes
11915else
11916  ac_cv_lib_svld_dlopen=no
11917fi
11918rm -f core conftest.err conftest.$ac_objext \
11919    conftest$ac_exeext conftest.$ac_ext
11920LIBS=$ac_check_lib_save_LIBS
11921fi
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11923$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11924if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11925  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11926else
11927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11928$as_echo_n "checking for dld_link in -ldld... " >&6; }
11929if ${ac_cv_lib_dld_dld_link+:} false; then :
11930  $as_echo_n "(cached) " >&6
11931else
11932  ac_check_lib_save_LIBS=$LIBS
11933LIBS="-ldld  $LIBS"
11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h.  */
11936
11937/* Override any GCC internal prototype to avoid an error.
11938   Use char because int might match the return type of a GCC
11939   builtin and then its argument prototype would still apply.  */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943char dld_link ();
11944int
11945main ()
11946{
11947return dld_link ();
11948  ;
11949  return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_link "$LINENO"; then :
11953  ac_cv_lib_dld_dld_link=yes
11954else
11955  ac_cv_lib_dld_dld_link=no
11956fi
11957rm -f core conftest.err conftest.$ac_objext \
11958    conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11962$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11963if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11964  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11965fi
11966
11967
11968fi
11969
11970
11971fi
11972
11973
11974fi
11975
11976
11977fi
11978
11979
11980fi
11981
11982    ;;
11983  esac
11984
11985  if test "x$lt_cv_dlopen" != xno; then
11986    enable_dlopen=yes
11987  else
11988    enable_dlopen=no
11989  fi
11990
11991  case $lt_cv_dlopen in
11992  dlopen)
11993    save_CPPFLAGS="$CPPFLAGS"
11994    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11995
11996    save_LDFLAGS="$LDFLAGS"
11997    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11998
11999    save_LIBS="$LIBS"
12000    LIBS="$lt_cv_dlopen_libs $LIBS"
12001
12002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12003$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12004if ${lt_cv_dlopen_self+:} false; then :
12005  $as_echo_n "(cached) " >&6
12006else
12007  	  if test "$cross_compiling" = yes; then :
12008  lt_cv_dlopen_self=cross
12009else
12010  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12011  lt_status=$lt_dlunknown
12012  cat > conftest.$ac_ext <<_LT_EOF
12013#line $LINENO "configure"
12014#include "confdefs.h"
12015
12016#if HAVE_DLFCN_H
12017#include <dlfcn.h>
12018#endif
12019
12020#include <stdio.h>
12021
12022#ifdef RTLD_GLOBAL
12023#  define LT_DLGLOBAL		RTLD_GLOBAL
12024#else
12025#  ifdef DL_GLOBAL
12026#    define LT_DLGLOBAL		DL_GLOBAL
12027#  else
12028#    define LT_DLGLOBAL		0
12029#  endif
12030#endif
12031
12032/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12033   find out it does not work in some platform. */
12034#ifndef LT_DLLAZY_OR_NOW
12035#  ifdef RTLD_LAZY
12036#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12037#  else
12038#    ifdef DL_LAZY
12039#      define LT_DLLAZY_OR_NOW		DL_LAZY
12040#    else
12041#      ifdef RTLD_NOW
12042#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12043#      else
12044#        ifdef DL_NOW
12045#          define LT_DLLAZY_OR_NOW	DL_NOW
12046#        else
12047#          define LT_DLLAZY_OR_NOW	0
12048#        endif
12049#      endif
12050#    endif
12051#  endif
12052#endif
12053
12054/* When -fvisbility=hidden is used, assume the code has been annotated
12055   correspondingly for the symbols needed.  */
12056#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12057int fnord () __attribute__((visibility("default")));
12058#endif
12059
12060int fnord () { return 42; }
12061int main ()
12062{
12063  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12064  int status = $lt_dlunknown;
12065
12066  if (self)
12067    {
12068      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12069      else
12070        {
12071	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12072          else puts (dlerror ());
12073	}
12074      /* dlclose (self); */
12075    }
12076  else
12077    puts (dlerror ());
12078
12079  return status;
12080}
12081_LT_EOF
12082  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12083  (eval $ac_link) 2>&5
12084  ac_status=$?
12085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12086  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12087    (./conftest; exit; ) >&5 2>/dev/null
12088    lt_status=$?
12089    case x$lt_status in
12090      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12091      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12092      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12093    esac
12094  else :
12095    # compilation failed
12096    lt_cv_dlopen_self=no
12097  fi
12098fi
12099rm -fr conftest*
12100
12101
12102fi
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12104$as_echo "$lt_cv_dlopen_self" >&6; }
12105
12106    if test "x$lt_cv_dlopen_self" = xyes; then
12107      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12108      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12109$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12110if ${lt_cv_dlopen_self_static+:} false; then :
12111  $as_echo_n "(cached) " >&6
12112else
12113  	  if test "$cross_compiling" = yes; then :
12114  lt_cv_dlopen_self_static=cross
12115else
12116  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12117  lt_status=$lt_dlunknown
12118  cat > conftest.$ac_ext <<_LT_EOF
12119#line $LINENO "configure"
12120#include "confdefs.h"
12121
12122#if HAVE_DLFCN_H
12123#include <dlfcn.h>
12124#endif
12125
12126#include <stdio.h>
12127
12128#ifdef RTLD_GLOBAL
12129#  define LT_DLGLOBAL		RTLD_GLOBAL
12130#else
12131#  ifdef DL_GLOBAL
12132#    define LT_DLGLOBAL		DL_GLOBAL
12133#  else
12134#    define LT_DLGLOBAL		0
12135#  endif
12136#endif
12137
12138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12139   find out it does not work in some platform. */
12140#ifndef LT_DLLAZY_OR_NOW
12141#  ifdef RTLD_LAZY
12142#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12143#  else
12144#    ifdef DL_LAZY
12145#      define LT_DLLAZY_OR_NOW		DL_LAZY
12146#    else
12147#      ifdef RTLD_NOW
12148#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12149#      else
12150#        ifdef DL_NOW
12151#          define LT_DLLAZY_OR_NOW	DL_NOW
12152#        else
12153#          define LT_DLLAZY_OR_NOW	0
12154#        endif
12155#      endif
12156#    endif
12157#  endif
12158#endif
12159
12160/* When -fvisbility=hidden is used, assume the code has been annotated
12161   correspondingly for the symbols needed.  */
12162#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12163int fnord () __attribute__((visibility("default")));
12164#endif
12165
12166int fnord () { return 42; }
12167int main ()
12168{
12169  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12170  int status = $lt_dlunknown;
12171
12172  if (self)
12173    {
12174      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12175      else
12176        {
12177	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12178          else puts (dlerror ());
12179	}
12180      /* dlclose (self); */
12181    }
12182  else
12183    puts (dlerror ());
12184
12185  return status;
12186}
12187_LT_EOF
12188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12189  (eval $ac_link) 2>&5
12190  ac_status=$?
12191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12192  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12193    (./conftest; exit; ) >&5 2>/dev/null
12194    lt_status=$?
12195    case x$lt_status in
12196      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12197      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12198      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12199    esac
12200  else :
12201    # compilation failed
12202    lt_cv_dlopen_self_static=no
12203  fi
12204fi
12205rm -fr conftest*
12206
12207
12208fi
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12210$as_echo "$lt_cv_dlopen_self_static" >&6; }
12211    fi
12212
12213    CPPFLAGS="$save_CPPFLAGS"
12214    LDFLAGS="$save_LDFLAGS"
12215    LIBS="$save_LIBS"
12216    ;;
12217  esac
12218
12219  case $lt_cv_dlopen_self in
12220  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12221  *) enable_dlopen_self=unknown ;;
12222  esac
12223
12224  case $lt_cv_dlopen_self_static in
12225  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12226  *) enable_dlopen_self_static=unknown ;;
12227  esac
12228fi
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246striplib=
12247old_striplib=
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12249$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12250if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12251  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12252  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254$as_echo "yes" >&6; }
12255else
12256# FIXME - insert some real tests, host_os isn't really good enough
12257  case $host_os in
12258  darwin*)
12259    if test -n "$STRIP" ; then
12260      striplib="$STRIP -x"
12261      old_striplib="$STRIP -S"
12262      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263$as_echo "yes" >&6; }
12264    else
12265      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
12267    fi
12268    ;;
12269  *)
12270    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271$as_echo "no" >&6; }
12272    ;;
12273  esac
12274fi
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287  # Report which library types will actually be built
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12289$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12291$as_echo "$can_build_shared" >&6; }
12292
12293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12294$as_echo_n "checking whether to build shared libraries... " >&6; }
12295  test "$can_build_shared" = "no" && enable_shared=no
12296
12297  # On AIX, shared libraries and static libraries use the same namespace, and
12298  # are all built from PIC.
12299  case $host_os in
12300  aix3*)
12301    test "$enable_shared" = yes && enable_static=no
12302    if test -n "$RANLIB"; then
12303      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12304      postinstall_cmds='$RANLIB $lib'
12305    fi
12306    ;;
12307
12308  aix[4-9]*)
12309    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12310      test "$enable_shared" = yes && enable_static=no
12311    fi
12312    ;;
12313  esac
12314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12315$as_echo "$enable_shared" >&6; }
12316
12317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12318$as_echo_n "checking whether to build static libraries... " >&6; }
12319  # Make sure either enable_shared or enable_static is yes.
12320  test "$enable_shared" = yes || enable_static=yes
12321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12322$as_echo "$enable_static" >&6; }
12323
12324
12325
12326
12327fi
12328ac_ext=c
12329ac_cpp='$CPP $CPPFLAGS'
12330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12332ac_compiler_gnu=$ac_cv_c_compiler_gnu
12333
12334CC="$lt_save_CC"
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348        ac_config_commands="$ac_config_commands libtool"
12349
12350
12351
12352
12353# Only expand once:
12354
12355
12356for ac_prog in gawk mawk nawk awk
12357do
12358  # Extract the first word of "$ac_prog", so it can be a program name with args.
12359set dummy $ac_prog; ac_word=$2
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361$as_echo_n "checking for $ac_word... " >&6; }
12362if ${ac_cv_prog_AWK+:} false; then :
12363  $as_echo_n "(cached) " >&6
12364else
12365  if test -n "$AWK"; then
12366  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12367else
12368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369for as_dir in $PATH
12370do
12371  IFS=$as_save_IFS
12372  test -z "$as_dir" && as_dir=.
12373    for ac_exec_ext in '' $ac_executable_extensions; do
12374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375    ac_cv_prog_AWK="$ac_prog"
12376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377    break 2
12378  fi
12379done
12380  done
12381IFS=$as_save_IFS
12382
12383fi
12384fi
12385AWK=$ac_cv_prog_AWK
12386if test -n "$AWK"; then
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12388$as_echo "$AWK" >&6; }
12389else
12390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391$as_echo "no" >&6; }
12392fi
12393
12394
12395  test -n "$AWK" && break
12396done
12397
12398if test "x$CC" != xcc; then
12399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12400$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12401else
12402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12403$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12404fi
12405set dummy $CC; ac_cc=`$as_echo "$2" |
12406		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12407if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12408  $as_echo_n "(cached) " >&6
12409else
12410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411/* end confdefs.h.  */
12412
12413int
12414main ()
12415{
12416
12417  ;
12418  return 0;
12419}
12420_ACEOF
12421# Make sure it works both with $CC and with simple cc.
12422# We do the test twice because some compilers refuse to overwrite an
12423# existing .o file with -o, though they will create one.
12424ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12425rm -f conftest2.*
12426if { { case "(($ac_try" in
12427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428  *) ac_try_echo=$ac_try;;
12429esac
12430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12431$as_echo "$ac_try_echo"; } >&5
12432  (eval "$ac_try") 2>&5
12433  ac_status=$?
12434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12435  test $ac_status = 0; } &&
12436   test -f conftest2.$ac_objext && { { case "(($ac_try" in
12437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438  *) ac_try_echo=$ac_try;;
12439esac
12440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12441$as_echo "$ac_try_echo"; } >&5
12442  (eval "$ac_try") 2>&5
12443  ac_status=$?
12444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12445  test $ac_status = 0; };
12446then
12447  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12448  if test "x$CC" != xcc; then
12449    # Test first that cc exists at all.
12450    if { ac_try='cc -c conftest.$ac_ext >&5'
12451  { { case "(($ac_try" in
12452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453  *) ac_try_echo=$ac_try;;
12454esac
12455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12456$as_echo "$ac_try_echo"; } >&5
12457  (eval "$ac_try") 2>&5
12458  ac_status=$?
12459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12460  test $ac_status = 0; }; }; then
12461      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12462      rm -f conftest2.*
12463      if { { case "(($ac_try" in
12464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465  *) ac_try_echo=$ac_try;;
12466esac
12467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12468$as_echo "$ac_try_echo"; } >&5
12469  (eval "$ac_try") 2>&5
12470  ac_status=$?
12471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12472  test $ac_status = 0; } &&
12473	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475  *) ac_try_echo=$ac_try;;
12476esac
12477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12478$as_echo "$ac_try_echo"; } >&5
12479  (eval "$ac_try") 2>&5
12480  ac_status=$?
12481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12482  test $ac_status = 0; };
12483      then
12484	# cc works too.
12485	:
12486      else
12487	# cc exists but doesn't like -o.
12488	eval ac_cv_prog_cc_${ac_cc}_c_o=no
12489      fi
12490    fi
12491  fi
12492else
12493  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12494fi
12495rm -f core conftest*
12496
12497fi
12498if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500$as_echo "yes" >&6; }
12501else
12502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
12504
12505$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12506
12507fi
12508
12509# FIXME: we rely on the cache variable name because
12510# there is no other way.
12511set dummy $CC
12512am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12513eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12514if test "$am_t" != yes; then
12515   # Losing compiler, so override with the script.
12516   # FIXME: It is wrong to rewrite CC.
12517   # But if we don't then we get into trouble of one sort or another.
12518   # A longer-term fix would be to have automake use am__CC in this case,
12519   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12520   CC="$am_aux_dir/compile $CC"
12521fi
12522
12523
12524
12525# Need to call this explicitly since the first call to PKG_CHECK_MODULES
12526# is in an if statement, and later calls would break if it's skipped.
12527
12528
12529if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12530	if test -n "$ac_tool_prefix"; then
12531  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12532set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534$as_echo_n "checking for $ac_word... " >&6; }
12535if ${ac_cv_path_PKG_CONFIG+:} false; then :
12536  $as_echo_n "(cached) " >&6
12537else
12538  case $PKG_CONFIG in
12539  [\\/]* | ?:[\\/]*)
12540  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12541  ;;
12542  *)
12543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544for as_dir in $PATH
12545do
12546  IFS=$as_save_IFS
12547  test -z "$as_dir" && as_dir=.
12548    for ac_exec_ext in '' $ac_executable_extensions; do
12549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12550    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552    break 2
12553  fi
12554done
12555  done
12556IFS=$as_save_IFS
12557
12558  ;;
12559esac
12560fi
12561PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12562if test -n "$PKG_CONFIG"; then
12563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12564$as_echo "$PKG_CONFIG" >&6; }
12565else
12566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
12568fi
12569
12570
12571fi
12572if test -z "$ac_cv_path_PKG_CONFIG"; then
12573  ac_pt_PKG_CONFIG=$PKG_CONFIG
12574  # Extract the first word of "pkg-config", so it can be a program name with args.
12575set dummy pkg-config; ac_word=$2
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
12578if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12579  $as_echo_n "(cached) " >&6
12580else
12581  case $ac_pt_PKG_CONFIG in
12582  [\\/]* | ?:[\\/]*)
12583  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12584  ;;
12585  *)
12586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587for as_dir in $PATH
12588do
12589  IFS=$as_save_IFS
12590  test -z "$as_dir" && as_dir=.
12591    for ac_exec_ext in '' $ac_executable_extensions; do
12592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12593    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12595    break 2
12596  fi
12597done
12598  done
12599IFS=$as_save_IFS
12600
12601  ;;
12602esac
12603fi
12604ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12605if test -n "$ac_pt_PKG_CONFIG"; then
12606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12607$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12608else
12609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
12611fi
12612
12613  if test "x$ac_pt_PKG_CONFIG" = x; then
12614    PKG_CONFIG=""
12615  else
12616    case $cross_compiling:$ac_tool_warned in
12617yes:)
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12620ac_tool_warned=yes ;;
12621esac
12622    PKG_CONFIG=$ac_pt_PKG_CONFIG
12623  fi
12624else
12625  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12626fi
12627
12628fi
12629if test -n "$PKG_CONFIG"; then
12630	_pkg_min_version=0.9.0
12631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12632$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12633	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12634		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635$as_echo "yes" >&6; }
12636	else
12637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638$as_echo "no" >&6; }
12639		PKG_CONFIG=""
12640	fi
12641
12642fi
12643
12644#
12645# fix libtool to set SONAME to libXaw.so.$major
12646#
12647ac_config_commands="$ac_config_commands libtool_hack"
12648
12649
12650# OSX/Win32 rules are different.
12651platform_win32=no
12652platform_darwin=no
12653LIBEXT=so
12654case $host_os in
12655    cygwin*|mingw*)
12656	LIBEXT=dll.a
12657	platform_win32=yes
12658	;;
12659    darwin*)
12660	LIBEXT=dylib
12661	platform_darwin=yes
12662	;;
12663esac
12664
12665 if test "x$platform_win32" = "xyes"; then
12666  PLATFORM_WIN32_TRUE=
12667  PLATFORM_WIN32_FALSE='#'
12668else
12669  PLATFORM_WIN32_TRUE='#'
12670  PLATFORM_WIN32_FALSE=
12671fi
12672
12673 if test "x$platform_darwin" = "xyes"; then
12674  PLATFORM_DARWIN_TRUE=
12675  PLATFORM_DARWIN_FALSE='#'
12676else
12677  PLATFORM_DARWIN_TRUE='#'
12678  PLATFORM_DARWIN_FALSE=
12679fi
12680
12681
12682# Whether to build Xaw6
12683
12684# Check whether --enable-xaw6 was given.
12685if test "${enable_xaw6+set}" = set; then :
12686  enableval=$enable_xaw6; build_v6=$enableval
12687else
12688  build_v6=yes
12689fi
12690
12691
12692if test "x$build_v6" = xyes; then
12693
12694pkg_failed=no
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW6" >&5
12696$as_echo_n "checking for XAW6... " >&6; }
12697
12698if test -n "$XAW6_CFLAGS"; then
12699    pkg_cv_XAW6_CFLAGS="$XAW6_CFLAGS"
12700 elif test -n "$PKG_CONFIG"; then
12701    if test -n "$PKG_CONFIG" && \
12702    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
12703  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
12704  ac_status=$?
12705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12706  test $ac_status = 0; }; then
12707  pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null`
12708else
12709  pkg_failed=yes
12710fi
12711 else
12712    pkg_failed=untried
12713fi
12714if test -n "$XAW6_LIBS"; then
12715    pkg_cv_XAW6_LIBS="$XAW6_LIBS"
12716 elif test -n "$PKG_CONFIG"; then
12717    if test -n "$PKG_CONFIG" && \
12718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
12719  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
12720  ac_status=$?
12721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12722  test $ac_status = 0; }; then
12723  pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null`
12724else
12725  pkg_failed=yes
12726fi
12727 else
12728    pkg_failed=untried
12729fi
12730
12731
12732
12733if test $pkg_failed = yes; then
12734
12735if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12736        _pkg_short_errors_supported=yes
12737else
12738        _pkg_short_errors_supported=no
12739fi
12740        if test $_pkg_short_errors_supported = yes; then
12741	        XAW6_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu" 2>&1`
12742        else
12743	        XAW6_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu" 2>&1`
12744        fi
12745	# Put the nasty error message in config.log where it belongs
12746	echo "$XAW6_PKG_ERRORS" >&5
12747
12748	as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu) were not met:
12749
12750$XAW6_PKG_ERRORS
12751
12752Consider adjusting the PKG_CONFIG_PATH environment variable if you
12753installed software in a non-standard prefix.
12754
12755Alternatively, you may set the environment variables XAW6_CFLAGS
12756and XAW6_LIBS to avoid the need to call pkg-config.
12757See the pkg-config man page for more details.
12758" "$LINENO" 5
12759elif test $pkg_failed = untried; then
12760	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12762as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12763is in your PATH or set the PKG_CONFIG environment variable to the full
12764path to pkg-config.
12765
12766Alternatively, you may set the environment variables XAW6_CFLAGS
12767and XAW6_LIBS to avoid the need to call pkg-config.
12768See the pkg-config man page for more details.
12769
12770To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12771See \`config.log' for more details" "$LINENO" 5; }
12772else
12773	XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS
12774	XAW6_LIBS=$pkg_cv_XAW6_LIBS
12775        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12776$as_echo "yes" >&6; }
12777	:
12778fi
12779fi
12780
12781
12782# Whether to build Xaw7
12783
12784# Check whether --enable-xaw7 was given.
12785if test "${enable_xaw7+set}" = set; then :
12786  enableval=$enable_xaw7; build_v7=$enableval
12787else
12788  build_v7=yes
12789fi
12790
12791
12792if test "x$build_v7" = xyes; then
12793
12794pkg_failed=no
12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW7" >&5
12796$as_echo_n "checking for XAW7... " >&6; }
12797
12798if test -n "$XAW7_CFLAGS"; then
12799    pkg_cv_XAW7_CFLAGS="$XAW7_CFLAGS"
12800 elif test -n "$PKG_CONFIG"; then
12801    if test -n "$PKG_CONFIG" && \
12802    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
12803  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
12804  ac_status=$?
12805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12806  test $ac_status = 0; }; then
12807  pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
12808else
12809  pkg_failed=yes
12810fi
12811 else
12812    pkg_failed=untried
12813fi
12814if test -n "$XAW7_LIBS"; then
12815    pkg_cv_XAW7_LIBS="$XAW7_LIBS"
12816 elif test -n "$PKG_CONFIG"; then
12817    if test -n "$PKG_CONFIG" && \
12818    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
12819  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
12820  ac_status=$?
12821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822  test $ac_status = 0; }; then
12823  pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
12824else
12825  pkg_failed=yes
12826fi
12827 else
12828    pkg_failed=untried
12829fi
12830
12831
12832
12833if test $pkg_failed = yes; then
12834
12835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12836        _pkg_short_errors_supported=yes
12837else
12838        _pkg_short_errors_supported=no
12839fi
12840        if test $_pkg_short_errors_supported = yes; then
12841	        XAW7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1`
12842        else
12843	        XAW7_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1`
12844        fi
12845	# Put the nasty error message in config.log where it belongs
12846	echo "$XAW7_PKG_ERRORS" >&5
12847
12848	as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met:
12849
12850$XAW7_PKG_ERRORS
12851
12852Consider adjusting the PKG_CONFIG_PATH environment variable if you
12853installed software in a non-standard prefix.
12854
12855Alternatively, you may set the environment variables XAW7_CFLAGS
12856and XAW7_LIBS to avoid the need to call pkg-config.
12857See the pkg-config man page for more details.
12858" "$LINENO" 5
12859elif test $pkg_failed = untried; then
12860	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12862as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12863is in your PATH or set the PKG_CONFIG environment variable to the full
12864path to pkg-config.
12865
12866Alternatively, you may set the environment variables XAW7_CFLAGS
12867and XAW7_LIBS to avoid the need to call pkg-config.
12868See the pkg-config man page for more details.
12869
12870To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12871See \`config.log' for more details" "$LINENO" 5; }
12872else
12873	XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS
12874	XAW7_LIBS=$pkg_cv_XAW7_LIBS
12875        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12876$as_echo "yes" >&6; }
12877	:
12878fi
12879fi
12880
12881
12882 if test x$build_v6 = xyes; then
12883  BUILD_XAW6_TRUE=
12884  BUILD_XAW6_FALSE='#'
12885else
12886  BUILD_XAW6_TRUE='#'
12887  BUILD_XAW6_FALSE=
12888fi
12889
12890 if test x$build_v7 = xyes; then
12891  BUILD_XAW7_TRUE=
12892  BUILD_XAW7_FALSE='#'
12893else
12894  BUILD_XAW7_TRUE='#'
12895  BUILD_XAW7_FALSE=
12896fi
12897
12898
12899# Checks for header files.
12900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12901$as_echo_n "checking for ANSI C header files... " >&6; }
12902if ${ac_cv_header_stdc+:} false; then :
12903  $as_echo_n "(cached) " >&6
12904else
12905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906/* end confdefs.h.  */
12907#include <stdlib.h>
12908#include <stdarg.h>
12909#include <string.h>
12910#include <float.h>
12911
12912int
12913main ()
12914{
12915
12916  ;
12917  return 0;
12918}
12919_ACEOF
12920if ac_fn_c_try_compile "$LINENO"; then :
12921  ac_cv_header_stdc=yes
12922else
12923  ac_cv_header_stdc=no
12924fi
12925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926
12927if test $ac_cv_header_stdc = yes; then
12928  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930/* end confdefs.h.  */
12931#include <string.h>
12932
12933_ACEOF
12934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12935  $EGREP "memchr" >/dev/null 2>&1; then :
12936
12937else
12938  ac_cv_header_stdc=no
12939fi
12940rm -f conftest*
12941
12942fi
12943
12944if test $ac_cv_header_stdc = yes; then
12945  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947/* end confdefs.h.  */
12948#include <stdlib.h>
12949
12950_ACEOF
12951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12952  $EGREP "free" >/dev/null 2>&1; then :
12953
12954else
12955  ac_cv_header_stdc=no
12956fi
12957rm -f conftest*
12958
12959fi
12960
12961if test $ac_cv_header_stdc = yes; then
12962  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12963  if test "$cross_compiling" = yes; then :
12964  :
12965else
12966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967/* end confdefs.h.  */
12968#include <ctype.h>
12969#include <stdlib.h>
12970#if ((' ' & 0x0FF) == 0x020)
12971# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12972# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12973#else
12974# define ISLOWER(c) \
12975		   (('a' <= (c) && (c) <= 'i') \
12976		     || ('j' <= (c) && (c) <= 'r') \
12977		     || ('s' <= (c) && (c) <= 'z'))
12978# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12979#endif
12980
12981#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12982int
12983main ()
12984{
12985  int i;
12986  for (i = 0; i < 256; i++)
12987    if (XOR (islower (i), ISLOWER (i))
12988	|| toupper (i) != TOUPPER (i))
12989      return 2;
12990  return 0;
12991}
12992_ACEOF
12993if ac_fn_c_try_run "$LINENO"; then :
12994
12995else
12996  ac_cv_header_stdc=no
12997fi
12998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12999  conftest.$ac_objext conftest.beam conftest.$ac_ext
13000fi
13001
13002fi
13003fi
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13005$as_echo "$ac_cv_header_stdc" >&6; }
13006if test $ac_cv_header_stdc = yes; then
13007
13008$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13009
13010fi
13011
13012for ac_header in wctype.h wchar.h widec.h
13013do :
13014  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13015ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13016if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13017  cat >>confdefs.h <<_ACEOF
13018#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13019_ACEOF
13020
13021fi
13022
13023done
13024
13025
13026# Checks for functions
13027for ac_func in iswalnum getpagesize
13028do :
13029  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13031if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13032  cat >>confdefs.h <<_ACEOF
13033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13034_ACEOF
13035
13036fi
13037done
13038
13039
13040ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile specs/Makefile src/Makefile"
13041
13042
13043if test "x$build_v6" = xyes; then
13044   ac_config_files="$ac_config_files xaw6.pc"
13045
13046fi
13047
13048if test "x$build_v7" = xyes; then
13049   ac_config_files="$ac_config_files xaw7.pc"
13050
13051fi
13052
13053cat >confcache <<\_ACEOF
13054# This file is a shell script that caches the results of configure
13055# tests run on this system so they can be shared between configure
13056# scripts and configure runs, see configure's option --config-cache.
13057# It is not useful on other systems.  If it contains results you don't
13058# want to keep, you may remove or edit it.
13059#
13060# config.status only pays attention to the cache file if you give it
13061# the --recheck option to rerun configure.
13062#
13063# `ac_cv_env_foo' variables (set or unset) will be overridden when
13064# loading this file, other *unset* `ac_cv_foo' will be assigned the
13065# following values.
13066
13067_ACEOF
13068
13069# The following way of writing the cache mishandles newlines in values,
13070# but we know of no workaround that is simple, portable, and efficient.
13071# So, we kill variables containing newlines.
13072# Ultrix sh set writes to stderr and can't be redirected directly,
13073# and sets the high bit in the cache file unless we assign to the vars.
13074(
13075  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13076    eval ac_val=\$$ac_var
13077    case $ac_val in #(
13078    *${as_nl}*)
13079      case $ac_var in #(
13080      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13081$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13082      esac
13083      case $ac_var in #(
13084      _ | IFS | as_nl) ;; #(
13085      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13086      *) { eval $ac_var=; unset $ac_var;} ;;
13087      esac ;;
13088    esac
13089  done
13090
13091  (set) 2>&1 |
13092    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13093    *${as_nl}ac_space=\ *)
13094      # `set' does not quote correctly, so add quotes: double-quote
13095      # substitution turns \\\\ into \\, and sed turns \\ into \.
13096      sed -n \
13097	"s/'/'\\\\''/g;
13098	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13099      ;; #(
13100    *)
13101      # `set' quotes correctly as required by POSIX, so do not add quotes.
13102      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13103      ;;
13104    esac |
13105    sort
13106) |
13107  sed '
13108     /^ac_cv_env_/b end
13109     t clear
13110     :clear
13111     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13112     t end
13113     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13114     :end' >>confcache
13115if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13116  if test -w "$cache_file"; then
13117    if test "x$cache_file" != "x/dev/null"; then
13118      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13119$as_echo "$as_me: updating cache $cache_file" >&6;}
13120      if test ! -f "$cache_file" || test -h "$cache_file"; then
13121	cat confcache >"$cache_file"
13122      else
13123        case $cache_file in #(
13124        */* | ?:*)
13125	  mv -f confcache "$cache_file"$$ &&
13126	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13127        *)
13128	  mv -f confcache "$cache_file" ;;
13129	esac
13130      fi
13131    fi
13132  else
13133    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13134$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13135  fi
13136fi
13137rm -f confcache
13138
13139test "x$prefix" = xNONE && prefix=$ac_default_prefix
13140# Let make expand exec_prefix.
13141test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13142
13143DEFS=-DHAVE_CONFIG_H
13144
13145ac_libobjs=
13146ac_ltlibobjs=
13147U=
13148for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13149  # 1. Remove the extension, and $U if already installed.
13150  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13151  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13152  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13153  #    will be set to the directory where LIBOBJS objects are built.
13154  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13155  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13156done
13157LIBOBJS=$ac_libobjs
13158
13159LTLIBOBJS=$ac_ltlibobjs
13160
13161
13162 if test -n "$EXEEXT"; then
13163  am__EXEEXT_TRUE=
13164  am__EXEEXT_FALSE='#'
13165else
13166  am__EXEEXT_TRUE='#'
13167  am__EXEEXT_FALSE=
13168fi
13169
13170if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13171  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13172Usually this means the macro was only invoked conditionally." "$LINENO" 5
13173fi
13174if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13175  as_fn_error $? "conditional \"AMDEP\" was never defined.
13176Usually this means the macro was only invoked conditionally." "$LINENO" 5
13177fi
13178if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13179  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13180Usually this means the macro was only invoked conditionally." "$LINENO" 5
13181fi
13182if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
13183  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
13184Usually this means the macro was only invoked conditionally." "$LINENO" 5
13185fi
13186if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
13187  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
13188Usually this means the macro was only invoked conditionally." "$LINENO" 5
13189fi
13190if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13191  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
13192Usually this means the macro was only invoked conditionally." "$LINENO" 5
13193fi
13194if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13195  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
13196Usually this means the macro was only invoked conditionally." "$LINENO" 5
13197fi
13198if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
13199  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
13200Usually this means the macro was only invoked conditionally." "$LINENO" 5
13201fi
13202if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
13203  as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
13204Usually this means the macro was only invoked conditionally." "$LINENO" 5
13205fi
13206if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then
13207  as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined.
13208Usually this means the macro was only invoked conditionally." "$LINENO" 5
13209fi
13210if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
13211  as_fn_error $? "conditional \"BUILD_XAW6\" was never defined.
13212Usually this means the macro was only invoked conditionally." "$LINENO" 5
13213fi
13214if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
13215  as_fn_error $? "conditional \"BUILD_XAW7\" was never defined.
13216Usually this means the macro was only invoked conditionally." "$LINENO" 5
13217fi
13218
13219: "${CONFIG_STATUS=./config.status}"
13220ac_write_fail=0
13221ac_clean_files_save=$ac_clean_files
13222ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13224$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13225as_write_fail=0
13226cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13227#! $SHELL
13228# Generated by $as_me.
13229# Run this file to recreate the current configuration.
13230# Compiler output produced by configure, useful for debugging
13231# configure, is in config.log if it exists.
13232
13233debug=false
13234ac_cs_recheck=false
13235ac_cs_silent=false
13236
13237SHELL=\${CONFIG_SHELL-$SHELL}
13238export SHELL
13239_ASEOF
13240cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13241## -------------------- ##
13242## M4sh Initialization. ##
13243## -------------------- ##
13244
13245# Be more Bourne compatible
13246DUALCASE=1; export DUALCASE # for MKS sh
13247if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13248  emulate sh
13249  NULLCMD=:
13250  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13251  # is contrary to our usage.  Disable this feature.
13252  alias -g '${1+"$@"}'='"$@"'
13253  setopt NO_GLOB_SUBST
13254else
13255  case `(set -o) 2>/dev/null` in #(
13256  *posix*) :
13257    set -o posix ;; #(
13258  *) :
13259     ;;
13260esac
13261fi
13262
13263
13264as_nl='
13265'
13266export as_nl
13267# Printing a long string crashes Solaris 7 /usr/bin/printf.
13268as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13271# Prefer a ksh shell builtin over an external printf program on Solaris,
13272# but without wasting forks for bash or zsh.
13273if test -z "$BASH_VERSION$ZSH_VERSION" \
13274    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13275  as_echo='print -r --'
13276  as_echo_n='print -rn --'
13277elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13278  as_echo='printf %s\n'
13279  as_echo_n='printf %s'
13280else
13281  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13282    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13283    as_echo_n='/usr/ucb/echo -n'
13284  else
13285    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13286    as_echo_n_body='eval
13287      arg=$1;
13288      case $arg in #(
13289      *"$as_nl"*)
13290	expr "X$arg" : "X\\(.*\\)$as_nl";
13291	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13292      esac;
13293      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13294    '
13295    export as_echo_n_body
13296    as_echo_n='sh -c $as_echo_n_body as_echo'
13297  fi
13298  export as_echo_body
13299  as_echo='sh -c $as_echo_body as_echo'
13300fi
13301
13302# The user is always right.
13303if test "${PATH_SEPARATOR+set}" != set; then
13304  PATH_SEPARATOR=:
13305  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13306    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13307      PATH_SEPARATOR=';'
13308  }
13309fi
13310
13311
13312# IFS
13313# We need space, tab and new line, in precisely that order.  Quoting is
13314# there to prevent editors from complaining about space-tab.
13315# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13316# splitting by setting IFS to empty value.)
13317IFS=" ""	$as_nl"
13318
13319# Find who we are.  Look in the path if we contain no directory separator.
13320as_myself=
13321case $0 in #((
13322  *[\\/]* ) as_myself=$0 ;;
13323  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324for as_dir in $PATH
13325do
13326  IFS=$as_save_IFS
13327  test -z "$as_dir" && as_dir=.
13328    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13329  done
13330IFS=$as_save_IFS
13331
13332     ;;
13333esac
13334# We did not find ourselves, most probably we were run as `sh COMMAND'
13335# in which case we are not to be found in the path.
13336if test "x$as_myself" = x; then
13337  as_myself=$0
13338fi
13339if test ! -f "$as_myself"; then
13340  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13341  exit 1
13342fi
13343
13344# Unset variables that we do not need and which cause bugs (e.g. in
13345# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13346# suppresses any "Segmentation fault" message there.  '((' could
13347# trigger a bug in pdksh 5.2.14.
13348for as_var in BASH_ENV ENV MAIL MAILPATH
13349do eval test x\${$as_var+set} = xset \
13350  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13351done
13352PS1='$ '
13353PS2='> '
13354PS4='+ '
13355
13356# NLS nuisances.
13357LC_ALL=C
13358export LC_ALL
13359LANGUAGE=C
13360export LANGUAGE
13361
13362# CDPATH.
13363(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13364
13365
13366# as_fn_error STATUS ERROR [LINENO LOG_FD]
13367# ----------------------------------------
13368# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13369# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13370# script with STATUS, using 1 if that was 0.
13371as_fn_error ()
13372{
13373  as_status=$1; test $as_status -eq 0 && as_status=1
13374  if test "$4"; then
13375    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13376    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13377  fi
13378  $as_echo "$as_me: error: $2" >&2
13379  as_fn_exit $as_status
13380} # as_fn_error
13381
13382
13383# as_fn_set_status STATUS
13384# -----------------------
13385# Set $? to STATUS, without forking.
13386as_fn_set_status ()
13387{
13388  return $1
13389} # as_fn_set_status
13390
13391# as_fn_exit STATUS
13392# -----------------
13393# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13394as_fn_exit ()
13395{
13396  set +e
13397  as_fn_set_status $1
13398  exit $1
13399} # as_fn_exit
13400
13401# as_fn_unset VAR
13402# ---------------
13403# Portably unset VAR.
13404as_fn_unset ()
13405{
13406  { eval $1=; unset $1;}
13407}
13408as_unset=as_fn_unset
13409# as_fn_append VAR VALUE
13410# ----------------------
13411# Append the text in VALUE to the end of the definition contained in VAR. Take
13412# advantage of any shell optimizations that allow amortized linear growth over
13413# repeated appends, instead of the typical quadratic growth present in naive
13414# implementations.
13415if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13416  eval 'as_fn_append ()
13417  {
13418    eval $1+=\$2
13419  }'
13420else
13421  as_fn_append ()
13422  {
13423    eval $1=\$$1\$2
13424  }
13425fi # as_fn_append
13426
13427# as_fn_arith ARG...
13428# ------------------
13429# Perform arithmetic evaluation on the ARGs, and store the result in the
13430# global $as_val. Take advantage of shells that can avoid forks. The arguments
13431# must be portable across $(()) and expr.
13432if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13433  eval 'as_fn_arith ()
13434  {
13435    as_val=$(( $* ))
13436  }'
13437else
13438  as_fn_arith ()
13439  {
13440    as_val=`expr "$@" || test $? -eq 1`
13441  }
13442fi # as_fn_arith
13443
13444
13445if expr a : '\(a\)' >/dev/null 2>&1 &&
13446   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13447  as_expr=expr
13448else
13449  as_expr=false
13450fi
13451
13452if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13453  as_basename=basename
13454else
13455  as_basename=false
13456fi
13457
13458if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13459  as_dirname=dirname
13460else
13461  as_dirname=false
13462fi
13463
13464as_me=`$as_basename -- "$0" ||
13465$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13466	 X"$0" : 'X\(//\)$' \| \
13467	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13468$as_echo X/"$0" |
13469    sed '/^.*\/\([^/][^/]*\)\/*$/{
13470	    s//\1/
13471	    q
13472	  }
13473	  /^X\/\(\/\/\)$/{
13474	    s//\1/
13475	    q
13476	  }
13477	  /^X\/\(\/\).*/{
13478	    s//\1/
13479	    q
13480	  }
13481	  s/.*/./; q'`
13482
13483# Avoid depending upon Character Ranges.
13484as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13485as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13486as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13487as_cr_digits='0123456789'
13488as_cr_alnum=$as_cr_Letters$as_cr_digits
13489
13490ECHO_C= ECHO_N= ECHO_T=
13491case `echo -n x` in #(((((
13492-n*)
13493  case `echo 'xy\c'` in
13494  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13495  xy)  ECHO_C='\c';;
13496  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13497       ECHO_T='	';;
13498  esac;;
13499*)
13500  ECHO_N='-n';;
13501esac
13502
13503rm -f conf$$ conf$$.exe conf$$.file
13504if test -d conf$$.dir; then
13505  rm -f conf$$.dir/conf$$.file
13506else
13507  rm -f conf$$.dir
13508  mkdir conf$$.dir 2>/dev/null
13509fi
13510if (echo >conf$$.file) 2>/dev/null; then
13511  if ln -s conf$$.file conf$$ 2>/dev/null; then
13512    as_ln_s='ln -s'
13513    # ... but there are two gotchas:
13514    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13515    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13516    # In both cases, we have to default to `cp -p'.
13517    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13518      as_ln_s='cp -p'
13519  elif ln conf$$.file conf$$ 2>/dev/null; then
13520    as_ln_s=ln
13521  else
13522    as_ln_s='cp -p'
13523  fi
13524else
13525  as_ln_s='cp -p'
13526fi
13527rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13528rmdir conf$$.dir 2>/dev/null
13529
13530
13531# as_fn_mkdir_p
13532# -------------
13533# Create "$as_dir" as a directory, including parents if necessary.
13534as_fn_mkdir_p ()
13535{
13536
13537  case $as_dir in #(
13538  -*) as_dir=./$as_dir;;
13539  esac
13540  test -d "$as_dir" || eval $as_mkdir_p || {
13541    as_dirs=
13542    while :; do
13543      case $as_dir in #(
13544      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13545      *) as_qdir=$as_dir;;
13546      esac
13547      as_dirs="'$as_qdir' $as_dirs"
13548      as_dir=`$as_dirname -- "$as_dir" ||
13549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13550	 X"$as_dir" : 'X\(//\)[^/]' \| \
13551	 X"$as_dir" : 'X\(//\)$' \| \
13552	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13553$as_echo X"$as_dir" |
13554    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13555	    s//\1/
13556	    q
13557	  }
13558	  /^X\(\/\/\)[^/].*/{
13559	    s//\1/
13560	    q
13561	  }
13562	  /^X\(\/\/\)$/{
13563	    s//\1/
13564	    q
13565	  }
13566	  /^X\(\/\).*/{
13567	    s//\1/
13568	    q
13569	  }
13570	  s/.*/./; q'`
13571      test -d "$as_dir" && break
13572    done
13573    test -z "$as_dirs" || eval "mkdir $as_dirs"
13574  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13575
13576
13577} # as_fn_mkdir_p
13578if mkdir -p . 2>/dev/null; then
13579  as_mkdir_p='mkdir -p "$as_dir"'
13580else
13581  test -d ./-p && rmdir ./-p
13582  as_mkdir_p=false
13583fi
13584
13585if test -x / >/dev/null 2>&1; then
13586  as_test_x='test -x'
13587else
13588  if ls -dL / >/dev/null 2>&1; then
13589    as_ls_L_option=L
13590  else
13591    as_ls_L_option=
13592  fi
13593  as_test_x='
13594    eval sh -c '\''
13595      if test -d "$1"; then
13596	test -d "$1/.";
13597      else
13598	case $1 in #(
13599	-*)set "./$1";;
13600	esac;
13601	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13602	???[sx]*):;;*)false;;esac;fi
13603    '\'' sh
13604  '
13605fi
13606as_executable_p=$as_test_x
13607
13608# Sed expression to map a string onto a valid CPP name.
13609as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13610
13611# Sed expression to map a string onto a valid variable name.
13612as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13613
13614
13615exec 6>&1
13616## ----------------------------------- ##
13617## Main body of $CONFIG_STATUS script. ##
13618## ----------------------------------- ##
13619_ASEOF
13620test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13621
13622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13623# Save the log message, to keep $0 and so on meaningful, and to
13624# report actual input values of CONFIG_FILES etc. instead of their
13625# values after options handling.
13626ac_log="
13627This file was extended by libXaw $as_me 1.0.9, which was
13628generated by GNU Autoconf 2.68.  Invocation command line was
13629
13630  CONFIG_FILES    = $CONFIG_FILES
13631  CONFIG_HEADERS  = $CONFIG_HEADERS
13632  CONFIG_LINKS    = $CONFIG_LINKS
13633  CONFIG_COMMANDS = $CONFIG_COMMANDS
13634  $ $0 $@
13635
13636on `(hostname || uname -n) 2>/dev/null | sed 1q`
13637"
13638
13639_ACEOF
13640
13641case $ac_config_files in *"
13642"*) set x $ac_config_files; shift; ac_config_files=$*;;
13643esac
13644
13645case $ac_config_headers in *"
13646"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13647esac
13648
13649
13650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13651# Files that config.status was made for.
13652config_files="$ac_config_files"
13653config_headers="$ac_config_headers"
13654config_commands="$ac_config_commands"
13655
13656_ACEOF
13657
13658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13659ac_cs_usage="\
13660\`$as_me' instantiates files and other configuration actions
13661from templates according to the current configuration.  Unless the files
13662and actions are specified as TAGs, all are instantiated by default.
13663
13664Usage: $0 [OPTION]... [TAG]...
13665
13666  -h, --help       print this help, then exit
13667  -V, --version    print version number and configuration settings, then exit
13668      --config     print configuration, then exit
13669  -q, --quiet, --silent
13670                   do not print progress messages
13671  -d, --debug      don't remove temporary files
13672      --recheck    update $as_me by reconfiguring in the same conditions
13673      --file=FILE[:TEMPLATE]
13674                   instantiate the configuration file FILE
13675      --header=FILE[:TEMPLATE]
13676                   instantiate the configuration header FILE
13677
13678Configuration files:
13679$config_files
13680
13681Configuration headers:
13682$config_headers
13683
13684Configuration commands:
13685$config_commands
13686
13687Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13688
13689_ACEOF
13690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13691ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13692ac_cs_version="\\
13693libXaw config.status 1.0.9
13694configured by $0, generated by GNU Autoconf 2.68,
13695  with options \\"\$ac_cs_config\\"
13696
13697Copyright (C) 2010 Free Software Foundation, Inc.
13698This config.status script is free software; the Free Software Foundation
13699gives unlimited permission to copy, distribute and modify it."
13700
13701ac_pwd='$ac_pwd'
13702srcdir='$srcdir'
13703INSTALL='$INSTALL'
13704MKDIR_P='$MKDIR_P'
13705AWK='$AWK'
13706test -n "\$AWK" || AWK=awk
13707_ACEOF
13708
13709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13710# The default lists apply if the user does not specify any file.
13711ac_need_defaults=:
13712while test $# != 0
13713do
13714  case $1 in
13715  --*=?*)
13716    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13717    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13718    ac_shift=:
13719    ;;
13720  --*=)
13721    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13722    ac_optarg=
13723    ac_shift=:
13724    ;;
13725  *)
13726    ac_option=$1
13727    ac_optarg=$2
13728    ac_shift=shift
13729    ;;
13730  esac
13731
13732  case $ac_option in
13733  # Handling of the options.
13734  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13735    ac_cs_recheck=: ;;
13736  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13737    $as_echo "$ac_cs_version"; exit ;;
13738  --config | --confi | --conf | --con | --co | --c )
13739    $as_echo "$ac_cs_config"; exit ;;
13740  --debug | --debu | --deb | --de | --d | -d )
13741    debug=: ;;
13742  --file | --fil | --fi | --f )
13743    $ac_shift
13744    case $ac_optarg in
13745    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13746    '') as_fn_error $? "missing file argument" ;;
13747    esac
13748    as_fn_append CONFIG_FILES " '$ac_optarg'"
13749    ac_need_defaults=false;;
13750  --header | --heade | --head | --hea )
13751    $ac_shift
13752    case $ac_optarg in
13753    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13754    esac
13755    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13756    ac_need_defaults=false;;
13757  --he | --h)
13758    # Conflict between --help and --header
13759    as_fn_error $? "ambiguous option: \`$1'
13760Try \`$0 --help' for more information.";;
13761  --help | --hel | -h )
13762    $as_echo "$ac_cs_usage"; exit ;;
13763  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13764  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13765    ac_cs_silent=: ;;
13766
13767  # This is an error.
13768  -*) as_fn_error $? "unrecognized option: \`$1'
13769Try \`$0 --help' for more information." ;;
13770
13771  *) as_fn_append ac_config_targets " $1"
13772     ac_need_defaults=false ;;
13773
13774  esac
13775  shift
13776done
13777
13778ac_configure_extra_args=
13779
13780if $ac_cs_silent; then
13781  exec 6>/dev/null
13782  ac_configure_extra_args="$ac_configure_extra_args --silent"
13783fi
13784
13785_ACEOF
13786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13787if \$ac_cs_recheck; then
13788  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13789  shift
13790  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13791  CONFIG_SHELL='$SHELL'
13792  export CONFIG_SHELL
13793  exec "\$@"
13794fi
13795
13796_ACEOF
13797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13798exec 5>>config.log
13799{
13800  echo
13801  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13802## Running $as_me. ##
13803_ASBOX
13804  $as_echo "$ac_log"
13805} >&5
13806
13807_ACEOF
13808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13809#
13810# INIT-COMMANDS
13811#
13812AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13813
13814
13815# The HP-UX ksh and POSIX shell print the target directory to stdout
13816# if CDPATH is set.
13817(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13818
13819sed_quote_subst='$sed_quote_subst'
13820double_quote_subst='$double_quote_subst'
13821delay_variable_subst='$delay_variable_subst'
13822macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13823macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13824enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13825enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13826pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13827enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13828SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13829ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13830host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13831host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13832host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13833build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13834build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13835build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13836SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13837Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13838GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13839EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13840FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13841LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13842NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13843LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13844max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13845ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13846exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13847lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13848lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13849lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13850lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13851lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13852reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13853reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13854OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13855deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13856file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13857file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13858want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13859DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13860sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13861AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13862AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13863archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13864STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13865RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13866old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13867old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13868old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13869lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13870CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13871CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13872compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13873GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13874lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13875lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13876lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13877lt_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"`'
13878nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13879lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13880objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13881MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13882lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13883lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13884lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13885lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13886lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13887need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13888MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13889DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13890NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13891LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13892OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13893OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13894libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13895shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13896extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13897archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13898enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13899export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13900whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13901compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13902old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13903old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13904archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13905archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13906module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13907module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13908with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13909allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13910no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13911hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13912hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13913hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13914hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13915hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13916hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13917hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13918hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13919inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13920link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13921always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13922export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13923exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13924include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13925prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13926postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13927file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13928variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13929need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13930need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13931version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13932runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13933shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13934shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13935libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13936library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13937soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13938install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13939postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13940postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13941finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13942finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13943hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13944sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13945sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13946hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13947enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13948enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13949enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13950old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13951striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13952
13953LTCC='$LTCC'
13954LTCFLAGS='$LTCFLAGS'
13955compiler='$compiler_DEFAULT'
13956
13957# A function that is used when there is no print builtin or printf.
13958func_fallback_echo ()
13959{
13960  eval 'cat <<_LTECHO_EOF
13961\$1
13962_LTECHO_EOF'
13963}
13964
13965# Quote evaled strings.
13966for var in SHELL \
13967ECHO \
13968SED \
13969GREP \
13970EGREP \
13971FGREP \
13972LD \
13973NM \
13974LN_S \
13975lt_SP2NL \
13976lt_NL2SP \
13977reload_flag \
13978OBJDUMP \
13979deplibs_check_method \
13980file_magic_cmd \
13981file_magic_glob \
13982want_nocaseglob \
13983DLLTOOL \
13984sharedlib_from_linklib_cmd \
13985AR \
13986AR_FLAGS \
13987archiver_list_spec \
13988STRIP \
13989RANLIB \
13990CC \
13991CFLAGS \
13992compiler \
13993lt_cv_sys_global_symbol_pipe \
13994lt_cv_sys_global_symbol_to_cdecl \
13995lt_cv_sys_global_symbol_to_c_name_address \
13996lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13997nm_file_list_spec \
13998lt_prog_compiler_no_builtin_flag \
13999lt_prog_compiler_pic \
14000lt_prog_compiler_wl \
14001lt_prog_compiler_static \
14002lt_cv_prog_compiler_c_o \
14003need_locks \
14004MANIFEST_TOOL \
14005DSYMUTIL \
14006NMEDIT \
14007LIPO \
14008OTOOL \
14009OTOOL64 \
14010shrext_cmds \
14011export_dynamic_flag_spec \
14012whole_archive_flag_spec \
14013compiler_needs_object \
14014with_gnu_ld \
14015allow_undefined_flag \
14016no_undefined_flag \
14017hardcode_libdir_flag_spec \
14018hardcode_libdir_flag_spec_ld \
14019hardcode_libdir_separator \
14020exclude_expsyms \
14021include_expsyms \
14022file_list_spec \
14023variables_saved_for_relink \
14024libname_spec \
14025library_names_spec \
14026soname_spec \
14027install_override_mode \
14028finish_eval \
14029old_striplib \
14030striplib; do
14031    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14032    *[\\\\\\\`\\"\\\$]*)
14033      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14034      ;;
14035    *)
14036      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14037      ;;
14038    esac
14039done
14040
14041# Double-quote double-evaled strings.
14042for var in reload_cmds \
14043old_postinstall_cmds \
14044old_postuninstall_cmds \
14045old_archive_cmds \
14046extract_expsyms_cmds \
14047old_archive_from_new_cmds \
14048old_archive_from_expsyms_cmds \
14049archive_cmds \
14050archive_expsym_cmds \
14051module_cmds \
14052module_expsym_cmds \
14053export_symbols_cmds \
14054prelink_cmds \
14055postlink_cmds \
14056postinstall_cmds \
14057postuninstall_cmds \
14058finish_cmds \
14059sys_lib_search_path_spec \
14060sys_lib_dlsearch_path_spec; do
14061    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14062    *[\\\\\\\`\\"\\\$]*)
14063      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14064      ;;
14065    *)
14066      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14067      ;;
14068    esac
14069done
14070
14071ac_aux_dir='$ac_aux_dir'
14072xsi_shell='$xsi_shell'
14073lt_shell_append='$lt_shell_append'
14074
14075# See if we are running on zsh, and set the options which allow our
14076# commands through without removal of \ escapes INIT.
14077if test -n "\${ZSH_VERSION+set}" ; then
14078   setopt NO_GLOB_SUBST
14079fi
14080
14081
14082    PACKAGE='$PACKAGE'
14083    VERSION='$VERSION'
14084    TIMESTAMP='$TIMESTAMP'
14085    RM='$RM'
14086    ofile='$ofile'
14087
14088
14089
14090
14091_ACEOF
14092
14093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14094
14095# Handling of arguments.
14096for ac_config_target in $ac_config_targets
14097do
14098  case $ac_config_target in
14099    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14100    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14101    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14102    "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;;
14103    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14104    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14105    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14106    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
14107    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14108    "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;;
14109    "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;;
14110
14111  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14112  esac
14113done
14114
14115
14116# If the user did not use the arguments to specify the items to instantiate,
14117# then the envvar interface is used.  Set only those that are not.
14118# We use the long form for the default assignment because of an extremely
14119# bizarre bug on SunOS 4.1.3.
14120if $ac_need_defaults; then
14121  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14122  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14123  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14124fi
14125
14126# Have a temporary directory for convenience.  Make it in the build tree
14127# simply because there is no reason against having it here, and in addition,
14128# creating and moving files from /tmp can sometimes cause problems.
14129# Hook for its removal unless debugging.
14130# Note that there is a small window in which the directory will not be cleaned:
14131# after its creation but before its name has been assigned to `$tmp'.
14132$debug ||
14133{
14134  tmp= ac_tmp=
14135  trap 'exit_status=$?
14136  : "${ac_tmp:=$tmp}"
14137  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14138' 0
14139  trap 'as_fn_exit 1' 1 2 13 15
14140}
14141# Create a (secure) tmp directory for tmp files.
14142
14143{
14144  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14145  test -d "$tmp"
14146}  ||
14147{
14148  tmp=./conf$$-$RANDOM
14149  (umask 077 && mkdir "$tmp")
14150} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14151ac_tmp=$tmp
14152
14153# Set up the scripts for CONFIG_FILES section.
14154# No need to generate them if there are no CONFIG_FILES.
14155# This happens for instance with `./config.status config.h'.
14156if test -n "$CONFIG_FILES"; then
14157
14158
14159ac_cr=`echo X | tr X '\015'`
14160# On cygwin, bash can eat \r inside `` if the user requested igncr.
14161# But we know of no other shell where ac_cr would be empty at this
14162# point, so we can use a bashism as a fallback.
14163if test "x$ac_cr" = x; then
14164  eval ac_cr=\$\'\\r\'
14165fi
14166ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14167if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14168  ac_cs_awk_cr='\\r'
14169else
14170  ac_cs_awk_cr=$ac_cr
14171fi
14172
14173echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14174_ACEOF
14175
14176
14177{
14178  echo "cat >conf$$subs.awk <<_ACEOF" &&
14179  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14180  echo "_ACEOF"
14181} >conf$$subs.sh ||
14182  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14183ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14184ac_delim='%!_!# '
14185for ac_last_try in false false false false false :; do
14186  . ./conf$$subs.sh ||
14187    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14188
14189  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14190  if test $ac_delim_n = $ac_delim_num; then
14191    break
14192  elif $ac_last_try; then
14193    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14194  else
14195    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14196  fi
14197done
14198rm -f conf$$subs.sh
14199
14200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14201cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14202_ACEOF
14203sed -n '
14204h
14205s/^/S["/; s/!.*/"]=/
14206p
14207g
14208s/^[^!]*!//
14209:repl
14210t repl
14211s/'"$ac_delim"'$//
14212t delim
14213:nl
14214h
14215s/\(.\{148\}\)..*/\1/
14216t more1
14217s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14218p
14219n
14220b repl
14221:more1
14222s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14223p
14224g
14225s/.\{148\}//
14226t nl
14227:delim
14228h
14229s/\(.\{148\}\)..*/\1/
14230t more2
14231s/["\\]/\\&/g; s/^/"/; s/$/"/
14232p
14233b
14234:more2
14235s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14236p
14237g
14238s/.\{148\}//
14239t delim
14240' <conf$$subs.awk | sed '
14241/^[^""]/{
14242  N
14243  s/\n//
14244}
14245' >>$CONFIG_STATUS || ac_write_fail=1
14246rm -f conf$$subs.awk
14247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14248_ACAWK
14249cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14250  for (key in S) S_is_set[key] = 1
14251  FS = ""
14252
14253}
14254{
14255  line = $ 0
14256  nfields = split(line, field, "@")
14257  substed = 0
14258  len = length(field[1])
14259  for (i = 2; i < nfields; i++) {
14260    key = field[i]
14261    keylen = length(key)
14262    if (S_is_set[key]) {
14263      value = S[key]
14264      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14265      len += length(value) + length(field[++i])
14266      substed = 1
14267    } else
14268      len += 1 + keylen
14269  }
14270
14271  print line
14272}
14273
14274_ACAWK
14275_ACEOF
14276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14277if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14278  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14279else
14280  cat
14281fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14282  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14283_ACEOF
14284
14285# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14286# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14287# trailing colons and then remove the whole line if VPATH becomes empty
14288# (actually we leave an empty line to preserve line numbers).
14289if test "x$srcdir" = x.; then
14290  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14291h
14292s///
14293s/^/:/
14294s/[	 ]*$/:/
14295s/:\$(srcdir):/:/g
14296s/:\${srcdir}:/:/g
14297s/:@srcdir@:/:/g
14298s/^:*//
14299s/:*$//
14300x
14301s/\(=[	 ]*\).*/\1/
14302G
14303s/\n//
14304s/^[^=]*=[	 ]*$//
14305}'
14306fi
14307
14308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14309fi # test -n "$CONFIG_FILES"
14310
14311# Set up the scripts for CONFIG_HEADERS section.
14312# No need to generate them if there are no CONFIG_HEADERS.
14313# This happens for instance with `./config.status Makefile'.
14314if test -n "$CONFIG_HEADERS"; then
14315cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14316BEGIN {
14317_ACEOF
14318
14319# Transform confdefs.h into an awk script `defines.awk', embedded as
14320# here-document in config.status, that substitutes the proper values into
14321# config.h.in to produce config.h.
14322
14323# Create a delimiter string that does not exist in confdefs.h, to ease
14324# handling of long lines.
14325ac_delim='%!_!# '
14326for ac_last_try in false false :; do
14327  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14328  if test -z "$ac_tt"; then
14329    break
14330  elif $ac_last_try; then
14331    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14332  else
14333    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14334  fi
14335done
14336
14337# For the awk script, D is an array of macro values keyed by name,
14338# likewise P contains macro parameters if any.  Preserve backslash
14339# newline sequences.
14340
14341ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14342sed -n '
14343s/.\{148\}/&'"$ac_delim"'/g
14344t rset
14345:rset
14346s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14347t def
14348d
14349:def
14350s/\\$//
14351t bsnl
14352s/["\\]/\\&/g
14353s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14354D["\1"]=" \3"/p
14355s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14356d
14357:bsnl
14358s/["\\]/\\&/g
14359s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14360D["\1"]=" \3\\\\\\n"\\/p
14361t cont
14362s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14363t cont
14364d
14365:cont
14366n
14367s/.\{148\}/&'"$ac_delim"'/g
14368t clear
14369:clear
14370s/\\$//
14371t bsnlc
14372s/["\\]/\\&/g; s/^/"/; s/$/"/p
14373d
14374:bsnlc
14375s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14376b cont
14377' <confdefs.h | sed '
14378s/'"$ac_delim"'/"\\\
14379"/g' >>$CONFIG_STATUS || ac_write_fail=1
14380
14381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14382  for (key in D) D_is_set[key] = 1
14383  FS = ""
14384}
14385/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14386  line = \$ 0
14387  split(line, arg, " ")
14388  if (arg[1] == "#") {
14389    defundef = arg[2]
14390    mac1 = arg[3]
14391  } else {
14392    defundef = substr(arg[1], 2)
14393    mac1 = arg[2]
14394  }
14395  split(mac1, mac2, "(") #)
14396  macro = mac2[1]
14397  prefix = substr(line, 1, index(line, defundef) - 1)
14398  if (D_is_set[macro]) {
14399    # Preserve the white space surrounding the "#".
14400    print prefix "define", macro P[macro] D[macro]
14401    next
14402  } else {
14403    # Replace #undef with comments.  This is necessary, for example,
14404    # in the case of _POSIX_SOURCE, which is predefined and required
14405    # on some systems where configure will not decide to define it.
14406    if (defundef == "undef") {
14407      print "/*", prefix defundef, macro, "*/"
14408      next
14409    }
14410  }
14411}
14412{ print }
14413_ACAWK
14414_ACEOF
14415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14416  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14417fi # test -n "$CONFIG_HEADERS"
14418
14419
14420eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14421shift
14422for ac_tag
14423do
14424  case $ac_tag in
14425  :[FHLC]) ac_mode=$ac_tag; continue;;
14426  esac
14427  case $ac_mode$ac_tag in
14428  :[FHL]*:*);;
14429  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14430  :[FH]-) ac_tag=-:-;;
14431  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14432  esac
14433  ac_save_IFS=$IFS
14434  IFS=:
14435  set x $ac_tag
14436  IFS=$ac_save_IFS
14437  shift
14438  ac_file=$1
14439  shift
14440
14441  case $ac_mode in
14442  :L) ac_source=$1;;
14443  :[FH])
14444    ac_file_inputs=
14445    for ac_f
14446    do
14447      case $ac_f in
14448      -) ac_f="$ac_tmp/stdin";;
14449      *) # Look for the file first in the build tree, then in the source tree
14450	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14451	 # because $ac_f cannot contain `:'.
14452	 test -f "$ac_f" ||
14453	   case $ac_f in
14454	   [\\/$]*) false;;
14455	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14456	   esac ||
14457	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14458      esac
14459      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14460      as_fn_append ac_file_inputs " '$ac_f'"
14461    done
14462
14463    # Let's still pretend it is `configure' which instantiates (i.e., don't
14464    # use $as_me), people would be surprised to read:
14465    #    /* config.h.  Generated by config.status.  */
14466    configure_input='Generated from '`
14467	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14468	`' by configure.'
14469    if test x"$ac_file" != x-; then
14470      configure_input="$ac_file.  $configure_input"
14471      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14472$as_echo "$as_me: creating $ac_file" >&6;}
14473    fi
14474    # Neutralize special characters interpreted by sed in replacement strings.
14475    case $configure_input in #(
14476    *\&* | *\|* | *\\* )
14477       ac_sed_conf_input=`$as_echo "$configure_input" |
14478       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14479    *) ac_sed_conf_input=$configure_input;;
14480    esac
14481
14482    case $ac_tag in
14483    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14484      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14485    esac
14486    ;;
14487  esac
14488
14489  ac_dir=`$as_dirname -- "$ac_file" ||
14490$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14491	 X"$ac_file" : 'X\(//\)[^/]' \| \
14492	 X"$ac_file" : 'X\(//\)$' \| \
14493	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14494$as_echo X"$ac_file" |
14495    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14496	    s//\1/
14497	    q
14498	  }
14499	  /^X\(\/\/\)[^/].*/{
14500	    s//\1/
14501	    q
14502	  }
14503	  /^X\(\/\/\)$/{
14504	    s//\1/
14505	    q
14506	  }
14507	  /^X\(\/\).*/{
14508	    s//\1/
14509	    q
14510	  }
14511	  s/.*/./; q'`
14512  as_dir="$ac_dir"; as_fn_mkdir_p
14513  ac_builddir=.
14514
14515case "$ac_dir" in
14516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14517*)
14518  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14519  # A ".." for each directory in $ac_dir_suffix.
14520  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14521  case $ac_top_builddir_sub in
14522  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14523  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14524  esac ;;
14525esac
14526ac_abs_top_builddir=$ac_pwd
14527ac_abs_builddir=$ac_pwd$ac_dir_suffix
14528# for backward compatibility:
14529ac_top_builddir=$ac_top_build_prefix
14530
14531case $srcdir in
14532  .)  # We are building in place.
14533    ac_srcdir=.
14534    ac_top_srcdir=$ac_top_builddir_sub
14535    ac_abs_top_srcdir=$ac_pwd ;;
14536  [\\/]* | ?:[\\/]* )  # Absolute name.
14537    ac_srcdir=$srcdir$ac_dir_suffix;
14538    ac_top_srcdir=$srcdir
14539    ac_abs_top_srcdir=$srcdir ;;
14540  *) # Relative name.
14541    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14542    ac_top_srcdir=$ac_top_build_prefix$srcdir
14543    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14544esac
14545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14546
14547
14548  case $ac_mode in
14549  :F)
14550  #
14551  # CONFIG_FILE
14552  #
14553
14554  case $INSTALL in
14555  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14556  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14557  esac
14558  ac_MKDIR_P=$MKDIR_P
14559  case $MKDIR_P in
14560  [\\/$]* | ?:[\\/]* ) ;;
14561  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14562  esac
14563_ACEOF
14564
14565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14566# If the template does not know about datarootdir, expand it.
14567# FIXME: This hack should be removed a few years after 2.60.
14568ac_datarootdir_hack=; ac_datarootdir_seen=
14569ac_sed_dataroot='
14570/datarootdir/ {
14571  p
14572  q
14573}
14574/@datadir@/p
14575/@docdir@/p
14576/@infodir@/p
14577/@localedir@/p
14578/@mandir@/p'
14579case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14580*datarootdir*) ac_datarootdir_seen=yes;;
14581*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14582  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14583$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14584_ACEOF
14585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14586  ac_datarootdir_hack='
14587  s&@datadir@&$datadir&g
14588  s&@docdir@&$docdir&g
14589  s&@infodir@&$infodir&g
14590  s&@localedir@&$localedir&g
14591  s&@mandir@&$mandir&g
14592  s&\\\${datarootdir}&$datarootdir&g' ;;
14593esac
14594_ACEOF
14595
14596# Neutralize VPATH when `$srcdir' = `.'.
14597# Shell code in configure.ac might set extrasub.
14598# FIXME: do we really want to maintain this feature?
14599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14600ac_sed_extra="$ac_vpsub
14601$extrasub
14602_ACEOF
14603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14604:t
14605/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14606s|@configure_input@|$ac_sed_conf_input|;t t
14607s&@top_builddir@&$ac_top_builddir_sub&;t t
14608s&@top_build_prefix@&$ac_top_build_prefix&;t t
14609s&@srcdir@&$ac_srcdir&;t t
14610s&@abs_srcdir@&$ac_abs_srcdir&;t t
14611s&@top_srcdir@&$ac_top_srcdir&;t t
14612s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14613s&@builddir@&$ac_builddir&;t t
14614s&@abs_builddir@&$ac_abs_builddir&;t t
14615s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14616s&@INSTALL@&$ac_INSTALL&;t t
14617s&@MKDIR_P@&$ac_MKDIR_P&;t t
14618$ac_datarootdir_hack
14619"
14620eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14621  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14622
14623test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14624  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14625  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14626      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14627  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14628which seems to be undefined.  Please make sure it is defined" >&5
14629$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14630which seems to be undefined.  Please make sure it is defined" >&2;}
14631
14632  rm -f "$ac_tmp/stdin"
14633  case $ac_file in
14634  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14635  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14636  esac \
14637  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14638 ;;
14639  :H)
14640  #
14641  # CONFIG_HEADER
14642  #
14643  if test x"$ac_file" != x-; then
14644    {
14645      $as_echo "/* $configure_input  */" \
14646      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14647    } >"$ac_tmp/config.h" \
14648      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14649    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14650      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14651$as_echo "$as_me: $ac_file is unchanged" >&6;}
14652    else
14653      rm -f "$ac_file"
14654      mv "$ac_tmp/config.h" "$ac_file" \
14655	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14656    fi
14657  else
14658    $as_echo "/* $configure_input  */" \
14659      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14660      || as_fn_error $? "could not create -" "$LINENO" 5
14661  fi
14662# Compute "$ac_file"'s index in $config_headers.
14663_am_arg="$ac_file"
14664_am_stamp_count=1
14665for _am_header in $config_headers :; do
14666  case $_am_header in
14667    $_am_arg | $_am_arg:* )
14668      break ;;
14669    * )
14670      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14671  esac
14672done
14673echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14674$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14675	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14676	 X"$_am_arg" : 'X\(//\)$' \| \
14677	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14678$as_echo X"$_am_arg" |
14679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14680	    s//\1/
14681	    q
14682	  }
14683	  /^X\(\/\/\)[^/].*/{
14684	    s//\1/
14685	    q
14686	  }
14687	  /^X\(\/\/\)$/{
14688	    s//\1/
14689	    q
14690	  }
14691	  /^X\(\/\).*/{
14692	    s//\1/
14693	    q
14694	  }
14695	  s/.*/./; q'`/stamp-h$_am_stamp_count
14696 ;;
14697
14698  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14699$as_echo "$as_me: executing $ac_file commands" >&6;}
14700 ;;
14701  esac
14702
14703
14704  case $ac_file$ac_mode in
14705    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14706  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14707  # are listed without --file.  Let's play safe and only enable the eval
14708  # if we detect the quoting.
14709  case $CONFIG_FILES in
14710  *\'*) eval set x "$CONFIG_FILES" ;;
14711  *)   set x $CONFIG_FILES ;;
14712  esac
14713  shift
14714  for mf
14715  do
14716    # Strip MF so we end up with the name of the file.
14717    mf=`echo "$mf" | sed -e 's/:.*$//'`
14718    # Check whether this is an Automake generated Makefile or not.
14719    # We used to match only the files named `Makefile.in', but
14720    # some people rename them; so instead we look at the file content.
14721    # Grep'ing the first line is not enough: some people post-process
14722    # each Makefile.in and add a new line on top of each file to say so.
14723    # Grep'ing the whole file is not good either: AIX grep has a line
14724    # limit of 2048, but all sed's we know have understand at least 4000.
14725    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14726      dirpart=`$as_dirname -- "$mf" ||
14727$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14728	 X"$mf" : 'X\(//\)[^/]' \| \
14729	 X"$mf" : 'X\(//\)$' \| \
14730	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14731$as_echo X"$mf" |
14732    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14733	    s//\1/
14734	    q
14735	  }
14736	  /^X\(\/\/\)[^/].*/{
14737	    s//\1/
14738	    q
14739	  }
14740	  /^X\(\/\/\)$/{
14741	    s//\1/
14742	    q
14743	  }
14744	  /^X\(\/\).*/{
14745	    s//\1/
14746	    q
14747	  }
14748	  s/.*/./; q'`
14749    else
14750      continue
14751    fi
14752    # Extract the definition of DEPDIR, am__include, and am__quote
14753    # from the Makefile without running `make'.
14754    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14755    test -z "$DEPDIR" && continue
14756    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14757    test -z "am__include" && continue
14758    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14759    # When using ansi2knr, U may be empty or an underscore; expand it
14760    U=`sed -n 's/^U = //p' < "$mf"`
14761    # Find all dependency output files, they are included files with
14762    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14763    # simplest approach to changing $(DEPDIR) to its actual value in the
14764    # expansion.
14765    for file in `sed -n "
14766      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14767	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14768      # Make sure the directory exists.
14769      test -f "$dirpart/$file" && continue
14770      fdir=`$as_dirname -- "$file" ||
14771$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14772	 X"$file" : 'X\(//\)[^/]' \| \
14773	 X"$file" : 'X\(//\)$' \| \
14774	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14775$as_echo X"$file" |
14776    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14777	    s//\1/
14778	    q
14779	  }
14780	  /^X\(\/\/\)[^/].*/{
14781	    s//\1/
14782	    q
14783	  }
14784	  /^X\(\/\/\)$/{
14785	    s//\1/
14786	    q
14787	  }
14788	  /^X\(\/\).*/{
14789	    s//\1/
14790	    q
14791	  }
14792	  s/.*/./; q'`
14793      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14794      # echo "creating $dirpart/$file"
14795      echo '# dummy' > "$dirpart/$file"
14796    done
14797  done
14798}
14799 ;;
14800    "libtool":C)
14801
14802    # See if we are running on zsh, and set the options which allow our
14803    # commands through without removal of \ escapes.
14804    if test -n "${ZSH_VERSION+set}" ; then
14805      setopt NO_GLOB_SUBST
14806    fi
14807
14808    cfgfile="${ofile}T"
14809    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14810    $RM "$cfgfile"
14811
14812    cat <<_LT_EOF >> "$cfgfile"
14813#! $SHELL
14814
14815# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14816# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14817# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14818# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14819#
14820#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14821#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14822#                 Inc.
14823#   Written by Gordon Matzigkeit, 1996
14824#
14825#   This file is part of GNU Libtool.
14826#
14827# GNU Libtool is free software; you can redistribute it and/or
14828# modify it under the terms of the GNU General Public License as
14829# published by the Free Software Foundation; either version 2 of
14830# the License, or (at your option) any later version.
14831#
14832# As a special exception to the GNU General Public License,
14833# if you distribute this file as part of a program or library that
14834# is built using GNU Libtool, you may include this file under the
14835# same distribution terms that you use for the rest of that program.
14836#
14837# GNU Libtool is distributed in the hope that it will be useful,
14838# but WITHOUT ANY WARRANTY; without even the implied warranty of
14839# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14840# GNU General Public License for more details.
14841#
14842# You should have received a copy of the GNU General Public License
14843# along with GNU Libtool; see the file COPYING.  If not, a copy
14844# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14845# obtained by writing to the Free Software Foundation, Inc.,
14846# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14847
14848
14849# The names of the tagged configurations supported by this script.
14850available_tags=""
14851
14852# ### BEGIN LIBTOOL CONFIG
14853
14854# Which release of libtool.m4 was used?
14855macro_version=$macro_version
14856macro_revision=$macro_revision
14857
14858# Whether or not to build shared libraries.
14859build_libtool_libs=$enable_shared
14860
14861# Whether or not to build static libraries.
14862build_old_libs=$enable_static
14863
14864# What type of objects to build.
14865pic_mode=$pic_mode
14866
14867# Whether or not to optimize for fast installation.
14868fast_install=$enable_fast_install
14869
14870# Shell to use when invoking shell scripts.
14871SHELL=$lt_SHELL
14872
14873# An echo program that protects backslashes.
14874ECHO=$lt_ECHO
14875
14876# The host system.
14877host_alias=$host_alias
14878host=$host
14879host_os=$host_os
14880
14881# The build system.
14882build_alias=$build_alias
14883build=$build
14884build_os=$build_os
14885
14886# A sed program that does not truncate output.
14887SED=$lt_SED
14888
14889# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14890Xsed="\$SED -e 1s/^X//"
14891
14892# A grep program that handles long lines.
14893GREP=$lt_GREP
14894
14895# An ERE matcher.
14896EGREP=$lt_EGREP
14897
14898# A literal string matcher.
14899FGREP=$lt_FGREP
14900
14901# A BSD- or MS-compatible name lister.
14902NM=$lt_NM
14903
14904# Whether we need soft or hard links.
14905LN_S=$lt_LN_S
14906
14907# What is the maximum length of a command?
14908max_cmd_len=$max_cmd_len
14909
14910# Object file suffix (normally "o").
14911objext=$ac_objext
14912
14913# Executable file suffix (normally "").
14914exeext=$exeext
14915
14916# whether the shell understands "unset".
14917lt_unset=$lt_unset
14918
14919# turn spaces into newlines.
14920SP2NL=$lt_lt_SP2NL
14921
14922# turn newlines into spaces.
14923NL2SP=$lt_lt_NL2SP
14924
14925# convert \$build file names to \$host format.
14926to_host_file_cmd=$lt_cv_to_host_file_cmd
14927
14928# convert \$build files to toolchain format.
14929to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14930
14931# An object symbol dumper.
14932OBJDUMP=$lt_OBJDUMP
14933
14934# Method to check whether dependent libraries are shared objects.
14935deplibs_check_method=$lt_deplibs_check_method
14936
14937# Command to use when deplibs_check_method = "file_magic".
14938file_magic_cmd=$lt_file_magic_cmd
14939
14940# How to find potential files when deplibs_check_method = "file_magic".
14941file_magic_glob=$lt_file_magic_glob
14942
14943# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14944want_nocaseglob=$lt_want_nocaseglob
14945
14946# DLL creation program.
14947DLLTOOL=$lt_DLLTOOL
14948
14949# Command to associate shared and link libraries.
14950sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14951
14952# The archiver.
14953AR=$lt_AR
14954
14955# Flags to create an archive.
14956AR_FLAGS=$lt_AR_FLAGS
14957
14958# How to feed a file listing to the archiver.
14959archiver_list_spec=$lt_archiver_list_spec
14960
14961# A symbol stripping program.
14962STRIP=$lt_STRIP
14963
14964# Commands used to install an old-style archive.
14965RANLIB=$lt_RANLIB
14966old_postinstall_cmds=$lt_old_postinstall_cmds
14967old_postuninstall_cmds=$lt_old_postuninstall_cmds
14968
14969# Whether to use a lock for old archive extraction.
14970lock_old_archive_extraction=$lock_old_archive_extraction
14971
14972# A C compiler.
14973LTCC=$lt_CC
14974
14975# LTCC compiler flags.
14976LTCFLAGS=$lt_CFLAGS
14977
14978# Take the output of nm and produce a listing of raw symbols and C names.
14979global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14980
14981# Transform the output of nm in a proper C declaration.
14982global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14983
14984# Transform the output of nm in a C name address pair.
14985global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14986
14987# Transform the output of nm in a C name address pair when lib prefix is needed.
14988global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14989
14990# Specify filename containing input files for \$NM.
14991nm_file_list_spec=$lt_nm_file_list_spec
14992
14993# The root where to search for dependent libraries,and in which our libraries should be installed.
14994lt_sysroot=$lt_sysroot
14995
14996# The name of the directory that contains temporary libtool files.
14997objdir=$objdir
14998
14999# Used to examine libraries when file_magic_cmd begins with "file".
15000MAGIC_CMD=$MAGIC_CMD
15001
15002# Must we lock files when doing compilation?
15003need_locks=$lt_need_locks
15004
15005# Manifest tool.
15006MANIFEST_TOOL=$lt_MANIFEST_TOOL
15007
15008# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15009DSYMUTIL=$lt_DSYMUTIL
15010
15011# Tool to change global to local symbols on Mac OS X.
15012NMEDIT=$lt_NMEDIT
15013
15014# Tool to manipulate fat objects and archives on Mac OS X.
15015LIPO=$lt_LIPO
15016
15017# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15018OTOOL=$lt_OTOOL
15019
15020# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15021OTOOL64=$lt_OTOOL64
15022
15023# Old archive suffix (normally "a").
15024libext=$libext
15025
15026# Shared library suffix (normally ".so").
15027shrext_cmds=$lt_shrext_cmds
15028
15029# The commands to extract the exported symbol list from a shared archive.
15030extract_expsyms_cmds=$lt_extract_expsyms_cmds
15031
15032# Variables whose values should be saved in libtool wrapper scripts and
15033# restored at link time.
15034variables_saved_for_relink=$lt_variables_saved_for_relink
15035
15036# Do we need the "lib" prefix for modules?
15037need_lib_prefix=$need_lib_prefix
15038
15039# Do we need a version for libraries?
15040need_version=$need_version
15041
15042# Library versioning type.
15043version_type=$version_type
15044
15045# Shared library runtime path variable.
15046runpath_var=$runpath_var
15047
15048# Shared library path variable.
15049shlibpath_var=$shlibpath_var
15050
15051# Is shlibpath searched before the hard-coded library search path?
15052shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15053
15054# Format of library name prefix.
15055libname_spec=$lt_libname_spec
15056
15057# List of archive names.  First name is the real one, the rest are links.
15058# The last name is the one that the linker finds with -lNAME
15059library_names_spec=$lt_library_names_spec
15060
15061# The coded name of the library, if different from the real name.
15062soname_spec=$lt_soname_spec
15063
15064# Permission mode override for installation of shared libraries.
15065install_override_mode=$lt_install_override_mode
15066
15067# Command to use after installation of a shared archive.
15068postinstall_cmds=$lt_postinstall_cmds
15069
15070# Command to use after uninstallation of a shared archive.
15071postuninstall_cmds=$lt_postuninstall_cmds
15072
15073# Commands used to finish a libtool library installation in a directory.
15074finish_cmds=$lt_finish_cmds
15075
15076# As "finish_cmds", except a single script fragment to be evaled but
15077# not shown.
15078finish_eval=$lt_finish_eval
15079
15080# Whether we should hardcode library paths into libraries.
15081hardcode_into_libs=$hardcode_into_libs
15082
15083# Compile-time system search path for libraries.
15084sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15085
15086# Run-time system search path for libraries.
15087sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15088
15089# Whether dlopen is supported.
15090dlopen_support=$enable_dlopen
15091
15092# Whether dlopen of programs is supported.
15093dlopen_self=$enable_dlopen_self
15094
15095# Whether dlopen of statically linked programs is supported.
15096dlopen_self_static=$enable_dlopen_self_static
15097
15098# Commands to strip libraries.
15099old_striplib=$lt_old_striplib
15100striplib=$lt_striplib
15101
15102
15103# The linker used to build libraries.
15104LD=$lt_LD
15105
15106# How to create reloadable object files.
15107reload_flag=$lt_reload_flag
15108reload_cmds=$lt_reload_cmds
15109
15110# Commands used to build an old-style archive.
15111old_archive_cmds=$lt_old_archive_cmds
15112
15113# A language specific compiler.
15114CC=$lt_compiler
15115
15116# Is the compiler the GNU compiler?
15117with_gcc=$GCC
15118
15119# Compiler flag to turn off builtin functions.
15120no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15121
15122# Additional compiler flags for building library objects.
15123pic_flag=$lt_lt_prog_compiler_pic
15124
15125# How to pass a linker flag through the compiler.
15126wl=$lt_lt_prog_compiler_wl
15127
15128# Compiler flag to prevent dynamic linking.
15129link_static_flag=$lt_lt_prog_compiler_static
15130
15131# Does compiler simultaneously support -c and -o options?
15132compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15133
15134# Whether or not to add -lc for building shared libraries.
15135build_libtool_need_lc=$archive_cmds_need_lc
15136
15137# Whether or not to disallow shared libs when runtime libs are static.
15138allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15139
15140# Compiler flag to allow reflexive dlopens.
15141export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15142
15143# Compiler flag to generate shared objects directly from archives.
15144whole_archive_flag_spec=$lt_whole_archive_flag_spec
15145
15146# Whether the compiler copes with passing no objects directly.
15147compiler_needs_object=$lt_compiler_needs_object
15148
15149# Create an old-style archive from a shared archive.
15150old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15151
15152# Create a temporary old-style archive to link instead of a shared archive.
15153old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15154
15155# Commands used to build a shared archive.
15156archive_cmds=$lt_archive_cmds
15157archive_expsym_cmds=$lt_archive_expsym_cmds
15158
15159# Commands used to build a loadable module if different from building
15160# a shared archive.
15161module_cmds=$lt_module_cmds
15162module_expsym_cmds=$lt_module_expsym_cmds
15163
15164# Whether we are building with GNU ld or not.
15165with_gnu_ld=$lt_with_gnu_ld
15166
15167# Flag that allows shared libraries with undefined symbols to be built.
15168allow_undefined_flag=$lt_allow_undefined_flag
15169
15170# Flag that enforces no undefined symbols.
15171no_undefined_flag=$lt_no_undefined_flag
15172
15173# Flag to hardcode \$libdir into a binary during linking.
15174# This must work even if \$libdir does not exist
15175hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15176
15177# If ld is used when linking, flag to hardcode \$libdir into a binary
15178# during linking.  This must work even if \$libdir does not exist.
15179hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15180
15181# Whether we need a single "-rpath" flag with a separated argument.
15182hardcode_libdir_separator=$lt_hardcode_libdir_separator
15183
15184# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15185# DIR into the resulting binary.
15186hardcode_direct=$hardcode_direct
15187
15188# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15189# DIR into the resulting binary and the resulting library dependency is
15190# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15191# library is relocated.
15192hardcode_direct_absolute=$hardcode_direct_absolute
15193
15194# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15195# into the resulting binary.
15196hardcode_minus_L=$hardcode_minus_L
15197
15198# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15199# into the resulting binary.
15200hardcode_shlibpath_var=$hardcode_shlibpath_var
15201
15202# Set to "yes" if building a shared library automatically hardcodes DIR
15203# into the library and all subsequent libraries and executables linked
15204# against it.
15205hardcode_automatic=$hardcode_automatic
15206
15207# Set to yes if linker adds runtime paths of dependent libraries
15208# to runtime path list.
15209inherit_rpath=$inherit_rpath
15210
15211# Whether libtool must link a program against all its dependency libraries.
15212link_all_deplibs=$link_all_deplibs
15213
15214# Set to "yes" if exported symbols are required.
15215always_export_symbols=$always_export_symbols
15216
15217# The commands to list exported symbols.
15218export_symbols_cmds=$lt_export_symbols_cmds
15219
15220# Symbols that should not be listed in the preloaded symbols.
15221exclude_expsyms=$lt_exclude_expsyms
15222
15223# Symbols that must always be exported.
15224include_expsyms=$lt_include_expsyms
15225
15226# Commands necessary for linking programs (against libraries) with templates.
15227prelink_cmds=$lt_prelink_cmds
15228
15229# Commands necessary for finishing linking programs.
15230postlink_cmds=$lt_postlink_cmds
15231
15232# Specify filename containing input files.
15233file_list_spec=$lt_file_list_spec
15234
15235# How to hardcode a shared library path into an executable.
15236hardcode_action=$hardcode_action
15237
15238# ### END LIBTOOL CONFIG
15239
15240_LT_EOF
15241
15242  case $host_os in
15243  aix3*)
15244    cat <<\_LT_EOF >> "$cfgfile"
15245# AIX sometimes has problems with the GCC collect2 program.  For some
15246# reason, if we set the COLLECT_NAMES environment variable, the problems
15247# vanish in a puff of smoke.
15248if test "X${COLLECT_NAMES+set}" != Xset; then
15249  COLLECT_NAMES=
15250  export COLLECT_NAMES
15251fi
15252_LT_EOF
15253    ;;
15254  esac
15255
15256
15257ltmain="$ac_aux_dir/ltmain.sh"
15258
15259
15260  # We use sed instead of cat because bash on DJGPP gets confused if
15261  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15262  # text mode, it properly converts lines to CR/LF.  This bash problem
15263  # is reportedly fixed, but why not run on old versions too?
15264  sed '$q' "$ltmain" >> "$cfgfile" \
15265     || (rm -f "$cfgfile"; exit 1)
15266
15267  if test x"$xsi_shell" = xyes; then
15268  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15269func_dirname ()\
15270{\
15271\    case ${1} in\
15272\      */*) func_dirname_result="${1%/*}${2}" ;;\
15273\      *  ) func_dirname_result="${3}" ;;\
15274\    esac\
15275} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15276  && mv -f "$cfgfile.tmp" "$cfgfile" \
15277    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15278test 0 -eq $? || _lt_function_replace_fail=:
15279
15280
15281  sed -e '/^func_basename ()$/,/^} # func_basename /c\
15282func_basename ()\
15283{\
15284\    func_basename_result="${1##*/}"\
15285} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15286  && mv -f "$cfgfile.tmp" "$cfgfile" \
15287    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15288test 0 -eq $? || _lt_function_replace_fail=:
15289
15290
15291  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15292func_dirname_and_basename ()\
15293{\
15294\    case ${1} in\
15295\      */*) func_dirname_result="${1%/*}${2}" ;;\
15296\      *  ) func_dirname_result="${3}" ;;\
15297\    esac\
15298\    func_basename_result="${1##*/}"\
15299} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15300  && mv -f "$cfgfile.tmp" "$cfgfile" \
15301    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15302test 0 -eq $? || _lt_function_replace_fail=:
15303
15304
15305  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15306func_stripname ()\
15307{\
15308\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15309\    # positional parameters, so assign one to ordinary parameter first.\
15310\    func_stripname_result=${3}\
15311\    func_stripname_result=${func_stripname_result#"${1}"}\
15312\    func_stripname_result=${func_stripname_result%"${2}"}\
15313} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15314  && mv -f "$cfgfile.tmp" "$cfgfile" \
15315    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15316test 0 -eq $? || _lt_function_replace_fail=:
15317
15318
15319  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15320func_split_long_opt ()\
15321{\
15322\    func_split_long_opt_name=${1%%=*}\
15323\    func_split_long_opt_arg=${1#*=}\
15324} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15325  && mv -f "$cfgfile.tmp" "$cfgfile" \
15326    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15327test 0 -eq $? || _lt_function_replace_fail=:
15328
15329
15330  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15331func_split_short_opt ()\
15332{\
15333\    func_split_short_opt_arg=${1#??}\
15334\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15335} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15336  && mv -f "$cfgfile.tmp" "$cfgfile" \
15337    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15338test 0 -eq $? || _lt_function_replace_fail=:
15339
15340
15341  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15342func_lo2o ()\
15343{\
15344\    case ${1} in\
15345\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15346\      *)    func_lo2o_result=${1} ;;\
15347\    esac\
15348} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15349  && mv -f "$cfgfile.tmp" "$cfgfile" \
15350    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15351test 0 -eq $? || _lt_function_replace_fail=:
15352
15353
15354  sed -e '/^func_xform ()$/,/^} # func_xform /c\
15355func_xform ()\
15356{\
15357    func_xform_result=${1%.*}.lo\
15358} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15359  && mv -f "$cfgfile.tmp" "$cfgfile" \
15360    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15361test 0 -eq $? || _lt_function_replace_fail=:
15362
15363
15364  sed -e '/^func_arith ()$/,/^} # func_arith /c\
15365func_arith ()\
15366{\
15367    func_arith_result=$(( $* ))\
15368} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15369  && mv -f "$cfgfile.tmp" "$cfgfile" \
15370    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15371test 0 -eq $? || _lt_function_replace_fail=:
15372
15373
15374  sed -e '/^func_len ()$/,/^} # func_len /c\
15375func_len ()\
15376{\
15377    func_len_result=${#1}\
15378} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15379  && mv -f "$cfgfile.tmp" "$cfgfile" \
15380    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15381test 0 -eq $? || _lt_function_replace_fail=:
15382
15383fi
15384
15385if test x"$lt_shell_append" = xyes; then
15386  sed -e '/^func_append ()$/,/^} # func_append /c\
15387func_append ()\
15388{\
15389    eval "${1}+=\\${2}"\
15390} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15391  && mv -f "$cfgfile.tmp" "$cfgfile" \
15392    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15393test 0 -eq $? || _lt_function_replace_fail=:
15394
15395
15396  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15397func_append_quoted ()\
15398{\
15399\    func_quote_for_eval "${2}"\
15400\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15401} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15402  && mv -f "$cfgfile.tmp" "$cfgfile" \
15403    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15404test 0 -eq $? || _lt_function_replace_fail=:
15405
15406
15407  # Save a `func_append' function call where possible by direct use of '+='
15408  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15409    && mv -f "$cfgfile.tmp" "$cfgfile" \
15410      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15411  test 0 -eq $? || _lt_function_replace_fail=:
15412else
15413  # Save a `func_append' function call even when '+=' is not available
15414  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15415    && mv -f "$cfgfile.tmp" "$cfgfile" \
15416      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15417  test 0 -eq $? || _lt_function_replace_fail=:
15418fi
15419
15420if test x"$_lt_function_replace_fail" = x":"; then
15421  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15422$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15423fi
15424
15425
15426   mv -f "$cfgfile" "$ofile" ||
15427    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15428  chmod +x "$ofile"
15429
15430 ;;
15431    "libtool_hack":C)
15432	cp -f libtool libtool_
15433	test -z "$SED" && SED=sed
15434	$SED '1,/^soname_spec/{
15435/^soname_spec/i\
15436# X.Org hack to match monolithic Xaw SONAME\
15437xorglibxawname="libXaw"
15438/^soname_spec/s/libname/xorglibxawname/
15439}' libtool_ > libtool
15440	rm -f libtool_
15441 ;;
15442
15443  esac
15444done # for ac_tag
15445
15446
15447as_fn_exit 0
15448_ACEOF
15449ac_clean_files=$ac_clean_files_save
15450
15451test $ac_write_fail = 0 ||
15452  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15453
15454
15455# configure is writing to config.log, and then calls config.status.
15456# config.status does its own redirection, appending to config.log.
15457# Unfortunately, on DOS this fails, as config.log is still kept open
15458# by configure, so config.status won't be able to write to it; its
15459# output is simply discarded.  So we exec the FD to /dev/null,
15460# effectively closing config.log, so it can be properly (re)opened and
15461# appended to by config.status.  When coming back to configure, we
15462# need to make the FD available again.
15463if test "$no_create" != yes; then
15464  ac_cs_success=:
15465  ac_config_status_args=
15466  test "$silent" = yes &&
15467    ac_config_status_args="$ac_config_status_args --quiet"
15468  exec 5>/dev/null
15469  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15470  exec 5>>config.log
15471  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15472  # would make configure fail if this is the last instruction.
15473  $ac_cs_success || as_fn_exit 1
15474fi
15475if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15476  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15477$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15478fi
15479
15480