configure revision 31637056
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXtst 1.2.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570as_awk_strverscmp='
571  # Use only awk features that work with 7th edition Unix awk (1978).
572  # My, what an old awk you have, Mr. Solaris!
573  END {
574    while (length(v1) && length(v2)) {
575      # Set d1 to be the next thing to compare from v1, and likewise for d2.
576      # Normally this is a single character, but if v1 and v2 contain digits,
577      # compare them as integers and fractions as strverscmp does.
578      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579	# Split v1 and v2 into their leading digit string components d1 and d2,
580	# and advance v1 and v2 past the leading digit strings.
581	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585	if (d1 ~ /^0/) {
586	  if (d2 ~ /^0/) {
587	    # Compare two fractions.
588	    while (d1 ~ /^0/ && d2 ~ /^0/) {
589	      d1 = substr(d1, 2); len1--
590	      d2 = substr(d2, 2); len2--
591	    }
592	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593	      # The two components differ in length, and the common prefix
594	      # contains only leading zeros.  Consider the longer to be less.
595	      d1 = -len1
596	      d2 = -len2
597	    } else {
598	      # Otherwise, compare as strings.
599	      d1 = "x" d1
600	      d2 = "x" d2
601	    }
602	  } else {
603	    # A fraction is less than an integer.
604	    exit 1
605	  }
606	} else {
607	  if (d2 ~ /^0/) {
608	    # An integer is greater than a fraction.
609	    exit 2
610	  } else {
611	    # Compare two integers.
612	    d1 += 0
613	    d2 += 0
614	  }
615	}
616      } else {
617	# The normal case, without worrying about digits.
618	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620      }
621      if (d1 < d2) exit 1
622      if (d1 > d2) exit 2
623    }
624    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625    # which mishandles some comparisons of empty strings to integers.
626    if (length(v2)) exit 1
627    if (length(v1)) exit 2
628  }
629'
630
631test -n "$DJDIR" || exec 7<&0 </dev/null
632exec 6>&1
633
634# Name of the host.
635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636# so uname gets run too.
637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639#
640# Initializations.
641#
642ac_default_prefix=/usr/local
643ac_clean_files=
644ac_config_libobj_dir=.
645LIBOBJS=
646cross_compiling=no
647subdirs=
648MFLAGS=
649MAKEFLAGS=
650
651# Identity of this package.
652PACKAGE_NAME='libXtst'
653PACKAGE_TARNAME='libXtst'
654PACKAGE_VERSION='1.2.3'
655PACKAGE_STRING='libXtst 1.2.3'
656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
657PACKAGE_URL=''
658
659ac_unique_file="Makefile.am"
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_subst_vars='am__EXEEXT_FALSE
697am__EXEEXT_TRUE
698LTLIBOBJS
699LIBOBJS
700MAKE_LINT_LIB_FALSE
701MAKE_LINT_LIB_TRUE
702LINTLIB
703LINT_FALSE
704LINT_TRUE
705LINT_FLAGS
706LINT
707INSTALL_MANPAGES_FALSE
708INSTALL_MANPAGES_TRUE
709XTST_LIBS
710XTST_CFLAGS
711HAVE_STYLESHEETS_FALSE
712HAVE_STYLESHEETS_TRUE
713XSL_STYLESHEET
714STYLESHEET_SRCDIR
715XORG_SGML_PATH
716HAVE_XSLTPROC_FALSE
717HAVE_XSLTPROC_TRUE
718XSLTPROC
719HAVE_FOP_FALSE
720HAVE_FOP_TRUE
721FOP
722HAVE_XMLTO_FALSE
723HAVE_XMLTO_TRUE
724HAVE_XMLTO_TEXT_FALSE
725HAVE_XMLTO_TEXT_TRUE
726XMLTO
727ENABLE_SPECS_FALSE
728ENABLE_SPECS_TRUE
729MAN_SUBSTS
730XORG_MAN_PAGE
731ADMIN_MAN_DIR
732DRIVER_MAN_DIR
733MISC_MAN_DIR
734FILE_MAN_DIR
735LIB_MAN_DIR
736APP_MAN_DIR
737ADMIN_MAN_SUFFIX
738DRIVER_MAN_SUFFIX
739MISC_MAN_SUFFIX
740FILE_MAN_SUFFIX
741LIB_MAN_SUFFIX
742APP_MAN_SUFFIX
743INSTALL_CMD
744PKG_CONFIG_LIBDIR
745PKG_CONFIG_PATH
746PKG_CONFIG
747CHANGELOG_CMD
748STRICT_CFLAGS
749CWARNFLAGS
750BASE_CFLAGS
751CPP
752OTOOL64
753OTOOL
754LIPO
755NMEDIT
756DSYMUTIL
757MANIFEST_TOOL
758RANLIB
759ac_ct_AR
760AR
761DLLTOOL
762OBJDUMP
763LN_S
764NM
765ac_ct_DUMPBIN
766DUMPBIN
767LD
768FGREP
769EGREP
770GREP
771SED
772am__fastdepCC_FALSE
773am__fastdepCC_TRUE
774CCDEPMODE
775am__nodep
776AMDEPBACKSLASH
777AMDEP_FALSE
778AMDEP_TRUE
779am__quote
780am__include
781DEPDIR
782OBJEXT
783EXEEXT
784ac_ct_CC
785CPPFLAGS
786LDFLAGS
787CFLAGS
788CC
789host_os
790host_vendor
791host_cpu
792host
793build_os
794build_vendor
795build_cpu
796build
797LIBTOOL
798AM_BACKSLASH
799AM_DEFAULT_VERBOSITY
800AM_DEFAULT_V
801AM_V
802am__untar
803am__tar
804AMTAR
805am__leading_dot
806SET_MAKE
807AWK
808mkdir_p
809MKDIR_P
810INSTALL_STRIP_PROGRAM
811STRIP
812install_sh
813MAKEINFO
814AUTOHEADER
815AUTOMAKE
816AUTOCONF
817ACLOCAL
818VERSION
819PACKAGE
820CYGPATH_W
821am__isrc
822INSTALL_DATA
823INSTALL_SCRIPT
824INSTALL_PROGRAM
825target_alias
826host_alias
827build_alias
828LIBS
829ECHO_T
830ECHO_N
831ECHO_C
832DEFS
833mandir
834localedir
835libdir
836psdir
837pdfdir
838dvidir
839htmldir
840infodir
841docdir
842oldincludedir
843includedir
844localstatedir
845sharedstatedir
846sysconfdir
847datadir
848datarootdir
849libexecdir
850sbindir
851bindir
852program_transform_name
853prefix
854exec_prefix
855PACKAGE_URL
856PACKAGE_BUGREPORT
857PACKAGE_STRING
858PACKAGE_VERSION
859PACKAGE_TARNAME
860PACKAGE_NAME
861PATH_SEPARATOR
862SHELL'
863ac_subst_files=''
864ac_user_opts='
865enable_option_checking
866enable_silent_rules
867enable_shared
868enable_static
869with_pic
870enable_fast_install
871enable_dependency_tracking
872with_gnu_ld
873with_sysroot
874enable_libtool_lock
875enable_selective_werror
876enable_strict_compilation
877enable_specs
878with_xmlto
879with_fop
880with_xsltproc
881with_lint
882enable_lint_library
883'
884      ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
890LIBS
891CPPFLAGS
892CPP
893PKG_CONFIG
894PKG_CONFIG_PATH
895PKG_CONFIG_LIBDIR
896XMLTO
897FOP
898XSLTPROC
899XTST_CFLAGS
900XTST_LIBS
901LINT
902LINT_FLAGS'
903
904
905# Initialize some variables set by options.
906ac_init_help=
907ac_init_version=false
908ac_unrecognized_opts=
909ac_unrecognized_sep=
910# The variables have the same names as the options, with
911# dashes changed to underlines.
912cache_file=/dev/null
913exec_prefix=NONE
914no_create=
915no_recursion=
916prefix=NONE
917program_prefix=NONE
918program_suffix=NONE
919program_transform_name=s,x,x,
920silent=
921site=
922srcdir=
923verbose=
924x_includes=NONE
925x_libraries=NONE
926
927# Installation directory options.
928# These are left unexpanded so users can "make install exec_prefix=/foo"
929# and all the variables that are supposed to be based on exec_prefix
930# by default will actually change.
931# Use braces instead of parens because sh, perl, etc. also accept them.
932# (The list follows the same order as the GNU Coding Standards.)
933bindir='${exec_prefix}/bin'
934sbindir='${exec_prefix}/sbin'
935libexecdir='${exec_prefix}/libexec'
936datarootdir='${prefix}/share'
937datadir='${datarootdir}'
938sysconfdir='${prefix}/etc'
939sharedstatedir='${prefix}/com'
940localstatedir='${prefix}/var'
941includedir='${prefix}/include'
942oldincludedir='/usr/include'
943docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944infodir='${datarootdir}/info'
945htmldir='${docdir}'
946dvidir='${docdir}'
947pdfdir='${docdir}'
948psdir='${docdir}'
949libdir='${exec_prefix}/lib'
950localedir='${datarootdir}/locale'
951mandir='${datarootdir}/man'
952
953ac_prev=
954ac_dashdash=
955for ac_option
956do
957  # If the previous option needs an argument, assign it.
958  if test -n "$ac_prev"; then
959    eval $ac_prev=\$ac_option
960    ac_prev=
961    continue
962  fi
963
964  case $ac_option in
965  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966  *=)   ac_optarg= ;;
967  *)    ac_optarg=yes ;;
968  esac
969
970  # Accept the important Cygnus configure options, so we can diagnose typos.
971
972  case $ac_dashdash$ac_option in
973  --)
974    ac_dashdash=yes ;;
975
976  -bindir | --bindir | --bindi | --bind | --bin | --bi)
977    ac_prev=bindir ;;
978  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979    bindir=$ac_optarg ;;
980
981  -build | --build | --buil | --bui | --bu)
982    ac_prev=build_alias ;;
983  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984    build_alias=$ac_optarg ;;
985
986  -cache-file | --cache-file | --cache-fil | --cache-fi \
987  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988    ac_prev=cache_file ;;
989  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991    cache_file=$ac_optarg ;;
992
993  --config-cache | -C)
994    cache_file=config.cache ;;
995
996  -datadir | --datadir | --datadi | --datad)
997    ac_prev=datadir ;;
998  -datadir=* | --datadir=* | --datadi=* | --datad=*)
999    datadir=$ac_optarg ;;
1000
1001  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002  | --dataroo | --dataro | --datar)
1003    ac_prev=datarootdir ;;
1004  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006    datarootdir=$ac_optarg ;;
1007
1008  -disable-* | --disable-*)
1009    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012      as_fn_error $? "invalid feature name: $ac_useropt"
1013    ac_useropt_orig=$ac_useropt
1014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015    case $ac_user_opts in
1016      *"
1017"enable_$ac_useropt"
1018"*) ;;
1019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020	 ac_unrecognized_sep=', ';;
1021    esac
1022    eval enable_$ac_useropt=no ;;
1023
1024  -docdir | --docdir | --docdi | --doc | --do)
1025    ac_prev=docdir ;;
1026  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027    docdir=$ac_optarg ;;
1028
1029  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030    ac_prev=dvidir ;;
1031  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032    dvidir=$ac_optarg ;;
1033
1034  -enable-* | --enable-*)
1035    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036    # Reject names that are not valid shell variable names.
1037    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038      as_fn_error $? "invalid feature name: $ac_useropt"
1039    ac_useropt_orig=$ac_useropt
1040    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041    case $ac_user_opts in
1042      *"
1043"enable_$ac_useropt"
1044"*) ;;
1045      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046	 ac_unrecognized_sep=', ';;
1047    esac
1048    eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052  | --exec | --exe | --ex)
1053    ac_prev=exec_prefix ;;
1054  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056  | --exec=* | --exe=* | --ex=*)
1057    exec_prefix=$ac_optarg ;;
1058
1059  -gas | --gas | --ga | --g)
1060    # Obsolete; use --with-gas.
1061    with_gas=yes ;;
1062
1063  -help | --help | --hel | --he | -h)
1064    ac_init_help=long ;;
1065  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066    ac_init_help=recursive ;;
1067  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068    ac_init_help=short ;;
1069
1070  -host | --host | --hos | --ho)
1071    ac_prev=host_alias ;;
1072  -host=* | --host=* | --hos=* | --ho=*)
1073    host_alias=$ac_optarg ;;
1074
1075  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076    ac_prev=htmldir ;;
1077  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078  | --ht=*)
1079    htmldir=$ac_optarg ;;
1080
1081  -includedir | --includedir | --includedi | --included | --include \
1082  | --includ | --inclu | --incl | --inc)
1083    ac_prev=includedir ;;
1084  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085  | --includ=* | --inclu=* | --incl=* | --inc=*)
1086    includedir=$ac_optarg ;;
1087
1088  -infodir | --infodir | --infodi | --infod | --info | --inf)
1089    ac_prev=infodir ;;
1090  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091    infodir=$ac_optarg ;;
1092
1093  -libdir | --libdir | --libdi | --libd)
1094    ac_prev=libdir ;;
1095  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096    libdir=$ac_optarg ;;
1097
1098  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099  | --libexe | --libex | --libe)
1100    ac_prev=libexecdir ;;
1101  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102  | --libexe=* | --libex=* | --libe=*)
1103    libexecdir=$ac_optarg ;;
1104
1105  -localedir | --localedir | --localedi | --localed | --locale)
1106    ac_prev=localedir ;;
1107  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108    localedir=$ac_optarg ;;
1109
1110  -localstatedir | --localstatedir | --localstatedi | --localstated \
1111  | --localstate | --localstat | --localsta | --localst | --locals)
1112    ac_prev=localstatedir ;;
1113  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115    localstatedir=$ac_optarg ;;
1116
1117  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118    ac_prev=mandir ;;
1119  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120    mandir=$ac_optarg ;;
1121
1122  -nfp | --nfp | --nf)
1123    # Obsolete; use --without-fp.
1124    with_fp=no ;;
1125
1126  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127  | --no-cr | --no-c | -n)
1128    no_create=yes ;;
1129
1130  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132    no_recursion=yes ;;
1133
1134  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136  | --oldin | --oldi | --old | --ol | --o)
1137    ac_prev=oldincludedir ;;
1138  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141    oldincludedir=$ac_optarg ;;
1142
1143  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144    ac_prev=prefix ;;
1145  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146    prefix=$ac_optarg ;;
1147
1148  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149  | --program-pre | --program-pr | --program-p)
1150    ac_prev=program_prefix ;;
1151  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153    program_prefix=$ac_optarg ;;
1154
1155  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156  | --program-suf | --program-su | --program-s)
1157    ac_prev=program_suffix ;;
1158  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160    program_suffix=$ac_optarg ;;
1161
1162  -program-transform-name | --program-transform-name \
1163  | --program-transform-nam | --program-transform-na \
1164  | --program-transform-n | --program-transform- \
1165  | --program-transform | --program-transfor \
1166  | --program-transfo | --program-transf \
1167  | --program-trans | --program-tran \
1168  | --progr-tra | --program-tr | --program-t)
1169    ac_prev=program_transform_name ;;
1170  -program-transform-name=* | --program-transform-name=* \
1171  | --program-transform-nam=* | --program-transform-na=* \
1172  | --program-transform-n=* | --program-transform-=* \
1173  | --program-transform=* | --program-transfor=* \
1174  | --program-transfo=* | --program-transf=* \
1175  | --program-trans=* | --program-tran=* \
1176  | --progr-tra=* | --program-tr=* | --program-t=*)
1177    program_transform_name=$ac_optarg ;;
1178
1179  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180    ac_prev=pdfdir ;;
1181  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182    pdfdir=$ac_optarg ;;
1183
1184  -psdir | --psdir | --psdi | --psd | --ps)
1185    ac_prev=psdir ;;
1186  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187    psdir=$ac_optarg ;;
1188
1189  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190  | -silent | --silent | --silen | --sile | --sil)
1191    silent=yes ;;
1192
1193  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194    ac_prev=sbindir ;;
1195  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196  | --sbi=* | --sb=*)
1197    sbindir=$ac_optarg ;;
1198
1199  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201  | --sharedst | --shareds | --shared | --share | --shar \
1202  | --sha | --sh)
1203    ac_prev=sharedstatedir ;;
1204  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207  | --sha=* | --sh=*)
1208    sharedstatedir=$ac_optarg ;;
1209
1210  -site | --site | --sit)
1211    ac_prev=site ;;
1212  -site=* | --site=* | --sit=*)
1213    site=$ac_optarg ;;
1214
1215  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216    ac_prev=srcdir ;;
1217  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218    srcdir=$ac_optarg ;;
1219
1220  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221  | --syscon | --sysco | --sysc | --sys | --sy)
1222    ac_prev=sysconfdir ;;
1223  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225    sysconfdir=$ac_optarg ;;
1226
1227  -target | --target | --targe | --targ | --tar | --ta | --t)
1228    ac_prev=target_alias ;;
1229  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230    target_alias=$ac_optarg ;;
1231
1232  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233    verbose=yes ;;
1234
1235  -version | --version | --versio | --versi | --vers | -V)
1236    ac_init_version=: ;;
1237
1238  -with-* | --with-*)
1239    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240    # Reject names that are not valid shell variable names.
1241    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242      as_fn_error $? "invalid package name: $ac_useropt"
1243    ac_useropt_orig=$ac_useropt
1244    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245    case $ac_user_opts in
1246      *"
1247"with_$ac_useropt"
1248"*) ;;
1249      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250	 ac_unrecognized_sep=', ';;
1251    esac
1252    eval with_$ac_useropt=\$ac_optarg ;;
1253
1254  -without-* | --without-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error $? "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=no ;;
1269
1270  --x)
1271    # Obsolete; use --with-x.
1272    with_x=yes ;;
1273
1274  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275  | --x-incl | --x-inc | --x-in | --x-i)
1276    ac_prev=x_includes ;;
1277  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279    x_includes=$ac_optarg ;;
1280
1281  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283    ac_prev=x_libraries ;;
1284  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286    x_libraries=$ac_optarg ;;
1287
1288  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289Try \`$0 --help' for more information"
1290    ;;
1291
1292  *=*)
1293    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294    # Reject names that are not valid shell variable names.
1295    case $ac_envvar in #(
1296      '' | [0-9]* | *[!_$as_cr_alnum]* )
1297      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298    esac
1299    eval $ac_envvar=\$ac_optarg
1300    export $ac_envvar ;;
1301
1302  *)
1303    # FIXME: should be removed in autoconf 3.0.
1304    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308    ;;
1309
1310  esac
1311done
1312
1313if test -n "$ac_prev"; then
1314  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315  as_fn_error $? "missing argument to $ac_option"
1316fi
1317
1318if test -n "$ac_unrecognized_opts"; then
1319  case $enable_option_checking in
1320    no) ;;
1321    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323  esac
1324fi
1325
1326# Check all directory arguments for consistency.
1327for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328		datadir sysconfdir sharedstatedir localstatedir includedir \
1329		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330		libdir localedir mandir
1331do
1332  eval ac_val=\$$ac_var
1333  # Remove trailing slashes.
1334  case $ac_val in
1335    */ )
1336      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337      eval $ac_var=\$ac_val;;
1338  esac
1339  # Be sure to have absolute directory names.
1340  case $ac_val in
1341    [\\/$]* | ?:[\\/]* )  continue;;
1342    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343  esac
1344  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345done
1346
1347# There might be people who depend on the old broken behavior: `$host'
1348# used to hold the argument of --host etc.
1349# FIXME: To remove some day.
1350build=$build_alias
1351host=$host_alias
1352target=$target_alias
1353
1354# FIXME: To remove some day.
1355if test "x$host_alias" != x; then
1356  if test "x$build_alias" = x; then
1357    cross_compiling=maybe
1358  elif test "x$build_alias" != "x$host_alias"; then
1359    cross_compiling=yes
1360  fi
1361fi
1362
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
1367
1368
1369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372  as_fn_error $? "working directory cannot be determined"
1373test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374  as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379  ac_srcdir_defaulted=yes
1380  # Try the directory containing this script, then the parent directory.
1381  ac_confdir=`$as_dirname -- "$as_myself" ||
1382$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383	 X"$as_myself" : 'X\(//\)[^/]' \| \
1384	 X"$as_myself" : 'X\(//\)$' \| \
1385	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386$as_echo X"$as_myself" |
1387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388	    s//\1/
1389	    q
1390	  }
1391	  /^X\(\/\/\)[^/].*/{
1392	    s//\1/
1393	    q
1394	  }
1395	  /^X\(\/\/\)$/{
1396	    s//\1/
1397	    q
1398	  }
1399	  /^X\(\/\).*/{
1400	    s//\1/
1401	    q
1402	  }
1403	  s/.*/./; q'`
1404  srcdir=$ac_confdir
1405  if test ! -r "$srcdir/$ac_unique_file"; then
1406    srcdir=..
1407  fi
1408else
1409  ac_srcdir_defaulted=no
1410fi
1411if test ! -r "$srcdir/$ac_unique_file"; then
1412  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414fi
1415ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416ac_abs_confdir=`(
1417	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418	pwd)`
1419# When building in place, set srcdir=.
1420if test "$ac_abs_confdir" = "$ac_pwd"; then
1421  srcdir=.
1422fi
1423# Remove unnecessary trailing slashes from srcdir.
1424# Double slashes in file names in object file debugging info
1425# mess up M-x gdb in Emacs.
1426case $srcdir in
1427*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428esac
1429for ac_var in $ac_precious_vars; do
1430  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431  eval ac_env_${ac_var}_value=\$${ac_var}
1432  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434done
1435
1436#
1437# Report the --help message.
1438#
1439if test "$ac_init_help" = "long"; then
1440  # Omit some internal or obsolete options to make the list less imposing.
1441  # This message is too long to be a string in the A/UX 3.1 sh.
1442  cat <<_ACEOF
1443\`configure' configures libXtst 1.2.3 to adapt to many kinds of systems.
1444
1445Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448VAR=VALUE.  See below for descriptions of some of the useful variables.
1449
1450Defaults for the options are specified in brackets.
1451
1452Configuration:
1453  -h, --help              display this help and exit
1454      --help=short        display options specific to this package
1455      --help=recursive    display the short help of all the included packages
1456  -V, --version           display version information and exit
1457  -q, --quiet, --silent   do not print \`checking ...' messages
1458      --cache-file=FILE   cache test results in FILE [disabled]
1459  -C, --config-cache      alias for \`--cache-file=config.cache'
1460  -n, --no-create         do not create output files
1461      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1462
1463Installation directories:
1464  --prefix=PREFIX         install architecture-independent files in PREFIX
1465                          [$ac_default_prefix]
1466  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1467                          [PREFIX]
1468
1469By default, \`make install' will install all the files in
1470\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1471an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472for instance \`--prefix=\$HOME'.
1473
1474For better control, use the options below.
1475
1476Fine tuning of the installation directories:
1477  --bindir=DIR            user executables [EPREFIX/bin]
1478  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1479  --libexecdir=DIR        program executables [EPREFIX/libexec]
1480  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1481  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1482  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1483  --libdir=DIR            object code libraries [EPREFIX/lib]
1484  --includedir=DIR        C header files [PREFIX/include]
1485  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1486  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1487  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1488  --infodir=DIR           info documentation [DATAROOTDIR/info]
1489  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1490  --mandir=DIR            man documentation [DATAROOTDIR/man]
1491  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXtst]
1492  --htmldir=DIR           html documentation [DOCDIR]
1493  --dvidir=DIR            dvi documentation [DOCDIR]
1494  --pdfdir=DIR            pdf documentation [DOCDIR]
1495  --psdir=DIR             ps documentation [DOCDIR]
1496_ACEOF
1497
1498  cat <<\_ACEOF
1499
1500Program names:
1501  --program-prefix=PREFIX            prepend PREFIX to installed program names
1502  --program-suffix=SUFFIX            append SUFFIX to installed program names
1503  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1504
1505System types:
1506  --build=BUILD     configure for building on BUILD [guessed]
1507  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512  case $ac_init_help in
1513     short | recursive ) echo "Configuration of libXtst 1.2.3:";;
1514   esac
1515  cat <<\_ACEOF
1516
1517Optional Features:
1518  --disable-option-checking  ignore unrecognized --enable/--with options
1519  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521  --enable-silent-rules   less verbose build output (undo: "make V=1")
1522  --disable-silent-rules  verbose build output (undo: "make V=0")
1523  --enable-shared[=PKGS]  build shared libraries [default=yes]
1524  --enable-static[=PKGS]  build static libraries [default=yes]
1525  --enable-fast-install[=PKGS]
1526                          optimize for fast installation [default=yes]
1527  --enable-dependency-tracking
1528                          do not reject slow dependency extractors
1529  --disable-dependency-tracking
1530                          speeds up one-time build
1531  --disable-libtool-lock  avoid locking (might break parallel builds)
1532  --disable-selective-werror
1533                          Turn off selective compiler errors. (default:
1534                          enabled)
1535  --enable-strict-compilation
1536                          Enable all warnings from compiler and make them
1537                          errors (default: disabled)
1538  --enable-specs          Enable building the specs (default: yes)
1539  --enable-lint-library   Create lint library (default: disabled)
1540
1541Optional Packages:
1542  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1543  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1544  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1545                          both]
1546  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1547  --with-sysroot=DIR Search for dependent libraries within DIR
1548                        (or the compiler's sysroot if not specified).
1549  --with-xmlto            Use xmlto to regenerate documentation (default:
1550                          auto)
1551  --with-fop              Use fop to regenerate documentation (default: auto)
1552  --with-xsltproc         Use xsltproc for the transformation of XML documents
1553                          (default: auto)
1554  --with-lint             Use a lint-style source code checker (default:
1555                          disabled)
1556
1557Some influential environment variables:
1558  CC          C compiler command
1559  CFLAGS      C compiler flags
1560  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561              nonstandard directory <lib dir>
1562  LIBS        libraries to pass to the linker, e.g. -l<library>
1563  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564              you have headers in a nonstandard directory <include dir>
1565  CPP         C preprocessor
1566  PKG_CONFIG  path to pkg-config utility
1567  PKG_CONFIG_PATH
1568              directories to add to pkg-config's search path
1569  PKG_CONFIG_LIBDIR
1570              path overriding pkg-config's built-in search path
1571  XMLTO       Path to xmlto command
1572  FOP         Path to fop command
1573  XSLTPROC    Path to xsltproc command
1574  XTST_CFLAGS C compiler flags for XTST, overriding pkg-config
1575  XTST_LIBS   linker flags for XTST, overriding pkg-config
1576  LINT        Path to a lint-style command
1577  LINT_FLAGS  Flags for the lint-style command
1578
1579Use these variables to override the choices made by `configure' or to help
1580it to find libraries and programs with nonstandard names/locations.
1581
1582Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1583_ACEOF
1584ac_status=$?
1585fi
1586
1587if test "$ac_init_help" = "recursive"; then
1588  # If there are subdirs, report their specific --help.
1589  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590    test -d "$ac_dir" ||
1591      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592      continue
1593    ac_builddir=.
1594
1595case "$ac_dir" in
1596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597*)
1598  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599  # A ".." for each directory in $ac_dir_suffix.
1600  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601  case $ac_top_builddir_sub in
1602  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604  esac ;;
1605esac
1606ac_abs_top_builddir=$ac_pwd
1607ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608# for backward compatibility:
1609ac_top_builddir=$ac_top_build_prefix
1610
1611case $srcdir in
1612  .)  # We are building in place.
1613    ac_srcdir=.
1614    ac_top_srcdir=$ac_top_builddir_sub
1615    ac_abs_top_srcdir=$ac_pwd ;;
1616  [\\/]* | ?:[\\/]* )  # Absolute name.
1617    ac_srcdir=$srcdir$ac_dir_suffix;
1618    ac_top_srcdir=$srcdir
1619    ac_abs_top_srcdir=$srcdir ;;
1620  *) # Relative name.
1621    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622    ac_top_srcdir=$ac_top_build_prefix$srcdir
1623    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1624esac
1625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1626
1627    cd "$ac_dir" || { ac_status=$?; continue; }
1628    # Check for guested configure.
1629    if test -f "$ac_srcdir/configure.gnu"; then
1630      echo &&
1631      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632    elif test -f "$ac_srcdir/configure"; then
1633      echo &&
1634      $SHELL "$ac_srcdir/configure" --help=recursive
1635    else
1636      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637    fi || ac_status=$?
1638    cd "$ac_pwd" || { ac_status=$?; break; }
1639  done
1640fi
1641
1642test -n "$ac_init_help" && exit $ac_status
1643if $ac_init_version; then
1644  cat <<\_ACEOF
1645libXtst configure 1.2.3
1646generated by GNU Autoconf 2.69
1647
1648Copyright (C) 2012 Free Software Foundation, Inc.
1649This configure script is free software; the Free Software Foundation
1650gives unlimited permission to copy, distribute and modify it.
1651_ACEOF
1652  exit
1653fi
1654
1655## ------------------------ ##
1656## Autoconf initialization. ##
1657## ------------------------ ##
1658
1659# ac_fn_c_try_compile LINENO
1660# --------------------------
1661# Try to compile conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_compile ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  rm -f conftest.$ac_objext
1666  if { { ac_try="$ac_compile"
1667case "(($ac_try" in
1668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669  *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673  (eval "$ac_compile") 2>conftest.err
1674  ac_status=$?
1675  if test -s conftest.err; then
1676    grep -v '^ *+' conftest.err >conftest.er1
1677    cat conftest.er1 >&5
1678    mv -f conftest.er1 conftest.err
1679  fi
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; } && {
1682	 test -z "$ac_c_werror_flag" ||
1683	 test ! -s conftest.err
1684       } && test -s conftest.$ac_objext; then :
1685  ac_retval=0
1686else
1687  $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690	ac_retval=1
1691fi
1692  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693  as_fn_set_status $ac_retval
1694
1695} # ac_fn_c_try_compile
1696
1697# ac_fn_c_try_link LINENO
1698# -----------------------
1699# Try to link conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_link ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  rm -f conftest.$ac_objext conftest$ac_exeext
1704  if { { ac_try="$ac_link"
1705case "(($ac_try" in
1706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707  *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711  (eval "$ac_link") 2>conftest.err
1712  ac_status=$?
1713  if test -s conftest.err; then
1714    grep -v '^ *+' conftest.err >conftest.er1
1715    cat conftest.er1 >&5
1716    mv -f conftest.er1 conftest.err
1717  fi
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } && {
1720	 test -z "$ac_c_werror_flag" ||
1721	 test ! -s conftest.err
1722       } && test -s conftest$ac_exeext && {
1723	 test "$cross_compiling" = yes ||
1724	 test -x conftest$ac_exeext
1725       }; then :
1726  ac_retval=0
1727else
1728  $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731	ac_retval=1
1732fi
1733  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1734  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1735  # interfere with the next link command; also delete a directory that is
1736  # left behind by Apple's compiler.  We do this before executing the actions.
1737  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739  as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_link
1742
1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists and can be compiled using the include files in
1746# INCLUDES, setting the cache variable VAR accordingly.
1747ac_fn_c_check_header_compile ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761  eval "$3=yes"
1762else
1763  eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772} # ac_fn_c_check_header_compile
1773
1774# ac_fn_c_try_cpp LINENO
1775# ----------------------
1776# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1777ac_fn_c_try_cpp ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  if { { ac_try="$ac_cpp conftest.$ac_ext"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1788  ac_status=$?
1789  if test -s conftest.err; then
1790    grep -v '^ *+' conftest.err >conftest.er1
1791    cat conftest.er1 >&5
1792    mv -f conftest.er1 conftest.err
1793  fi
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; } > conftest.i && {
1796	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1797	 test ! -s conftest.err
1798       }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804    ac_retval=1
1805fi
1806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807  as_fn_set_status $ac_retval
1808
1809} # ac_fn_c_try_cpp
1810
1811# ac_fn_c_try_run LINENO
1812# ----------------------
1813# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814# that executables *can* be run.
1815ac_fn_c_try_run ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  if { { ac_try="$ac_link"
1819case "(($ac_try" in
1820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821  *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825  (eval "$ac_link") 2>&5
1826  ac_status=$?
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829  { { case "(($ac_try" in
1830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831  *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835  (eval "$ac_try") 2>&5
1836  ac_status=$?
1837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838  test $ac_status = 0; }; }; then :
1839  ac_retval=0
1840else
1841  $as_echo "$as_me: program exited with status $ac_status" >&5
1842       $as_echo "$as_me: failed program was:" >&5
1843sed 's/^/| /' conftest.$ac_ext >&5
1844
1845       ac_retval=$ac_status
1846fi
1847  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849  as_fn_set_status $ac_retval
1850
1851} # ac_fn_c_try_run
1852
1853# ac_fn_c_check_func LINENO FUNC VAR
1854# ----------------------------------
1855# Tests whether FUNC exists, setting the cache variable VAR accordingly
1856ac_fn_c_check_func ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860$as_echo_n "checking for $2... " >&6; }
1861if eval \${$3+:} false; then :
1862  $as_echo_n "(cached) " >&6
1863else
1864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1868#define $2 innocuous_$2
1869
1870/* System header to define __stub macros and hopefully few prototypes,
1871    which can conflict with char $2 (); below.
1872    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873    <limits.h> exists even on freestanding compilers.  */
1874
1875#ifdef __STDC__
1876# include <limits.h>
1877#else
1878# include <assert.h>
1879#endif
1880
1881#undef $2
1882
1883/* Override any GCC internal prototype to avoid an error.
1884   Use char because int might match the return type of a GCC
1885   builtin and then its argument prototype would still apply.  */
1886#ifdef __cplusplus
1887extern "C"
1888#endif
1889char $2 ();
1890/* The GNU C library defines this for functions which it implements
1891    to always fail with ENOSYS.  Some functions are actually named
1892    something starting with __ and the normal name is an alias.  */
1893#if defined __stub_$2 || defined __stub___$2
1894choke me
1895#endif
1896
1897int
1898main ()
1899{
1900return $2 ();
1901  ;
1902  return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_link "$LINENO"; then :
1906  eval "$3=yes"
1907else
1908  eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext \
1911    conftest$ac_exeext conftest.$ac_ext
1912fi
1913eval ac_res=\$$3
1914	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_func
1919
1920# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1921# ---------------------------------------------
1922# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1923# accordingly.
1924ac_fn_c_check_decl ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  as_decl_name=`echo $2|sed 's/ *(.*//'`
1928  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1930$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1931if eval \${$3+:} false; then :
1932  $as_echo_n "(cached) " >&6
1933else
1934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$4
1937int
1938main ()
1939{
1940#ifndef $as_decl_name
1941#ifdef __cplusplus
1942  (void) $as_decl_use;
1943#else
1944  (void) $as_decl_name;
1945#endif
1946#endif
1947
1948  ;
1949  return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953  eval "$3=yes"
1954else
1955  eval "$3=no"
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958fi
1959eval ac_res=\$$3
1960	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964} # ac_fn_c_check_decl
1965cat >config.log <<_ACEOF
1966This file contains any messages produced by compilers while
1967running configure, to aid debugging if configure makes a mistake.
1968
1969It was created by libXtst $as_me 1.2.3, which was
1970generated by GNU Autoconf 2.69.  Invocation command line was
1971
1972  $ $0 $@
1973
1974_ACEOF
1975exec 5>>config.log
1976{
1977cat <<_ASUNAME
1978## --------- ##
1979## Platform. ##
1980## --------- ##
1981
1982hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1983uname -m = `(uname -m) 2>/dev/null || echo unknown`
1984uname -r = `(uname -r) 2>/dev/null || echo unknown`
1985uname -s = `(uname -s) 2>/dev/null || echo unknown`
1986uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987
1988/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1989/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1990
1991/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1992/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1993/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1994/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1995/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1996/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1997/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1998
1999_ASUNAME
2000
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004  IFS=$as_save_IFS
2005  test -z "$as_dir" && as_dir=.
2006    $as_echo "PATH: $as_dir"
2007  done
2008IFS=$as_save_IFS
2009
2010} >&5
2011
2012cat >&5 <<_ACEOF
2013
2014
2015## ----------- ##
2016## Core tests. ##
2017## ----------- ##
2018
2019_ACEOF
2020
2021
2022# Keep a trace of the command line.
2023# Strip out --no-create and --no-recursion so they do not pile up.
2024# Strip out --silent because we don't want to record it for future runs.
2025# Also quote any args containing shell meta-characters.
2026# Make two passes to allow for proper duplicate-argument suppression.
2027ac_configure_args=
2028ac_configure_args0=
2029ac_configure_args1=
2030ac_must_keep_next=false
2031for ac_pass in 1 2
2032do
2033  for ac_arg
2034  do
2035    case $ac_arg in
2036    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038    | -silent | --silent | --silen | --sile | --sil)
2039      continue ;;
2040    *\'*)
2041      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042    esac
2043    case $ac_pass in
2044    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045    2)
2046      as_fn_append ac_configure_args1 " '$ac_arg'"
2047      if test $ac_must_keep_next = true; then
2048	ac_must_keep_next=false # Got value, back to normal.
2049      else
2050	case $ac_arg in
2051	  *=* | --config-cache | -C | -disable-* | --disable-* \
2052	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054	  | -with-* | --with-* | -without-* | --without-* | --x)
2055	    case "$ac_configure_args0 " in
2056	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057	    esac
2058	    ;;
2059	  -* ) ac_must_keep_next=true ;;
2060	esac
2061      fi
2062      as_fn_append ac_configure_args " '$ac_arg'"
2063      ;;
2064    esac
2065  done
2066done
2067{ ac_configure_args0=; unset ac_configure_args0;}
2068{ ac_configure_args1=; unset ac_configure_args1;}
2069
2070# When interrupted or exit'd, cleanup temporary files, and complete
2071# config.log.  We remove comments because anyway the quotes in there
2072# would cause problems or look ugly.
2073# WARNING: Use '\'' to represent an apostrophe within the trap.
2074# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075trap 'exit_status=$?
2076  # Save into config.log some information that might help in debugging.
2077  {
2078    echo
2079
2080    $as_echo "## ---------------- ##
2081## Cache variables. ##
2082## ---------------- ##"
2083    echo
2084    # The following way of writing the cache mishandles newlines in values,
2085(
2086  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087    eval ac_val=\$$ac_var
2088    case $ac_val in #(
2089    *${as_nl}*)
2090      case $ac_var in #(
2091      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093      esac
2094      case $ac_var in #(
2095      _ | IFS | as_nl) ;; #(
2096      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097      *) { eval $ac_var=; unset $ac_var;} ;;
2098      esac ;;
2099    esac
2100  done
2101  (set) 2>&1 |
2102    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103    *${as_nl}ac_space=\ *)
2104      sed -n \
2105	"s/'\''/'\''\\\\'\'''\''/g;
2106	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107      ;; #(
2108    *)
2109      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2110      ;;
2111    esac |
2112    sort
2113)
2114    echo
2115
2116    $as_echo "## ----------------- ##
2117## Output variables. ##
2118## ----------------- ##"
2119    echo
2120    for ac_var in $ac_subst_vars
2121    do
2122      eval ac_val=\$$ac_var
2123      case $ac_val in
2124      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125      esac
2126      $as_echo "$ac_var='\''$ac_val'\''"
2127    done | sort
2128    echo
2129
2130    if test -n "$ac_subst_files"; then
2131      $as_echo "## ------------------- ##
2132## File substitutions. ##
2133## ------------------- ##"
2134      echo
2135      for ac_var in $ac_subst_files
2136      do
2137	eval ac_val=\$$ac_var
2138	case $ac_val in
2139	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140	esac
2141	$as_echo "$ac_var='\''$ac_val'\''"
2142      done | sort
2143      echo
2144    fi
2145
2146    if test -s confdefs.h; then
2147      $as_echo "## ----------- ##
2148## confdefs.h. ##
2149## ----------- ##"
2150      echo
2151      cat confdefs.h
2152      echo
2153    fi
2154    test "$ac_signal" != 0 &&
2155      $as_echo "$as_me: caught signal $ac_signal"
2156    $as_echo "$as_me: exit $exit_status"
2157  } >&5
2158  rm -f core *.core core.conftest.* &&
2159    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160    exit $exit_status
2161' 0
2162for ac_signal in 1 2 13 15; do
2163  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2164done
2165ac_signal=0
2166
2167# confdefs.h avoids OS command line length limits that DEFS can exceed.
2168rm -f -r conftest* confdefs.h
2169
2170$as_echo "/* confdefs.h */" > confdefs.h
2171
2172# Predefined preprocessor variables.
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_NAME "$PACKAGE_NAME"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_VERSION "$PACKAGE_VERSION"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_STRING "$PACKAGE_STRING"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_URL "$PACKAGE_URL"
2196_ACEOF
2197
2198
2199# Let the site file select an alternate cache file if it wants to.
2200# Prefer an explicitly selected file to automatically selected ones.
2201ac_site_file1=NONE
2202ac_site_file2=NONE
2203if test -n "$CONFIG_SITE"; then
2204  # We do not want a PATH search for config.site.
2205  case $CONFIG_SITE in #((
2206    -*)  ac_site_file1=./$CONFIG_SITE;;
2207    */*) ac_site_file1=$CONFIG_SITE;;
2208    *)   ac_site_file1=./$CONFIG_SITE;;
2209  esac
2210elif test "x$prefix" != xNONE; then
2211  ac_site_file1=$prefix/share/config.site
2212  ac_site_file2=$prefix/etc/config.site
2213else
2214  ac_site_file1=$ac_default_prefix/share/config.site
2215  ac_site_file2=$ac_default_prefix/etc/config.site
2216fi
2217for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2218do
2219  test "x$ac_site_file" = xNONE && continue
2220  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223    sed 's/^/| /' "$ac_site_file" >&5
2224    . "$ac_site_file" \
2225      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227as_fn_error $? "failed to load site script $ac_site_file
2228See \`config.log' for more details" "$LINENO" 5; }
2229  fi
2230done
2231
2232if test -r "$cache_file"; then
2233  # Some versions of bash will fail to source /dev/null (special files
2234  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2235  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2236    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237$as_echo "$as_me: loading cache $cache_file" >&6;}
2238    case $cache_file in
2239      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240      *)                      . "./$cache_file";;
2241    esac
2242  fi
2243else
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245$as_echo "$as_me: creating cache $cache_file" >&6;}
2246  >$cache_file
2247fi
2248
2249# Check that the precious variables saved in the cache have kept the same
2250# value.
2251ac_cache_corrupted=false
2252for ac_var in $ac_precious_vars; do
2253  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2254  eval ac_new_set=\$ac_env_${ac_var}_set
2255  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2256  eval ac_new_val=\$ac_env_${ac_var}_value
2257  case $ac_old_set,$ac_new_set in
2258    set,)
2259      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2261      ac_cache_corrupted=: ;;
2262    ,set)
2263      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2265      ac_cache_corrupted=: ;;
2266    ,);;
2267    *)
2268      if test "x$ac_old_val" != "x$ac_new_val"; then
2269	# differences in whitespace do not lead to failure.
2270	ac_old_val_w=`echo x $ac_old_val`
2271	ac_new_val_w=`echo x $ac_new_val`
2272	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275	  ac_cache_corrupted=:
2276	else
2277	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279	  eval $ac_var=\$ac_old_val
2280	fi
2281	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2282$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2283	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2284$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2285      fi;;
2286  esac
2287  # Pass precious variables to config.status.
2288  if test "$ac_new_set" = set; then
2289    case $ac_new_val in
2290    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2291    *) ac_arg=$ac_var=$ac_new_val ;;
2292    esac
2293    case " $ac_configure_args " in
2294      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2295      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2296    esac
2297  fi
2298done
2299if $ac_cache_corrupted; then
2300  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2304  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2305fi
2306## -------------------- ##
2307## Main body of script. ##
2308## -------------------- ##
2309
2310ac_ext=c
2311ac_cpp='$CPP $CPPFLAGS'
2312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
2316
2317
2318ac_config_headers="$ac_config_headers config.h"
2319
2320
2321# Initialize Automake
2322am__api_version='1.14'
2323
2324ac_aux_dir=
2325for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2326  if test -f "$ac_dir/install-sh"; then
2327    ac_aux_dir=$ac_dir
2328    ac_install_sh="$ac_aux_dir/install-sh -c"
2329    break
2330  elif test -f "$ac_dir/install.sh"; then
2331    ac_aux_dir=$ac_dir
2332    ac_install_sh="$ac_aux_dir/install.sh -c"
2333    break
2334  elif test -f "$ac_dir/shtool"; then
2335    ac_aux_dir=$ac_dir
2336    ac_install_sh="$ac_aux_dir/shtool install -c"
2337    break
2338  fi
2339done
2340if test -z "$ac_aux_dir"; then
2341  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2342fi
2343
2344# These three variables are undocumented and unsupported,
2345# and are intended to be withdrawn in a future Autoconf release.
2346# They can cause serious problems if a builder's source tree is in a directory
2347# whose full name contains unusual characters.
2348ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2349ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2350ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2351
2352
2353# Find a good install program.  We prefer a C program (faster),
2354# so one script is as good as another.  But avoid the broken or
2355# incompatible versions:
2356# SysV /etc/install, /usr/sbin/install
2357# SunOS /usr/etc/install
2358# IRIX /sbin/install
2359# AIX /bin/install
2360# AmigaOS /C/install, which installs bootblocks on floppy discs
2361# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2362# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2363# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2364# OS/2's system install, which has a completely different semantic
2365# ./install, which can be erroneously created by make from ./install.sh.
2366# Reject install programs that cannot install multiple files.
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2368$as_echo_n "checking for a BSD-compatible install... " >&6; }
2369if test -z "$INSTALL"; then
2370if ${ac_cv_path_install+:} false; then :
2371  $as_echo_n "(cached) " >&6
2372else
2373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376  IFS=$as_save_IFS
2377  test -z "$as_dir" && as_dir=.
2378    # Account for people who put trailing slashes in PATH elements.
2379case $as_dir/ in #((
2380  ./ | .// | /[cC]/* | \
2381  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2382  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2383  /usr/ucb/* ) ;;
2384  *)
2385    # OSF1 and SCO ODT 3.0 have their own names for install.
2386    # Don't use installbsd from OSF since it installs stuff as root
2387    # by default.
2388    for ac_prog in ginstall scoinst install; do
2389      for ac_exec_ext in '' $ac_executable_extensions; do
2390	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2391	  if test $ac_prog = install &&
2392	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393	    # AIX install.  It has an incompatible calling convention.
2394	    :
2395	  elif test $ac_prog = install &&
2396	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397	    # program-specific install script used by HP pwplus--don't use.
2398	    :
2399	  else
2400	    rm -rf conftest.one conftest.two conftest.dir
2401	    echo one > conftest.one
2402	    echo two > conftest.two
2403	    mkdir conftest.dir
2404	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2405	      test -s conftest.one && test -s conftest.two &&
2406	      test -s conftest.dir/conftest.one &&
2407	      test -s conftest.dir/conftest.two
2408	    then
2409	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2410	      break 3
2411	    fi
2412	  fi
2413	fi
2414      done
2415    done
2416    ;;
2417esac
2418
2419  done
2420IFS=$as_save_IFS
2421
2422rm -rf conftest.one conftest.two conftest.dir
2423
2424fi
2425  if test "${ac_cv_path_install+set}" = set; then
2426    INSTALL=$ac_cv_path_install
2427  else
2428    # As a last resort, use the slow shell script.  Don't cache a
2429    # value for INSTALL within a source directory, because that will
2430    # break other packages using the cache if that directory is
2431    # removed, or if the value is a relative name.
2432    INSTALL=$ac_install_sh
2433  fi
2434fi
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2436$as_echo "$INSTALL" >&6; }
2437
2438# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2439# It thinks the first close brace ends the variable substitution.
2440test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2441
2442test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2443
2444test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2445
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2447$as_echo_n "checking whether build environment is sane... " >&6; }
2448# Reject unsafe characters in $srcdir or the absolute working directory
2449# name.  Accept space and tab only in the latter.
2450am_lf='
2451'
2452case `pwd` in
2453  *[\\\"\#\$\&\'\`$am_lf]*)
2454    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2455esac
2456case $srcdir in
2457  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2458    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2459esac
2460
2461# Do 'set' in a subshell so we don't clobber the current shell's
2462# arguments.  Must try -L first in case configure is actually a
2463# symlink; some systems play weird games with the mod time of symlinks
2464# (eg FreeBSD returns the mod time of the symlink's containing
2465# directory).
2466if (
2467   am_has_slept=no
2468   for am_try in 1 2; do
2469     echo "timestamp, slept: $am_has_slept" > conftest.file
2470     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2471     if test "$*" = "X"; then
2472	# -L didn't work.
2473	set X `ls -t "$srcdir/configure" conftest.file`
2474     fi
2475     if test "$*" != "X $srcdir/configure conftest.file" \
2476	&& test "$*" != "X conftest.file $srcdir/configure"; then
2477
2478	# If neither matched, then we have a broken ls.  This can happen
2479	# if, for instance, CONFIG_SHELL is bash and it inherits a
2480	# broken ls alias from the environment.  This has actually
2481	# happened.  Such a system could not be considered "sane".
2482	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2483  alias in your environment" "$LINENO" 5
2484     fi
2485     if test "$2" = conftest.file || test $am_try -eq 2; then
2486       break
2487     fi
2488     # Just in case.
2489     sleep 1
2490     am_has_slept=yes
2491   done
2492   test "$2" = conftest.file
2493   )
2494then
2495   # Ok.
2496   :
2497else
2498   as_fn_error $? "newly created file is older than distributed files!
2499Check your system clock" "$LINENO" 5
2500fi
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2502$as_echo "yes" >&6; }
2503# If we didn't sleep, we still need to ensure time stamps of config.status and
2504# generated files are strictly newer.
2505am_sleep_pid=
2506if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2507  ( sleep 1 ) &
2508  am_sleep_pid=$!
2509fi
2510
2511rm -f conftest.file
2512
2513test "$program_prefix" != NONE &&
2514  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2515# Use a double $ so make ignores it.
2516test "$program_suffix" != NONE &&
2517  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2518# Double any \ or $.
2519# By default was `s,x,x', remove it if useless.
2520ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2521program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2522
2523# expand $ac_aux_dir to an absolute path
2524am_aux_dir=`cd $ac_aux_dir && pwd`
2525
2526if test x"${MISSING+set}" != xset; then
2527  case $am_aux_dir in
2528  *\ * | *\	*)
2529    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2530  *)
2531    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2532  esac
2533fi
2534# Use eval to expand $SHELL
2535if eval "$MISSING --is-lightweight"; then
2536  am_missing_run="$MISSING "
2537else
2538  am_missing_run=
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2540$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2541fi
2542
2543if test x"${install_sh}" != xset; then
2544  case $am_aux_dir in
2545  *\ * | *\	*)
2546    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2547  *)
2548    install_sh="\${SHELL} $am_aux_dir/install-sh"
2549  esac
2550fi
2551
2552# Installed binaries are usually stripped using 'strip' when the user
2553# run "make install-strip".  However 'strip' might not be the right
2554# tool to use in cross-compilation environments, therefore Automake
2555# will honor the 'STRIP' environment variable to overrule this program.
2556if test "$cross_compiling" != no; then
2557  if test -n "$ac_tool_prefix"; then
2558  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2559set dummy ${ac_tool_prefix}strip; ac_word=$2
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if ${ac_cv_prog_STRIP+:} false; then :
2563  $as_echo_n "(cached) " >&6
2564else
2565  if test -n "$STRIP"; then
2566  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573    for ac_exec_ext in '' $ac_executable_extensions; do
2574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577    break 2
2578  fi
2579done
2580  done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585STRIP=$ac_cv_prog_STRIP
2586if test -n "$STRIP"; then
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2588$as_echo "$STRIP" >&6; }
2589else
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594
2595fi
2596if test -z "$ac_cv_prog_STRIP"; then
2597  ac_ct_STRIP=$STRIP
2598  # Extract the first word of "strip", so it can be a program name with args.
2599set dummy strip; ac_word=$2
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601$as_echo_n "checking for $ac_word... " >&6; }
2602if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2603  $as_echo_n "(cached) " >&6
2604else
2605  if test -n "$ac_ct_STRIP"; then
2606  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611  IFS=$as_save_IFS
2612  test -z "$as_dir" && as_dir=.
2613    for ac_exec_ext in '' $ac_executable_extensions; do
2614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615    ac_cv_prog_ac_ct_STRIP="strip"
2616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617    break 2
2618  fi
2619done
2620  done
2621IFS=$as_save_IFS
2622
2623fi
2624fi
2625ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2626if test -n "$ac_ct_STRIP"; then
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2628$as_echo "$ac_ct_STRIP" >&6; }
2629else
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631$as_echo "no" >&6; }
2632fi
2633
2634  if test "x$ac_ct_STRIP" = x; then
2635    STRIP=":"
2636  else
2637    case $cross_compiling:$ac_tool_warned in
2638yes:)
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641ac_tool_warned=yes ;;
2642esac
2643    STRIP=$ac_ct_STRIP
2644  fi
2645else
2646  STRIP="$ac_cv_prog_STRIP"
2647fi
2648
2649fi
2650INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2651
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2653$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2654if test -z "$MKDIR_P"; then
2655  if ${ac_cv_path_mkdir+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2660do
2661  IFS=$as_save_IFS
2662  test -z "$as_dir" && as_dir=.
2663    for ac_prog in mkdir gmkdir; do
2664	 for ac_exec_ext in '' $ac_executable_extensions; do
2665	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2666	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2667	     'mkdir (GNU coreutils) '* | \
2668	     'mkdir (coreutils) '* | \
2669	     'mkdir (fileutils) '4.1*)
2670	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2671	       break 3;;
2672	   esac
2673	 done
2674       done
2675  done
2676IFS=$as_save_IFS
2677
2678fi
2679
2680  test -d ./--version && rmdir ./--version
2681  if test "${ac_cv_path_mkdir+set}" = set; then
2682    MKDIR_P="$ac_cv_path_mkdir -p"
2683  else
2684    # As a last resort, use the slow shell script.  Don't cache a
2685    # value for MKDIR_P within a source directory, because that will
2686    # break other packages using the cache if that directory is
2687    # removed, or if the value is a relative name.
2688    MKDIR_P="$ac_install_sh -d"
2689  fi
2690fi
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2692$as_echo "$MKDIR_P" >&6; }
2693
2694for ac_prog in gawk mawk nawk awk
2695do
2696  # Extract the first word of "$ac_prog", so it can be a program name with args.
2697set dummy $ac_prog; ac_word=$2
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699$as_echo_n "checking for $ac_word... " >&6; }
2700if ${ac_cv_prog_AWK+:} false; then :
2701  $as_echo_n "(cached) " >&6
2702else
2703  if test -n "$AWK"; then
2704  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2705else
2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707for as_dir in $PATH
2708do
2709  IFS=$as_save_IFS
2710  test -z "$as_dir" && as_dir=.
2711    for ac_exec_ext in '' $ac_executable_extensions; do
2712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713    ac_cv_prog_AWK="$ac_prog"
2714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715    break 2
2716  fi
2717done
2718  done
2719IFS=$as_save_IFS
2720
2721fi
2722fi
2723AWK=$ac_cv_prog_AWK
2724if test -n "$AWK"; then
2725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2726$as_echo "$AWK" >&6; }
2727else
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729$as_echo "no" >&6; }
2730fi
2731
2732
2733  test -n "$AWK" && break
2734done
2735
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2737$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2738set x ${MAKE-make}
2739ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2740if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2741  $as_echo_n "(cached) " >&6
2742else
2743  cat >conftest.make <<\_ACEOF
2744SHELL = /bin/sh
2745all:
2746	@echo '@@@%%%=$(MAKE)=@@@%%%'
2747_ACEOF
2748# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2749case `${MAKE-make} -f conftest.make 2>/dev/null` in
2750  *@@@%%%=?*=@@@%%%*)
2751    eval ac_cv_prog_make_${ac_make}_set=yes;;
2752  *)
2753    eval ac_cv_prog_make_${ac_make}_set=no;;
2754esac
2755rm -f conftest.make
2756fi
2757if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759$as_echo "yes" >&6; }
2760  SET_MAKE=
2761else
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763$as_echo "no" >&6; }
2764  SET_MAKE="MAKE=${MAKE-make}"
2765fi
2766
2767rm -rf .tst 2>/dev/null
2768mkdir .tst 2>/dev/null
2769if test -d .tst; then
2770  am__leading_dot=.
2771else
2772  am__leading_dot=_
2773fi
2774rmdir .tst 2>/dev/null
2775
2776# Check whether --enable-silent-rules was given.
2777if test "${enable_silent_rules+set}" = set; then :
2778  enableval=$enable_silent_rules;
2779fi
2780
2781case $enable_silent_rules in # (((
2782  yes) AM_DEFAULT_VERBOSITY=0;;
2783   no) AM_DEFAULT_VERBOSITY=1;;
2784    *) AM_DEFAULT_VERBOSITY=1;;
2785esac
2786am_make=${MAKE-make}
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2788$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2789if ${am_cv_make_support_nested_variables+:} false; then :
2790  $as_echo_n "(cached) " >&6
2791else
2792  if $as_echo 'TRUE=$(BAR$(V))
2793BAR0=false
2794BAR1=true
2795V=1
2796am__doit:
2797	@$(TRUE)
2798.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2799  am_cv_make_support_nested_variables=yes
2800else
2801  am_cv_make_support_nested_variables=no
2802fi
2803fi
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2805$as_echo "$am_cv_make_support_nested_variables" >&6; }
2806if test $am_cv_make_support_nested_variables = yes; then
2807    AM_V='$(V)'
2808  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2809else
2810  AM_V=$AM_DEFAULT_VERBOSITY
2811  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2812fi
2813AM_BACKSLASH='\'
2814
2815if test "`cd $srcdir && pwd`" != "`pwd`"; then
2816  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2817  # is not polluted with repeated "-I."
2818  am__isrc=' -I$(srcdir)'
2819  # test to see if srcdir already configured
2820  if test -f $srcdir/config.status; then
2821    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2822  fi
2823fi
2824
2825# test whether we have cygpath
2826if test -z "$CYGPATH_W"; then
2827  if (cygpath --version) >/dev/null 2>/dev/null; then
2828    CYGPATH_W='cygpath -w'
2829  else
2830    CYGPATH_W=echo
2831  fi
2832fi
2833
2834
2835# Define the identity of the package.
2836 PACKAGE='libXtst'
2837 VERSION='1.2.3'
2838
2839
2840cat >>confdefs.h <<_ACEOF
2841#define PACKAGE "$PACKAGE"
2842_ACEOF
2843
2844
2845cat >>confdefs.h <<_ACEOF
2846#define VERSION "$VERSION"
2847_ACEOF
2848
2849# Some tools Automake needs.
2850
2851ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
2862
2863MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864
2865# For better backward compatibility.  To be removed once Automake 1.9.x
2866# dies out for good.  For more background, see:
2867# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2868# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2869mkdir_p='$(MKDIR_P)'
2870
2871# We need awk for the "check" target.  The system "awk" is bad on
2872# some platforms.
2873# Always define AMTAR for backward compatibility.  Yes, it's still used
2874# in the wild :-(  We should find a proper way to deprecate it ...
2875AMTAR='$${TAR-tar}'
2876
2877
2878# We'll loop over all known methods to create a tar archive until one works.
2879_am_tools='gnutar  pax cpio none'
2880
2881am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2882
2883
2884
2885
2886
2887
2888# POSIX will say in a future version that running "rm -f" with no argument
2889# is OK; and we want to be able to make that assumption in our Makefile
2890# recipes.  So use an aggressive probe to check that the usage we want is
2891# actually supported "in the wild" to an acceptable degree.
2892# See automake bug#10828.
2893# To make any issue more visible, cause the running configure to be aborted
2894# by default if the 'rm' program in use doesn't match our expectations; the
2895# user can still override this though.
2896if rm -f && rm -fr && rm -rf; then : OK; else
2897  cat >&2 <<'END'
2898Oops!
2899
2900Your 'rm' program seems unable to run without file operands specified
2901on the command line, even when the '-f' option is present.  This is contrary
2902to the behaviour of most rm programs out there, and not conforming with
2903the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2904
2905Please tell bug-automake@gnu.org about your system, including the value
2906of your $PATH and any error possibly output before this message.  This
2907can help us improve future automake versions.
2908
2909END
2910  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2911    echo 'Configuration will proceed anyway, since you have set the' >&2
2912    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2913    echo >&2
2914  else
2915    cat >&2 <<'END'
2916Aborting the configuration process, to ensure you take notice of the issue.
2917
2918You can download and install GNU coreutils to get an 'rm' implementation
2919that behaves properly: <http://www.gnu.org/software/coreutils/>.
2920
2921If you want to complete the configuration process using your problematic
2922'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2923to "yes", and re-run configure.
2924
2925END
2926    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2927  fi
2928fi
2929
2930# Initialize libtool
2931case `pwd` in
2932  *\ * | *\	*)
2933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2934$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2935esac
2936
2937
2938
2939macro_version='2.4.2'
2940macro_revision='1.3337'
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954ltmain="$ac_aux_dir/ltmain.sh"
2955
2956# Make sure we can run config.sub.
2957$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2958  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2959
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2961$as_echo_n "checking build system type... " >&6; }
2962if ${ac_cv_build+:} false; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  ac_build_alias=$build_alias
2966test "x$ac_build_alias" = x &&
2967  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2968test "x$ac_build_alias" = x &&
2969  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2970ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2971  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2972
2973fi
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2975$as_echo "$ac_cv_build" >&6; }
2976case $ac_cv_build in
2977*-*-*) ;;
2978*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2979esac
2980build=$ac_cv_build
2981ac_save_IFS=$IFS; IFS='-'
2982set x $ac_cv_build
2983shift
2984build_cpu=$1
2985build_vendor=$2
2986shift; shift
2987# Remember, the first character of IFS is used to create $*,
2988# except with old shells:
2989build_os=$*
2990IFS=$ac_save_IFS
2991case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2992
2993
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2995$as_echo_n "checking host system type... " >&6; }
2996if ${ac_cv_host+:} false; then :
2997  $as_echo_n "(cached) " >&6
2998else
2999  if test "x$host_alias" = x; then
3000  ac_cv_host=$ac_cv_build
3001else
3002  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3003    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3004fi
3005
3006fi
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3008$as_echo "$ac_cv_host" >&6; }
3009case $ac_cv_host in
3010*-*-*) ;;
3011*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3012esac
3013host=$ac_cv_host
3014ac_save_IFS=$IFS; IFS='-'
3015set x $ac_cv_host
3016shift
3017host_cpu=$1
3018host_vendor=$2
3019shift; shift
3020# Remember, the first character of IFS is used to create $*,
3021# except with old shells:
3022host_os=$*
3023IFS=$ac_save_IFS
3024case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3025
3026
3027# Backslashify metacharacters that are still active within
3028# double-quoted strings.
3029sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3030
3031# Same as above, but do not quote variable references.
3032double_quote_subst='s/\(["`\\]\)/\\\1/g'
3033
3034# Sed substitution to delay expansion of an escaped shell variable in a
3035# double_quote_subst'ed string.
3036delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3037
3038# Sed substitution to delay expansion of an escaped single quote.
3039delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3040
3041# Sed substitution to avoid accidental globbing in evaled expressions
3042no_glob_subst='s/\*/\\\*/g'
3043
3044ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3045ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3046ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3047
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3049$as_echo_n "checking how to print strings... " >&6; }
3050# Test print first, because it will be a builtin if present.
3051if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3052   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3053  ECHO='print -r --'
3054elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3055  ECHO='printf %s\n'
3056else
3057  # Use this function as a fallback that always works.
3058  func_fallback_echo ()
3059  {
3060    eval 'cat <<_LTECHO_EOF
3061$1
3062_LTECHO_EOF'
3063  }
3064  ECHO='func_fallback_echo'
3065fi
3066
3067# func_echo_all arg...
3068# Invoke $ECHO with all args, space-separated.
3069func_echo_all ()
3070{
3071    $ECHO ""
3072}
3073
3074case "$ECHO" in
3075  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3076$as_echo "printf" >&6; } ;;
3077  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3078$as_echo "print -r" >&6; } ;;
3079  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3080$as_echo "cat" >&6; } ;;
3081esac
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096DEPDIR="${am__leading_dot}deps"
3097
3098ac_config_commands="$ac_config_commands depfiles"
3099
3100
3101am_make=${MAKE-make}
3102cat > confinc << 'END'
3103am__doit:
3104	@echo this is the am__doit target
3105.PHONY: am__doit
3106END
3107# If we don't find an include directive, just comment out the code.
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3109$as_echo_n "checking for style of include used by $am_make... " >&6; }
3110am__include="#"
3111am__quote=
3112_am_result=none
3113# First try GNU make style include.
3114echo "include confinc" > confmf
3115# Ignore all kinds of additional output from 'make'.
3116case `$am_make -s -f confmf 2> /dev/null` in #(
3117*the\ am__doit\ target*)
3118  am__include=include
3119  am__quote=
3120  _am_result=GNU
3121  ;;
3122esac
3123# Now try BSD make style include.
3124if test "$am__include" = "#"; then
3125   echo '.include "confinc"' > confmf
3126   case `$am_make -s -f confmf 2> /dev/null` in #(
3127   *the\ am__doit\ target*)
3128     am__include=.include
3129     am__quote="\""
3130     _am_result=BSD
3131     ;;
3132   esac
3133fi
3134
3135
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3137$as_echo "$_am_result" >&6; }
3138rm -f confinc confmf
3139
3140# Check whether --enable-dependency-tracking was given.
3141if test "${enable_dependency_tracking+set}" = set; then :
3142  enableval=$enable_dependency_tracking;
3143fi
3144
3145if test "x$enable_dependency_tracking" != xno; then
3146  am_depcomp="$ac_aux_dir/depcomp"
3147  AMDEPBACKSLASH='\'
3148  am__nodep='_no'
3149fi
3150 if test "x$enable_dependency_tracking" != xno; then
3151  AMDEP_TRUE=
3152  AMDEP_FALSE='#'
3153else
3154  AMDEP_TRUE='#'
3155  AMDEP_FALSE=
3156fi
3157
3158
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164if test -n "$ac_tool_prefix"; then
3165  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3166set dummy ${ac_tool_prefix}gcc; ac_word=$2
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
3169if ${ac_cv_prog_CC+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  if test -n "$CC"; then
3173  ac_cv_prog_CC="$CC" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178  IFS=$as_save_IFS
3179  test -z "$as_dir" && as_dir=.
3180    for ac_exec_ext in '' $ac_executable_extensions; do
3181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184    break 2
3185  fi
3186done
3187  done
3188IFS=$as_save_IFS
3189
3190fi
3191fi
3192CC=$ac_cv_prog_CC
3193if test -n "$CC"; then
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195$as_echo "$CC" >&6; }
3196else
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199fi
3200
3201
3202fi
3203if test -z "$ac_cv_prog_CC"; then
3204  ac_ct_CC=$CC
3205  # Extract the first word of "gcc", so it can be a program name with args.
3206set dummy gcc; ac_word=$2
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
3209if ${ac_cv_prog_ac_ct_CC+:} false; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  if test -n "$ac_ct_CC"; then
3213  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222    ac_cv_prog_ac_ct_CC="gcc"
3223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232ac_ct_CC=$ac_cv_prog_ac_ct_CC
3233if test -n "$ac_ct_CC"; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3235$as_echo "$ac_ct_CC" >&6; }
3236else
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241  if test "x$ac_ct_CC" = x; then
3242    CC=""
3243  else
3244    case $cross_compiling:$ac_tool_warned in
3245yes:)
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248ac_tool_warned=yes ;;
3249esac
3250    CC=$ac_ct_CC
3251  fi
3252else
3253  CC="$ac_cv_prog_CC"
3254fi
3255
3256if test -z "$CC"; then
3257          if test -n "$ac_tool_prefix"; then
3258    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3259set dummy ${ac_tool_prefix}cc; ac_word=$2
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261$as_echo_n "checking for $ac_word... " >&6; }
3262if ${ac_cv_prog_CC+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  if test -n "$CC"; then
3266  ac_cv_prog_CC="$CC" # Let the user override the test.
3267else
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271  IFS=$as_save_IFS
3272  test -z "$as_dir" && as_dir=.
3273    for ac_exec_ext in '' $ac_executable_extensions; do
3274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275    ac_cv_prog_CC="${ac_tool_prefix}cc"
3276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277    break 2
3278  fi
3279done
3280  done
3281IFS=$as_save_IFS
3282
3283fi
3284fi
3285CC=$ac_cv_prog_CC
3286if test -n "$CC"; then
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288$as_echo "$CC" >&6; }
3289else
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292fi
3293
3294
3295  fi
3296fi
3297if test -z "$CC"; then
3298  # Extract the first word of "cc", so it can be a program name with args.
3299set dummy cc; ac_word=$2
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301$as_echo_n "checking for $ac_word... " >&6; }
3302if ${ac_cv_prog_CC+:} false; then :
3303  $as_echo_n "(cached) " >&6
3304else
3305  if test -n "$CC"; then
3306  ac_cv_prog_CC="$CC" # Let the user override the test.
3307else
3308  ac_prog_rejected=no
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312  IFS=$as_save_IFS
3313  test -z "$as_dir" && as_dir=.
3314    for ac_exec_ext in '' $ac_executable_extensions; do
3315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3317       ac_prog_rejected=yes
3318       continue
3319     fi
3320    ac_cv_prog_CC="cc"
3321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325  done
3326IFS=$as_save_IFS
3327
3328if test $ac_prog_rejected = yes; then
3329  # We found a bogon in the path, so make sure we never use it.
3330  set dummy $ac_cv_prog_CC
3331  shift
3332  if test $# != 0; then
3333    # We chose a different compiler from the bogus one.
3334    # However, it has the same basename, so the bogon will be chosen
3335    # first if we set CC to just the basename; use the full file name.
3336    shift
3337    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3338  fi
3339fi
3340fi
3341fi
3342CC=$ac_cv_prog_CC
3343if test -n "$CC"; then
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345$as_echo "$CC" >&6; }
3346else
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348$as_echo "no" >&6; }
3349fi
3350
3351
3352fi
3353if test -z "$CC"; then
3354  if test -n "$ac_tool_prefix"; then
3355  for ac_prog in cl.exe
3356  do
3357    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360$as_echo_n "checking for $ac_word... " >&6; }
3361if ${ac_cv_prog_CC+:} false; then :
3362  $as_echo_n "(cached) " >&6
3363else
3364  if test -n "$CC"; then
3365  ac_cv_prog_CC="$CC" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370  IFS=$as_save_IFS
3371  test -z "$as_dir" && as_dir=.
3372    for ac_exec_ext in '' $ac_executable_extensions; do
3373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376    break 2
3377  fi
3378done
3379  done
3380IFS=$as_save_IFS
3381
3382fi
3383fi
3384CC=$ac_cv_prog_CC
3385if test -n "$CC"; then
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387$as_echo "$CC" >&6; }
3388else
3389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390$as_echo "no" >&6; }
3391fi
3392
3393
3394    test -n "$CC" && break
3395  done
3396fi
3397if test -z "$CC"; then
3398  ac_ct_CC=$CC
3399  for ac_prog in cl.exe
3400do
3401  # Extract the first word of "$ac_prog", so it can be a program name with args.
3402set dummy $ac_prog; ac_word=$2
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404$as_echo_n "checking for $ac_word... " >&6; }
3405if ${ac_cv_prog_ac_ct_CC+:} false; then :
3406  $as_echo_n "(cached) " >&6
3407else
3408  if test -n "$ac_ct_CC"; then
3409  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414  IFS=$as_save_IFS
3415  test -z "$as_dir" && as_dir=.
3416    for ac_exec_ext in '' $ac_executable_extensions; do
3417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418    ac_cv_prog_ac_ct_CC="$ac_prog"
3419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420    break 2
3421  fi
3422done
3423  done
3424IFS=$as_save_IFS
3425
3426fi
3427fi
3428ac_ct_CC=$ac_cv_prog_ac_ct_CC
3429if test -n "$ac_ct_CC"; then
3430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3431$as_echo "$ac_ct_CC" >&6; }
3432else
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434$as_echo "no" >&6; }
3435fi
3436
3437
3438  test -n "$ac_ct_CC" && break
3439done
3440
3441  if test "x$ac_ct_CC" = x; then
3442    CC=""
3443  else
3444    case $cross_compiling:$ac_tool_warned in
3445yes:)
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3448ac_tool_warned=yes ;;
3449esac
3450    CC=$ac_ct_CC
3451  fi
3452fi
3453
3454fi
3455
3456
3457test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459as_fn_error $? "no acceptable C compiler found in \$PATH
3460See \`config.log' for more details" "$LINENO" 5; }
3461
3462# Provide some information about the compiler.
3463$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3464set X $ac_compile
3465ac_compiler=$2
3466for ac_option in --version -v -V -qversion; do
3467  { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
3475  ac_status=$?
3476  if test -s conftest.err; then
3477    sed '10a\
3478... rest of stderr output deleted ...
3479         10q' conftest.err >conftest.er1
3480    cat conftest.er1 >&5
3481  fi
3482  rm -f conftest.er1 conftest.err
3483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484  test $ac_status = 0; }
3485done
3486
3487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498ac_clean_files_save=$ac_clean_files
3499ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3500# Try to create an executable without -o first, disregard a.out.
3501# It will help us diagnose broken compilers, and finding out an intuition
3502# of exeext.
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3504$as_echo_n "checking whether the C compiler works... " >&6; }
3505ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3506
3507# The possible output files:
3508ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3509
3510ac_rmfiles=
3511for ac_file in $ac_files
3512do
3513  case $ac_file in
3514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3516  esac
3517done
3518rm -f $ac_rmfiles
3519
3520if { { ac_try="$ac_link_default"
3521case "(($ac_try" in
3522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523  *) ac_try_echo=$ac_try;;
3524esac
3525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526$as_echo "$ac_try_echo"; } >&5
3527  (eval "$ac_link_default") 2>&5
3528  ac_status=$?
3529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530  test $ac_status = 0; }; then :
3531  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3532# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3533# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3534# so that the user can short-circuit this test for compilers unknown to
3535# Autoconf.
3536for ac_file in $ac_files ''
3537do
3538  test -f "$ac_file" || continue
3539  case $ac_file in
3540    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3541	;;
3542    [ab].out )
3543	# We found the default executable, but exeext='' is most
3544	# certainly right.
3545	break;;
3546    *.* )
3547	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3548	then :; else
3549	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550	fi
3551	# We set ac_cv_exeext here because the later test for it is not
3552	# safe: cross compilers may not add the suffix if given an `-o'
3553	# argument, so we may need to know it at that point already.
3554	# Even if this section looks crufty: it has the advantage of
3555	# actually working.
3556	break;;
3557    * )
3558	break;;
3559  esac
3560done
3561test "$ac_cv_exeext" = no && ac_cv_exeext=
3562
3563else
3564  ac_file=''
3565fi
3566if test -z "$ac_file"; then :
3567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569$as_echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574as_fn_error 77 "C compiler cannot create executables
3575See \`config.log' for more details" "$LINENO" 5; }
3576else
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3578$as_echo "yes" >&6; }
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3581$as_echo_n "checking for C compiler default output file name... " >&6; }
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3583$as_echo "$ac_file" >&6; }
3584ac_exeext=$ac_cv_exeext
3585
3586rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3587ac_clean_files=$ac_clean_files_save
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3589$as_echo_n "checking for suffix of executables... " >&6; }
3590if { { ac_try="$ac_link"
3591case "(($ac_try" in
3592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593  *) ac_try_echo=$ac_try;;
3594esac
3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596$as_echo "$ac_try_echo"; } >&5
3597  (eval "$ac_link") 2>&5
3598  ac_status=$?
3599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600  test $ac_status = 0; }; then :
3601  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3602# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3603# work properly (i.e., refer to `conftest.exe'), while it won't with
3604# `rm'.
3605for ac_file in conftest.exe conftest conftest.*; do
3606  test -f "$ac_file" || continue
3607  case $ac_file in
3608    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3609    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610	  break;;
3611    * ) break;;
3612  esac
3613done
3614else
3615  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3618See \`config.log' for more details" "$LINENO" 5; }
3619fi
3620rm -f conftest conftest$ac_cv_exeext
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3622$as_echo "$ac_cv_exeext" >&6; }
3623
3624rm -f conftest.$ac_ext
3625EXEEXT=$ac_cv_exeext
3626ac_exeext=$EXEEXT
3627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628/* end confdefs.h.  */
3629#include <stdio.h>
3630int
3631main ()
3632{
3633FILE *f = fopen ("conftest.out", "w");
3634 return ferror (f) || fclose (f) != 0;
3635
3636  ;
3637  return 0;
3638}
3639_ACEOF
3640ac_clean_files="$ac_clean_files conftest.out"
3641# Check that the compiler produces executables we can run.  If not, either
3642# the compiler is broken, or we cross compile.
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3644$as_echo_n "checking whether we are cross compiling... " >&6; }
3645if test "$cross_compiling" != yes; then
3646  { { ac_try="$ac_link"
3647case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652$as_echo "$ac_try_echo"; } >&5
3653  (eval "$ac_link") 2>&5
3654  ac_status=$?
3655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656  test $ac_status = 0; }
3657  if { ac_try='./conftest$ac_cv_exeext'
3658  { { case "(($ac_try" in
3659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660  *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663$as_echo "$ac_try_echo"; } >&5
3664  (eval "$ac_try") 2>&5
3665  ac_status=$?
3666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667  test $ac_status = 0; }; }; then
3668    cross_compiling=no
3669  else
3670    if test "$cross_compiling" = maybe; then
3671	cross_compiling=yes
3672    else
3673	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675as_fn_error $? "cannot run C compiled programs.
3676If you meant to cross compile, use \`--host'.
3677See \`config.log' for more details" "$LINENO" 5; }
3678    fi
3679  fi
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3682$as_echo "$cross_compiling" >&6; }
3683
3684rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3685ac_clean_files=$ac_clean_files_save
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3687$as_echo_n "checking for suffix of object files... " >&6; }
3688if ${ac_cv_objext+:} false; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h.  */
3693
3694int
3695main ()
3696{
3697
3698  ;
3699  return 0;
3700}
3701_ACEOF
3702rm -f conftest.o conftest.obj
3703if { { ac_try="$ac_compile"
3704case "(($ac_try" in
3705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706  *) ac_try_echo=$ac_try;;
3707esac
3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709$as_echo "$ac_try_echo"; } >&5
3710  (eval "$ac_compile") 2>&5
3711  ac_status=$?
3712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713  test $ac_status = 0; }; then :
3714  for ac_file in conftest.o conftest.obj conftest.*; do
3715  test -f "$ac_file" || continue;
3716  case $ac_file in
3717    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3718    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3719       break;;
3720  esac
3721done
3722else
3723  $as_echo "$as_me: failed program was:" >&5
3724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3728as_fn_error $? "cannot compute suffix of object files: cannot compile
3729See \`config.log' for more details" "$LINENO" 5; }
3730fi
3731rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3734$as_echo "$ac_cv_objext" >&6; }
3735OBJEXT=$ac_cv_objext
3736ac_objext=$OBJEXT
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3738$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3739if ${ac_cv_c_compiler_gnu+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h.  */
3744
3745int
3746main ()
3747{
3748#ifndef __GNUC__
3749       choke me
3750#endif
3751
3752  ;
3753  return 0;
3754}
3755_ACEOF
3756if ac_fn_c_try_compile "$LINENO"; then :
3757  ac_compiler_gnu=yes
3758else
3759  ac_compiler_gnu=no
3760fi
3761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762ac_cv_c_compiler_gnu=$ac_compiler_gnu
3763
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3766$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3767if test $ac_compiler_gnu = yes; then
3768  GCC=yes
3769else
3770  GCC=
3771fi
3772ac_test_CFLAGS=${CFLAGS+set}
3773ac_save_CFLAGS=$CFLAGS
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3775$as_echo_n "checking whether $CC accepts -g... " >&6; }
3776if ${ac_cv_prog_cc_g+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  ac_save_c_werror_flag=$ac_c_werror_flag
3780   ac_c_werror_flag=yes
3781   ac_cv_prog_cc_g=no
3782   CFLAGS="-g"
3783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794if ac_fn_c_try_compile "$LINENO"; then :
3795  ac_cv_prog_cc_g=yes
3796else
3797  CFLAGS=""
3798      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h.  */
3800
3801int
3802main ()
3803{
3804
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809if ac_fn_c_try_compile "$LINENO"; then :
3810
3811else
3812  ac_c_werror_flag=$ac_save_c_werror_flag
3813	 CFLAGS="-g"
3814	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816
3817int
3818main ()
3819{
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825if ac_fn_c_try_compile "$LINENO"; then :
3826  ac_cv_prog_cc_g=yes
3827fi
3828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829fi
3830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831fi
3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833   ac_c_werror_flag=$ac_save_c_werror_flag
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3836$as_echo "$ac_cv_prog_cc_g" >&6; }
3837if test "$ac_test_CFLAGS" = set; then
3838  CFLAGS=$ac_save_CFLAGS
3839elif test $ac_cv_prog_cc_g = yes; then
3840  if test "$GCC" = yes; then
3841    CFLAGS="-g -O2"
3842  else
3843    CFLAGS="-g"
3844  fi
3845else
3846  if test "$GCC" = yes; then
3847    CFLAGS="-O2"
3848  else
3849    CFLAGS=
3850  fi
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3853$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3854if ${ac_cv_prog_cc_c89+:} false; then :
3855  $as_echo_n "(cached) " >&6
3856else
3857  ac_cv_prog_cc_c89=no
3858ac_save_CC=$CC
3859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861#include <stdarg.h>
3862#include <stdio.h>
3863struct stat;
3864/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3865struct buf { int x; };
3866FILE * (*rcsopen) (struct buf *, struct stat *, int);
3867static char *e (p, i)
3868     char **p;
3869     int i;
3870{
3871  return p[i];
3872}
3873static char *f (char * (*g) (char **, int), char **p, ...)
3874{
3875  char *s;
3876  va_list v;
3877  va_start (v,p);
3878  s = g (p, va_arg (v,int));
3879  va_end (v);
3880  return s;
3881}
3882
3883/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3884   function prototypes and stuff, but not '\xHH' hex character constants.
3885   These don't provoke an error unfortunately, instead are silently treated
3886   as 'x'.  The following induces an error, until -std is added to get
3887   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3888   array size at least.  It's necessary to write '\x00'==0 to get something
3889   that's true only with -std.  */
3890int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3891
3892/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3893   inside strings and character constants.  */
3894#define FOO(x) 'x'
3895int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3896
3897int test (int i, double x);
3898struct s1 {int (*f) (int a);};
3899struct s2 {int (*f) (double a);};
3900int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3901int argc;
3902char **argv;
3903int
3904main ()
3905{
3906return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3912	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3913do
3914  CC="$ac_save_CC $ac_arg"
3915  if ac_fn_c_try_compile "$LINENO"; then :
3916  ac_cv_prog_cc_c89=$ac_arg
3917fi
3918rm -f core conftest.err conftest.$ac_objext
3919  test "x$ac_cv_prog_cc_c89" != "xno" && break
3920done
3921rm -f conftest.$ac_ext
3922CC=$ac_save_CC
3923
3924fi
3925# AC_CACHE_VAL
3926case "x$ac_cv_prog_cc_c89" in
3927  x)
3928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3929$as_echo "none needed" >&6; } ;;
3930  xno)
3931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3932$as_echo "unsupported" >&6; } ;;
3933  *)
3934    CC="$CC $ac_cv_prog_cc_c89"
3935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3936$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3937esac
3938if test "x$ac_cv_prog_cc_c89" != xno; then :
3939
3940fi
3941
3942ac_ext=c
3943ac_cpp='$CPP $CPPFLAGS'
3944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947
3948ac_ext=c
3949ac_cpp='$CPP $CPPFLAGS'
3950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3954$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3955if ${am_cv_prog_cc_c_o+:} false; then :
3956  $as_echo_n "(cached) " >&6
3957else
3958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959/* end confdefs.h.  */
3960
3961int
3962main ()
3963{
3964
3965  ;
3966  return 0;
3967}
3968_ACEOF
3969  # Make sure it works both with $CC and with simple cc.
3970  # Following AC_PROG_CC_C_O, we do the test twice because some
3971  # compilers refuse to overwrite an existing .o file with -o,
3972  # though they will create one.
3973  am_cv_prog_cc_c_o=yes
3974  for am_i in 1 2; do
3975    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3976   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } \
3980         && test -f conftest2.$ac_objext; then
3981      : OK
3982    else
3983      am_cv_prog_cc_c_o=no
3984      break
3985    fi
3986  done
3987  rm -f core conftest*
3988  unset am_i
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3991$as_echo "$am_cv_prog_cc_c_o" >&6; }
3992if test "$am_cv_prog_cc_c_o" != yes; then
3993   # Losing compiler, so override with the script.
3994   # FIXME: It is wrong to rewrite CC.
3995   # But if we don't then we get into trouble of one sort or another.
3996   # A longer-term fix would be to have automake use am__CC in this case,
3997   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3998   CC="$am_aux_dir/compile $CC"
3999fi
4000ac_ext=c
4001ac_cpp='$CPP $CPPFLAGS'
4002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005
4006
4007depcc="$CC"   am_compiler_list=
4008
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4010$as_echo_n "checking dependency style of $depcc... " >&6; }
4011if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4015  # We make a subdir and do the tests there.  Otherwise we can end up
4016  # making bogus files that we don't know about and never remove.  For
4017  # instance it was reported that on HP-UX the gcc test will end up
4018  # making a dummy file named 'D' -- because '-MD' means "put the output
4019  # in D".
4020  rm -rf conftest.dir
4021  mkdir conftest.dir
4022  # Copy depcomp to subdir because otherwise we won't find it if we're
4023  # using a relative directory.
4024  cp "$am_depcomp" conftest.dir
4025  cd conftest.dir
4026  # We will build objects and dependencies in a subdirectory because
4027  # it helps to detect inapplicable dependency modes.  For instance
4028  # both Tru64's cc and ICC support -MD to output dependencies as a
4029  # side effect of compilation, but ICC will put the dependencies in
4030  # the current directory while Tru64 will put them in the object
4031  # directory.
4032  mkdir sub
4033
4034  am_cv_CC_dependencies_compiler_type=none
4035  if test "$am_compiler_list" = ""; then
4036     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4037  fi
4038  am__universal=false
4039  case " $depcc " in #(
4040     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4041     esac
4042
4043  for depmode in $am_compiler_list; do
4044    # Setup a source with many dependencies, because some compilers
4045    # like to wrap large dependency lists on column 80 (with \), and
4046    # we should not choose a depcomp mode which is confused by this.
4047    #
4048    # We need to recreate these files for each test, as the compiler may
4049    # overwrite some of them when testing with obscure command lines.
4050    # This happens at least with the AIX C compiler.
4051    : > sub/conftest.c
4052    for i in 1 2 3 4 5 6; do
4053      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4054      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4055      # Solaris 10 /bin/sh.
4056      echo '/* dummy */' > sub/conftst$i.h
4057    done
4058    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4059
4060    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4061    # mode.  It turns out that the SunPro C++ compiler does not properly
4062    # handle '-M -o', and we need to detect this.  Also, some Intel
4063    # versions had trouble with output in subdirs.
4064    am__obj=sub/conftest.${OBJEXT-o}
4065    am__minus_obj="-o $am__obj"
4066    case $depmode in
4067    gcc)
4068      # This depmode causes a compiler race in universal mode.
4069      test "$am__universal" = false || continue
4070      ;;
4071    nosideeffect)
4072      # After this tag, mechanisms are not by side-effect, so they'll
4073      # only be used when explicitly requested.
4074      if test "x$enable_dependency_tracking" = xyes; then
4075	continue
4076      else
4077	break
4078      fi
4079      ;;
4080    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4081      # This compiler won't grok '-c -o', but also, the minuso test has
4082      # not run yet.  These depmodes are late enough in the game, and
4083      # so weak that their functioning should not be impacted.
4084      am__obj=conftest.${OBJEXT-o}
4085      am__minus_obj=
4086      ;;
4087    none) break ;;
4088    esac
4089    if depmode=$depmode \
4090       source=sub/conftest.c object=$am__obj \
4091       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4092       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4093         >/dev/null 2>conftest.err &&
4094       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4095       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4096       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4097       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4098      # icc doesn't choke on unknown options, it will just issue warnings
4099      # or remarks (even with -Werror).  So we grep stderr for any message
4100      # that says an option was ignored or not supported.
4101      # When given -MP, icc 7.0 and 7.1 complain thusly:
4102      #   icc: Command line warning: ignoring option '-M'; no argument required
4103      # The diagnosis changed in icc 8.0:
4104      #   icc: Command line remark: option '-MP' not supported
4105      if (grep 'ignoring option' conftest.err ||
4106          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4107        am_cv_CC_dependencies_compiler_type=$depmode
4108        break
4109      fi
4110    fi
4111  done
4112
4113  cd ..
4114  rm -rf conftest.dir
4115else
4116  am_cv_CC_dependencies_compiler_type=none
4117fi
4118
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4121$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4122CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4123
4124 if
4125  test "x$enable_dependency_tracking" != xno \
4126  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4127  am__fastdepCC_TRUE=
4128  am__fastdepCC_FALSE='#'
4129else
4130  am__fastdepCC_TRUE='#'
4131  am__fastdepCC_FALSE=
4132fi
4133
4134
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4136$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4137if ${ac_cv_path_SED+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4141     for ac_i in 1 2 3 4 5 6 7; do
4142       ac_script="$ac_script$as_nl$ac_script"
4143     done
4144     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4145     { ac_script=; unset ac_script;}
4146     if test -z "$SED"; then
4147  ac_path_SED_found=false
4148  # Loop through the user's path and test for each of PROGNAME-LIST
4149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152  IFS=$as_save_IFS
4153  test -z "$as_dir" && as_dir=.
4154    for ac_prog in sed gsed; do
4155    for ac_exec_ext in '' $ac_executable_extensions; do
4156      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4157      as_fn_executable_p "$ac_path_SED" || continue
4158# Check for GNU ac_path_SED and select it if it is found.
4159  # Check for GNU $ac_path_SED
4160case `"$ac_path_SED" --version 2>&1` in
4161*GNU*)
4162  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4163*)
4164  ac_count=0
4165  $as_echo_n 0123456789 >"conftest.in"
4166  while :
4167  do
4168    cat "conftest.in" "conftest.in" >"conftest.tmp"
4169    mv "conftest.tmp" "conftest.in"
4170    cp "conftest.in" "conftest.nl"
4171    $as_echo '' >> "conftest.nl"
4172    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174    as_fn_arith $ac_count + 1 && ac_count=$as_val
4175    if test $ac_count -gt ${ac_path_SED_max-0}; then
4176      # Best one so far, save it but keep looking for a better one
4177      ac_cv_path_SED="$ac_path_SED"
4178      ac_path_SED_max=$ac_count
4179    fi
4180    # 10*(2^10) chars as input seems more than enough
4181    test $ac_count -gt 10 && break
4182  done
4183  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184esac
4185
4186      $ac_path_SED_found && break 3
4187    done
4188  done
4189  done
4190IFS=$as_save_IFS
4191  if test -z "$ac_cv_path_SED"; then
4192    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4193  fi
4194else
4195  ac_cv_path_SED=$SED
4196fi
4197
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4200$as_echo "$ac_cv_path_SED" >&6; }
4201 SED="$ac_cv_path_SED"
4202  rm -f conftest.sed
4203
4204test -z "$SED" && SED=sed
4205Xsed="$SED -e 1s/^X//"
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4218$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4219if ${ac_cv_path_GREP+:} false; then :
4220  $as_echo_n "(cached) " >&6
4221else
4222  if test -z "$GREP"; then
4223  ac_path_GREP_found=false
4224  # Loop through the user's path and test for each of PROGNAME-LIST
4225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227do
4228  IFS=$as_save_IFS
4229  test -z "$as_dir" && as_dir=.
4230    for ac_prog in grep ggrep; do
4231    for ac_exec_ext in '' $ac_executable_extensions; do
4232      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4233      as_fn_executable_p "$ac_path_GREP" || continue
4234# Check for GNU ac_path_GREP and select it if it is found.
4235  # Check for GNU $ac_path_GREP
4236case `"$ac_path_GREP" --version 2>&1` in
4237*GNU*)
4238  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4239*)
4240  ac_count=0
4241  $as_echo_n 0123456789 >"conftest.in"
4242  while :
4243  do
4244    cat "conftest.in" "conftest.in" >"conftest.tmp"
4245    mv "conftest.tmp" "conftest.in"
4246    cp "conftest.in" "conftest.nl"
4247    $as_echo 'GREP' >> "conftest.nl"
4248    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250    as_fn_arith $ac_count + 1 && ac_count=$as_val
4251    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4252      # Best one so far, save it but keep looking for a better one
4253      ac_cv_path_GREP="$ac_path_GREP"
4254      ac_path_GREP_max=$ac_count
4255    fi
4256    # 10*(2^10) chars as input seems more than enough
4257    test $ac_count -gt 10 && break
4258  done
4259  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260esac
4261
4262      $ac_path_GREP_found && break 3
4263    done
4264  done
4265  done
4266IFS=$as_save_IFS
4267  if test -z "$ac_cv_path_GREP"; then
4268    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269  fi
4270else
4271  ac_cv_path_GREP=$GREP
4272fi
4273
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4276$as_echo "$ac_cv_path_GREP" >&6; }
4277 GREP="$ac_cv_path_GREP"
4278
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4281$as_echo_n "checking for egrep... " >&6; }
4282if ${ac_cv_path_EGREP+:} false; then :
4283  $as_echo_n "(cached) " >&6
4284else
4285  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4286   then ac_cv_path_EGREP="$GREP -E"
4287   else
4288     if test -z "$EGREP"; then
4289  ac_path_EGREP_found=false
4290  # Loop through the user's path and test for each of PROGNAME-LIST
4291  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4293do
4294  IFS=$as_save_IFS
4295  test -z "$as_dir" && as_dir=.
4296    for ac_prog in egrep; do
4297    for ac_exec_ext in '' $ac_executable_extensions; do
4298      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4299      as_fn_executable_p "$ac_path_EGREP" || continue
4300# Check for GNU ac_path_EGREP and select it if it is found.
4301  # Check for GNU $ac_path_EGREP
4302case `"$ac_path_EGREP" --version 2>&1` in
4303*GNU*)
4304  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4305*)
4306  ac_count=0
4307  $as_echo_n 0123456789 >"conftest.in"
4308  while :
4309  do
4310    cat "conftest.in" "conftest.in" >"conftest.tmp"
4311    mv "conftest.tmp" "conftest.in"
4312    cp "conftest.in" "conftest.nl"
4313    $as_echo 'EGREP' >> "conftest.nl"
4314    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4315    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4316    as_fn_arith $ac_count + 1 && ac_count=$as_val
4317    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4318      # Best one so far, save it but keep looking for a better one
4319      ac_cv_path_EGREP="$ac_path_EGREP"
4320      ac_path_EGREP_max=$ac_count
4321    fi
4322    # 10*(2^10) chars as input seems more than enough
4323    test $ac_count -gt 10 && break
4324  done
4325  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4326esac
4327
4328      $ac_path_EGREP_found && break 3
4329    done
4330  done
4331  done
4332IFS=$as_save_IFS
4333  if test -z "$ac_cv_path_EGREP"; then
4334    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4335  fi
4336else
4337  ac_cv_path_EGREP=$EGREP
4338fi
4339
4340   fi
4341fi
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4343$as_echo "$ac_cv_path_EGREP" >&6; }
4344 EGREP="$ac_cv_path_EGREP"
4345
4346
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4348$as_echo_n "checking for fgrep... " >&6; }
4349if ${ac_cv_path_FGREP+:} false; then :
4350  $as_echo_n "(cached) " >&6
4351else
4352  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4353   then ac_cv_path_FGREP="$GREP -F"
4354   else
4355     if test -z "$FGREP"; then
4356  ac_path_FGREP_found=false
4357  # Loop through the user's path and test for each of PROGNAME-LIST
4358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4360do
4361  IFS=$as_save_IFS
4362  test -z "$as_dir" && as_dir=.
4363    for ac_prog in fgrep; do
4364    for ac_exec_ext in '' $ac_executable_extensions; do
4365      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4366      as_fn_executable_p "$ac_path_FGREP" || continue
4367# Check for GNU ac_path_FGREP and select it if it is found.
4368  # Check for GNU $ac_path_FGREP
4369case `"$ac_path_FGREP" --version 2>&1` in
4370*GNU*)
4371  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4372*)
4373  ac_count=0
4374  $as_echo_n 0123456789 >"conftest.in"
4375  while :
4376  do
4377    cat "conftest.in" "conftest.in" >"conftest.tmp"
4378    mv "conftest.tmp" "conftest.in"
4379    cp "conftest.in" "conftest.nl"
4380    $as_echo 'FGREP' >> "conftest.nl"
4381    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4382    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4383    as_fn_arith $ac_count + 1 && ac_count=$as_val
4384    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4385      # Best one so far, save it but keep looking for a better one
4386      ac_cv_path_FGREP="$ac_path_FGREP"
4387      ac_path_FGREP_max=$ac_count
4388    fi
4389    # 10*(2^10) chars as input seems more than enough
4390    test $ac_count -gt 10 && break
4391  done
4392  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4393esac
4394
4395      $ac_path_FGREP_found && break 3
4396    done
4397  done
4398  done
4399IFS=$as_save_IFS
4400  if test -z "$ac_cv_path_FGREP"; then
4401    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4402  fi
4403else
4404  ac_cv_path_FGREP=$FGREP
4405fi
4406
4407   fi
4408fi
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4410$as_echo "$ac_cv_path_FGREP" >&6; }
4411 FGREP="$ac_cv_path_FGREP"
4412
4413
4414test -z "$GREP" && GREP=grep
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434# Check whether --with-gnu-ld was given.
4435if test "${with_gnu_ld+set}" = set; then :
4436  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4437else
4438  with_gnu_ld=no
4439fi
4440
4441ac_prog=ld
4442if test "$GCC" = yes; then
4443  # Check if gcc -print-prog-name=ld gives a path.
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4445$as_echo_n "checking for ld used by $CC... " >&6; }
4446  case $host in
4447  *-*-mingw*)
4448    # gcc leaves a trailing carriage return which upsets mingw
4449    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4450  *)
4451    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4452  esac
4453  case $ac_prog in
4454    # Accept absolute paths.
4455    [\\/]* | ?:[\\/]*)
4456      re_direlt='/[^/][^/]*/\.\./'
4457      # Canonicalize the pathname of ld
4458      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4459      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4460	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4461      done
4462      test -z "$LD" && LD="$ac_prog"
4463      ;;
4464  "")
4465    # If it fails, then pretend we aren't using GCC.
4466    ac_prog=ld
4467    ;;
4468  *)
4469    # If it is relative, then search for the first ld in PATH.
4470    with_gnu_ld=unknown
4471    ;;
4472  esac
4473elif test "$with_gnu_ld" = yes; then
4474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4475$as_echo_n "checking for GNU ld... " >&6; }
4476else
4477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4478$as_echo_n "checking for non-GNU ld... " >&6; }
4479fi
4480if ${lt_cv_path_LD+:} false; then :
4481  $as_echo_n "(cached) " >&6
4482else
4483  if test -z "$LD"; then
4484  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4485  for ac_dir in $PATH; do
4486    IFS="$lt_save_ifs"
4487    test -z "$ac_dir" && ac_dir=.
4488    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4489      lt_cv_path_LD="$ac_dir/$ac_prog"
4490      # Check to see if the program is GNU ld.  I'd rather use --version,
4491      # but apparently some variants of GNU ld only accept -v.
4492      # Break only if it was the GNU/non-GNU ld that we prefer.
4493      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4494      *GNU* | *'with BFD'*)
4495	test "$with_gnu_ld" != no && break
4496	;;
4497      *)
4498	test "$with_gnu_ld" != yes && break
4499	;;
4500      esac
4501    fi
4502  done
4503  IFS="$lt_save_ifs"
4504else
4505  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4506fi
4507fi
4508
4509LD="$lt_cv_path_LD"
4510if test -n "$LD"; then
4511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4512$as_echo "$LD" >&6; }
4513else
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515$as_echo "no" >&6; }
4516fi
4517test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4519$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4520if ${lt_cv_prog_gnu_ld+:} false; then :
4521  $as_echo_n "(cached) " >&6
4522else
4523  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4524case `$LD -v 2>&1 </dev/null` in
4525*GNU* | *'with BFD'*)
4526  lt_cv_prog_gnu_ld=yes
4527  ;;
4528*)
4529  lt_cv_prog_gnu_ld=no
4530  ;;
4531esac
4532fi
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4534$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4535with_gnu_ld=$lt_cv_prog_gnu_ld
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4546$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4547if ${lt_cv_path_NM+:} false; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  if test -n "$NM"; then
4551  # Let the user override the test.
4552  lt_cv_path_NM="$NM"
4553else
4554  lt_nm_to_check="${ac_tool_prefix}nm"
4555  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4556    lt_nm_to_check="$lt_nm_to_check nm"
4557  fi
4558  for lt_tmp_nm in $lt_nm_to_check; do
4559    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4560    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4561      IFS="$lt_save_ifs"
4562      test -z "$ac_dir" && ac_dir=.
4563      tmp_nm="$ac_dir/$lt_tmp_nm"
4564      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4565	# Check to see if the nm accepts a BSD-compat flag.
4566	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4567	#   nm: unknown option "B" ignored
4568	# Tru64's nm complains that /dev/null is an invalid object file
4569	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4570	*/dev/null* | *'Invalid file or object type'*)
4571	  lt_cv_path_NM="$tmp_nm -B"
4572	  break
4573	  ;;
4574	*)
4575	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4576	  */dev/null*)
4577	    lt_cv_path_NM="$tmp_nm -p"
4578	    break
4579	    ;;
4580	  *)
4581	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4582	    continue # so that we can try to find one that supports BSD flags
4583	    ;;
4584	  esac
4585	  ;;
4586	esac
4587      fi
4588    done
4589    IFS="$lt_save_ifs"
4590  done
4591  : ${lt_cv_path_NM=no}
4592fi
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4595$as_echo "$lt_cv_path_NM" >&6; }
4596if test "$lt_cv_path_NM" != "no"; then
4597  NM="$lt_cv_path_NM"
4598else
4599  # Didn't find any BSD compatible name lister, look for dumpbin.
4600  if test -n "$DUMPBIN"; then :
4601    # Let the user override the test.
4602  else
4603    if test -n "$ac_tool_prefix"; then
4604  for ac_prog in dumpbin "link -dump"
4605  do
4606    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609$as_echo_n "checking for $ac_word... " >&6; }
4610if ${ac_cv_prog_DUMPBIN+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  if test -n "$DUMPBIN"; then
4614  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619  IFS=$as_save_IFS
4620  test -z "$as_dir" && as_dir=.
4621    for ac_exec_ext in '' $ac_executable_extensions; do
4622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625    break 2
4626  fi
4627done
4628  done
4629IFS=$as_save_IFS
4630
4631fi
4632fi
4633DUMPBIN=$ac_cv_prog_DUMPBIN
4634if test -n "$DUMPBIN"; then
4635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4636$as_echo "$DUMPBIN" >&6; }
4637else
4638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639$as_echo "no" >&6; }
4640fi
4641
4642
4643    test -n "$DUMPBIN" && break
4644  done
4645fi
4646if test -z "$DUMPBIN"; then
4647  ac_ct_DUMPBIN=$DUMPBIN
4648  for ac_prog in dumpbin "link -dump"
4649do
4650  # Extract the first word of "$ac_prog", so it can be a program name with args.
4651set dummy $ac_prog; ac_word=$2
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653$as_echo_n "checking for $ac_word... " >&6; }
4654if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4655  $as_echo_n "(cached) " >&6
4656else
4657  if test -n "$ac_ct_DUMPBIN"; then
4658  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663  IFS=$as_save_IFS
4664  test -z "$as_dir" && as_dir=.
4665    for ac_exec_ext in '' $ac_executable_extensions; do
4666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669    break 2
4670  fi
4671done
4672  done
4673IFS=$as_save_IFS
4674
4675fi
4676fi
4677ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4678if test -n "$ac_ct_DUMPBIN"; then
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4680$as_echo "$ac_ct_DUMPBIN" >&6; }
4681else
4682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683$as_echo "no" >&6; }
4684fi
4685
4686
4687  test -n "$ac_ct_DUMPBIN" && break
4688done
4689
4690  if test "x$ac_ct_DUMPBIN" = x; then
4691    DUMPBIN=":"
4692  else
4693    case $cross_compiling:$ac_tool_warned in
4694yes:)
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697ac_tool_warned=yes ;;
4698esac
4699    DUMPBIN=$ac_ct_DUMPBIN
4700  fi
4701fi
4702
4703    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4704    *COFF*)
4705      DUMPBIN="$DUMPBIN -symbols"
4706      ;;
4707    *)
4708      DUMPBIN=:
4709      ;;
4710    esac
4711  fi
4712
4713  if test "$DUMPBIN" != ":"; then
4714    NM="$DUMPBIN"
4715  fi
4716fi
4717test -z "$NM" && NM=nm
4718
4719
4720
4721
4722
4723
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4725$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4726if ${lt_cv_nm_interface+:} false; then :
4727  $as_echo_n "(cached) " >&6
4728else
4729  lt_cv_nm_interface="BSD nm"
4730  echo "int some_variable = 0;" > conftest.$ac_ext
4731  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4732  (eval "$ac_compile" 2>conftest.err)
4733  cat conftest.err >&5
4734  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4735  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4736  cat conftest.err >&5
4737  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4738  cat conftest.out >&5
4739  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4740    lt_cv_nm_interface="MS dumpbin"
4741  fi
4742  rm -f conftest*
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4745$as_echo "$lt_cv_nm_interface" >&6; }
4746
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4748$as_echo_n "checking whether ln -s works... " >&6; }
4749LN_S=$as_ln_s
4750if test "$LN_S" = "ln -s"; then
4751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4752$as_echo "yes" >&6; }
4753else
4754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4755$as_echo "no, using $LN_S" >&6; }
4756fi
4757
4758# find the maximum length of command line arguments
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4760$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4761if ${lt_cv_sys_max_cmd_len+:} false; then :
4762  $as_echo_n "(cached) " >&6
4763else
4764    i=0
4765  teststring="ABCD"
4766
4767  case $build_os in
4768  msdosdjgpp*)
4769    # On DJGPP, this test can blow up pretty badly due to problems in libc
4770    # (any single argument exceeding 2000 bytes causes a buffer overrun
4771    # during glob expansion).  Even if it were fixed, the result of this
4772    # check would be larger than it should be.
4773    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4774    ;;
4775
4776  gnu*)
4777    # Under GNU Hurd, this test is not required because there is
4778    # no limit to the length of command line arguments.
4779    # Libtool will interpret -1 as no limit whatsoever
4780    lt_cv_sys_max_cmd_len=-1;
4781    ;;
4782
4783  cygwin* | mingw* | cegcc*)
4784    # On Win9x/ME, this test blows up -- it succeeds, but takes
4785    # about 5 minutes as the teststring grows exponentially.
4786    # Worse, since 9x/ME are not pre-emptively multitasking,
4787    # you end up with a "frozen" computer, even though with patience
4788    # the test eventually succeeds (with a max line length of 256k).
4789    # Instead, let's just punt: use the minimum linelength reported by
4790    # all of the supported platforms: 8192 (on NT/2K/XP).
4791    lt_cv_sys_max_cmd_len=8192;
4792    ;;
4793
4794  mint*)
4795    # On MiNT this can take a long time and run out of memory.
4796    lt_cv_sys_max_cmd_len=8192;
4797    ;;
4798
4799  amigaos*)
4800    # On AmigaOS with pdksh, this test takes hours, literally.
4801    # So we just punt and use a minimum line length of 8192.
4802    lt_cv_sys_max_cmd_len=8192;
4803    ;;
4804
4805  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4806    # This has been around since 386BSD, at least.  Likely further.
4807    if test -x /sbin/sysctl; then
4808      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4809    elif test -x /usr/sbin/sysctl; then
4810      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4811    else
4812      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4813    fi
4814    # And add a safety zone
4815    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4816    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4817    ;;
4818
4819  interix*)
4820    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4821    lt_cv_sys_max_cmd_len=196608
4822    ;;
4823
4824  os2*)
4825    # The test takes a long time on OS/2.
4826    lt_cv_sys_max_cmd_len=8192
4827    ;;
4828
4829  osf*)
4830    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4831    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4832    # nice to cause kernel panics so lets avoid the loop below.
4833    # First set a reasonable default.
4834    lt_cv_sys_max_cmd_len=16384
4835    #
4836    if test -x /sbin/sysconfig; then
4837      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4838        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4839      esac
4840    fi
4841    ;;
4842  sco3.2v5*)
4843    lt_cv_sys_max_cmd_len=102400
4844    ;;
4845  sysv5* | sco5v6* | sysv4.2uw2*)
4846    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4847    if test -n "$kargmax"; then
4848      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4849    else
4850      lt_cv_sys_max_cmd_len=32768
4851    fi
4852    ;;
4853  *)
4854    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4855    if test -n "$lt_cv_sys_max_cmd_len" && \
4856	test undefined != "$lt_cv_sys_max_cmd_len"; then
4857      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4858      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4859    else
4860      # Make teststring a little bigger before we do anything with it.
4861      # a 1K string should be a reasonable start.
4862      for i in 1 2 3 4 5 6 7 8 ; do
4863        teststring=$teststring$teststring
4864      done
4865      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4866      # If test is not a shell built-in, we'll probably end up computing a
4867      # maximum length that is only half of the actual maximum length, but
4868      # we can't tell.
4869      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4870	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4871	      test $i != 17 # 1/2 MB should be enough
4872      do
4873        i=`expr $i + 1`
4874        teststring=$teststring$teststring
4875      done
4876      # Only check the string length outside the loop.
4877      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4878      teststring=
4879      # Add a significant safety factor because C++ compilers can tack on
4880      # massive amounts of additional arguments before passing them to the
4881      # linker.  It appears as though 1/2 is a usable value.
4882      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4883    fi
4884    ;;
4885  esac
4886
4887fi
4888
4889if test -n $lt_cv_sys_max_cmd_len ; then
4890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4891$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4892else
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4894$as_echo "none" >&6; }
4895fi
4896max_cmd_len=$lt_cv_sys_max_cmd_len
4897
4898
4899
4900
4901
4902
4903: ${CP="cp -f"}
4904: ${MV="mv -f"}
4905: ${RM="rm -f"}
4906
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4908$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4909# Try some XSI features
4910xsi_shell=no
4911( _lt_dummy="a/b/c"
4912  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4913      = c,a/b,b/c, \
4914    && eval 'test $(( 1 + 1 )) -eq 2 \
4915    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4916  && xsi_shell=yes
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4918$as_echo "$xsi_shell" >&6; }
4919
4920
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4922$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4923lt_shell_append=no
4924( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4925    >/dev/null 2>&1 \
4926  && lt_shell_append=yes
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4928$as_echo "$lt_shell_append" >&6; }
4929
4930
4931if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4932  lt_unset=unset
4933else
4934  lt_unset=false
4935fi
4936
4937
4938
4939
4940
4941# test EBCDIC or ASCII
4942case `echo X|tr X '\101'` in
4943 A) # ASCII based system
4944    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4945  lt_SP2NL='tr \040 \012'
4946  lt_NL2SP='tr \015\012 \040\040'
4947  ;;
4948 *) # EBCDIC based system
4949  lt_SP2NL='tr \100 \n'
4950  lt_NL2SP='tr \r\n \100\100'
4951  ;;
4952esac
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4963$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4964if ${lt_cv_to_host_file_cmd+:} false; then :
4965  $as_echo_n "(cached) " >&6
4966else
4967  case $host in
4968  *-*-mingw* )
4969    case $build in
4970      *-*-mingw* ) # actually msys
4971        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4972        ;;
4973      *-*-cygwin* )
4974        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4975        ;;
4976      * ) # otherwise, assume *nix
4977        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4978        ;;
4979    esac
4980    ;;
4981  *-*-cygwin* )
4982    case $build in
4983      *-*-mingw* ) # actually msys
4984        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4985        ;;
4986      *-*-cygwin* )
4987        lt_cv_to_host_file_cmd=func_convert_file_noop
4988        ;;
4989      * ) # otherwise, assume *nix
4990        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4991        ;;
4992    esac
4993    ;;
4994  * ) # unhandled hosts (and "normal" native builds)
4995    lt_cv_to_host_file_cmd=func_convert_file_noop
4996    ;;
4997esac
4998
4999fi
5000
5001to_host_file_cmd=$lt_cv_to_host_file_cmd
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5003$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5004
5005
5006
5007
5008
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5010$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5011if ${lt_cv_to_tool_file_cmd+:} false; then :
5012  $as_echo_n "(cached) " >&6
5013else
5014  #assume ordinary cross tools, or native build.
5015lt_cv_to_tool_file_cmd=func_convert_file_noop
5016case $host in
5017  *-*-mingw* )
5018    case $build in
5019      *-*-mingw* ) # actually msys
5020        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5021        ;;
5022    esac
5023    ;;
5024esac
5025
5026fi
5027
5028to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5030$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5031
5032
5033
5034
5035
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5037$as_echo_n "checking for $LD option to reload object files... " >&6; }
5038if ${lt_cv_ld_reload_flag+:} false; then :
5039  $as_echo_n "(cached) " >&6
5040else
5041  lt_cv_ld_reload_flag='-r'
5042fi
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5044$as_echo "$lt_cv_ld_reload_flag" >&6; }
5045reload_flag=$lt_cv_ld_reload_flag
5046case $reload_flag in
5047"" | " "*) ;;
5048*) reload_flag=" $reload_flag" ;;
5049esac
5050reload_cmds='$LD$reload_flag -o $output$reload_objs'
5051case $host_os in
5052  cygwin* | mingw* | pw32* | cegcc*)
5053    if test "$GCC" != yes; then
5054      reload_cmds=false
5055    fi
5056    ;;
5057  darwin*)
5058    if test "$GCC" = yes; then
5059      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5060    else
5061      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062    fi
5063    ;;
5064esac
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074if test -n "$ac_tool_prefix"; then
5075  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5076set dummy ${ac_tool_prefix}objdump; ac_word=$2
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078$as_echo_n "checking for $ac_word... " >&6; }
5079if ${ac_cv_prog_OBJDUMP+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  if test -n "$OBJDUMP"; then
5083  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5084else
5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH
5087do
5088  IFS=$as_save_IFS
5089  test -z "$as_dir" && as_dir=.
5090    for ac_exec_ext in '' $ac_executable_extensions; do
5091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094    break 2
5095  fi
5096done
5097  done
5098IFS=$as_save_IFS
5099
5100fi
5101fi
5102OBJDUMP=$ac_cv_prog_OBJDUMP
5103if test -n "$OBJDUMP"; then
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5105$as_echo "$OBJDUMP" >&6; }
5106else
5107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109fi
5110
5111
5112fi
5113if test -z "$ac_cv_prog_OBJDUMP"; then
5114  ac_ct_OBJDUMP=$OBJDUMP
5115  # Extract the first word of "objdump", so it can be a program name with args.
5116set dummy objdump; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; }
5119if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5120  $as_echo_n "(cached) " >&6
5121else
5122  if test -n "$ac_ct_OBJDUMP"; then
5123  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128  IFS=$as_save_IFS
5129  test -z "$as_dir" && as_dir=.
5130    for ac_exec_ext in '' $ac_executable_extensions; do
5131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134    break 2
5135  fi
5136done
5137  done
5138IFS=$as_save_IFS
5139
5140fi
5141fi
5142ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5143if test -n "$ac_ct_OBJDUMP"; then
5144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5145$as_echo "$ac_ct_OBJDUMP" >&6; }
5146else
5147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148$as_echo "no" >&6; }
5149fi
5150
5151  if test "x$ac_ct_OBJDUMP" = x; then
5152    OBJDUMP="false"
5153  else
5154    case $cross_compiling:$ac_tool_warned in
5155yes:)
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158ac_tool_warned=yes ;;
5159esac
5160    OBJDUMP=$ac_ct_OBJDUMP
5161  fi
5162else
5163  OBJDUMP="$ac_cv_prog_OBJDUMP"
5164fi
5165
5166test -z "$OBJDUMP" && OBJDUMP=objdump
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5177$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5178if ${lt_cv_deplibs_check_method+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  lt_cv_file_magic_cmd='$MAGIC_CMD'
5182lt_cv_file_magic_test_file=
5183lt_cv_deplibs_check_method='unknown'
5184# Need to set the preceding variable on all platforms that support
5185# interlibrary dependencies.
5186# 'none' -- dependencies not supported.
5187# `unknown' -- same as none, but documents that we really don't know.
5188# 'pass_all' -- all dependencies passed with no checks.
5189# 'test_compile' -- check by making test program.
5190# 'file_magic [[regex]]' -- check by looking for files in library path
5191# which responds to the $file_magic_cmd with a given extended regex.
5192# If you have `file' or equivalent on your system and you're not sure
5193# whether `pass_all' will *always* work, you probably want this one.
5194
5195case $host_os in
5196aix[4-9]*)
5197  lt_cv_deplibs_check_method=pass_all
5198  ;;
5199
5200beos*)
5201  lt_cv_deplibs_check_method=pass_all
5202  ;;
5203
5204bsdi[45]*)
5205  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5206  lt_cv_file_magic_cmd='/usr/bin/file -L'
5207  lt_cv_file_magic_test_file=/shlib/libc.so
5208  ;;
5209
5210cygwin*)
5211  # func_win32_libid is a shell function defined in ltmain.sh
5212  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5213  lt_cv_file_magic_cmd='func_win32_libid'
5214  ;;
5215
5216mingw* | pw32*)
5217  # Base MSYS/MinGW do not provide the 'file' command needed by
5218  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5219  # unless we find 'file', for example because we are cross-compiling.
5220  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5221  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5222    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5223    lt_cv_file_magic_cmd='func_win32_libid'
5224  else
5225    # Keep this pattern in sync with the one in func_win32_libid.
5226    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5227    lt_cv_file_magic_cmd='$OBJDUMP -f'
5228  fi
5229  ;;
5230
5231cegcc*)
5232  # use the weaker test based on 'objdump'. See mingw*.
5233  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5234  lt_cv_file_magic_cmd='$OBJDUMP -f'
5235  ;;
5236
5237darwin* | rhapsody*)
5238  lt_cv_deplibs_check_method=pass_all
5239  ;;
5240
5241freebsd* | dragonfly*)
5242  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5243    case $host_cpu in
5244    i*86 )
5245      # Not sure whether the presence of OpenBSD here was a mistake.
5246      # Let's accept both of them until this is cleared up.
5247      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5248      lt_cv_file_magic_cmd=/usr/bin/file
5249      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5250      ;;
5251    esac
5252  else
5253    lt_cv_deplibs_check_method=pass_all
5254  fi
5255  ;;
5256
5257haiku*)
5258  lt_cv_deplibs_check_method=pass_all
5259  ;;
5260
5261hpux10.20* | hpux11*)
5262  lt_cv_file_magic_cmd=/usr/bin/file
5263  case $host_cpu in
5264  ia64*)
5265    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5266    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5267    ;;
5268  hppa*64*)
5269    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]'
5270    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5271    ;;
5272  *)
5273    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5274    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5275    ;;
5276  esac
5277  ;;
5278
5279interix[3-9]*)
5280  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5281  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5282  ;;
5283
5284irix5* | irix6* | nonstopux*)
5285  case $LD in
5286  *-32|*"-32 ") libmagic=32-bit;;
5287  *-n32|*"-n32 ") libmagic=N32;;
5288  *-64|*"-64 ") libmagic=64-bit;;
5289  *) libmagic=never-match;;
5290  esac
5291  lt_cv_deplibs_check_method=pass_all
5292  ;;
5293
5294# This must be glibc/ELF.
5295linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5296  lt_cv_deplibs_check_method=pass_all
5297  ;;
5298
5299netbsd* | netbsdelf*-gnu)
5300  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5301    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5302  else
5303    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5304  fi
5305  ;;
5306
5307newos6*)
5308  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5309  lt_cv_file_magic_cmd=/usr/bin/file
5310  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5311  ;;
5312
5313*nto* | *qnx*)
5314  lt_cv_deplibs_check_method=pass_all
5315  ;;
5316
5317openbsd*)
5318  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5319    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5320  else
5321    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322  fi
5323  ;;
5324
5325osf3* | osf4* | osf5*)
5326  lt_cv_deplibs_check_method=pass_all
5327  ;;
5328
5329rdos*)
5330  lt_cv_deplibs_check_method=pass_all
5331  ;;
5332
5333solaris*)
5334  lt_cv_deplibs_check_method=pass_all
5335  ;;
5336
5337sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5338  lt_cv_deplibs_check_method=pass_all
5339  ;;
5340
5341sysv4 | sysv4.3*)
5342  case $host_vendor in
5343  motorola)
5344    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]'
5345    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5346    ;;
5347  ncr)
5348    lt_cv_deplibs_check_method=pass_all
5349    ;;
5350  sequent)
5351    lt_cv_file_magic_cmd='/bin/file'
5352    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5353    ;;
5354  sni)
5355    lt_cv_file_magic_cmd='/bin/file'
5356    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5357    lt_cv_file_magic_test_file=/lib/libc.so
5358    ;;
5359  siemens)
5360    lt_cv_deplibs_check_method=pass_all
5361    ;;
5362  pc)
5363    lt_cv_deplibs_check_method=pass_all
5364    ;;
5365  esac
5366  ;;
5367
5368tpf*)
5369  lt_cv_deplibs_check_method=pass_all
5370  ;;
5371esac
5372
5373fi
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5375$as_echo "$lt_cv_deplibs_check_method" >&6; }
5376
5377file_magic_glob=
5378want_nocaseglob=no
5379if test "$build" = "$host"; then
5380  case $host_os in
5381  mingw* | pw32*)
5382    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5383      want_nocaseglob=yes
5384    else
5385      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5386    fi
5387    ;;
5388  esac
5389fi
5390
5391file_magic_cmd=$lt_cv_file_magic_cmd
5392deplibs_check_method=$lt_cv_deplibs_check_method
5393test -z "$deplibs_check_method" && deplibs_check_method=unknown
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416if test -n "$ac_tool_prefix"; then
5417  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5418set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420$as_echo_n "checking for $ac_word... " >&6; }
5421if ${ac_cv_prog_DLLTOOL+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  if test -n "$DLLTOOL"; then
5425  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5426else
5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430  IFS=$as_save_IFS
5431  test -z "$as_dir" && as_dir=.
5432    for ac_exec_ext in '' $ac_executable_extensions; do
5433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436    break 2
5437  fi
5438done
5439  done
5440IFS=$as_save_IFS
5441
5442fi
5443fi
5444DLLTOOL=$ac_cv_prog_DLLTOOL
5445if test -n "$DLLTOOL"; then
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5447$as_echo "$DLLTOOL" >&6; }
5448else
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
5451fi
5452
5453
5454fi
5455if test -z "$ac_cv_prog_DLLTOOL"; then
5456  ac_ct_DLLTOOL=$DLLTOOL
5457  # Extract the first word of "dlltool", so it can be a program name with args.
5458set dummy dlltool; ac_word=$2
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460$as_echo_n "checking for $ac_word... " >&6; }
5461if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5462  $as_echo_n "(cached) " >&6
5463else
5464  if test -n "$ac_ct_DLLTOOL"; then
5465  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479  done
5480IFS=$as_save_IFS
5481
5482fi
5483fi
5484ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5485if test -n "$ac_ct_DLLTOOL"; then
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5487$as_echo "$ac_ct_DLLTOOL" >&6; }
5488else
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491fi
5492
5493  if test "x$ac_ct_DLLTOOL" = x; then
5494    DLLTOOL="false"
5495  else
5496    case $cross_compiling:$ac_tool_warned in
5497yes:)
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500ac_tool_warned=yes ;;
5501esac
5502    DLLTOOL=$ac_ct_DLLTOOL
5503  fi
5504else
5505  DLLTOOL="$ac_cv_prog_DLLTOOL"
5506fi
5507
5508test -z "$DLLTOOL" && DLLTOOL=dlltool
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5520$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5521if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  lt_cv_sharedlib_from_linklib_cmd='unknown'
5525
5526case $host_os in
5527cygwin* | mingw* | pw32* | cegcc*)
5528  # two different shell functions defined in ltmain.sh
5529  # decide which to use based on capabilities of $DLLTOOL
5530  case `$DLLTOOL --help 2>&1` in
5531  *--identify-strict*)
5532    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5533    ;;
5534  *)
5535    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5536    ;;
5537  esac
5538  ;;
5539*)
5540  # fallback: assume linklib IS sharedlib
5541  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5542  ;;
5543esac
5544
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5547$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5548sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5549test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5550
5551
5552
5553
5554
5555
5556
5557
5558if test -n "$ac_tool_prefix"; then
5559  for ac_prog in ar
5560  do
5561    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5562set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564$as_echo_n "checking for $ac_word... " >&6; }
5565if ${ac_cv_prog_AR+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  if test -n "$AR"; then
5569  ac_cv_prog_AR="$AR" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574  IFS=$as_save_IFS
5575  test -z "$as_dir" && as_dir=.
5576    for ac_exec_ext in '' $ac_executable_extensions; do
5577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580    break 2
5581  fi
5582done
5583  done
5584IFS=$as_save_IFS
5585
5586fi
5587fi
5588AR=$ac_cv_prog_AR
5589if test -n "$AR"; then
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5591$as_echo "$AR" >&6; }
5592else
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594$as_echo "no" >&6; }
5595fi
5596
5597
5598    test -n "$AR" && break
5599  done
5600fi
5601if test -z "$AR"; then
5602  ac_ct_AR=$AR
5603  for ac_prog in ar
5604do
5605  # Extract the first word of "$ac_prog", so it can be a program name with args.
5606set dummy $ac_prog; ac_word=$2
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608$as_echo_n "checking for $ac_word... " >&6; }
5609if ${ac_cv_prog_ac_ct_AR+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612  if test -n "$ac_ct_AR"; then
5613  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618  IFS=$as_save_IFS
5619  test -z "$as_dir" && as_dir=.
5620    for ac_exec_ext in '' $ac_executable_extensions; do
5621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622    ac_cv_prog_ac_ct_AR="$ac_prog"
5623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624    break 2
5625  fi
5626done
5627  done
5628IFS=$as_save_IFS
5629
5630fi
5631fi
5632ac_ct_AR=$ac_cv_prog_ac_ct_AR
5633if test -n "$ac_ct_AR"; then
5634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5635$as_echo "$ac_ct_AR" >&6; }
5636else
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638$as_echo "no" >&6; }
5639fi
5640
5641
5642  test -n "$ac_ct_AR" && break
5643done
5644
5645  if test "x$ac_ct_AR" = x; then
5646    AR="false"
5647  else
5648    case $cross_compiling:$ac_tool_warned in
5649yes:)
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652ac_tool_warned=yes ;;
5653esac
5654    AR=$ac_ct_AR
5655  fi
5656fi
5657
5658: ${AR=ar}
5659: ${AR_FLAGS=cru}
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5672$as_echo_n "checking for archiver @FILE support... " >&6; }
5673if ${lt_cv_ar_at_file+:} false; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  lt_cv_ar_at_file=no
5677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h.  */
5679
5680int
5681main ()
5682{
5683
5684  ;
5685  return 0;
5686}
5687_ACEOF
5688if ac_fn_c_try_compile "$LINENO"; then :
5689  echo conftest.$ac_objext > conftest.lst
5690      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5691      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5692  (eval $lt_ar_try) 2>&5
5693  ac_status=$?
5694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695  test $ac_status = 0; }
5696      if test "$ac_status" -eq 0; then
5697	# Ensure the archiver fails upon bogus file names.
5698	rm -f conftest.$ac_objext libconftest.a
5699	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5700  (eval $lt_ar_try) 2>&5
5701  ac_status=$?
5702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703  test $ac_status = 0; }
5704	if test "$ac_status" -ne 0; then
5705          lt_cv_ar_at_file=@
5706        fi
5707      fi
5708      rm -f conftest.* libconftest.a
5709
5710fi
5711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712
5713fi
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5715$as_echo "$lt_cv_ar_at_file" >&6; }
5716
5717if test "x$lt_cv_ar_at_file" = xno; then
5718  archiver_list_spec=
5719else
5720  archiver_list_spec=$lt_cv_ar_at_file
5721fi
5722
5723
5724
5725
5726
5727
5728
5729if test -n "$ac_tool_prefix"; then
5730  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5731set dummy ${ac_tool_prefix}strip; ac_word=$2
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
5734if ${ac_cv_prog_STRIP+:} false; then :
5735  $as_echo_n "(cached) " >&6
5736else
5737  if test -n "$STRIP"; then
5738  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743  IFS=$as_save_IFS
5744  test -z "$as_dir" && as_dir=.
5745    for ac_exec_ext in '' $ac_executable_extensions; do
5746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749    break 2
5750  fi
5751done
5752  done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757STRIP=$ac_cv_prog_STRIP
5758if test -n "$STRIP"; then
5759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5760$as_echo "$STRIP" >&6; }
5761else
5762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
5764fi
5765
5766
5767fi
5768if test -z "$ac_cv_prog_STRIP"; then
5769  ac_ct_STRIP=$STRIP
5770  # Extract the first word of "strip", so it can be a program name with args.
5771set dummy strip; ac_word=$2
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
5774if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777  if test -n "$ac_ct_STRIP"; then
5778  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783  IFS=$as_save_IFS
5784  test -z "$as_dir" && as_dir=.
5785    for ac_exec_ext in '' $ac_executable_extensions; do
5786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787    ac_cv_prog_ac_ct_STRIP="strip"
5788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789    break 2
5790  fi
5791done
5792  done
5793IFS=$as_save_IFS
5794
5795fi
5796fi
5797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5798if test -n "$ac_ct_STRIP"; then
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5800$as_echo "$ac_ct_STRIP" >&6; }
5801else
5802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
5804fi
5805
5806  if test "x$ac_ct_STRIP" = x; then
5807    STRIP=":"
5808  else
5809    case $cross_compiling:$ac_tool_warned in
5810yes:)
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813ac_tool_warned=yes ;;
5814esac
5815    STRIP=$ac_ct_STRIP
5816  fi
5817else
5818  STRIP="$ac_cv_prog_STRIP"
5819fi
5820
5821test -z "$STRIP" && STRIP=:
5822
5823
5824
5825
5826
5827
5828if test -n "$ac_tool_prefix"; then
5829  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5830set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832$as_echo_n "checking for $ac_word... " >&6; }
5833if ${ac_cv_prog_RANLIB+:} false; then :
5834  $as_echo_n "(cached) " >&6
5835else
5836  if test -n "$RANLIB"; then
5837  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5838else
5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842  IFS=$as_save_IFS
5843  test -z "$as_dir" && as_dir=.
5844    for ac_exec_ext in '' $ac_executable_extensions; do
5845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848    break 2
5849  fi
5850done
5851  done
5852IFS=$as_save_IFS
5853
5854fi
5855fi
5856RANLIB=$ac_cv_prog_RANLIB
5857if test -n "$RANLIB"; then
5858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5859$as_echo "$RANLIB" >&6; }
5860else
5861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862$as_echo "no" >&6; }
5863fi
5864
5865
5866fi
5867if test -z "$ac_cv_prog_RANLIB"; then
5868  ac_ct_RANLIB=$RANLIB
5869  # Extract the first word of "ranlib", so it can be a program name with args.
5870set dummy ranlib; ac_word=$2
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872$as_echo_n "checking for $ac_word... " >&6; }
5873if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  if test -n "$ac_ct_RANLIB"; then
5877  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882  IFS=$as_save_IFS
5883  test -z "$as_dir" && as_dir=.
5884    for ac_exec_ext in '' $ac_executable_extensions; do
5885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886    ac_cv_prog_ac_ct_RANLIB="ranlib"
5887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888    break 2
5889  fi
5890done
5891  done
5892IFS=$as_save_IFS
5893
5894fi
5895fi
5896ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5897if test -n "$ac_ct_RANLIB"; then
5898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5899$as_echo "$ac_ct_RANLIB" >&6; }
5900else
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
5903fi
5904
5905  if test "x$ac_ct_RANLIB" = x; then
5906    RANLIB=":"
5907  else
5908    case $cross_compiling:$ac_tool_warned in
5909yes:)
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912ac_tool_warned=yes ;;
5913esac
5914    RANLIB=$ac_ct_RANLIB
5915  fi
5916else
5917  RANLIB="$ac_cv_prog_RANLIB"
5918fi
5919
5920test -z "$RANLIB" && RANLIB=:
5921
5922
5923
5924
5925
5926
5927# Determine commands to create old-style static archives.
5928old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5929old_postinstall_cmds='chmod 644 $oldlib'
5930old_postuninstall_cmds=
5931
5932if test -n "$RANLIB"; then
5933  case $host_os in
5934  openbsd*)
5935    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5936    ;;
5937  *)
5938    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5939    ;;
5940  esac
5941  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5942fi
5943
5944case $host_os in
5945  darwin*)
5946    lock_old_archive_extraction=yes ;;
5947  *)
5948    lock_old_archive_extraction=no ;;
5949esac
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989# If no C compiler was specified, use CC.
5990LTCC=${LTCC-"$CC"}
5991
5992# If no C compiler flags were specified, use CFLAGS.
5993LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5994
5995# Allow CC to be a program name with arguments.
5996compiler=$CC
5997
5998
5999# Check for command to grab the raw symbol name followed by C symbol from nm.
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6001$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6002if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6003  $as_echo_n "(cached) " >&6
6004else
6005
6006# These are sane defaults that work on at least a few old systems.
6007# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6008
6009# Character class describing NM global symbol codes.
6010symcode='[BCDEGRST]'
6011
6012# Regexp to match symbols that can be accessed directly from C.
6013sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6014
6015# Define system-specific variables.
6016case $host_os in
6017aix*)
6018  symcode='[BCDT]'
6019  ;;
6020cygwin* | mingw* | pw32* | cegcc*)
6021  symcode='[ABCDGISTW]'
6022  ;;
6023hpux*)
6024  if test "$host_cpu" = ia64; then
6025    symcode='[ABCDEGRST]'
6026  fi
6027  ;;
6028irix* | nonstopux*)
6029  symcode='[BCDEGRST]'
6030  ;;
6031osf*)
6032  symcode='[BCDEGQRST]'
6033  ;;
6034solaris*)
6035  symcode='[BDRT]'
6036  ;;
6037sco3.2v5*)
6038  symcode='[DT]'
6039  ;;
6040sysv4.2uw2*)
6041  symcode='[DT]'
6042  ;;
6043sysv5* | sco5v6* | unixware* | OpenUNIX*)
6044  symcode='[ABDT]'
6045  ;;
6046sysv4)
6047  symcode='[DFNSTU]'
6048  ;;
6049esac
6050
6051# If we're using GNU nm, then use its standard symbol codes.
6052case `$NM -V 2>&1` in
6053*GNU* | *'with BFD'*)
6054  symcode='[ABCDGIRSTW]' ;;
6055esac
6056
6057# Transform an extracted symbol line into a proper C declaration.
6058# Some systems (esp. on ia64) link data and code symbols differently,
6059# so use this general approach.
6060lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6061
6062# Transform an extracted symbol line into symbol name and symbol address
6063lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6064lt_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'"
6065
6066# Handle CRLF in mingw tool chain
6067opt_cr=
6068case $build_os in
6069mingw*)
6070  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6071  ;;
6072esac
6073
6074# Try without a prefix underscore, then with it.
6075for ac_symprfx in "" "_"; do
6076
6077  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6078  symxfrm="\\1 $ac_symprfx\\2 \\2"
6079
6080  # Write the raw and C identifiers.
6081  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6082    # Fake it for dumpbin and say T for any non-static function
6083    # and D for any global variable.
6084    # Also find C++ and __fastcall symbols from MSVC++,
6085    # which start with @ or ?.
6086    lt_cv_sys_global_symbol_pipe="$AWK '"\
6087"     {last_section=section; section=\$ 3};"\
6088"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6089"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6090"     \$ 0!~/External *\|/{next};"\
6091"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6092"     {if(hide[section]) next};"\
6093"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6094"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6095"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6096"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6097"     ' prfx=^$ac_symprfx"
6098  else
6099    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6100  fi
6101  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6102
6103  # Check to see that the pipe works correctly.
6104  pipe_works=no
6105
6106  rm -f conftest*
6107  cat > conftest.$ac_ext <<_LT_EOF
6108#ifdef __cplusplus
6109extern "C" {
6110#endif
6111char nm_test_var;
6112void nm_test_func(void);
6113void nm_test_func(void){}
6114#ifdef __cplusplus
6115}
6116#endif
6117int main(){nm_test_var='a';nm_test_func();return(0);}
6118_LT_EOF
6119
6120  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6121  (eval $ac_compile) 2>&5
6122  ac_status=$?
6123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6124  test $ac_status = 0; }; then
6125    # Now try to grab the symbols.
6126    nlist=conftest.nm
6127    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6128  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6129  ac_status=$?
6130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6131  test $ac_status = 0; } && test -s "$nlist"; then
6132      # Try sorting and uniquifying the output.
6133      if sort "$nlist" | uniq > "$nlist"T; then
6134	mv -f "$nlist"T "$nlist"
6135      else
6136	rm -f "$nlist"T
6137      fi
6138
6139      # Make sure that we snagged all the symbols we need.
6140      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6141	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6142	  cat <<_LT_EOF > conftest.$ac_ext
6143/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6144#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6145/* DATA imports from DLLs on WIN32 con't be const, because runtime
6146   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6147# define LT_DLSYM_CONST
6148#elif defined(__osf__)
6149/* This system does not cope well with relocations in const data.  */
6150# define LT_DLSYM_CONST
6151#else
6152# define LT_DLSYM_CONST const
6153#endif
6154
6155#ifdef __cplusplus
6156extern "C" {
6157#endif
6158
6159_LT_EOF
6160	  # Now generate the symbol file.
6161	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6162
6163	  cat <<_LT_EOF >> conftest.$ac_ext
6164
6165/* The mapping between symbol names and symbols.  */
6166LT_DLSYM_CONST struct {
6167  const char *name;
6168  void       *address;
6169}
6170lt__PROGRAM__LTX_preloaded_symbols[] =
6171{
6172  { "@PROGRAM@", (void *) 0 },
6173_LT_EOF
6174	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6175	  cat <<\_LT_EOF >> conftest.$ac_ext
6176  {0, (void *) 0}
6177};
6178
6179/* This works around a problem in FreeBSD linker */
6180#ifdef FREEBSD_WORKAROUND
6181static const void *lt_preloaded_setup() {
6182  return lt__PROGRAM__LTX_preloaded_symbols;
6183}
6184#endif
6185
6186#ifdef __cplusplus
6187}
6188#endif
6189_LT_EOF
6190	  # Now try linking the two files.
6191	  mv conftest.$ac_objext conftstm.$ac_objext
6192	  lt_globsym_save_LIBS=$LIBS
6193	  lt_globsym_save_CFLAGS=$CFLAGS
6194	  LIBS="conftstm.$ac_objext"
6195	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6196	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6197  (eval $ac_link) 2>&5
6198  ac_status=$?
6199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6201	    pipe_works=yes
6202	  fi
6203	  LIBS=$lt_globsym_save_LIBS
6204	  CFLAGS=$lt_globsym_save_CFLAGS
6205	else
6206	  echo "cannot find nm_test_func in $nlist" >&5
6207	fi
6208      else
6209	echo "cannot find nm_test_var in $nlist" >&5
6210      fi
6211    else
6212      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6213    fi
6214  else
6215    echo "$progname: failed program was:" >&5
6216    cat conftest.$ac_ext >&5
6217  fi
6218  rm -rf conftest* conftst*
6219
6220  # Do not use the global_symbol_pipe unless it works.
6221  if test "$pipe_works" = yes; then
6222    break
6223  else
6224    lt_cv_sys_global_symbol_pipe=
6225  fi
6226done
6227
6228fi
6229
6230if test -z "$lt_cv_sys_global_symbol_pipe"; then
6231  lt_cv_sys_global_symbol_to_cdecl=
6232fi
6233if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6235$as_echo "failed" >&6; }
6236else
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6238$as_echo "ok" >&6; }
6239fi
6240
6241# Response file support.
6242if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6243  nm_file_list_spec='@'
6244elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6245  nm_file_list_spec='@'
6246fi
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6275$as_echo_n "checking for sysroot... " >&6; }
6276
6277# Check whether --with-sysroot was given.
6278if test "${with_sysroot+set}" = set; then :
6279  withval=$with_sysroot;
6280else
6281  with_sysroot=no
6282fi
6283
6284
6285lt_sysroot=
6286case ${with_sysroot} in #(
6287 yes)
6288   if test "$GCC" = yes; then
6289     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6290   fi
6291   ;; #(
6292 /*)
6293   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6294   ;; #(
6295 no|'')
6296   ;; #(
6297 *)
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6299$as_echo "${with_sysroot}" >&6; }
6300   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6301   ;;
6302esac
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6305$as_echo "${lt_sysroot:-no}" >&6; }
6306
6307
6308
6309
6310
6311# Check whether --enable-libtool-lock was given.
6312if test "${enable_libtool_lock+set}" = set; then :
6313  enableval=$enable_libtool_lock;
6314fi
6315
6316test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6317
6318# Some flags need to be propagated to the compiler or linker for good
6319# libtool support.
6320case $host in
6321ia64-*-hpux*)
6322  # Find out which ABI we are using.
6323  echo 'int i;' > conftest.$ac_ext
6324  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6325  (eval $ac_compile) 2>&5
6326  ac_status=$?
6327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328  test $ac_status = 0; }; then
6329    case `/usr/bin/file conftest.$ac_objext` in
6330      *ELF-32*)
6331	HPUX_IA64_MODE="32"
6332	;;
6333      *ELF-64*)
6334	HPUX_IA64_MODE="64"
6335	;;
6336    esac
6337  fi
6338  rm -rf conftest*
6339  ;;
6340*-*-irix6*)
6341  # Find out which ABI we are using.
6342  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6343  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6344  (eval $ac_compile) 2>&5
6345  ac_status=$?
6346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347  test $ac_status = 0; }; then
6348    if test "$lt_cv_prog_gnu_ld" = yes; then
6349      case `/usr/bin/file conftest.$ac_objext` in
6350	*32-bit*)
6351	  LD="${LD-ld} -melf32bsmip"
6352	  ;;
6353	*N32*)
6354	  LD="${LD-ld} -melf32bmipn32"
6355	  ;;
6356	*64-bit*)
6357	  LD="${LD-ld} -melf64bmip"
6358	;;
6359      esac
6360    else
6361      case `/usr/bin/file conftest.$ac_objext` in
6362	*32-bit*)
6363	  LD="${LD-ld} -32"
6364	  ;;
6365	*N32*)
6366	  LD="${LD-ld} -n32"
6367	  ;;
6368	*64-bit*)
6369	  LD="${LD-ld} -64"
6370	  ;;
6371      esac
6372    fi
6373  fi
6374  rm -rf conftest*
6375  ;;
6376
6377x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6378s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6379  # Find out which ABI we are using.
6380  echo 'int i;' > conftest.$ac_ext
6381  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6382  (eval $ac_compile) 2>&5
6383  ac_status=$?
6384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6385  test $ac_status = 0; }; then
6386    case `/usr/bin/file conftest.o` in
6387      *32-bit*)
6388	case $host in
6389	  x86_64-*kfreebsd*-gnu)
6390	    LD="${LD-ld} -m elf_i386_fbsd"
6391	    ;;
6392	  x86_64-*linux*)
6393	    case `/usr/bin/file conftest.o` in
6394	      *x86-64*)
6395		LD="${LD-ld} -m elf32_x86_64"
6396		;;
6397	      *)
6398		LD="${LD-ld} -m elf_i386"
6399		;;
6400	    esac
6401	    ;;
6402	  powerpc64le-*)
6403	    LD="${LD-ld} -m elf32lppclinux"
6404	    ;;
6405	  powerpc64-*)
6406	    LD="${LD-ld} -m elf32ppclinux"
6407	    ;;
6408	  s390x-*linux*)
6409	    LD="${LD-ld} -m elf_s390"
6410	    ;;
6411	  sparc64-*linux*)
6412	    LD="${LD-ld} -m elf32_sparc"
6413	    ;;
6414	esac
6415	;;
6416      *64-bit*)
6417	case $host in
6418	  x86_64-*kfreebsd*-gnu)
6419	    LD="${LD-ld} -m elf_x86_64_fbsd"
6420	    ;;
6421	  x86_64-*linux*)
6422	    LD="${LD-ld} -m elf_x86_64"
6423	    ;;
6424	  powerpcle-*)
6425	    LD="${LD-ld} -m elf64lppc"
6426	    ;;
6427	  powerpc-*)
6428	    LD="${LD-ld} -m elf64ppc"
6429	    ;;
6430	  s390*-*linux*|s390*-*tpf*)
6431	    LD="${LD-ld} -m elf64_s390"
6432	    ;;
6433	  sparc*-*linux*)
6434	    LD="${LD-ld} -m elf64_sparc"
6435	    ;;
6436	esac
6437	;;
6438    esac
6439  fi
6440  rm -rf conftest*
6441  ;;
6442
6443*-*-sco3.2v5*)
6444  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6445  SAVE_CFLAGS="$CFLAGS"
6446  CFLAGS="$CFLAGS -belf"
6447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6448$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6449if ${lt_cv_cc_needs_belf+:} false; then :
6450  $as_echo_n "(cached) " >&6
6451else
6452  ac_ext=c
6453ac_cpp='$CPP $CPPFLAGS'
6454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456ac_compiler_gnu=$ac_cv_c_compiler_gnu
6457
6458     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h.  */
6460
6461int
6462main ()
6463{
6464
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469if ac_fn_c_try_link "$LINENO"; then :
6470  lt_cv_cc_needs_belf=yes
6471else
6472  lt_cv_cc_needs_belf=no
6473fi
6474rm -f core conftest.err conftest.$ac_objext \
6475    conftest$ac_exeext conftest.$ac_ext
6476     ac_ext=c
6477ac_cpp='$CPP $CPPFLAGS'
6478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481
6482fi
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6484$as_echo "$lt_cv_cc_needs_belf" >&6; }
6485  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6486    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6487    CFLAGS="$SAVE_CFLAGS"
6488  fi
6489  ;;
6490*-*solaris*)
6491  # Find out which ABI we are using.
6492  echo 'int i;' > conftest.$ac_ext
6493  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6494  (eval $ac_compile) 2>&5
6495  ac_status=$?
6496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497  test $ac_status = 0; }; then
6498    case `/usr/bin/file conftest.o` in
6499    *64-bit*)
6500      case $lt_cv_prog_gnu_ld in
6501      yes*)
6502        case $host in
6503        i?86-*-solaris*)
6504          LD="${LD-ld} -m elf_x86_64"
6505          ;;
6506        sparc*-*-solaris*)
6507          LD="${LD-ld} -m elf64_sparc"
6508          ;;
6509        esac
6510        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6511        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6512          LD="${LD-ld}_sol2"
6513        fi
6514        ;;
6515      *)
6516	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6517	  LD="${LD-ld} -64"
6518	fi
6519	;;
6520      esac
6521      ;;
6522    esac
6523  fi
6524  rm -rf conftest*
6525  ;;
6526esac
6527
6528need_locks="$enable_libtool_lock"
6529
6530if test -n "$ac_tool_prefix"; then
6531  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6532set dummy ${ac_tool_prefix}mt; ac_word=$2
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534$as_echo_n "checking for $ac_word... " >&6; }
6535if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6536  $as_echo_n "(cached) " >&6
6537else
6538  if test -n "$MANIFEST_TOOL"; then
6539  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544  IFS=$as_save_IFS
6545  test -z "$as_dir" && as_dir=.
6546    for ac_exec_ext in '' $ac_executable_extensions; do
6547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550    break 2
6551  fi
6552done
6553  done
6554IFS=$as_save_IFS
6555
6556fi
6557fi
6558MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6559if test -n "$MANIFEST_TOOL"; then
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6561$as_echo "$MANIFEST_TOOL" >&6; }
6562else
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564$as_echo "no" >&6; }
6565fi
6566
6567
6568fi
6569if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6570  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6571  # Extract the first word of "mt", so it can be a program name with args.
6572set dummy mt; ac_word=$2
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574$as_echo_n "checking for $ac_word... " >&6; }
6575if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  if test -n "$ac_ct_MANIFEST_TOOL"; then
6579  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584  IFS=$as_save_IFS
6585  test -z "$as_dir" && as_dir=.
6586    for ac_exec_ext in '' $ac_executable_extensions; do
6587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590    break 2
6591  fi
6592done
6593  done
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6599if test -n "$ac_ct_MANIFEST_TOOL"; then
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6601$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6602else
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
6605fi
6606
6607  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6608    MANIFEST_TOOL=":"
6609  else
6610    case $cross_compiling:$ac_tool_warned in
6611yes:)
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614ac_tool_warned=yes ;;
6615esac
6616    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6617  fi
6618else
6619  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6620fi
6621
6622test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6624$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6625if ${lt_cv_path_mainfest_tool+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  lt_cv_path_mainfest_tool=no
6629  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6630  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6631  cat conftest.err >&5
6632  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6633    lt_cv_path_mainfest_tool=yes
6634  fi
6635  rm -f conftest*
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6638$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6639if test "x$lt_cv_path_mainfest_tool" != xyes; then
6640  MANIFEST_TOOL=:
6641fi
6642
6643
6644
6645
6646
6647
6648  case $host_os in
6649    rhapsody* | darwin*)
6650    if test -n "$ac_tool_prefix"; then
6651  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6652set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654$as_echo_n "checking for $ac_word... " >&6; }
6655if ${ac_cv_prog_DSYMUTIL+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  if test -n "$DSYMUTIL"; then
6659  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664  IFS=$as_save_IFS
6665  test -z "$as_dir" && as_dir=.
6666    for ac_exec_ext in '' $ac_executable_extensions; do
6667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673  done
6674IFS=$as_save_IFS
6675
6676fi
6677fi
6678DSYMUTIL=$ac_cv_prog_DSYMUTIL
6679if test -n "$DSYMUTIL"; then
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6681$as_echo "$DSYMUTIL" >&6; }
6682else
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687
6688fi
6689if test -z "$ac_cv_prog_DSYMUTIL"; then
6690  ac_ct_DSYMUTIL=$DSYMUTIL
6691  # Extract the first word of "dsymutil", so it can be a program name with args.
6692set dummy dsymutil; ac_word=$2
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694$as_echo_n "checking for $ac_word... " >&6; }
6695if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  if test -n "$ac_ct_DSYMUTIL"; then
6699  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704  IFS=$as_save_IFS
6705  test -z "$as_dir" && as_dir=.
6706    for ac_exec_ext in '' $ac_executable_extensions; do
6707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710    break 2
6711  fi
6712done
6713  done
6714IFS=$as_save_IFS
6715
6716fi
6717fi
6718ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6719if test -n "$ac_ct_DSYMUTIL"; then
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6721$as_echo "$ac_ct_DSYMUTIL" >&6; }
6722else
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724$as_echo "no" >&6; }
6725fi
6726
6727  if test "x$ac_ct_DSYMUTIL" = x; then
6728    DSYMUTIL=":"
6729  else
6730    case $cross_compiling:$ac_tool_warned in
6731yes:)
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734ac_tool_warned=yes ;;
6735esac
6736    DSYMUTIL=$ac_ct_DSYMUTIL
6737  fi
6738else
6739  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6740fi
6741
6742    if test -n "$ac_tool_prefix"; then
6743  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6744set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746$as_echo_n "checking for $ac_word... " >&6; }
6747if ${ac_cv_prog_NMEDIT+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  if test -n "$NMEDIT"; then
6751  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6752else
6753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756  IFS=$as_save_IFS
6757  test -z "$as_dir" && as_dir=.
6758    for ac_exec_ext in '' $ac_executable_extensions; do
6759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6760    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762    break 2
6763  fi
6764done
6765  done
6766IFS=$as_save_IFS
6767
6768fi
6769fi
6770NMEDIT=$ac_cv_prog_NMEDIT
6771if test -n "$NMEDIT"; then
6772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6773$as_echo "$NMEDIT" >&6; }
6774else
6775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776$as_echo "no" >&6; }
6777fi
6778
6779
6780fi
6781if test -z "$ac_cv_prog_NMEDIT"; then
6782  ac_ct_NMEDIT=$NMEDIT
6783  # Extract the first word of "nmedit", so it can be a program name with args.
6784set dummy nmedit; ac_word=$2
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786$as_echo_n "checking for $ac_word... " >&6; }
6787if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790  if test -n "$ac_ct_NMEDIT"; then
6791  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6792else
6793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796  IFS=$as_save_IFS
6797  test -z "$as_dir" && as_dir=.
6798    for ac_exec_ext in '' $ac_executable_extensions; do
6799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6800    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802    break 2
6803  fi
6804done
6805  done
6806IFS=$as_save_IFS
6807
6808fi
6809fi
6810ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6811if test -n "$ac_ct_NMEDIT"; then
6812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6813$as_echo "$ac_ct_NMEDIT" >&6; }
6814else
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816$as_echo "no" >&6; }
6817fi
6818
6819  if test "x$ac_ct_NMEDIT" = x; then
6820    NMEDIT=":"
6821  else
6822    case $cross_compiling:$ac_tool_warned in
6823yes:)
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6826ac_tool_warned=yes ;;
6827esac
6828    NMEDIT=$ac_ct_NMEDIT
6829  fi
6830else
6831  NMEDIT="$ac_cv_prog_NMEDIT"
6832fi
6833
6834    if test -n "$ac_tool_prefix"; then
6835  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6836set dummy ${ac_tool_prefix}lipo; ac_word=$2
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838$as_echo_n "checking for $ac_word... " >&6; }
6839if ${ac_cv_prog_LIPO+:} false; then :
6840  $as_echo_n "(cached) " >&6
6841else
6842  if test -n "$LIPO"; then
6843  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6844else
6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848  IFS=$as_save_IFS
6849  test -z "$as_dir" && as_dir=.
6850    for ac_exec_ext in '' $ac_executable_extensions; do
6851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854    break 2
6855  fi
6856done
6857  done
6858IFS=$as_save_IFS
6859
6860fi
6861fi
6862LIPO=$ac_cv_prog_LIPO
6863if test -n "$LIPO"; then
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6865$as_echo "$LIPO" >&6; }
6866else
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868$as_echo "no" >&6; }
6869fi
6870
6871
6872fi
6873if test -z "$ac_cv_prog_LIPO"; then
6874  ac_ct_LIPO=$LIPO
6875  # Extract the first word of "lipo", so it can be a program name with args.
6876set dummy lipo; ac_word=$2
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878$as_echo_n "checking for $ac_word... " >&6; }
6879if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882  if test -n "$ac_ct_LIPO"; then
6883  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6884else
6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888  IFS=$as_save_IFS
6889  test -z "$as_dir" && as_dir=.
6890    for ac_exec_ext in '' $ac_executable_extensions; do
6891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892    ac_cv_prog_ac_ct_LIPO="lipo"
6893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894    break 2
6895  fi
6896done
6897  done
6898IFS=$as_save_IFS
6899
6900fi
6901fi
6902ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6903if test -n "$ac_ct_LIPO"; then
6904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6905$as_echo "$ac_ct_LIPO" >&6; }
6906else
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908$as_echo "no" >&6; }
6909fi
6910
6911  if test "x$ac_ct_LIPO" = x; then
6912    LIPO=":"
6913  else
6914    case $cross_compiling:$ac_tool_warned in
6915yes:)
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918ac_tool_warned=yes ;;
6919esac
6920    LIPO=$ac_ct_LIPO
6921  fi
6922else
6923  LIPO="$ac_cv_prog_LIPO"
6924fi
6925
6926    if test -n "$ac_tool_prefix"; then
6927  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6928set dummy ${ac_tool_prefix}otool; ac_word=$2
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930$as_echo_n "checking for $ac_word... " >&6; }
6931if ${ac_cv_prog_OTOOL+:} false; then :
6932  $as_echo_n "(cached) " >&6
6933else
6934  if test -n "$OTOOL"; then
6935  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6936else
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940  IFS=$as_save_IFS
6941  test -z "$as_dir" && as_dir=.
6942    for ac_exec_ext in '' $ac_executable_extensions; do
6943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946    break 2
6947  fi
6948done
6949  done
6950IFS=$as_save_IFS
6951
6952fi
6953fi
6954OTOOL=$ac_cv_prog_OTOOL
6955if test -n "$OTOOL"; then
6956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6957$as_echo "$OTOOL" >&6; }
6958else
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960$as_echo "no" >&6; }
6961fi
6962
6963
6964fi
6965if test -z "$ac_cv_prog_OTOOL"; then
6966  ac_ct_OTOOL=$OTOOL
6967  # Extract the first word of "otool", so it can be a program name with args.
6968set dummy otool; ac_word=$2
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970$as_echo_n "checking for $ac_word... " >&6; }
6971if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6972  $as_echo_n "(cached) " >&6
6973else
6974  if test -n "$ac_ct_OTOOL"; then
6975  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6976else
6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980  IFS=$as_save_IFS
6981  test -z "$as_dir" && as_dir=.
6982    for ac_exec_ext in '' $ac_executable_extensions; do
6983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984    ac_cv_prog_ac_ct_OTOOL="otool"
6985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986    break 2
6987  fi
6988done
6989  done
6990IFS=$as_save_IFS
6991
6992fi
6993fi
6994ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6995if test -n "$ac_ct_OTOOL"; then
6996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6997$as_echo "$ac_ct_OTOOL" >&6; }
6998else
6999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000$as_echo "no" >&6; }
7001fi
7002
7003  if test "x$ac_ct_OTOOL" = x; then
7004    OTOOL=":"
7005  else
7006    case $cross_compiling:$ac_tool_warned in
7007yes:)
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010ac_tool_warned=yes ;;
7011esac
7012    OTOOL=$ac_ct_OTOOL
7013  fi
7014else
7015  OTOOL="$ac_cv_prog_OTOOL"
7016fi
7017
7018    if test -n "$ac_tool_prefix"; then
7019  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7020set dummy ${ac_tool_prefix}otool64; ac_word=$2
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022$as_echo_n "checking for $ac_word... " >&6; }
7023if ${ac_cv_prog_OTOOL64+:} false; then :
7024  $as_echo_n "(cached) " >&6
7025else
7026  if test -n "$OTOOL64"; then
7027  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032  IFS=$as_save_IFS
7033  test -z "$as_dir" && as_dir=.
7034    for ac_exec_ext in '' $ac_executable_extensions; do
7035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038    break 2
7039  fi
7040done
7041  done
7042IFS=$as_save_IFS
7043
7044fi
7045fi
7046OTOOL64=$ac_cv_prog_OTOOL64
7047if test -n "$OTOOL64"; then
7048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7049$as_echo "$OTOOL64" >&6; }
7050else
7051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052$as_echo "no" >&6; }
7053fi
7054
7055
7056fi
7057if test -z "$ac_cv_prog_OTOOL64"; then
7058  ac_ct_OTOOL64=$OTOOL64
7059  # Extract the first word of "otool64", so it can be a program name with args.
7060set dummy otool64; ac_word=$2
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062$as_echo_n "checking for $ac_word... " >&6; }
7063if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066  if test -n "$ac_ct_OTOOL64"; then
7067  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072  IFS=$as_save_IFS
7073  test -z "$as_dir" && as_dir=.
7074    for ac_exec_ext in '' $ac_executable_extensions; do
7075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076    ac_cv_prog_ac_ct_OTOOL64="otool64"
7077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078    break 2
7079  fi
7080done
7081  done
7082IFS=$as_save_IFS
7083
7084fi
7085fi
7086ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7087if test -n "$ac_ct_OTOOL64"; then
7088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7089$as_echo "$ac_ct_OTOOL64" >&6; }
7090else
7091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092$as_echo "no" >&6; }
7093fi
7094
7095  if test "x$ac_ct_OTOOL64" = x; then
7096    OTOOL64=":"
7097  else
7098    case $cross_compiling:$ac_tool_warned in
7099yes:)
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102ac_tool_warned=yes ;;
7103esac
7104    OTOOL64=$ac_ct_OTOOL64
7105  fi
7106else
7107  OTOOL64="$ac_cv_prog_OTOOL64"
7108fi
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7137$as_echo_n "checking for -single_module linker flag... " >&6; }
7138if ${lt_cv_apple_cc_single_mod+:} false; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  lt_cv_apple_cc_single_mod=no
7142      if test -z "${LT_MULTI_MODULE}"; then
7143	# By default we will add the -single_module flag. You can override
7144	# by either setting the environment variable LT_MULTI_MODULE
7145	# non-empty at configure time, or by adding -multi_module to the
7146	# link flags.
7147	rm -rf libconftest.dylib*
7148	echo "int foo(void){return 1;}" > conftest.c
7149	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7150-dynamiclib -Wl,-single_module conftest.c" >&5
7151	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7152	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7153        _lt_result=$?
7154	# If there is a non-empty error log, and "single_module"
7155	# appears in it, assume the flag caused a linker warning
7156        if test -s conftest.err && $GREP single_module conftest.err; then
7157	  cat conftest.err >&5
7158	# Otherwise, if the output was created with a 0 exit code from
7159	# the compiler, it worked.
7160	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7161	  lt_cv_apple_cc_single_mod=yes
7162	else
7163	  cat conftest.err >&5
7164	fi
7165	rm -rf libconftest.dylib*
7166	rm -f conftest.*
7167      fi
7168fi
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7170$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7171
7172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7173$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7174if ${lt_cv_ld_exported_symbols_list+:} false; then :
7175  $as_echo_n "(cached) " >&6
7176else
7177  lt_cv_ld_exported_symbols_list=no
7178      save_LDFLAGS=$LDFLAGS
7179      echo "_main" > conftest.sym
7180      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7181      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182/* end confdefs.h.  */
7183
7184int
7185main ()
7186{
7187
7188  ;
7189  return 0;
7190}
7191_ACEOF
7192if ac_fn_c_try_link "$LINENO"; then :
7193  lt_cv_ld_exported_symbols_list=yes
7194else
7195  lt_cv_ld_exported_symbols_list=no
7196fi
7197rm -f core conftest.err conftest.$ac_objext \
7198    conftest$ac_exeext conftest.$ac_ext
7199	LDFLAGS="$save_LDFLAGS"
7200
7201fi
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7203$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7204
7205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7206$as_echo_n "checking for -force_load linker flag... " >&6; }
7207if ${lt_cv_ld_force_load+:} false; then :
7208  $as_echo_n "(cached) " >&6
7209else
7210  lt_cv_ld_force_load=no
7211      cat > conftest.c << _LT_EOF
7212int forced_loaded() { return 2;}
7213_LT_EOF
7214      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7215      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7216      echo "$AR cru libconftest.a conftest.o" >&5
7217      $AR cru libconftest.a conftest.o 2>&5
7218      echo "$RANLIB libconftest.a" >&5
7219      $RANLIB libconftest.a 2>&5
7220      cat > conftest.c << _LT_EOF
7221int main() { return 0;}
7222_LT_EOF
7223      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7224      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7225      _lt_result=$?
7226      if test -s conftest.err && $GREP force_load conftest.err; then
7227	cat conftest.err >&5
7228      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7229	lt_cv_ld_force_load=yes
7230      else
7231	cat conftest.err >&5
7232      fi
7233        rm -f conftest.err libconftest.a conftest conftest.c
7234        rm -rf conftest.dSYM
7235
7236fi
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7238$as_echo "$lt_cv_ld_force_load" >&6; }
7239    case $host_os in
7240    rhapsody* | darwin1.[012])
7241      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7242    darwin1.*)
7243      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7244    darwin*) # darwin 5.x on
7245      # if running on 10.5 or later, the deployment target defaults
7246      # to the OS version, if on x86, and 10.4, the deployment
7247      # target defaults to 10.4. Don't you love it?
7248      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7249	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7250	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7251	10.[012]*)
7252	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7253	10.*)
7254	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7255      esac
7256    ;;
7257  esac
7258    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7259      _lt_dar_single_mod='$single_module'
7260    fi
7261    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7262      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7263    else
7264      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7265    fi
7266    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7267      _lt_dsymutil='~$DSYMUTIL $lib || :'
7268    else
7269      _lt_dsymutil=
7270    fi
7271    ;;
7272  esac
7273
7274ac_ext=c
7275ac_cpp='$CPP $CPPFLAGS'
7276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7280$as_echo_n "checking how to run the C preprocessor... " >&6; }
7281# On Suns, sometimes $CPP names a directory.
7282if test -n "$CPP" && test -d "$CPP"; then
7283  CPP=
7284fi
7285if test -z "$CPP"; then
7286  if ${ac_cv_prog_CPP+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289      # Double quotes because CPP needs to be expanded
7290    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7291    do
7292      ac_preproc_ok=false
7293for ac_c_preproc_warn_flag in '' yes
7294do
7295  # Use a header file that comes with gcc, so configuring glibc
7296  # with a fresh cross-compiler works.
7297  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7298  # <limits.h> exists even on freestanding compilers.
7299  # On the NeXT, cc -E runs the code through the compiler's parser,
7300  # not just through cpp. "Syntax error" is here to catch this case.
7301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302/* end confdefs.h.  */
7303#ifdef __STDC__
7304# include <limits.h>
7305#else
7306# include <assert.h>
7307#endif
7308		     Syntax error
7309_ACEOF
7310if ac_fn_c_try_cpp "$LINENO"; then :
7311
7312else
7313  # Broken: fails on valid input.
7314continue
7315fi
7316rm -f conftest.err conftest.i conftest.$ac_ext
7317
7318  # OK, works on sane cases.  Now check whether nonexistent headers
7319  # can be detected and how.
7320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321/* end confdefs.h.  */
7322#include <ac_nonexistent.h>
7323_ACEOF
7324if ac_fn_c_try_cpp "$LINENO"; then :
7325  # Broken: success on invalid input.
7326continue
7327else
7328  # Passes both tests.
7329ac_preproc_ok=:
7330break
7331fi
7332rm -f conftest.err conftest.i conftest.$ac_ext
7333
7334done
7335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7336rm -f conftest.i conftest.err conftest.$ac_ext
7337if $ac_preproc_ok; then :
7338  break
7339fi
7340
7341    done
7342    ac_cv_prog_CPP=$CPP
7343
7344fi
7345  CPP=$ac_cv_prog_CPP
7346else
7347  ac_cv_prog_CPP=$CPP
7348fi
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7350$as_echo "$CPP" >&6; }
7351ac_preproc_ok=false
7352for ac_c_preproc_warn_flag in '' yes
7353do
7354  # Use a header file that comes with gcc, so configuring glibc
7355  # with a fresh cross-compiler works.
7356  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7357  # <limits.h> exists even on freestanding compilers.
7358  # On the NeXT, cc -E runs the code through the compiler's parser,
7359  # not just through cpp. "Syntax error" is here to catch this case.
7360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h.  */
7362#ifdef __STDC__
7363# include <limits.h>
7364#else
7365# include <assert.h>
7366#endif
7367		     Syntax error
7368_ACEOF
7369if ac_fn_c_try_cpp "$LINENO"; then :
7370
7371else
7372  # Broken: fails on valid input.
7373continue
7374fi
7375rm -f conftest.err conftest.i conftest.$ac_ext
7376
7377  # OK, works on sane cases.  Now check whether nonexistent headers
7378  # can be detected and how.
7379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380/* end confdefs.h.  */
7381#include <ac_nonexistent.h>
7382_ACEOF
7383if ac_fn_c_try_cpp "$LINENO"; then :
7384  # Broken: success on invalid input.
7385continue
7386else
7387  # Passes both tests.
7388ac_preproc_ok=:
7389break
7390fi
7391rm -f conftest.err conftest.i conftest.$ac_ext
7392
7393done
7394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7395rm -f conftest.i conftest.err conftest.$ac_ext
7396if $ac_preproc_ok; then :
7397
7398else
7399  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7401as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7402See \`config.log' for more details" "$LINENO" 5; }
7403fi
7404
7405ac_ext=c
7406ac_cpp='$CPP $CPPFLAGS'
7407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7409ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410
7411
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7413$as_echo_n "checking for ANSI C header files... " >&6; }
7414if ${ac_cv_header_stdc+:} false; then :
7415  $as_echo_n "(cached) " >&6
7416else
7417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418/* end confdefs.h.  */
7419#include <stdlib.h>
7420#include <stdarg.h>
7421#include <string.h>
7422#include <float.h>
7423
7424int
7425main ()
7426{
7427
7428  ;
7429  return 0;
7430}
7431_ACEOF
7432if ac_fn_c_try_compile "$LINENO"; then :
7433  ac_cv_header_stdc=yes
7434else
7435  ac_cv_header_stdc=no
7436fi
7437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438
7439if test $ac_cv_header_stdc = yes; then
7440  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442/* end confdefs.h.  */
7443#include <string.h>
7444
7445_ACEOF
7446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7447  $EGREP "memchr" >/dev/null 2>&1; then :
7448
7449else
7450  ac_cv_header_stdc=no
7451fi
7452rm -f conftest*
7453
7454fi
7455
7456if test $ac_cv_header_stdc = yes; then
7457  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459/* end confdefs.h.  */
7460#include <stdlib.h>
7461
7462_ACEOF
7463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464  $EGREP "free" >/dev/null 2>&1; then :
7465
7466else
7467  ac_cv_header_stdc=no
7468fi
7469rm -f conftest*
7470
7471fi
7472
7473if test $ac_cv_header_stdc = yes; then
7474  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7475  if test "$cross_compiling" = yes; then :
7476  :
7477else
7478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h.  */
7480#include <ctype.h>
7481#include <stdlib.h>
7482#if ((' ' & 0x0FF) == 0x020)
7483# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7484# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7485#else
7486# define ISLOWER(c) \
7487		   (('a' <= (c) && (c) <= 'i') \
7488		     || ('j' <= (c) && (c) <= 'r') \
7489		     || ('s' <= (c) && (c) <= 'z'))
7490# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7491#endif
7492
7493#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7494int
7495main ()
7496{
7497  int i;
7498  for (i = 0; i < 256; i++)
7499    if (XOR (islower (i), ISLOWER (i))
7500	|| toupper (i) != TOUPPER (i))
7501      return 2;
7502  return 0;
7503}
7504_ACEOF
7505if ac_fn_c_try_run "$LINENO"; then :
7506
7507else
7508  ac_cv_header_stdc=no
7509fi
7510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7511  conftest.$ac_objext conftest.beam conftest.$ac_ext
7512fi
7513
7514fi
7515fi
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7517$as_echo "$ac_cv_header_stdc" >&6; }
7518if test $ac_cv_header_stdc = yes; then
7519
7520$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7521
7522fi
7523
7524# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7525for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7526		  inttypes.h stdint.h unistd.h
7527do :
7528  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7529ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7530"
7531if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7532  cat >>confdefs.h <<_ACEOF
7533#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7534_ACEOF
7535
7536fi
7537
7538done
7539
7540
7541for ac_header in dlfcn.h
7542do :
7543  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7544"
7545if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7546  cat >>confdefs.h <<_ACEOF
7547#define HAVE_DLFCN_H 1
7548_ACEOF
7549
7550fi
7551
7552done
7553
7554
7555
7556
7557
7558# Set options
7559
7560
7561
7562        enable_dlopen=no
7563
7564
7565  enable_win32_dll=no
7566
7567
7568            # Check whether --enable-shared was given.
7569if test "${enable_shared+set}" = set; then :
7570  enableval=$enable_shared; p=${PACKAGE-default}
7571    case $enableval in
7572    yes) enable_shared=yes ;;
7573    no) enable_shared=no ;;
7574    *)
7575      enable_shared=no
7576      # Look at the argument we got.  We use all the common list separators.
7577      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7578      for pkg in $enableval; do
7579	IFS="$lt_save_ifs"
7580	if test "X$pkg" = "X$p"; then
7581	  enable_shared=yes
7582	fi
7583      done
7584      IFS="$lt_save_ifs"
7585      ;;
7586    esac
7587else
7588  enable_shared=yes
7589fi
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599  # Check whether --enable-static was given.
7600if test "${enable_static+set}" = set; then :
7601  enableval=$enable_static; p=${PACKAGE-default}
7602    case $enableval in
7603    yes) enable_static=yes ;;
7604    no) enable_static=no ;;
7605    *)
7606     enable_static=no
7607      # Look at the argument we got.  We use all the common list separators.
7608      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7609      for pkg in $enableval; do
7610	IFS="$lt_save_ifs"
7611	if test "X$pkg" = "X$p"; then
7612	  enable_static=yes
7613	fi
7614      done
7615      IFS="$lt_save_ifs"
7616      ;;
7617    esac
7618else
7619  enable_static=yes
7620fi
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631# Check whether --with-pic was given.
7632if test "${with_pic+set}" = set; then :
7633  withval=$with_pic; lt_p=${PACKAGE-default}
7634    case $withval in
7635    yes|no) pic_mode=$withval ;;
7636    *)
7637      pic_mode=default
7638      # Look at the argument we got.  We use all the common list separators.
7639      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7640      for lt_pkg in $withval; do
7641	IFS="$lt_save_ifs"
7642	if test "X$lt_pkg" = "X$lt_p"; then
7643	  pic_mode=yes
7644	fi
7645      done
7646      IFS="$lt_save_ifs"
7647      ;;
7648    esac
7649else
7650  pic_mode=default
7651fi
7652
7653
7654test -z "$pic_mode" && pic_mode=default
7655
7656
7657
7658
7659
7660
7661
7662  # Check whether --enable-fast-install was given.
7663if test "${enable_fast_install+set}" = set; then :
7664  enableval=$enable_fast_install; p=${PACKAGE-default}
7665    case $enableval in
7666    yes) enable_fast_install=yes ;;
7667    no) enable_fast_install=no ;;
7668    *)
7669      enable_fast_install=no
7670      # Look at the argument we got.  We use all the common list separators.
7671      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7672      for pkg in $enableval; do
7673	IFS="$lt_save_ifs"
7674	if test "X$pkg" = "X$p"; then
7675	  enable_fast_install=yes
7676	fi
7677      done
7678      IFS="$lt_save_ifs"
7679      ;;
7680    esac
7681else
7682  enable_fast_install=yes
7683fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695# This can be used to rebuild libtool when needed
7696LIBTOOL_DEPS="$ltmain"
7697
7698# Always use our own libtool.
7699LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730test -z "$LN_S" && LN_S="ln -s"
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745if test -n "${ZSH_VERSION+set}" ; then
7746   setopt NO_GLOB_SUBST
7747fi
7748
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7750$as_echo_n "checking for objdir... " >&6; }
7751if ${lt_cv_objdir+:} false; then :
7752  $as_echo_n "(cached) " >&6
7753else
7754  rm -f .libs 2>/dev/null
7755mkdir .libs 2>/dev/null
7756if test -d .libs; then
7757  lt_cv_objdir=.libs
7758else
7759  # MS-DOS does not allow filenames that begin with a dot.
7760  lt_cv_objdir=_libs
7761fi
7762rmdir .libs 2>/dev/null
7763fi
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7765$as_echo "$lt_cv_objdir" >&6; }
7766objdir=$lt_cv_objdir
7767
7768
7769
7770
7771
7772cat >>confdefs.h <<_ACEOF
7773#define LT_OBJDIR "$lt_cv_objdir/"
7774_ACEOF
7775
7776
7777
7778
7779case $host_os in
7780aix3*)
7781  # AIX sometimes has problems with the GCC collect2 program.  For some
7782  # reason, if we set the COLLECT_NAMES environment variable, the problems
7783  # vanish in a puff of smoke.
7784  if test "X${COLLECT_NAMES+set}" != Xset; then
7785    COLLECT_NAMES=
7786    export COLLECT_NAMES
7787  fi
7788  ;;
7789esac
7790
7791# Global variables:
7792ofile=libtool
7793can_build_shared=yes
7794
7795# All known linkers require a `.a' archive for static linking (except MSVC,
7796# which needs '.lib').
7797libext=a
7798
7799with_gnu_ld="$lt_cv_prog_gnu_ld"
7800
7801old_CC="$CC"
7802old_CFLAGS="$CFLAGS"
7803
7804# Set sane defaults for various variables
7805test -z "$CC" && CC=cc
7806test -z "$LTCC" && LTCC=$CC
7807test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7808test -z "$LD" && LD=ld
7809test -z "$ac_objext" && ac_objext=o
7810
7811for cc_temp in $compiler""; do
7812  case $cc_temp in
7813    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7814    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7815    \-*) ;;
7816    *) break;;
7817  esac
7818done
7819cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7820
7821
7822# Only perform the check for file, if the check method requires it
7823test -z "$MAGIC_CMD" && MAGIC_CMD=file
7824case $deplibs_check_method in
7825file_magic*)
7826  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7828$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7829if ${lt_cv_path_MAGIC_CMD+:} false; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  case $MAGIC_CMD in
7833[\\/*] |  ?:[\\/]*)
7834  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7835  ;;
7836*)
7837  lt_save_MAGIC_CMD="$MAGIC_CMD"
7838  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7839  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7840  for ac_dir in $ac_dummy; do
7841    IFS="$lt_save_ifs"
7842    test -z "$ac_dir" && ac_dir=.
7843    if test -f $ac_dir/${ac_tool_prefix}file; then
7844      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7845      if test -n "$file_magic_test_file"; then
7846	case $deplibs_check_method in
7847	"file_magic "*)
7848	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7849	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7850	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7851	    $EGREP "$file_magic_regex" > /dev/null; then
7852	    :
7853	  else
7854	    cat <<_LT_EOF 1>&2
7855
7856*** Warning: the command libtool uses to detect shared libraries,
7857*** $file_magic_cmd, produces output that libtool cannot recognize.
7858*** The result is that libtool may fail to recognize shared libraries
7859*** as such.  This will affect the creation of libtool libraries that
7860*** depend on shared libraries, but programs linked with such libtool
7861*** libraries will work regardless of this problem.  Nevertheless, you
7862*** may want to report the problem to your system manager and/or to
7863*** bug-libtool@gnu.org
7864
7865_LT_EOF
7866	  fi ;;
7867	esac
7868      fi
7869      break
7870    fi
7871  done
7872  IFS="$lt_save_ifs"
7873  MAGIC_CMD="$lt_save_MAGIC_CMD"
7874  ;;
7875esac
7876fi
7877
7878MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7879if test -n "$MAGIC_CMD"; then
7880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7881$as_echo "$MAGIC_CMD" >&6; }
7882else
7883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
7885fi
7886
7887
7888
7889
7890
7891if test -z "$lt_cv_path_MAGIC_CMD"; then
7892  if test -n "$ac_tool_prefix"; then
7893    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7894$as_echo_n "checking for file... " >&6; }
7895if ${lt_cv_path_MAGIC_CMD+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  case $MAGIC_CMD in
7899[\\/*] |  ?:[\\/]*)
7900  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7901  ;;
7902*)
7903  lt_save_MAGIC_CMD="$MAGIC_CMD"
7904  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7905  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7906  for ac_dir in $ac_dummy; do
7907    IFS="$lt_save_ifs"
7908    test -z "$ac_dir" && ac_dir=.
7909    if test -f $ac_dir/file; then
7910      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7911      if test -n "$file_magic_test_file"; then
7912	case $deplibs_check_method in
7913	"file_magic "*)
7914	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7915	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7916	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7917	    $EGREP "$file_magic_regex" > /dev/null; then
7918	    :
7919	  else
7920	    cat <<_LT_EOF 1>&2
7921
7922*** Warning: the command libtool uses to detect shared libraries,
7923*** $file_magic_cmd, produces output that libtool cannot recognize.
7924*** The result is that libtool may fail to recognize shared libraries
7925*** as such.  This will affect the creation of libtool libraries that
7926*** depend on shared libraries, but programs linked with such libtool
7927*** libraries will work regardless of this problem.  Nevertheless, you
7928*** may want to report the problem to your system manager and/or to
7929*** bug-libtool@gnu.org
7930
7931_LT_EOF
7932	  fi ;;
7933	esac
7934      fi
7935      break
7936    fi
7937  done
7938  IFS="$lt_save_ifs"
7939  MAGIC_CMD="$lt_save_MAGIC_CMD"
7940  ;;
7941esac
7942fi
7943
7944MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7945if test -n "$MAGIC_CMD"; then
7946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7947$as_echo "$MAGIC_CMD" >&6; }
7948else
7949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950$as_echo "no" >&6; }
7951fi
7952
7953
7954  else
7955    MAGIC_CMD=:
7956  fi
7957fi
7958
7959  fi
7960  ;;
7961esac
7962
7963# Use C for the default configuration in the libtool script
7964
7965lt_save_CC="$CC"
7966ac_ext=c
7967ac_cpp='$CPP $CPPFLAGS'
7968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
7972
7973# Source file extension for C test sources.
7974ac_ext=c
7975
7976# Object file extension for compiled C test sources.
7977objext=o
7978objext=$objext
7979
7980# Code to be used in simple compile tests
7981lt_simple_compile_test_code="int some_variable = 0;"
7982
7983# Code to be used in simple link tests
7984lt_simple_link_test_code='int main(){return(0);}'
7985
7986
7987
7988
7989
7990
7991
7992# If no C compiler was specified, use CC.
7993LTCC=${LTCC-"$CC"}
7994
7995# If no C compiler flags were specified, use CFLAGS.
7996LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7997
7998# Allow CC to be a program name with arguments.
7999compiler=$CC
8000
8001# Save the default compiler, since it gets overwritten when the other
8002# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8003compiler_DEFAULT=$CC
8004
8005# save warnings/boilerplate of simple test code
8006ac_outfile=conftest.$ac_objext
8007echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8008eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8009_lt_compiler_boilerplate=`cat conftest.err`
8010$RM conftest*
8011
8012ac_outfile=conftest.$ac_objext
8013echo "$lt_simple_link_test_code" >conftest.$ac_ext
8014eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8015_lt_linker_boilerplate=`cat conftest.err`
8016$RM -r conftest*
8017
8018
8019if test -n "$compiler"; then
8020
8021lt_prog_compiler_no_builtin_flag=
8022
8023if test "$GCC" = yes; then
8024  case $cc_basename in
8025  nvcc*)
8026    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8027  *)
8028    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8029  esac
8030
8031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8032$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8033if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8034  $as_echo_n "(cached) " >&6
8035else
8036  lt_cv_prog_compiler_rtti_exceptions=no
8037   ac_outfile=conftest.$ac_objext
8038   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8039   lt_compiler_flag="-fno-rtti -fno-exceptions"
8040   # Insert the option either (1) after the last *FLAGS variable, or
8041   # (2) before a word containing "conftest.", or (3) at the end.
8042   # Note that $ac_compile itself does not contain backslashes and begins
8043   # with a dollar sign (not a hyphen), so the echo should work correctly.
8044   # The option is referenced via a variable to avoid confusing sed.
8045   lt_compile=`echo "$ac_compile" | $SED \
8046   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8047   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8048   -e 's:$: $lt_compiler_flag:'`
8049   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8050   (eval "$lt_compile" 2>conftest.err)
8051   ac_status=$?
8052   cat conftest.err >&5
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   if (exit $ac_status) && test -s "$ac_outfile"; then
8055     # The compiler can only warn and ignore the option if not recognized
8056     # So say no if there are warnings other than the usual output.
8057     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8058     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8059     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8060       lt_cv_prog_compiler_rtti_exceptions=yes
8061     fi
8062   fi
8063   $RM conftest*
8064
8065fi
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8067$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8068
8069if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8070    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8071else
8072    :
8073fi
8074
8075fi
8076
8077
8078
8079
8080
8081
8082  lt_prog_compiler_wl=
8083lt_prog_compiler_pic=
8084lt_prog_compiler_static=
8085
8086
8087  if test "$GCC" = yes; then
8088    lt_prog_compiler_wl='-Wl,'
8089    lt_prog_compiler_static='-static'
8090
8091    case $host_os in
8092      aix*)
8093      # All AIX code is PIC.
8094      if test "$host_cpu" = ia64; then
8095	# AIX 5 now supports IA64 processor
8096	lt_prog_compiler_static='-Bstatic'
8097      fi
8098      ;;
8099
8100    amigaos*)
8101      case $host_cpu in
8102      powerpc)
8103            # see comment about AmigaOS4 .so support
8104            lt_prog_compiler_pic='-fPIC'
8105        ;;
8106      m68k)
8107            # FIXME: we need at least 68020 code to build shared libraries, but
8108            # adding the `-m68020' flag to GCC prevents building anything better,
8109            # like `-m68040'.
8110            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8111        ;;
8112      esac
8113      ;;
8114
8115    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8116      # PIC is the default for these OSes.
8117      ;;
8118
8119    mingw* | cygwin* | pw32* | os2* | cegcc*)
8120      # This hack is so that the source file can tell whether it is being
8121      # built for inclusion in a dll (and should export symbols for example).
8122      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8123      # (--disable-auto-import) libraries
8124      lt_prog_compiler_pic='-DDLL_EXPORT'
8125      ;;
8126
8127    darwin* | rhapsody*)
8128      # PIC is the default on this platform
8129      # Common symbols not allowed in MH_DYLIB files
8130      lt_prog_compiler_pic='-fno-common'
8131      ;;
8132
8133    haiku*)
8134      # PIC is the default for Haiku.
8135      # The "-static" flag exists, but is broken.
8136      lt_prog_compiler_static=
8137      ;;
8138
8139    hpux*)
8140      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8141      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8142      # sets the default TLS model and affects inlining.
8143      case $host_cpu in
8144      hppa*64*)
8145	# +Z the default
8146	;;
8147      *)
8148	lt_prog_compiler_pic='-fPIC'
8149	;;
8150      esac
8151      ;;
8152
8153    interix[3-9]*)
8154      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8155      # Instead, we relocate shared libraries at runtime.
8156      ;;
8157
8158    msdosdjgpp*)
8159      # Just because we use GCC doesn't mean we suddenly get shared libraries
8160      # on systems that don't support them.
8161      lt_prog_compiler_can_build_shared=no
8162      enable_shared=no
8163      ;;
8164
8165    *nto* | *qnx*)
8166      # QNX uses GNU C++, but need to define -shared option too, otherwise
8167      # it will coredump.
8168      lt_prog_compiler_pic='-fPIC -shared'
8169      ;;
8170
8171    sysv4*MP*)
8172      if test -d /usr/nec; then
8173	lt_prog_compiler_pic=-Kconform_pic
8174      fi
8175      ;;
8176
8177    *)
8178      lt_prog_compiler_pic='-fPIC'
8179      ;;
8180    esac
8181
8182    case $cc_basename in
8183    nvcc*) # Cuda Compiler Driver 2.2
8184      lt_prog_compiler_wl='-Xlinker '
8185      if test -n "$lt_prog_compiler_pic"; then
8186        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8187      fi
8188      ;;
8189    esac
8190  else
8191    # PORTME Check for flag to pass linker flags through the system compiler.
8192    case $host_os in
8193    aix*)
8194      lt_prog_compiler_wl='-Wl,'
8195      if test "$host_cpu" = ia64; then
8196	# AIX 5 now supports IA64 processor
8197	lt_prog_compiler_static='-Bstatic'
8198      else
8199	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8200      fi
8201      ;;
8202
8203    mingw* | cygwin* | pw32* | os2* | cegcc*)
8204      # This hack is so that the source file can tell whether it is being
8205      # built for inclusion in a dll (and should export symbols for example).
8206      lt_prog_compiler_pic='-DDLL_EXPORT'
8207      ;;
8208
8209    hpux9* | hpux10* | hpux11*)
8210      lt_prog_compiler_wl='-Wl,'
8211      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8212      # not for PA HP-UX.
8213      case $host_cpu in
8214      hppa*64*|ia64*)
8215	# +Z the default
8216	;;
8217      *)
8218	lt_prog_compiler_pic='+Z'
8219	;;
8220      esac
8221      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8222      lt_prog_compiler_static='${wl}-a ${wl}archive'
8223      ;;
8224
8225    irix5* | irix6* | nonstopux*)
8226      lt_prog_compiler_wl='-Wl,'
8227      # PIC (with -KPIC) is the default.
8228      lt_prog_compiler_static='-non_shared'
8229      ;;
8230
8231    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8232      case $cc_basename in
8233      # old Intel for x86_64 which still supported -KPIC.
8234      ecc*)
8235	lt_prog_compiler_wl='-Wl,'
8236	lt_prog_compiler_pic='-KPIC'
8237	lt_prog_compiler_static='-static'
8238        ;;
8239      # icc used to be incompatible with GCC.
8240      # ICC 10 doesn't accept -KPIC any more.
8241      icc* | ifort*)
8242	lt_prog_compiler_wl='-Wl,'
8243	lt_prog_compiler_pic='-fPIC'
8244	lt_prog_compiler_static='-static'
8245        ;;
8246      # Lahey Fortran 8.1.
8247      lf95*)
8248	lt_prog_compiler_wl='-Wl,'
8249	lt_prog_compiler_pic='--shared'
8250	lt_prog_compiler_static='--static'
8251	;;
8252      nagfor*)
8253	# NAG Fortran compiler
8254	lt_prog_compiler_wl='-Wl,-Wl,,'
8255	lt_prog_compiler_pic='-PIC'
8256	lt_prog_compiler_static='-Bstatic'
8257	;;
8258      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8259        # Portland Group compilers (*not* the Pentium gcc compiler,
8260	# which looks to be a dead project)
8261	lt_prog_compiler_wl='-Wl,'
8262	lt_prog_compiler_pic='-fpic'
8263	lt_prog_compiler_static='-Bstatic'
8264        ;;
8265      ccc*)
8266        lt_prog_compiler_wl='-Wl,'
8267        # All Alpha code is PIC.
8268        lt_prog_compiler_static='-non_shared'
8269        ;;
8270      xl* | bgxl* | bgf* | mpixl*)
8271	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8272	lt_prog_compiler_wl='-Wl,'
8273	lt_prog_compiler_pic='-qpic'
8274	lt_prog_compiler_static='-qstaticlink'
8275	;;
8276      *)
8277	case `$CC -V 2>&1 | sed 5q` in
8278	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8279	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8280	  lt_prog_compiler_pic='-KPIC'
8281	  lt_prog_compiler_static='-Bstatic'
8282	  lt_prog_compiler_wl=''
8283	  ;;
8284	*Sun\ F* | *Sun*Fortran*)
8285	  lt_prog_compiler_pic='-KPIC'
8286	  lt_prog_compiler_static='-Bstatic'
8287	  lt_prog_compiler_wl='-Qoption ld '
8288	  ;;
8289	*Sun\ C*)
8290	  # Sun C 5.9
8291	  lt_prog_compiler_pic='-KPIC'
8292	  lt_prog_compiler_static='-Bstatic'
8293	  lt_prog_compiler_wl='-Wl,'
8294	  ;;
8295        *Intel*\ [CF]*Compiler*)
8296	  lt_prog_compiler_wl='-Wl,'
8297	  lt_prog_compiler_pic='-fPIC'
8298	  lt_prog_compiler_static='-static'
8299	  ;;
8300	*Portland\ Group*)
8301	  lt_prog_compiler_wl='-Wl,'
8302	  lt_prog_compiler_pic='-fpic'
8303	  lt_prog_compiler_static='-Bstatic'
8304	  ;;
8305	esac
8306	;;
8307      esac
8308      ;;
8309
8310    newsos6)
8311      lt_prog_compiler_pic='-KPIC'
8312      lt_prog_compiler_static='-Bstatic'
8313      ;;
8314
8315    *nto* | *qnx*)
8316      # QNX uses GNU C++, but need to define -shared option too, otherwise
8317      # it will coredump.
8318      lt_prog_compiler_pic='-fPIC -shared'
8319      ;;
8320
8321    osf3* | osf4* | osf5*)
8322      lt_prog_compiler_wl='-Wl,'
8323      # All OSF/1 code is PIC.
8324      lt_prog_compiler_static='-non_shared'
8325      ;;
8326
8327    rdos*)
8328      lt_prog_compiler_static='-non_shared'
8329      ;;
8330
8331    solaris*)
8332      lt_prog_compiler_pic='-KPIC'
8333      lt_prog_compiler_static='-Bstatic'
8334      case $cc_basename in
8335      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8336	lt_prog_compiler_wl='-Qoption ld ';;
8337      *)
8338	lt_prog_compiler_wl='-Wl,';;
8339      esac
8340      ;;
8341
8342    sunos4*)
8343      lt_prog_compiler_wl='-Qoption ld '
8344      lt_prog_compiler_pic='-PIC'
8345      lt_prog_compiler_static='-Bstatic'
8346      ;;
8347
8348    sysv4 | sysv4.2uw2* | sysv4.3*)
8349      lt_prog_compiler_wl='-Wl,'
8350      lt_prog_compiler_pic='-KPIC'
8351      lt_prog_compiler_static='-Bstatic'
8352      ;;
8353
8354    sysv4*MP*)
8355      if test -d /usr/nec ;then
8356	lt_prog_compiler_pic='-Kconform_pic'
8357	lt_prog_compiler_static='-Bstatic'
8358      fi
8359      ;;
8360
8361    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8362      lt_prog_compiler_wl='-Wl,'
8363      lt_prog_compiler_pic='-KPIC'
8364      lt_prog_compiler_static='-Bstatic'
8365      ;;
8366
8367    unicos*)
8368      lt_prog_compiler_wl='-Wl,'
8369      lt_prog_compiler_can_build_shared=no
8370      ;;
8371
8372    uts4*)
8373      lt_prog_compiler_pic='-pic'
8374      lt_prog_compiler_static='-Bstatic'
8375      ;;
8376
8377    *)
8378      lt_prog_compiler_can_build_shared=no
8379      ;;
8380    esac
8381  fi
8382
8383case $host_os in
8384  # For platforms which do not support PIC, -DPIC is meaningless:
8385  *djgpp*)
8386    lt_prog_compiler_pic=
8387    ;;
8388  *)
8389    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8390    ;;
8391esac
8392
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8394$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8395if ${lt_cv_prog_compiler_pic+:} false; then :
8396  $as_echo_n "(cached) " >&6
8397else
8398  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8401$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8402lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8403
8404#
8405# Check to make sure the PIC flag actually works.
8406#
8407if test -n "$lt_prog_compiler_pic"; then
8408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8409$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8410if ${lt_cv_prog_compiler_pic_works+:} false; then :
8411  $as_echo_n "(cached) " >&6
8412else
8413  lt_cv_prog_compiler_pic_works=no
8414   ac_outfile=conftest.$ac_objext
8415   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8416   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8417   # Insert the option either (1) after the last *FLAGS variable, or
8418   # (2) before a word containing "conftest.", or (3) at the end.
8419   # Note that $ac_compile itself does not contain backslashes and begins
8420   # with a dollar sign (not a hyphen), so the echo should work correctly.
8421   # The option is referenced via a variable to avoid confusing sed.
8422   lt_compile=`echo "$ac_compile" | $SED \
8423   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8424   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8425   -e 's:$: $lt_compiler_flag:'`
8426   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8427   (eval "$lt_compile" 2>conftest.err)
8428   ac_status=$?
8429   cat conftest.err >&5
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   if (exit $ac_status) && test -s "$ac_outfile"; then
8432     # The compiler can only warn and ignore the option if not recognized
8433     # So say no if there are warnings other than the usual output.
8434     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8435     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8436     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8437       lt_cv_prog_compiler_pic_works=yes
8438     fi
8439   fi
8440   $RM conftest*
8441
8442fi
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8444$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8445
8446if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8447    case $lt_prog_compiler_pic in
8448     "" | " "*) ;;
8449     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8450     esac
8451else
8452    lt_prog_compiler_pic=
8453     lt_prog_compiler_can_build_shared=no
8454fi
8455
8456fi
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468#
8469# Check to make sure the static flag actually works.
8470#
8471wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8473$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8474if ${lt_cv_prog_compiler_static_works+:} false; then :
8475  $as_echo_n "(cached) " >&6
8476else
8477  lt_cv_prog_compiler_static_works=no
8478   save_LDFLAGS="$LDFLAGS"
8479   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8480   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8481   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8482     # The linker can only warn and ignore the option if not recognized
8483     # So say no if there are warnings
8484     if test -s conftest.err; then
8485       # Append any errors to the config.log.
8486       cat conftest.err 1>&5
8487       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8488       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8489       if diff conftest.exp conftest.er2 >/dev/null; then
8490         lt_cv_prog_compiler_static_works=yes
8491       fi
8492     else
8493       lt_cv_prog_compiler_static_works=yes
8494     fi
8495   fi
8496   $RM -r conftest*
8497   LDFLAGS="$save_LDFLAGS"
8498
8499fi
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8501$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8502
8503if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8504    :
8505else
8506    lt_prog_compiler_static=
8507fi
8508
8509
8510
8511
8512
8513
8514
8515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8516$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8517if ${lt_cv_prog_compiler_c_o+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  lt_cv_prog_compiler_c_o=no
8521   $RM -r conftest 2>/dev/null
8522   mkdir conftest
8523   cd conftest
8524   mkdir out
8525   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8526
8527   lt_compiler_flag="-o out/conftest2.$ac_objext"
8528   # Insert the option either (1) after the last *FLAGS variable, or
8529   # (2) before a word containing "conftest.", or (3) at the end.
8530   # Note that $ac_compile itself does not contain backslashes and begins
8531   # with a dollar sign (not a hyphen), so the echo should work correctly.
8532   lt_compile=`echo "$ac_compile" | $SED \
8533   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8535   -e 's:$: $lt_compiler_flag:'`
8536   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8537   (eval "$lt_compile" 2>out/conftest.err)
8538   ac_status=$?
8539   cat out/conftest.err >&5
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8542   then
8543     # The compiler can only warn and ignore the option if not recognized
8544     # So say no if there are warnings
8545     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8546     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8547     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8548       lt_cv_prog_compiler_c_o=yes
8549     fi
8550   fi
8551   chmod u+w . 2>&5
8552   $RM conftest*
8553   # SGI C++ compiler will create directory out/ii_files/ for
8554   # template instantiation
8555   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8556   $RM out/* && rmdir out
8557   cd ..
8558   $RM -r conftest
8559   $RM conftest*
8560
8561fi
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8563$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8564
8565
8566
8567
8568
8569
8570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8571$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8572if ${lt_cv_prog_compiler_c_o+:} false; then :
8573  $as_echo_n "(cached) " >&6
8574else
8575  lt_cv_prog_compiler_c_o=no
8576   $RM -r conftest 2>/dev/null
8577   mkdir conftest
8578   cd conftest
8579   mkdir out
8580   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8581
8582   lt_compiler_flag="-o out/conftest2.$ac_objext"
8583   # Insert the option either (1) after the last *FLAGS variable, or
8584   # (2) before a word containing "conftest.", or (3) at the end.
8585   # Note that $ac_compile itself does not contain backslashes and begins
8586   # with a dollar sign (not a hyphen), so the echo should work correctly.
8587   lt_compile=`echo "$ac_compile" | $SED \
8588   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590   -e 's:$: $lt_compiler_flag:'`
8591   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8592   (eval "$lt_compile" 2>out/conftest.err)
8593   ac_status=$?
8594   cat out/conftest.err >&5
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8597   then
8598     # The compiler can only warn and ignore the option if not recognized
8599     # So say no if there are warnings
8600     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8601     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8602     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8603       lt_cv_prog_compiler_c_o=yes
8604     fi
8605   fi
8606   chmod u+w . 2>&5
8607   $RM conftest*
8608   # SGI C++ compiler will create directory out/ii_files/ for
8609   # template instantiation
8610   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8611   $RM out/* && rmdir out
8612   cd ..
8613   $RM -r conftest
8614   $RM conftest*
8615
8616fi
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8618$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8619
8620
8621
8622
8623hard_links="nottested"
8624if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8625  # do not overwrite the value of need_locks provided by the user
8626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8627$as_echo_n "checking if we can lock with hard links... " >&6; }
8628  hard_links=yes
8629  $RM conftest*
8630  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8631  touch conftest.a
8632  ln conftest.a conftest.b 2>&5 || hard_links=no
8633  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8635$as_echo "$hard_links" >&6; }
8636  if test "$hard_links" = no; then
8637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8638$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8639    need_locks=warn
8640  fi
8641else
8642  need_locks=no
8643fi
8644
8645
8646
8647
8648
8649
8650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8651$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8652
8653  runpath_var=
8654  allow_undefined_flag=
8655  always_export_symbols=no
8656  archive_cmds=
8657  archive_expsym_cmds=
8658  compiler_needs_object=no
8659  enable_shared_with_static_runtimes=no
8660  export_dynamic_flag_spec=
8661  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8662  hardcode_automatic=no
8663  hardcode_direct=no
8664  hardcode_direct_absolute=no
8665  hardcode_libdir_flag_spec=
8666  hardcode_libdir_separator=
8667  hardcode_minus_L=no
8668  hardcode_shlibpath_var=unsupported
8669  inherit_rpath=no
8670  link_all_deplibs=unknown
8671  module_cmds=
8672  module_expsym_cmds=
8673  old_archive_from_new_cmds=
8674  old_archive_from_expsyms_cmds=
8675  thread_safe_flag_spec=
8676  whole_archive_flag_spec=
8677  # include_expsyms should be a list of space-separated symbols to be *always*
8678  # included in the symbol list
8679  include_expsyms=
8680  # exclude_expsyms can be an extended regexp of symbols to exclude
8681  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8682  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8683  # as well as any symbol that contains `d'.
8684  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8685  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8686  # platforms (ab)use it in PIC code, but their linkers get confused if
8687  # the symbol is explicitly referenced.  Since portable code cannot
8688  # rely on this symbol name, it's probably fine to never include it in
8689  # preloaded symbol tables.
8690  # Exclude shared library initialization/finalization symbols.
8691  extract_expsyms_cmds=
8692
8693  case $host_os in
8694  cygwin* | mingw* | pw32* | cegcc*)
8695    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8696    # When not using gcc, we currently assume that we are using
8697    # Microsoft Visual C++.
8698    if test "$GCC" != yes; then
8699      with_gnu_ld=no
8700    fi
8701    ;;
8702  interix*)
8703    # we just hope/assume this is gcc and not c89 (= MSVC++)
8704    with_gnu_ld=yes
8705    ;;
8706  openbsd*)
8707    with_gnu_ld=no
8708    ;;
8709  linux* | k*bsd*-gnu | gnu*)
8710    link_all_deplibs=no
8711    ;;
8712  esac
8713
8714  ld_shlibs=yes
8715
8716  # On some targets, GNU ld is compatible enough with the native linker
8717  # that we're better off using the native interface for both.
8718  lt_use_gnu_ld_interface=no
8719  if test "$with_gnu_ld" = yes; then
8720    case $host_os in
8721      aix*)
8722	# The AIX port of GNU ld has always aspired to compatibility
8723	# with the native linker.  However, as the warning in the GNU ld
8724	# block says, versions before 2.19.5* couldn't really create working
8725	# shared libraries, regardless of the interface used.
8726	case `$LD -v 2>&1` in
8727	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8728	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8729	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8730	  *)
8731	    lt_use_gnu_ld_interface=yes
8732	    ;;
8733	esac
8734	;;
8735      *)
8736	lt_use_gnu_ld_interface=yes
8737	;;
8738    esac
8739  fi
8740
8741  if test "$lt_use_gnu_ld_interface" = yes; then
8742    # If archive_cmds runs LD, not CC, wlarc should be empty
8743    wlarc='${wl}'
8744
8745    # Set some defaults for GNU ld with shared library support. These
8746    # are reset later if shared libraries are not supported. Putting them
8747    # here allows them to be overridden if necessary.
8748    runpath_var=LD_RUN_PATH
8749    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750    export_dynamic_flag_spec='${wl}--export-dynamic'
8751    # ancient GNU ld didn't support --whole-archive et. al.
8752    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8753      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8754    else
8755      whole_archive_flag_spec=
8756    fi
8757    supports_anon_versioning=no
8758    case `$LD -v 2>&1` in
8759      *GNU\ gold*) supports_anon_versioning=yes ;;
8760      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8761      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8762      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8763      *\ 2.11.*) ;; # other 2.11 versions
8764      *) supports_anon_versioning=yes ;;
8765    esac
8766
8767    # See if GNU ld supports shared libraries.
8768    case $host_os in
8769    aix[3-9]*)
8770      # On AIX/PPC, the GNU linker is very broken
8771      if test "$host_cpu" != ia64; then
8772	ld_shlibs=no
8773	cat <<_LT_EOF 1>&2
8774
8775*** Warning: the GNU linker, at least up to release 2.19, is reported
8776*** to be unable to reliably create shared libraries on AIX.
8777*** Therefore, libtool is disabling shared libraries support.  If you
8778*** really care for shared libraries, you may want to install binutils
8779*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8780*** You will then need to restart the configuration process.
8781
8782_LT_EOF
8783      fi
8784      ;;
8785
8786    amigaos*)
8787      case $host_cpu in
8788      powerpc)
8789            # see comment about AmigaOS4 .so support
8790            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8791            archive_expsym_cmds=''
8792        ;;
8793      m68k)
8794            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)'
8795            hardcode_libdir_flag_spec='-L$libdir'
8796            hardcode_minus_L=yes
8797        ;;
8798      esac
8799      ;;
8800
8801    beos*)
8802      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8803	allow_undefined_flag=unsupported
8804	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8805	# support --undefined.  This deserves some investigation.  FIXME
8806	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8807      else
8808	ld_shlibs=no
8809      fi
8810      ;;
8811
8812    cygwin* | mingw* | pw32* | cegcc*)
8813      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8814      # as there is no search path for DLLs.
8815      hardcode_libdir_flag_spec='-L$libdir'
8816      export_dynamic_flag_spec='${wl}--export-all-symbols'
8817      allow_undefined_flag=unsupported
8818      always_export_symbols=no
8819      enable_shared_with_static_runtimes=yes
8820      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'
8821      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8822
8823      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8824        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8825	# If the export-symbols file already is a .def file (1st line
8826	# is EXPORTS), use it as is; otherwise, prepend...
8827	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8828	  cp $export_symbols $output_objdir/$soname.def;
8829	else
8830	  echo EXPORTS > $output_objdir/$soname.def;
8831	  cat $export_symbols >> $output_objdir/$soname.def;
8832	fi~
8833	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8834      else
8835	ld_shlibs=no
8836      fi
8837      ;;
8838
8839    haiku*)
8840      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841      link_all_deplibs=yes
8842      ;;
8843
8844    interix[3-9]*)
8845      hardcode_direct=no
8846      hardcode_shlibpath_var=no
8847      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8848      export_dynamic_flag_spec='${wl}-E'
8849      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8850      # Instead, shared libraries are loaded at an image base (0x10000000 by
8851      # default) and relocated if they conflict, which is a slow very memory
8852      # consuming and fragmenting process.  To avoid this, we pick a random,
8853      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8854      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8855      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8856      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'
8857      ;;
8858
8859    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8860      tmp_diet=no
8861      if test "$host_os" = linux-dietlibc; then
8862	case $cc_basename in
8863	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8864	esac
8865      fi
8866      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8867	 && test "$tmp_diet" = no
8868      then
8869	tmp_addflag=' $pic_flag'
8870	tmp_sharedflag='-shared'
8871	case $cc_basename,$host_cpu in
8872        pgcc*)				# Portland Group C compiler
8873	  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'
8874	  tmp_addflag=' $pic_flag'
8875	  ;;
8876	pgf77* | pgf90* | pgf95* | pgfortran*)
8877					# Portland Group f77 and f90 compilers
8878	  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'
8879	  tmp_addflag=' $pic_flag -Mnomain' ;;
8880	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8881	  tmp_addflag=' -i_dynamic' ;;
8882	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8883	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8884	ifc* | ifort*)			# Intel Fortran compiler
8885	  tmp_addflag=' -nofor_main' ;;
8886	lf95*)				# Lahey Fortran 8.1
8887	  whole_archive_flag_spec=
8888	  tmp_sharedflag='--shared' ;;
8889	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8890	  tmp_sharedflag='-qmkshrobj'
8891	  tmp_addflag= ;;
8892	nvcc*)	# Cuda Compiler Driver 2.2
8893	  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'
8894	  compiler_needs_object=yes
8895	  ;;
8896	esac
8897	case `$CC -V 2>&1 | sed 5q` in
8898	*Sun\ C*)			# Sun C 5.9
8899	  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'
8900	  compiler_needs_object=yes
8901	  tmp_sharedflag='-G' ;;
8902	*Sun\ F*)			# Sun Fortran 8.3
8903	  tmp_sharedflag='-G' ;;
8904	esac
8905	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8906
8907        if test "x$supports_anon_versioning" = xyes; then
8908          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8909	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8910	    echo "local: *; };" >> $output_objdir/$libname.ver~
8911	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8912        fi
8913
8914	case $cc_basename in
8915	xlf* | bgf* | bgxlf* | mpixlf*)
8916	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8917	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8918	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8920	  if test "x$supports_anon_versioning" = xyes; then
8921	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8922	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8923	      echo "local: *; };" >> $output_objdir/$libname.ver~
8924	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8925	  fi
8926	  ;;
8927	esac
8928      else
8929        ld_shlibs=no
8930      fi
8931      ;;
8932
8933    netbsd* | netbsdelf*-gnu)
8934      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8935	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8936	wlarc=
8937      else
8938	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8940      fi
8941      ;;
8942
8943    solaris*)
8944      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8945	ld_shlibs=no
8946	cat <<_LT_EOF 1>&2
8947
8948*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8949*** create shared libraries on Solaris systems.  Therefore, libtool
8950*** is disabling shared libraries support.  We urge you to upgrade GNU
8951*** binutils to release 2.9.1 or newer.  Another option is to modify
8952*** your PATH or compiler configuration so that the native linker is
8953*** used, and then restart.
8954
8955_LT_EOF
8956      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8957	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8958	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8959      else
8960	ld_shlibs=no
8961      fi
8962      ;;
8963
8964    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8965      case `$LD -v 2>&1` in
8966        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8967	ld_shlibs=no
8968	cat <<_LT_EOF 1>&2
8969
8970*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8971*** reliably create shared libraries on SCO systems.  Therefore, libtool
8972*** is disabling shared libraries support.  We urge you to upgrade GNU
8973*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8974*** your PATH or compiler configuration so that the native linker is
8975*** used, and then restart.
8976
8977_LT_EOF
8978	;;
8979	*)
8980	  # For security reasons, it is highly recommended that you always
8981	  # use absolute paths for naming shared libraries, and exclude the
8982	  # DT_RUNPATH tag from executables and libraries.  But doing so
8983	  # requires that you compile everything twice, which is a pain.
8984	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8985	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8986	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988	  else
8989	    ld_shlibs=no
8990	  fi
8991	;;
8992      esac
8993      ;;
8994
8995    sunos4*)
8996      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8997      wlarc=
8998      hardcode_direct=yes
8999      hardcode_shlibpath_var=no
9000      ;;
9001
9002    *)
9003      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9004	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9006      else
9007	ld_shlibs=no
9008      fi
9009      ;;
9010    esac
9011
9012    if test "$ld_shlibs" = no; then
9013      runpath_var=
9014      hardcode_libdir_flag_spec=
9015      export_dynamic_flag_spec=
9016      whole_archive_flag_spec=
9017    fi
9018  else
9019    # PORTME fill in a description of your system's linker (not GNU ld)
9020    case $host_os in
9021    aix3*)
9022      allow_undefined_flag=unsupported
9023      always_export_symbols=yes
9024      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'
9025      # Note: this linker hardcodes the directories in LIBPATH if there
9026      # are no directories specified by -L.
9027      hardcode_minus_L=yes
9028      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9029	# Neither direct hardcoding nor static linking is supported with a
9030	# broken collect2.
9031	hardcode_direct=unsupported
9032      fi
9033      ;;
9034
9035    aix[4-9]*)
9036      if test "$host_cpu" = ia64; then
9037	# On IA64, the linker does run time linking by default, so we don't
9038	# have to do anything special.
9039	aix_use_runtimelinking=no
9040	exp_sym_flag='-Bexport'
9041	no_entry_flag=""
9042      else
9043	# If we're using GNU nm, then we don't want the "-C" option.
9044	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9045	# Also, AIX nm treats weak defined symbols like other global
9046	# defined symbols, whereas GNU nm marks them as "W".
9047	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9048	  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'
9049	else
9050	  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'
9051	fi
9052	aix_use_runtimelinking=no
9053
9054	# Test if we are trying to use run time linking or normal
9055	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9056	# need to do runtime linking.
9057	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9058	  for ld_flag in $LDFLAGS; do
9059	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9060	    aix_use_runtimelinking=yes
9061	    break
9062	  fi
9063	  done
9064	  ;;
9065	esac
9066
9067	exp_sym_flag='-bexport'
9068	no_entry_flag='-bnoentry'
9069      fi
9070
9071      # When large executables or shared objects are built, AIX ld can
9072      # have problems creating the table of contents.  If linking a library
9073      # or program results in "error TOC overflow" add -mminimal-toc to
9074      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9075      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9076
9077      archive_cmds=''
9078      hardcode_direct=yes
9079      hardcode_direct_absolute=yes
9080      hardcode_libdir_separator=':'
9081      link_all_deplibs=yes
9082      file_list_spec='${wl}-f,'
9083
9084      if test "$GCC" = yes; then
9085	case $host_os in aix4.[012]|aix4.[012].*)
9086	# We only want to do this on AIX 4.2 and lower, the check
9087	# below for broken collect2 doesn't work under 4.3+
9088	  collect2name=`${CC} -print-prog-name=collect2`
9089	  if test -f "$collect2name" &&
9090	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9091	  then
9092	  # We have reworked collect2
9093	  :
9094	  else
9095	  # We have old collect2
9096	  hardcode_direct=unsupported
9097	  # It fails to find uninstalled libraries when the uninstalled
9098	  # path is not listed in the libpath.  Setting hardcode_minus_L
9099	  # to unsupported forces relinking
9100	  hardcode_minus_L=yes
9101	  hardcode_libdir_flag_spec='-L$libdir'
9102	  hardcode_libdir_separator=
9103	  fi
9104	  ;;
9105	esac
9106	shared_flag='-shared'
9107	if test "$aix_use_runtimelinking" = yes; then
9108	  shared_flag="$shared_flag "'${wl}-G'
9109	fi
9110	link_all_deplibs=no
9111      else
9112	# not using gcc
9113	if test "$host_cpu" = ia64; then
9114	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9115	# chokes on -Wl,-G. The following line is correct:
9116	  shared_flag='-G'
9117	else
9118	  if test "$aix_use_runtimelinking" = yes; then
9119	    shared_flag='${wl}-G'
9120	  else
9121	    shared_flag='${wl}-bM:SRE'
9122	  fi
9123	fi
9124      fi
9125
9126      export_dynamic_flag_spec='${wl}-bexpall'
9127      # It seems that -bexpall does not export symbols beginning with
9128      # underscore (_), so it is better to generate a list of symbols to export.
9129      always_export_symbols=yes
9130      if test "$aix_use_runtimelinking" = yes; then
9131	# Warning - without using the other runtime loading flags (-brtl),
9132	# -berok will link without error, but may produce a broken library.
9133	allow_undefined_flag='-berok'
9134        # Determine the default libpath from the value encoded in an
9135        # empty executable.
9136        if test "${lt_cv_aix_libpath+set}" = set; then
9137  aix_libpath=$lt_cv_aix_libpath
9138else
9139  if ${lt_cv_aix_libpath_+:} false; then :
9140  $as_echo_n "(cached) " >&6
9141else
9142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143/* end confdefs.h.  */
9144
9145int
9146main ()
9147{
9148
9149  ;
9150  return 0;
9151}
9152_ACEOF
9153if ac_fn_c_try_link "$LINENO"; then :
9154
9155  lt_aix_libpath_sed='
9156      /Import File Strings/,/^$/ {
9157	  /^0/ {
9158	      s/^0  *\([^ ]*\) *$/\1/
9159	      p
9160	  }
9161      }'
9162  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9163  # Check for a 64-bit object if we didn't find anything.
9164  if test -z "$lt_cv_aix_libpath_"; then
9165    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9166  fi
9167fi
9168rm -f core conftest.err conftest.$ac_objext \
9169    conftest$ac_exeext conftest.$ac_ext
9170  if test -z "$lt_cv_aix_libpath_"; then
9171    lt_cv_aix_libpath_="/usr/lib:/lib"
9172  fi
9173
9174fi
9175
9176  aix_libpath=$lt_cv_aix_libpath_
9177fi
9178
9179        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9180        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"
9181      else
9182	if test "$host_cpu" = ia64; then
9183	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9184	  allow_undefined_flag="-z nodefs"
9185	  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"
9186	else
9187	 # Determine the default libpath from the value encoded in an
9188	 # empty executable.
9189	 if test "${lt_cv_aix_libpath+set}" = set; then
9190  aix_libpath=$lt_cv_aix_libpath
9191else
9192  if ${lt_cv_aix_libpath_+:} false; then :
9193  $as_echo_n "(cached) " >&6
9194else
9195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h.  */
9197
9198int
9199main ()
9200{
9201
9202  ;
9203  return 0;
9204}
9205_ACEOF
9206if ac_fn_c_try_link "$LINENO"; then :
9207
9208  lt_aix_libpath_sed='
9209      /Import File Strings/,/^$/ {
9210	  /^0/ {
9211	      s/^0  *\([^ ]*\) *$/\1/
9212	      p
9213	  }
9214      }'
9215  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9216  # Check for a 64-bit object if we didn't find anything.
9217  if test -z "$lt_cv_aix_libpath_"; then
9218    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9219  fi
9220fi
9221rm -f core conftest.err conftest.$ac_objext \
9222    conftest$ac_exeext conftest.$ac_ext
9223  if test -z "$lt_cv_aix_libpath_"; then
9224    lt_cv_aix_libpath_="/usr/lib:/lib"
9225  fi
9226
9227fi
9228
9229  aix_libpath=$lt_cv_aix_libpath_
9230fi
9231
9232	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9233	  # Warning - without using the other run time loading flags,
9234	  # -berok will link without error, but may produce a broken library.
9235	  no_undefined_flag=' ${wl}-bernotok'
9236	  allow_undefined_flag=' ${wl}-berok'
9237	  if test "$with_gnu_ld" = yes; then
9238	    # We only use this code for GNU lds that support --whole-archive.
9239	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9240	  else
9241	    # Exported symbols can be pulled into shared objects from archives
9242	    whole_archive_flag_spec='$convenience'
9243	  fi
9244	  archive_cmds_need_lc=yes
9245	  # This is similar to how AIX traditionally builds its shared libraries.
9246	  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'
9247	fi
9248      fi
9249      ;;
9250
9251    amigaos*)
9252      case $host_cpu in
9253      powerpc)
9254            # see comment about AmigaOS4 .so support
9255            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256            archive_expsym_cmds=''
9257        ;;
9258      m68k)
9259            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)'
9260            hardcode_libdir_flag_spec='-L$libdir'
9261            hardcode_minus_L=yes
9262        ;;
9263      esac
9264      ;;
9265
9266    bsdi[45]*)
9267      export_dynamic_flag_spec=-rdynamic
9268      ;;
9269
9270    cygwin* | mingw* | pw32* | cegcc*)
9271      # When not using gcc, we currently assume that we are using
9272      # Microsoft Visual C++.
9273      # hardcode_libdir_flag_spec is actually meaningless, as there is
9274      # no search path for DLLs.
9275      case $cc_basename in
9276      cl*)
9277	# Native MSVC
9278	hardcode_libdir_flag_spec=' '
9279	allow_undefined_flag=unsupported
9280	always_export_symbols=yes
9281	file_list_spec='@'
9282	# Tell ltmain to make .lib files, not .a files.
9283	libext=lib
9284	# Tell ltmain to make .dll files, not .so files.
9285	shrext_cmds=".dll"
9286	# FIXME: Setting linknames here is a bad hack.
9287	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9288	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9289	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9290	  else
9291	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9292	  fi~
9293	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9294	  linknames='
9295	# The linker will not automatically build a static lib if we build a DLL.
9296	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9297	enable_shared_with_static_runtimes=yes
9298	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9299	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9300	# Don't use ranlib
9301	old_postinstall_cmds='chmod 644 $oldlib'
9302	postlink_cmds='lt_outputfile="@OUTPUT@"~
9303	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9304	  case $lt_outputfile in
9305	    *.exe|*.EXE) ;;
9306	    *)
9307	      lt_outputfile="$lt_outputfile.exe"
9308	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9309	      ;;
9310	  esac~
9311	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9312	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9313	    $RM "$lt_outputfile.manifest";
9314	  fi'
9315	;;
9316      *)
9317	# Assume MSVC wrapper
9318	hardcode_libdir_flag_spec=' '
9319	allow_undefined_flag=unsupported
9320	# Tell ltmain to make .lib files, not .a files.
9321	libext=lib
9322	# Tell ltmain to make .dll files, not .so files.
9323	shrext_cmds=".dll"
9324	# FIXME: Setting linknames here is a bad hack.
9325	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9326	# The linker will automatically build a .lib file if we build a DLL.
9327	old_archive_from_new_cmds='true'
9328	# FIXME: Should let the user specify the lib program.
9329	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9330	enable_shared_with_static_runtimes=yes
9331	;;
9332      esac
9333      ;;
9334
9335    darwin* | rhapsody*)
9336
9337
9338  archive_cmds_need_lc=no
9339  hardcode_direct=no
9340  hardcode_automatic=yes
9341  hardcode_shlibpath_var=unsupported
9342  if test "$lt_cv_ld_force_load" = "yes"; then
9343    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\"`'
9344
9345  else
9346    whole_archive_flag_spec=''
9347  fi
9348  link_all_deplibs=yes
9349  allow_undefined_flag="$_lt_dar_allow_undefined"
9350  case $cc_basename in
9351     ifort*) _lt_dar_can_shared=yes ;;
9352     *) _lt_dar_can_shared=$GCC ;;
9353  esac
9354  if test "$_lt_dar_can_shared" = "yes"; then
9355    output_verbose_link_cmd=func_echo_all
9356    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9357    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9358    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}"
9359    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}"
9360
9361  else
9362  ld_shlibs=no
9363  fi
9364
9365      ;;
9366
9367    dgux*)
9368      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369      hardcode_libdir_flag_spec='-L$libdir'
9370      hardcode_shlibpath_var=no
9371      ;;
9372
9373    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9374    # support.  Future versions do this automatically, but an explicit c++rt0.o
9375    # does not break anything, and helps significantly (at the cost of a little
9376    # extra space).
9377    freebsd2.2*)
9378      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9379      hardcode_libdir_flag_spec='-R$libdir'
9380      hardcode_direct=yes
9381      hardcode_shlibpath_var=no
9382      ;;
9383
9384    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9385    freebsd2.*)
9386      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9387      hardcode_direct=yes
9388      hardcode_minus_L=yes
9389      hardcode_shlibpath_var=no
9390      ;;
9391
9392    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9393    freebsd* | dragonfly*)
9394      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9395      hardcode_libdir_flag_spec='-R$libdir'
9396      hardcode_direct=yes
9397      hardcode_shlibpath_var=no
9398      ;;
9399
9400    hpux9*)
9401      if test "$GCC" = yes; then
9402	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'
9403      else
9404	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'
9405      fi
9406      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9407      hardcode_libdir_separator=:
9408      hardcode_direct=yes
9409
9410      # hardcode_minus_L: Not really in the search PATH,
9411      # but as the default location of the library.
9412      hardcode_minus_L=yes
9413      export_dynamic_flag_spec='${wl}-E'
9414      ;;
9415
9416    hpux10*)
9417      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9418	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9419      else
9420	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9421      fi
9422      if test "$with_gnu_ld" = no; then
9423	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9424	hardcode_libdir_separator=:
9425	hardcode_direct=yes
9426	hardcode_direct_absolute=yes
9427	export_dynamic_flag_spec='${wl}-E'
9428	# hardcode_minus_L: Not really in the search PATH,
9429	# but as the default location of the library.
9430	hardcode_minus_L=yes
9431      fi
9432      ;;
9433
9434    hpux11*)
9435      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9436	case $host_cpu in
9437	hppa*64*)
9438	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9439	  ;;
9440	ia64*)
9441	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9442	  ;;
9443	*)
9444	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9445	  ;;
9446	esac
9447      else
9448	case $host_cpu in
9449	hppa*64*)
9450	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9451	  ;;
9452	ia64*)
9453	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9454	  ;;
9455	*)
9456
9457	  # Older versions of the 11.00 compiler do not understand -b yet
9458	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9459	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9460$as_echo_n "checking if $CC understands -b... " >&6; }
9461if ${lt_cv_prog_compiler__b+:} false; then :
9462  $as_echo_n "(cached) " >&6
9463else
9464  lt_cv_prog_compiler__b=no
9465   save_LDFLAGS="$LDFLAGS"
9466   LDFLAGS="$LDFLAGS -b"
9467   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9468   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9469     # The linker can only warn and ignore the option if not recognized
9470     # So say no if there are warnings
9471     if test -s conftest.err; then
9472       # Append any errors to the config.log.
9473       cat conftest.err 1>&5
9474       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9475       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9476       if diff conftest.exp conftest.er2 >/dev/null; then
9477         lt_cv_prog_compiler__b=yes
9478       fi
9479     else
9480       lt_cv_prog_compiler__b=yes
9481     fi
9482   fi
9483   $RM -r conftest*
9484   LDFLAGS="$save_LDFLAGS"
9485
9486fi
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9488$as_echo "$lt_cv_prog_compiler__b" >&6; }
9489
9490if test x"$lt_cv_prog_compiler__b" = xyes; then
9491    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9492else
9493    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9494fi
9495
9496	  ;;
9497	esac
9498      fi
9499      if test "$with_gnu_ld" = no; then
9500	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9501	hardcode_libdir_separator=:
9502
9503	case $host_cpu in
9504	hppa*64*|ia64*)
9505	  hardcode_direct=no
9506	  hardcode_shlibpath_var=no
9507	  ;;
9508	*)
9509	  hardcode_direct=yes
9510	  hardcode_direct_absolute=yes
9511	  export_dynamic_flag_spec='${wl}-E'
9512
9513	  # hardcode_minus_L: Not really in the search PATH,
9514	  # but as the default location of the library.
9515	  hardcode_minus_L=yes
9516	  ;;
9517	esac
9518      fi
9519      ;;
9520
9521    irix5* | irix6* | nonstopux*)
9522      if test "$GCC" = yes; then
9523	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'
9524	# Try to use the -exported_symbol ld option, if it does not
9525	# work, assume that -exports_file does not work either and
9526	# implicitly export all symbols.
9527	# This should be the same for all languages, so no per-tag cache variable.
9528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9529$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9530if ${lt_cv_irix_exported_symbol+:} false; then :
9531  $as_echo_n "(cached) " >&6
9532else
9533  save_LDFLAGS="$LDFLAGS"
9534	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9535	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536/* end confdefs.h.  */
9537int foo (void) { return 0; }
9538_ACEOF
9539if ac_fn_c_try_link "$LINENO"; then :
9540  lt_cv_irix_exported_symbol=yes
9541else
9542  lt_cv_irix_exported_symbol=no
9543fi
9544rm -f core conftest.err conftest.$ac_objext \
9545    conftest$ac_exeext conftest.$ac_ext
9546           LDFLAGS="$save_LDFLAGS"
9547fi
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9549$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9550	if test "$lt_cv_irix_exported_symbol" = yes; then
9551          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'
9552	fi
9553      else
9554	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'
9555	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'
9556      fi
9557      archive_cmds_need_lc='no'
9558      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559      hardcode_libdir_separator=:
9560      inherit_rpath=yes
9561      link_all_deplibs=yes
9562      ;;
9563
9564    netbsd* | netbsdelf*-gnu)
9565      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9566	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9567      else
9568	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9569      fi
9570      hardcode_libdir_flag_spec='-R$libdir'
9571      hardcode_direct=yes
9572      hardcode_shlibpath_var=no
9573      ;;
9574
9575    newsos6)
9576      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577      hardcode_direct=yes
9578      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579      hardcode_libdir_separator=:
9580      hardcode_shlibpath_var=no
9581      ;;
9582
9583    *nto* | *qnx*)
9584      ;;
9585
9586    openbsd*)
9587      if test -f /usr/libexec/ld.so; then
9588	hardcode_direct=yes
9589	hardcode_shlibpath_var=no
9590	hardcode_direct_absolute=yes
9591	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9592	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9593	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9594	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9595	  export_dynamic_flag_spec='${wl}-E'
9596	else
9597	  case $host_os in
9598	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9599	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9600	     hardcode_libdir_flag_spec='-R$libdir'
9601	     ;;
9602	   *)
9603	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9604	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9605	     ;;
9606	  esac
9607	fi
9608      else
9609	ld_shlibs=no
9610      fi
9611      ;;
9612
9613    os2*)
9614      hardcode_libdir_flag_spec='-L$libdir'
9615      hardcode_minus_L=yes
9616      allow_undefined_flag=unsupported
9617      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'
9618      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9619      ;;
9620
9621    osf3*)
9622      if test "$GCC" = yes; then
9623	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9624	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'
9625      else
9626	allow_undefined_flag=' -expect_unresolved \*'
9627	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'
9628      fi
9629      archive_cmds_need_lc='no'
9630      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631      hardcode_libdir_separator=:
9632      ;;
9633
9634    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9635      if test "$GCC" = yes; then
9636	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9637	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'
9638	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9639      else
9640	allow_undefined_flag=' -expect_unresolved \*'
9641	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'
9642	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~
9643	$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'
9644
9645	# Both c and cxx compiler support -rpath directly
9646	hardcode_libdir_flag_spec='-rpath $libdir'
9647      fi
9648      archive_cmds_need_lc='no'
9649      hardcode_libdir_separator=:
9650      ;;
9651
9652    solaris*)
9653      no_undefined_flag=' -z defs'
9654      if test "$GCC" = yes; then
9655	wlarc='${wl}'
9656	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9657	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9658	  $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'
9659      else
9660	case `$CC -V 2>&1` in
9661	*"Compilers 5.0"*)
9662	  wlarc=''
9663	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9665	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9666	  ;;
9667	*)
9668	  wlarc='${wl}'
9669	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9670	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9671	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9672	  ;;
9673	esac
9674      fi
9675      hardcode_libdir_flag_spec='-R$libdir'
9676      hardcode_shlibpath_var=no
9677      case $host_os in
9678      solaris2.[0-5] | solaris2.[0-5].*) ;;
9679      *)
9680	# The compiler driver will combine and reorder linker options,
9681	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9682	# but is careful enough not to reorder.
9683	# Supported since Solaris 2.6 (maybe 2.5.1?)
9684	if test "$GCC" = yes; then
9685	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9686	else
9687	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9688	fi
9689	;;
9690      esac
9691      link_all_deplibs=yes
9692      ;;
9693
9694    sunos4*)
9695      if test "x$host_vendor" = xsequent; then
9696	# Use $CC to link under sequent, because it throws in some extra .o
9697	# files that make .init and .fini sections work.
9698	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9699      else
9700	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9701      fi
9702      hardcode_libdir_flag_spec='-L$libdir'
9703      hardcode_direct=yes
9704      hardcode_minus_L=yes
9705      hardcode_shlibpath_var=no
9706      ;;
9707
9708    sysv4)
9709      case $host_vendor in
9710	sni)
9711	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712	  hardcode_direct=yes # is this really true???
9713	;;
9714	siemens)
9715	  ## LD is ld it makes a PLAMLIB
9716	  ## CC just makes a GrossModule.
9717	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9718	  reload_cmds='$CC -r -o $output$reload_objs'
9719	  hardcode_direct=no
9720        ;;
9721	motorola)
9722	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9724	;;
9725      esac
9726      runpath_var='LD_RUN_PATH'
9727      hardcode_shlibpath_var=no
9728      ;;
9729
9730    sysv4.3*)
9731      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732      hardcode_shlibpath_var=no
9733      export_dynamic_flag_spec='-Bexport'
9734      ;;
9735
9736    sysv4*MP*)
9737      if test -d /usr/nec; then
9738	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739	hardcode_shlibpath_var=no
9740	runpath_var=LD_RUN_PATH
9741	hardcode_runpath_var=yes
9742	ld_shlibs=yes
9743      fi
9744      ;;
9745
9746    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9747      no_undefined_flag='${wl}-z,text'
9748      archive_cmds_need_lc=no
9749      hardcode_shlibpath_var=no
9750      runpath_var='LD_RUN_PATH'
9751
9752      if test "$GCC" = yes; then
9753	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755      else
9756	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758      fi
9759      ;;
9760
9761    sysv5* | sco3.2v5* | sco5v6*)
9762      # Note: We can NOT use -z defs as we might desire, because we do not
9763      # link with -lc, and that would cause any symbols used from libc to
9764      # always be unresolved, which means just about no library would
9765      # ever link correctly.  If we're not using GNU ld we use -z text
9766      # though, which does catch some bad symbols but isn't as heavy-handed
9767      # as -z defs.
9768      no_undefined_flag='${wl}-z,text'
9769      allow_undefined_flag='${wl}-z,nodefs'
9770      archive_cmds_need_lc=no
9771      hardcode_shlibpath_var=no
9772      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9773      hardcode_libdir_separator=':'
9774      link_all_deplibs=yes
9775      export_dynamic_flag_spec='${wl}-Bexport'
9776      runpath_var='LD_RUN_PATH'
9777
9778      if test "$GCC" = yes; then
9779	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9780	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781      else
9782	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784      fi
9785      ;;
9786
9787    uts4*)
9788      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789      hardcode_libdir_flag_spec='-L$libdir'
9790      hardcode_shlibpath_var=no
9791      ;;
9792
9793    *)
9794      ld_shlibs=no
9795      ;;
9796    esac
9797
9798    if test x$host_vendor = xsni; then
9799      case $host in
9800      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9801	export_dynamic_flag_spec='${wl}-Blargedynsym'
9802	;;
9803      esac
9804    fi
9805  fi
9806
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9808$as_echo "$ld_shlibs" >&6; }
9809test "$ld_shlibs" = no && can_build_shared=no
9810
9811with_gnu_ld=$with_gnu_ld
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827#
9828# Do we need to explicitly link libc?
9829#
9830case "x$archive_cmds_need_lc" in
9831x|xyes)
9832  # Assume -lc should be added
9833  archive_cmds_need_lc=yes
9834
9835  if test "$enable_shared" = yes && test "$GCC" = yes; then
9836    case $archive_cmds in
9837    *'~'*)
9838      # FIXME: we may have to deal with multi-command sequences.
9839      ;;
9840    '$CC '*)
9841      # Test whether the compiler implicitly links with -lc since on some
9842      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9843      # to ld, don't add -lc before -lgcc.
9844      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9845$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9846if ${lt_cv_archive_cmds_need_lc+:} false; then :
9847  $as_echo_n "(cached) " >&6
9848else
9849  $RM conftest*
9850	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9851
9852	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9853  (eval $ac_compile) 2>&5
9854  ac_status=$?
9855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9856  test $ac_status = 0; } 2>conftest.err; then
9857	  soname=conftest
9858	  lib=conftest
9859	  libobjs=conftest.$ac_objext
9860	  deplibs=
9861	  wl=$lt_prog_compiler_wl
9862	  pic_flag=$lt_prog_compiler_pic
9863	  compiler_flags=-v
9864	  linker_flags=-v
9865	  verstring=
9866	  output_objdir=.
9867	  libname=conftest
9868	  lt_save_allow_undefined_flag=$allow_undefined_flag
9869	  allow_undefined_flag=
9870	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9871  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9872  ac_status=$?
9873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9874  test $ac_status = 0; }
9875	  then
9876	    lt_cv_archive_cmds_need_lc=no
9877	  else
9878	    lt_cv_archive_cmds_need_lc=yes
9879	  fi
9880	  allow_undefined_flag=$lt_save_allow_undefined_flag
9881	else
9882	  cat conftest.err 1>&5
9883	fi
9884	$RM conftest*
9885
9886fi
9887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9888$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9889      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9890      ;;
9891    esac
9892  fi
9893  ;;
9894esac
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10048$as_echo_n "checking dynamic linker characteristics... " >&6; }
10049
10050if test "$GCC" = yes; then
10051  case $host_os in
10052    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10053    *) lt_awk_arg="/^libraries:/" ;;
10054  esac
10055  case $host_os in
10056    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10057    *) lt_sed_strip_eq="s,=/,/,g" ;;
10058  esac
10059  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10060  case $lt_search_path_spec in
10061  *\;*)
10062    # if the path contains ";" then we assume it to be the separator
10063    # otherwise default to the standard path separator (i.e. ":") - it is
10064    # assumed that no part of a normal pathname contains ";" but that should
10065    # okay in the real world where ";" in dirpaths is itself problematic.
10066    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10067    ;;
10068  *)
10069    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10070    ;;
10071  esac
10072  # Ok, now we have the path, separated by spaces, we can step through it
10073  # and add multilib dir if necessary.
10074  lt_tmp_lt_search_path_spec=
10075  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10076  for lt_sys_path in $lt_search_path_spec; do
10077    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10078      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10079    else
10080      test -d "$lt_sys_path" && \
10081	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10082    fi
10083  done
10084  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10085BEGIN {RS=" "; FS="/|\n";} {
10086  lt_foo="";
10087  lt_count=0;
10088  for (lt_i = NF; lt_i > 0; lt_i--) {
10089    if ($lt_i != "" && $lt_i != ".") {
10090      if ($lt_i == "..") {
10091        lt_count++;
10092      } else {
10093        if (lt_count == 0) {
10094          lt_foo="/" $lt_i lt_foo;
10095        } else {
10096          lt_count--;
10097        }
10098      }
10099    }
10100  }
10101  if (lt_foo != "") { lt_freq[lt_foo]++; }
10102  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10103}'`
10104  # AWK program above erroneously prepends '/' to C:/dos/paths
10105  # for these hosts.
10106  case $host_os in
10107    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10108      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10109  esac
10110  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10111else
10112  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10113fi
10114library_names_spec=
10115libname_spec='lib$name'
10116soname_spec=
10117shrext_cmds=".so"
10118postinstall_cmds=
10119postuninstall_cmds=
10120finish_cmds=
10121finish_eval=
10122shlibpath_var=
10123shlibpath_overrides_runpath=unknown
10124version_type=none
10125dynamic_linker="$host_os ld.so"
10126sys_lib_dlsearch_path_spec="/lib /usr/lib"
10127need_lib_prefix=unknown
10128hardcode_into_libs=no
10129
10130# when you set need_version to no, make sure it does not cause -set_version
10131# flags to be left without arguments
10132need_version=unknown
10133
10134case $host_os in
10135aix3*)
10136  version_type=linux # correct to gnu/linux during the next big refactor
10137  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10138  shlibpath_var=LIBPATH
10139
10140  # AIX 3 has no versioning support, so we append a major version to the name.
10141  soname_spec='${libname}${release}${shared_ext}$major'
10142  ;;
10143
10144aix[4-9]*)
10145  version_type=linux # correct to gnu/linux during the next big refactor
10146  need_lib_prefix=no
10147  need_version=no
10148  hardcode_into_libs=yes
10149  if test "$host_cpu" = ia64; then
10150    # AIX 5 supports IA64
10151    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10152    shlibpath_var=LD_LIBRARY_PATH
10153  else
10154    # With GCC up to 2.95.x, collect2 would create an import file
10155    # for dependence libraries.  The import file would start with
10156    # the line `#! .'.  This would cause the generated library to
10157    # depend on `.', always an invalid library.  This was fixed in
10158    # development snapshots of GCC prior to 3.0.
10159    case $host_os in
10160      aix4 | aix4.[01] | aix4.[01].*)
10161      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10162	   echo ' yes '
10163	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10164	:
10165      else
10166	can_build_shared=no
10167      fi
10168      ;;
10169    esac
10170    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10171    # soname into executable. Probably we can add versioning support to
10172    # collect2, so additional links can be useful in future.
10173    if test "$aix_use_runtimelinking" = yes; then
10174      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10175      # instead of lib<name>.a to let people know that these are not
10176      # typical AIX shared libraries.
10177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10178    else
10179      # We preserve .a as extension for shared libraries through AIX4.2
10180      # and later when we are not doing run time linking.
10181      library_names_spec='${libname}${release}.a $libname.a'
10182      soname_spec='${libname}${release}${shared_ext}$major'
10183    fi
10184    shlibpath_var=LIBPATH
10185  fi
10186  ;;
10187
10188amigaos*)
10189  case $host_cpu in
10190  powerpc)
10191    # Since July 2007 AmigaOS4 officially supports .so libraries.
10192    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10193    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194    ;;
10195  m68k)
10196    library_names_spec='$libname.ixlibrary $libname.a'
10197    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10198    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'
10199    ;;
10200  esac
10201  ;;
10202
10203beos*)
10204  library_names_spec='${libname}${shared_ext}'
10205  dynamic_linker="$host_os ld.so"
10206  shlibpath_var=LIBRARY_PATH
10207  ;;
10208
10209bsdi[45]*)
10210  version_type=linux # correct to gnu/linux during the next big refactor
10211  need_version=no
10212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213  soname_spec='${libname}${release}${shared_ext}$major'
10214  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10215  shlibpath_var=LD_LIBRARY_PATH
10216  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10217  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10218  # the default ld.so.conf also contains /usr/contrib/lib and
10219  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10220  # libtool to hard-code these into programs
10221  ;;
10222
10223cygwin* | mingw* | pw32* | cegcc*)
10224  version_type=windows
10225  shrext_cmds=".dll"
10226  need_version=no
10227  need_lib_prefix=no
10228
10229  case $GCC,$cc_basename in
10230  yes,*)
10231    # gcc
10232    library_names_spec='$libname.dll.a'
10233    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10234    postinstall_cmds='base_file=`basename \${file}`~
10235      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10236      dldir=$destdir/`dirname \$dlpath`~
10237      test -d \$dldir || mkdir -p \$dldir~
10238      $install_prog $dir/$dlname \$dldir/$dlname~
10239      chmod a+x \$dldir/$dlname~
10240      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10241        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10242      fi'
10243    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10244      dlpath=$dir/\$dldll~
10245       $RM \$dlpath'
10246    shlibpath_overrides_runpath=yes
10247
10248    case $host_os in
10249    cygwin*)
10250      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10251      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10252
10253      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10254      ;;
10255    mingw* | cegcc*)
10256      # MinGW DLLs use traditional 'lib' prefix
10257      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10258      ;;
10259    pw32*)
10260      # pw32 DLLs use 'pw' prefix rather than 'lib'
10261      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10262      ;;
10263    esac
10264    dynamic_linker='Win32 ld.exe'
10265    ;;
10266
10267  *,cl*)
10268    # Native MSVC
10269    libname_spec='$name'
10270    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10271    library_names_spec='${libname}.dll.lib'
10272
10273    case $build_os in
10274    mingw*)
10275      sys_lib_search_path_spec=
10276      lt_save_ifs=$IFS
10277      IFS=';'
10278      for lt_path in $LIB
10279      do
10280        IFS=$lt_save_ifs
10281        # Let DOS variable expansion print the short 8.3 style file name.
10282        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10283        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10284      done
10285      IFS=$lt_save_ifs
10286      # Convert to MSYS style.
10287      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10288      ;;
10289    cygwin*)
10290      # Convert to unix form, then to dos form, then back to unix form
10291      # but this time dos style (no spaces!) so that the unix form looks
10292      # like /cygdrive/c/PROGRA~1:/cygdr...
10293      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10294      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10295      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10296      ;;
10297    *)
10298      sys_lib_search_path_spec="$LIB"
10299      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10300        # It is most probably a Windows format PATH.
10301        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10302      else
10303        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10304      fi
10305      # FIXME: find the short name or the path components, as spaces are
10306      # common. (e.g. "Program Files" -> "PROGRA~1")
10307      ;;
10308    esac
10309
10310    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10311    postinstall_cmds='base_file=`basename \${file}`~
10312      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10313      dldir=$destdir/`dirname \$dlpath`~
10314      test -d \$dldir || mkdir -p \$dldir~
10315      $install_prog $dir/$dlname \$dldir/$dlname'
10316    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10317      dlpath=$dir/\$dldll~
10318       $RM \$dlpath'
10319    shlibpath_overrides_runpath=yes
10320    dynamic_linker='Win32 link.exe'
10321    ;;
10322
10323  *)
10324    # Assume MSVC wrapper
10325    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10326    dynamic_linker='Win32 ld.exe'
10327    ;;
10328  esac
10329  # FIXME: first we should search . and the directory the executable is in
10330  shlibpath_var=PATH
10331  ;;
10332
10333darwin* | rhapsody*)
10334  dynamic_linker="$host_os dyld"
10335  version_type=darwin
10336  need_lib_prefix=no
10337  need_version=no
10338  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10339  soname_spec='${libname}${release}${major}$shared_ext'
10340  shlibpath_overrides_runpath=yes
10341  shlibpath_var=DYLD_LIBRARY_PATH
10342  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10343
10344  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10345  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10346  ;;
10347
10348dgux*)
10349  version_type=linux # correct to gnu/linux during the next big refactor
10350  need_lib_prefix=no
10351  need_version=no
10352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10353  soname_spec='${libname}${release}${shared_ext}$major'
10354  shlibpath_var=LD_LIBRARY_PATH
10355  ;;
10356
10357freebsd* | dragonfly*)
10358  # DragonFly does not have aout.  When/if they implement a new
10359  # versioning mechanism, adjust this.
10360  if test -x /usr/bin/objformat; then
10361    objformat=`/usr/bin/objformat`
10362  else
10363    case $host_os in
10364    freebsd[23].*) objformat=aout ;;
10365    *) objformat=elf ;;
10366    esac
10367  fi
10368  version_type=freebsd-$objformat
10369  case $version_type in
10370    freebsd-elf*)
10371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10372      need_version=no
10373      need_lib_prefix=no
10374      ;;
10375    freebsd-*)
10376      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10377      need_version=yes
10378      ;;
10379  esac
10380  shlibpath_var=LD_LIBRARY_PATH
10381  case $host_os in
10382  freebsd2.*)
10383    shlibpath_overrides_runpath=yes
10384    ;;
10385  freebsd3.[01]* | freebsdelf3.[01]*)
10386    shlibpath_overrides_runpath=yes
10387    hardcode_into_libs=yes
10388    ;;
10389  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10390  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10391    shlibpath_overrides_runpath=no
10392    hardcode_into_libs=yes
10393    ;;
10394  *) # from 4.6 on, and DragonFly
10395    shlibpath_overrides_runpath=yes
10396    hardcode_into_libs=yes
10397    ;;
10398  esac
10399  ;;
10400
10401haiku*)
10402  version_type=linux # correct to gnu/linux during the next big refactor
10403  need_lib_prefix=no
10404  need_version=no
10405  dynamic_linker="$host_os runtime_loader"
10406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10407  soname_spec='${libname}${release}${shared_ext}$major'
10408  shlibpath_var=LIBRARY_PATH
10409  shlibpath_overrides_runpath=yes
10410  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10411  hardcode_into_libs=yes
10412  ;;
10413
10414hpux9* | hpux10* | hpux11*)
10415  # Give a soname corresponding to the major version so that dld.sl refuses to
10416  # link against other versions.
10417  version_type=sunos
10418  need_lib_prefix=no
10419  need_version=no
10420  case $host_cpu in
10421  ia64*)
10422    shrext_cmds='.so'
10423    hardcode_into_libs=yes
10424    dynamic_linker="$host_os dld.so"
10425    shlibpath_var=LD_LIBRARY_PATH
10426    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10427    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428    soname_spec='${libname}${release}${shared_ext}$major'
10429    if test "X$HPUX_IA64_MODE" = X32; then
10430      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10431    else
10432      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10433    fi
10434    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10435    ;;
10436  hppa*64*)
10437    shrext_cmds='.sl'
10438    hardcode_into_libs=yes
10439    dynamic_linker="$host_os dld.sl"
10440    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10441    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10442    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443    soname_spec='${libname}${release}${shared_ext}$major'
10444    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10445    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10446    ;;
10447  *)
10448    shrext_cmds='.sl'
10449    dynamic_linker="$host_os dld.sl"
10450    shlibpath_var=SHLIB_PATH
10451    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10452    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453    soname_spec='${libname}${release}${shared_ext}$major'
10454    ;;
10455  esac
10456  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10457  postinstall_cmds='chmod 555 $lib'
10458  # or fails outright, so override atomically:
10459  install_override_mode=555
10460  ;;
10461
10462interix[3-9]*)
10463  version_type=linux # correct to gnu/linux during the next big refactor
10464  need_lib_prefix=no
10465  need_version=no
10466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10467  soname_spec='${libname}${release}${shared_ext}$major'
10468  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10469  shlibpath_var=LD_LIBRARY_PATH
10470  shlibpath_overrides_runpath=no
10471  hardcode_into_libs=yes
10472  ;;
10473
10474irix5* | irix6* | nonstopux*)
10475  case $host_os in
10476    nonstopux*) version_type=nonstopux ;;
10477    *)
10478	if test "$lt_cv_prog_gnu_ld" = yes; then
10479		version_type=linux # correct to gnu/linux during the next big refactor
10480	else
10481		version_type=irix
10482	fi ;;
10483  esac
10484  need_lib_prefix=no
10485  need_version=no
10486  soname_spec='${libname}${release}${shared_ext}$major'
10487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10488  case $host_os in
10489  irix5* | nonstopux*)
10490    libsuff= shlibsuff=
10491    ;;
10492  *)
10493    case $LD in # libtool.m4 will add one of these switches to LD
10494    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10495      libsuff= shlibsuff= libmagic=32-bit;;
10496    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10497      libsuff=32 shlibsuff=N32 libmagic=N32;;
10498    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10499      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10500    *) libsuff= shlibsuff= libmagic=never-match;;
10501    esac
10502    ;;
10503  esac
10504  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10505  shlibpath_overrides_runpath=no
10506  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10507  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10508  hardcode_into_libs=yes
10509  ;;
10510
10511# No shared lib support for Linux oldld, aout, or coff.
10512linux*oldld* | linux*aout* | linux*coff*)
10513  dynamic_linker=no
10514  ;;
10515
10516# This must be glibc/ELF.
10517linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10518  version_type=linux # correct to gnu/linux during the next big refactor
10519  need_lib_prefix=no
10520  need_version=no
10521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522  soname_spec='${libname}${release}${shared_ext}$major'
10523  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10524  shlibpath_var=LD_LIBRARY_PATH
10525  shlibpath_overrides_runpath=no
10526
10527  # Some binutils ld are patched to set DT_RUNPATH
10528  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10529  $as_echo_n "(cached) " >&6
10530else
10531  lt_cv_shlibpath_overrides_runpath=no
10532    save_LDFLAGS=$LDFLAGS
10533    save_libdir=$libdir
10534    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10535	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10536    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537/* end confdefs.h.  */
10538
10539int
10540main ()
10541{
10542
10543  ;
10544  return 0;
10545}
10546_ACEOF
10547if ac_fn_c_try_link "$LINENO"; then :
10548  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10549  lt_cv_shlibpath_overrides_runpath=yes
10550fi
10551fi
10552rm -f core conftest.err conftest.$ac_objext \
10553    conftest$ac_exeext conftest.$ac_ext
10554    LDFLAGS=$save_LDFLAGS
10555    libdir=$save_libdir
10556
10557fi
10558
10559  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10560
10561  # This implies no fast_install, which is unacceptable.
10562  # Some rework will be needed to allow for fast_install
10563  # before this can be enabled.
10564  hardcode_into_libs=yes
10565
10566  # Append ld.so.conf contents to the search path
10567  if test -f /etc/ld.so.conf; then
10568    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' ' '`
10569    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10570  fi
10571
10572  # We used to test for /lib/ld.so.1 and disable shared libraries on
10573  # powerpc, because MkLinux only supported shared libraries with the
10574  # GNU dynamic linker.  Since this was broken with cross compilers,
10575  # most powerpc-linux boxes support dynamic linking these days and
10576  # people can always --disable-shared, the test was removed, and we
10577  # assume the GNU/Linux dynamic linker is in use.
10578  dynamic_linker='GNU/Linux ld.so'
10579  ;;
10580
10581netbsdelf*-gnu)
10582  version_type=linux
10583  need_lib_prefix=no
10584  need_version=no
10585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10586  soname_spec='${libname}${release}${shared_ext}$major'
10587  shlibpath_var=LD_LIBRARY_PATH
10588  shlibpath_overrides_runpath=no
10589  hardcode_into_libs=yes
10590  dynamic_linker='NetBSD ld.elf_so'
10591  ;;
10592
10593netbsd*)
10594  version_type=sunos
10595  need_lib_prefix=no
10596  need_version=no
10597  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10598    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10599    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10600    dynamic_linker='NetBSD (a.out) ld.so'
10601  else
10602    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10603    soname_spec='${libname}${release}${shared_ext}$major'
10604    dynamic_linker='NetBSD ld.elf_so'
10605  fi
10606  shlibpath_var=LD_LIBRARY_PATH
10607  shlibpath_overrides_runpath=yes
10608  hardcode_into_libs=yes
10609  ;;
10610
10611newsos6)
10612  version_type=linux # correct to gnu/linux during the next big refactor
10613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614  shlibpath_var=LD_LIBRARY_PATH
10615  shlibpath_overrides_runpath=yes
10616  ;;
10617
10618*nto* | *qnx*)
10619  version_type=qnx
10620  need_lib_prefix=no
10621  need_version=no
10622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623  soname_spec='${libname}${release}${shared_ext}$major'
10624  shlibpath_var=LD_LIBRARY_PATH
10625  shlibpath_overrides_runpath=no
10626  hardcode_into_libs=yes
10627  dynamic_linker='ldqnx.so'
10628  ;;
10629
10630openbsd*)
10631  version_type=sunos
10632  sys_lib_dlsearch_path_spec="/usr/lib"
10633  need_lib_prefix=no
10634  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10635  case $host_os in
10636    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10637    *)				need_version=no  ;;
10638  esac
10639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10640  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10641  shlibpath_var=LD_LIBRARY_PATH
10642  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10643    case $host_os in
10644      openbsd2.[89] | openbsd2.[89].*)
10645	shlibpath_overrides_runpath=no
10646	;;
10647      *)
10648	shlibpath_overrides_runpath=yes
10649	;;
10650      esac
10651  else
10652    shlibpath_overrides_runpath=yes
10653  fi
10654  ;;
10655
10656os2*)
10657  libname_spec='$name'
10658  shrext_cmds=".dll"
10659  need_lib_prefix=no
10660  library_names_spec='$libname${shared_ext} $libname.a'
10661  dynamic_linker='OS/2 ld.exe'
10662  shlibpath_var=LIBPATH
10663  ;;
10664
10665osf3* | osf4* | osf5*)
10666  version_type=osf
10667  need_lib_prefix=no
10668  need_version=no
10669  soname_spec='${libname}${release}${shared_ext}$major'
10670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671  shlibpath_var=LD_LIBRARY_PATH
10672  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10673  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10674  ;;
10675
10676rdos*)
10677  dynamic_linker=no
10678  ;;
10679
10680solaris*)
10681  version_type=linux # correct to gnu/linux during the next big refactor
10682  need_lib_prefix=no
10683  need_version=no
10684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685  soname_spec='${libname}${release}${shared_ext}$major'
10686  shlibpath_var=LD_LIBRARY_PATH
10687  shlibpath_overrides_runpath=yes
10688  hardcode_into_libs=yes
10689  # ldd complains unless libraries are executable
10690  postinstall_cmds='chmod +x $lib'
10691  ;;
10692
10693sunos4*)
10694  version_type=sunos
10695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10696  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10697  shlibpath_var=LD_LIBRARY_PATH
10698  shlibpath_overrides_runpath=yes
10699  if test "$with_gnu_ld" = yes; then
10700    need_lib_prefix=no
10701  fi
10702  need_version=yes
10703  ;;
10704
10705sysv4 | sysv4.3*)
10706  version_type=linux # correct to gnu/linux during the next big refactor
10707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708  soname_spec='${libname}${release}${shared_ext}$major'
10709  shlibpath_var=LD_LIBRARY_PATH
10710  case $host_vendor in
10711    sni)
10712      shlibpath_overrides_runpath=no
10713      need_lib_prefix=no
10714      runpath_var=LD_RUN_PATH
10715      ;;
10716    siemens)
10717      need_lib_prefix=no
10718      ;;
10719    motorola)
10720      need_lib_prefix=no
10721      need_version=no
10722      shlibpath_overrides_runpath=no
10723      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10724      ;;
10725  esac
10726  ;;
10727
10728sysv4*MP*)
10729  if test -d /usr/nec ;then
10730    version_type=linux # correct to gnu/linux during the next big refactor
10731    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10732    soname_spec='$libname${shared_ext}.$major'
10733    shlibpath_var=LD_LIBRARY_PATH
10734  fi
10735  ;;
10736
10737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10738  version_type=freebsd-elf
10739  need_lib_prefix=no
10740  need_version=no
10741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10742  soname_spec='${libname}${release}${shared_ext}$major'
10743  shlibpath_var=LD_LIBRARY_PATH
10744  shlibpath_overrides_runpath=yes
10745  hardcode_into_libs=yes
10746  if test "$with_gnu_ld" = yes; then
10747    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10748  else
10749    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10750    case $host_os in
10751      sco3.2v5*)
10752        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10753	;;
10754    esac
10755  fi
10756  sys_lib_dlsearch_path_spec='/usr/lib'
10757  ;;
10758
10759tpf*)
10760  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10761  version_type=linux # correct to gnu/linux during the next big refactor
10762  need_lib_prefix=no
10763  need_version=no
10764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765  shlibpath_var=LD_LIBRARY_PATH
10766  shlibpath_overrides_runpath=no
10767  hardcode_into_libs=yes
10768  ;;
10769
10770uts4*)
10771  version_type=linux # correct to gnu/linux during the next big refactor
10772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773  soname_spec='${libname}${release}${shared_ext}$major'
10774  shlibpath_var=LD_LIBRARY_PATH
10775  ;;
10776
10777*)
10778  dynamic_linker=no
10779  ;;
10780esac
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10782$as_echo "$dynamic_linker" >&6; }
10783test "$dynamic_linker" = no && can_build_shared=no
10784
10785variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10786if test "$GCC" = yes; then
10787  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10788fi
10789
10790if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10791  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10792fi
10793if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10794  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10795fi
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
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10889$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10890hardcode_action=
10891if test -n "$hardcode_libdir_flag_spec" ||
10892   test -n "$runpath_var" ||
10893   test "X$hardcode_automatic" = "Xyes" ; then
10894
10895  # We can hardcode non-existent directories.
10896  if test "$hardcode_direct" != no &&
10897     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10898     # have to relink, otherwise we might link with an installed library
10899     # when we should be linking with a yet-to-be-installed one
10900     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10901     test "$hardcode_minus_L" != no; then
10902    # Linking always hardcodes the temporary library directory.
10903    hardcode_action=relink
10904  else
10905    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10906    hardcode_action=immediate
10907  fi
10908else
10909  # We cannot hardcode anything, or else we can only hardcode existing
10910  # directories.
10911  hardcode_action=unsupported
10912fi
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10914$as_echo "$hardcode_action" >&6; }
10915
10916if test "$hardcode_action" = relink ||
10917   test "$inherit_rpath" = yes; then
10918  # Fast installation is not supported
10919  enable_fast_install=no
10920elif test "$shlibpath_overrides_runpath" = yes ||
10921     test "$enable_shared" = no; then
10922  # Fast installation is not necessary
10923  enable_fast_install=needless
10924fi
10925
10926
10927
10928
10929
10930
10931  if test "x$enable_dlopen" != xyes; then
10932  enable_dlopen=unknown
10933  enable_dlopen_self=unknown
10934  enable_dlopen_self_static=unknown
10935else
10936  lt_cv_dlopen=no
10937  lt_cv_dlopen_libs=
10938
10939  case $host_os in
10940  beos*)
10941    lt_cv_dlopen="load_add_on"
10942    lt_cv_dlopen_libs=
10943    lt_cv_dlopen_self=yes
10944    ;;
10945
10946  mingw* | pw32* | cegcc*)
10947    lt_cv_dlopen="LoadLibrary"
10948    lt_cv_dlopen_libs=
10949    ;;
10950
10951  cygwin*)
10952    lt_cv_dlopen="dlopen"
10953    lt_cv_dlopen_libs=
10954    ;;
10955
10956  darwin*)
10957  # if libdl is installed we need to link against it
10958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10959$as_echo_n "checking for dlopen in -ldl... " >&6; }
10960if ${ac_cv_lib_dl_dlopen+:} false; then :
10961  $as_echo_n "(cached) " >&6
10962else
10963  ac_check_lib_save_LIBS=$LIBS
10964LIBS="-ldl  $LIBS"
10965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966/* end confdefs.h.  */
10967
10968/* Override any GCC internal prototype to avoid an error.
10969   Use char because int might match the return type of a GCC
10970   builtin and then its argument prototype would still apply.  */
10971#ifdef __cplusplus
10972extern "C"
10973#endif
10974char dlopen ();
10975int
10976main ()
10977{
10978return dlopen ();
10979  ;
10980  return 0;
10981}
10982_ACEOF
10983if ac_fn_c_try_link "$LINENO"; then :
10984  ac_cv_lib_dl_dlopen=yes
10985else
10986  ac_cv_lib_dl_dlopen=no
10987fi
10988rm -f core conftest.err conftest.$ac_objext \
10989    conftest$ac_exeext conftest.$ac_ext
10990LIBS=$ac_check_lib_save_LIBS
10991fi
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10993$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10994if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10995  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10996else
10997
10998    lt_cv_dlopen="dyld"
10999    lt_cv_dlopen_libs=
11000    lt_cv_dlopen_self=yes
11001
11002fi
11003
11004    ;;
11005
11006  *)
11007    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11008if test "x$ac_cv_func_shl_load" = xyes; then :
11009  lt_cv_dlopen="shl_load"
11010else
11011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11012$as_echo_n "checking for shl_load in -ldld... " >&6; }
11013if ${ac_cv_lib_dld_shl_load+:} false; then :
11014  $as_echo_n "(cached) " >&6
11015else
11016  ac_check_lib_save_LIBS=$LIBS
11017LIBS="-ldld  $LIBS"
11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h.  */
11020
11021/* Override any GCC internal prototype to avoid an error.
11022   Use char because int might match the return type of a GCC
11023   builtin and then its argument prototype would still apply.  */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027char shl_load ();
11028int
11029main ()
11030{
11031return shl_load ();
11032  ;
11033  return 0;
11034}
11035_ACEOF
11036if ac_fn_c_try_link "$LINENO"; then :
11037  ac_cv_lib_dld_shl_load=yes
11038else
11039  ac_cv_lib_dld_shl_load=no
11040fi
11041rm -f core conftest.err conftest.$ac_objext \
11042    conftest$ac_exeext conftest.$ac_ext
11043LIBS=$ac_check_lib_save_LIBS
11044fi
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11046$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11047if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11048  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11049else
11050  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11051if test "x$ac_cv_func_dlopen" = xyes; then :
11052  lt_cv_dlopen="dlopen"
11053else
11054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11055$as_echo_n "checking for dlopen in -ldl... " >&6; }
11056if ${ac_cv_lib_dl_dlopen+:} false; then :
11057  $as_echo_n "(cached) " >&6
11058else
11059  ac_check_lib_save_LIBS=$LIBS
11060LIBS="-ldl  $LIBS"
11061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062/* end confdefs.h.  */
11063
11064/* Override any GCC internal prototype to avoid an error.
11065   Use char because int might match the return type of a GCC
11066   builtin and then its argument prototype would still apply.  */
11067#ifdef __cplusplus
11068extern "C"
11069#endif
11070char dlopen ();
11071int
11072main ()
11073{
11074return dlopen ();
11075  ;
11076  return 0;
11077}
11078_ACEOF
11079if ac_fn_c_try_link "$LINENO"; then :
11080  ac_cv_lib_dl_dlopen=yes
11081else
11082  ac_cv_lib_dl_dlopen=no
11083fi
11084rm -f core conftest.err conftest.$ac_objext \
11085    conftest$ac_exeext conftest.$ac_ext
11086LIBS=$ac_check_lib_save_LIBS
11087fi
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11089$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11090if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11091  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11092else
11093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11094$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11095if ${ac_cv_lib_svld_dlopen+:} false; then :
11096  $as_echo_n "(cached) " >&6
11097else
11098  ac_check_lib_save_LIBS=$LIBS
11099LIBS="-lsvld  $LIBS"
11100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101/* end confdefs.h.  */
11102
11103/* Override any GCC internal prototype to avoid an error.
11104   Use char because int might match the return type of a GCC
11105   builtin and then its argument prototype would still apply.  */
11106#ifdef __cplusplus
11107extern "C"
11108#endif
11109char dlopen ();
11110int
11111main ()
11112{
11113return dlopen ();
11114  ;
11115  return 0;
11116}
11117_ACEOF
11118if ac_fn_c_try_link "$LINENO"; then :
11119  ac_cv_lib_svld_dlopen=yes
11120else
11121  ac_cv_lib_svld_dlopen=no
11122fi
11123rm -f core conftest.err conftest.$ac_objext \
11124    conftest$ac_exeext conftest.$ac_ext
11125LIBS=$ac_check_lib_save_LIBS
11126fi
11127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11128$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11129if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11130  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11131else
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11133$as_echo_n "checking for dld_link in -ldld... " >&6; }
11134if ${ac_cv_lib_dld_dld_link+:} false; then :
11135  $as_echo_n "(cached) " >&6
11136else
11137  ac_check_lib_save_LIBS=$LIBS
11138LIBS="-ldld  $LIBS"
11139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140/* end confdefs.h.  */
11141
11142/* Override any GCC internal prototype to avoid an error.
11143   Use char because int might match the return type of a GCC
11144   builtin and then its argument prototype would still apply.  */
11145#ifdef __cplusplus
11146extern "C"
11147#endif
11148char dld_link ();
11149int
11150main ()
11151{
11152return dld_link ();
11153  ;
11154  return 0;
11155}
11156_ACEOF
11157if ac_fn_c_try_link "$LINENO"; then :
11158  ac_cv_lib_dld_dld_link=yes
11159else
11160  ac_cv_lib_dld_dld_link=no
11161fi
11162rm -f core conftest.err conftest.$ac_objext \
11163    conftest$ac_exeext conftest.$ac_ext
11164LIBS=$ac_check_lib_save_LIBS
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11167$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11168if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11169  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11170fi
11171
11172
11173fi
11174
11175
11176fi
11177
11178
11179fi
11180
11181
11182fi
11183
11184
11185fi
11186
11187    ;;
11188  esac
11189
11190  if test "x$lt_cv_dlopen" != xno; then
11191    enable_dlopen=yes
11192  else
11193    enable_dlopen=no
11194  fi
11195
11196  case $lt_cv_dlopen in
11197  dlopen)
11198    save_CPPFLAGS="$CPPFLAGS"
11199    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11200
11201    save_LDFLAGS="$LDFLAGS"
11202    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11203
11204    save_LIBS="$LIBS"
11205    LIBS="$lt_cv_dlopen_libs $LIBS"
11206
11207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11208$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11209if ${lt_cv_dlopen_self+:} false; then :
11210  $as_echo_n "(cached) " >&6
11211else
11212  	  if test "$cross_compiling" = yes; then :
11213  lt_cv_dlopen_self=cross
11214else
11215  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11216  lt_status=$lt_dlunknown
11217  cat > conftest.$ac_ext <<_LT_EOF
11218#line $LINENO "configure"
11219#include "confdefs.h"
11220
11221#if HAVE_DLFCN_H
11222#include <dlfcn.h>
11223#endif
11224
11225#include <stdio.h>
11226
11227#ifdef RTLD_GLOBAL
11228#  define LT_DLGLOBAL		RTLD_GLOBAL
11229#else
11230#  ifdef DL_GLOBAL
11231#    define LT_DLGLOBAL		DL_GLOBAL
11232#  else
11233#    define LT_DLGLOBAL		0
11234#  endif
11235#endif
11236
11237/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11238   find out it does not work in some platform. */
11239#ifndef LT_DLLAZY_OR_NOW
11240#  ifdef RTLD_LAZY
11241#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11242#  else
11243#    ifdef DL_LAZY
11244#      define LT_DLLAZY_OR_NOW		DL_LAZY
11245#    else
11246#      ifdef RTLD_NOW
11247#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11248#      else
11249#        ifdef DL_NOW
11250#          define LT_DLLAZY_OR_NOW	DL_NOW
11251#        else
11252#          define LT_DLLAZY_OR_NOW	0
11253#        endif
11254#      endif
11255#    endif
11256#  endif
11257#endif
11258
11259/* When -fvisbility=hidden is used, assume the code has been annotated
11260   correspondingly for the symbols needed.  */
11261#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11262int fnord () __attribute__((visibility("default")));
11263#endif
11264
11265int fnord () { return 42; }
11266int main ()
11267{
11268  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11269  int status = $lt_dlunknown;
11270
11271  if (self)
11272    {
11273      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11274      else
11275        {
11276	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11277          else puts (dlerror ());
11278	}
11279      /* dlclose (self); */
11280    }
11281  else
11282    puts (dlerror ());
11283
11284  return status;
11285}
11286_LT_EOF
11287  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11288  (eval $ac_link) 2>&5
11289  ac_status=$?
11290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11292    (./conftest; exit; ) >&5 2>/dev/null
11293    lt_status=$?
11294    case x$lt_status in
11295      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11296      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11297      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11298    esac
11299  else :
11300    # compilation failed
11301    lt_cv_dlopen_self=no
11302  fi
11303fi
11304rm -fr conftest*
11305
11306
11307fi
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11309$as_echo "$lt_cv_dlopen_self" >&6; }
11310
11311    if test "x$lt_cv_dlopen_self" = xyes; then
11312      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11313      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11314$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11315if ${lt_cv_dlopen_self_static+:} false; then :
11316  $as_echo_n "(cached) " >&6
11317else
11318  	  if test "$cross_compiling" = yes; then :
11319  lt_cv_dlopen_self_static=cross
11320else
11321  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11322  lt_status=$lt_dlunknown
11323  cat > conftest.$ac_ext <<_LT_EOF
11324#line $LINENO "configure"
11325#include "confdefs.h"
11326
11327#if HAVE_DLFCN_H
11328#include <dlfcn.h>
11329#endif
11330
11331#include <stdio.h>
11332
11333#ifdef RTLD_GLOBAL
11334#  define LT_DLGLOBAL		RTLD_GLOBAL
11335#else
11336#  ifdef DL_GLOBAL
11337#    define LT_DLGLOBAL		DL_GLOBAL
11338#  else
11339#    define LT_DLGLOBAL		0
11340#  endif
11341#endif
11342
11343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11344   find out it does not work in some platform. */
11345#ifndef LT_DLLAZY_OR_NOW
11346#  ifdef RTLD_LAZY
11347#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11348#  else
11349#    ifdef DL_LAZY
11350#      define LT_DLLAZY_OR_NOW		DL_LAZY
11351#    else
11352#      ifdef RTLD_NOW
11353#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11354#      else
11355#        ifdef DL_NOW
11356#          define LT_DLLAZY_OR_NOW	DL_NOW
11357#        else
11358#          define LT_DLLAZY_OR_NOW	0
11359#        endif
11360#      endif
11361#    endif
11362#  endif
11363#endif
11364
11365/* When -fvisbility=hidden is used, assume the code has been annotated
11366   correspondingly for the symbols needed.  */
11367#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11368int fnord () __attribute__((visibility("default")));
11369#endif
11370
11371int fnord () { return 42; }
11372int main ()
11373{
11374  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11375  int status = $lt_dlunknown;
11376
11377  if (self)
11378    {
11379      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11380      else
11381        {
11382	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11383          else puts (dlerror ());
11384	}
11385      /* dlclose (self); */
11386    }
11387  else
11388    puts (dlerror ());
11389
11390  return status;
11391}
11392_LT_EOF
11393  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11394  (eval $ac_link) 2>&5
11395  ac_status=$?
11396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11397  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11398    (./conftest; exit; ) >&5 2>/dev/null
11399    lt_status=$?
11400    case x$lt_status in
11401      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11402      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11403      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11404    esac
11405  else :
11406    # compilation failed
11407    lt_cv_dlopen_self_static=no
11408  fi
11409fi
11410rm -fr conftest*
11411
11412
11413fi
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11415$as_echo "$lt_cv_dlopen_self_static" >&6; }
11416    fi
11417
11418    CPPFLAGS="$save_CPPFLAGS"
11419    LDFLAGS="$save_LDFLAGS"
11420    LIBS="$save_LIBS"
11421    ;;
11422  esac
11423
11424  case $lt_cv_dlopen_self in
11425  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11426  *) enable_dlopen_self=unknown ;;
11427  esac
11428
11429  case $lt_cv_dlopen_self_static in
11430  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11431  *) enable_dlopen_self_static=unknown ;;
11432  esac
11433fi
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451striplib=
11452old_striplib=
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11454$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11455if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11456  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11457  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11459$as_echo "yes" >&6; }
11460else
11461# FIXME - insert some real tests, host_os isn't really good enough
11462  case $host_os in
11463  darwin*)
11464    if test -n "$STRIP" ; then
11465      striplib="$STRIP -x"
11466      old_striplib="$STRIP -S"
11467      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11468$as_echo "yes" >&6; }
11469    else
11470      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471$as_echo "no" >&6; }
11472    fi
11473    ;;
11474  *)
11475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476$as_echo "no" >&6; }
11477    ;;
11478  esac
11479fi
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492  # Report which library types will actually be built
11493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11494$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11496$as_echo "$can_build_shared" >&6; }
11497
11498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11499$as_echo_n "checking whether to build shared libraries... " >&6; }
11500  test "$can_build_shared" = "no" && enable_shared=no
11501
11502  # On AIX, shared libraries and static libraries use the same namespace, and
11503  # are all built from PIC.
11504  case $host_os in
11505  aix3*)
11506    test "$enable_shared" = yes && enable_static=no
11507    if test -n "$RANLIB"; then
11508      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11509      postinstall_cmds='$RANLIB $lib'
11510    fi
11511    ;;
11512
11513  aix[4-9]*)
11514    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11515      test "$enable_shared" = yes && enable_static=no
11516    fi
11517    ;;
11518  esac
11519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11520$as_echo "$enable_shared" >&6; }
11521
11522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11523$as_echo_n "checking whether to build static libraries... " >&6; }
11524  # Make sure either enable_shared or enable_static is yes.
11525  test "$enable_shared" = yes || enable_static=yes
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11527$as_echo "$enable_static" >&6; }
11528
11529
11530
11531
11532fi
11533ac_ext=c
11534ac_cpp='$CPP $CPPFLAGS'
11535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537ac_compiler_gnu=$ac_cv_c_compiler_gnu
11538
11539CC="$lt_save_CC"
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555        ac_config_commands="$ac_config_commands libtool"
11556
11557
11558
11559
11560# Only expand once:
11561
11562
11563
11564# Require xorg-macros minimum of 1.12 for DocBook external references
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11577$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11578if ${ac_cv_prog_cc_c99+:} false; then :
11579  $as_echo_n "(cached) " >&6
11580else
11581  ac_cv_prog_cc_c99=no
11582ac_save_CC=$CC
11583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h.  */
11585#include <stdarg.h>
11586#include <stdbool.h>
11587#include <stdlib.h>
11588#include <wchar.h>
11589#include <stdio.h>
11590
11591// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11592#define debug(...) fprintf (stderr, __VA_ARGS__)
11593#define showlist(...) puts (#__VA_ARGS__)
11594#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11595static void
11596test_varargs_macros (void)
11597{
11598  int x = 1234;
11599  int y = 5678;
11600  debug ("Flag");
11601  debug ("X = %d\n", x);
11602  showlist (The first, second, and third items.);
11603  report (x>y, "x is %d but y is %d", x, y);
11604}
11605
11606// Check long long types.
11607#define BIG64 18446744073709551615ull
11608#define BIG32 4294967295ul
11609#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11610#if !BIG_OK
11611  your preprocessor is broken;
11612#endif
11613#if BIG_OK
11614#else
11615  your preprocessor is broken;
11616#endif
11617static long long int bignum = -9223372036854775807LL;
11618static unsigned long long int ubignum = BIG64;
11619
11620struct incomplete_array
11621{
11622  int datasize;
11623  double data[];
11624};
11625
11626struct named_init {
11627  int number;
11628  const wchar_t *name;
11629  double average;
11630};
11631
11632typedef const char *ccp;
11633
11634static inline int
11635test_restrict (ccp restrict text)
11636{
11637  // See if C++-style comments work.
11638  // Iterate through items via the restricted pointer.
11639  // Also check for declarations in for loops.
11640  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11641    continue;
11642  return 0;
11643}
11644
11645// Check varargs and va_copy.
11646static void
11647test_varargs (const char *format, ...)
11648{
11649  va_list args;
11650  va_start (args, format);
11651  va_list args_copy;
11652  va_copy (args_copy, args);
11653
11654  const char *str;
11655  int number;
11656  float fnumber;
11657
11658  while (*format)
11659    {
11660      switch (*format++)
11661	{
11662	case 's': // string
11663	  str = va_arg (args_copy, const char *);
11664	  break;
11665	case 'd': // int
11666	  number = va_arg (args_copy, int);
11667	  break;
11668	case 'f': // float
11669	  fnumber = va_arg (args_copy, double);
11670	  break;
11671	default:
11672	  break;
11673	}
11674    }
11675  va_end (args_copy);
11676  va_end (args);
11677}
11678
11679int
11680main ()
11681{
11682
11683  // Check bool.
11684  _Bool success = false;
11685
11686  // Check restrict.
11687  if (test_restrict ("String literal") == 0)
11688    success = true;
11689  char *restrict newvar = "Another string";
11690
11691  // Check varargs.
11692  test_varargs ("s, d' f .", "string", 65, 34.234);
11693  test_varargs_macros ();
11694
11695  // Check flexible array members.
11696  struct incomplete_array *ia =
11697    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11698  ia->datasize = 10;
11699  for (int i = 0; i < ia->datasize; ++i)
11700    ia->data[i] = i * 1.234;
11701
11702  // Check named initializers.
11703  struct named_init ni = {
11704    .number = 34,
11705    .name = L"Test wide string",
11706    .average = 543.34343,
11707  };
11708
11709  ni.number = 58;
11710
11711  int dynamic_array[ni.number];
11712  dynamic_array[ni.number - 1] = 543;
11713
11714  // work around unused variable warnings
11715  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11716	  || dynamic_array[ni.number - 1] != 543);
11717
11718  ;
11719  return 0;
11720}
11721_ACEOF
11722for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11723do
11724  CC="$ac_save_CC $ac_arg"
11725  if ac_fn_c_try_compile "$LINENO"; then :
11726  ac_cv_prog_cc_c99=$ac_arg
11727fi
11728rm -f core conftest.err conftest.$ac_objext
11729  test "x$ac_cv_prog_cc_c99" != "xno" && break
11730done
11731rm -f conftest.$ac_ext
11732CC=$ac_save_CC
11733
11734fi
11735# AC_CACHE_VAL
11736case "x$ac_cv_prog_cc_c99" in
11737  x)
11738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11739$as_echo "none needed" >&6; } ;;
11740  xno)
11741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11742$as_echo "unsupported" >&6; } ;;
11743  *)
11744    CC="$CC $ac_cv_prog_cc_c99"
11745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11746$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11747esac
11748if test "x$ac_cv_prog_cc_c99" != xno; then :
11749
11750fi
11751
11752
11753
11754
11755
11756
11757ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11758if test "x$ac_cv_have_decl___clang__" = xyes; then :
11759  CLANGCC="yes"
11760else
11761  CLANGCC="no"
11762fi
11763
11764ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11765if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11766  INTELCC="yes"
11767else
11768  INTELCC="no"
11769fi
11770
11771ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11772if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11773  SUNCC="yes"
11774else
11775  SUNCC="no"
11776fi
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11787	if test -n "$ac_tool_prefix"; then
11788  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11789set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791$as_echo_n "checking for $ac_word... " >&6; }
11792if ${ac_cv_path_PKG_CONFIG+:} false; then :
11793  $as_echo_n "(cached) " >&6
11794else
11795  case $PKG_CONFIG in
11796  [\\/]* | ?:[\\/]*)
11797  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11798  ;;
11799  *)
11800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803  IFS=$as_save_IFS
11804  test -z "$as_dir" && as_dir=.
11805    for ac_exec_ext in '' $ac_executable_extensions; do
11806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809    break 2
11810  fi
11811done
11812  done
11813IFS=$as_save_IFS
11814
11815  ;;
11816esac
11817fi
11818PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11819if test -n "$PKG_CONFIG"; then
11820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11821$as_echo "$PKG_CONFIG" >&6; }
11822else
11823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824$as_echo "no" >&6; }
11825fi
11826
11827
11828fi
11829if test -z "$ac_cv_path_PKG_CONFIG"; then
11830  ac_pt_PKG_CONFIG=$PKG_CONFIG
11831  # Extract the first word of "pkg-config", so it can be a program name with args.
11832set dummy pkg-config; ac_word=$2
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834$as_echo_n "checking for $ac_word... " >&6; }
11835if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11836  $as_echo_n "(cached) " >&6
11837else
11838  case $ac_pt_PKG_CONFIG in
11839  [\\/]* | ?:[\\/]*)
11840  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11841  ;;
11842  *)
11843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844for as_dir in $PATH
11845do
11846  IFS=$as_save_IFS
11847  test -z "$as_dir" && as_dir=.
11848    for ac_exec_ext in '' $ac_executable_extensions; do
11849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852    break 2
11853  fi
11854done
11855  done
11856IFS=$as_save_IFS
11857
11858  ;;
11859esac
11860fi
11861ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11862if test -n "$ac_pt_PKG_CONFIG"; then
11863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11864$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11865else
11866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867$as_echo "no" >&6; }
11868fi
11869
11870  if test "x$ac_pt_PKG_CONFIG" = x; then
11871    PKG_CONFIG=""
11872  else
11873    case $cross_compiling:$ac_tool_warned in
11874yes:)
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11877ac_tool_warned=yes ;;
11878esac
11879    PKG_CONFIG=$ac_pt_PKG_CONFIG
11880  fi
11881else
11882  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11883fi
11884
11885fi
11886if test -n "$PKG_CONFIG"; then
11887	_pkg_min_version=0.9.0
11888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11889$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11890	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11891		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892$as_echo "yes" >&6; }
11893	else
11894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895$as_echo "no" >&6; }
11896		PKG_CONFIG=""
11897	fi
11898fi
11899
11900
11901
11902
11903
11904# Check whether --enable-selective-werror was given.
11905if test "${enable_selective_werror+set}" = set; then :
11906  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11907else
11908  SELECTIVE_WERROR=yes
11909fi
11910
11911
11912
11913
11914
11915# -v is too short to test reliably with XORG_TESTSET_CFLAG
11916if test "x$SUNCC" = "xyes"; then
11917    BASE_CFLAGS="-v"
11918else
11919    BASE_CFLAGS=""
11920fi
11921
11922# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936xorg_testset_save_CFLAGS="$CFLAGS"
11937
11938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11943  $as_echo_n "(cached) " >&6
11944else
11945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946/* end confdefs.h.  */
11947int i;
11948_ACEOF
11949if ac_fn_c_try_compile "$LINENO"; then :
11950  xorg_cv_cc_flag_unknown_warning_option=yes
11951else
11952  xorg_cv_cc_flag_unknown_warning_option=no
11953fi
11954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955fi
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11958	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11959	CFLAGS="$xorg_testset_save_CFLAGS"
11960fi
11961
11962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11963	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11964		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11965	fi
11966	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11970  $as_echo_n "(cached) " >&6
11971else
11972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973/* end confdefs.h.  */
11974int i;
11975_ACEOF
11976if ac_fn_c_try_compile "$LINENO"; then :
11977  xorg_cv_cc_flag_unused_command_line_argument=yes
11978else
11979  xorg_cv_cc_flag_unused_command_line_argument=no
11980fi
11981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982fi
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11985	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11986	CFLAGS="$xorg_testset_save_CFLAGS"
11987fi
11988
11989found="no"
11990
11991	if test $found = "no" ; then
11992		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11993			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11994		fi
11995
11996		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11997			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11998		fi
11999
12000		CFLAGS="$CFLAGS -Wall"
12001
12002		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12003$as_echo_n "checking if $CC supports -Wall... " >&6; }
12004		cacheid=xorg_cv_cc_flag__Wall
12005		if eval \${$cacheid+:} false; then :
12006  $as_echo_n "(cached) " >&6
12007else
12008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h.  */
12010int i;
12011int
12012main ()
12013{
12014
12015  ;
12016  return 0;
12017}
12018_ACEOF
12019if ac_fn_c_try_link "$LINENO"; then :
12020  eval $cacheid=yes
12021else
12022  eval $cacheid=no
12023fi
12024rm -f core conftest.err conftest.$ac_objext \
12025    conftest$ac_exeext conftest.$ac_ext
12026fi
12027
12028
12029		CFLAGS="$xorg_testset_save_CFLAGS"
12030
12031		eval supported=\$$cacheid
12032		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12033$as_echo "$supported" >&6; }
12034		if test "$supported" = "yes" ; then
12035			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12036			found="yes"
12037		fi
12038	fi
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054xorg_testset_save_CFLAGS="$CFLAGS"
12055
12056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12059$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12060if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12061  $as_echo_n "(cached) " >&6
12062else
12063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064/* end confdefs.h.  */
12065int i;
12066_ACEOF
12067if ac_fn_c_try_compile "$LINENO"; then :
12068  xorg_cv_cc_flag_unknown_warning_option=yes
12069else
12070  xorg_cv_cc_flag_unknown_warning_option=no
12071fi
12072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073fi
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12075$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12076	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12077	CFLAGS="$xorg_testset_save_CFLAGS"
12078fi
12079
12080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12081	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12083	fi
12084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12086$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12087if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12088  $as_echo_n "(cached) " >&6
12089else
12090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091/* end confdefs.h.  */
12092int i;
12093_ACEOF
12094if ac_fn_c_try_compile "$LINENO"; then :
12095  xorg_cv_cc_flag_unused_command_line_argument=yes
12096else
12097  xorg_cv_cc_flag_unused_command_line_argument=no
12098fi
12099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100fi
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12102$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12103	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12104	CFLAGS="$xorg_testset_save_CFLAGS"
12105fi
12106
12107found="no"
12108
12109	if test $found = "no" ; then
12110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12112		fi
12113
12114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12116		fi
12117
12118		CFLAGS="$CFLAGS -Wpointer-arith"
12119
12120		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12121$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12122		cacheid=xorg_cv_cc_flag__Wpointer_arith
12123		if eval \${$cacheid+:} false; then :
12124  $as_echo_n "(cached) " >&6
12125else
12126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127/* end confdefs.h.  */
12128int i;
12129int
12130main ()
12131{
12132
12133  ;
12134  return 0;
12135}
12136_ACEOF
12137if ac_fn_c_try_link "$LINENO"; then :
12138  eval $cacheid=yes
12139else
12140  eval $cacheid=no
12141fi
12142rm -f core conftest.err conftest.$ac_objext \
12143    conftest$ac_exeext conftest.$ac_ext
12144fi
12145
12146
12147		CFLAGS="$xorg_testset_save_CFLAGS"
12148
12149		eval supported=\$$cacheid
12150		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12151$as_echo "$supported" >&6; }
12152		if test "$supported" = "yes" ; then
12153			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12154			found="yes"
12155		fi
12156	fi
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172xorg_testset_save_CFLAGS="$CFLAGS"
12173
12174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12179  $as_echo_n "(cached) " >&6
12180else
12181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h.  */
12183int i;
12184_ACEOF
12185if ac_fn_c_try_compile "$LINENO"; then :
12186  xorg_cv_cc_flag_unknown_warning_option=yes
12187else
12188  xorg_cv_cc_flag_unknown_warning_option=no
12189fi
12190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191fi
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12195	CFLAGS="$xorg_testset_save_CFLAGS"
12196fi
12197
12198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12201	fi
12202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12206  $as_echo_n "(cached) " >&6
12207else
12208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209/* end confdefs.h.  */
12210int i;
12211_ACEOF
12212if ac_fn_c_try_compile "$LINENO"; then :
12213  xorg_cv_cc_flag_unused_command_line_argument=yes
12214else
12215  xorg_cv_cc_flag_unused_command_line_argument=no
12216fi
12217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218fi
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12222	CFLAGS="$xorg_testset_save_CFLAGS"
12223fi
12224
12225found="no"
12226
12227	if test $found = "no" ; then
12228		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12230		fi
12231
12232		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12234		fi
12235
12236		CFLAGS="$CFLAGS -Wmissing-declarations"
12237
12238		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12239$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12240		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12241		if eval \${$cacheid+:} false; then :
12242  $as_echo_n "(cached) " >&6
12243else
12244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245/* end confdefs.h.  */
12246int i;
12247int
12248main ()
12249{
12250
12251  ;
12252  return 0;
12253}
12254_ACEOF
12255if ac_fn_c_try_link "$LINENO"; then :
12256  eval $cacheid=yes
12257else
12258  eval $cacheid=no
12259fi
12260rm -f core conftest.err conftest.$ac_objext \
12261    conftest$ac_exeext conftest.$ac_ext
12262fi
12263
12264
12265		CFLAGS="$xorg_testset_save_CFLAGS"
12266
12267		eval supported=\$$cacheid
12268		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12269$as_echo "$supported" >&6; }
12270		if test "$supported" = "yes" ; then
12271			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12272			found="yes"
12273		fi
12274	fi
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290xorg_testset_save_CFLAGS="$CFLAGS"
12291
12292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12297  $as_echo_n "(cached) " >&6
12298else
12299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300/* end confdefs.h.  */
12301int i;
12302_ACEOF
12303if ac_fn_c_try_compile "$LINENO"; then :
12304  xorg_cv_cc_flag_unknown_warning_option=yes
12305else
12306  xorg_cv_cc_flag_unknown_warning_option=no
12307fi
12308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309fi
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12313	CFLAGS="$xorg_testset_save_CFLAGS"
12314fi
12315
12316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12319	fi
12320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12324  $as_echo_n "(cached) " >&6
12325else
12326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327/* end confdefs.h.  */
12328int i;
12329_ACEOF
12330if ac_fn_c_try_compile "$LINENO"; then :
12331  xorg_cv_cc_flag_unused_command_line_argument=yes
12332else
12333  xorg_cv_cc_flag_unused_command_line_argument=no
12334fi
12335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336fi
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12340	CFLAGS="$xorg_testset_save_CFLAGS"
12341fi
12342
12343found="no"
12344
12345	if test $found = "no" ; then
12346		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12348		fi
12349
12350		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12352		fi
12353
12354		CFLAGS="$CFLAGS -Wformat=2"
12355
12356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12357$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12358		cacheid=xorg_cv_cc_flag__Wformat_2
12359		if eval \${$cacheid+:} false; then :
12360  $as_echo_n "(cached) " >&6
12361else
12362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363/* end confdefs.h.  */
12364int i;
12365int
12366main ()
12367{
12368
12369  ;
12370  return 0;
12371}
12372_ACEOF
12373if ac_fn_c_try_link "$LINENO"; then :
12374  eval $cacheid=yes
12375else
12376  eval $cacheid=no
12377fi
12378rm -f core conftest.err conftest.$ac_objext \
12379    conftest$ac_exeext conftest.$ac_ext
12380fi
12381
12382
12383		CFLAGS="$xorg_testset_save_CFLAGS"
12384
12385		eval supported=\$$cacheid
12386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12387$as_echo "$supported" >&6; }
12388		if test "$supported" = "yes" ; then
12389			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12390			found="yes"
12391		fi
12392	fi
12393
12394	if test $found = "no" ; then
12395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12397		fi
12398
12399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12401		fi
12402
12403		CFLAGS="$CFLAGS -Wformat"
12404
12405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12406$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12407		cacheid=xorg_cv_cc_flag__Wformat
12408		if eval \${$cacheid+:} false; then :
12409  $as_echo_n "(cached) " >&6
12410else
12411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412/* end confdefs.h.  */
12413int i;
12414int
12415main ()
12416{
12417
12418  ;
12419  return 0;
12420}
12421_ACEOF
12422if ac_fn_c_try_link "$LINENO"; then :
12423  eval $cacheid=yes
12424else
12425  eval $cacheid=no
12426fi
12427rm -f core conftest.err conftest.$ac_objext \
12428    conftest$ac_exeext conftest.$ac_ext
12429fi
12430
12431
12432		CFLAGS="$xorg_testset_save_CFLAGS"
12433
12434		eval supported=\$$cacheid
12435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12436$as_echo "$supported" >&6; }
12437		if test "$supported" = "yes" ; then
12438			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12439			found="yes"
12440		fi
12441	fi
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459xorg_testset_save_CFLAGS="$CFLAGS"
12460
12461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12464$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12465if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12466  $as_echo_n "(cached) " >&6
12467else
12468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469/* end confdefs.h.  */
12470int i;
12471_ACEOF
12472if ac_fn_c_try_compile "$LINENO"; then :
12473  xorg_cv_cc_flag_unknown_warning_option=yes
12474else
12475  xorg_cv_cc_flag_unknown_warning_option=no
12476fi
12477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478fi
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12480$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12481	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12482	CFLAGS="$xorg_testset_save_CFLAGS"
12483fi
12484
12485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12486	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12488	fi
12489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12492if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12493  $as_echo_n "(cached) " >&6
12494else
12495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496/* end confdefs.h.  */
12497int i;
12498_ACEOF
12499if ac_fn_c_try_compile "$LINENO"; then :
12500  xorg_cv_cc_flag_unused_command_line_argument=yes
12501else
12502  xorg_cv_cc_flag_unused_command_line_argument=no
12503fi
12504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12507$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12509	CFLAGS="$xorg_testset_save_CFLAGS"
12510fi
12511
12512found="no"
12513
12514	if test $found = "no" ; then
12515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12517		fi
12518
12519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12521		fi
12522
12523		CFLAGS="$CFLAGS -Wstrict-prototypes"
12524
12525		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12526$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12527		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12528		if eval \${$cacheid+:} false; then :
12529  $as_echo_n "(cached) " >&6
12530else
12531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532/* end confdefs.h.  */
12533int i;
12534int
12535main ()
12536{
12537
12538  ;
12539  return 0;
12540}
12541_ACEOF
12542if ac_fn_c_try_link "$LINENO"; then :
12543  eval $cacheid=yes
12544else
12545  eval $cacheid=no
12546fi
12547rm -f core conftest.err conftest.$ac_objext \
12548    conftest$ac_exeext conftest.$ac_ext
12549fi
12550
12551
12552		CFLAGS="$xorg_testset_save_CFLAGS"
12553
12554		eval supported=\$$cacheid
12555		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12556$as_echo "$supported" >&6; }
12557		if test "$supported" = "yes" ; then
12558			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12559			found="yes"
12560		fi
12561	fi
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577xorg_testset_save_CFLAGS="$CFLAGS"
12578
12579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12584  $as_echo_n "(cached) " >&6
12585else
12586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587/* end confdefs.h.  */
12588int i;
12589_ACEOF
12590if ac_fn_c_try_compile "$LINENO"; then :
12591  xorg_cv_cc_flag_unknown_warning_option=yes
12592else
12593  xorg_cv_cc_flag_unknown_warning_option=no
12594fi
12595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596fi
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12600	CFLAGS="$xorg_testset_save_CFLAGS"
12601fi
12602
12603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12606	fi
12607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12611  $as_echo_n "(cached) " >&6
12612else
12613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h.  */
12615int i;
12616_ACEOF
12617if ac_fn_c_try_compile "$LINENO"; then :
12618  xorg_cv_cc_flag_unused_command_line_argument=yes
12619else
12620  xorg_cv_cc_flag_unused_command_line_argument=no
12621fi
12622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623fi
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12627	CFLAGS="$xorg_testset_save_CFLAGS"
12628fi
12629
12630found="no"
12631
12632	if test $found = "no" ; then
12633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12635		fi
12636
12637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12639		fi
12640
12641		CFLAGS="$CFLAGS -Wmissing-prototypes"
12642
12643		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12644$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12645		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12646		if eval \${$cacheid+:} false; then :
12647  $as_echo_n "(cached) " >&6
12648else
12649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650/* end confdefs.h.  */
12651int i;
12652int
12653main ()
12654{
12655
12656  ;
12657  return 0;
12658}
12659_ACEOF
12660if ac_fn_c_try_link "$LINENO"; then :
12661  eval $cacheid=yes
12662else
12663  eval $cacheid=no
12664fi
12665rm -f core conftest.err conftest.$ac_objext \
12666    conftest$ac_exeext conftest.$ac_ext
12667fi
12668
12669
12670		CFLAGS="$xorg_testset_save_CFLAGS"
12671
12672		eval supported=\$$cacheid
12673		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12674$as_echo "$supported" >&6; }
12675		if test "$supported" = "yes" ; then
12676			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12677			found="yes"
12678		fi
12679	fi
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695xorg_testset_save_CFLAGS="$CFLAGS"
12696
12697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12698	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12702  $as_echo_n "(cached) " >&6
12703else
12704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h.  */
12706int i;
12707_ACEOF
12708if ac_fn_c_try_compile "$LINENO"; then :
12709  xorg_cv_cc_flag_unknown_warning_option=yes
12710else
12711  xorg_cv_cc_flag_unknown_warning_option=no
12712fi
12713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12718	CFLAGS="$xorg_testset_save_CFLAGS"
12719fi
12720
12721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12724	fi
12725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12729  $as_echo_n "(cached) " >&6
12730else
12731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h.  */
12733int i;
12734_ACEOF
12735if ac_fn_c_try_compile "$LINENO"; then :
12736  xorg_cv_cc_flag_unused_command_line_argument=yes
12737else
12738  xorg_cv_cc_flag_unused_command_line_argument=no
12739fi
12740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741fi
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12745	CFLAGS="$xorg_testset_save_CFLAGS"
12746fi
12747
12748found="no"
12749
12750	if test $found = "no" ; then
12751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12753		fi
12754
12755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12757		fi
12758
12759		CFLAGS="$CFLAGS -Wnested-externs"
12760
12761		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12762$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12763		cacheid=xorg_cv_cc_flag__Wnested_externs
12764		if eval \${$cacheid+:} false; then :
12765  $as_echo_n "(cached) " >&6
12766else
12767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768/* end confdefs.h.  */
12769int i;
12770int
12771main ()
12772{
12773
12774  ;
12775  return 0;
12776}
12777_ACEOF
12778if ac_fn_c_try_link "$LINENO"; then :
12779  eval $cacheid=yes
12780else
12781  eval $cacheid=no
12782fi
12783rm -f core conftest.err conftest.$ac_objext \
12784    conftest$ac_exeext conftest.$ac_ext
12785fi
12786
12787
12788		CFLAGS="$xorg_testset_save_CFLAGS"
12789
12790		eval supported=\$$cacheid
12791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12792$as_echo "$supported" >&6; }
12793		if test "$supported" = "yes" ; then
12794			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12795			found="yes"
12796		fi
12797	fi
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813xorg_testset_save_CFLAGS="$CFLAGS"
12814
12815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823/* end confdefs.h.  */
12824int i;
12825_ACEOF
12826if ac_fn_c_try_compile "$LINENO"; then :
12827  xorg_cv_cc_flag_unknown_warning_option=yes
12828else
12829  xorg_cv_cc_flag_unknown_warning_option=no
12830fi
12831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832fi
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12836	CFLAGS="$xorg_testset_save_CFLAGS"
12837fi
12838
12839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12842	fi
12843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12847  $as_echo_n "(cached) " >&6
12848else
12849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850/* end confdefs.h.  */
12851int i;
12852_ACEOF
12853if ac_fn_c_try_compile "$LINENO"; then :
12854  xorg_cv_cc_flag_unused_command_line_argument=yes
12855else
12856  xorg_cv_cc_flag_unused_command_line_argument=no
12857fi
12858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859fi
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12863	CFLAGS="$xorg_testset_save_CFLAGS"
12864fi
12865
12866found="no"
12867
12868	if test $found = "no" ; then
12869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12871		fi
12872
12873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12875		fi
12876
12877		CFLAGS="$CFLAGS -Wbad-function-cast"
12878
12879		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12880$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12881		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12882		if eval \${$cacheid+:} false; then :
12883  $as_echo_n "(cached) " >&6
12884else
12885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886/* end confdefs.h.  */
12887int i;
12888int
12889main ()
12890{
12891
12892  ;
12893  return 0;
12894}
12895_ACEOF
12896if ac_fn_c_try_link "$LINENO"; then :
12897  eval $cacheid=yes
12898else
12899  eval $cacheid=no
12900fi
12901rm -f core conftest.err conftest.$ac_objext \
12902    conftest$ac_exeext conftest.$ac_ext
12903fi
12904
12905
12906		CFLAGS="$xorg_testset_save_CFLAGS"
12907
12908		eval supported=\$$cacheid
12909		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12910$as_echo "$supported" >&6; }
12911		if test "$supported" = "yes" ; then
12912			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12913			found="yes"
12914		fi
12915	fi
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931xorg_testset_save_CFLAGS="$CFLAGS"
12932
12933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12938  $as_echo_n "(cached) " >&6
12939else
12940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941/* end confdefs.h.  */
12942int i;
12943_ACEOF
12944if ac_fn_c_try_compile "$LINENO"; then :
12945  xorg_cv_cc_flag_unknown_warning_option=yes
12946else
12947  xorg_cv_cc_flag_unknown_warning_option=no
12948fi
12949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950fi
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12953	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12954	CFLAGS="$xorg_testset_save_CFLAGS"
12955fi
12956
12957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12958	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12959		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12960	fi
12961	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12965  $as_echo_n "(cached) " >&6
12966else
12967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968/* end confdefs.h.  */
12969int i;
12970_ACEOF
12971if ac_fn_c_try_compile "$LINENO"; then :
12972  xorg_cv_cc_flag_unused_command_line_argument=yes
12973else
12974  xorg_cv_cc_flag_unused_command_line_argument=no
12975fi
12976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977fi
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12981	CFLAGS="$xorg_testset_save_CFLAGS"
12982fi
12983
12984found="no"
12985
12986	if test $found = "no" ; then
12987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12989		fi
12990
12991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12993		fi
12994
12995		CFLAGS="$CFLAGS -Wold-style-definition"
12996
12997		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12998$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12999		cacheid=xorg_cv_cc_flag__Wold_style_definition
13000		if eval \${$cacheid+:} false; then :
13001  $as_echo_n "(cached) " >&6
13002else
13003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004/* end confdefs.h.  */
13005int i;
13006int
13007main ()
13008{
13009
13010  ;
13011  return 0;
13012}
13013_ACEOF
13014if ac_fn_c_try_link "$LINENO"; then :
13015  eval $cacheid=yes
13016else
13017  eval $cacheid=no
13018fi
13019rm -f core conftest.err conftest.$ac_objext \
13020    conftest$ac_exeext conftest.$ac_ext
13021fi
13022
13023
13024		CFLAGS="$xorg_testset_save_CFLAGS"
13025
13026		eval supported=\$$cacheid
13027		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13028$as_echo "$supported" >&6; }
13029		if test "$supported" = "yes" ; then
13030			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13031			found="yes"
13032		fi
13033	fi
13034
13035	if test $found = "no" ; then
13036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13038		fi
13039
13040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13042		fi
13043
13044		CFLAGS="$CFLAGS -fd"
13045
13046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13047$as_echo_n "checking if $CC supports -fd... " >&6; }
13048		cacheid=xorg_cv_cc_flag__fd
13049		if eval \${$cacheid+:} false; then :
13050  $as_echo_n "(cached) " >&6
13051else
13052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053/* end confdefs.h.  */
13054int i;
13055int
13056main ()
13057{
13058
13059  ;
13060  return 0;
13061}
13062_ACEOF
13063if ac_fn_c_try_link "$LINENO"; then :
13064  eval $cacheid=yes
13065else
13066  eval $cacheid=no
13067fi
13068rm -f core conftest.err conftest.$ac_objext \
13069    conftest$ac_exeext conftest.$ac_ext
13070fi
13071
13072
13073		CFLAGS="$xorg_testset_save_CFLAGS"
13074
13075		eval supported=\$$cacheid
13076		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13077$as_echo "$supported" >&6; }
13078		if test "$supported" = "yes" ; then
13079			BASE_CFLAGS="$BASE_CFLAGS -fd"
13080			found="yes"
13081		fi
13082	fi
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098xorg_testset_save_CFLAGS="$CFLAGS"
13099
13100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13105  $as_echo_n "(cached) " >&6
13106else
13107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108/* end confdefs.h.  */
13109int i;
13110_ACEOF
13111if ac_fn_c_try_compile "$LINENO"; then :
13112  xorg_cv_cc_flag_unknown_warning_option=yes
13113else
13114  xorg_cv_cc_flag_unknown_warning_option=no
13115fi
13116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117fi
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13121	CFLAGS="$xorg_testset_save_CFLAGS"
13122fi
13123
13124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13127	fi
13128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13132  $as_echo_n "(cached) " >&6
13133else
13134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135/* end confdefs.h.  */
13136int i;
13137_ACEOF
13138if ac_fn_c_try_compile "$LINENO"; then :
13139  xorg_cv_cc_flag_unused_command_line_argument=yes
13140else
13141  xorg_cv_cc_flag_unused_command_line_argument=no
13142fi
13143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13148	CFLAGS="$xorg_testset_save_CFLAGS"
13149fi
13150
13151found="no"
13152
13153	if test $found = "no" ; then
13154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13156		fi
13157
13158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13160		fi
13161
13162		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13163
13164		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13165$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13166		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13167		if eval \${$cacheid+:} false; then :
13168  $as_echo_n "(cached) " >&6
13169else
13170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171/* end confdefs.h.  */
13172int i;
13173int
13174main ()
13175{
13176
13177  ;
13178  return 0;
13179}
13180_ACEOF
13181if ac_fn_c_try_link "$LINENO"; then :
13182  eval $cacheid=yes
13183else
13184  eval $cacheid=no
13185fi
13186rm -f core conftest.err conftest.$ac_objext \
13187    conftest$ac_exeext conftest.$ac_ext
13188fi
13189
13190
13191		CFLAGS="$xorg_testset_save_CFLAGS"
13192
13193		eval supported=\$$cacheid
13194		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13195$as_echo "$supported" >&6; }
13196		if test "$supported" = "yes" ; then
13197			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13198			found="yes"
13199		fi
13200	fi
13201
13202
13203
13204
13205
13206# This chunk adds additional warnings that could catch undesired effects.
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220xorg_testset_save_CFLAGS="$CFLAGS"
13221
13222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13223	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13224	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13227  $as_echo_n "(cached) " >&6
13228else
13229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230/* end confdefs.h.  */
13231int i;
13232_ACEOF
13233if ac_fn_c_try_compile "$LINENO"; then :
13234  xorg_cv_cc_flag_unknown_warning_option=yes
13235else
13236  xorg_cv_cc_flag_unknown_warning_option=no
13237fi
13238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13239fi
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13243	CFLAGS="$xorg_testset_save_CFLAGS"
13244fi
13245
13246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13249	fi
13250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13254  $as_echo_n "(cached) " >&6
13255else
13256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257/* end confdefs.h.  */
13258int i;
13259_ACEOF
13260if ac_fn_c_try_compile "$LINENO"; then :
13261  xorg_cv_cc_flag_unused_command_line_argument=yes
13262else
13263  xorg_cv_cc_flag_unused_command_line_argument=no
13264fi
13265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13266fi
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13269	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13270	CFLAGS="$xorg_testset_save_CFLAGS"
13271fi
13272
13273found="no"
13274
13275	if test $found = "no" ; then
13276		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13278		fi
13279
13280		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13282		fi
13283
13284		CFLAGS="$CFLAGS -Wunused"
13285
13286		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13287$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13288		cacheid=xorg_cv_cc_flag__Wunused
13289		if eval \${$cacheid+:} false; then :
13290  $as_echo_n "(cached) " >&6
13291else
13292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h.  */
13294int i;
13295int
13296main ()
13297{
13298
13299  ;
13300  return 0;
13301}
13302_ACEOF
13303if ac_fn_c_try_link "$LINENO"; then :
13304  eval $cacheid=yes
13305else
13306  eval $cacheid=no
13307fi
13308rm -f core conftest.err conftest.$ac_objext \
13309    conftest$ac_exeext conftest.$ac_ext
13310fi
13311
13312
13313		CFLAGS="$xorg_testset_save_CFLAGS"
13314
13315		eval supported=\$$cacheid
13316		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13317$as_echo "$supported" >&6; }
13318		if test "$supported" = "yes" ; then
13319			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13320			found="yes"
13321		fi
13322	fi
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338xorg_testset_save_CFLAGS="$CFLAGS"
13339
13340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13341	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13345  $as_echo_n "(cached) " >&6
13346else
13347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348/* end confdefs.h.  */
13349int i;
13350_ACEOF
13351if ac_fn_c_try_compile "$LINENO"; then :
13352  xorg_cv_cc_flag_unknown_warning_option=yes
13353else
13354  xorg_cv_cc_flag_unknown_warning_option=no
13355fi
13356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13360	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13361	CFLAGS="$xorg_testset_save_CFLAGS"
13362fi
13363
13364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13365	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13366		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13367	fi
13368	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13372  $as_echo_n "(cached) " >&6
13373else
13374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375/* end confdefs.h.  */
13376int i;
13377_ACEOF
13378if ac_fn_c_try_compile "$LINENO"; then :
13379  xorg_cv_cc_flag_unused_command_line_argument=yes
13380else
13381  xorg_cv_cc_flag_unused_command_line_argument=no
13382fi
13383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384fi
13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13387	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13388	CFLAGS="$xorg_testset_save_CFLAGS"
13389fi
13390
13391found="no"
13392
13393	if test $found = "no" ; then
13394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13396		fi
13397
13398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13400		fi
13401
13402		CFLAGS="$CFLAGS -Wuninitialized"
13403
13404		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13405$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13406		cacheid=xorg_cv_cc_flag__Wuninitialized
13407		if eval \${$cacheid+:} false; then :
13408  $as_echo_n "(cached) " >&6
13409else
13410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411/* end confdefs.h.  */
13412int i;
13413int
13414main ()
13415{
13416
13417  ;
13418  return 0;
13419}
13420_ACEOF
13421if ac_fn_c_try_link "$LINENO"; then :
13422  eval $cacheid=yes
13423else
13424  eval $cacheid=no
13425fi
13426rm -f core conftest.err conftest.$ac_objext \
13427    conftest$ac_exeext conftest.$ac_ext
13428fi
13429
13430
13431		CFLAGS="$xorg_testset_save_CFLAGS"
13432
13433		eval supported=\$$cacheid
13434		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13435$as_echo "$supported" >&6; }
13436		if test "$supported" = "yes" ; then
13437			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13438			found="yes"
13439		fi
13440	fi
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456xorg_testset_save_CFLAGS="$CFLAGS"
13457
13458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13463  $as_echo_n "(cached) " >&6
13464else
13465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466/* end confdefs.h.  */
13467int i;
13468_ACEOF
13469if ac_fn_c_try_compile "$LINENO"; then :
13470  xorg_cv_cc_flag_unknown_warning_option=yes
13471else
13472  xorg_cv_cc_flag_unknown_warning_option=no
13473fi
13474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475fi
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13479	CFLAGS="$xorg_testset_save_CFLAGS"
13480fi
13481
13482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13485	fi
13486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13490  $as_echo_n "(cached) " >&6
13491else
13492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493/* end confdefs.h.  */
13494int i;
13495_ACEOF
13496if ac_fn_c_try_compile "$LINENO"; then :
13497  xorg_cv_cc_flag_unused_command_line_argument=yes
13498else
13499  xorg_cv_cc_flag_unused_command_line_argument=no
13500fi
13501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502fi
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13506	CFLAGS="$xorg_testset_save_CFLAGS"
13507fi
13508
13509found="no"
13510
13511	if test $found = "no" ; then
13512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13514		fi
13515
13516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13518		fi
13519
13520		CFLAGS="$CFLAGS -Wshadow"
13521
13522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13523$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13524		cacheid=xorg_cv_cc_flag__Wshadow
13525		if eval \${$cacheid+:} false; then :
13526  $as_echo_n "(cached) " >&6
13527else
13528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529/* end confdefs.h.  */
13530int i;
13531int
13532main ()
13533{
13534
13535  ;
13536  return 0;
13537}
13538_ACEOF
13539if ac_fn_c_try_link "$LINENO"; then :
13540  eval $cacheid=yes
13541else
13542  eval $cacheid=no
13543fi
13544rm -f core conftest.err conftest.$ac_objext \
13545    conftest$ac_exeext conftest.$ac_ext
13546fi
13547
13548
13549		CFLAGS="$xorg_testset_save_CFLAGS"
13550
13551		eval supported=\$$cacheid
13552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13553$as_echo "$supported" >&6; }
13554		if test "$supported" = "yes" ; then
13555			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13556			found="yes"
13557		fi
13558	fi
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574xorg_testset_save_CFLAGS="$CFLAGS"
13575
13576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13581  $as_echo_n "(cached) " >&6
13582else
13583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584/* end confdefs.h.  */
13585int i;
13586_ACEOF
13587if ac_fn_c_try_compile "$LINENO"; then :
13588  xorg_cv_cc_flag_unknown_warning_option=yes
13589else
13590  xorg_cv_cc_flag_unknown_warning_option=no
13591fi
13592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593fi
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13597	CFLAGS="$xorg_testset_save_CFLAGS"
13598fi
13599
13600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13603	fi
13604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13608  $as_echo_n "(cached) " >&6
13609else
13610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612int i;
13613_ACEOF
13614if ac_fn_c_try_compile "$LINENO"; then :
13615  xorg_cv_cc_flag_unused_command_line_argument=yes
13616else
13617  xorg_cv_cc_flag_unused_command_line_argument=no
13618fi
13619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620fi
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13624	CFLAGS="$xorg_testset_save_CFLAGS"
13625fi
13626
13627found="no"
13628
13629	if test $found = "no" ; then
13630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13632		fi
13633
13634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13636		fi
13637
13638		CFLAGS="$CFLAGS -Wmissing-noreturn"
13639
13640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13641$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13642		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13643		if eval \${$cacheid+:} false; then :
13644  $as_echo_n "(cached) " >&6
13645else
13646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647/* end confdefs.h.  */
13648int i;
13649int
13650main ()
13651{
13652
13653  ;
13654  return 0;
13655}
13656_ACEOF
13657if ac_fn_c_try_link "$LINENO"; then :
13658  eval $cacheid=yes
13659else
13660  eval $cacheid=no
13661fi
13662rm -f core conftest.err conftest.$ac_objext \
13663    conftest$ac_exeext conftest.$ac_ext
13664fi
13665
13666
13667		CFLAGS="$xorg_testset_save_CFLAGS"
13668
13669		eval supported=\$$cacheid
13670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13671$as_echo "$supported" >&6; }
13672		if test "$supported" = "yes" ; then
13673			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13674			found="yes"
13675		fi
13676	fi
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692xorg_testset_save_CFLAGS="$CFLAGS"
13693
13694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13699  $as_echo_n "(cached) " >&6
13700else
13701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702/* end confdefs.h.  */
13703int i;
13704_ACEOF
13705if ac_fn_c_try_compile "$LINENO"; then :
13706  xorg_cv_cc_flag_unknown_warning_option=yes
13707else
13708  xorg_cv_cc_flag_unknown_warning_option=no
13709fi
13710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13711fi
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13714	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13715	CFLAGS="$xorg_testset_save_CFLAGS"
13716fi
13717
13718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13719	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13720		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13721	fi
13722	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13726  $as_echo_n "(cached) " >&6
13727else
13728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729/* end confdefs.h.  */
13730int i;
13731_ACEOF
13732if ac_fn_c_try_compile "$LINENO"; then :
13733  xorg_cv_cc_flag_unused_command_line_argument=yes
13734else
13735  xorg_cv_cc_flag_unused_command_line_argument=no
13736fi
13737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13738fi
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13742	CFLAGS="$xorg_testset_save_CFLAGS"
13743fi
13744
13745found="no"
13746
13747	if test $found = "no" ; then
13748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13750		fi
13751
13752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13754		fi
13755
13756		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13757
13758		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13759$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13760		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13761		if eval \${$cacheid+:} false; then :
13762  $as_echo_n "(cached) " >&6
13763else
13764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765/* end confdefs.h.  */
13766int i;
13767int
13768main ()
13769{
13770
13771  ;
13772  return 0;
13773}
13774_ACEOF
13775if ac_fn_c_try_link "$LINENO"; then :
13776  eval $cacheid=yes
13777else
13778  eval $cacheid=no
13779fi
13780rm -f core conftest.err conftest.$ac_objext \
13781    conftest$ac_exeext conftest.$ac_ext
13782fi
13783
13784
13785		CFLAGS="$xorg_testset_save_CFLAGS"
13786
13787		eval supported=\$$cacheid
13788		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13789$as_echo "$supported" >&6; }
13790		if test "$supported" = "yes" ; then
13791			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13792			found="yes"
13793		fi
13794	fi
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810xorg_testset_save_CFLAGS="$CFLAGS"
13811
13812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13817  $as_echo_n "(cached) " >&6
13818else
13819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820/* end confdefs.h.  */
13821int i;
13822_ACEOF
13823if ac_fn_c_try_compile "$LINENO"; then :
13824  xorg_cv_cc_flag_unknown_warning_option=yes
13825else
13826  xorg_cv_cc_flag_unknown_warning_option=no
13827fi
13828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829fi
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13833	CFLAGS="$xorg_testset_save_CFLAGS"
13834fi
13835
13836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13839	fi
13840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13844  $as_echo_n "(cached) " >&6
13845else
13846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847/* end confdefs.h.  */
13848int i;
13849_ACEOF
13850if ac_fn_c_try_compile "$LINENO"; then :
13851  xorg_cv_cc_flag_unused_command_line_argument=yes
13852else
13853  xorg_cv_cc_flag_unused_command_line_argument=no
13854fi
13855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13860	CFLAGS="$xorg_testset_save_CFLAGS"
13861fi
13862
13863found="no"
13864
13865	if test $found = "no" ; then
13866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13868		fi
13869
13870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13872		fi
13873
13874		CFLAGS="$CFLAGS -Wredundant-decls"
13875
13876		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13877$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13878		cacheid=xorg_cv_cc_flag__Wredundant_decls
13879		if eval \${$cacheid+:} false; then :
13880  $as_echo_n "(cached) " >&6
13881else
13882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883/* end confdefs.h.  */
13884int i;
13885int
13886main ()
13887{
13888
13889  ;
13890  return 0;
13891}
13892_ACEOF
13893if ac_fn_c_try_link "$LINENO"; then :
13894  eval $cacheid=yes
13895else
13896  eval $cacheid=no
13897fi
13898rm -f core conftest.err conftest.$ac_objext \
13899    conftest$ac_exeext conftest.$ac_ext
13900fi
13901
13902
13903		CFLAGS="$xorg_testset_save_CFLAGS"
13904
13905		eval supported=\$$cacheid
13906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13907$as_echo "$supported" >&6; }
13908		if test "$supported" = "yes" ; then
13909			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13910			found="yes"
13911		fi
13912	fi
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928xorg_testset_save_CFLAGS="$CFLAGS"
13929
13930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13935  $as_echo_n "(cached) " >&6
13936else
13937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938/* end confdefs.h.  */
13939int i;
13940_ACEOF
13941if ac_fn_c_try_compile "$LINENO"; then :
13942  xorg_cv_cc_flag_unknown_warning_option=yes
13943else
13944  xorg_cv_cc_flag_unknown_warning_option=no
13945fi
13946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947fi
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13951	CFLAGS="$xorg_testset_save_CFLAGS"
13952fi
13953
13954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957	fi
13958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13962  $as_echo_n "(cached) " >&6
13963else
13964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965/* end confdefs.h.  */
13966int i;
13967_ACEOF
13968if ac_fn_c_try_compile "$LINENO"; then :
13969  xorg_cv_cc_flag_unused_command_line_argument=yes
13970else
13971  xorg_cv_cc_flag_unused_command_line_argument=no
13972fi
13973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13974fi
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13978	CFLAGS="$xorg_testset_save_CFLAGS"
13979fi
13980
13981found="no"
13982
13983	if test $found = "no" ; then
13984		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13986		fi
13987
13988		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13990		fi
13991
13992		CFLAGS="$CFLAGS -Wlogical-op"
13993
13994		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
13995$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
13996		cacheid=xorg_cv_cc_flag__Wlogical_op
13997		if eval \${$cacheid+:} false; then :
13998  $as_echo_n "(cached) " >&6
13999else
14000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001/* end confdefs.h.  */
14002int i;
14003int
14004main ()
14005{
14006
14007  ;
14008  return 0;
14009}
14010_ACEOF
14011if ac_fn_c_try_link "$LINENO"; then :
14012  eval $cacheid=yes
14013else
14014  eval $cacheid=no
14015fi
14016rm -f core conftest.err conftest.$ac_objext \
14017    conftest$ac_exeext conftest.$ac_ext
14018fi
14019
14020
14021		CFLAGS="$xorg_testset_save_CFLAGS"
14022
14023		eval supported=\$$cacheid
14024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14025$as_echo "$supported" >&6; }
14026		if test "$supported" = "yes" ; then
14027			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14028			found="yes"
14029		fi
14030	fi
14031
14032
14033
14034# These are currently disabled because they are noisy.  They will be enabled
14035# in the future once the codebase is sufficiently modernized to silence
14036# them.  For now, I don't want them to drown out the other warnings.
14037# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14038# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14039# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14040
14041# Turn some warnings into errors, so we don't accidently get successful builds
14042# when there are problems that should be fixed.
14043
14044if test "x$SELECTIVE_WERROR" = "xyes" ; then
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058xorg_testset_save_CFLAGS="$CFLAGS"
14059
14060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14065  $as_echo_n "(cached) " >&6
14066else
14067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068/* end confdefs.h.  */
14069int i;
14070_ACEOF
14071if ac_fn_c_try_compile "$LINENO"; then :
14072  xorg_cv_cc_flag_unknown_warning_option=yes
14073else
14074  xorg_cv_cc_flag_unknown_warning_option=no
14075fi
14076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077fi
14078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14081	CFLAGS="$xorg_testset_save_CFLAGS"
14082fi
14083
14084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087	fi
14088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093else
14094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095/* end confdefs.h.  */
14096int i;
14097_ACEOF
14098if ac_fn_c_try_compile "$LINENO"; then :
14099  xorg_cv_cc_flag_unused_command_line_argument=yes
14100else
14101  xorg_cv_cc_flag_unused_command_line_argument=no
14102fi
14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104fi
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14108	CFLAGS="$xorg_testset_save_CFLAGS"
14109fi
14110
14111found="no"
14112
14113	if test $found = "no" ; then
14114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14116		fi
14117
14118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14120		fi
14121
14122		CFLAGS="$CFLAGS -Werror=implicit"
14123
14124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14125$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14126		cacheid=xorg_cv_cc_flag__Werror_implicit
14127		if eval \${$cacheid+:} false; then :
14128  $as_echo_n "(cached) " >&6
14129else
14130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131/* end confdefs.h.  */
14132int i;
14133int
14134main ()
14135{
14136
14137  ;
14138  return 0;
14139}
14140_ACEOF
14141if ac_fn_c_try_link "$LINENO"; then :
14142  eval $cacheid=yes
14143else
14144  eval $cacheid=no
14145fi
14146rm -f core conftest.err conftest.$ac_objext \
14147    conftest$ac_exeext conftest.$ac_ext
14148fi
14149
14150
14151		CFLAGS="$xorg_testset_save_CFLAGS"
14152
14153		eval supported=\$$cacheid
14154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14155$as_echo "$supported" >&6; }
14156		if test "$supported" = "yes" ; then
14157			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14158			found="yes"
14159		fi
14160	fi
14161
14162	if test $found = "no" ; then
14163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14165		fi
14166
14167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14169		fi
14170
14171		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14172
14173		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14174$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14175		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14176		if eval \${$cacheid+:} false; then :
14177  $as_echo_n "(cached) " >&6
14178else
14179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180/* end confdefs.h.  */
14181int i;
14182int
14183main ()
14184{
14185
14186  ;
14187  return 0;
14188}
14189_ACEOF
14190if ac_fn_c_try_link "$LINENO"; then :
14191  eval $cacheid=yes
14192else
14193  eval $cacheid=no
14194fi
14195rm -f core conftest.err conftest.$ac_objext \
14196    conftest$ac_exeext conftest.$ac_ext
14197fi
14198
14199
14200		CFLAGS="$xorg_testset_save_CFLAGS"
14201
14202		eval supported=\$$cacheid
14203		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14204$as_echo "$supported" >&6; }
14205		if test "$supported" = "yes" ; then
14206			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14207			found="yes"
14208		fi
14209	fi
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225xorg_testset_save_CFLAGS="$CFLAGS"
14226
14227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14232  $as_echo_n "(cached) " >&6
14233else
14234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235/* end confdefs.h.  */
14236int i;
14237_ACEOF
14238if ac_fn_c_try_compile "$LINENO"; then :
14239  xorg_cv_cc_flag_unknown_warning_option=yes
14240else
14241  xorg_cv_cc_flag_unknown_warning_option=no
14242fi
14243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244fi
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14248	CFLAGS="$xorg_testset_save_CFLAGS"
14249fi
14250
14251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14254	fi
14255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14259  $as_echo_n "(cached) " >&6
14260else
14261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262/* end confdefs.h.  */
14263int i;
14264_ACEOF
14265if ac_fn_c_try_compile "$LINENO"; then :
14266  xorg_cv_cc_flag_unused_command_line_argument=yes
14267else
14268  xorg_cv_cc_flag_unused_command_line_argument=no
14269fi
14270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271fi
14272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14275	CFLAGS="$xorg_testset_save_CFLAGS"
14276fi
14277
14278found="no"
14279
14280	if test $found = "no" ; then
14281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14283		fi
14284
14285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14287		fi
14288
14289		CFLAGS="$CFLAGS -Werror=nonnull"
14290
14291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14292$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14293		cacheid=xorg_cv_cc_flag__Werror_nonnull
14294		if eval \${$cacheid+:} false; then :
14295  $as_echo_n "(cached) " >&6
14296else
14297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298/* end confdefs.h.  */
14299int i;
14300int
14301main ()
14302{
14303
14304  ;
14305  return 0;
14306}
14307_ACEOF
14308if ac_fn_c_try_link "$LINENO"; then :
14309  eval $cacheid=yes
14310else
14311  eval $cacheid=no
14312fi
14313rm -f core conftest.err conftest.$ac_objext \
14314    conftest$ac_exeext conftest.$ac_ext
14315fi
14316
14317
14318		CFLAGS="$xorg_testset_save_CFLAGS"
14319
14320		eval supported=\$$cacheid
14321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14322$as_echo "$supported" >&6; }
14323		if test "$supported" = "yes" ; then
14324			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14325			found="yes"
14326		fi
14327	fi
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343xorg_testset_save_CFLAGS="$CFLAGS"
14344
14345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14350  $as_echo_n "(cached) " >&6
14351else
14352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353/* end confdefs.h.  */
14354int i;
14355_ACEOF
14356if ac_fn_c_try_compile "$LINENO"; then :
14357  xorg_cv_cc_flag_unknown_warning_option=yes
14358else
14359  xorg_cv_cc_flag_unknown_warning_option=no
14360fi
14361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362fi
14363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14365	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14366	CFLAGS="$xorg_testset_save_CFLAGS"
14367fi
14368
14369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14370	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14371		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14372	fi
14373	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14377  $as_echo_n "(cached) " >&6
14378else
14379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381int i;
14382_ACEOF
14383if ac_fn_c_try_compile "$LINENO"; then :
14384  xorg_cv_cc_flag_unused_command_line_argument=yes
14385else
14386  xorg_cv_cc_flag_unused_command_line_argument=no
14387fi
14388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389fi
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14392	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14393	CFLAGS="$xorg_testset_save_CFLAGS"
14394fi
14395
14396found="no"
14397
14398	if test $found = "no" ; then
14399		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14400			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14401		fi
14402
14403		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14404			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14405		fi
14406
14407		CFLAGS="$CFLAGS -Werror=init-self"
14408
14409		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14410$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14411		cacheid=xorg_cv_cc_flag__Werror_init_self
14412		if eval \${$cacheid+:} false; then :
14413  $as_echo_n "(cached) " >&6
14414else
14415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416/* end confdefs.h.  */
14417int i;
14418int
14419main ()
14420{
14421
14422  ;
14423  return 0;
14424}
14425_ACEOF
14426if ac_fn_c_try_link "$LINENO"; then :
14427  eval $cacheid=yes
14428else
14429  eval $cacheid=no
14430fi
14431rm -f core conftest.err conftest.$ac_objext \
14432    conftest$ac_exeext conftest.$ac_ext
14433fi
14434
14435
14436		CFLAGS="$xorg_testset_save_CFLAGS"
14437
14438		eval supported=\$$cacheid
14439		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14440$as_echo "$supported" >&6; }
14441		if test "$supported" = "yes" ; then
14442			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14443			found="yes"
14444		fi
14445	fi
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461xorg_testset_save_CFLAGS="$CFLAGS"
14462
14463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14468  $as_echo_n "(cached) " >&6
14469else
14470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471/* end confdefs.h.  */
14472int i;
14473_ACEOF
14474if ac_fn_c_try_compile "$LINENO"; then :
14475  xorg_cv_cc_flag_unknown_warning_option=yes
14476else
14477  xorg_cv_cc_flag_unknown_warning_option=no
14478fi
14479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480fi
14481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14484	CFLAGS="$xorg_testset_save_CFLAGS"
14485fi
14486
14487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14490	fi
14491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14495  $as_echo_n "(cached) " >&6
14496else
14497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498/* end confdefs.h.  */
14499int i;
14500_ACEOF
14501if ac_fn_c_try_compile "$LINENO"; then :
14502  xorg_cv_cc_flag_unused_command_line_argument=yes
14503else
14504  xorg_cv_cc_flag_unused_command_line_argument=no
14505fi
14506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507fi
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14511	CFLAGS="$xorg_testset_save_CFLAGS"
14512fi
14513
14514found="no"
14515
14516	if test $found = "no" ; then
14517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14519		fi
14520
14521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14523		fi
14524
14525		CFLAGS="$CFLAGS -Werror=main"
14526
14527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14528$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14529		cacheid=xorg_cv_cc_flag__Werror_main
14530		if eval \${$cacheid+:} false; then :
14531  $as_echo_n "(cached) " >&6
14532else
14533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534/* end confdefs.h.  */
14535int i;
14536int
14537main ()
14538{
14539
14540  ;
14541  return 0;
14542}
14543_ACEOF
14544if ac_fn_c_try_link "$LINENO"; then :
14545  eval $cacheid=yes
14546else
14547  eval $cacheid=no
14548fi
14549rm -f core conftest.err conftest.$ac_objext \
14550    conftest$ac_exeext conftest.$ac_ext
14551fi
14552
14553
14554		CFLAGS="$xorg_testset_save_CFLAGS"
14555
14556		eval supported=\$$cacheid
14557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14558$as_echo "$supported" >&6; }
14559		if test "$supported" = "yes" ; then
14560			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14561			found="yes"
14562		fi
14563	fi
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579xorg_testset_save_CFLAGS="$CFLAGS"
14580
14581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14586  $as_echo_n "(cached) " >&6
14587else
14588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589/* end confdefs.h.  */
14590int i;
14591_ACEOF
14592if ac_fn_c_try_compile "$LINENO"; then :
14593  xorg_cv_cc_flag_unknown_warning_option=yes
14594else
14595  xorg_cv_cc_flag_unknown_warning_option=no
14596fi
14597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598fi
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14602	CFLAGS="$xorg_testset_save_CFLAGS"
14603fi
14604
14605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14608	fi
14609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14613  $as_echo_n "(cached) " >&6
14614else
14615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616/* end confdefs.h.  */
14617int i;
14618_ACEOF
14619if ac_fn_c_try_compile "$LINENO"; then :
14620  xorg_cv_cc_flag_unused_command_line_argument=yes
14621else
14622  xorg_cv_cc_flag_unused_command_line_argument=no
14623fi
14624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14625fi
14626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14629	CFLAGS="$xorg_testset_save_CFLAGS"
14630fi
14631
14632found="no"
14633
14634	if test $found = "no" ; then
14635		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14637		fi
14638
14639		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14641		fi
14642
14643		CFLAGS="$CFLAGS -Werror=missing-braces"
14644
14645		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14646$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14647		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14648		if eval \${$cacheid+:} false; then :
14649  $as_echo_n "(cached) " >&6
14650else
14651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652/* end confdefs.h.  */
14653int i;
14654int
14655main ()
14656{
14657
14658  ;
14659  return 0;
14660}
14661_ACEOF
14662if ac_fn_c_try_link "$LINENO"; then :
14663  eval $cacheid=yes
14664else
14665  eval $cacheid=no
14666fi
14667rm -f core conftest.err conftest.$ac_objext \
14668    conftest$ac_exeext conftest.$ac_ext
14669fi
14670
14671
14672		CFLAGS="$xorg_testset_save_CFLAGS"
14673
14674		eval supported=\$$cacheid
14675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14676$as_echo "$supported" >&6; }
14677		if test "$supported" = "yes" ; then
14678			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14679			found="yes"
14680		fi
14681	fi
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697xorg_testset_save_CFLAGS="$CFLAGS"
14698
14699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14704  $as_echo_n "(cached) " >&6
14705else
14706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707/* end confdefs.h.  */
14708int i;
14709_ACEOF
14710if ac_fn_c_try_compile "$LINENO"; then :
14711  xorg_cv_cc_flag_unknown_warning_option=yes
14712else
14713  xorg_cv_cc_flag_unknown_warning_option=no
14714fi
14715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716fi
14717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14720	CFLAGS="$xorg_testset_save_CFLAGS"
14721fi
14722
14723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14726	fi
14727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14731  $as_echo_n "(cached) " >&6
14732else
14733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735int i;
14736_ACEOF
14737if ac_fn_c_try_compile "$LINENO"; then :
14738  xorg_cv_cc_flag_unused_command_line_argument=yes
14739else
14740  xorg_cv_cc_flag_unused_command_line_argument=no
14741fi
14742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743fi
14744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14746	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14747	CFLAGS="$xorg_testset_save_CFLAGS"
14748fi
14749
14750found="no"
14751
14752	if test $found = "no" ; then
14753		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14755		fi
14756
14757		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14759		fi
14760
14761		CFLAGS="$CFLAGS -Werror=sequence-point"
14762
14763		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14764$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14765		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14766		if eval \${$cacheid+:} false; then :
14767  $as_echo_n "(cached) " >&6
14768else
14769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770/* end confdefs.h.  */
14771int i;
14772int
14773main ()
14774{
14775
14776  ;
14777  return 0;
14778}
14779_ACEOF
14780if ac_fn_c_try_link "$LINENO"; then :
14781  eval $cacheid=yes
14782else
14783  eval $cacheid=no
14784fi
14785rm -f core conftest.err conftest.$ac_objext \
14786    conftest$ac_exeext conftest.$ac_ext
14787fi
14788
14789
14790		CFLAGS="$xorg_testset_save_CFLAGS"
14791
14792		eval supported=\$$cacheid
14793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14794$as_echo "$supported" >&6; }
14795		if test "$supported" = "yes" ; then
14796			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14797			found="yes"
14798		fi
14799	fi
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815xorg_testset_save_CFLAGS="$CFLAGS"
14816
14817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14822  $as_echo_n "(cached) " >&6
14823else
14824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825/* end confdefs.h.  */
14826int i;
14827_ACEOF
14828if ac_fn_c_try_compile "$LINENO"; then :
14829  xorg_cv_cc_flag_unknown_warning_option=yes
14830else
14831  xorg_cv_cc_flag_unknown_warning_option=no
14832fi
14833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834fi
14835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14838	CFLAGS="$xorg_testset_save_CFLAGS"
14839fi
14840
14841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14844	fi
14845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14849  $as_echo_n "(cached) " >&6
14850else
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853int i;
14854_ACEOF
14855if ac_fn_c_try_compile "$LINENO"; then :
14856  xorg_cv_cc_flag_unused_command_line_argument=yes
14857else
14858  xorg_cv_cc_flag_unused_command_line_argument=no
14859fi
14860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861fi
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14865	CFLAGS="$xorg_testset_save_CFLAGS"
14866fi
14867
14868found="no"
14869
14870	if test $found = "no" ; then
14871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14873		fi
14874
14875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14877		fi
14878
14879		CFLAGS="$CFLAGS -Werror=return-type"
14880
14881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14882$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14883		cacheid=xorg_cv_cc_flag__Werror_return_type
14884		if eval \${$cacheid+:} false; then :
14885  $as_echo_n "(cached) " >&6
14886else
14887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888/* end confdefs.h.  */
14889int i;
14890int
14891main ()
14892{
14893
14894  ;
14895  return 0;
14896}
14897_ACEOF
14898if ac_fn_c_try_link "$LINENO"; then :
14899  eval $cacheid=yes
14900else
14901  eval $cacheid=no
14902fi
14903rm -f core conftest.err conftest.$ac_objext \
14904    conftest$ac_exeext conftest.$ac_ext
14905fi
14906
14907
14908		CFLAGS="$xorg_testset_save_CFLAGS"
14909
14910		eval supported=\$$cacheid
14911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14912$as_echo "$supported" >&6; }
14913		if test "$supported" = "yes" ; then
14914			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14915			found="yes"
14916		fi
14917	fi
14918
14919	if test $found = "no" ; then
14920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14922		fi
14923
14924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14926		fi
14927
14928		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14929
14930		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14931$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14932		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14933		if eval \${$cacheid+:} false; then :
14934  $as_echo_n "(cached) " >&6
14935else
14936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937/* end confdefs.h.  */
14938int i;
14939int
14940main ()
14941{
14942
14943  ;
14944  return 0;
14945}
14946_ACEOF
14947if ac_fn_c_try_link "$LINENO"; then :
14948  eval $cacheid=yes
14949else
14950  eval $cacheid=no
14951fi
14952rm -f core conftest.err conftest.$ac_objext \
14953    conftest$ac_exeext conftest.$ac_ext
14954fi
14955
14956
14957		CFLAGS="$xorg_testset_save_CFLAGS"
14958
14959		eval supported=\$$cacheid
14960		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14961$as_echo "$supported" >&6; }
14962		if test "$supported" = "yes" ; then
14963			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14964			found="yes"
14965		fi
14966	fi
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982xorg_testset_save_CFLAGS="$CFLAGS"
14983
14984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14989  $as_echo_n "(cached) " >&6
14990else
14991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992/* end confdefs.h.  */
14993int i;
14994_ACEOF
14995if ac_fn_c_try_compile "$LINENO"; then :
14996  xorg_cv_cc_flag_unknown_warning_option=yes
14997else
14998  xorg_cv_cc_flag_unknown_warning_option=no
14999fi
15000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001fi
15002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15005	CFLAGS="$xorg_testset_save_CFLAGS"
15006fi
15007
15008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15011	fi
15012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15016  $as_echo_n "(cached) " >&6
15017else
15018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019/* end confdefs.h.  */
15020int i;
15021_ACEOF
15022if ac_fn_c_try_compile "$LINENO"; then :
15023  xorg_cv_cc_flag_unused_command_line_argument=yes
15024else
15025  xorg_cv_cc_flag_unused_command_line_argument=no
15026fi
15027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028fi
15029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15032	CFLAGS="$xorg_testset_save_CFLAGS"
15033fi
15034
15035found="no"
15036
15037	if test $found = "no" ; then
15038		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15040		fi
15041
15042		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15044		fi
15045
15046		CFLAGS="$CFLAGS -Werror=trigraphs"
15047
15048		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15049$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15050		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15051		if eval \${$cacheid+:} false; then :
15052  $as_echo_n "(cached) " >&6
15053else
15054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055/* end confdefs.h.  */
15056int i;
15057int
15058main ()
15059{
15060
15061  ;
15062  return 0;
15063}
15064_ACEOF
15065if ac_fn_c_try_link "$LINENO"; then :
15066  eval $cacheid=yes
15067else
15068  eval $cacheid=no
15069fi
15070rm -f core conftest.err conftest.$ac_objext \
15071    conftest$ac_exeext conftest.$ac_ext
15072fi
15073
15074
15075		CFLAGS="$xorg_testset_save_CFLAGS"
15076
15077		eval supported=\$$cacheid
15078		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15079$as_echo "$supported" >&6; }
15080		if test "$supported" = "yes" ; then
15081			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15082			found="yes"
15083		fi
15084	fi
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100xorg_testset_save_CFLAGS="$CFLAGS"
15101
15102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15107  $as_echo_n "(cached) " >&6
15108else
15109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110/* end confdefs.h.  */
15111int i;
15112_ACEOF
15113if ac_fn_c_try_compile "$LINENO"; then :
15114  xorg_cv_cc_flag_unknown_warning_option=yes
15115else
15116  xorg_cv_cc_flag_unknown_warning_option=no
15117fi
15118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119fi
15120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15123	CFLAGS="$xorg_testset_save_CFLAGS"
15124fi
15125
15126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15129	fi
15130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15134  $as_echo_n "(cached) " >&6
15135else
15136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137/* end confdefs.h.  */
15138int i;
15139_ACEOF
15140if ac_fn_c_try_compile "$LINENO"; then :
15141  xorg_cv_cc_flag_unused_command_line_argument=yes
15142else
15143  xorg_cv_cc_flag_unused_command_line_argument=no
15144fi
15145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146fi
15147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15150	CFLAGS="$xorg_testset_save_CFLAGS"
15151fi
15152
15153found="no"
15154
15155	if test $found = "no" ; then
15156		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15158		fi
15159
15160		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15162		fi
15163
15164		CFLAGS="$CFLAGS -Werror=array-bounds"
15165
15166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15167$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15168		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15169		if eval \${$cacheid+:} false; then :
15170  $as_echo_n "(cached) " >&6
15171else
15172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173/* end confdefs.h.  */
15174int i;
15175int
15176main ()
15177{
15178
15179  ;
15180  return 0;
15181}
15182_ACEOF
15183if ac_fn_c_try_link "$LINENO"; then :
15184  eval $cacheid=yes
15185else
15186  eval $cacheid=no
15187fi
15188rm -f core conftest.err conftest.$ac_objext \
15189    conftest$ac_exeext conftest.$ac_ext
15190fi
15191
15192
15193		CFLAGS="$xorg_testset_save_CFLAGS"
15194
15195		eval supported=\$$cacheid
15196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15197$as_echo "$supported" >&6; }
15198		if test "$supported" = "yes" ; then
15199			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15200			found="yes"
15201		fi
15202	fi
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218xorg_testset_save_CFLAGS="$CFLAGS"
15219
15220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15225  $as_echo_n "(cached) " >&6
15226else
15227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228/* end confdefs.h.  */
15229int i;
15230_ACEOF
15231if ac_fn_c_try_compile "$LINENO"; then :
15232  xorg_cv_cc_flag_unknown_warning_option=yes
15233else
15234  xorg_cv_cc_flag_unknown_warning_option=no
15235fi
15236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15237fi
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15241	CFLAGS="$xorg_testset_save_CFLAGS"
15242fi
15243
15244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15247	fi
15248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15252  $as_echo_n "(cached) " >&6
15253else
15254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255/* end confdefs.h.  */
15256int i;
15257_ACEOF
15258if ac_fn_c_try_compile "$LINENO"; then :
15259  xorg_cv_cc_flag_unused_command_line_argument=yes
15260else
15261  xorg_cv_cc_flag_unused_command_line_argument=no
15262fi
15263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264fi
15265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15268	CFLAGS="$xorg_testset_save_CFLAGS"
15269fi
15270
15271found="no"
15272
15273	if test $found = "no" ; then
15274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15276		fi
15277
15278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15280		fi
15281
15282		CFLAGS="$CFLAGS -Werror=write-strings"
15283
15284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15285$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15286		cacheid=xorg_cv_cc_flag__Werror_write_strings
15287		if eval \${$cacheid+:} false; then :
15288  $as_echo_n "(cached) " >&6
15289else
15290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291/* end confdefs.h.  */
15292int i;
15293int
15294main ()
15295{
15296
15297  ;
15298  return 0;
15299}
15300_ACEOF
15301if ac_fn_c_try_link "$LINENO"; then :
15302  eval $cacheid=yes
15303else
15304  eval $cacheid=no
15305fi
15306rm -f core conftest.err conftest.$ac_objext \
15307    conftest$ac_exeext conftest.$ac_ext
15308fi
15309
15310
15311		CFLAGS="$xorg_testset_save_CFLAGS"
15312
15313		eval supported=\$$cacheid
15314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15315$as_echo "$supported" >&6; }
15316		if test "$supported" = "yes" ; then
15317			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15318			found="yes"
15319		fi
15320	fi
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336xorg_testset_save_CFLAGS="$CFLAGS"
15337
15338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15343  $as_echo_n "(cached) " >&6
15344else
15345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346/* end confdefs.h.  */
15347int i;
15348_ACEOF
15349if ac_fn_c_try_compile "$LINENO"; then :
15350  xorg_cv_cc_flag_unknown_warning_option=yes
15351else
15352  xorg_cv_cc_flag_unknown_warning_option=no
15353fi
15354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355fi
15356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15359	CFLAGS="$xorg_testset_save_CFLAGS"
15360fi
15361
15362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15365	fi
15366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15370  $as_echo_n "(cached) " >&6
15371else
15372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373/* end confdefs.h.  */
15374int i;
15375_ACEOF
15376if ac_fn_c_try_compile "$LINENO"; then :
15377  xorg_cv_cc_flag_unused_command_line_argument=yes
15378else
15379  xorg_cv_cc_flag_unused_command_line_argument=no
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15386	CFLAGS="$xorg_testset_save_CFLAGS"
15387fi
15388
15389found="no"
15390
15391	if test $found = "no" ; then
15392		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15394		fi
15395
15396		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15398		fi
15399
15400		CFLAGS="$CFLAGS -Werror=address"
15401
15402		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15403$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15404		cacheid=xorg_cv_cc_flag__Werror_address
15405		if eval \${$cacheid+:} false; then :
15406  $as_echo_n "(cached) " >&6
15407else
15408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409/* end confdefs.h.  */
15410int i;
15411int
15412main ()
15413{
15414
15415  ;
15416  return 0;
15417}
15418_ACEOF
15419if ac_fn_c_try_link "$LINENO"; then :
15420  eval $cacheid=yes
15421else
15422  eval $cacheid=no
15423fi
15424rm -f core conftest.err conftest.$ac_objext \
15425    conftest$ac_exeext conftest.$ac_ext
15426fi
15427
15428
15429		CFLAGS="$xorg_testset_save_CFLAGS"
15430
15431		eval supported=\$$cacheid
15432		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15433$as_echo "$supported" >&6; }
15434		if test "$supported" = "yes" ; then
15435			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15436			found="yes"
15437		fi
15438	fi
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454xorg_testset_save_CFLAGS="$CFLAGS"
15455
15456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15461  $as_echo_n "(cached) " >&6
15462else
15463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464/* end confdefs.h.  */
15465int i;
15466_ACEOF
15467if ac_fn_c_try_compile "$LINENO"; then :
15468  xorg_cv_cc_flag_unknown_warning_option=yes
15469else
15470  xorg_cv_cc_flag_unknown_warning_option=no
15471fi
15472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473fi
15474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15477	CFLAGS="$xorg_testset_save_CFLAGS"
15478fi
15479
15480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483	fi
15484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15488  $as_echo_n "(cached) " >&6
15489else
15490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491/* end confdefs.h.  */
15492int i;
15493_ACEOF
15494if ac_fn_c_try_compile "$LINENO"; then :
15495  xorg_cv_cc_flag_unused_command_line_argument=yes
15496else
15497  xorg_cv_cc_flag_unused_command_line_argument=no
15498fi
15499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15500fi
15501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15504	CFLAGS="$xorg_testset_save_CFLAGS"
15505fi
15506
15507found="no"
15508
15509	if test $found = "no" ; then
15510		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15512		fi
15513
15514		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15516		fi
15517
15518		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15519
15520		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15521$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15522		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15523		if eval \${$cacheid+:} false; then :
15524  $as_echo_n "(cached) " >&6
15525else
15526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15527/* end confdefs.h.  */
15528int i;
15529int
15530main ()
15531{
15532
15533  ;
15534  return 0;
15535}
15536_ACEOF
15537if ac_fn_c_try_link "$LINENO"; then :
15538  eval $cacheid=yes
15539else
15540  eval $cacheid=no
15541fi
15542rm -f core conftest.err conftest.$ac_objext \
15543    conftest$ac_exeext conftest.$ac_ext
15544fi
15545
15546
15547		CFLAGS="$xorg_testset_save_CFLAGS"
15548
15549		eval supported=\$$cacheid
15550		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15551$as_echo "$supported" >&6; }
15552		if test "$supported" = "yes" ; then
15553			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15554			found="yes"
15555		fi
15556	fi
15557
15558	if test $found = "no" ; then
15559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15561		fi
15562
15563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15565		fi
15566
15567		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15568
15569		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15570$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15571		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15572		if eval \${$cacheid+:} false; then :
15573  $as_echo_n "(cached) " >&6
15574else
15575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576/* end confdefs.h.  */
15577int i;
15578int
15579main ()
15580{
15581
15582  ;
15583  return 0;
15584}
15585_ACEOF
15586if ac_fn_c_try_link "$LINENO"; then :
15587  eval $cacheid=yes
15588else
15589  eval $cacheid=no
15590fi
15591rm -f core conftest.err conftest.$ac_objext \
15592    conftest$ac_exeext conftest.$ac_ext
15593fi
15594
15595
15596		CFLAGS="$xorg_testset_save_CFLAGS"
15597
15598		eval supported=\$$cacheid
15599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15600$as_echo "$supported" >&6; }
15601		if test "$supported" = "yes" ; then
15602			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15603			found="yes"
15604		fi
15605	fi
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621xorg_testset_save_CFLAGS="$CFLAGS"
15622
15623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15628  $as_echo_n "(cached) " >&6
15629else
15630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631/* end confdefs.h.  */
15632int i;
15633_ACEOF
15634if ac_fn_c_try_compile "$LINENO"; then :
15635  xorg_cv_cc_flag_unknown_warning_option=yes
15636else
15637  xorg_cv_cc_flag_unknown_warning_option=no
15638fi
15639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15640fi
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15644	CFLAGS="$xorg_testset_save_CFLAGS"
15645fi
15646
15647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15650	fi
15651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15655  $as_echo_n "(cached) " >&6
15656else
15657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658/* end confdefs.h.  */
15659int i;
15660_ACEOF
15661if ac_fn_c_try_compile "$LINENO"; then :
15662  xorg_cv_cc_flag_unused_command_line_argument=yes
15663else
15664  xorg_cv_cc_flag_unused_command_line_argument=no
15665fi
15666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667fi
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15671	CFLAGS="$xorg_testset_save_CFLAGS"
15672fi
15673
15674found="no"
15675
15676	if test $found = "no" ; then
15677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15679		fi
15680
15681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15683		fi
15684
15685		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15686
15687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15688$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15689		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15690		if eval \${$cacheid+:} false; then :
15691  $as_echo_n "(cached) " >&6
15692else
15693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694/* end confdefs.h.  */
15695int i;
15696int
15697main ()
15698{
15699
15700  ;
15701  return 0;
15702}
15703_ACEOF
15704if ac_fn_c_try_link "$LINENO"; then :
15705  eval $cacheid=yes
15706else
15707  eval $cacheid=no
15708fi
15709rm -f core conftest.err conftest.$ac_objext \
15710    conftest$ac_exeext conftest.$ac_ext
15711fi
15712
15713
15714		CFLAGS="$xorg_testset_save_CFLAGS"
15715
15716		eval supported=\$$cacheid
15717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15718$as_echo "$supported" >&6; }
15719		if test "$supported" = "yes" ; then
15720			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15721			found="yes"
15722		fi
15723	fi
15724
15725 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15726else
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
15728$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742xorg_testset_save_CFLAGS="$CFLAGS"
15743
15744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15749  $as_echo_n "(cached) " >&6
15750else
15751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752/* end confdefs.h.  */
15753int i;
15754_ACEOF
15755if ac_fn_c_try_compile "$LINENO"; then :
15756  xorg_cv_cc_flag_unknown_warning_option=yes
15757else
15758  xorg_cv_cc_flag_unknown_warning_option=no
15759fi
15760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761fi
15762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15765	CFLAGS="$xorg_testset_save_CFLAGS"
15766fi
15767
15768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15771	fi
15772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15776  $as_echo_n "(cached) " >&6
15777else
15778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779/* end confdefs.h.  */
15780int i;
15781_ACEOF
15782if ac_fn_c_try_compile "$LINENO"; then :
15783  xorg_cv_cc_flag_unused_command_line_argument=yes
15784else
15785  xorg_cv_cc_flag_unused_command_line_argument=no
15786fi
15787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788fi
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15791	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15792	CFLAGS="$xorg_testset_save_CFLAGS"
15793fi
15794
15795found="no"
15796
15797	if test $found = "no" ; then
15798		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15800		fi
15801
15802		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15804		fi
15805
15806		CFLAGS="$CFLAGS -Wimplicit"
15807
15808		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15809$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15810		cacheid=xorg_cv_cc_flag__Wimplicit
15811		if eval \${$cacheid+:} false; then :
15812  $as_echo_n "(cached) " >&6
15813else
15814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815/* end confdefs.h.  */
15816int i;
15817int
15818main ()
15819{
15820
15821  ;
15822  return 0;
15823}
15824_ACEOF
15825if ac_fn_c_try_link "$LINENO"; then :
15826  eval $cacheid=yes
15827else
15828  eval $cacheid=no
15829fi
15830rm -f core conftest.err conftest.$ac_objext \
15831    conftest$ac_exeext conftest.$ac_ext
15832fi
15833
15834
15835		CFLAGS="$xorg_testset_save_CFLAGS"
15836
15837		eval supported=\$$cacheid
15838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15839$as_echo "$supported" >&6; }
15840		if test "$supported" = "yes" ; then
15841			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15842			found="yes"
15843		fi
15844	fi
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860xorg_testset_save_CFLAGS="$CFLAGS"
15861
15862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15867  $as_echo_n "(cached) " >&6
15868else
15869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870/* end confdefs.h.  */
15871int i;
15872_ACEOF
15873if ac_fn_c_try_compile "$LINENO"; then :
15874  xorg_cv_cc_flag_unknown_warning_option=yes
15875else
15876  xorg_cv_cc_flag_unknown_warning_option=no
15877fi
15878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879fi
15880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15883	CFLAGS="$xorg_testset_save_CFLAGS"
15884fi
15885
15886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15889	fi
15890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15894  $as_echo_n "(cached) " >&6
15895else
15896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897/* end confdefs.h.  */
15898int i;
15899_ACEOF
15900if ac_fn_c_try_compile "$LINENO"; then :
15901  xorg_cv_cc_flag_unused_command_line_argument=yes
15902else
15903  xorg_cv_cc_flag_unused_command_line_argument=no
15904fi
15905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906fi
15907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15909	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15910	CFLAGS="$xorg_testset_save_CFLAGS"
15911fi
15912
15913found="no"
15914
15915	if test $found = "no" ; then
15916		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15918		fi
15919
15920		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15922		fi
15923
15924		CFLAGS="$CFLAGS -Wnonnull"
15925
15926		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15927$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15928		cacheid=xorg_cv_cc_flag__Wnonnull
15929		if eval \${$cacheid+:} false; then :
15930  $as_echo_n "(cached) " >&6
15931else
15932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933/* end confdefs.h.  */
15934int i;
15935int
15936main ()
15937{
15938
15939  ;
15940  return 0;
15941}
15942_ACEOF
15943if ac_fn_c_try_link "$LINENO"; then :
15944  eval $cacheid=yes
15945else
15946  eval $cacheid=no
15947fi
15948rm -f core conftest.err conftest.$ac_objext \
15949    conftest$ac_exeext conftest.$ac_ext
15950fi
15951
15952
15953		CFLAGS="$xorg_testset_save_CFLAGS"
15954
15955		eval supported=\$$cacheid
15956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15957$as_echo "$supported" >&6; }
15958		if test "$supported" = "yes" ; then
15959			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15960			found="yes"
15961		fi
15962	fi
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978xorg_testset_save_CFLAGS="$CFLAGS"
15979
15980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15985  $as_echo_n "(cached) " >&6
15986else
15987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988/* end confdefs.h.  */
15989int i;
15990_ACEOF
15991if ac_fn_c_try_compile "$LINENO"; then :
15992  xorg_cv_cc_flag_unknown_warning_option=yes
15993else
15994  xorg_cv_cc_flag_unknown_warning_option=no
15995fi
15996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997fi
15998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16001	CFLAGS="$xorg_testset_save_CFLAGS"
16002fi
16003
16004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16007	fi
16008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16012  $as_echo_n "(cached) " >&6
16013else
16014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015/* end confdefs.h.  */
16016int i;
16017_ACEOF
16018if ac_fn_c_try_compile "$LINENO"; then :
16019  xorg_cv_cc_flag_unused_command_line_argument=yes
16020else
16021  xorg_cv_cc_flag_unused_command_line_argument=no
16022fi
16023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024fi
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16028	CFLAGS="$xorg_testset_save_CFLAGS"
16029fi
16030
16031found="no"
16032
16033	if test $found = "no" ; then
16034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16036		fi
16037
16038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16040		fi
16041
16042		CFLAGS="$CFLAGS -Winit-self"
16043
16044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16045$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16046		cacheid=xorg_cv_cc_flag__Winit_self
16047		if eval \${$cacheid+:} false; then :
16048  $as_echo_n "(cached) " >&6
16049else
16050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051/* end confdefs.h.  */
16052int i;
16053int
16054main ()
16055{
16056
16057  ;
16058  return 0;
16059}
16060_ACEOF
16061if ac_fn_c_try_link "$LINENO"; then :
16062  eval $cacheid=yes
16063else
16064  eval $cacheid=no
16065fi
16066rm -f core conftest.err conftest.$ac_objext \
16067    conftest$ac_exeext conftest.$ac_ext
16068fi
16069
16070
16071		CFLAGS="$xorg_testset_save_CFLAGS"
16072
16073		eval supported=\$$cacheid
16074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16075$as_echo "$supported" >&6; }
16076		if test "$supported" = "yes" ; then
16077			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16078			found="yes"
16079		fi
16080	fi
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096xorg_testset_save_CFLAGS="$CFLAGS"
16097
16098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16103  $as_echo_n "(cached) " >&6
16104else
16105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106/* end confdefs.h.  */
16107int i;
16108_ACEOF
16109if ac_fn_c_try_compile "$LINENO"; then :
16110  xorg_cv_cc_flag_unknown_warning_option=yes
16111else
16112  xorg_cv_cc_flag_unknown_warning_option=no
16113fi
16114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115fi
16116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16119	CFLAGS="$xorg_testset_save_CFLAGS"
16120fi
16121
16122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16125	fi
16126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16130  $as_echo_n "(cached) " >&6
16131else
16132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133/* end confdefs.h.  */
16134int i;
16135_ACEOF
16136if ac_fn_c_try_compile "$LINENO"; then :
16137  xorg_cv_cc_flag_unused_command_line_argument=yes
16138else
16139  xorg_cv_cc_flag_unused_command_line_argument=no
16140fi
16141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16142fi
16143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16146	CFLAGS="$xorg_testset_save_CFLAGS"
16147fi
16148
16149found="no"
16150
16151	if test $found = "no" ; then
16152		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16154		fi
16155
16156		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16158		fi
16159
16160		CFLAGS="$CFLAGS -Wmain"
16161
16162		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16163$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16164		cacheid=xorg_cv_cc_flag__Wmain
16165		if eval \${$cacheid+:} false; then :
16166  $as_echo_n "(cached) " >&6
16167else
16168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169/* end confdefs.h.  */
16170int i;
16171int
16172main ()
16173{
16174
16175  ;
16176  return 0;
16177}
16178_ACEOF
16179if ac_fn_c_try_link "$LINENO"; then :
16180  eval $cacheid=yes
16181else
16182  eval $cacheid=no
16183fi
16184rm -f core conftest.err conftest.$ac_objext \
16185    conftest$ac_exeext conftest.$ac_ext
16186fi
16187
16188
16189		CFLAGS="$xorg_testset_save_CFLAGS"
16190
16191		eval supported=\$$cacheid
16192		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16193$as_echo "$supported" >&6; }
16194		if test "$supported" = "yes" ; then
16195			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16196			found="yes"
16197		fi
16198	fi
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214xorg_testset_save_CFLAGS="$CFLAGS"
16215
16216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16221  $as_echo_n "(cached) " >&6
16222else
16223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h.  */
16225int i;
16226_ACEOF
16227if ac_fn_c_try_compile "$LINENO"; then :
16228  xorg_cv_cc_flag_unknown_warning_option=yes
16229else
16230  xorg_cv_cc_flag_unknown_warning_option=no
16231fi
16232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233fi
16234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16237	CFLAGS="$xorg_testset_save_CFLAGS"
16238fi
16239
16240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16243	fi
16244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16248  $as_echo_n "(cached) " >&6
16249else
16250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251/* end confdefs.h.  */
16252int i;
16253_ACEOF
16254if ac_fn_c_try_compile "$LINENO"; then :
16255  xorg_cv_cc_flag_unused_command_line_argument=yes
16256else
16257  xorg_cv_cc_flag_unused_command_line_argument=no
16258fi
16259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260fi
16261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16264	CFLAGS="$xorg_testset_save_CFLAGS"
16265fi
16266
16267found="no"
16268
16269	if test $found = "no" ; then
16270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16272		fi
16273
16274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16276		fi
16277
16278		CFLAGS="$CFLAGS -Wmissing-braces"
16279
16280		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16281$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16282		cacheid=xorg_cv_cc_flag__Wmissing_braces
16283		if eval \${$cacheid+:} false; then :
16284  $as_echo_n "(cached) " >&6
16285else
16286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287/* end confdefs.h.  */
16288int i;
16289int
16290main ()
16291{
16292
16293  ;
16294  return 0;
16295}
16296_ACEOF
16297if ac_fn_c_try_link "$LINENO"; then :
16298  eval $cacheid=yes
16299else
16300  eval $cacheid=no
16301fi
16302rm -f core conftest.err conftest.$ac_objext \
16303    conftest$ac_exeext conftest.$ac_ext
16304fi
16305
16306
16307		CFLAGS="$xorg_testset_save_CFLAGS"
16308
16309		eval supported=\$$cacheid
16310		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16311$as_echo "$supported" >&6; }
16312		if test "$supported" = "yes" ; then
16313			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16314			found="yes"
16315		fi
16316	fi
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332xorg_testset_save_CFLAGS="$CFLAGS"
16333
16334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16339  $as_echo_n "(cached) " >&6
16340else
16341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342/* end confdefs.h.  */
16343int i;
16344_ACEOF
16345if ac_fn_c_try_compile "$LINENO"; then :
16346  xorg_cv_cc_flag_unknown_warning_option=yes
16347else
16348  xorg_cv_cc_flag_unknown_warning_option=no
16349fi
16350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351fi
16352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16355	CFLAGS="$xorg_testset_save_CFLAGS"
16356fi
16357
16358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16361	fi
16362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16366  $as_echo_n "(cached) " >&6
16367else
16368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369/* end confdefs.h.  */
16370int i;
16371_ACEOF
16372if ac_fn_c_try_compile "$LINENO"; then :
16373  xorg_cv_cc_flag_unused_command_line_argument=yes
16374else
16375  xorg_cv_cc_flag_unused_command_line_argument=no
16376fi
16377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378fi
16379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16381	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16382	CFLAGS="$xorg_testset_save_CFLAGS"
16383fi
16384
16385found="no"
16386
16387	if test $found = "no" ; then
16388		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16390		fi
16391
16392		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16394		fi
16395
16396		CFLAGS="$CFLAGS -Wsequence-point"
16397
16398		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16399$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16400		cacheid=xorg_cv_cc_flag__Wsequence_point
16401		if eval \${$cacheid+:} false; then :
16402  $as_echo_n "(cached) " >&6
16403else
16404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405/* end confdefs.h.  */
16406int i;
16407int
16408main ()
16409{
16410
16411  ;
16412  return 0;
16413}
16414_ACEOF
16415if ac_fn_c_try_link "$LINENO"; then :
16416  eval $cacheid=yes
16417else
16418  eval $cacheid=no
16419fi
16420rm -f core conftest.err conftest.$ac_objext \
16421    conftest$ac_exeext conftest.$ac_ext
16422fi
16423
16424
16425		CFLAGS="$xorg_testset_save_CFLAGS"
16426
16427		eval supported=\$$cacheid
16428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16429$as_echo "$supported" >&6; }
16430		if test "$supported" = "yes" ; then
16431			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16432			found="yes"
16433		fi
16434	fi
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450xorg_testset_save_CFLAGS="$CFLAGS"
16451
16452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16457  $as_echo_n "(cached) " >&6
16458else
16459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460/* end confdefs.h.  */
16461int i;
16462_ACEOF
16463if ac_fn_c_try_compile "$LINENO"; then :
16464  xorg_cv_cc_flag_unknown_warning_option=yes
16465else
16466  xorg_cv_cc_flag_unknown_warning_option=no
16467fi
16468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469fi
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16473	CFLAGS="$xorg_testset_save_CFLAGS"
16474fi
16475
16476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16479	fi
16480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16484  $as_echo_n "(cached) " >&6
16485else
16486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487/* end confdefs.h.  */
16488int i;
16489_ACEOF
16490if ac_fn_c_try_compile "$LINENO"; then :
16491  xorg_cv_cc_flag_unused_command_line_argument=yes
16492else
16493  xorg_cv_cc_flag_unused_command_line_argument=no
16494fi
16495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496fi
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16500	CFLAGS="$xorg_testset_save_CFLAGS"
16501fi
16502
16503found="no"
16504
16505	if test $found = "no" ; then
16506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16508		fi
16509
16510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16512		fi
16513
16514		CFLAGS="$CFLAGS -Wreturn-type"
16515
16516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16517$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16518		cacheid=xorg_cv_cc_flag__Wreturn_type
16519		if eval \${$cacheid+:} false; then :
16520  $as_echo_n "(cached) " >&6
16521else
16522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523/* end confdefs.h.  */
16524int i;
16525int
16526main ()
16527{
16528
16529  ;
16530  return 0;
16531}
16532_ACEOF
16533if ac_fn_c_try_link "$LINENO"; then :
16534  eval $cacheid=yes
16535else
16536  eval $cacheid=no
16537fi
16538rm -f core conftest.err conftest.$ac_objext \
16539    conftest$ac_exeext conftest.$ac_ext
16540fi
16541
16542
16543		CFLAGS="$xorg_testset_save_CFLAGS"
16544
16545		eval supported=\$$cacheid
16546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16547$as_echo "$supported" >&6; }
16548		if test "$supported" = "yes" ; then
16549			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16550			found="yes"
16551		fi
16552	fi
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568xorg_testset_save_CFLAGS="$CFLAGS"
16569
16570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16575  $as_echo_n "(cached) " >&6
16576else
16577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578/* end confdefs.h.  */
16579int i;
16580_ACEOF
16581if ac_fn_c_try_compile "$LINENO"; then :
16582  xorg_cv_cc_flag_unknown_warning_option=yes
16583else
16584  xorg_cv_cc_flag_unknown_warning_option=no
16585fi
16586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16587fi
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16591	CFLAGS="$xorg_testset_save_CFLAGS"
16592fi
16593
16594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16597	fi
16598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16602  $as_echo_n "(cached) " >&6
16603else
16604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605/* end confdefs.h.  */
16606int i;
16607_ACEOF
16608if ac_fn_c_try_compile "$LINENO"; then :
16609  xorg_cv_cc_flag_unused_command_line_argument=yes
16610else
16611  xorg_cv_cc_flag_unused_command_line_argument=no
16612fi
16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614fi
16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16618	CFLAGS="$xorg_testset_save_CFLAGS"
16619fi
16620
16621found="no"
16622
16623	if test $found = "no" ; then
16624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16626		fi
16627
16628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16630		fi
16631
16632		CFLAGS="$CFLAGS -Wtrigraphs"
16633
16634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16635$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16636		cacheid=xorg_cv_cc_flag__Wtrigraphs
16637		if eval \${$cacheid+:} false; then :
16638  $as_echo_n "(cached) " >&6
16639else
16640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641/* end confdefs.h.  */
16642int i;
16643int
16644main ()
16645{
16646
16647  ;
16648  return 0;
16649}
16650_ACEOF
16651if ac_fn_c_try_link "$LINENO"; then :
16652  eval $cacheid=yes
16653else
16654  eval $cacheid=no
16655fi
16656rm -f core conftest.err conftest.$ac_objext \
16657    conftest$ac_exeext conftest.$ac_ext
16658fi
16659
16660
16661		CFLAGS="$xorg_testset_save_CFLAGS"
16662
16663		eval supported=\$$cacheid
16664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16665$as_echo "$supported" >&6; }
16666		if test "$supported" = "yes" ; then
16667			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16668			found="yes"
16669		fi
16670	fi
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686xorg_testset_save_CFLAGS="$CFLAGS"
16687
16688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16693  $as_echo_n "(cached) " >&6
16694else
16695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696/* end confdefs.h.  */
16697int i;
16698_ACEOF
16699if ac_fn_c_try_compile "$LINENO"; then :
16700  xorg_cv_cc_flag_unknown_warning_option=yes
16701else
16702  xorg_cv_cc_flag_unknown_warning_option=no
16703fi
16704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705fi
16706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16709	CFLAGS="$xorg_testset_save_CFLAGS"
16710fi
16711
16712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16715	fi
16716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16720  $as_echo_n "(cached) " >&6
16721else
16722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723/* end confdefs.h.  */
16724int i;
16725_ACEOF
16726if ac_fn_c_try_compile "$LINENO"; then :
16727  xorg_cv_cc_flag_unused_command_line_argument=yes
16728else
16729  xorg_cv_cc_flag_unused_command_line_argument=no
16730fi
16731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16732fi
16733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16736	CFLAGS="$xorg_testset_save_CFLAGS"
16737fi
16738
16739found="no"
16740
16741	if test $found = "no" ; then
16742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16744		fi
16745
16746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16748		fi
16749
16750		CFLAGS="$CFLAGS -Warray-bounds"
16751
16752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16753$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16754		cacheid=xorg_cv_cc_flag__Warray_bounds
16755		if eval \${$cacheid+:} false; then :
16756  $as_echo_n "(cached) " >&6
16757else
16758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759/* end confdefs.h.  */
16760int i;
16761int
16762main ()
16763{
16764
16765  ;
16766  return 0;
16767}
16768_ACEOF
16769if ac_fn_c_try_link "$LINENO"; then :
16770  eval $cacheid=yes
16771else
16772  eval $cacheid=no
16773fi
16774rm -f core conftest.err conftest.$ac_objext \
16775    conftest$ac_exeext conftest.$ac_ext
16776fi
16777
16778
16779		CFLAGS="$xorg_testset_save_CFLAGS"
16780
16781		eval supported=\$$cacheid
16782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16783$as_echo "$supported" >&6; }
16784		if test "$supported" = "yes" ; then
16785			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16786			found="yes"
16787		fi
16788	fi
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804xorg_testset_save_CFLAGS="$CFLAGS"
16805
16806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16811  $as_echo_n "(cached) " >&6
16812else
16813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814/* end confdefs.h.  */
16815int i;
16816_ACEOF
16817if ac_fn_c_try_compile "$LINENO"; then :
16818  xorg_cv_cc_flag_unknown_warning_option=yes
16819else
16820  xorg_cv_cc_flag_unknown_warning_option=no
16821fi
16822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823fi
16824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16827	CFLAGS="$xorg_testset_save_CFLAGS"
16828fi
16829
16830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16833	fi
16834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16838  $as_echo_n "(cached) " >&6
16839else
16840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841/* end confdefs.h.  */
16842int i;
16843_ACEOF
16844if ac_fn_c_try_compile "$LINENO"; then :
16845  xorg_cv_cc_flag_unused_command_line_argument=yes
16846else
16847  xorg_cv_cc_flag_unused_command_line_argument=no
16848fi
16849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850fi
16851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16854	CFLAGS="$xorg_testset_save_CFLAGS"
16855fi
16856
16857found="no"
16858
16859	if test $found = "no" ; then
16860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16862		fi
16863
16864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16866		fi
16867
16868		CFLAGS="$CFLAGS -Wwrite-strings"
16869
16870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16871$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16872		cacheid=xorg_cv_cc_flag__Wwrite_strings
16873		if eval \${$cacheid+:} false; then :
16874  $as_echo_n "(cached) " >&6
16875else
16876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877/* end confdefs.h.  */
16878int i;
16879int
16880main ()
16881{
16882
16883  ;
16884  return 0;
16885}
16886_ACEOF
16887if ac_fn_c_try_link "$LINENO"; then :
16888  eval $cacheid=yes
16889else
16890  eval $cacheid=no
16891fi
16892rm -f core conftest.err conftest.$ac_objext \
16893    conftest$ac_exeext conftest.$ac_ext
16894fi
16895
16896
16897		CFLAGS="$xorg_testset_save_CFLAGS"
16898
16899		eval supported=\$$cacheid
16900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16901$as_echo "$supported" >&6; }
16902		if test "$supported" = "yes" ; then
16903			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16904			found="yes"
16905		fi
16906	fi
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922xorg_testset_save_CFLAGS="$CFLAGS"
16923
16924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16929  $as_echo_n "(cached) " >&6
16930else
16931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932/* end confdefs.h.  */
16933int i;
16934_ACEOF
16935if ac_fn_c_try_compile "$LINENO"; then :
16936  xorg_cv_cc_flag_unknown_warning_option=yes
16937else
16938  xorg_cv_cc_flag_unknown_warning_option=no
16939fi
16940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16941fi
16942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16945	CFLAGS="$xorg_testset_save_CFLAGS"
16946fi
16947
16948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951	fi
16952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16956  $as_echo_n "(cached) " >&6
16957else
16958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h.  */
16960int i;
16961_ACEOF
16962if ac_fn_c_try_compile "$LINENO"; then :
16963  xorg_cv_cc_flag_unused_command_line_argument=yes
16964else
16965  xorg_cv_cc_flag_unused_command_line_argument=no
16966fi
16967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968fi
16969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16972	CFLAGS="$xorg_testset_save_CFLAGS"
16973fi
16974
16975found="no"
16976
16977	if test $found = "no" ; then
16978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16980		fi
16981
16982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16984		fi
16985
16986		CFLAGS="$CFLAGS -Waddress"
16987
16988		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16989$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16990		cacheid=xorg_cv_cc_flag__Waddress
16991		if eval \${$cacheid+:} false; then :
16992  $as_echo_n "(cached) " >&6
16993else
16994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996int i;
16997int
16998main ()
16999{
17000
17001  ;
17002  return 0;
17003}
17004_ACEOF
17005if ac_fn_c_try_link "$LINENO"; then :
17006  eval $cacheid=yes
17007else
17008  eval $cacheid=no
17009fi
17010rm -f core conftest.err conftest.$ac_objext \
17011    conftest$ac_exeext conftest.$ac_ext
17012fi
17013
17014
17015		CFLAGS="$xorg_testset_save_CFLAGS"
17016
17017		eval supported=\$$cacheid
17018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17019$as_echo "$supported" >&6; }
17020		if test "$supported" = "yes" ; then
17021			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17022			found="yes"
17023		fi
17024	fi
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040xorg_testset_save_CFLAGS="$CFLAGS"
17041
17042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17047  $as_echo_n "(cached) " >&6
17048else
17049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050/* end confdefs.h.  */
17051int i;
17052_ACEOF
17053if ac_fn_c_try_compile "$LINENO"; then :
17054  xorg_cv_cc_flag_unknown_warning_option=yes
17055else
17056  xorg_cv_cc_flag_unknown_warning_option=no
17057fi
17058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059fi
17060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17062	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17063	CFLAGS="$xorg_testset_save_CFLAGS"
17064fi
17065
17066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17067	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17068		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17069	fi
17070	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17074  $as_echo_n "(cached) " >&6
17075else
17076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077/* end confdefs.h.  */
17078int i;
17079_ACEOF
17080if ac_fn_c_try_compile "$LINENO"; then :
17081  xorg_cv_cc_flag_unused_command_line_argument=yes
17082else
17083  xorg_cv_cc_flag_unused_command_line_argument=no
17084fi
17085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17086fi
17087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17090	CFLAGS="$xorg_testset_save_CFLAGS"
17091fi
17092
17093found="no"
17094
17095	if test $found = "no" ; then
17096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17098		fi
17099
17100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17102		fi
17103
17104		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17105
17106		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17107$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17108		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17109		if eval \${$cacheid+:} false; then :
17110  $as_echo_n "(cached) " >&6
17111else
17112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113/* end confdefs.h.  */
17114int i;
17115int
17116main ()
17117{
17118
17119  ;
17120  return 0;
17121}
17122_ACEOF
17123if ac_fn_c_try_link "$LINENO"; then :
17124  eval $cacheid=yes
17125else
17126  eval $cacheid=no
17127fi
17128rm -f core conftest.err conftest.$ac_objext \
17129    conftest$ac_exeext conftest.$ac_ext
17130fi
17131
17132
17133		CFLAGS="$xorg_testset_save_CFLAGS"
17134
17135		eval supported=\$$cacheid
17136		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17137$as_echo "$supported" >&6; }
17138		if test "$supported" = "yes" ; then
17139			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17140			found="yes"
17141		fi
17142	fi
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158xorg_testset_save_CFLAGS="$CFLAGS"
17159
17160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17165  $as_echo_n "(cached) " >&6
17166else
17167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168/* end confdefs.h.  */
17169int i;
17170_ACEOF
17171if ac_fn_c_try_compile "$LINENO"; then :
17172  xorg_cv_cc_flag_unknown_warning_option=yes
17173else
17174  xorg_cv_cc_flag_unknown_warning_option=no
17175fi
17176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17177fi
17178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17181	CFLAGS="$xorg_testset_save_CFLAGS"
17182fi
17183
17184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17187	fi
17188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17192  $as_echo_n "(cached) " >&6
17193else
17194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195/* end confdefs.h.  */
17196int i;
17197_ACEOF
17198if ac_fn_c_try_compile "$LINENO"; then :
17199  xorg_cv_cc_flag_unused_command_line_argument=yes
17200else
17201  xorg_cv_cc_flag_unused_command_line_argument=no
17202fi
17203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204fi
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17208	CFLAGS="$xorg_testset_save_CFLAGS"
17209fi
17210
17211found="no"
17212
17213	if test $found = "no" ; then
17214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17216		fi
17217
17218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17220		fi
17221
17222		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17223
17224		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17225$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17226		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17227		if eval \${$cacheid+:} false; then :
17228  $as_echo_n "(cached) " >&6
17229else
17230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231/* end confdefs.h.  */
17232int i;
17233int
17234main ()
17235{
17236
17237  ;
17238  return 0;
17239}
17240_ACEOF
17241if ac_fn_c_try_link "$LINENO"; then :
17242  eval $cacheid=yes
17243else
17244  eval $cacheid=no
17245fi
17246rm -f core conftest.err conftest.$ac_objext \
17247    conftest$ac_exeext conftest.$ac_ext
17248fi
17249
17250
17251		CFLAGS="$xorg_testset_save_CFLAGS"
17252
17253		eval supported=\$$cacheid
17254		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17255$as_echo "$supported" >&6; }
17256		if test "$supported" = "yes" ; then
17257			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17258			found="yes"
17259		fi
17260	fi
17261
17262
17263fi
17264
17265
17266
17267
17268
17269
17270
17271		CWARNFLAGS="$BASE_CFLAGS"
17272		if  test "x$GCC" = xyes ; then
17273		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17274		fi
17275
17276
17277
17278
17279
17280
17281
17282
17283# Check whether --enable-strict-compilation was given.
17284if test "${enable_strict_compilation+set}" = set; then :
17285  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17286else
17287  STRICT_COMPILE=no
17288fi
17289
17290
17291
17292
17293
17294
17295STRICT_CFLAGS=""
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309xorg_testset_save_CFLAGS="$CFLAGS"
17310
17311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17316  $as_echo_n "(cached) " >&6
17317else
17318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319/* end confdefs.h.  */
17320int i;
17321_ACEOF
17322if ac_fn_c_try_compile "$LINENO"; then :
17323  xorg_cv_cc_flag_unknown_warning_option=yes
17324else
17325  xorg_cv_cc_flag_unknown_warning_option=no
17326fi
17327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328fi
17329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17332	CFLAGS="$xorg_testset_save_CFLAGS"
17333fi
17334
17335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17338	fi
17339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17343  $as_echo_n "(cached) " >&6
17344else
17345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346/* end confdefs.h.  */
17347int i;
17348_ACEOF
17349if ac_fn_c_try_compile "$LINENO"; then :
17350  xorg_cv_cc_flag_unused_command_line_argument=yes
17351else
17352  xorg_cv_cc_flag_unused_command_line_argument=no
17353fi
17354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355fi
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17359	CFLAGS="$xorg_testset_save_CFLAGS"
17360fi
17361
17362found="no"
17363
17364	if test $found = "no" ; then
17365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17367		fi
17368
17369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17371		fi
17372
17373		CFLAGS="$CFLAGS -pedantic"
17374
17375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17376$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17377		cacheid=xorg_cv_cc_flag__pedantic
17378		if eval \${$cacheid+:} false; then :
17379  $as_echo_n "(cached) " >&6
17380else
17381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382/* end confdefs.h.  */
17383int i;
17384int
17385main ()
17386{
17387
17388  ;
17389  return 0;
17390}
17391_ACEOF
17392if ac_fn_c_try_link "$LINENO"; then :
17393  eval $cacheid=yes
17394else
17395  eval $cacheid=no
17396fi
17397rm -f core conftest.err conftest.$ac_objext \
17398    conftest$ac_exeext conftest.$ac_ext
17399fi
17400
17401
17402		CFLAGS="$xorg_testset_save_CFLAGS"
17403
17404		eval supported=\$$cacheid
17405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17406$as_echo "$supported" >&6; }
17407		if test "$supported" = "yes" ; then
17408			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17409			found="yes"
17410		fi
17411	fi
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427xorg_testset_save_CFLAGS="$CFLAGS"
17428
17429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17434  $as_echo_n "(cached) " >&6
17435else
17436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437/* end confdefs.h.  */
17438int i;
17439_ACEOF
17440if ac_fn_c_try_compile "$LINENO"; then :
17441  xorg_cv_cc_flag_unknown_warning_option=yes
17442else
17443  xorg_cv_cc_flag_unknown_warning_option=no
17444fi
17445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446fi
17447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17449	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17450	CFLAGS="$xorg_testset_save_CFLAGS"
17451fi
17452
17453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17454	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17455		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456	fi
17457	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17461  $as_echo_n "(cached) " >&6
17462else
17463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464/* end confdefs.h.  */
17465int i;
17466_ACEOF
17467if ac_fn_c_try_compile "$LINENO"; then :
17468  xorg_cv_cc_flag_unused_command_line_argument=yes
17469else
17470  xorg_cv_cc_flag_unused_command_line_argument=no
17471fi
17472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473fi
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17477	CFLAGS="$xorg_testset_save_CFLAGS"
17478fi
17479
17480found="no"
17481
17482	if test $found = "no" ; then
17483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485		fi
17486
17487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17489		fi
17490
17491		CFLAGS="$CFLAGS -Werror"
17492
17493		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17494$as_echo_n "checking if $CC supports -Werror... " >&6; }
17495		cacheid=xorg_cv_cc_flag__Werror
17496		if eval \${$cacheid+:} false; then :
17497  $as_echo_n "(cached) " >&6
17498else
17499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h.  */
17501int i;
17502int
17503main ()
17504{
17505
17506  ;
17507  return 0;
17508}
17509_ACEOF
17510if ac_fn_c_try_link "$LINENO"; then :
17511  eval $cacheid=yes
17512else
17513  eval $cacheid=no
17514fi
17515rm -f core conftest.err conftest.$ac_objext \
17516    conftest$ac_exeext conftest.$ac_ext
17517fi
17518
17519
17520		CFLAGS="$xorg_testset_save_CFLAGS"
17521
17522		eval supported=\$$cacheid
17523		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17524$as_echo "$supported" >&6; }
17525		if test "$supported" = "yes" ; then
17526			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17527			found="yes"
17528		fi
17529	fi
17530
17531	if test $found = "no" ; then
17532		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17533			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17534		fi
17535
17536		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17537			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17538		fi
17539
17540		CFLAGS="$CFLAGS -errwarn"
17541
17542		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17543$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17544		cacheid=xorg_cv_cc_flag__errwarn
17545		if eval \${$cacheid+:} false; then :
17546  $as_echo_n "(cached) " >&6
17547else
17548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549/* end confdefs.h.  */
17550int i;
17551int
17552main ()
17553{
17554
17555  ;
17556  return 0;
17557}
17558_ACEOF
17559if ac_fn_c_try_link "$LINENO"; then :
17560  eval $cacheid=yes
17561else
17562  eval $cacheid=no
17563fi
17564rm -f core conftest.err conftest.$ac_objext \
17565    conftest$ac_exeext conftest.$ac_ext
17566fi
17567
17568
17569		CFLAGS="$xorg_testset_save_CFLAGS"
17570
17571		eval supported=\$$cacheid
17572		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17573$as_echo "$supported" >&6; }
17574		if test "$supported" = "yes" ; then
17575			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17576			found="yes"
17577		fi
17578	fi
17579
17580
17581
17582# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17583# activate it with -Werror, so we add it here explicitly.
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597xorg_testset_save_CFLAGS="$CFLAGS"
17598
17599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17604  $as_echo_n "(cached) " >&6
17605else
17606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607/* end confdefs.h.  */
17608int i;
17609_ACEOF
17610if ac_fn_c_try_compile "$LINENO"; then :
17611  xorg_cv_cc_flag_unknown_warning_option=yes
17612else
17613  xorg_cv_cc_flag_unknown_warning_option=no
17614fi
17615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616fi
17617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17619	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17620	CFLAGS="$xorg_testset_save_CFLAGS"
17621fi
17622
17623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17624	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17626	fi
17627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17631  $as_echo_n "(cached) " >&6
17632else
17633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634/* end confdefs.h.  */
17635int i;
17636_ACEOF
17637if ac_fn_c_try_compile "$LINENO"; then :
17638  xorg_cv_cc_flag_unused_command_line_argument=yes
17639else
17640  xorg_cv_cc_flag_unused_command_line_argument=no
17641fi
17642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17643fi
17644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17647	CFLAGS="$xorg_testset_save_CFLAGS"
17648fi
17649
17650found="no"
17651
17652	if test $found = "no" ; then
17653		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17655		fi
17656
17657		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17659		fi
17660
17661		CFLAGS="$CFLAGS -Werror=attributes"
17662
17663		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17664$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17665		cacheid=xorg_cv_cc_flag__Werror_attributes
17666		if eval \${$cacheid+:} false; then :
17667  $as_echo_n "(cached) " >&6
17668else
17669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670/* end confdefs.h.  */
17671int i;
17672int
17673main ()
17674{
17675
17676  ;
17677  return 0;
17678}
17679_ACEOF
17680if ac_fn_c_try_link "$LINENO"; then :
17681  eval $cacheid=yes
17682else
17683  eval $cacheid=no
17684fi
17685rm -f core conftest.err conftest.$ac_objext \
17686    conftest$ac_exeext conftest.$ac_ext
17687fi
17688
17689
17690		CFLAGS="$xorg_testset_save_CFLAGS"
17691
17692		eval supported=\$$cacheid
17693		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17694$as_echo "$supported" >&6; }
17695		if test "$supported" = "yes" ; then
17696			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17697			found="yes"
17698		fi
17699	fi
17700
17701
17702
17703if test "x$STRICT_COMPILE" = "xyes"; then
17704    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17705    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17706fi
17707
17708
17709
17710
17711
17712
17713cat >>confdefs.h <<_ACEOF
17714#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17715_ACEOF
17716
17717	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17718	if test "x$PVM" = "x"; then
17719		PVM="0"
17720	fi
17721
17722cat >>confdefs.h <<_ACEOF
17723#define PACKAGE_VERSION_MINOR $PVM
17724_ACEOF
17725
17726	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17727	if test "x$PVP" = "x"; then
17728		PVP="0"
17729	fi
17730
17731cat >>confdefs.h <<_ACEOF
17732#define PACKAGE_VERSION_PATCHLEVEL $PVP
17733_ACEOF
17734
17735
17736
17737CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17738mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17739|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17740echo 'git directory not found: installing possibly empty changelog.' >&2)"
17741
17742
17743
17744
17745macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17746INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17747mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17748|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17749echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17750
17751
17752
17753
17754
17755
17756if test x$APP_MAN_SUFFIX = x    ; then
17757    APP_MAN_SUFFIX=1
17758fi
17759if test x$APP_MAN_DIR = x    ; then
17760    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17761fi
17762
17763if test x$LIB_MAN_SUFFIX = x    ; then
17764    LIB_MAN_SUFFIX=3
17765fi
17766if test x$LIB_MAN_DIR = x    ; then
17767    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17768fi
17769
17770if test x$FILE_MAN_SUFFIX = x    ; then
17771    case $host_os in
17772	# Solaris 2.0 - 11 use SysV man page sections
17773	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
17774	*)				FILE_MAN_SUFFIX=5  ;;
17775    esac
17776fi
17777if test x$FILE_MAN_DIR = x    ; then
17778    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17779fi
17780
17781if test x$MISC_MAN_SUFFIX = x    ; then
17782    case $host_os in
17783	# Solaris 2.0 - 11 use SysV man page sections
17784	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
17785	*)				MISC_MAN_SUFFIX=7  ;;
17786    esac
17787fi
17788if test x$MISC_MAN_DIR = x    ; then
17789    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17790fi
17791
17792if test x$DRIVER_MAN_SUFFIX = x    ; then
17793    case $host_os in
17794	# Solaris 2.0 - 11 use SysV man page sections
17795	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
17796	*)				DRIVER_MAN_SUFFIX=4  ;;
17797    esac
17798fi
17799if test x$DRIVER_MAN_DIR = x    ; then
17800    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17801fi
17802
17803if test x$ADMIN_MAN_SUFFIX = x    ; then
17804    case $host_os in
17805	# Solaris 2.0 - 11 use SysV man page sections
17806	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
17807	*)				ADMIN_MAN_SUFFIX=8  ;;
17808    esac
17809fi
17810if test x$ADMIN_MAN_DIR = x    ; then
17811    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17812fi
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828XORG_MAN_PAGE="X Version 11"
17829
17830MAN_SUBSTS="\
17831	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17832	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17833	-e 's|__xservername__|Xorg|g' \
17834	-e 's|__xconfigfile__|xorg.conf|g' \
17835	-e 's|__projectroot__|\$(prefix)|g' \
17836	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17837	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17838	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17839	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17840	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17841	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17842	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17843
17844
17845
17846# Check whether --enable-silent-rules was given.
17847if test "${enable_silent_rules+set}" = set; then :
17848  enableval=$enable_silent_rules;
17849fi
17850
17851case $enable_silent_rules in # (((
17852  yes) AM_DEFAULT_VERBOSITY=0;;
17853   no) AM_DEFAULT_VERBOSITY=1;;
17854    *) AM_DEFAULT_VERBOSITY=0;;
17855esac
17856am_make=${MAKE-make}
17857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17858$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17859if ${am_cv_make_support_nested_variables+:} false; then :
17860  $as_echo_n "(cached) " >&6
17861else
17862  if $as_echo 'TRUE=$(BAR$(V))
17863BAR0=false
17864BAR1=true
17865V=1
17866am__doit:
17867	@$(TRUE)
17868.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17869  am_cv_make_support_nested_variables=yes
17870else
17871  am_cv_make_support_nested_variables=no
17872fi
17873fi
17874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17875$as_echo "$am_cv_make_support_nested_variables" >&6; }
17876if test $am_cv_make_support_nested_variables = yes; then
17877    AM_V='$(V)'
17878  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17879else
17880  AM_V=$AM_DEFAULT_VERBOSITY
17881  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17882fi
17883AM_BACKSLASH='\'
17884
17885
17886
17887
17888# Check whether --enable-specs was given.
17889if test "${enable_specs+set}" = set; then :
17890  enableval=$enable_specs; build_specs=$enableval
17891else
17892  build_specs=yes
17893fi
17894
17895
17896 if test x$build_specs = xyes; then
17897  ENABLE_SPECS_TRUE=
17898  ENABLE_SPECS_FALSE='#'
17899else
17900  ENABLE_SPECS_TRUE='#'
17901  ENABLE_SPECS_FALSE=
17902fi
17903
17904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17905$as_echo_n "checking whether to build functional specifications... " >&6; }
17906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17907$as_echo "$build_specs" >&6; }
17908
17909
17910
17911
17912
17913# Check whether --with-xmlto was given.
17914if test "${with_xmlto+set}" = set; then :
17915  withval=$with_xmlto; use_xmlto=$withval
17916else
17917  use_xmlto=auto
17918fi
17919
17920
17921
17922if test "x$use_xmlto" = x"auto"; then
17923   # Extract the first word of "xmlto", so it can be a program name with args.
17924set dummy xmlto; ac_word=$2
17925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17926$as_echo_n "checking for $ac_word... " >&6; }
17927if ${ac_cv_path_XMLTO+:} false; then :
17928  $as_echo_n "(cached) " >&6
17929else
17930  case $XMLTO in
17931  [\\/]* | ?:[\\/]*)
17932  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17933  ;;
17934  *)
17935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17936for as_dir in $PATH
17937do
17938  IFS=$as_save_IFS
17939  test -z "$as_dir" && as_dir=.
17940    for ac_exec_ext in '' $ac_executable_extensions; do
17941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17942    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17944    break 2
17945  fi
17946done
17947  done
17948IFS=$as_save_IFS
17949
17950  ;;
17951esac
17952fi
17953XMLTO=$ac_cv_path_XMLTO
17954if test -n "$XMLTO"; then
17955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17956$as_echo "$XMLTO" >&6; }
17957else
17958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17959$as_echo "no" >&6; }
17960fi
17961
17962
17963   if test "x$XMLTO" = "x"; then
17964        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17965$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17966	have_xmlto=no
17967   else
17968        have_xmlto=yes
17969   fi
17970elif test "x$use_xmlto" = x"yes" ; then
17971   # Extract the first word of "xmlto", so it can be a program name with args.
17972set dummy xmlto; ac_word=$2
17973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17974$as_echo_n "checking for $ac_word... " >&6; }
17975if ${ac_cv_path_XMLTO+:} false; then :
17976  $as_echo_n "(cached) " >&6
17977else
17978  case $XMLTO in
17979  [\\/]* | ?:[\\/]*)
17980  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17981  ;;
17982  *)
17983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17984for as_dir in $PATH
17985do
17986  IFS=$as_save_IFS
17987  test -z "$as_dir" && as_dir=.
17988    for ac_exec_ext in '' $ac_executable_extensions; do
17989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17990    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17992    break 2
17993  fi
17994done
17995  done
17996IFS=$as_save_IFS
17997
17998  ;;
17999esac
18000fi
18001XMLTO=$ac_cv_path_XMLTO
18002if test -n "$XMLTO"; then
18003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18004$as_echo "$XMLTO" >&6; }
18005else
18006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18007$as_echo "no" >&6; }
18008fi
18009
18010
18011   if test "x$XMLTO" = "x"; then
18012        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18013   fi
18014   have_xmlto=yes
18015elif test "x$use_xmlto" = x"no" ; then
18016   if test "x$XMLTO" != "x"; then
18017      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18018$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18019   fi
18020   have_xmlto=no
18021else
18022   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18023fi
18024
18025# Test for a minimum version of xmlto, if provided.
18026if test "$have_xmlto" = yes; then
18027    # scrape the xmlto version
18028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18029$as_echo_n "checking the xmlto version... " >&6; }
18030    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18032$as_echo "$xmlto_version" >&6; }
18033    as_arg_v1=$xmlto_version
18034as_arg_v2=0.0.22
18035awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18036case $? in #(
18037  1) :
18038    if test "x$use_xmlto" = xauto; then
18039            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18040$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18041            have_xmlto=no
18042        else
18043            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18044        fi ;; #(
18045  0) :
18046     ;; #(
18047  2) :
18048     ;; #(
18049  *) :
18050     ;;
18051esac
18052fi
18053
18054# Test for the ability of xmlto to generate a text target
18055#
18056# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18057# following test for empty XML docbook files.
18058# For compatibility reasons use the following empty XML docbook file and if
18059# it fails try it again with a non-empty XML file.
18060have_xmlto_text=no
18061cat > conftest.xml << "EOF"
18062EOF
18063if test "$have_xmlto" = yes; then :
18064  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18065  have_xmlto_text=yes
18066else
18067  # Try it again with a non-empty XML file.
18068              cat > conftest.xml << "EOF"
18069<x></x>
18070EOF
18071              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18072  have_xmlto_text=yes
18073else
18074  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18075$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18076fi
18077fi
18078fi
18079rm -f conftest.xml
18080 if test $have_xmlto_text = yes; then
18081  HAVE_XMLTO_TEXT_TRUE=
18082  HAVE_XMLTO_TEXT_FALSE='#'
18083else
18084  HAVE_XMLTO_TEXT_TRUE='#'
18085  HAVE_XMLTO_TEXT_FALSE=
18086fi
18087
18088 if test "$have_xmlto" = yes; then
18089  HAVE_XMLTO_TRUE=
18090  HAVE_XMLTO_FALSE='#'
18091else
18092  HAVE_XMLTO_TRUE='#'
18093  HAVE_XMLTO_FALSE=
18094fi
18095
18096
18097
18098
18099
18100
18101# Check whether --with-fop was given.
18102if test "${with_fop+set}" = set; then :
18103  withval=$with_fop; use_fop=$withval
18104else
18105  use_fop=auto
18106fi
18107
18108
18109
18110if test "x$use_fop" = x"auto"; then
18111   # Extract the first word of "fop", so it can be a program name with args.
18112set dummy fop; ac_word=$2
18113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18114$as_echo_n "checking for $ac_word... " >&6; }
18115if ${ac_cv_path_FOP+:} false; then :
18116  $as_echo_n "(cached) " >&6
18117else
18118  case $FOP in
18119  [\\/]* | ?:[\\/]*)
18120  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18121  ;;
18122  *)
18123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18124for as_dir in $PATH
18125do
18126  IFS=$as_save_IFS
18127  test -z "$as_dir" && as_dir=.
18128    for ac_exec_ext in '' $ac_executable_extensions; do
18129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18130    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18132    break 2
18133  fi
18134done
18135  done
18136IFS=$as_save_IFS
18137
18138  ;;
18139esac
18140fi
18141FOP=$ac_cv_path_FOP
18142if test -n "$FOP"; then
18143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18144$as_echo "$FOP" >&6; }
18145else
18146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147$as_echo "no" >&6; }
18148fi
18149
18150
18151   if test "x$FOP" = "x"; then
18152        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18153$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18154	have_fop=no
18155   else
18156        have_fop=yes
18157   fi
18158elif test "x$use_fop" = x"yes" ; then
18159   # Extract the first word of "fop", so it can be a program name with args.
18160set dummy fop; ac_word=$2
18161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18162$as_echo_n "checking for $ac_word... " >&6; }
18163if ${ac_cv_path_FOP+:} false; then :
18164  $as_echo_n "(cached) " >&6
18165else
18166  case $FOP in
18167  [\\/]* | ?:[\\/]*)
18168  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18169  ;;
18170  *)
18171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18172for as_dir in $PATH
18173do
18174  IFS=$as_save_IFS
18175  test -z "$as_dir" && as_dir=.
18176    for ac_exec_ext in '' $ac_executable_extensions; do
18177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18178    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18180    break 2
18181  fi
18182done
18183  done
18184IFS=$as_save_IFS
18185
18186  ;;
18187esac
18188fi
18189FOP=$ac_cv_path_FOP
18190if test -n "$FOP"; then
18191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18192$as_echo "$FOP" >&6; }
18193else
18194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18195$as_echo "no" >&6; }
18196fi
18197
18198
18199   if test "x$FOP" = "x"; then
18200        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18201   fi
18202   have_fop=yes
18203elif test "x$use_fop" = x"no" ; then
18204   if test "x$FOP" != "x"; then
18205      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18206$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18207   fi
18208   have_fop=no
18209else
18210   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18211fi
18212
18213# Test for a minimum version of fop, if provided.
18214
18215 if test "$have_fop" = yes; then
18216  HAVE_FOP_TRUE=
18217  HAVE_FOP_FALSE='#'
18218else
18219  HAVE_FOP_TRUE='#'
18220  HAVE_FOP_FALSE=
18221fi
18222
18223
18224
18225
18226# Preserves the interface, should it be implemented later
18227
18228
18229
18230# Check whether --with-xsltproc was given.
18231if test "${with_xsltproc+set}" = set; then :
18232  withval=$with_xsltproc; use_xsltproc=$withval
18233else
18234  use_xsltproc=auto
18235fi
18236
18237
18238
18239if test "x$use_xsltproc" = x"auto"; then
18240   # Extract the first word of "xsltproc", so it can be a program name with args.
18241set dummy xsltproc; ac_word=$2
18242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18243$as_echo_n "checking for $ac_word... " >&6; }
18244if ${ac_cv_path_XSLTPROC+:} false; then :
18245  $as_echo_n "(cached) " >&6
18246else
18247  case $XSLTPROC in
18248  [\\/]* | ?:[\\/]*)
18249  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18250  ;;
18251  *)
18252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18253for as_dir in $PATH
18254do
18255  IFS=$as_save_IFS
18256  test -z "$as_dir" && as_dir=.
18257    for ac_exec_ext in '' $ac_executable_extensions; do
18258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18259    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18261    break 2
18262  fi
18263done
18264  done
18265IFS=$as_save_IFS
18266
18267  ;;
18268esac
18269fi
18270XSLTPROC=$ac_cv_path_XSLTPROC
18271if test -n "$XSLTPROC"; then
18272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18273$as_echo "$XSLTPROC" >&6; }
18274else
18275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18276$as_echo "no" >&6; }
18277fi
18278
18279
18280   if test "x$XSLTPROC" = "x"; then
18281        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18282$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18283	have_xsltproc=no
18284   else
18285        have_xsltproc=yes
18286   fi
18287elif test "x$use_xsltproc" = x"yes" ; then
18288   # Extract the first word of "xsltproc", so it can be a program name with args.
18289set dummy xsltproc; ac_word=$2
18290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18291$as_echo_n "checking for $ac_word... " >&6; }
18292if ${ac_cv_path_XSLTPROC+:} false; then :
18293  $as_echo_n "(cached) " >&6
18294else
18295  case $XSLTPROC in
18296  [\\/]* | ?:[\\/]*)
18297  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18298  ;;
18299  *)
18300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18301for as_dir in $PATH
18302do
18303  IFS=$as_save_IFS
18304  test -z "$as_dir" && as_dir=.
18305    for ac_exec_ext in '' $ac_executable_extensions; do
18306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18307    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18309    break 2
18310  fi
18311done
18312  done
18313IFS=$as_save_IFS
18314
18315  ;;
18316esac
18317fi
18318XSLTPROC=$ac_cv_path_XSLTPROC
18319if test -n "$XSLTPROC"; then
18320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18321$as_echo "$XSLTPROC" >&6; }
18322else
18323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18324$as_echo "no" >&6; }
18325fi
18326
18327
18328   if test "x$XSLTPROC" = "x"; then
18329        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18330   fi
18331   have_xsltproc=yes
18332elif test "x$use_xsltproc" = x"no" ; then
18333   if test "x$XSLTPROC" != "x"; then
18334      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18335$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18336   fi
18337   have_xsltproc=no
18338else
18339   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18340fi
18341
18342 if test "$have_xsltproc" = yes; then
18343  HAVE_XSLTPROC_TRUE=
18344  HAVE_XSLTPROC_FALSE='#'
18345else
18346  HAVE_XSLTPROC_TRUE='#'
18347  HAVE_XSLTPROC_FALSE=
18348fi
18349
18350
18351
18352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18353$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18354XORG_SGML_PATH=
18355if test -n "$PKG_CONFIG" && \
18356    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18357  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18358  ac_status=$?
18359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18360  test $ac_status = 0; }; then
18361  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18362else
18363  :
18364
18365fi
18366
18367# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18368# the path and the name of the doc stylesheet
18369if test "x$XORG_SGML_PATH" != "x" ; then
18370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18371$as_echo "$XORG_SGML_PATH" >&6; }
18372   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18373   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18374else
18375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18376$as_echo "no" >&6; }
18377fi
18378
18379
18380
18381
18382 if test "x$XSL_STYLESHEET" != "x"; then
18383  HAVE_STYLESHEETS_TRUE=
18384  HAVE_STYLESHEETS_FALSE='#'
18385else
18386  HAVE_STYLESHEETS_TRUE='#'
18387  HAVE_STYLESHEETS_FALSE=
18388fi
18389
18390
18391
18392# Obtain compiler/linker options for depedencies
18393
18394pkg_failed=no
18395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5
18396$as_echo_n "checking for XTST... " >&6; }
18397
18398if test -n "$XTST_CFLAGS"; then
18399    pkg_cv_XTST_CFLAGS="$XTST_CFLAGS"
18400 elif test -n "$PKG_CONFIG"; then
18401    if test -n "$PKG_CONFIG" && \
18402    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5
18403  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5
18404  ac_status=$?
18405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18406  test $ac_status = 0; }; then
18407  pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null`
18408		      test "x$?" != "x0" && pkg_failed=yes
18409else
18410  pkg_failed=yes
18411fi
18412 else
18413    pkg_failed=untried
18414fi
18415if test -n "$XTST_LIBS"; then
18416    pkg_cv_XTST_LIBS="$XTST_LIBS"
18417 elif test -n "$PKG_CONFIG"; then
18418    if test -n "$PKG_CONFIG" && \
18419    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5
18420  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5
18421  ac_status=$?
18422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18423  test $ac_status = 0; }; then
18424  pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null`
18425		      test "x$?" != "x0" && pkg_failed=yes
18426else
18427  pkg_failed=yes
18428fi
18429 else
18430    pkg_failed=untried
18431fi
18432
18433
18434
18435if test $pkg_failed = yes; then
18436   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18437$as_echo "no" >&6; }
18438
18439if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18440        _pkg_short_errors_supported=yes
18441else
18442        _pkg_short_errors_supported=no
18443fi
18444        if test $_pkg_short_errors_supported = yes; then
18445	        XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1`
18446        else
18447	        XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1`
18448        fi
18449	# Put the nasty error message in config.log where it belongs
18450	echo "$XTST_PKG_ERRORS" >&5
18451
18452	as_fn_error $? "Package requirements (x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) were not met:
18453
18454$XTST_PKG_ERRORS
18455
18456Consider adjusting the PKG_CONFIG_PATH environment variable if you
18457installed software in a non-standard prefix.
18458
18459Alternatively, you may set the environment variables XTST_CFLAGS
18460and XTST_LIBS to avoid the need to call pkg-config.
18461See the pkg-config man page for more details." "$LINENO" 5
18462elif test $pkg_failed = untried; then
18463     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464$as_echo "no" >&6; }
18465	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18467as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18468is in your PATH or set the PKG_CONFIG environment variable to the full
18469path to pkg-config.
18470
18471Alternatively, you may set the environment variables XTST_CFLAGS
18472and XTST_LIBS to avoid the need to call pkg-config.
18473See the pkg-config man page for more details.
18474
18475To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18476See \`config.log' for more details" "$LINENO" 5; }
18477else
18478	XTST_CFLAGS=$pkg_cv_XTST_CFLAGS
18479	XTST_LIBS=$pkg_cv_XTST_LIBS
18480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18481$as_echo "yes" >&6; }
18482
18483fi
18484
18485# Determine if the source for man pages is available
18486# It may already be present (tarball) or can be generated using xmlto
18487 if test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes; then
18488  INSTALL_MANPAGES_TRUE=
18489  INSTALL_MANPAGES_FALSE='#'
18490else
18491  INSTALL_MANPAGES_TRUE='#'
18492  INSTALL_MANPAGES_FALSE=
18493fi
18494
18495
18496# Allow checking code with lint, sparse, etc.
18497
18498
18499
18500
18501
18502# Check whether --with-lint was given.
18503if test "${with_lint+set}" = set; then :
18504  withval=$with_lint; use_lint=$withval
18505else
18506  use_lint=no
18507fi
18508
18509
18510# Obtain platform specific info like program name and options
18511# The lint program on FreeBSD and NetBSD is different from the one on Solaris
18512case $host_os in
18513  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18514	lint_name=splint
18515	lint_options="-badflag"
18516	;;
18517  *freebsd* | *netbsd*)
18518	lint_name=lint
18519	lint_options="-u -b"
18520	;;
18521  *solaris*)
18522	lint_name=lint
18523	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18524	;;
18525esac
18526
18527# Test for the presence of the program (either guessed by the code or spelled out by the user)
18528if test "x$use_lint" = x"yes" ; then
18529   # Extract the first word of "$lint_name", so it can be a program name with args.
18530set dummy $lint_name; ac_word=$2
18531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18532$as_echo_n "checking for $ac_word... " >&6; }
18533if ${ac_cv_path_LINT+:} false; then :
18534  $as_echo_n "(cached) " >&6
18535else
18536  case $LINT in
18537  [\\/]* | ?:[\\/]*)
18538  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18539  ;;
18540  *)
18541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18542for as_dir in $PATH
18543do
18544  IFS=$as_save_IFS
18545  test -z "$as_dir" && as_dir=.
18546    for ac_exec_ext in '' $ac_executable_extensions; do
18547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18548    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18550    break 2
18551  fi
18552done
18553  done
18554IFS=$as_save_IFS
18555
18556  ;;
18557esac
18558fi
18559LINT=$ac_cv_path_LINT
18560if test -n "$LINT"; then
18561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18562$as_echo "$LINT" >&6; }
18563else
18564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565$as_echo "no" >&6; }
18566fi
18567
18568
18569   if test "x$LINT" = "x"; then
18570        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18571   fi
18572elif test "x$use_lint" = x"no" ; then
18573   if test "x$LINT" != "x"; then
18574      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18575$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18576   fi
18577else
18578   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18579fi
18580
18581# User supplied flags override default flags
18582if test "x$LINT_FLAGS" != "x"; then
18583   lint_options=$LINT_FLAGS
18584fi
18585
18586LINT_FLAGS=$lint_options
18587
18588 if test "x$LINT" != x; then
18589  LINT_TRUE=
18590  LINT_FALSE='#'
18591else
18592  LINT_TRUE='#'
18593  LINT_FALSE=
18594fi
18595
18596
18597
18598
18599
18600# Check whether --enable-lint-library was given.
18601if test "${enable_lint_library+set}" = set; then :
18602  enableval=$enable_lint_library; make_lint_lib=$enableval
18603else
18604  make_lint_lib=no
18605fi
18606
18607
18608if test "x$make_lint_lib" = x"yes" ; then
18609   LINTLIB=llib-lXtst.ln
18610   if test "x$LINT" = "x"; then
18611        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
18612   fi
18613elif test "x$make_lint_lib" != x"no" ; then
18614   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
18615fi
18616
18617
18618 if test x$make_lint_lib != xno; then
18619  MAKE_LINT_LIB_TRUE=
18620  MAKE_LINT_LIB_FALSE='#'
18621else
18622  MAKE_LINT_LIB_TRUE='#'
18623  MAKE_LINT_LIB_FALSE=
18624fi
18625
18626
18627
18628LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}"
18629
18630ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xtst.pc"
18631
18632cat >confcache <<\_ACEOF
18633# This file is a shell script that caches the results of configure
18634# tests run on this system so they can be shared between configure
18635# scripts and configure runs, see configure's option --config-cache.
18636# It is not useful on other systems.  If it contains results you don't
18637# want to keep, you may remove or edit it.
18638#
18639# config.status only pays attention to the cache file if you give it
18640# the --recheck option to rerun configure.
18641#
18642# `ac_cv_env_foo' variables (set or unset) will be overridden when
18643# loading this file, other *unset* `ac_cv_foo' will be assigned the
18644# following values.
18645
18646_ACEOF
18647
18648# The following way of writing the cache mishandles newlines in values,
18649# but we know of no workaround that is simple, portable, and efficient.
18650# So, we kill variables containing newlines.
18651# Ultrix sh set writes to stderr and can't be redirected directly,
18652# and sets the high bit in the cache file unless we assign to the vars.
18653(
18654  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18655    eval ac_val=\$$ac_var
18656    case $ac_val in #(
18657    *${as_nl}*)
18658      case $ac_var in #(
18659      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18660$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18661      esac
18662      case $ac_var in #(
18663      _ | IFS | as_nl) ;; #(
18664      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18665      *) { eval $ac_var=; unset $ac_var;} ;;
18666      esac ;;
18667    esac
18668  done
18669
18670  (set) 2>&1 |
18671    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18672    *${as_nl}ac_space=\ *)
18673      # `set' does not quote correctly, so add quotes: double-quote
18674      # substitution turns \\\\ into \\, and sed turns \\ into \.
18675      sed -n \
18676	"s/'/'\\\\''/g;
18677	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18678      ;; #(
18679    *)
18680      # `set' quotes correctly as required by POSIX, so do not add quotes.
18681      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18682      ;;
18683    esac |
18684    sort
18685) |
18686  sed '
18687     /^ac_cv_env_/b end
18688     t clear
18689     :clear
18690     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18691     t end
18692     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18693     :end' >>confcache
18694if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18695  if test -w "$cache_file"; then
18696    if test "x$cache_file" != "x/dev/null"; then
18697      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18698$as_echo "$as_me: updating cache $cache_file" >&6;}
18699      if test ! -f "$cache_file" || test -h "$cache_file"; then
18700	cat confcache >"$cache_file"
18701      else
18702        case $cache_file in #(
18703        */* | ?:*)
18704	  mv -f confcache "$cache_file"$$ &&
18705	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18706        *)
18707	  mv -f confcache "$cache_file" ;;
18708	esac
18709      fi
18710    fi
18711  else
18712    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18713$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18714  fi
18715fi
18716rm -f confcache
18717
18718test "x$prefix" = xNONE && prefix=$ac_default_prefix
18719# Let make expand exec_prefix.
18720test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18721
18722DEFS=-DHAVE_CONFIG_H
18723
18724ac_libobjs=
18725ac_ltlibobjs=
18726U=
18727for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18728  # 1. Remove the extension, and $U if already installed.
18729  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18730  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18731  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18732  #    will be set to the directory where LIBOBJS objects are built.
18733  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18734  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18735done
18736LIBOBJS=$ac_libobjs
18737
18738LTLIBOBJS=$ac_ltlibobjs
18739
18740
18741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18742$as_echo_n "checking that generated files are newer than configure... " >&6; }
18743   if test -n "$am_sleep_pid"; then
18744     # Hide warnings about reused PIDs.
18745     wait $am_sleep_pid 2>/dev/null
18746   fi
18747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18748$as_echo "done" >&6; }
18749 if test -n "$EXEEXT"; then
18750  am__EXEEXT_TRUE=
18751  am__EXEEXT_FALSE='#'
18752else
18753  am__EXEEXT_TRUE='#'
18754  am__EXEEXT_FALSE=
18755fi
18756
18757if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18758  as_fn_error $? "conditional \"AMDEP\" was never defined.
18759Usually this means the macro was only invoked conditionally." "$LINENO" 5
18760fi
18761if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18762  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18763Usually this means the macro was only invoked conditionally." "$LINENO" 5
18764fi
18765if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
18766  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
18767Usually this means the macro was only invoked conditionally." "$LINENO" 5
18768fi
18769if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18770  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18771Usually this means the macro was only invoked conditionally." "$LINENO" 5
18772fi
18773if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18774  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18775Usually this means the macro was only invoked conditionally." "$LINENO" 5
18776fi
18777if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18778  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18779Usually this means the macro was only invoked conditionally." "$LINENO" 5
18780fi
18781if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18782  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18783Usually this means the macro was only invoked conditionally." "$LINENO" 5
18784fi
18785if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18786  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18787Usually this means the macro was only invoked conditionally." "$LINENO" 5
18788fi
18789if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
18790  as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
18791Usually this means the macro was only invoked conditionally." "$LINENO" 5
18792fi
18793if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18794  as_fn_error $? "conditional \"LINT\" was never defined.
18795Usually this means the macro was only invoked conditionally." "$LINENO" 5
18796fi
18797if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18798  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18799Usually this means the macro was only invoked conditionally." "$LINENO" 5
18800fi
18801
18802: "${CONFIG_STATUS=./config.status}"
18803ac_write_fail=0
18804ac_clean_files_save=$ac_clean_files
18805ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18806{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18807$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18808as_write_fail=0
18809cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18810#! $SHELL
18811# Generated by $as_me.
18812# Run this file to recreate the current configuration.
18813# Compiler output produced by configure, useful for debugging
18814# configure, is in config.log if it exists.
18815
18816debug=false
18817ac_cs_recheck=false
18818ac_cs_silent=false
18819
18820SHELL=\${CONFIG_SHELL-$SHELL}
18821export SHELL
18822_ASEOF
18823cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18824## -------------------- ##
18825## M4sh Initialization. ##
18826## -------------------- ##
18827
18828# Be more Bourne compatible
18829DUALCASE=1; export DUALCASE # for MKS sh
18830if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18831  emulate sh
18832  NULLCMD=:
18833  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18834  # is contrary to our usage.  Disable this feature.
18835  alias -g '${1+"$@"}'='"$@"'
18836  setopt NO_GLOB_SUBST
18837else
18838  case `(set -o) 2>/dev/null` in #(
18839  *posix*) :
18840    set -o posix ;; #(
18841  *) :
18842     ;;
18843esac
18844fi
18845
18846
18847as_nl='
18848'
18849export as_nl
18850# Printing a long string crashes Solaris 7 /usr/bin/printf.
18851as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18852as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18853as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18854# Prefer a ksh shell builtin over an external printf program on Solaris,
18855# but without wasting forks for bash or zsh.
18856if test -z "$BASH_VERSION$ZSH_VERSION" \
18857    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18858  as_echo='print -r --'
18859  as_echo_n='print -rn --'
18860elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18861  as_echo='printf %s\n'
18862  as_echo_n='printf %s'
18863else
18864  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18865    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18866    as_echo_n='/usr/ucb/echo -n'
18867  else
18868    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18869    as_echo_n_body='eval
18870      arg=$1;
18871      case $arg in #(
18872      *"$as_nl"*)
18873	expr "X$arg" : "X\\(.*\\)$as_nl";
18874	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18875      esac;
18876      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18877    '
18878    export as_echo_n_body
18879    as_echo_n='sh -c $as_echo_n_body as_echo'
18880  fi
18881  export as_echo_body
18882  as_echo='sh -c $as_echo_body as_echo'
18883fi
18884
18885# The user is always right.
18886if test "${PATH_SEPARATOR+set}" != set; then
18887  PATH_SEPARATOR=:
18888  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18889    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18890      PATH_SEPARATOR=';'
18891  }
18892fi
18893
18894
18895# IFS
18896# We need space, tab and new line, in precisely that order.  Quoting is
18897# there to prevent editors from complaining about space-tab.
18898# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18899# splitting by setting IFS to empty value.)
18900IFS=" ""	$as_nl"
18901
18902# Find who we are.  Look in the path if we contain no directory separator.
18903as_myself=
18904case $0 in #((
18905  *[\\/]* ) as_myself=$0 ;;
18906  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18907for as_dir in $PATH
18908do
18909  IFS=$as_save_IFS
18910  test -z "$as_dir" && as_dir=.
18911    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18912  done
18913IFS=$as_save_IFS
18914
18915     ;;
18916esac
18917# We did not find ourselves, most probably we were run as `sh COMMAND'
18918# in which case we are not to be found in the path.
18919if test "x$as_myself" = x; then
18920  as_myself=$0
18921fi
18922if test ! -f "$as_myself"; then
18923  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18924  exit 1
18925fi
18926
18927# Unset variables that we do not need and which cause bugs (e.g. in
18928# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18929# suppresses any "Segmentation fault" message there.  '((' could
18930# trigger a bug in pdksh 5.2.14.
18931for as_var in BASH_ENV ENV MAIL MAILPATH
18932do eval test x\${$as_var+set} = xset \
18933  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18934done
18935PS1='$ '
18936PS2='> '
18937PS4='+ '
18938
18939# NLS nuisances.
18940LC_ALL=C
18941export LC_ALL
18942LANGUAGE=C
18943export LANGUAGE
18944
18945# CDPATH.
18946(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18947
18948
18949# as_fn_error STATUS ERROR [LINENO LOG_FD]
18950# ----------------------------------------
18951# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18952# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18953# script with STATUS, using 1 if that was 0.
18954as_fn_error ()
18955{
18956  as_status=$1; test $as_status -eq 0 && as_status=1
18957  if test "$4"; then
18958    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18959    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18960  fi
18961  $as_echo "$as_me: error: $2" >&2
18962  as_fn_exit $as_status
18963} # as_fn_error
18964
18965
18966# as_fn_set_status STATUS
18967# -----------------------
18968# Set $? to STATUS, without forking.
18969as_fn_set_status ()
18970{
18971  return $1
18972} # as_fn_set_status
18973
18974# as_fn_exit STATUS
18975# -----------------
18976# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18977as_fn_exit ()
18978{
18979  set +e
18980  as_fn_set_status $1
18981  exit $1
18982} # as_fn_exit
18983
18984# as_fn_unset VAR
18985# ---------------
18986# Portably unset VAR.
18987as_fn_unset ()
18988{
18989  { eval $1=; unset $1;}
18990}
18991as_unset=as_fn_unset
18992# as_fn_append VAR VALUE
18993# ----------------------
18994# Append the text in VALUE to the end of the definition contained in VAR. Take
18995# advantage of any shell optimizations that allow amortized linear growth over
18996# repeated appends, instead of the typical quadratic growth present in naive
18997# implementations.
18998if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18999  eval 'as_fn_append ()
19000  {
19001    eval $1+=\$2
19002  }'
19003else
19004  as_fn_append ()
19005  {
19006    eval $1=\$$1\$2
19007  }
19008fi # as_fn_append
19009
19010# as_fn_arith ARG...
19011# ------------------
19012# Perform arithmetic evaluation on the ARGs, and store the result in the
19013# global $as_val. Take advantage of shells that can avoid forks. The arguments
19014# must be portable across $(()) and expr.
19015if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19016  eval 'as_fn_arith ()
19017  {
19018    as_val=$(( $* ))
19019  }'
19020else
19021  as_fn_arith ()
19022  {
19023    as_val=`expr "$@" || test $? -eq 1`
19024  }
19025fi # as_fn_arith
19026
19027
19028if expr a : '\(a\)' >/dev/null 2>&1 &&
19029   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19030  as_expr=expr
19031else
19032  as_expr=false
19033fi
19034
19035if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19036  as_basename=basename
19037else
19038  as_basename=false
19039fi
19040
19041if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19042  as_dirname=dirname
19043else
19044  as_dirname=false
19045fi
19046
19047as_me=`$as_basename -- "$0" ||
19048$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19049	 X"$0" : 'X\(//\)$' \| \
19050	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19051$as_echo X/"$0" |
19052    sed '/^.*\/\([^/][^/]*\)\/*$/{
19053	    s//\1/
19054	    q
19055	  }
19056	  /^X\/\(\/\/\)$/{
19057	    s//\1/
19058	    q
19059	  }
19060	  /^X\/\(\/\).*/{
19061	    s//\1/
19062	    q
19063	  }
19064	  s/.*/./; q'`
19065
19066# Avoid depending upon Character Ranges.
19067as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19068as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19069as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19070as_cr_digits='0123456789'
19071as_cr_alnum=$as_cr_Letters$as_cr_digits
19072
19073ECHO_C= ECHO_N= ECHO_T=
19074case `echo -n x` in #(((((
19075-n*)
19076  case `echo 'xy\c'` in
19077  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19078  xy)  ECHO_C='\c';;
19079  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19080       ECHO_T='	';;
19081  esac;;
19082*)
19083  ECHO_N='-n';;
19084esac
19085
19086rm -f conf$$ conf$$.exe conf$$.file
19087if test -d conf$$.dir; then
19088  rm -f conf$$.dir/conf$$.file
19089else
19090  rm -f conf$$.dir
19091  mkdir conf$$.dir 2>/dev/null
19092fi
19093if (echo >conf$$.file) 2>/dev/null; then
19094  if ln -s conf$$.file conf$$ 2>/dev/null; then
19095    as_ln_s='ln -s'
19096    # ... but there are two gotchas:
19097    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19098    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19099    # In both cases, we have to default to `cp -pR'.
19100    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19101      as_ln_s='cp -pR'
19102  elif ln conf$$.file conf$$ 2>/dev/null; then
19103    as_ln_s=ln
19104  else
19105    as_ln_s='cp -pR'
19106  fi
19107else
19108  as_ln_s='cp -pR'
19109fi
19110rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19111rmdir conf$$.dir 2>/dev/null
19112
19113
19114# as_fn_mkdir_p
19115# -------------
19116# Create "$as_dir" as a directory, including parents if necessary.
19117as_fn_mkdir_p ()
19118{
19119
19120  case $as_dir in #(
19121  -*) as_dir=./$as_dir;;
19122  esac
19123  test -d "$as_dir" || eval $as_mkdir_p || {
19124    as_dirs=
19125    while :; do
19126      case $as_dir in #(
19127      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19128      *) as_qdir=$as_dir;;
19129      esac
19130      as_dirs="'$as_qdir' $as_dirs"
19131      as_dir=`$as_dirname -- "$as_dir" ||
19132$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19133	 X"$as_dir" : 'X\(//\)[^/]' \| \
19134	 X"$as_dir" : 'X\(//\)$' \| \
19135	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19136$as_echo X"$as_dir" |
19137    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19138	    s//\1/
19139	    q
19140	  }
19141	  /^X\(\/\/\)[^/].*/{
19142	    s//\1/
19143	    q
19144	  }
19145	  /^X\(\/\/\)$/{
19146	    s//\1/
19147	    q
19148	  }
19149	  /^X\(\/\).*/{
19150	    s//\1/
19151	    q
19152	  }
19153	  s/.*/./; q'`
19154      test -d "$as_dir" && break
19155    done
19156    test -z "$as_dirs" || eval "mkdir $as_dirs"
19157  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19158
19159
19160} # as_fn_mkdir_p
19161if mkdir -p . 2>/dev/null; then
19162  as_mkdir_p='mkdir -p "$as_dir"'
19163else
19164  test -d ./-p && rmdir ./-p
19165  as_mkdir_p=false
19166fi
19167
19168
19169# as_fn_executable_p FILE
19170# -----------------------
19171# Test if FILE is an executable regular file.
19172as_fn_executable_p ()
19173{
19174  test -f "$1" && test -x "$1"
19175} # as_fn_executable_p
19176as_test_x='test -x'
19177as_executable_p=as_fn_executable_p
19178
19179# Sed expression to map a string onto a valid CPP name.
19180as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19181
19182# Sed expression to map a string onto a valid variable name.
19183as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19184
19185
19186exec 6>&1
19187## ----------------------------------- ##
19188## Main body of $CONFIG_STATUS script. ##
19189## ----------------------------------- ##
19190_ASEOF
19191test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19192
19193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19194# Save the log message, to keep $0 and so on meaningful, and to
19195# report actual input values of CONFIG_FILES etc. instead of their
19196# values after options handling.
19197ac_log="
19198This file was extended by libXtst $as_me 1.2.3, which was
19199generated by GNU Autoconf 2.69.  Invocation command line was
19200
19201  CONFIG_FILES    = $CONFIG_FILES
19202  CONFIG_HEADERS  = $CONFIG_HEADERS
19203  CONFIG_LINKS    = $CONFIG_LINKS
19204  CONFIG_COMMANDS = $CONFIG_COMMANDS
19205  $ $0 $@
19206
19207on `(hostname || uname -n) 2>/dev/null | sed 1q`
19208"
19209
19210_ACEOF
19211
19212case $ac_config_files in *"
19213"*) set x $ac_config_files; shift; ac_config_files=$*;;
19214esac
19215
19216case $ac_config_headers in *"
19217"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19218esac
19219
19220
19221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19222# Files that config.status was made for.
19223config_files="$ac_config_files"
19224config_headers="$ac_config_headers"
19225config_commands="$ac_config_commands"
19226
19227_ACEOF
19228
19229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19230ac_cs_usage="\
19231\`$as_me' instantiates files and other configuration actions
19232from templates according to the current configuration.  Unless the files
19233and actions are specified as TAGs, all are instantiated by default.
19234
19235Usage: $0 [OPTION]... [TAG]...
19236
19237  -h, --help       print this help, then exit
19238  -V, --version    print version number and configuration settings, then exit
19239      --config     print configuration, then exit
19240  -q, --quiet, --silent
19241                   do not print progress messages
19242  -d, --debug      don't remove temporary files
19243      --recheck    update $as_me by reconfiguring in the same conditions
19244      --file=FILE[:TEMPLATE]
19245                   instantiate the configuration file FILE
19246      --header=FILE[:TEMPLATE]
19247                   instantiate the configuration header FILE
19248
19249Configuration files:
19250$config_files
19251
19252Configuration headers:
19253$config_headers
19254
19255Configuration commands:
19256$config_commands
19257
19258Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19259
19260_ACEOF
19261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19262ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19263ac_cs_version="\\
19264libXtst config.status 1.2.3
19265configured by $0, generated by GNU Autoconf 2.69,
19266  with options \\"\$ac_cs_config\\"
19267
19268Copyright (C) 2012 Free Software Foundation, Inc.
19269This config.status script is free software; the Free Software Foundation
19270gives unlimited permission to copy, distribute and modify it."
19271
19272ac_pwd='$ac_pwd'
19273srcdir='$srcdir'
19274INSTALL='$INSTALL'
19275MKDIR_P='$MKDIR_P'
19276AWK='$AWK'
19277test -n "\$AWK" || AWK=awk
19278_ACEOF
19279
19280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19281# The default lists apply if the user does not specify any file.
19282ac_need_defaults=:
19283while test $# != 0
19284do
19285  case $1 in
19286  --*=?*)
19287    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19288    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19289    ac_shift=:
19290    ;;
19291  --*=)
19292    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19293    ac_optarg=
19294    ac_shift=:
19295    ;;
19296  *)
19297    ac_option=$1
19298    ac_optarg=$2
19299    ac_shift=shift
19300    ;;
19301  esac
19302
19303  case $ac_option in
19304  # Handling of the options.
19305  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19306    ac_cs_recheck=: ;;
19307  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19308    $as_echo "$ac_cs_version"; exit ;;
19309  --config | --confi | --conf | --con | --co | --c )
19310    $as_echo "$ac_cs_config"; exit ;;
19311  --debug | --debu | --deb | --de | --d | -d )
19312    debug=: ;;
19313  --file | --fil | --fi | --f )
19314    $ac_shift
19315    case $ac_optarg in
19316    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19317    '') as_fn_error $? "missing file argument" ;;
19318    esac
19319    as_fn_append CONFIG_FILES " '$ac_optarg'"
19320    ac_need_defaults=false;;
19321  --header | --heade | --head | --hea )
19322    $ac_shift
19323    case $ac_optarg in
19324    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19325    esac
19326    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19327    ac_need_defaults=false;;
19328  --he | --h)
19329    # Conflict between --help and --header
19330    as_fn_error $? "ambiguous option: \`$1'
19331Try \`$0 --help' for more information.";;
19332  --help | --hel | -h )
19333    $as_echo "$ac_cs_usage"; exit ;;
19334  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19335  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19336    ac_cs_silent=: ;;
19337
19338  # This is an error.
19339  -*) as_fn_error $? "unrecognized option: \`$1'
19340Try \`$0 --help' for more information." ;;
19341
19342  *) as_fn_append ac_config_targets " $1"
19343     ac_need_defaults=false ;;
19344
19345  esac
19346  shift
19347done
19348
19349ac_configure_extra_args=
19350
19351if $ac_cs_silent; then
19352  exec 6>/dev/null
19353  ac_configure_extra_args="$ac_configure_extra_args --silent"
19354fi
19355
19356_ACEOF
19357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19358if \$ac_cs_recheck; then
19359  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19360  shift
19361  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19362  CONFIG_SHELL='$SHELL'
19363  export CONFIG_SHELL
19364  exec "\$@"
19365fi
19366
19367_ACEOF
19368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19369exec 5>>config.log
19370{
19371  echo
19372  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19373## Running $as_me. ##
19374_ASBOX
19375  $as_echo "$ac_log"
19376} >&5
19377
19378_ACEOF
19379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19380#
19381# INIT-COMMANDS
19382#
19383AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19384
19385
19386# The HP-UX ksh and POSIX shell print the target directory to stdout
19387# if CDPATH is set.
19388(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19389
19390sed_quote_subst='$sed_quote_subst'
19391double_quote_subst='$double_quote_subst'
19392delay_variable_subst='$delay_variable_subst'
19393macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19394macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19395enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19396enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19397pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19398enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19399SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19400ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19401PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19402host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19403host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19404host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19405build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19406build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19407build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19408SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19409Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19410GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19411EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19412FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19413LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19414NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19415LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19416max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19417ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19418exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19419lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19420lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19421lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19422lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19423lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19424reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19425reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19426OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19427deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19428file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19429file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19430want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19431DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19432sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19433AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19434AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19435archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19436STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19437RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19438old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19439old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19440old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19441lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19442CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19443CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19444compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19445GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19446lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19447lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19448lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19449lt_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"`'
19450nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19451lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19452objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19453MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19454lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19455lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19456lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19457lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19458lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19459need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19460MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19461DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19462NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19463LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19464OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19465OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19466libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19467shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19468extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19469archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19470enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19471export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19472whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19473compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19474old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19475old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19476archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19477archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19478module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19479module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19480with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19481allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19482no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19483hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19484hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19485hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19486hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19487hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19488hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19489hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19490inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19491link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19492always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19493export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19494exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19495include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19496prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19497postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19498file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19499variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19500need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19501need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19502version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19503runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19504shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19505shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19506libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19507library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19508soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19509install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19510postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19511postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19512finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19513finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19514hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19515sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19516sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19517hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19518enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19519enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19520enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19521old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19522striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19523
19524LTCC='$LTCC'
19525LTCFLAGS='$LTCFLAGS'
19526compiler='$compiler_DEFAULT'
19527
19528# A function that is used when there is no print builtin or printf.
19529func_fallback_echo ()
19530{
19531  eval 'cat <<_LTECHO_EOF
19532\$1
19533_LTECHO_EOF'
19534}
19535
19536# Quote evaled strings.
19537for var in SHELL \
19538ECHO \
19539PATH_SEPARATOR \
19540SED \
19541GREP \
19542EGREP \
19543FGREP \
19544LD \
19545NM \
19546LN_S \
19547lt_SP2NL \
19548lt_NL2SP \
19549reload_flag \
19550OBJDUMP \
19551deplibs_check_method \
19552file_magic_cmd \
19553file_magic_glob \
19554want_nocaseglob \
19555DLLTOOL \
19556sharedlib_from_linklib_cmd \
19557AR \
19558AR_FLAGS \
19559archiver_list_spec \
19560STRIP \
19561RANLIB \
19562CC \
19563CFLAGS \
19564compiler \
19565lt_cv_sys_global_symbol_pipe \
19566lt_cv_sys_global_symbol_to_cdecl \
19567lt_cv_sys_global_symbol_to_c_name_address \
19568lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19569nm_file_list_spec \
19570lt_prog_compiler_no_builtin_flag \
19571lt_prog_compiler_pic \
19572lt_prog_compiler_wl \
19573lt_prog_compiler_static \
19574lt_cv_prog_compiler_c_o \
19575need_locks \
19576MANIFEST_TOOL \
19577DSYMUTIL \
19578NMEDIT \
19579LIPO \
19580OTOOL \
19581OTOOL64 \
19582shrext_cmds \
19583export_dynamic_flag_spec \
19584whole_archive_flag_spec \
19585compiler_needs_object \
19586with_gnu_ld \
19587allow_undefined_flag \
19588no_undefined_flag \
19589hardcode_libdir_flag_spec \
19590hardcode_libdir_separator \
19591exclude_expsyms \
19592include_expsyms \
19593file_list_spec \
19594variables_saved_for_relink \
19595libname_spec \
19596library_names_spec \
19597soname_spec \
19598install_override_mode \
19599finish_eval \
19600old_striplib \
19601striplib; do
19602    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19603    *[\\\\\\\`\\"\\\$]*)
19604      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19605      ;;
19606    *)
19607      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19608      ;;
19609    esac
19610done
19611
19612# Double-quote double-evaled strings.
19613for var in reload_cmds \
19614old_postinstall_cmds \
19615old_postuninstall_cmds \
19616old_archive_cmds \
19617extract_expsyms_cmds \
19618old_archive_from_new_cmds \
19619old_archive_from_expsyms_cmds \
19620archive_cmds \
19621archive_expsym_cmds \
19622module_cmds \
19623module_expsym_cmds \
19624export_symbols_cmds \
19625prelink_cmds \
19626postlink_cmds \
19627postinstall_cmds \
19628postuninstall_cmds \
19629finish_cmds \
19630sys_lib_search_path_spec \
19631sys_lib_dlsearch_path_spec; do
19632    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19633    *[\\\\\\\`\\"\\\$]*)
19634      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19635      ;;
19636    *)
19637      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19638      ;;
19639    esac
19640done
19641
19642ac_aux_dir='$ac_aux_dir'
19643xsi_shell='$xsi_shell'
19644lt_shell_append='$lt_shell_append'
19645
19646# See if we are running on zsh, and set the options which allow our
19647# commands through without removal of \ escapes INIT.
19648if test -n "\${ZSH_VERSION+set}" ; then
19649   setopt NO_GLOB_SUBST
19650fi
19651
19652
19653    PACKAGE='$PACKAGE'
19654    VERSION='$VERSION'
19655    TIMESTAMP='$TIMESTAMP'
19656    RM='$RM'
19657    ofile='$ofile'
19658
19659
19660
19661
19662_ACEOF
19663
19664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19665
19666# Handling of arguments.
19667for ac_config_target in $ac_config_targets
19668do
19669  case $ac_config_target in
19670    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19671    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19672    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19673    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19674    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19675    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19676    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19677    "xtst.pc") CONFIG_FILES="$CONFIG_FILES xtst.pc" ;;
19678
19679  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19680  esac
19681done
19682
19683
19684# If the user did not use the arguments to specify the items to instantiate,
19685# then the envvar interface is used.  Set only those that are not.
19686# We use the long form for the default assignment because of an extremely
19687# bizarre bug on SunOS 4.1.3.
19688if $ac_need_defaults; then
19689  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19690  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19691  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19692fi
19693
19694# Have a temporary directory for convenience.  Make it in the build tree
19695# simply because there is no reason against having it here, and in addition,
19696# creating and moving files from /tmp can sometimes cause problems.
19697# Hook for its removal unless debugging.
19698# Note that there is a small window in which the directory will not be cleaned:
19699# after its creation but before its name has been assigned to `$tmp'.
19700$debug ||
19701{
19702  tmp= ac_tmp=
19703  trap 'exit_status=$?
19704  : "${ac_tmp:=$tmp}"
19705  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19706' 0
19707  trap 'as_fn_exit 1' 1 2 13 15
19708}
19709# Create a (secure) tmp directory for tmp files.
19710
19711{
19712  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19713  test -d "$tmp"
19714}  ||
19715{
19716  tmp=./conf$$-$RANDOM
19717  (umask 077 && mkdir "$tmp")
19718} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19719ac_tmp=$tmp
19720
19721# Set up the scripts for CONFIG_FILES section.
19722# No need to generate them if there are no CONFIG_FILES.
19723# This happens for instance with `./config.status config.h'.
19724if test -n "$CONFIG_FILES"; then
19725
19726
19727ac_cr=`echo X | tr X '\015'`
19728# On cygwin, bash can eat \r inside `` if the user requested igncr.
19729# But we know of no other shell where ac_cr would be empty at this
19730# point, so we can use a bashism as a fallback.
19731if test "x$ac_cr" = x; then
19732  eval ac_cr=\$\'\\r\'
19733fi
19734ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19735if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19736  ac_cs_awk_cr='\\r'
19737else
19738  ac_cs_awk_cr=$ac_cr
19739fi
19740
19741echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19742_ACEOF
19743
19744
19745{
19746  echo "cat >conf$$subs.awk <<_ACEOF" &&
19747  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19748  echo "_ACEOF"
19749} >conf$$subs.sh ||
19750  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19751ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19752ac_delim='%!_!# '
19753for ac_last_try in false false false false false :; do
19754  . ./conf$$subs.sh ||
19755    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19756
19757  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19758  if test $ac_delim_n = $ac_delim_num; then
19759    break
19760  elif $ac_last_try; then
19761    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19762  else
19763    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19764  fi
19765done
19766rm -f conf$$subs.sh
19767
19768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19769cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19770_ACEOF
19771sed -n '
19772h
19773s/^/S["/; s/!.*/"]=/
19774p
19775g
19776s/^[^!]*!//
19777:repl
19778t repl
19779s/'"$ac_delim"'$//
19780t delim
19781:nl
19782h
19783s/\(.\{148\}\)..*/\1/
19784t more1
19785s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19786p
19787n
19788b repl
19789:more1
19790s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19791p
19792g
19793s/.\{148\}//
19794t nl
19795:delim
19796h
19797s/\(.\{148\}\)..*/\1/
19798t more2
19799s/["\\]/\\&/g; s/^/"/; s/$/"/
19800p
19801b
19802:more2
19803s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19804p
19805g
19806s/.\{148\}//
19807t delim
19808' <conf$$subs.awk | sed '
19809/^[^""]/{
19810  N
19811  s/\n//
19812}
19813' >>$CONFIG_STATUS || ac_write_fail=1
19814rm -f conf$$subs.awk
19815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19816_ACAWK
19817cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19818  for (key in S) S_is_set[key] = 1
19819  FS = ""
19820
19821}
19822{
19823  line = $ 0
19824  nfields = split(line, field, "@")
19825  substed = 0
19826  len = length(field[1])
19827  for (i = 2; i < nfields; i++) {
19828    key = field[i]
19829    keylen = length(key)
19830    if (S_is_set[key]) {
19831      value = S[key]
19832      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19833      len += length(value) + length(field[++i])
19834      substed = 1
19835    } else
19836      len += 1 + keylen
19837  }
19838
19839  print line
19840}
19841
19842_ACAWK
19843_ACEOF
19844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19845if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19846  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19847else
19848  cat
19849fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19850  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19851_ACEOF
19852
19853# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19854# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19855# trailing colons and then remove the whole line if VPATH becomes empty
19856# (actually we leave an empty line to preserve line numbers).
19857if test "x$srcdir" = x.; then
19858  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19859h
19860s///
19861s/^/:/
19862s/[	 ]*$/:/
19863s/:\$(srcdir):/:/g
19864s/:\${srcdir}:/:/g
19865s/:@srcdir@:/:/g
19866s/^:*//
19867s/:*$//
19868x
19869s/\(=[	 ]*\).*/\1/
19870G
19871s/\n//
19872s/^[^=]*=[	 ]*$//
19873}'
19874fi
19875
19876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19877fi # test -n "$CONFIG_FILES"
19878
19879# Set up the scripts for CONFIG_HEADERS section.
19880# No need to generate them if there are no CONFIG_HEADERS.
19881# This happens for instance with `./config.status Makefile'.
19882if test -n "$CONFIG_HEADERS"; then
19883cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19884BEGIN {
19885_ACEOF
19886
19887# Transform confdefs.h into an awk script `defines.awk', embedded as
19888# here-document in config.status, that substitutes the proper values into
19889# config.h.in to produce config.h.
19890
19891# Create a delimiter string that does not exist in confdefs.h, to ease
19892# handling of long lines.
19893ac_delim='%!_!# '
19894for ac_last_try in false false :; do
19895  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19896  if test -z "$ac_tt"; then
19897    break
19898  elif $ac_last_try; then
19899    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19900  else
19901    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19902  fi
19903done
19904
19905# For the awk script, D is an array of macro values keyed by name,
19906# likewise P contains macro parameters if any.  Preserve backslash
19907# newline sequences.
19908
19909ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19910sed -n '
19911s/.\{148\}/&'"$ac_delim"'/g
19912t rset
19913:rset
19914s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19915t def
19916d
19917:def
19918s/\\$//
19919t bsnl
19920s/["\\]/\\&/g
19921s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19922D["\1"]=" \3"/p
19923s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19924d
19925:bsnl
19926s/["\\]/\\&/g
19927s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19928D["\1"]=" \3\\\\\\n"\\/p
19929t cont
19930s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19931t cont
19932d
19933:cont
19934n
19935s/.\{148\}/&'"$ac_delim"'/g
19936t clear
19937:clear
19938s/\\$//
19939t bsnlc
19940s/["\\]/\\&/g; s/^/"/; s/$/"/p
19941d
19942:bsnlc
19943s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19944b cont
19945' <confdefs.h | sed '
19946s/'"$ac_delim"'/"\\\
19947"/g' >>$CONFIG_STATUS || ac_write_fail=1
19948
19949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19950  for (key in D) D_is_set[key] = 1
19951  FS = ""
19952}
19953/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19954  line = \$ 0
19955  split(line, arg, " ")
19956  if (arg[1] == "#") {
19957    defundef = arg[2]
19958    mac1 = arg[3]
19959  } else {
19960    defundef = substr(arg[1], 2)
19961    mac1 = arg[2]
19962  }
19963  split(mac1, mac2, "(") #)
19964  macro = mac2[1]
19965  prefix = substr(line, 1, index(line, defundef) - 1)
19966  if (D_is_set[macro]) {
19967    # Preserve the white space surrounding the "#".
19968    print prefix "define", macro P[macro] D[macro]
19969    next
19970  } else {
19971    # Replace #undef with comments.  This is necessary, for example,
19972    # in the case of _POSIX_SOURCE, which is predefined and required
19973    # on some systems where configure will not decide to define it.
19974    if (defundef == "undef") {
19975      print "/*", prefix defundef, macro, "*/"
19976      next
19977    }
19978  }
19979}
19980{ print }
19981_ACAWK
19982_ACEOF
19983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19984  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19985fi # test -n "$CONFIG_HEADERS"
19986
19987
19988eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19989shift
19990for ac_tag
19991do
19992  case $ac_tag in
19993  :[FHLC]) ac_mode=$ac_tag; continue;;
19994  esac
19995  case $ac_mode$ac_tag in
19996  :[FHL]*:*);;
19997  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19998  :[FH]-) ac_tag=-:-;;
19999  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20000  esac
20001  ac_save_IFS=$IFS
20002  IFS=:
20003  set x $ac_tag
20004  IFS=$ac_save_IFS
20005  shift
20006  ac_file=$1
20007  shift
20008
20009  case $ac_mode in
20010  :L) ac_source=$1;;
20011  :[FH])
20012    ac_file_inputs=
20013    for ac_f
20014    do
20015      case $ac_f in
20016      -) ac_f="$ac_tmp/stdin";;
20017      *) # Look for the file first in the build tree, then in the source tree
20018	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20019	 # because $ac_f cannot contain `:'.
20020	 test -f "$ac_f" ||
20021	   case $ac_f in
20022	   [\\/$]*) false;;
20023	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20024	   esac ||
20025	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20026      esac
20027      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20028      as_fn_append ac_file_inputs " '$ac_f'"
20029    done
20030
20031    # Let's still pretend it is `configure' which instantiates (i.e., don't
20032    # use $as_me), people would be surprised to read:
20033    #    /* config.h.  Generated by config.status.  */
20034    configure_input='Generated from '`
20035	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20036	`' by configure.'
20037    if test x"$ac_file" != x-; then
20038      configure_input="$ac_file.  $configure_input"
20039      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20040$as_echo "$as_me: creating $ac_file" >&6;}
20041    fi
20042    # Neutralize special characters interpreted by sed in replacement strings.
20043    case $configure_input in #(
20044    *\&* | *\|* | *\\* )
20045       ac_sed_conf_input=`$as_echo "$configure_input" |
20046       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20047    *) ac_sed_conf_input=$configure_input;;
20048    esac
20049
20050    case $ac_tag in
20051    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20052      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20053    esac
20054    ;;
20055  esac
20056
20057  ac_dir=`$as_dirname -- "$ac_file" ||
20058$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20059	 X"$ac_file" : 'X\(//\)[^/]' \| \
20060	 X"$ac_file" : 'X\(//\)$' \| \
20061	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20062$as_echo X"$ac_file" |
20063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20064	    s//\1/
20065	    q
20066	  }
20067	  /^X\(\/\/\)[^/].*/{
20068	    s//\1/
20069	    q
20070	  }
20071	  /^X\(\/\/\)$/{
20072	    s//\1/
20073	    q
20074	  }
20075	  /^X\(\/\).*/{
20076	    s//\1/
20077	    q
20078	  }
20079	  s/.*/./; q'`
20080  as_dir="$ac_dir"; as_fn_mkdir_p
20081  ac_builddir=.
20082
20083case "$ac_dir" in
20084.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20085*)
20086  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20087  # A ".." for each directory in $ac_dir_suffix.
20088  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20089  case $ac_top_builddir_sub in
20090  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20091  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20092  esac ;;
20093esac
20094ac_abs_top_builddir=$ac_pwd
20095ac_abs_builddir=$ac_pwd$ac_dir_suffix
20096# for backward compatibility:
20097ac_top_builddir=$ac_top_build_prefix
20098
20099case $srcdir in
20100  .)  # We are building in place.
20101    ac_srcdir=.
20102    ac_top_srcdir=$ac_top_builddir_sub
20103    ac_abs_top_srcdir=$ac_pwd ;;
20104  [\\/]* | ?:[\\/]* )  # Absolute name.
20105    ac_srcdir=$srcdir$ac_dir_suffix;
20106    ac_top_srcdir=$srcdir
20107    ac_abs_top_srcdir=$srcdir ;;
20108  *) # Relative name.
20109    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20110    ac_top_srcdir=$ac_top_build_prefix$srcdir
20111    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20112esac
20113ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20114
20115
20116  case $ac_mode in
20117  :F)
20118  #
20119  # CONFIG_FILE
20120  #
20121
20122  case $INSTALL in
20123  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20124  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20125  esac
20126  ac_MKDIR_P=$MKDIR_P
20127  case $MKDIR_P in
20128  [\\/$]* | ?:[\\/]* ) ;;
20129  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20130  esac
20131_ACEOF
20132
20133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20134# If the template does not know about datarootdir, expand it.
20135# FIXME: This hack should be removed a few years after 2.60.
20136ac_datarootdir_hack=; ac_datarootdir_seen=
20137ac_sed_dataroot='
20138/datarootdir/ {
20139  p
20140  q
20141}
20142/@datadir@/p
20143/@docdir@/p
20144/@infodir@/p
20145/@localedir@/p
20146/@mandir@/p'
20147case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20148*datarootdir*) ac_datarootdir_seen=yes;;
20149*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20150  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20151$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20152_ACEOF
20153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20154  ac_datarootdir_hack='
20155  s&@datadir@&$datadir&g
20156  s&@docdir@&$docdir&g
20157  s&@infodir@&$infodir&g
20158  s&@localedir@&$localedir&g
20159  s&@mandir@&$mandir&g
20160  s&\\\${datarootdir}&$datarootdir&g' ;;
20161esac
20162_ACEOF
20163
20164# Neutralize VPATH when `$srcdir' = `.'.
20165# Shell code in configure.ac might set extrasub.
20166# FIXME: do we really want to maintain this feature?
20167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20168ac_sed_extra="$ac_vpsub
20169$extrasub
20170_ACEOF
20171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20172:t
20173/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20174s|@configure_input@|$ac_sed_conf_input|;t t
20175s&@top_builddir@&$ac_top_builddir_sub&;t t
20176s&@top_build_prefix@&$ac_top_build_prefix&;t t
20177s&@srcdir@&$ac_srcdir&;t t
20178s&@abs_srcdir@&$ac_abs_srcdir&;t t
20179s&@top_srcdir@&$ac_top_srcdir&;t t
20180s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20181s&@builddir@&$ac_builddir&;t t
20182s&@abs_builddir@&$ac_abs_builddir&;t t
20183s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20184s&@INSTALL@&$ac_INSTALL&;t t
20185s&@MKDIR_P@&$ac_MKDIR_P&;t t
20186$ac_datarootdir_hack
20187"
20188eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20189  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20190
20191test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20192  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20193  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20194      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20195  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20196which seems to be undefined.  Please make sure it is defined" >&5
20197$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20198which seems to be undefined.  Please make sure it is defined" >&2;}
20199
20200  rm -f "$ac_tmp/stdin"
20201  case $ac_file in
20202  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20203  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20204  esac \
20205  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20206 ;;
20207  :H)
20208  #
20209  # CONFIG_HEADER
20210  #
20211  if test x"$ac_file" != x-; then
20212    {
20213      $as_echo "/* $configure_input  */" \
20214      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20215    } >"$ac_tmp/config.h" \
20216      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20217    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20218      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20219$as_echo "$as_me: $ac_file is unchanged" >&6;}
20220    else
20221      rm -f "$ac_file"
20222      mv "$ac_tmp/config.h" "$ac_file" \
20223	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20224    fi
20225  else
20226    $as_echo "/* $configure_input  */" \
20227      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20228      || as_fn_error $? "could not create -" "$LINENO" 5
20229  fi
20230# Compute "$ac_file"'s index in $config_headers.
20231_am_arg="$ac_file"
20232_am_stamp_count=1
20233for _am_header in $config_headers :; do
20234  case $_am_header in
20235    $_am_arg | $_am_arg:* )
20236      break ;;
20237    * )
20238      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20239  esac
20240done
20241echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20242$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20243	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20244	 X"$_am_arg" : 'X\(//\)$' \| \
20245	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20246$as_echo X"$_am_arg" |
20247    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20248	    s//\1/
20249	    q
20250	  }
20251	  /^X\(\/\/\)[^/].*/{
20252	    s//\1/
20253	    q
20254	  }
20255	  /^X\(\/\/\)$/{
20256	    s//\1/
20257	    q
20258	  }
20259	  /^X\(\/\).*/{
20260	    s//\1/
20261	    q
20262	  }
20263	  s/.*/./; q'`/stamp-h$_am_stamp_count
20264 ;;
20265
20266  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20267$as_echo "$as_me: executing $ac_file commands" >&6;}
20268 ;;
20269  esac
20270
20271
20272  case $ac_file$ac_mode in
20273    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20274  # Older Autoconf quotes --file arguments for eval, but not when files
20275  # are listed without --file.  Let's play safe and only enable the eval
20276  # if we detect the quoting.
20277  case $CONFIG_FILES in
20278  *\'*) eval set x "$CONFIG_FILES" ;;
20279  *)   set x $CONFIG_FILES ;;
20280  esac
20281  shift
20282  for mf
20283  do
20284    # Strip MF so we end up with the name of the file.
20285    mf=`echo "$mf" | sed -e 's/:.*$//'`
20286    # Check whether this is an Automake generated Makefile or not.
20287    # We used to match only the files named 'Makefile.in', but
20288    # some people rename them; so instead we look at the file content.
20289    # Grep'ing the first line is not enough: some people post-process
20290    # each Makefile.in and add a new line on top of each file to say so.
20291    # Grep'ing the whole file is not good either: AIX grep has a line
20292    # limit of 2048, but all sed's we know have understand at least 4000.
20293    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20294      dirpart=`$as_dirname -- "$mf" ||
20295$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20296	 X"$mf" : 'X\(//\)[^/]' \| \
20297	 X"$mf" : 'X\(//\)$' \| \
20298	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20299$as_echo X"$mf" |
20300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20301	    s//\1/
20302	    q
20303	  }
20304	  /^X\(\/\/\)[^/].*/{
20305	    s//\1/
20306	    q
20307	  }
20308	  /^X\(\/\/\)$/{
20309	    s//\1/
20310	    q
20311	  }
20312	  /^X\(\/\).*/{
20313	    s//\1/
20314	    q
20315	  }
20316	  s/.*/./; q'`
20317    else
20318      continue
20319    fi
20320    # Extract the definition of DEPDIR, am__include, and am__quote
20321    # from the Makefile without running 'make'.
20322    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20323    test -z "$DEPDIR" && continue
20324    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20325    test -z "$am__include" && continue
20326    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20327    # Find all dependency output files, they are included files with
20328    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20329    # simplest approach to changing $(DEPDIR) to its actual value in the
20330    # expansion.
20331    for file in `sed -n "
20332      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20333	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20334      # Make sure the directory exists.
20335      test -f "$dirpart/$file" && continue
20336      fdir=`$as_dirname -- "$file" ||
20337$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20338	 X"$file" : 'X\(//\)[^/]' \| \
20339	 X"$file" : 'X\(//\)$' \| \
20340	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20341$as_echo X"$file" |
20342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20343	    s//\1/
20344	    q
20345	  }
20346	  /^X\(\/\/\)[^/].*/{
20347	    s//\1/
20348	    q
20349	  }
20350	  /^X\(\/\/\)$/{
20351	    s//\1/
20352	    q
20353	  }
20354	  /^X\(\/\).*/{
20355	    s//\1/
20356	    q
20357	  }
20358	  s/.*/./; q'`
20359      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20360      # echo "creating $dirpart/$file"
20361      echo '# dummy' > "$dirpart/$file"
20362    done
20363  done
20364}
20365 ;;
20366    "libtool":C)
20367
20368    # See if we are running on zsh, and set the options which allow our
20369    # commands through without removal of \ escapes.
20370    if test -n "${ZSH_VERSION+set}" ; then
20371      setopt NO_GLOB_SUBST
20372    fi
20373
20374    cfgfile="${ofile}T"
20375    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20376    $RM "$cfgfile"
20377
20378    cat <<_LT_EOF >> "$cfgfile"
20379#! $SHELL
20380
20381# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20382# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20383# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20384# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20385#
20386#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20387#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20388#                 Foundation, Inc.
20389#   Written by Gordon Matzigkeit, 1996
20390#
20391#   This file is part of GNU Libtool.
20392#
20393# GNU Libtool is free software; you can redistribute it and/or
20394# modify it under the terms of the GNU General Public License as
20395# published by the Free Software Foundation; either version 2 of
20396# the License, or (at your option) any later version.
20397#
20398# As a special exception to the GNU General Public License,
20399# if you distribute this file as part of a program or library that
20400# is built using GNU Libtool, you may include this file under the
20401# same distribution terms that you use for the rest of that program.
20402#
20403# GNU Libtool is distributed in the hope that it will be useful,
20404# but WITHOUT ANY WARRANTY; without even the implied warranty of
20405# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20406# GNU General Public License for more details.
20407#
20408# You should have received a copy of the GNU General Public License
20409# along with GNU Libtool; see the file COPYING.  If not, a copy
20410# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20411# obtained by writing to the Free Software Foundation, Inc.,
20412# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20413
20414
20415# The names of the tagged configurations supported by this script.
20416available_tags=""
20417
20418# ### BEGIN LIBTOOL CONFIG
20419
20420# Which release of libtool.m4 was used?
20421macro_version=$macro_version
20422macro_revision=$macro_revision
20423
20424# Whether or not to build shared libraries.
20425build_libtool_libs=$enable_shared
20426
20427# Whether or not to build static libraries.
20428build_old_libs=$enable_static
20429
20430# What type of objects to build.
20431pic_mode=$pic_mode
20432
20433# Whether or not to optimize for fast installation.
20434fast_install=$enable_fast_install
20435
20436# Shell to use when invoking shell scripts.
20437SHELL=$lt_SHELL
20438
20439# An echo program that protects backslashes.
20440ECHO=$lt_ECHO
20441
20442# The PATH separator for the build system.
20443PATH_SEPARATOR=$lt_PATH_SEPARATOR
20444
20445# The host system.
20446host_alias=$host_alias
20447host=$host
20448host_os=$host_os
20449
20450# The build system.
20451build_alias=$build_alias
20452build=$build
20453build_os=$build_os
20454
20455# A sed program that does not truncate output.
20456SED=$lt_SED
20457
20458# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20459Xsed="\$SED -e 1s/^X//"
20460
20461# A grep program that handles long lines.
20462GREP=$lt_GREP
20463
20464# An ERE matcher.
20465EGREP=$lt_EGREP
20466
20467# A literal string matcher.
20468FGREP=$lt_FGREP
20469
20470# A BSD- or MS-compatible name lister.
20471NM=$lt_NM
20472
20473# Whether we need soft or hard links.
20474LN_S=$lt_LN_S
20475
20476# What is the maximum length of a command?
20477max_cmd_len=$max_cmd_len
20478
20479# Object file suffix (normally "o").
20480objext=$ac_objext
20481
20482# Executable file suffix (normally "").
20483exeext=$exeext
20484
20485# whether the shell understands "unset".
20486lt_unset=$lt_unset
20487
20488# turn spaces into newlines.
20489SP2NL=$lt_lt_SP2NL
20490
20491# turn newlines into spaces.
20492NL2SP=$lt_lt_NL2SP
20493
20494# convert \$build file names to \$host format.
20495to_host_file_cmd=$lt_cv_to_host_file_cmd
20496
20497# convert \$build files to toolchain format.
20498to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20499
20500# An object symbol dumper.
20501OBJDUMP=$lt_OBJDUMP
20502
20503# Method to check whether dependent libraries are shared objects.
20504deplibs_check_method=$lt_deplibs_check_method
20505
20506# Command to use when deplibs_check_method = "file_magic".
20507file_magic_cmd=$lt_file_magic_cmd
20508
20509# How to find potential files when deplibs_check_method = "file_magic".
20510file_magic_glob=$lt_file_magic_glob
20511
20512# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20513want_nocaseglob=$lt_want_nocaseglob
20514
20515# DLL creation program.
20516DLLTOOL=$lt_DLLTOOL
20517
20518# Command to associate shared and link libraries.
20519sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20520
20521# The archiver.
20522AR=$lt_AR
20523
20524# Flags to create an archive.
20525AR_FLAGS=$lt_AR_FLAGS
20526
20527# How to feed a file listing to the archiver.
20528archiver_list_spec=$lt_archiver_list_spec
20529
20530# A symbol stripping program.
20531STRIP=$lt_STRIP
20532
20533# Commands used to install an old-style archive.
20534RANLIB=$lt_RANLIB
20535old_postinstall_cmds=$lt_old_postinstall_cmds
20536old_postuninstall_cmds=$lt_old_postuninstall_cmds
20537
20538# Whether to use a lock for old archive extraction.
20539lock_old_archive_extraction=$lock_old_archive_extraction
20540
20541# A C compiler.
20542LTCC=$lt_CC
20543
20544# LTCC compiler flags.
20545LTCFLAGS=$lt_CFLAGS
20546
20547# Take the output of nm and produce a listing of raw symbols and C names.
20548global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20549
20550# Transform the output of nm in a proper C declaration.
20551global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20552
20553# Transform the output of nm in a C name address pair.
20554global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20555
20556# Transform the output of nm in a C name address pair when lib prefix is needed.
20557global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20558
20559# Specify filename containing input files for \$NM.
20560nm_file_list_spec=$lt_nm_file_list_spec
20561
20562# The root where to search for dependent libraries,and in which our libraries should be installed.
20563lt_sysroot=$lt_sysroot
20564
20565# The name of the directory that contains temporary libtool files.
20566objdir=$objdir
20567
20568# Used to examine libraries when file_magic_cmd begins with "file".
20569MAGIC_CMD=$MAGIC_CMD
20570
20571# Must we lock files when doing compilation?
20572need_locks=$lt_need_locks
20573
20574# Manifest tool.
20575MANIFEST_TOOL=$lt_MANIFEST_TOOL
20576
20577# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20578DSYMUTIL=$lt_DSYMUTIL
20579
20580# Tool to change global to local symbols on Mac OS X.
20581NMEDIT=$lt_NMEDIT
20582
20583# Tool to manipulate fat objects and archives on Mac OS X.
20584LIPO=$lt_LIPO
20585
20586# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20587OTOOL=$lt_OTOOL
20588
20589# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20590OTOOL64=$lt_OTOOL64
20591
20592# Old archive suffix (normally "a").
20593libext=$libext
20594
20595# Shared library suffix (normally ".so").
20596shrext_cmds=$lt_shrext_cmds
20597
20598# The commands to extract the exported symbol list from a shared archive.
20599extract_expsyms_cmds=$lt_extract_expsyms_cmds
20600
20601# Variables whose values should be saved in libtool wrapper scripts and
20602# restored at link time.
20603variables_saved_for_relink=$lt_variables_saved_for_relink
20604
20605# Do we need the "lib" prefix for modules?
20606need_lib_prefix=$need_lib_prefix
20607
20608# Do we need a version for libraries?
20609need_version=$need_version
20610
20611# Library versioning type.
20612version_type=$version_type
20613
20614# Shared library runtime path variable.
20615runpath_var=$runpath_var
20616
20617# Shared library path variable.
20618shlibpath_var=$shlibpath_var
20619
20620# Is shlibpath searched before the hard-coded library search path?
20621shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20622
20623# Format of library name prefix.
20624libname_spec=$lt_libname_spec
20625
20626# List of archive names.  First name is the real one, the rest are links.
20627# The last name is the one that the linker finds with -lNAME
20628library_names_spec=$lt_library_names_spec
20629
20630# The coded name of the library, if different from the real name.
20631soname_spec=$lt_soname_spec
20632
20633# Permission mode override for installation of shared libraries.
20634install_override_mode=$lt_install_override_mode
20635
20636# Command to use after installation of a shared archive.
20637postinstall_cmds=$lt_postinstall_cmds
20638
20639# Command to use after uninstallation of a shared archive.
20640postuninstall_cmds=$lt_postuninstall_cmds
20641
20642# Commands used to finish a libtool library installation in a directory.
20643finish_cmds=$lt_finish_cmds
20644
20645# As "finish_cmds", except a single script fragment to be evaled but
20646# not shown.
20647finish_eval=$lt_finish_eval
20648
20649# Whether we should hardcode library paths into libraries.
20650hardcode_into_libs=$hardcode_into_libs
20651
20652# Compile-time system search path for libraries.
20653sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20654
20655# Run-time system search path for libraries.
20656sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20657
20658# Whether dlopen is supported.
20659dlopen_support=$enable_dlopen
20660
20661# Whether dlopen of programs is supported.
20662dlopen_self=$enable_dlopen_self
20663
20664# Whether dlopen of statically linked programs is supported.
20665dlopen_self_static=$enable_dlopen_self_static
20666
20667# Commands to strip libraries.
20668old_striplib=$lt_old_striplib
20669striplib=$lt_striplib
20670
20671
20672# The linker used to build libraries.
20673LD=$lt_LD
20674
20675# How to create reloadable object files.
20676reload_flag=$lt_reload_flag
20677reload_cmds=$lt_reload_cmds
20678
20679# Commands used to build an old-style archive.
20680old_archive_cmds=$lt_old_archive_cmds
20681
20682# A language specific compiler.
20683CC=$lt_compiler
20684
20685# Is the compiler the GNU compiler?
20686with_gcc=$GCC
20687
20688# Compiler flag to turn off builtin functions.
20689no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20690
20691# Additional compiler flags for building library objects.
20692pic_flag=$lt_lt_prog_compiler_pic
20693
20694# How to pass a linker flag through the compiler.
20695wl=$lt_lt_prog_compiler_wl
20696
20697# Compiler flag to prevent dynamic linking.
20698link_static_flag=$lt_lt_prog_compiler_static
20699
20700# Does compiler simultaneously support -c and -o options?
20701compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20702
20703# Whether or not to add -lc for building shared libraries.
20704build_libtool_need_lc=$archive_cmds_need_lc
20705
20706# Whether or not to disallow shared libs when runtime libs are static.
20707allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20708
20709# Compiler flag to allow reflexive dlopens.
20710export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20711
20712# Compiler flag to generate shared objects directly from archives.
20713whole_archive_flag_spec=$lt_whole_archive_flag_spec
20714
20715# Whether the compiler copes with passing no objects directly.
20716compiler_needs_object=$lt_compiler_needs_object
20717
20718# Create an old-style archive from a shared archive.
20719old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20720
20721# Create a temporary old-style archive to link instead of a shared archive.
20722old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20723
20724# Commands used to build a shared archive.
20725archive_cmds=$lt_archive_cmds
20726archive_expsym_cmds=$lt_archive_expsym_cmds
20727
20728# Commands used to build a loadable module if different from building
20729# a shared archive.
20730module_cmds=$lt_module_cmds
20731module_expsym_cmds=$lt_module_expsym_cmds
20732
20733# Whether we are building with GNU ld or not.
20734with_gnu_ld=$lt_with_gnu_ld
20735
20736# Flag that allows shared libraries with undefined symbols to be built.
20737allow_undefined_flag=$lt_allow_undefined_flag
20738
20739# Flag that enforces no undefined symbols.
20740no_undefined_flag=$lt_no_undefined_flag
20741
20742# Flag to hardcode \$libdir into a binary during linking.
20743# This must work even if \$libdir does not exist
20744hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20745
20746# Whether we need a single "-rpath" flag with a separated argument.
20747hardcode_libdir_separator=$lt_hardcode_libdir_separator
20748
20749# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20750# DIR into the resulting binary.
20751hardcode_direct=$hardcode_direct
20752
20753# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20754# DIR into the resulting binary and the resulting library dependency is
20755# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20756# library is relocated.
20757hardcode_direct_absolute=$hardcode_direct_absolute
20758
20759# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20760# into the resulting binary.
20761hardcode_minus_L=$hardcode_minus_L
20762
20763# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20764# into the resulting binary.
20765hardcode_shlibpath_var=$hardcode_shlibpath_var
20766
20767# Set to "yes" if building a shared library automatically hardcodes DIR
20768# into the library and all subsequent libraries and executables linked
20769# against it.
20770hardcode_automatic=$hardcode_automatic
20771
20772# Set to yes if linker adds runtime paths of dependent libraries
20773# to runtime path list.
20774inherit_rpath=$inherit_rpath
20775
20776# Whether libtool must link a program against all its dependency libraries.
20777link_all_deplibs=$link_all_deplibs
20778
20779# Set to "yes" if exported symbols are required.
20780always_export_symbols=$always_export_symbols
20781
20782# The commands to list exported symbols.
20783export_symbols_cmds=$lt_export_symbols_cmds
20784
20785# Symbols that should not be listed in the preloaded symbols.
20786exclude_expsyms=$lt_exclude_expsyms
20787
20788# Symbols that must always be exported.
20789include_expsyms=$lt_include_expsyms
20790
20791# Commands necessary for linking programs (against libraries) with templates.
20792prelink_cmds=$lt_prelink_cmds
20793
20794# Commands necessary for finishing linking programs.
20795postlink_cmds=$lt_postlink_cmds
20796
20797# Specify filename containing input files.
20798file_list_spec=$lt_file_list_spec
20799
20800# How to hardcode a shared library path into an executable.
20801hardcode_action=$hardcode_action
20802
20803# ### END LIBTOOL CONFIG
20804
20805_LT_EOF
20806
20807  case $host_os in
20808  aix3*)
20809    cat <<\_LT_EOF >> "$cfgfile"
20810# AIX sometimes has problems with the GCC collect2 program.  For some
20811# reason, if we set the COLLECT_NAMES environment variable, the problems
20812# vanish in a puff of smoke.
20813if test "X${COLLECT_NAMES+set}" != Xset; then
20814  COLLECT_NAMES=
20815  export COLLECT_NAMES
20816fi
20817_LT_EOF
20818    ;;
20819  esac
20820
20821
20822ltmain="$ac_aux_dir/ltmain.sh"
20823
20824
20825  # We use sed instead of cat because bash on DJGPP gets confused if
20826  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20827  # text mode, it properly converts lines to CR/LF.  This bash problem
20828  # is reportedly fixed, but why not run on old versions too?
20829  sed '$q' "$ltmain" >> "$cfgfile" \
20830     || (rm -f "$cfgfile"; exit 1)
20831
20832  if test x"$xsi_shell" = xyes; then
20833  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20834func_dirname ()\
20835{\
20836\    case ${1} in\
20837\      */*) func_dirname_result="${1%/*}${2}" ;;\
20838\      *  ) func_dirname_result="${3}" ;;\
20839\    esac\
20840} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20841  && mv -f "$cfgfile.tmp" "$cfgfile" \
20842    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20843test 0 -eq $? || _lt_function_replace_fail=:
20844
20845
20846  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20847func_basename ()\
20848{\
20849\    func_basename_result="${1##*/}"\
20850} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20851  && mv -f "$cfgfile.tmp" "$cfgfile" \
20852    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20853test 0 -eq $? || _lt_function_replace_fail=:
20854
20855
20856  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20857func_dirname_and_basename ()\
20858{\
20859\    case ${1} in\
20860\      */*) func_dirname_result="${1%/*}${2}" ;;\
20861\      *  ) func_dirname_result="${3}" ;;\
20862\    esac\
20863\    func_basename_result="${1##*/}"\
20864} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20865  && mv -f "$cfgfile.tmp" "$cfgfile" \
20866    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20867test 0 -eq $? || _lt_function_replace_fail=:
20868
20869
20870  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20871func_stripname ()\
20872{\
20873\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20874\    # positional parameters, so assign one to ordinary parameter first.\
20875\    func_stripname_result=${3}\
20876\    func_stripname_result=${func_stripname_result#"${1}"}\
20877\    func_stripname_result=${func_stripname_result%"${2}"}\
20878} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20879  && mv -f "$cfgfile.tmp" "$cfgfile" \
20880    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20881test 0 -eq $? || _lt_function_replace_fail=:
20882
20883
20884  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20885func_split_long_opt ()\
20886{\
20887\    func_split_long_opt_name=${1%%=*}\
20888\    func_split_long_opt_arg=${1#*=}\
20889} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20890  && mv -f "$cfgfile.tmp" "$cfgfile" \
20891    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20892test 0 -eq $? || _lt_function_replace_fail=:
20893
20894
20895  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20896func_split_short_opt ()\
20897{\
20898\    func_split_short_opt_arg=${1#??}\
20899\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20900} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20901  && mv -f "$cfgfile.tmp" "$cfgfile" \
20902    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20903test 0 -eq $? || _lt_function_replace_fail=:
20904
20905
20906  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20907func_lo2o ()\
20908{\
20909\    case ${1} in\
20910\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20911\      *)    func_lo2o_result=${1} ;;\
20912\    esac\
20913} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20914  && mv -f "$cfgfile.tmp" "$cfgfile" \
20915    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20916test 0 -eq $? || _lt_function_replace_fail=:
20917
20918
20919  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20920func_xform ()\
20921{\
20922    func_xform_result=${1%.*}.lo\
20923} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20924  && mv -f "$cfgfile.tmp" "$cfgfile" \
20925    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20926test 0 -eq $? || _lt_function_replace_fail=:
20927
20928
20929  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20930func_arith ()\
20931{\
20932    func_arith_result=$(( $* ))\
20933} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20934  && mv -f "$cfgfile.tmp" "$cfgfile" \
20935    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20936test 0 -eq $? || _lt_function_replace_fail=:
20937
20938
20939  sed -e '/^func_len ()$/,/^} # func_len /c\
20940func_len ()\
20941{\
20942    func_len_result=${#1}\
20943} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20944  && mv -f "$cfgfile.tmp" "$cfgfile" \
20945    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20946test 0 -eq $? || _lt_function_replace_fail=:
20947
20948fi
20949
20950if test x"$lt_shell_append" = xyes; then
20951  sed -e '/^func_append ()$/,/^} # func_append /c\
20952func_append ()\
20953{\
20954    eval "${1}+=\\${2}"\
20955} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20956  && mv -f "$cfgfile.tmp" "$cfgfile" \
20957    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20958test 0 -eq $? || _lt_function_replace_fail=:
20959
20960
20961  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20962func_append_quoted ()\
20963{\
20964\    func_quote_for_eval "${2}"\
20965\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20966} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20967  && mv -f "$cfgfile.tmp" "$cfgfile" \
20968    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20969test 0 -eq $? || _lt_function_replace_fail=:
20970
20971
20972  # Save a `func_append' function call where possible by direct use of '+='
20973  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20974    && mv -f "$cfgfile.tmp" "$cfgfile" \
20975      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20976  test 0 -eq $? || _lt_function_replace_fail=:
20977else
20978  # Save a `func_append' function call even when '+=' is not available
20979  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20980    && mv -f "$cfgfile.tmp" "$cfgfile" \
20981      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20982  test 0 -eq $? || _lt_function_replace_fail=:
20983fi
20984
20985if test x"$_lt_function_replace_fail" = x":"; then
20986  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20987$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20988fi
20989
20990
20991   mv -f "$cfgfile" "$ofile" ||
20992    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20993  chmod +x "$ofile"
20994
20995 ;;
20996
20997  esac
20998done # for ac_tag
20999
21000
21001as_fn_exit 0
21002_ACEOF
21003ac_clean_files=$ac_clean_files_save
21004
21005test $ac_write_fail = 0 ||
21006  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21007
21008
21009# configure is writing to config.log, and then calls config.status.
21010# config.status does its own redirection, appending to config.log.
21011# Unfortunately, on DOS this fails, as config.log is still kept open
21012# by configure, so config.status won't be able to write to it; its
21013# output is simply discarded.  So we exec the FD to /dev/null,
21014# effectively closing config.log, so it can be properly (re)opened and
21015# appended to by config.status.  When coming back to configure, we
21016# need to make the FD available again.
21017if test "$no_create" != yes; then
21018  ac_cs_success=:
21019  ac_config_status_args=
21020  test "$silent" = yes &&
21021    ac_config_status_args="$ac_config_status_args --quiet"
21022  exec 5>/dev/null
21023  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21024  exec 5>>config.log
21025  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21026  # would make configure fail if this is the last instruction.
21027  $ac_cs_success || as_fn_exit 1
21028fi
21029if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21030  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21031$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21032fi
21033
21034