configure revision 5ec34c4c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXaw 1.0.14.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXaw/issues>.
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://gitlab.freedesktop.org/xorg/lib/libXaw/issues
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='libXaw'
653PACKAGE_TARNAME='libXaw'
654PACKAGE_VERSION='1.0.14'
655PACKAGE_STRING='libXaw 1.0.14'
656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXaw/issues'
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
700BUILD_XAW7_FALSE
701BUILD_XAW7_TRUE
702BUILD_XAW6_FALSE
703BUILD_XAW6_TRUE
704XAW7_LIBS
705XAW7_CFLAGS
706XAW6_LIBS
707XAW6_CFLAGS
708PLATFORM_DARWIN_FALSE
709PLATFORM_DARWIN_TRUE
710PLATFORM_WIN32_FALSE
711PLATFORM_WIN32_TRUE
712LIBEXT
713HAVE_STYLESHEETS_FALSE
714HAVE_STYLESHEETS_TRUE
715XSL_STYLESHEET
716STYLESHEET_SRCDIR
717XORG_SGML_PATH
718HAVE_XSLTPROC_FALSE
719HAVE_XSLTPROC_TRUE
720XSLTPROC
721HAVE_FOP_FALSE
722HAVE_FOP_TRUE
723FOP
724HAVE_XMLTO_FALSE
725HAVE_XMLTO_TRUE
726HAVE_XMLTO_TEXT_FALSE
727HAVE_XMLTO_TEXT_TRUE
728XMLTO
729ENABLE_SPECS_FALSE
730ENABLE_SPECS_TRUE
731MAN_SUBSTS
732XORG_MAN_PAGE
733ADMIN_MAN_DIR
734DRIVER_MAN_DIR
735MISC_MAN_DIR
736FILE_MAN_DIR
737LIB_MAN_DIR
738APP_MAN_DIR
739ADMIN_MAN_SUFFIX
740DRIVER_MAN_SUFFIX
741MISC_MAN_SUFFIX
742FILE_MAN_SUFFIX
743LIB_MAN_SUFFIX
744APP_MAN_SUFFIX
745INSTALL_CMD
746PKG_CONFIG_LIBDIR
747PKG_CONFIG_PATH
748PKG_CONFIG
749CHANGELOG_CMD
750STRICT_CFLAGS
751CWARNFLAGS
752BASE_CFLAGS
753CPP
754LT_SYS_LIBRARY_PATH
755OTOOL64
756OTOOL
757LIPO
758NMEDIT
759DSYMUTIL
760MANIFEST_TOOL
761RANLIB
762ac_ct_AR
763AR
764DLLTOOL
765OBJDUMP
766LN_S
767NM
768ac_ct_DUMPBIN
769DUMPBIN
770LD
771FGREP
772EGREP
773GREP
774SED
775am__fastdepCC_FALSE
776am__fastdepCC_TRUE
777CCDEPMODE
778am__nodep
779AMDEPBACKSLASH
780AMDEP_FALSE
781AMDEP_TRUE
782am__include
783DEPDIR
784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791host_os
792host_vendor
793host_cpu
794host
795build_os
796build_vendor
797build_cpu
798build
799LIBTOOL
800AM_BACKSLASH
801AM_DEFAULT_VERBOSITY
802AM_DEFAULT_V
803AM_V
804am__untar
805am__tar
806AMTAR
807am__leading_dot
808SET_MAKE
809AWK
810mkdir_p
811MKDIR_P
812INSTALL_STRIP_PROGRAM
813STRIP
814install_sh
815MAKEINFO
816AUTOHEADER
817AUTOMAKE
818AUTOCONF
819ACLOCAL
820VERSION
821PACKAGE
822CYGPATH_W
823am__isrc
824INSTALL_DATA
825INSTALL_SCRIPT
826INSTALL_PROGRAM
827target_alias
828host_alias
829build_alias
830LIBS
831ECHO_T
832ECHO_N
833ECHO_C
834DEFS
835mandir
836localedir
837libdir
838psdir
839pdfdir
840dvidir
841htmldir
842infodir
843docdir
844oldincludedir
845includedir
846runstatedir
847localstatedir
848sharedstatedir
849sysconfdir
850datadir
851datarootdir
852libexecdir
853sbindir
854bindir
855program_transform_name
856prefix
857exec_prefix
858PACKAGE_URL
859PACKAGE_BUGREPORT
860PACKAGE_STRING
861PACKAGE_VERSION
862PACKAGE_TARNAME
863PACKAGE_NAME
864PATH_SEPARATOR
865SHELL
866am__quote'
867ac_subst_files=''
868ac_user_opts='
869enable_option_checking
870enable_silent_rules
871enable_shared
872enable_static
873with_pic
874enable_fast_install
875with_aix_soname
876enable_dependency_tracking
877with_gnu_ld
878with_sysroot
879enable_libtool_lock
880enable_selective_werror
881enable_strict_compilation
882enable_specs
883with_xmlto
884with_fop
885with_xsltproc
886enable_xaw6
887enable_xaw7
888enable_const
889'
890      ac_precious_vars='build_alias
891host_alias
892target_alias
893CC
894CFLAGS
895LDFLAGS
896LIBS
897CPPFLAGS
898LT_SYS_LIBRARY_PATH
899CPP
900PKG_CONFIG
901PKG_CONFIG_PATH
902PKG_CONFIG_LIBDIR
903XMLTO
904FOP
905XSLTPROC
906XAW6_CFLAGS
907XAW6_LIBS
908XAW7_CFLAGS
909XAW7_LIBS'
910
911
912# Initialize some variables set by options.
913ac_init_help=
914ac_init_version=false
915ac_unrecognized_opts=
916ac_unrecognized_sep=
917# The variables have the same names as the options, with
918# dashes changed to underlines.
919cache_file=/dev/null
920exec_prefix=NONE
921no_create=
922no_recursion=
923prefix=NONE
924program_prefix=NONE
925program_suffix=NONE
926program_transform_name=s,x,x,
927silent=
928site=
929srcdir=
930verbose=
931x_includes=NONE
932x_libraries=NONE
933
934# Installation directory options.
935# These are left unexpanded so users can "make install exec_prefix=/foo"
936# and all the variables that are supposed to be based on exec_prefix
937# by default will actually change.
938# Use braces instead of parens because sh, perl, etc. also accept them.
939# (The list follows the same order as the GNU Coding Standards.)
940bindir='${exec_prefix}/bin'
941sbindir='${exec_prefix}/sbin'
942libexecdir='${exec_prefix}/libexec'
943datarootdir='${prefix}/share'
944datadir='${datarootdir}'
945sysconfdir='${prefix}/etc'
946sharedstatedir='${prefix}/com'
947localstatedir='${prefix}/var'
948runstatedir='${localstatedir}/run'
949includedir='${prefix}/include'
950oldincludedir='/usr/include'
951docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952infodir='${datarootdir}/info'
953htmldir='${docdir}'
954dvidir='${docdir}'
955pdfdir='${docdir}'
956psdir='${docdir}'
957libdir='${exec_prefix}/lib'
958localedir='${datarootdir}/locale'
959mandir='${datarootdir}/man'
960
961ac_prev=
962ac_dashdash=
963for ac_option
964do
965  # If the previous option needs an argument, assign it.
966  if test -n "$ac_prev"; then
967    eval $ac_prev=\$ac_option
968    ac_prev=
969    continue
970  fi
971
972  case $ac_option in
973  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974  *=)   ac_optarg= ;;
975  *)    ac_optarg=yes ;;
976  esac
977
978  # Accept the important Cygnus configure options, so we can diagnose typos.
979
980  case $ac_dashdash$ac_option in
981  --)
982    ac_dashdash=yes ;;
983
984  -bindir | --bindir | --bindi | --bind | --bin | --bi)
985    ac_prev=bindir ;;
986  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987    bindir=$ac_optarg ;;
988
989  -build | --build | --buil | --bui | --bu)
990    ac_prev=build_alias ;;
991  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992    build_alias=$ac_optarg ;;
993
994  -cache-file | --cache-file | --cache-fil | --cache-fi \
995  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996    ac_prev=cache_file ;;
997  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999    cache_file=$ac_optarg ;;
1000
1001  --config-cache | -C)
1002    cache_file=config.cache ;;
1003
1004  -datadir | --datadir | --datadi | --datad)
1005    ac_prev=datadir ;;
1006  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007    datadir=$ac_optarg ;;
1008
1009  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010  | --dataroo | --dataro | --datar)
1011    ac_prev=datarootdir ;;
1012  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014    datarootdir=$ac_optarg ;;
1015
1016  -disable-* | --disable-*)
1017    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018    # Reject names that are not valid shell variable names.
1019    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020      as_fn_error $? "invalid feature name: $ac_useropt"
1021    ac_useropt_orig=$ac_useropt
1022    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023    case $ac_user_opts in
1024      *"
1025"enable_$ac_useropt"
1026"*) ;;
1027      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1028	 ac_unrecognized_sep=', ';;
1029    esac
1030    eval enable_$ac_useropt=no ;;
1031
1032  -docdir | --docdir | --docdi | --doc | --do)
1033    ac_prev=docdir ;;
1034  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1035    docdir=$ac_optarg ;;
1036
1037  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038    ac_prev=dvidir ;;
1039  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1040    dvidir=$ac_optarg ;;
1041
1042  -enable-* | --enable-*)
1043    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1044    # Reject names that are not valid shell variable names.
1045    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046      as_fn_error $? "invalid feature name: $ac_useropt"
1047    ac_useropt_orig=$ac_useropt
1048    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049    case $ac_user_opts in
1050      *"
1051"enable_$ac_useropt"
1052"*) ;;
1053      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1054	 ac_unrecognized_sep=', ';;
1055    esac
1056    eval enable_$ac_useropt=\$ac_optarg ;;
1057
1058  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060  | --exec | --exe | --ex)
1061    ac_prev=exec_prefix ;;
1062  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064  | --exec=* | --exe=* | --ex=*)
1065    exec_prefix=$ac_optarg ;;
1066
1067  -gas | --gas | --ga | --g)
1068    # Obsolete; use --with-gas.
1069    with_gas=yes ;;
1070
1071  -help | --help | --hel | --he | -h)
1072    ac_init_help=long ;;
1073  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074    ac_init_help=recursive ;;
1075  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076    ac_init_help=short ;;
1077
1078  -host | --host | --hos | --ho)
1079    ac_prev=host_alias ;;
1080  -host=* | --host=* | --hos=* | --ho=*)
1081    host_alias=$ac_optarg ;;
1082
1083  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084    ac_prev=htmldir ;;
1085  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086  | --ht=*)
1087    htmldir=$ac_optarg ;;
1088
1089  -includedir | --includedir | --includedi | --included | --include \
1090  | --includ | --inclu | --incl | --inc)
1091    ac_prev=includedir ;;
1092  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093  | --includ=* | --inclu=* | --incl=* | --inc=*)
1094    includedir=$ac_optarg ;;
1095
1096  -infodir | --infodir | --infodi | --infod | --info | --inf)
1097    ac_prev=infodir ;;
1098  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099    infodir=$ac_optarg ;;
1100
1101  -libdir | --libdir | --libdi | --libd)
1102    ac_prev=libdir ;;
1103  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104    libdir=$ac_optarg ;;
1105
1106  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107  | --libexe | --libex | --libe)
1108    ac_prev=libexecdir ;;
1109  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110  | --libexe=* | --libex=* | --libe=*)
1111    libexecdir=$ac_optarg ;;
1112
1113  -localedir | --localedir | --localedi | --localed | --locale)
1114    ac_prev=localedir ;;
1115  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116    localedir=$ac_optarg ;;
1117
1118  -localstatedir | --localstatedir | --localstatedi | --localstated \
1119  | --localstate | --localstat | --localsta | --localst | --locals)
1120    ac_prev=localstatedir ;;
1121  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123    localstatedir=$ac_optarg ;;
1124
1125  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126    ac_prev=mandir ;;
1127  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128    mandir=$ac_optarg ;;
1129
1130  -nfp | --nfp | --nf)
1131    # Obsolete; use --without-fp.
1132    with_fp=no ;;
1133
1134  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135  | --no-cr | --no-c | -n)
1136    no_create=yes ;;
1137
1138  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140    no_recursion=yes ;;
1141
1142  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144  | --oldin | --oldi | --old | --ol | --o)
1145    ac_prev=oldincludedir ;;
1146  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149    oldincludedir=$ac_optarg ;;
1150
1151  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152    ac_prev=prefix ;;
1153  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154    prefix=$ac_optarg ;;
1155
1156  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157  | --program-pre | --program-pr | --program-p)
1158    ac_prev=program_prefix ;;
1159  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161    program_prefix=$ac_optarg ;;
1162
1163  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164  | --program-suf | --program-su | --program-s)
1165    ac_prev=program_suffix ;;
1166  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168    program_suffix=$ac_optarg ;;
1169
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    ac_prev=program_transform_name ;;
1178  -program-transform-name=* | --program-transform-name=* \
1179  | --program-transform-nam=* | --program-transform-na=* \
1180  | --program-transform-n=* | --program-transform-=* \
1181  | --program-transform=* | --program-transfor=* \
1182  | --program-transfo=* | --program-transf=* \
1183  | --program-trans=* | --program-tran=* \
1184  | --progr-tra=* | --program-tr=* | --program-t=*)
1185    program_transform_name=$ac_optarg ;;
1186
1187  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188    ac_prev=pdfdir ;;
1189  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190    pdfdir=$ac_optarg ;;
1191
1192  -psdir | --psdir | --psdi | --psd | --ps)
1193    ac_prev=psdir ;;
1194  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195    psdir=$ac_optarg ;;
1196
1197  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198  | -silent | --silent | --silen | --sile | --sil)
1199    silent=yes ;;
1200
1201  -runstatedir | --runstatedir | --runstatedi | --runstated \
1202  | --runstate | --runstat | --runsta | --runst | --runs \
1203  | --run | --ru | --r)
1204    ac_prev=runstatedir ;;
1205  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1206  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1207  | --run=* | --ru=* | --r=*)
1208    runstatedir=$ac_optarg ;;
1209
1210  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211    ac_prev=sbindir ;;
1212  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213  | --sbi=* | --sb=*)
1214    sbindir=$ac_optarg ;;
1215
1216  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218  | --sharedst | --shareds | --shared | --share | --shar \
1219  | --sha | --sh)
1220    ac_prev=sharedstatedir ;;
1221  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224  | --sha=* | --sh=*)
1225    sharedstatedir=$ac_optarg ;;
1226
1227  -site | --site | --sit)
1228    ac_prev=site ;;
1229  -site=* | --site=* | --sit=*)
1230    site=$ac_optarg ;;
1231
1232  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233    ac_prev=srcdir ;;
1234  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235    srcdir=$ac_optarg ;;
1236
1237  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238  | --syscon | --sysco | --sysc | --sys | --sy)
1239    ac_prev=sysconfdir ;;
1240  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242    sysconfdir=$ac_optarg ;;
1243
1244  -target | --target | --targe | --targ | --tar | --ta | --t)
1245    ac_prev=target_alias ;;
1246  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247    target_alias=$ac_optarg ;;
1248
1249  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250    verbose=yes ;;
1251
1252  -version | --version | --versio | --versi | --vers | -V)
1253    ac_init_version=: ;;
1254
1255  -with-* | --with-*)
1256    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257    # Reject names that are not valid shell variable names.
1258    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259      as_fn_error $? "invalid package name: $ac_useropt"
1260    ac_useropt_orig=$ac_useropt
1261    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262    case $ac_user_opts in
1263      *"
1264"with_$ac_useropt"
1265"*) ;;
1266      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267	 ac_unrecognized_sep=', ';;
1268    esac
1269    eval with_$ac_useropt=\$ac_optarg ;;
1270
1271  -without-* | --without-*)
1272    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273    # Reject names that are not valid shell variable names.
1274    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275      as_fn_error $? "invalid package name: $ac_useropt"
1276    ac_useropt_orig=$ac_useropt
1277    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278    case $ac_user_opts in
1279      *"
1280"with_$ac_useropt"
1281"*) ;;
1282      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283	 ac_unrecognized_sep=', ';;
1284    esac
1285    eval with_$ac_useropt=no ;;
1286
1287  --x)
1288    # Obsolete; use --with-x.
1289    with_x=yes ;;
1290
1291  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292  | --x-incl | --x-inc | --x-in | --x-i)
1293    ac_prev=x_includes ;;
1294  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296    x_includes=$ac_optarg ;;
1297
1298  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300    ac_prev=x_libraries ;;
1301  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303    x_libraries=$ac_optarg ;;
1304
1305  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306Try \`$0 --help' for more information"
1307    ;;
1308
1309  *=*)
1310    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311    # Reject names that are not valid shell variable names.
1312    case $ac_envvar in #(
1313      '' | [0-9]* | *[!_$as_cr_alnum]* )
1314      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315    esac
1316    eval $ac_envvar=\$ac_optarg
1317    export $ac_envvar ;;
1318
1319  *)
1320    # FIXME: should be removed in autoconf 3.0.
1321    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325    ;;
1326
1327  esac
1328done
1329
1330if test -n "$ac_prev"; then
1331  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332  as_fn_error $? "missing argument to $ac_option"
1333fi
1334
1335if test -n "$ac_unrecognized_opts"; then
1336  case $enable_option_checking in
1337    no) ;;
1338    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340  esac
1341fi
1342
1343# Check all directory arguments for consistency.
1344for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345		datadir sysconfdir sharedstatedir localstatedir includedir \
1346		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347		libdir localedir mandir runstatedir
1348do
1349  eval ac_val=\$$ac_var
1350  # Remove trailing slashes.
1351  case $ac_val in
1352    */ )
1353      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354      eval $ac_var=\$ac_val;;
1355  esac
1356  # Be sure to have absolute directory names.
1357  case $ac_val in
1358    [\\/$]* | ?:[\\/]* )  continue;;
1359    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360  esac
1361  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362done
1363
1364# There might be people who depend on the old broken behavior: `$host'
1365# used to hold the argument of --host etc.
1366# FIXME: To remove some day.
1367build=$build_alias
1368host=$host_alias
1369target=$target_alias
1370
1371# FIXME: To remove some day.
1372if test "x$host_alias" != x; then
1373  if test "x$build_alias" = x; then
1374    cross_compiling=maybe
1375  elif test "x$build_alias" != "x$host_alias"; then
1376    cross_compiling=yes
1377  fi
1378fi
1379
1380ac_tool_prefix=
1381test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383test "$silent" = yes && exec 6>/dev/null
1384
1385
1386ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387ac_ls_di=`ls -di .` &&
1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389  as_fn_error $? "working directory cannot be determined"
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391  as_fn_error $? "pwd does not report name of working directory"
1392
1393
1394# Find the source files, if location was not specified.
1395if test -z "$srcdir"; then
1396  ac_srcdir_defaulted=yes
1397  # Try the directory containing this script, then the parent directory.
1398  ac_confdir=`$as_dirname -- "$as_myself" ||
1399$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400	 X"$as_myself" : 'X\(//\)[^/]' \| \
1401	 X"$as_myself" : 'X\(//\)$' \| \
1402	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403$as_echo X"$as_myself" |
1404    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405	    s//\1/
1406	    q
1407	  }
1408	  /^X\(\/\/\)[^/].*/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\/\)$/{
1413	    s//\1/
1414	    q
1415	  }
1416	  /^X\(\/\).*/{
1417	    s//\1/
1418	    q
1419	  }
1420	  s/.*/./; q'`
1421  srcdir=$ac_confdir
1422  if test ! -r "$srcdir/$ac_unique_file"; then
1423    srcdir=..
1424  fi
1425else
1426  ac_srcdir_defaulted=no
1427fi
1428if test ! -r "$srcdir/$ac_unique_file"; then
1429  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431fi
1432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435	pwd)`
1436# When building in place, set srcdir=.
1437if test "$ac_abs_confdir" = "$ac_pwd"; then
1438  srcdir=.
1439fi
1440# Remove unnecessary trailing slashes from srcdir.
1441# Double slashes in file names in object file debugging info
1442# mess up M-x gdb in Emacs.
1443case $srcdir in
1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445esac
1446for ac_var in $ac_precious_vars; do
1447  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448  eval ac_env_${ac_var}_value=\$${ac_var}
1449  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451done
1452
1453#
1454# Report the --help message.
1455#
1456if test "$ac_init_help" = "long"; then
1457  # Omit some internal or obsolete options to make the list less imposing.
1458  # This message is too long to be a string in the A/UX 3.1 sh.
1459  cat <<_ACEOF
1460\`configure' configures libXaw 1.0.14 to adapt to many kinds of systems.
1461
1462Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465VAR=VALUE.  See below for descriptions of some of the useful variables.
1466
1467Defaults for the options are specified in brackets.
1468
1469Configuration:
1470  -h, --help              display this help and exit
1471      --help=short        display options specific to this package
1472      --help=recursive    display the short help of all the included packages
1473  -V, --version           display version information and exit
1474  -q, --quiet, --silent   do not print \`checking ...' messages
1475      --cache-file=FILE   cache test results in FILE [disabled]
1476  -C, --config-cache      alias for \`--cache-file=config.cache'
1477  -n, --no-create         do not create output files
1478      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1479
1480Installation directories:
1481  --prefix=PREFIX         install architecture-independent files in PREFIX
1482                          [$ac_default_prefix]
1483  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1484                          [PREFIX]
1485
1486By default, \`make install' will install all the files in
1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1488an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489for instance \`--prefix=\$HOME'.
1490
1491For better control, use the options below.
1492
1493Fine tuning of the installation directories:
1494  --bindir=DIR            user executables [EPREFIX/bin]
1495  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1496  --libexecdir=DIR        program executables [EPREFIX/libexec]
1497  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1498  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1499  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1500  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1501  --libdir=DIR            object code libraries [EPREFIX/lib]
1502  --includedir=DIR        C header files [PREFIX/include]
1503  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1504  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1505  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1506  --infodir=DIR           info documentation [DATAROOTDIR/info]
1507  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1508  --mandir=DIR            man documentation [DATAROOTDIR/man]
1509  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXaw]
1510  --htmldir=DIR           html documentation [DOCDIR]
1511  --dvidir=DIR            dvi documentation [DOCDIR]
1512  --pdfdir=DIR            pdf documentation [DOCDIR]
1513  --psdir=DIR             ps documentation [DOCDIR]
1514_ACEOF
1515
1516  cat <<\_ACEOF
1517
1518Program names:
1519  --program-prefix=PREFIX            prepend PREFIX to installed program names
1520  --program-suffix=SUFFIX            append SUFFIX to installed program names
1521  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1522
1523System types:
1524  --build=BUILD     configure for building on BUILD [guessed]
1525  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1526_ACEOF
1527fi
1528
1529if test -n "$ac_init_help"; then
1530  case $ac_init_help in
1531     short | recursive ) echo "Configuration of libXaw 1.0.14:";;
1532   esac
1533  cat <<\_ACEOF
1534
1535Optional Features:
1536  --disable-option-checking  ignore unrecognized --enable/--with options
1537  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539  --enable-silent-rules   less verbose build output (undo: "make V=1")
1540  --disable-silent-rules  verbose build output (undo: "make V=0")
1541  --enable-shared[=PKGS]  build shared libraries [default=yes]
1542  --enable-static[=PKGS]  build static libraries [default=yes]
1543  --enable-fast-install[=PKGS]
1544                          optimize for fast installation [default=yes]
1545  --enable-dependency-tracking
1546                          do not reject slow dependency extractors
1547  --disable-dependency-tracking
1548                          speeds up one-time build
1549  --disable-libtool-lock  avoid locking (might break parallel builds)
1550  --disable-selective-werror
1551                          Turn off selective compiler errors. (default:
1552                          enabled)
1553  --enable-strict-compilation
1554                          Enable all warnings from compiler and make them
1555                          errors (default: disabled)
1556  --enable-specs          Enable building the specs (default: yes)
1557  --disable-xaw6          Disable building of libXaw.so.6
1558  --disable-xaw7          Disable building of libXaw.so.7
1559  --disable-const         Disable const-support
1560
1561Optional Packages:
1562  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1563  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1564  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1565                          both]
1566  --with-aix-soname=aix|svr4|both
1567                          shared library versioning (aka "SONAME") variant to
1568                          provide on AIX, [default=aix].
1569  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1570  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1571                          compiler's sysroot if not specified).
1572  --with-xmlto            Use xmlto to regenerate documentation (default:
1573                          auto)
1574  --with-fop              Use fop to regenerate documentation (default: auto)
1575  --with-xsltproc         Use xsltproc for the transformation of XML documents
1576                          (default: auto)
1577
1578Some influential environment variables:
1579  CC          C compiler command
1580  CFLAGS      C compiler flags
1581  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1582              nonstandard directory <lib dir>
1583  LIBS        libraries to pass to the linker, e.g. -l<library>
1584  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1585              you have headers in a nonstandard directory <include dir>
1586  LT_SYS_LIBRARY_PATH
1587              User-defined run-time library search path.
1588  CPP         C preprocessor
1589  PKG_CONFIG  path to pkg-config utility
1590  PKG_CONFIG_PATH
1591              directories to add to pkg-config's search path
1592  PKG_CONFIG_LIBDIR
1593              path overriding pkg-config's built-in search path
1594  XMLTO       Path to xmlto command
1595  FOP         Path to fop command
1596  XSLTPROC    Path to xsltproc command
1597  XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config
1598  XAW6_LIBS   linker flags for XAW6, overriding pkg-config
1599  XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config
1600  XAW7_LIBS   linker flags for XAW7, overriding pkg-config
1601
1602Use these variables to override the choices made by `configure' or to help
1603it to find libraries and programs with nonstandard names/locations.
1604
1605Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXaw/issues>.
1606_ACEOF
1607ac_status=$?
1608fi
1609
1610if test "$ac_init_help" = "recursive"; then
1611  # If there are subdirs, report their specific --help.
1612  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613    test -d "$ac_dir" ||
1614      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615      continue
1616    ac_builddir=.
1617
1618case "$ac_dir" in
1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620*)
1621  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622  # A ".." for each directory in $ac_dir_suffix.
1623  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624  case $ac_top_builddir_sub in
1625  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627  esac ;;
1628esac
1629ac_abs_top_builddir=$ac_pwd
1630ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631# for backward compatibility:
1632ac_top_builddir=$ac_top_build_prefix
1633
1634case $srcdir in
1635  .)  # We are building in place.
1636    ac_srcdir=.
1637    ac_top_srcdir=$ac_top_builddir_sub
1638    ac_abs_top_srcdir=$ac_pwd ;;
1639  [\\/]* | ?:[\\/]* )  # Absolute name.
1640    ac_srcdir=$srcdir$ac_dir_suffix;
1641    ac_top_srcdir=$srcdir
1642    ac_abs_top_srcdir=$srcdir ;;
1643  *) # Relative name.
1644    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645    ac_top_srcdir=$ac_top_build_prefix$srcdir
1646    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647esac
1648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650    cd "$ac_dir" || { ac_status=$?; continue; }
1651    # Check for guested configure.
1652    if test -f "$ac_srcdir/configure.gnu"; then
1653      echo &&
1654      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655    elif test -f "$ac_srcdir/configure"; then
1656      echo &&
1657      $SHELL "$ac_srcdir/configure" --help=recursive
1658    else
1659      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660    fi || ac_status=$?
1661    cd "$ac_pwd" || { ac_status=$?; break; }
1662  done
1663fi
1664
1665test -n "$ac_init_help" && exit $ac_status
1666if $ac_init_version; then
1667  cat <<\_ACEOF
1668libXaw configure 1.0.14
1669generated by GNU Autoconf 2.69
1670
1671Copyright (C) 2012 Free Software Foundation, Inc.
1672This configure script is free software; the Free Software Foundation
1673gives unlimited permission to copy, distribute and modify it.
1674_ACEOF
1675  exit
1676fi
1677
1678## ------------------------ ##
1679## Autoconf initialization. ##
1680## ------------------------ ##
1681
1682# ac_fn_c_try_compile LINENO
1683# --------------------------
1684# Try to compile conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_compile ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  rm -f conftest.$ac_objext
1689  if { { ac_try="$ac_compile"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_compile") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } && {
1705	 test -z "$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       } && test -s conftest.$ac_objext; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713	ac_retval=1
1714fi
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_compile
1719
1720# ac_fn_c_try_link LINENO
1721# -----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_link ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  rm -f conftest.$ac_objext conftest$ac_exeext
1727  if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734  (eval "$ac_link") 2>conftest.err
1735  ac_status=$?
1736  if test -s conftest.err; then
1737    grep -v '^ *+' conftest.err >conftest.er1
1738    cat conftest.er1 >&5
1739    mv -f conftest.er1 conftest.err
1740  fi
1741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742  test $ac_status = 0; } && {
1743	 test -z "$ac_c_werror_flag" ||
1744	 test ! -s conftest.err
1745       } && test -s conftest$ac_exeext && {
1746	 test "$cross_compiling" = yes ||
1747	 test -x conftest$ac_exeext
1748       }; then :
1749  ac_retval=0
1750else
1751  $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754	ac_retval=1
1755fi
1756  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758  # interfere with the next link command; also delete a directory that is
1759  # left behind by Apple's compiler.  We do this before executing the actions.
1760  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762  as_fn_set_status $ac_retval
1763
1764} # ac_fn_c_try_link
1765
1766# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767# -------------------------------------------------------
1768# Tests whether HEADER exists and can be compiled using the include files in
1769# INCLUDES, setting the cache variable VAR accordingly.
1770ac_fn_c_check_header_compile ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if eval \${$3+:} false; then :
1776  $as_echo_n "(cached) " >&6
1777else
1778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h.  */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784  eval "$3=yes"
1785else
1786  eval "$3=no"
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789fi
1790eval ac_res=\$$3
1791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795} # ac_fn_c_check_header_compile
1796
1797# ac_fn_c_try_cpp LINENO
1798# ----------------------
1799# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800ac_fn_c_try_cpp ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  if { { ac_try="$ac_cpp conftest.$ac_ext"
1804case "(($ac_try" in
1805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806  *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811  ac_status=$?
1812  if test -s conftest.err; then
1813    grep -v '^ *+' conftest.err >conftest.er1
1814    cat conftest.er1 >&5
1815    mv -f conftest.er1 conftest.err
1816  fi
1817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818  test $ac_status = 0; } > conftest.i && {
1819	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820	 test ! -s conftest.err
1821       }; then :
1822  ac_retval=0
1823else
1824  $as_echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827    ac_retval=1
1828fi
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830  as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_cpp
1833
1834# ac_fn_c_try_run LINENO
1835# ----------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837# that executables *can* be run.
1838ac_fn_c_try_run ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844  *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848  (eval "$ac_link") 2>&5
1849  ac_status=$?
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852  { { case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_try") 2>&5
1859  ac_status=$?
1860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861  test $ac_status = 0; }; }; then :
1862  ac_retval=0
1863else
1864  $as_echo "$as_me: program exited with status $ac_status" >&5
1865       $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868       ac_retval=$ac_status
1869fi
1870  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_run
1875
1876# ac_fn_c_check_func LINENO FUNC VAR
1877# ----------------------------------
1878# Tests whether FUNC exists, setting the cache variable VAR accordingly
1879ac_fn_c_check_func ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if eval \${$3+:} false; then :
1885  $as_echo_n "(cached) " >&6
1886else
1887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h.  */
1889/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1891#define $2 innocuous_$2
1892
1893/* System header to define __stub macros and hopefully few prototypes,
1894    which can conflict with char $2 (); below.
1895    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896    <limits.h> exists even on freestanding compilers.  */
1897
1898#ifdef __STDC__
1899# include <limits.h>
1900#else
1901# include <assert.h>
1902#endif
1903
1904#undef $2
1905
1906/* Override any GCC internal prototype to avoid an error.
1907   Use char because int might match the return type of a GCC
1908   builtin and then its argument prototype would still apply.  */
1909#ifdef __cplusplus
1910extern "C"
1911#endif
1912char $2 ();
1913/* The GNU C library defines this for functions which it implements
1914    to always fail with ENOSYS.  Some functions are actually named
1915    something starting with __ and the normal name is an alias.  */
1916#if defined __stub_$2 || defined __stub___$2
1917choke me
1918#endif
1919
1920int
1921main ()
1922{
1923return $2 ();
1924  ;
1925  return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_link "$LINENO"; then :
1929  eval "$3=yes"
1930else
1931  eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext \
1934    conftest$ac_exeext conftest.$ac_ext
1935fi
1936eval ac_res=\$$3
1937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
1939  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940
1941} # ac_fn_c_check_func
1942
1943# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1944# ---------------------------------------------
1945# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1946# accordingly.
1947ac_fn_c_check_decl ()
1948{
1949  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950  as_decl_name=`echo $2|sed 's/ *(.*//'`
1951  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1953$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1954if eval \${$3+:} false; then :
1955  $as_echo_n "(cached) " >&6
1956else
1957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h.  */
1959$4
1960int
1961main ()
1962{
1963#ifndef $as_decl_name
1964#ifdef __cplusplus
1965  (void) $as_decl_use;
1966#else
1967  (void) $as_decl_name;
1968#endif
1969#endif
1970
1971  ;
1972  return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976  eval "$3=yes"
1977else
1978  eval "$3=no"
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982eval ac_res=\$$3
1983	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987} # ac_fn_c_check_decl
1988
1989# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1990# -------------------------------------------------------
1991# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1992# the include files in INCLUDES and setting the cache variable VAR
1993# accordingly.
1994ac_fn_c_check_header_mongrel ()
1995{
1996  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997  if eval \${$3+:} false; then :
1998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval \${$3+:} false; then :
2001  $as_echo_n "(cached) " >&6
2002fi
2003eval ac_res=\$$3
2004	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006else
2007  # Is the header compilable?
2008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2009$as_echo_n "checking $2 usability... " >&6; }
2010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012$4
2013#include <$2>
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016  ac_header_compiler=yes
2017else
2018  ac_header_compiler=no
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2022$as_echo "$ac_header_compiler" >&6; }
2023
2024# Is the header present?
2025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2026$as_echo_n "checking $2 presence... " >&6; }
2027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029#include <$2>
2030_ACEOF
2031if ac_fn_c_try_cpp "$LINENO"; then :
2032  ac_header_preproc=yes
2033else
2034  ac_header_preproc=no
2035fi
2036rm -f conftest.err conftest.i conftest.$ac_ext
2037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2038$as_echo "$ac_header_preproc" >&6; }
2039
2040# So?  What about this header?
2041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2042  yes:no: )
2043    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2044$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2045    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047    ;;
2048  no:yes:* )
2049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2050$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2051    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2052$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2054$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2055    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2056$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2057    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2058$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059( $as_echo "## -------------------------------------------------------------------- ##
2060## Report this to https://gitlab.freedesktop.org/xorg/lib/libXaw/issues ##
2061## -------------------------------------------------------------------- ##"
2062     ) | sed "s/^/$as_me: WARNING:     /" >&2
2063    ;;
2064esac
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
2067if eval \${$3+:} false; then :
2068  $as_echo_n "(cached) " >&6
2069else
2070  eval "$3=\$ac_header_compiler"
2071fi
2072eval ac_res=\$$3
2073	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075fi
2076  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078} # ac_fn_c_check_header_mongrel
2079cat >config.log <<_ACEOF
2080This file contains any messages produced by compilers while
2081running configure, to aid debugging if configure makes a mistake.
2082
2083It was created by libXaw $as_me 1.0.14, which was
2084generated by GNU Autoconf 2.69.  Invocation command line was
2085
2086  $ $0 $@
2087
2088_ACEOF
2089exec 5>>config.log
2090{
2091cat <<_ASUNAME
2092## --------- ##
2093## Platform. ##
2094## --------- ##
2095
2096hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2097uname -m = `(uname -m) 2>/dev/null || echo unknown`
2098uname -r = `(uname -r) 2>/dev/null || echo unknown`
2099uname -s = `(uname -s) 2>/dev/null || echo unknown`
2100uname -v = `(uname -v) 2>/dev/null || echo unknown`
2101
2102/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2103/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2104
2105/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2106/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2107/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2108/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2109/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2110/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2111/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2112
2113_ASUNAME
2114
2115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116for as_dir in $PATH
2117do
2118  IFS=$as_save_IFS
2119  test -z "$as_dir" && as_dir=.
2120    $as_echo "PATH: $as_dir"
2121  done
2122IFS=$as_save_IFS
2123
2124} >&5
2125
2126cat >&5 <<_ACEOF
2127
2128
2129## ----------- ##
2130## Core tests. ##
2131## ----------- ##
2132
2133_ACEOF
2134
2135
2136# Keep a trace of the command line.
2137# Strip out --no-create and --no-recursion so they do not pile up.
2138# Strip out --silent because we don't want to record it for future runs.
2139# Also quote any args containing shell meta-characters.
2140# Make two passes to allow for proper duplicate-argument suppression.
2141ac_configure_args=
2142ac_configure_args0=
2143ac_configure_args1=
2144ac_must_keep_next=false
2145for ac_pass in 1 2
2146do
2147  for ac_arg
2148  do
2149    case $ac_arg in
2150    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2151    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2152    | -silent | --silent | --silen | --sile | --sil)
2153      continue ;;
2154    *\'*)
2155      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2156    esac
2157    case $ac_pass in
2158    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2159    2)
2160      as_fn_append ac_configure_args1 " '$ac_arg'"
2161      if test $ac_must_keep_next = true; then
2162	ac_must_keep_next=false # Got value, back to normal.
2163      else
2164	case $ac_arg in
2165	  *=* | --config-cache | -C | -disable-* | --disable-* \
2166	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2167	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2168	  | -with-* | --with-* | -without-* | --without-* | --x)
2169	    case "$ac_configure_args0 " in
2170	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2171	    esac
2172	    ;;
2173	  -* ) ac_must_keep_next=true ;;
2174	esac
2175      fi
2176      as_fn_append ac_configure_args " '$ac_arg'"
2177      ;;
2178    esac
2179  done
2180done
2181{ ac_configure_args0=; unset ac_configure_args0;}
2182{ ac_configure_args1=; unset ac_configure_args1;}
2183
2184# When interrupted or exit'd, cleanup temporary files, and complete
2185# config.log.  We remove comments because anyway the quotes in there
2186# would cause problems or look ugly.
2187# WARNING: Use '\'' to represent an apostrophe within the trap.
2188# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2189trap 'exit_status=$?
2190  # Save into config.log some information that might help in debugging.
2191  {
2192    echo
2193
2194    $as_echo "## ---------------- ##
2195## Cache variables. ##
2196## ---------------- ##"
2197    echo
2198    # The following way of writing the cache mishandles newlines in values,
2199(
2200  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2201    eval ac_val=\$$ac_var
2202    case $ac_val in #(
2203    *${as_nl}*)
2204      case $ac_var in #(
2205      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2207      esac
2208      case $ac_var in #(
2209      _ | IFS | as_nl) ;; #(
2210      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2211      *) { eval $ac_var=; unset $ac_var;} ;;
2212      esac ;;
2213    esac
2214  done
2215  (set) 2>&1 |
2216    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2217    *${as_nl}ac_space=\ *)
2218      sed -n \
2219	"s/'\''/'\''\\\\'\'''\''/g;
2220	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2221      ;; #(
2222    *)
2223      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224      ;;
2225    esac |
2226    sort
2227)
2228    echo
2229
2230    $as_echo "## ----------------- ##
2231## Output variables. ##
2232## ----------------- ##"
2233    echo
2234    for ac_var in $ac_subst_vars
2235    do
2236      eval ac_val=\$$ac_var
2237      case $ac_val in
2238      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239      esac
2240      $as_echo "$ac_var='\''$ac_val'\''"
2241    done | sort
2242    echo
2243
2244    if test -n "$ac_subst_files"; then
2245      $as_echo "## ------------------- ##
2246## File substitutions. ##
2247## ------------------- ##"
2248      echo
2249      for ac_var in $ac_subst_files
2250      do
2251	eval ac_val=\$$ac_var
2252	case $ac_val in
2253	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254	esac
2255	$as_echo "$ac_var='\''$ac_val'\''"
2256      done | sort
2257      echo
2258    fi
2259
2260    if test -s confdefs.h; then
2261      $as_echo "## ----------- ##
2262## confdefs.h. ##
2263## ----------- ##"
2264      echo
2265      cat confdefs.h
2266      echo
2267    fi
2268    test "$ac_signal" != 0 &&
2269      $as_echo "$as_me: caught signal $ac_signal"
2270    $as_echo "$as_me: exit $exit_status"
2271  } >&5
2272  rm -f core *.core core.conftest.* &&
2273    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2274    exit $exit_status
2275' 0
2276for ac_signal in 1 2 13 15; do
2277  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2278done
2279ac_signal=0
2280
2281# confdefs.h avoids OS command line length limits that DEFS can exceed.
2282rm -f -r conftest* confdefs.h
2283
2284$as_echo "/* confdefs.h */" > confdefs.h
2285
2286# Predefined preprocessor variables.
2287
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_NAME "$PACKAGE_NAME"
2290_ACEOF
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2294_ACEOF
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_VERSION "$PACKAGE_VERSION"
2298_ACEOF
2299
2300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_STRING "$PACKAGE_STRING"
2302_ACEOF
2303
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2306_ACEOF
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_URL "$PACKAGE_URL"
2310_ACEOF
2311
2312
2313# Let the site file select an alternate cache file if it wants to.
2314# Prefer an explicitly selected file to automatically selected ones.
2315ac_site_file1=NONE
2316ac_site_file2=NONE
2317if test -n "$CONFIG_SITE"; then
2318  # We do not want a PATH search for config.site.
2319  case $CONFIG_SITE in #((
2320    -*)  ac_site_file1=./$CONFIG_SITE;;
2321    */*) ac_site_file1=$CONFIG_SITE;;
2322    *)   ac_site_file1=./$CONFIG_SITE;;
2323  esac
2324elif test "x$prefix" != xNONE; then
2325  ac_site_file1=$prefix/share/config.site
2326  ac_site_file2=$prefix/etc/config.site
2327else
2328  ac_site_file1=$ac_default_prefix/share/config.site
2329  ac_site_file2=$ac_default_prefix/etc/config.site
2330fi
2331for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332do
2333  test "x$ac_site_file" = xNONE && continue
2334  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2335    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2336$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2337    sed 's/^/| /' "$ac_site_file" >&5
2338    . "$ac_site_file" \
2339      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341as_fn_error $? "failed to load site script $ac_site_file
2342See \`config.log' for more details" "$LINENO" 5; }
2343  fi
2344done
2345
2346if test -r "$cache_file"; then
2347  # Some versions of bash will fail to source /dev/null (special files
2348  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2349  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2350    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2351$as_echo "$as_me: loading cache $cache_file" >&6;}
2352    case $cache_file in
2353      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2354      *)                      . "./$cache_file";;
2355    esac
2356  fi
2357else
2358  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2359$as_echo "$as_me: creating cache $cache_file" >&6;}
2360  >$cache_file
2361fi
2362
2363# Check that the precious variables saved in the cache have kept the same
2364# value.
2365ac_cache_corrupted=false
2366for ac_var in $ac_precious_vars; do
2367  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2368  eval ac_new_set=\$ac_env_${ac_var}_set
2369  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2370  eval ac_new_val=\$ac_env_${ac_var}_value
2371  case $ac_old_set,$ac_new_set in
2372    set,)
2373      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2374$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2375      ac_cache_corrupted=: ;;
2376    ,set)
2377      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2378$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2379      ac_cache_corrupted=: ;;
2380    ,);;
2381    *)
2382      if test "x$ac_old_val" != "x$ac_new_val"; then
2383	# differences in whitespace do not lead to failure.
2384	ac_old_val_w=`echo x $ac_old_val`
2385	ac_new_val_w=`echo x $ac_new_val`
2386	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2387	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2388$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2389	  ac_cache_corrupted=:
2390	else
2391	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2392$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2393	  eval $ac_var=\$ac_old_val
2394	fi
2395	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2396$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2397	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2398$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2399      fi;;
2400  esac
2401  # Pass precious variables to config.status.
2402  if test "$ac_new_set" = set; then
2403    case $ac_new_val in
2404    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2405    *) ac_arg=$ac_var=$ac_new_val ;;
2406    esac
2407    case " $ac_configure_args " in
2408      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2409      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2410    esac
2411  fi
2412done
2413if $ac_cache_corrupted; then
2414  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2417$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2418  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2419fi
2420## -------------------- ##
2421## Main body of script. ##
2422## -------------------- ##
2423
2424ac_ext=c
2425ac_cpp='$CPP $CPPFLAGS'
2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429
2430
2431
2432ac_config_headers="$ac_config_headers config.h"
2433
2434
2435# Initialize Automake
2436am__api_version='1.16'
2437
2438ac_aux_dir=
2439for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2440  if test -f "$ac_dir/install-sh"; then
2441    ac_aux_dir=$ac_dir
2442    ac_install_sh="$ac_aux_dir/install-sh -c"
2443    break
2444  elif test -f "$ac_dir/install.sh"; then
2445    ac_aux_dir=$ac_dir
2446    ac_install_sh="$ac_aux_dir/install.sh -c"
2447    break
2448  elif test -f "$ac_dir/shtool"; then
2449    ac_aux_dir=$ac_dir
2450    ac_install_sh="$ac_aux_dir/shtool install -c"
2451    break
2452  fi
2453done
2454if test -z "$ac_aux_dir"; then
2455  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2456fi
2457
2458# These three variables are undocumented and unsupported,
2459# and are intended to be withdrawn in a future Autoconf release.
2460# They can cause serious problems if a builder's source tree is in a directory
2461# whose full name contains unusual characters.
2462ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2463ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2464ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2465
2466
2467# Find a good install program.  We prefer a C program (faster),
2468# so one script is as good as another.  But avoid the broken or
2469# incompatible versions:
2470# SysV /etc/install, /usr/sbin/install
2471# SunOS /usr/etc/install
2472# IRIX /sbin/install
2473# AIX /bin/install
2474# AmigaOS /C/install, which installs bootblocks on floppy discs
2475# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478# OS/2's system install, which has a completely different semantic
2479# ./install, which can be erroneously created by make from ./install.sh.
2480# Reject install programs that cannot install multiple files.
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482$as_echo_n "checking for a BSD-compatible install... " >&6; }
2483if test -z "$INSTALL"; then
2484if ${ac_cv_path_install+:} false; then :
2485  $as_echo_n "(cached) " >&6
2486else
2487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490  IFS=$as_save_IFS
2491  test -z "$as_dir" && as_dir=.
2492    # Account for people who put trailing slashes in PATH elements.
2493case $as_dir/ in #((
2494  ./ | .// | /[cC]/* | \
2495  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2497  /usr/ucb/* ) ;;
2498  *)
2499    # OSF1 and SCO ODT 3.0 have their own names for install.
2500    # Don't use installbsd from OSF since it installs stuff as root
2501    # by default.
2502    for ac_prog in ginstall scoinst install; do
2503      for ac_exec_ext in '' $ac_executable_extensions; do
2504	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2505	  if test $ac_prog = install &&
2506	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507	    # AIX install.  It has an incompatible calling convention.
2508	    :
2509	  elif test $ac_prog = install &&
2510	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511	    # program-specific install script used by HP pwplus--don't use.
2512	    :
2513	  else
2514	    rm -rf conftest.one conftest.two conftest.dir
2515	    echo one > conftest.one
2516	    echo two > conftest.two
2517	    mkdir conftest.dir
2518	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519	      test -s conftest.one && test -s conftest.two &&
2520	      test -s conftest.dir/conftest.one &&
2521	      test -s conftest.dir/conftest.two
2522	    then
2523	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524	      break 3
2525	    fi
2526	  fi
2527	fi
2528      done
2529    done
2530    ;;
2531esac
2532
2533  done
2534IFS=$as_save_IFS
2535
2536rm -rf conftest.one conftest.two conftest.dir
2537
2538fi
2539  if test "${ac_cv_path_install+set}" = set; then
2540    INSTALL=$ac_cv_path_install
2541  else
2542    # As a last resort, use the slow shell script.  Don't cache a
2543    # value for INSTALL within a source directory, because that will
2544    # break other packages using the cache if that directory is
2545    # removed, or if the value is a relative name.
2546    INSTALL=$ac_install_sh
2547  fi
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550$as_echo "$INSTALL" >&6; }
2551
2552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553# It thinks the first close brace ends the variable substitution.
2554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
2556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557
2558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2561$as_echo_n "checking whether build environment is sane... " >&6; }
2562# Reject unsafe characters in $srcdir or the absolute working directory
2563# name.  Accept space and tab only in the latter.
2564am_lf='
2565'
2566case `pwd` in
2567  *[\\\"\#\$\&\'\`$am_lf]*)
2568    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2569esac
2570case $srcdir in
2571  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2572    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2573esac
2574
2575# Do 'set' in a subshell so we don't clobber the current shell's
2576# arguments.  Must try -L first in case configure is actually a
2577# symlink; some systems play weird games with the mod time of symlinks
2578# (eg FreeBSD returns the mod time of the symlink's containing
2579# directory).
2580if (
2581   am_has_slept=no
2582   for am_try in 1 2; do
2583     echo "timestamp, slept: $am_has_slept" > conftest.file
2584     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585     if test "$*" = "X"; then
2586	# -L didn't work.
2587	set X `ls -t "$srcdir/configure" conftest.file`
2588     fi
2589     if test "$*" != "X $srcdir/configure conftest.file" \
2590	&& test "$*" != "X conftest.file $srcdir/configure"; then
2591
2592	# If neither matched, then we have a broken ls.  This can happen
2593	# if, for instance, CONFIG_SHELL is bash and it inherits a
2594	# broken ls alias from the environment.  This has actually
2595	# happened.  Such a system could not be considered "sane".
2596	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2597  alias in your environment" "$LINENO" 5
2598     fi
2599     if test "$2" = conftest.file || test $am_try -eq 2; then
2600       break
2601     fi
2602     # Just in case.
2603     sleep 1
2604     am_has_slept=yes
2605   done
2606   test "$2" = conftest.file
2607   )
2608then
2609   # Ok.
2610   :
2611else
2612   as_fn_error $? "newly created file is older than distributed files!
2613Check your system clock" "$LINENO" 5
2614fi
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616$as_echo "yes" >&6; }
2617# If we didn't sleep, we still need to ensure time stamps of config.status and
2618# generated files are strictly newer.
2619am_sleep_pid=
2620if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2621  ( sleep 1 ) &
2622  am_sleep_pid=$!
2623fi
2624
2625rm -f conftest.file
2626
2627test "$program_prefix" != NONE &&
2628  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2629# Use a double $ so make ignores it.
2630test "$program_suffix" != NONE &&
2631  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2632# Double any \ or $.
2633# By default was `s,x,x', remove it if useless.
2634ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2635program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2636
2637# Expand $ac_aux_dir to an absolute path.
2638am_aux_dir=`cd "$ac_aux_dir" && pwd`
2639
2640if test x"${MISSING+set}" != xset; then
2641  case $am_aux_dir in
2642  *\ * | *\	*)
2643    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2644  *)
2645    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2646  esac
2647fi
2648# Use eval to expand $SHELL
2649if eval "$MISSING --is-lightweight"; then
2650  am_missing_run="$MISSING "
2651else
2652  am_missing_run=
2653  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2654$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2655fi
2656
2657if test x"${install_sh+set}" != xset; then
2658  case $am_aux_dir in
2659  *\ * | *\	*)
2660    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2661  *)
2662    install_sh="\${SHELL} $am_aux_dir/install-sh"
2663  esac
2664fi
2665
2666# Installed binaries are usually stripped using 'strip' when the user
2667# run "make install-strip".  However 'strip' might not be the right
2668# tool to use in cross-compilation environments, therefore Automake
2669# will honor the 'STRIP' environment variable to overrule this program.
2670if test "$cross_compiling" != no; then
2671  if test -n "$ac_tool_prefix"; then
2672  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2673set dummy ${ac_tool_prefix}strip; ac_word=$2
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675$as_echo_n "checking for $ac_word... " >&6; }
2676if ${ac_cv_prog_STRIP+:} false; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  if test -n "$STRIP"; then
2680  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2681else
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687    for ac_exec_ext in '' $ac_executable_extensions; do
2688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691    break 2
2692  fi
2693done
2694  done
2695IFS=$as_save_IFS
2696
2697fi
2698fi
2699STRIP=$ac_cv_prog_STRIP
2700if test -n "$STRIP"; then
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2702$as_echo "$STRIP" >&6; }
2703else
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705$as_echo "no" >&6; }
2706fi
2707
2708
2709fi
2710if test -z "$ac_cv_prog_STRIP"; then
2711  ac_ct_STRIP=$STRIP
2712  # Extract the first word of "strip", so it can be a program name with args.
2713set dummy strip; ac_word=$2
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
2716if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  if test -n "$ac_ct_STRIP"; then
2720  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725  IFS=$as_save_IFS
2726  test -z "$as_dir" && as_dir=.
2727    for ac_exec_ext in '' $ac_executable_extensions; do
2728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729    ac_cv_prog_ac_ct_STRIP="strip"
2730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731    break 2
2732  fi
2733done
2734  done
2735IFS=$as_save_IFS
2736
2737fi
2738fi
2739ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2740if test -n "$ac_ct_STRIP"; then
2741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2742$as_echo "$ac_ct_STRIP" >&6; }
2743else
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745$as_echo "no" >&6; }
2746fi
2747
2748  if test "x$ac_ct_STRIP" = x; then
2749    STRIP=":"
2750  else
2751    case $cross_compiling:$ac_tool_warned in
2752yes:)
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755ac_tool_warned=yes ;;
2756esac
2757    STRIP=$ac_ct_STRIP
2758  fi
2759else
2760  STRIP="$ac_cv_prog_STRIP"
2761fi
2762
2763fi
2764INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2765
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2767$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2768if test -z "$MKDIR_P"; then
2769  if ${ac_cv_path_mkdir+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2774do
2775  IFS=$as_save_IFS
2776  test -z "$as_dir" && as_dir=.
2777    for ac_prog in mkdir gmkdir; do
2778	 for ac_exec_ext in '' $ac_executable_extensions; do
2779	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2780	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2781	     'mkdir (GNU coreutils) '* | \
2782	     'mkdir (coreutils) '* | \
2783	     'mkdir (fileutils) '4.1*)
2784	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2785	       break 3;;
2786	   esac
2787	 done
2788       done
2789  done
2790IFS=$as_save_IFS
2791
2792fi
2793
2794  test -d ./--version && rmdir ./--version
2795  if test "${ac_cv_path_mkdir+set}" = set; then
2796    MKDIR_P="$ac_cv_path_mkdir -p"
2797  else
2798    # As a last resort, use the slow shell script.  Don't cache a
2799    # value for MKDIR_P within a source directory, because that will
2800    # break other packages using the cache if that directory is
2801    # removed, or if the value is a relative name.
2802    MKDIR_P="$ac_install_sh -d"
2803  fi
2804fi
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2806$as_echo "$MKDIR_P" >&6; }
2807
2808for ac_prog in gawk mawk nawk awk
2809do
2810  # Extract the first word of "$ac_prog", so it can be a program name with args.
2811set dummy $ac_prog; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if ${ac_cv_prog_AWK+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$AWK"; then
2818  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825    for ac_exec_ext in '' $ac_executable_extensions; do
2826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827    ac_cv_prog_AWK="$ac_prog"
2828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832  done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837AWK=$ac_cv_prog_AWK
2838if test -n "$AWK"; then
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2840$as_echo "$AWK" >&6; }
2841else
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847  test -n "$AWK" && break
2848done
2849
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2851$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2852set x ${MAKE-make}
2853ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2854if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2855  $as_echo_n "(cached) " >&6
2856else
2857  cat >conftest.make <<\_ACEOF
2858SHELL = /bin/sh
2859all:
2860	@echo '@@@%%%=$(MAKE)=@@@%%%'
2861_ACEOF
2862# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2863case `${MAKE-make} -f conftest.make 2>/dev/null` in
2864  *@@@%%%=?*=@@@%%%*)
2865    eval ac_cv_prog_make_${ac_make}_set=yes;;
2866  *)
2867    eval ac_cv_prog_make_${ac_make}_set=no;;
2868esac
2869rm -f conftest.make
2870fi
2871if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2873$as_echo "yes" >&6; }
2874  SET_MAKE=
2875else
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877$as_echo "no" >&6; }
2878  SET_MAKE="MAKE=${MAKE-make}"
2879fi
2880
2881rm -rf .tst 2>/dev/null
2882mkdir .tst 2>/dev/null
2883if test -d .tst; then
2884  am__leading_dot=.
2885else
2886  am__leading_dot=_
2887fi
2888rmdir .tst 2>/dev/null
2889
2890# Check whether --enable-silent-rules was given.
2891if test "${enable_silent_rules+set}" = set; then :
2892  enableval=$enable_silent_rules;
2893fi
2894
2895case $enable_silent_rules in # (((
2896  yes) AM_DEFAULT_VERBOSITY=0;;
2897   no) AM_DEFAULT_VERBOSITY=1;;
2898    *) AM_DEFAULT_VERBOSITY=1;;
2899esac
2900am_make=${MAKE-make}
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2902$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2903if ${am_cv_make_support_nested_variables+:} false; then :
2904  $as_echo_n "(cached) " >&6
2905else
2906  if $as_echo 'TRUE=$(BAR$(V))
2907BAR0=false
2908BAR1=true
2909V=1
2910am__doit:
2911	@$(TRUE)
2912.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2913  am_cv_make_support_nested_variables=yes
2914else
2915  am_cv_make_support_nested_variables=no
2916fi
2917fi
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2919$as_echo "$am_cv_make_support_nested_variables" >&6; }
2920if test $am_cv_make_support_nested_variables = yes; then
2921    AM_V='$(V)'
2922  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2923else
2924  AM_V=$AM_DEFAULT_VERBOSITY
2925  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2926fi
2927AM_BACKSLASH='\'
2928
2929if test "`cd $srcdir && pwd`" != "`pwd`"; then
2930  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2931  # is not polluted with repeated "-I."
2932  am__isrc=' -I$(srcdir)'
2933  # test to see if srcdir already configured
2934  if test -f $srcdir/config.status; then
2935    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2936  fi
2937fi
2938
2939# test whether we have cygpath
2940if test -z "$CYGPATH_W"; then
2941  if (cygpath --version) >/dev/null 2>/dev/null; then
2942    CYGPATH_W='cygpath -w'
2943  else
2944    CYGPATH_W=echo
2945  fi
2946fi
2947
2948
2949# Define the identity of the package.
2950 PACKAGE='libXaw'
2951 VERSION='1.0.14'
2952
2953
2954cat >>confdefs.h <<_ACEOF
2955#define PACKAGE "$PACKAGE"
2956_ACEOF
2957
2958
2959cat >>confdefs.h <<_ACEOF
2960#define VERSION "$VERSION"
2961_ACEOF
2962
2963# Some tools Automake needs.
2964
2965ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2966
2967
2968AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2969
2970
2971AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2972
2973
2974AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2975
2976
2977MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2978
2979# For better backward compatibility.  To be removed once Automake 1.9.x
2980# dies out for good.  For more background, see:
2981# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2982# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2983mkdir_p='$(MKDIR_P)'
2984
2985# We need awk for the "check" target (and possibly the TAP driver).  The
2986# system "awk" is bad on some platforms.
2987# Always define AMTAR for backward compatibility.  Yes, it's still used
2988# in the wild :-(  We should find a proper way to deprecate it ...
2989AMTAR='$${TAR-tar}'
2990
2991
2992# We'll loop over all known methods to create a tar archive until one works.
2993_am_tools='gnutar  pax cpio none'
2994
2995am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2996
2997
2998
2999
3000
3001
3002# POSIX will say in a future version that running "rm -f" with no argument
3003# is OK; and we want to be able to make that assumption in our Makefile
3004# recipes.  So use an aggressive probe to check that the usage we want is
3005# actually supported "in the wild" to an acceptable degree.
3006# See automake bug#10828.
3007# To make any issue more visible, cause the running configure to be aborted
3008# by default if the 'rm' program in use doesn't match our expectations; the
3009# user can still override this though.
3010if rm -f && rm -fr && rm -rf; then : OK; else
3011  cat >&2 <<'END'
3012Oops!
3013
3014Your 'rm' program seems unable to run without file operands specified
3015on the command line, even when the '-f' option is present.  This is contrary
3016to the behaviour of most rm programs out there, and not conforming with
3017the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3018
3019Please tell bug-automake@gnu.org about your system, including the value
3020of your $PATH and any error possibly output before this message.  This
3021can help us improve future automake versions.
3022
3023END
3024  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3025    echo 'Configuration will proceed anyway, since you have set the' >&2
3026    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3027    echo >&2
3028  else
3029    cat >&2 <<'END'
3030Aborting the configuration process, to ensure you take notice of the issue.
3031
3032You can download and install GNU coreutils to get an 'rm' implementation
3033that behaves properly: <https://www.gnu.org/software/coreutils/>.
3034
3035If you want to complete the configuration process using your problematic
3036'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3037to "yes", and re-run configure.
3038
3039END
3040    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3041  fi
3042fi
3043
3044
3045# Initialize libtool
3046case `pwd` in
3047  *\ * | *\	*)
3048    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3049$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3050esac
3051
3052
3053
3054macro_version='2.4.6'
3055macro_revision='2.4.6'
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069ltmain=$ac_aux_dir/ltmain.sh
3070
3071# Make sure we can run config.sub.
3072$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3073  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3074
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3076$as_echo_n "checking build system type... " >&6; }
3077if ${ac_cv_build+:} false; then :
3078  $as_echo_n "(cached) " >&6
3079else
3080  ac_build_alias=$build_alias
3081test "x$ac_build_alias" = x &&
3082  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3083test "x$ac_build_alias" = x &&
3084  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3085ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3086  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3087
3088fi
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3090$as_echo "$ac_cv_build" >&6; }
3091case $ac_cv_build in
3092*-*-*) ;;
3093*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3094esac
3095build=$ac_cv_build
3096ac_save_IFS=$IFS; IFS='-'
3097set x $ac_cv_build
3098shift
3099build_cpu=$1
3100build_vendor=$2
3101shift; shift
3102# Remember, the first character of IFS is used to create $*,
3103# except with old shells:
3104build_os=$*
3105IFS=$ac_save_IFS
3106case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3107
3108
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3110$as_echo_n "checking host system type... " >&6; }
3111if ${ac_cv_host+:} false; then :
3112  $as_echo_n "(cached) " >&6
3113else
3114  if test "x$host_alias" = x; then
3115  ac_cv_host=$ac_cv_build
3116else
3117  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3118    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3119fi
3120
3121fi
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3123$as_echo "$ac_cv_host" >&6; }
3124case $ac_cv_host in
3125*-*-*) ;;
3126*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3127esac
3128host=$ac_cv_host
3129ac_save_IFS=$IFS; IFS='-'
3130set x $ac_cv_host
3131shift
3132host_cpu=$1
3133host_vendor=$2
3134shift; shift
3135# Remember, the first character of IFS is used to create $*,
3136# except with old shells:
3137host_os=$*
3138IFS=$ac_save_IFS
3139case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3140
3141
3142# Backslashify metacharacters that are still active within
3143# double-quoted strings.
3144sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3145
3146# Same as above, but do not quote variable references.
3147double_quote_subst='s/\(["`\\]\)/\\\1/g'
3148
3149# Sed substitution to delay expansion of an escaped shell variable in a
3150# double_quote_subst'ed string.
3151delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3152
3153# Sed substitution to delay expansion of an escaped single quote.
3154delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3155
3156# Sed substitution to avoid accidental globbing in evaled expressions
3157no_glob_subst='s/\*/\\\*/g'
3158
3159ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3160ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3161ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3162
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3164$as_echo_n "checking how to print strings... " >&6; }
3165# Test print first, because it will be a builtin if present.
3166if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3167   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3168  ECHO='print -r --'
3169elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3170  ECHO='printf %s\n'
3171else
3172  # Use this function as a fallback that always works.
3173  func_fallback_echo ()
3174  {
3175    eval 'cat <<_LTECHO_EOF
3176$1
3177_LTECHO_EOF'
3178  }
3179  ECHO='func_fallback_echo'
3180fi
3181
3182# func_echo_all arg...
3183# Invoke $ECHO with all args, space-separated.
3184func_echo_all ()
3185{
3186    $ECHO ""
3187}
3188
3189case $ECHO in
3190  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3191$as_echo "printf" >&6; } ;;
3192  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3193$as_echo "print -r" >&6; } ;;
3194  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3195$as_echo "cat" >&6; } ;;
3196esac
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211DEPDIR="${am__leading_dot}deps"
3212
3213ac_config_commands="$ac_config_commands depfiles"
3214
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3216$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3217cat > confinc.mk << 'END'
3218am__doit:
3219	@echo this is the am__doit target >confinc.out
3220.PHONY: am__doit
3221END
3222am__include="#"
3223am__quote=
3224# BSD make does it like this.
3225echo '.include "confinc.mk" # ignored' > confmf.BSD
3226# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3227echo 'include confinc.mk # ignored' > confmf.GNU
3228_am_result=no
3229for s in GNU BSD; do
3230  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3231   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }
3235  case $?:`cat confinc.out 2>/dev/null` in #(
3236  '0:this is the am__doit target') :
3237    case $s in #(
3238  BSD) :
3239    am__include='.include' am__quote='"' ;; #(
3240  *) :
3241    am__include='include' am__quote='' ;;
3242esac ;; #(
3243  *) :
3244     ;;
3245esac
3246  if test "$am__include" != "#"; then
3247    _am_result="yes ($s style)"
3248    break
3249  fi
3250done
3251rm -f confinc.* confmf.*
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3253$as_echo "${_am_result}" >&6; }
3254
3255# Check whether --enable-dependency-tracking was given.
3256if test "${enable_dependency_tracking+set}" = set; then :
3257  enableval=$enable_dependency_tracking;
3258fi
3259
3260if test "x$enable_dependency_tracking" != xno; then
3261  am_depcomp="$ac_aux_dir/depcomp"
3262  AMDEPBACKSLASH='\'
3263  am__nodep='_no'
3264fi
3265 if test "x$enable_dependency_tracking" != xno; then
3266  AMDEP_TRUE=
3267  AMDEP_FALSE='#'
3268else
3269  AMDEP_TRUE='#'
3270  AMDEP_FALSE=
3271fi
3272
3273
3274ac_ext=c
3275ac_cpp='$CPP $CPPFLAGS'
3276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279if test -n "$ac_tool_prefix"; then
3280  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3281set dummy ${ac_tool_prefix}gcc; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if ${ac_cv_prog_CC+:} false; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  if test -n "$CC"; then
3288  ac_cv_prog_CC="$CC" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293  IFS=$as_save_IFS
3294  test -z "$as_dir" && as_dir=.
3295    for ac_exec_ext in '' $ac_executable_extensions; do
3296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299    break 2
3300  fi
3301done
3302  done
3303IFS=$as_save_IFS
3304
3305fi
3306fi
3307CC=$ac_cv_prog_CC
3308if test -n "$CC"; then
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310$as_echo "$CC" >&6; }
3311else
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316
3317fi
3318if test -z "$ac_cv_prog_CC"; then
3319  ac_ct_CC=$CC
3320  # Extract the first word of "gcc", so it can be a program name with args.
3321set dummy gcc; ac_word=$2
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323$as_echo_n "checking for $ac_word... " >&6; }
3324if ${ac_cv_prog_ac_ct_CC+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  if test -n "$ac_ct_CC"; then
3328  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3329else
3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333  IFS=$as_save_IFS
3334  test -z "$as_dir" && as_dir=.
3335    for ac_exec_ext in '' $ac_executable_extensions; do
3336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337    ac_cv_prog_ac_ct_CC="gcc"
3338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339    break 2
3340  fi
3341done
3342  done
3343IFS=$as_save_IFS
3344
3345fi
3346fi
3347ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348if test -n "$ac_ct_CC"; then
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3350$as_echo "$ac_ct_CC" >&6; }
3351else
3352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
3354fi
3355
3356  if test "x$ac_ct_CC" = x; then
3357    CC=""
3358  else
3359    case $cross_compiling:$ac_tool_warned in
3360yes:)
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363ac_tool_warned=yes ;;
3364esac
3365    CC=$ac_ct_CC
3366  fi
3367else
3368  CC="$ac_cv_prog_CC"
3369fi
3370
3371if test -z "$CC"; then
3372          if test -n "$ac_tool_prefix"; then
3373    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3374set dummy ${ac_tool_prefix}cc; ac_word=$2
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376$as_echo_n "checking for $ac_word... " >&6; }
3377if ${ac_cv_prog_CC+:} false; then :
3378  $as_echo_n "(cached) " >&6
3379else
3380  if test -n "$CC"; then
3381  ac_cv_prog_CC="$CC" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386  IFS=$as_save_IFS
3387  test -z "$as_dir" && as_dir=.
3388    for ac_exec_ext in '' $ac_executable_extensions; do
3389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390    ac_cv_prog_CC="${ac_tool_prefix}cc"
3391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392    break 2
3393  fi
3394done
3395  done
3396IFS=$as_save_IFS
3397
3398fi
3399fi
3400CC=$ac_cv_prog_CC
3401if test -n "$CC"; then
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403$as_echo "$CC" >&6; }
3404else
3405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406$as_echo "no" >&6; }
3407fi
3408
3409
3410  fi
3411fi
3412if test -z "$CC"; then
3413  # Extract the first word of "cc", so it can be a program name with args.
3414set dummy cc; ac_word=$2
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416$as_echo_n "checking for $ac_word... " >&6; }
3417if ${ac_cv_prog_CC+:} false; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  if test -n "$CC"; then
3421  ac_cv_prog_CC="$CC" # Let the user override the test.
3422else
3423  ac_prog_rejected=no
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427  IFS=$as_save_IFS
3428  test -z "$as_dir" && as_dir=.
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3432       ac_prog_rejected=yes
3433       continue
3434     fi
3435    ac_cv_prog_CC="cc"
3436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437    break 2
3438  fi
3439done
3440  done
3441IFS=$as_save_IFS
3442
3443if test $ac_prog_rejected = yes; then
3444  # We found a bogon in the path, so make sure we never use it.
3445  set dummy $ac_cv_prog_CC
3446  shift
3447  if test $# != 0; then
3448    # We chose a different compiler from the bogus one.
3449    # However, it has the same basename, so the bogon will be chosen
3450    # first if we set CC to just the basename; use the full file name.
3451    shift
3452    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3453  fi
3454fi
3455fi
3456fi
3457CC=$ac_cv_prog_CC
3458if test -n "$CC"; then
3459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460$as_echo "$CC" >&6; }
3461else
3462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463$as_echo "no" >&6; }
3464fi
3465
3466
3467fi
3468if test -z "$CC"; then
3469  if test -n "$ac_tool_prefix"; then
3470  for ac_prog in cl.exe
3471  do
3472    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3473set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475$as_echo_n "checking for $ac_word... " >&6; }
3476if ${ac_cv_prog_CC+:} false; then :
3477  $as_echo_n "(cached) " >&6
3478else
3479  if test -n "$CC"; then
3480  ac_cv_prog_CC="$CC" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485  IFS=$as_save_IFS
3486  test -z "$as_dir" && as_dir=.
3487    for ac_exec_ext in '' $ac_executable_extensions; do
3488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491    break 2
3492  fi
3493done
3494  done
3495IFS=$as_save_IFS
3496
3497fi
3498fi
3499CC=$ac_cv_prog_CC
3500if test -n "$CC"; then
3501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502$as_echo "$CC" >&6; }
3503else
3504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505$as_echo "no" >&6; }
3506fi
3507
3508
3509    test -n "$CC" && break
3510  done
3511fi
3512if test -z "$CC"; then
3513  ac_ct_CC=$CC
3514  for ac_prog in cl.exe
3515do
3516  # Extract the first word of "$ac_prog", so it can be a program name with args.
3517set dummy $ac_prog; ac_word=$2
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519$as_echo_n "checking for $ac_word... " >&6; }
3520if ${ac_cv_prog_ac_ct_CC+:} false; then :
3521  $as_echo_n "(cached) " >&6
3522else
3523  if test -n "$ac_ct_CC"; then
3524  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3525else
3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529  IFS=$as_save_IFS
3530  test -z "$as_dir" && as_dir=.
3531    for ac_exec_ext in '' $ac_executable_extensions; do
3532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533    ac_cv_prog_ac_ct_CC="$ac_prog"
3534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535    break 2
3536  fi
3537done
3538  done
3539IFS=$as_save_IFS
3540
3541fi
3542fi
3543ac_ct_CC=$ac_cv_prog_ac_ct_CC
3544if test -n "$ac_ct_CC"; then
3545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3546$as_echo "$ac_ct_CC" >&6; }
3547else
3548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549$as_echo "no" >&6; }
3550fi
3551
3552
3553  test -n "$ac_ct_CC" && break
3554done
3555
3556  if test "x$ac_ct_CC" = x; then
3557    CC=""
3558  else
3559    case $cross_compiling:$ac_tool_warned in
3560yes:)
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3563ac_tool_warned=yes ;;
3564esac
3565    CC=$ac_ct_CC
3566  fi
3567fi
3568
3569fi
3570
3571
3572test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
3575See \`config.log' for more details" "$LINENO" 5; }
3576
3577# Provide some information about the compiler.
3578$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3579set X $ac_compile
3580ac_compiler=$2
3581for ac_option in --version -v -V -qversion; do
3582  { { ac_try="$ac_compiler $ac_option >&5"
3583case "(($ac_try" in
3584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585  *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588$as_echo "$ac_try_echo"; } >&5
3589  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3590  ac_status=$?
3591  if test -s conftest.err; then
3592    sed '10a\
3593... rest of stderr output deleted ...
3594         10q' conftest.err >conftest.er1
3595    cat conftest.er1 >&5
3596  fi
3597  rm -f conftest.er1 conftest.err
3598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599  test $ac_status = 0; }
3600done
3601
3602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h.  */
3604
3605int
3606main ()
3607{
3608
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613ac_clean_files_save=$ac_clean_files
3614ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3615# Try to create an executable without -o first, disregard a.out.
3616# It will help us diagnose broken compilers, and finding out an intuition
3617# of exeext.
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3619$as_echo_n "checking whether the C compiler works... " >&6; }
3620ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3621
3622# The possible output files:
3623ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3624
3625ac_rmfiles=
3626for ac_file in $ac_files
3627do
3628  case $ac_file in
3629    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3630    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3631  esac
3632done
3633rm -f $ac_rmfiles
3634
3635if { { ac_try="$ac_link_default"
3636case "(($ac_try" in
3637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638  *) ac_try_echo=$ac_try;;
3639esac
3640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641$as_echo "$ac_try_echo"; } >&5
3642  (eval "$ac_link_default") 2>&5
3643  ac_status=$?
3644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645  test $ac_status = 0; }; then :
3646  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3647# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3648# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3649# so that the user can short-circuit this test for compilers unknown to
3650# Autoconf.
3651for ac_file in $ac_files ''
3652do
3653  test -f "$ac_file" || continue
3654  case $ac_file in
3655    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3656	;;
3657    [ab].out )
3658	# We found the default executable, but exeext='' is most
3659	# certainly right.
3660	break;;
3661    *.* )
3662	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3663	then :; else
3664	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3665	fi
3666	# We set ac_cv_exeext here because the later test for it is not
3667	# safe: cross compilers may not add the suffix if given an `-o'
3668	# argument, so we may need to know it at that point already.
3669	# Even if this section looks crufty: it has the advantage of
3670	# actually working.
3671	break;;
3672    * )
3673	break;;
3674  esac
3675done
3676test "$ac_cv_exeext" = no && ac_cv_exeext=
3677
3678else
3679  ac_file=''
3680fi
3681if test -z "$ac_file"; then :
3682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683$as_echo "no" >&6; }
3684$as_echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689as_fn_error 77 "C compiler cannot create executables
3690See \`config.log' for more details" "$LINENO" 5; }
3691else
3692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3693$as_echo "yes" >&6; }
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3696$as_echo_n "checking for C compiler default output file name... " >&6; }
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3698$as_echo "$ac_file" >&6; }
3699ac_exeext=$ac_cv_exeext
3700
3701rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3702ac_clean_files=$ac_clean_files_save
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3704$as_echo_n "checking for suffix of executables... " >&6; }
3705if { { ac_try="$ac_link"
3706case "(($ac_try" in
3707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708  *) ac_try_echo=$ac_try;;
3709esac
3710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711$as_echo "$ac_try_echo"; } >&5
3712  (eval "$ac_link") 2>&5
3713  ac_status=$?
3714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715  test $ac_status = 0; }; then :
3716  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3717# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3718# work properly (i.e., refer to `conftest.exe'), while it won't with
3719# `rm'.
3720for ac_file in conftest.exe conftest conftest.*; do
3721  test -f "$ac_file" || continue
3722  case $ac_file in
3723    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3724    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3725	  break;;
3726    * ) break;;
3727  esac
3728done
3729else
3730  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3733See \`config.log' for more details" "$LINENO" 5; }
3734fi
3735rm -f conftest conftest$ac_cv_exeext
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3737$as_echo "$ac_cv_exeext" >&6; }
3738
3739rm -f conftest.$ac_ext
3740EXEEXT=$ac_cv_exeext
3741ac_exeext=$EXEEXT
3742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h.  */
3744#include <stdio.h>
3745int
3746main ()
3747{
3748FILE *f = fopen ("conftest.out", "w");
3749 return ferror (f) || fclose (f) != 0;
3750
3751  ;
3752  return 0;
3753}
3754_ACEOF
3755ac_clean_files="$ac_clean_files conftest.out"
3756# Check that the compiler produces executables we can run.  If not, either
3757# the compiler is broken, or we cross compile.
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3759$as_echo_n "checking whether we are cross compiling... " >&6; }
3760if test "$cross_compiling" != yes; then
3761  { { ac_try="$ac_link"
3762case "(($ac_try" in
3763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764  *) ac_try_echo=$ac_try;;
3765esac
3766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767$as_echo "$ac_try_echo"; } >&5
3768  (eval "$ac_link") 2>&5
3769  ac_status=$?
3770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771  test $ac_status = 0; }
3772  if { ac_try='./conftest$ac_cv_exeext'
3773  { { case "(($ac_try" in
3774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775  *) ac_try_echo=$ac_try;;
3776esac
3777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778$as_echo "$ac_try_echo"; } >&5
3779  (eval "$ac_try") 2>&5
3780  ac_status=$?
3781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782  test $ac_status = 0; }; }; then
3783    cross_compiling=no
3784  else
3785    if test "$cross_compiling" = maybe; then
3786	cross_compiling=yes
3787    else
3788	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790as_fn_error $? "cannot run C compiled programs.
3791If you meant to cross compile, use \`--host'.
3792See \`config.log' for more details" "$LINENO" 5; }
3793    fi
3794  fi
3795fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3797$as_echo "$cross_compiling" >&6; }
3798
3799rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3800ac_clean_files=$ac_clean_files_save
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3802$as_echo_n "checking for suffix of object files... " >&6; }
3803if ${ac_cv_objext+:} false; then :
3804  $as_echo_n "(cached) " >&6
3805else
3806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808
3809int
3810main ()
3811{
3812
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817rm -f conftest.o conftest.obj
3818if { { ac_try="$ac_compile"
3819case "(($ac_try" in
3820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821  *) ac_try_echo=$ac_try;;
3822esac
3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824$as_echo "$ac_try_echo"; } >&5
3825  (eval "$ac_compile") 2>&5
3826  ac_status=$?
3827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828  test $ac_status = 0; }; then :
3829  for ac_file in conftest.o conftest.obj conftest.*; do
3830  test -f "$ac_file" || continue;
3831  case $ac_file in
3832    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3833    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3834       break;;
3835  esac
3836done
3837else
3838  $as_echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843as_fn_error $? "cannot compute suffix of object files: cannot compile
3844See \`config.log' for more details" "$LINENO" 5; }
3845fi
3846rm -f conftest.$ac_cv_objext conftest.$ac_ext
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3849$as_echo "$ac_cv_objext" >&6; }
3850OBJEXT=$ac_cv_objext
3851ac_objext=$OBJEXT
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3853$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3854if ${ac_cv_c_compiler_gnu+:} false; then :
3855  $as_echo_n "(cached) " >&6
3856else
3857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h.  */
3859
3860int
3861main ()
3862{
3863#ifndef __GNUC__
3864       choke me
3865#endif
3866
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871if ac_fn_c_try_compile "$LINENO"; then :
3872  ac_compiler_gnu=yes
3873else
3874  ac_compiler_gnu=no
3875fi
3876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877ac_cv_c_compiler_gnu=$ac_compiler_gnu
3878
3879fi
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3881$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3882if test $ac_compiler_gnu = yes; then
3883  GCC=yes
3884else
3885  GCC=
3886fi
3887ac_test_CFLAGS=${CFLAGS+set}
3888ac_save_CFLAGS=$CFLAGS
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3890$as_echo_n "checking whether $CC accepts -g... " >&6; }
3891if ${ac_cv_prog_cc_g+:} false; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  ac_save_c_werror_flag=$ac_c_werror_flag
3895   ac_c_werror_flag=yes
3896   ac_cv_prog_cc_g=no
3897   CFLAGS="-g"
3898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900
3901int
3902main ()
3903{
3904
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909if ac_fn_c_try_compile "$LINENO"; then :
3910  ac_cv_prog_cc_g=yes
3911else
3912  CFLAGS=""
3913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h.  */
3915
3916int
3917main ()
3918{
3919
3920  ;
3921  return 0;
3922}
3923_ACEOF
3924if ac_fn_c_try_compile "$LINENO"; then :
3925
3926else
3927  ac_c_werror_flag=$ac_save_c_werror_flag
3928	 CFLAGS="-g"
3929	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930/* end confdefs.h.  */
3931
3932int
3933main ()
3934{
3935
3936  ;
3937  return 0;
3938}
3939_ACEOF
3940if ac_fn_c_try_compile "$LINENO"; then :
3941  ac_cv_prog_cc_g=yes
3942fi
3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944fi
3945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946fi
3947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948   ac_c_werror_flag=$ac_save_c_werror_flag
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3951$as_echo "$ac_cv_prog_cc_g" >&6; }
3952if test "$ac_test_CFLAGS" = set; then
3953  CFLAGS=$ac_save_CFLAGS
3954elif test $ac_cv_prog_cc_g = yes; then
3955  if test "$GCC" = yes; then
3956    CFLAGS="-g -O2"
3957  else
3958    CFLAGS="-g"
3959  fi
3960else
3961  if test "$GCC" = yes; then
3962    CFLAGS="-O2"
3963  else
3964    CFLAGS=
3965  fi
3966fi
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3968$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3969if ${ac_cv_prog_cc_c89+:} false; then :
3970  $as_echo_n "(cached) " >&6
3971else
3972  ac_cv_prog_cc_c89=no
3973ac_save_CC=$CC
3974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975/* end confdefs.h.  */
3976#include <stdarg.h>
3977#include <stdio.h>
3978struct stat;
3979/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3980struct buf { int x; };
3981FILE * (*rcsopen) (struct buf *, struct stat *, int);
3982static char *e (p, i)
3983     char **p;
3984     int i;
3985{
3986  return p[i];
3987}
3988static char *f (char * (*g) (char **, int), char **p, ...)
3989{
3990  char *s;
3991  va_list v;
3992  va_start (v,p);
3993  s = g (p, va_arg (v,int));
3994  va_end (v);
3995  return s;
3996}
3997
3998/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3999   function prototypes and stuff, but not '\xHH' hex character constants.
4000   These don't provoke an error unfortunately, instead are silently treated
4001   as 'x'.  The following induces an error, until -std is added to get
4002   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4003   array size at least.  It's necessary to write '\x00'==0 to get something
4004   that's true only with -std.  */
4005int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4006
4007/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4008   inside strings and character constants.  */
4009#define FOO(x) 'x'
4010int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4011
4012int test (int i, double x);
4013struct s1 {int (*f) (int a);};
4014struct s2 {int (*f) (double a);};
4015int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4016int argc;
4017char **argv;
4018int
4019main ()
4020{
4021return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4027	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4028do
4029  CC="$ac_save_CC $ac_arg"
4030  if ac_fn_c_try_compile "$LINENO"; then :
4031  ac_cv_prog_cc_c89=$ac_arg
4032fi
4033rm -f core conftest.err conftest.$ac_objext
4034  test "x$ac_cv_prog_cc_c89" != "xno" && break
4035done
4036rm -f conftest.$ac_ext
4037CC=$ac_save_CC
4038
4039fi
4040# AC_CACHE_VAL
4041case "x$ac_cv_prog_cc_c89" in
4042  x)
4043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4044$as_echo "none needed" >&6; } ;;
4045  xno)
4046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4047$as_echo "unsupported" >&6; } ;;
4048  *)
4049    CC="$CC $ac_cv_prog_cc_c89"
4050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4051$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4052esac
4053if test "x$ac_cv_prog_cc_c89" != xno; then :
4054
4055fi
4056
4057ac_ext=c
4058ac_cpp='$CPP $CPPFLAGS'
4059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062
4063ac_ext=c
4064ac_cpp='$CPP $CPPFLAGS'
4065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4069$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4070if ${am_cv_prog_cc_c_o+:} false; then :
4071  $as_echo_n "(cached) " >&6
4072else
4073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074/* end confdefs.h.  */
4075
4076int
4077main ()
4078{
4079
4080  ;
4081  return 0;
4082}
4083_ACEOF
4084  # Make sure it works both with $CC and with simple cc.
4085  # Following AC_PROG_CC_C_O, we do the test twice because some
4086  # compilers refuse to overwrite an existing .o file with -o,
4087  # though they will create one.
4088  am_cv_prog_cc_c_o=yes
4089  for am_i in 1 2; do
4090    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4091   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } \
4095         && test -f conftest2.$ac_objext; then
4096      : OK
4097    else
4098      am_cv_prog_cc_c_o=no
4099      break
4100    fi
4101  done
4102  rm -f core conftest*
4103  unset am_i
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4106$as_echo "$am_cv_prog_cc_c_o" >&6; }
4107if test "$am_cv_prog_cc_c_o" != yes; then
4108   # Losing compiler, so override with the script.
4109   # FIXME: It is wrong to rewrite CC.
4110   # But if we don't then we get into trouble of one sort or another.
4111   # A longer-term fix would be to have automake use am__CC in this case,
4112   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4113   CC="$am_aux_dir/compile $CC"
4114fi
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122depcc="$CC"   am_compiler_list=
4123
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4125$as_echo_n "checking dependency style of $depcc... " >&6; }
4126if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4127  $as_echo_n "(cached) " >&6
4128else
4129  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4130  # We make a subdir and do the tests there.  Otherwise we can end up
4131  # making bogus files that we don't know about and never remove.  For
4132  # instance it was reported that on HP-UX the gcc test will end up
4133  # making a dummy file named 'D' -- because '-MD' means "put the output
4134  # in D".
4135  rm -rf conftest.dir
4136  mkdir conftest.dir
4137  # Copy depcomp to subdir because otherwise we won't find it if we're
4138  # using a relative directory.
4139  cp "$am_depcomp" conftest.dir
4140  cd conftest.dir
4141  # We will build objects and dependencies in a subdirectory because
4142  # it helps to detect inapplicable dependency modes.  For instance
4143  # both Tru64's cc and ICC support -MD to output dependencies as a
4144  # side effect of compilation, but ICC will put the dependencies in
4145  # the current directory while Tru64 will put them in the object
4146  # directory.
4147  mkdir sub
4148
4149  am_cv_CC_dependencies_compiler_type=none
4150  if test "$am_compiler_list" = ""; then
4151     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4152  fi
4153  am__universal=false
4154  case " $depcc " in #(
4155     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4156     esac
4157
4158  for depmode in $am_compiler_list; do
4159    # Setup a source with many dependencies, because some compilers
4160    # like to wrap large dependency lists on column 80 (with \), and
4161    # we should not choose a depcomp mode which is confused by this.
4162    #
4163    # We need to recreate these files for each test, as the compiler may
4164    # overwrite some of them when testing with obscure command lines.
4165    # This happens at least with the AIX C compiler.
4166    : > sub/conftest.c
4167    for i in 1 2 3 4 5 6; do
4168      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4169      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4170      # Solaris 10 /bin/sh.
4171      echo '/* dummy */' > sub/conftst$i.h
4172    done
4173    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4174
4175    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4176    # mode.  It turns out that the SunPro C++ compiler does not properly
4177    # handle '-M -o', and we need to detect this.  Also, some Intel
4178    # versions had trouble with output in subdirs.
4179    am__obj=sub/conftest.${OBJEXT-o}
4180    am__minus_obj="-o $am__obj"
4181    case $depmode in
4182    gcc)
4183      # This depmode causes a compiler race in universal mode.
4184      test "$am__universal" = false || continue
4185      ;;
4186    nosideeffect)
4187      # After this tag, mechanisms are not by side-effect, so they'll
4188      # only be used when explicitly requested.
4189      if test "x$enable_dependency_tracking" = xyes; then
4190	continue
4191      else
4192	break
4193      fi
4194      ;;
4195    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4196      # This compiler won't grok '-c -o', but also, the minuso test has
4197      # not run yet.  These depmodes are late enough in the game, and
4198      # so weak that their functioning should not be impacted.
4199      am__obj=conftest.${OBJEXT-o}
4200      am__minus_obj=
4201      ;;
4202    none) break ;;
4203    esac
4204    if depmode=$depmode \
4205       source=sub/conftest.c object=$am__obj \
4206       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4207       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4208         >/dev/null 2>conftest.err &&
4209       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4210       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4211       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4212       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4213      # icc doesn't choke on unknown options, it will just issue warnings
4214      # or remarks (even with -Werror).  So we grep stderr for any message
4215      # that says an option was ignored or not supported.
4216      # When given -MP, icc 7.0 and 7.1 complain thusly:
4217      #   icc: Command line warning: ignoring option '-M'; no argument required
4218      # The diagnosis changed in icc 8.0:
4219      #   icc: Command line remark: option '-MP' not supported
4220      if (grep 'ignoring option' conftest.err ||
4221          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4222        am_cv_CC_dependencies_compiler_type=$depmode
4223        break
4224      fi
4225    fi
4226  done
4227
4228  cd ..
4229  rm -rf conftest.dir
4230else
4231  am_cv_CC_dependencies_compiler_type=none
4232fi
4233
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4236$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4237CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4238
4239 if
4240  test "x$enable_dependency_tracking" != xno \
4241  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4242  am__fastdepCC_TRUE=
4243  am__fastdepCC_FALSE='#'
4244else
4245  am__fastdepCC_TRUE='#'
4246  am__fastdepCC_FALSE=
4247fi
4248
4249
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4251$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4252if ${ac_cv_path_SED+:} false; then :
4253  $as_echo_n "(cached) " >&6
4254else
4255            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4256     for ac_i in 1 2 3 4 5 6 7; do
4257       ac_script="$ac_script$as_nl$ac_script"
4258     done
4259     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4260     { ac_script=; unset ac_script;}
4261     if test -z "$SED"; then
4262  ac_path_SED_found=false
4263  # Loop through the user's path and test for each of PROGNAME-LIST
4264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
4266do
4267  IFS=$as_save_IFS
4268  test -z "$as_dir" && as_dir=.
4269    for ac_prog in sed gsed; do
4270    for ac_exec_ext in '' $ac_executable_extensions; do
4271      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4272      as_fn_executable_p "$ac_path_SED" || continue
4273# Check for GNU ac_path_SED and select it if it is found.
4274  # Check for GNU $ac_path_SED
4275case `"$ac_path_SED" --version 2>&1` in
4276*GNU*)
4277  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4278*)
4279  ac_count=0
4280  $as_echo_n 0123456789 >"conftest.in"
4281  while :
4282  do
4283    cat "conftest.in" "conftest.in" >"conftest.tmp"
4284    mv "conftest.tmp" "conftest.in"
4285    cp "conftest.in" "conftest.nl"
4286    $as_echo '' >> "conftest.nl"
4287    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4288    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4289    as_fn_arith $ac_count + 1 && ac_count=$as_val
4290    if test $ac_count -gt ${ac_path_SED_max-0}; then
4291      # Best one so far, save it but keep looking for a better one
4292      ac_cv_path_SED="$ac_path_SED"
4293      ac_path_SED_max=$ac_count
4294    fi
4295    # 10*(2^10) chars as input seems more than enough
4296    test $ac_count -gt 10 && break
4297  done
4298  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4299esac
4300
4301      $ac_path_SED_found && break 3
4302    done
4303  done
4304  done
4305IFS=$as_save_IFS
4306  if test -z "$ac_cv_path_SED"; then
4307    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4308  fi
4309else
4310  ac_cv_path_SED=$SED
4311fi
4312
4313fi
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4315$as_echo "$ac_cv_path_SED" >&6; }
4316 SED="$ac_cv_path_SED"
4317  rm -f conftest.sed
4318
4319test -z "$SED" && SED=sed
4320Xsed="$SED -e 1s/^X//"
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4333$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4334if ${ac_cv_path_GREP+:} false; then :
4335  $as_echo_n "(cached) " >&6
4336else
4337  if test -z "$GREP"; then
4338  ac_path_GREP_found=false
4339  # Loop through the user's path and test for each of PROGNAME-LIST
4340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342do
4343  IFS=$as_save_IFS
4344  test -z "$as_dir" && as_dir=.
4345    for ac_prog in grep ggrep; do
4346    for ac_exec_ext in '' $ac_executable_extensions; do
4347      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4348      as_fn_executable_p "$ac_path_GREP" || continue
4349# Check for GNU ac_path_GREP and select it if it is found.
4350  # Check for GNU $ac_path_GREP
4351case `"$ac_path_GREP" --version 2>&1` in
4352*GNU*)
4353  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4354*)
4355  ac_count=0
4356  $as_echo_n 0123456789 >"conftest.in"
4357  while :
4358  do
4359    cat "conftest.in" "conftest.in" >"conftest.tmp"
4360    mv "conftest.tmp" "conftest.in"
4361    cp "conftest.in" "conftest.nl"
4362    $as_echo 'GREP' >> "conftest.nl"
4363    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365    as_fn_arith $ac_count + 1 && ac_count=$as_val
4366    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4367      # Best one so far, save it but keep looking for a better one
4368      ac_cv_path_GREP="$ac_path_GREP"
4369      ac_path_GREP_max=$ac_count
4370    fi
4371    # 10*(2^10) chars as input seems more than enough
4372    test $ac_count -gt 10 && break
4373  done
4374  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375esac
4376
4377      $ac_path_GREP_found && break 3
4378    done
4379  done
4380  done
4381IFS=$as_save_IFS
4382  if test -z "$ac_cv_path_GREP"; then
4383    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4384  fi
4385else
4386  ac_cv_path_GREP=$GREP
4387fi
4388
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4391$as_echo "$ac_cv_path_GREP" >&6; }
4392 GREP="$ac_cv_path_GREP"
4393
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4396$as_echo_n "checking for egrep... " >&6; }
4397if ${ac_cv_path_EGREP+:} false; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4401   then ac_cv_path_EGREP="$GREP -E"
4402   else
4403     if test -z "$EGREP"; then
4404  ac_path_EGREP_found=false
4405  # Loop through the user's path and test for each of PROGNAME-LIST
4406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411    for ac_prog in egrep; do
4412    for ac_exec_ext in '' $ac_executable_extensions; do
4413      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4414      as_fn_executable_p "$ac_path_EGREP" || continue
4415# Check for GNU ac_path_EGREP and select it if it is found.
4416  # Check for GNU $ac_path_EGREP
4417case `"$ac_path_EGREP" --version 2>&1` in
4418*GNU*)
4419  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4420*)
4421  ac_count=0
4422  $as_echo_n 0123456789 >"conftest.in"
4423  while :
4424  do
4425    cat "conftest.in" "conftest.in" >"conftest.tmp"
4426    mv "conftest.tmp" "conftest.in"
4427    cp "conftest.in" "conftest.nl"
4428    $as_echo 'EGREP' >> "conftest.nl"
4429    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4430    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4431    as_fn_arith $ac_count + 1 && ac_count=$as_val
4432    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4433      # Best one so far, save it but keep looking for a better one
4434      ac_cv_path_EGREP="$ac_path_EGREP"
4435      ac_path_EGREP_max=$ac_count
4436    fi
4437    # 10*(2^10) chars as input seems more than enough
4438    test $ac_count -gt 10 && break
4439  done
4440  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4441esac
4442
4443      $ac_path_EGREP_found && break 3
4444    done
4445  done
4446  done
4447IFS=$as_save_IFS
4448  if test -z "$ac_cv_path_EGREP"; then
4449    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4450  fi
4451else
4452  ac_cv_path_EGREP=$EGREP
4453fi
4454
4455   fi
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4458$as_echo "$ac_cv_path_EGREP" >&6; }
4459 EGREP="$ac_cv_path_EGREP"
4460
4461
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4463$as_echo_n "checking for fgrep... " >&6; }
4464if ${ac_cv_path_FGREP+:} false; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4468   then ac_cv_path_FGREP="$GREP -F"
4469   else
4470     if test -z "$FGREP"; then
4471  ac_path_FGREP_found=false
4472  # Loop through the user's path and test for each of PROGNAME-LIST
4473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4475do
4476  IFS=$as_save_IFS
4477  test -z "$as_dir" && as_dir=.
4478    for ac_prog in fgrep; do
4479    for ac_exec_ext in '' $ac_executable_extensions; do
4480      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4481      as_fn_executable_p "$ac_path_FGREP" || continue
4482# Check for GNU ac_path_FGREP and select it if it is found.
4483  # Check for GNU $ac_path_FGREP
4484case `"$ac_path_FGREP" --version 2>&1` in
4485*GNU*)
4486  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4487*)
4488  ac_count=0
4489  $as_echo_n 0123456789 >"conftest.in"
4490  while :
4491  do
4492    cat "conftest.in" "conftest.in" >"conftest.tmp"
4493    mv "conftest.tmp" "conftest.in"
4494    cp "conftest.in" "conftest.nl"
4495    $as_echo 'FGREP' >> "conftest.nl"
4496    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498    as_fn_arith $ac_count + 1 && ac_count=$as_val
4499    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4500      # Best one so far, save it but keep looking for a better one
4501      ac_cv_path_FGREP="$ac_path_FGREP"
4502      ac_path_FGREP_max=$ac_count
4503    fi
4504    # 10*(2^10) chars as input seems more than enough
4505    test $ac_count -gt 10 && break
4506  done
4507  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508esac
4509
4510      $ac_path_FGREP_found && break 3
4511    done
4512  done
4513  done
4514IFS=$as_save_IFS
4515  if test -z "$ac_cv_path_FGREP"; then
4516    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4517  fi
4518else
4519  ac_cv_path_FGREP=$FGREP
4520fi
4521
4522   fi
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4525$as_echo "$ac_cv_path_FGREP" >&6; }
4526 FGREP="$ac_cv_path_FGREP"
4527
4528
4529test -z "$GREP" && GREP=grep
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549# Check whether --with-gnu-ld was given.
4550if test "${with_gnu_ld+set}" = set; then :
4551  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4552else
4553  with_gnu_ld=no
4554fi
4555
4556ac_prog=ld
4557if test yes = "$GCC"; then
4558  # Check if gcc -print-prog-name=ld gives a path.
4559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4560$as_echo_n "checking for ld used by $CC... " >&6; }
4561  case $host in
4562  *-*-mingw*)
4563    # gcc leaves a trailing carriage return, which upsets mingw
4564    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4565  *)
4566    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4567  esac
4568  case $ac_prog in
4569    # Accept absolute paths.
4570    [\\/]* | ?:[\\/]*)
4571      re_direlt='/[^/][^/]*/\.\./'
4572      # Canonicalize the pathname of ld
4573      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4574      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4575	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4576      done
4577      test -z "$LD" && LD=$ac_prog
4578      ;;
4579  "")
4580    # If it fails, then pretend we aren't using GCC.
4581    ac_prog=ld
4582    ;;
4583  *)
4584    # If it is relative, then search for the first ld in PATH.
4585    with_gnu_ld=unknown
4586    ;;
4587  esac
4588elif test yes = "$with_gnu_ld"; then
4589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4590$as_echo_n "checking for GNU ld... " >&6; }
4591else
4592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4593$as_echo_n "checking for non-GNU ld... " >&6; }
4594fi
4595if ${lt_cv_path_LD+:} false; then :
4596  $as_echo_n "(cached) " >&6
4597else
4598  if test -z "$LD"; then
4599  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4600  for ac_dir in $PATH; do
4601    IFS=$lt_save_ifs
4602    test -z "$ac_dir" && ac_dir=.
4603    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4604      lt_cv_path_LD=$ac_dir/$ac_prog
4605      # Check to see if the program is GNU ld.  I'd rather use --version,
4606      # but apparently some variants of GNU ld only accept -v.
4607      # Break only if it was the GNU/non-GNU ld that we prefer.
4608      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4609      *GNU* | *'with BFD'*)
4610	test no != "$with_gnu_ld" && break
4611	;;
4612      *)
4613	test yes != "$with_gnu_ld" && break
4614	;;
4615      esac
4616    fi
4617  done
4618  IFS=$lt_save_ifs
4619else
4620  lt_cv_path_LD=$LD # Let the user override the test with a path.
4621fi
4622fi
4623
4624LD=$lt_cv_path_LD
4625if test -n "$LD"; then
4626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4627$as_echo "$LD" >&6; }
4628else
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
4631fi
4632test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4634$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4635if ${lt_cv_prog_gnu_ld+:} false; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4639case `$LD -v 2>&1 </dev/null` in
4640*GNU* | *'with BFD'*)
4641  lt_cv_prog_gnu_ld=yes
4642  ;;
4643*)
4644  lt_cv_prog_gnu_ld=no
4645  ;;
4646esac
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4649$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4650with_gnu_ld=$lt_cv_prog_gnu_ld
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4661$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4662if ${lt_cv_path_NM+:} false; then :
4663  $as_echo_n "(cached) " >&6
4664else
4665  if test -n "$NM"; then
4666  # Let the user override the test.
4667  lt_cv_path_NM=$NM
4668else
4669  lt_nm_to_check=${ac_tool_prefix}nm
4670  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4671    lt_nm_to_check="$lt_nm_to_check nm"
4672  fi
4673  for lt_tmp_nm in $lt_nm_to_check; do
4674    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4675    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4676      IFS=$lt_save_ifs
4677      test -z "$ac_dir" && ac_dir=.
4678      tmp_nm=$ac_dir/$lt_tmp_nm
4679      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4680	# Check to see if the nm accepts a BSD-compat flag.
4681	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4682	#   nm: unknown option "B" ignored
4683	# Tru64's nm complains that /dev/null is an invalid object file
4684	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4685	case $build_os in
4686	mingw*) lt_bad_file=conftest.nm/nofile ;;
4687	*) lt_bad_file=/dev/null ;;
4688	esac
4689	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4690	*$lt_bad_file* | *'Invalid file or object type'*)
4691	  lt_cv_path_NM="$tmp_nm -B"
4692	  break 2
4693	  ;;
4694	*)
4695	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4696	  */dev/null*)
4697	    lt_cv_path_NM="$tmp_nm -p"
4698	    break 2
4699	    ;;
4700	  *)
4701	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4702	    continue # so that we can try to find one that supports BSD flags
4703	    ;;
4704	  esac
4705	  ;;
4706	esac
4707      fi
4708    done
4709    IFS=$lt_save_ifs
4710  done
4711  : ${lt_cv_path_NM=no}
4712fi
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4715$as_echo "$lt_cv_path_NM" >&6; }
4716if test no != "$lt_cv_path_NM"; then
4717  NM=$lt_cv_path_NM
4718else
4719  # Didn't find any BSD compatible name lister, look for dumpbin.
4720  if test -n "$DUMPBIN"; then :
4721    # Let the user override the test.
4722  else
4723    if test -n "$ac_tool_prefix"; then
4724  for ac_prog in dumpbin "link -dump"
4725  do
4726    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729$as_echo_n "checking for $ac_word... " >&6; }
4730if ${ac_cv_prog_DUMPBIN+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  if test -n "$DUMPBIN"; then
4734  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  test -z "$as_dir" && as_dir=.
4741    for ac_exec_ext in '' $ac_executable_extensions; do
4742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748  done
4749IFS=$as_save_IFS
4750
4751fi
4752fi
4753DUMPBIN=$ac_cv_prog_DUMPBIN
4754if test -n "$DUMPBIN"; then
4755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4756$as_echo "$DUMPBIN" >&6; }
4757else
4758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759$as_echo "no" >&6; }
4760fi
4761
4762
4763    test -n "$DUMPBIN" && break
4764  done
4765fi
4766if test -z "$DUMPBIN"; then
4767  ac_ct_DUMPBIN=$DUMPBIN
4768  for ac_prog in dumpbin "link -dump"
4769do
4770  # Extract the first word of "$ac_prog", so it can be a program name with args.
4771set dummy $ac_prog; ac_word=$2
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773$as_echo_n "checking for $ac_word... " >&6; }
4774if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  if test -n "$ac_ct_DUMPBIN"; then
4778  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783  IFS=$as_save_IFS
4784  test -z "$as_dir" && as_dir=.
4785    for ac_exec_ext in '' $ac_executable_extensions; do
4786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789    break 2
4790  fi
4791done
4792  done
4793IFS=$as_save_IFS
4794
4795fi
4796fi
4797ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4798if test -n "$ac_ct_DUMPBIN"; then
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4800$as_echo "$ac_ct_DUMPBIN" >&6; }
4801else
4802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803$as_echo "no" >&6; }
4804fi
4805
4806
4807  test -n "$ac_ct_DUMPBIN" && break
4808done
4809
4810  if test "x$ac_ct_DUMPBIN" = x; then
4811    DUMPBIN=":"
4812  else
4813    case $cross_compiling:$ac_tool_warned in
4814yes:)
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817ac_tool_warned=yes ;;
4818esac
4819    DUMPBIN=$ac_ct_DUMPBIN
4820  fi
4821fi
4822
4823    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4824    *COFF*)
4825      DUMPBIN="$DUMPBIN -symbols -headers"
4826      ;;
4827    *)
4828      DUMPBIN=:
4829      ;;
4830    esac
4831  fi
4832
4833  if test : != "$DUMPBIN"; then
4834    NM=$DUMPBIN
4835  fi
4836fi
4837test -z "$NM" && NM=nm
4838
4839
4840
4841
4842
4843
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4845$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4846if ${lt_cv_nm_interface+:} false; then :
4847  $as_echo_n "(cached) " >&6
4848else
4849  lt_cv_nm_interface="BSD nm"
4850  echo "int some_variable = 0;" > conftest.$ac_ext
4851  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4852  (eval "$ac_compile" 2>conftest.err)
4853  cat conftest.err >&5
4854  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4855  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4856  cat conftest.err >&5
4857  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4858  cat conftest.out >&5
4859  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4860    lt_cv_nm_interface="MS dumpbin"
4861  fi
4862  rm -f conftest*
4863fi
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4865$as_echo "$lt_cv_nm_interface" >&6; }
4866
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4868$as_echo_n "checking whether ln -s works... " >&6; }
4869LN_S=$as_ln_s
4870if test "$LN_S" = "ln -s"; then
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4872$as_echo "yes" >&6; }
4873else
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4875$as_echo "no, using $LN_S" >&6; }
4876fi
4877
4878# find the maximum length of command line arguments
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4880$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4881if ${lt_cv_sys_max_cmd_len+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884    i=0
4885  teststring=ABCD
4886
4887  case $build_os in
4888  msdosdjgpp*)
4889    # On DJGPP, this test can blow up pretty badly due to problems in libc
4890    # (any single argument exceeding 2000 bytes causes a buffer overrun
4891    # during glob expansion).  Even if it were fixed, the result of this
4892    # check would be larger than it should be.
4893    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4894    ;;
4895
4896  gnu*)
4897    # Under GNU Hurd, this test is not required because there is
4898    # no limit to the length of command line arguments.
4899    # Libtool will interpret -1 as no limit whatsoever
4900    lt_cv_sys_max_cmd_len=-1;
4901    ;;
4902
4903  cygwin* | mingw* | cegcc*)
4904    # On Win9x/ME, this test blows up -- it succeeds, but takes
4905    # about 5 minutes as the teststring grows exponentially.
4906    # Worse, since 9x/ME are not pre-emptively multitasking,
4907    # you end up with a "frozen" computer, even though with patience
4908    # the test eventually succeeds (with a max line length of 256k).
4909    # Instead, let's just punt: use the minimum linelength reported by
4910    # all of the supported platforms: 8192 (on NT/2K/XP).
4911    lt_cv_sys_max_cmd_len=8192;
4912    ;;
4913
4914  mint*)
4915    # On MiNT this can take a long time and run out of memory.
4916    lt_cv_sys_max_cmd_len=8192;
4917    ;;
4918
4919  mint*)
4920    # On MiNT this can take a long time and run out of memory.
4921    lt_cv_sys_max_cmd_len=8192;
4922    ;;
4923
4924  amigaos*)
4925    # On AmigaOS with pdksh, this test takes hours, literally.
4926    # So we just punt and use a minimum line length of 8192.
4927    lt_cv_sys_max_cmd_len=8192;
4928    ;;
4929
4930  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4931    # This has been around since 386BSD, at least.  Likely further.
4932    if test -x /sbin/sysctl; then
4933      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4934    elif test -x /usr/sbin/sysctl; then
4935      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4936    else
4937      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4938    fi
4939    # And add a safety zone
4940    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4941    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4942    ;;
4943
4944  interix*)
4945    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4946    lt_cv_sys_max_cmd_len=196608
4947    ;;
4948
4949  os2*)
4950    # The test takes a long time on OS/2.
4951    lt_cv_sys_max_cmd_len=8192
4952    ;;
4953
4954  osf*)
4955    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4956    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4957    # nice to cause kernel panics so lets avoid the loop below.
4958    # First set a reasonable default.
4959    lt_cv_sys_max_cmd_len=16384
4960    #
4961    if test -x /sbin/sysconfig; then
4962      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4963        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4964      esac
4965    fi
4966    ;;
4967  sco3.2v5*)
4968    lt_cv_sys_max_cmd_len=102400
4969    ;;
4970  sysv5* | sco5v6* | sysv4.2uw2*)
4971    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4972    if test -n "$kargmax"; then
4973      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4974    else
4975      lt_cv_sys_max_cmd_len=32768
4976    fi
4977    ;;
4978  *)
4979    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4980    if test -n "$lt_cv_sys_max_cmd_len" && \
4981       test undefined != "$lt_cv_sys_max_cmd_len"; then
4982      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4983      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4984    else
4985      # Make teststring a little bigger before we do anything with it.
4986      # a 1K string should be a reasonable start.
4987      for i in 1 2 3 4 5 6 7 8; do
4988        teststring=$teststring$teststring
4989      done
4990      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4991      # If test is not a shell built-in, we'll probably end up computing a
4992      # maximum length that is only half of the actual maximum length, but
4993      # we can't tell.
4994      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4995	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4996	      test 17 != "$i" # 1/2 MB should be enough
4997      do
4998        i=`expr $i + 1`
4999        teststring=$teststring$teststring
5000      done
5001      # Only check the string length outside the loop.
5002      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5003      teststring=
5004      # Add a significant safety factor because C++ compilers can tack on
5005      # massive amounts of additional arguments before passing them to the
5006      # linker.  It appears as though 1/2 is a usable value.
5007      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5008    fi
5009    ;;
5010  esac
5011
5012fi
5013
5014if test -n "$lt_cv_sys_max_cmd_len"; then
5015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5016$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5017else
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5019$as_echo "none" >&6; }
5020fi
5021max_cmd_len=$lt_cv_sys_max_cmd_len
5022
5023
5024
5025
5026
5027
5028: ${CP="cp -f"}
5029: ${MV="mv -f"}
5030: ${RM="rm -f"}
5031
5032if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5033  lt_unset=unset
5034else
5035  lt_unset=false
5036fi
5037
5038
5039
5040
5041
5042# test EBCDIC or ASCII
5043case `echo X|tr X '\101'` in
5044 A) # ASCII based system
5045    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5046  lt_SP2NL='tr \040 \012'
5047  lt_NL2SP='tr \015\012 \040\040'
5048  ;;
5049 *) # EBCDIC based system
5050  lt_SP2NL='tr \100 \n'
5051  lt_NL2SP='tr \r\n \100\100'
5052  ;;
5053esac
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5064$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5065if ${lt_cv_to_host_file_cmd+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  case $host in
5069  *-*-mingw* )
5070    case $build in
5071      *-*-mingw* ) # actually msys
5072        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5073        ;;
5074      *-*-cygwin* )
5075        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5076        ;;
5077      * ) # otherwise, assume *nix
5078        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5079        ;;
5080    esac
5081    ;;
5082  *-*-cygwin* )
5083    case $build in
5084      *-*-mingw* ) # actually msys
5085        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5086        ;;
5087      *-*-cygwin* )
5088        lt_cv_to_host_file_cmd=func_convert_file_noop
5089        ;;
5090      * ) # otherwise, assume *nix
5091        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5092        ;;
5093    esac
5094    ;;
5095  * ) # unhandled hosts (and "normal" native builds)
5096    lt_cv_to_host_file_cmd=func_convert_file_noop
5097    ;;
5098esac
5099
5100fi
5101
5102to_host_file_cmd=$lt_cv_to_host_file_cmd
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5104$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5105
5106
5107
5108
5109
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5111$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5112if ${lt_cv_to_tool_file_cmd+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  #assume ordinary cross tools, or native build.
5116lt_cv_to_tool_file_cmd=func_convert_file_noop
5117case $host in
5118  *-*-mingw* )
5119    case $build in
5120      *-*-mingw* ) # actually msys
5121        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5122        ;;
5123    esac
5124    ;;
5125esac
5126
5127fi
5128
5129to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5131$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5132
5133
5134
5135
5136
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5138$as_echo_n "checking for $LD option to reload object files... " >&6; }
5139if ${lt_cv_ld_reload_flag+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  lt_cv_ld_reload_flag='-r'
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5145$as_echo "$lt_cv_ld_reload_flag" >&6; }
5146reload_flag=$lt_cv_ld_reload_flag
5147case $reload_flag in
5148"" | " "*) ;;
5149*) reload_flag=" $reload_flag" ;;
5150esac
5151reload_cmds='$LD$reload_flag -o $output$reload_objs'
5152case $host_os in
5153  cygwin* | mingw* | pw32* | cegcc*)
5154    if test yes != "$GCC"; then
5155      reload_cmds=false
5156    fi
5157    ;;
5158  darwin*)
5159    if test yes = "$GCC"; then
5160      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5161    else
5162      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5163    fi
5164    ;;
5165esac
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175if test -n "$ac_tool_prefix"; then
5176  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5177set dummy ${ac_tool_prefix}objdump; ac_word=$2
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179$as_echo_n "checking for $ac_word... " >&6; }
5180if ${ac_cv_prog_OBJDUMP+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183  if test -n "$OBJDUMP"; then
5184  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5185else
5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189  IFS=$as_save_IFS
5190  test -z "$as_dir" && as_dir=.
5191    for ac_exec_ext in '' $ac_executable_extensions; do
5192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195    break 2
5196  fi
5197done
5198  done
5199IFS=$as_save_IFS
5200
5201fi
5202fi
5203OBJDUMP=$ac_cv_prog_OBJDUMP
5204if test -n "$OBJDUMP"; then
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5206$as_echo "$OBJDUMP" >&6; }
5207else
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209$as_echo "no" >&6; }
5210fi
5211
5212
5213fi
5214if test -z "$ac_cv_prog_OBJDUMP"; then
5215  ac_ct_OBJDUMP=$OBJDUMP
5216  # Extract the first word of "objdump", so it can be a program name with args.
5217set dummy objdump; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
5220if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  if test -n "$ac_ct_OBJDUMP"; then
5224  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229  IFS=$as_save_IFS
5230  test -z "$as_dir" && as_dir=.
5231    for ac_exec_ext in '' $ac_executable_extensions; do
5232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235    break 2
5236  fi
5237done
5238  done
5239IFS=$as_save_IFS
5240
5241fi
5242fi
5243ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5244if test -n "$ac_ct_OBJDUMP"; then
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5246$as_echo "$ac_ct_OBJDUMP" >&6; }
5247else
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249$as_echo "no" >&6; }
5250fi
5251
5252  if test "x$ac_ct_OBJDUMP" = x; then
5253    OBJDUMP="false"
5254  else
5255    case $cross_compiling:$ac_tool_warned in
5256yes:)
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259ac_tool_warned=yes ;;
5260esac
5261    OBJDUMP=$ac_ct_OBJDUMP
5262  fi
5263else
5264  OBJDUMP="$ac_cv_prog_OBJDUMP"
5265fi
5266
5267test -z "$OBJDUMP" && OBJDUMP=objdump
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5278$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5279if ${lt_cv_deplibs_check_method+:} false; then :
5280  $as_echo_n "(cached) " >&6
5281else
5282  lt_cv_file_magic_cmd='$MAGIC_CMD'
5283lt_cv_file_magic_test_file=
5284lt_cv_deplibs_check_method='unknown'
5285# Need to set the preceding variable on all platforms that support
5286# interlibrary dependencies.
5287# 'none' -- dependencies not supported.
5288# 'unknown' -- same as none, but documents that we really don't know.
5289# 'pass_all' -- all dependencies passed with no checks.
5290# 'test_compile' -- check by making test program.
5291# 'file_magic [[regex]]' -- check by looking for files in library path
5292# that responds to the $file_magic_cmd with a given extended regex.
5293# If you have 'file' or equivalent on your system and you're not sure
5294# whether 'pass_all' will *always* work, you probably want this one.
5295
5296case $host_os in
5297aix[4-9]*)
5298  lt_cv_deplibs_check_method=pass_all
5299  ;;
5300
5301beos*)
5302  lt_cv_deplibs_check_method=pass_all
5303  ;;
5304
5305bsdi[45]*)
5306  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5307  lt_cv_file_magic_cmd='/usr/bin/file -L'
5308  lt_cv_file_magic_test_file=/shlib/libc.so
5309  ;;
5310
5311cygwin*)
5312  # func_win32_libid is a shell function defined in ltmain.sh
5313  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5314  lt_cv_file_magic_cmd='func_win32_libid'
5315  ;;
5316
5317mingw* | pw32*)
5318  # Base MSYS/MinGW do not provide the 'file' command needed by
5319  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5320  # unless we find 'file', for example because we are cross-compiling.
5321  if ( file / ) >/dev/null 2>&1; then
5322    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5323    lt_cv_file_magic_cmd='func_win32_libid'
5324  else
5325    # Keep this pattern in sync with the one in func_win32_libid.
5326    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5327    lt_cv_file_magic_cmd='$OBJDUMP -f'
5328  fi
5329  ;;
5330
5331cegcc*)
5332  # use the weaker test based on 'objdump'. See mingw*.
5333  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5334  lt_cv_file_magic_cmd='$OBJDUMP -f'
5335  ;;
5336
5337darwin* | rhapsody*)
5338  lt_cv_deplibs_check_method=pass_all
5339  ;;
5340
5341freebsd* | dragonfly*)
5342  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5343    case $host_cpu in
5344    i*86 )
5345      # Not sure whether the presence of OpenBSD here was a mistake.
5346      # Let's accept both of them until this is cleared up.
5347      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5348      lt_cv_file_magic_cmd=/usr/bin/file
5349      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5350      ;;
5351    esac
5352  else
5353    lt_cv_deplibs_check_method=pass_all
5354  fi
5355  ;;
5356
5357haiku*)
5358  lt_cv_deplibs_check_method=pass_all
5359  ;;
5360
5361hpux10.20* | hpux11*)
5362  lt_cv_file_magic_cmd=/usr/bin/file
5363  case $host_cpu in
5364  ia64*)
5365    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5366    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5367    ;;
5368  hppa*64*)
5369    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]'
5370    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5371    ;;
5372  *)
5373    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5374    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5375    ;;
5376  esac
5377  ;;
5378
5379interix[3-9]*)
5380  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5381  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5382  ;;
5383
5384irix5* | irix6* | nonstopux*)
5385  case $LD in
5386  *-32|*"-32 ") libmagic=32-bit;;
5387  *-n32|*"-n32 ") libmagic=N32;;
5388  *-64|*"-64 ") libmagic=64-bit;;
5389  *) libmagic=never-match;;
5390  esac
5391  lt_cv_deplibs_check_method=pass_all
5392  ;;
5393
5394# This must be glibc/ELF.
5395linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5396  lt_cv_deplibs_check_method=pass_all
5397  ;;
5398
5399netbsd*)
5400  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5401    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5402  else
5403    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5404  fi
5405  ;;
5406
5407newos6*)
5408  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5409  lt_cv_file_magic_cmd=/usr/bin/file
5410  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5411  ;;
5412
5413*nto* | *qnx*)
5414  lt_cv_deplibs_check_method=pass_all
5415  ;;
5416
5417openbsd* | bitrig*)
5418  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5419    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5420  else
5421    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5422  fi
5423  ;;
5424
5425osf3* | osf4* | osf5*)
5426  lt_cv_deplibs_check_method=pass_all
5427  ;;
5428
5429rdos*)
5430  lt_cv_deplibs_check_method=pass_all
5431  ;;
5432
5433solaris*)
5434  lt_cv_deplibs_check_method=pass_all
5435  ;;
5436
5437sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5438  lt_cv_deplibs_check_method=pass_all
5439  ;;
5440
5441sysv4 | sysv4.3*)
5442  case $host_vendor in
5443  motorola)
5444    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]'
5445    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5446    ;;
5447  ncr)
5448    lt_cv_deplibs_check_method=pass_all
5449    ;;
5450  sequent)
5451    lt_cv_file_magic_cmd='/bin/file'
5452    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5453    ;;
5454  sni)
5455    lt_cv_file_magic_cmd='/bin/file'
5456    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5457    lt_cv_file_magic_test_file=/lib/libc.so
5458    ;;
5459  siemens)
5460    lt_cv_deplibs_check_method=pass_all
5461    ;;
5462  pc)
5463    lt_cv_deplibs_check_method=pass_all
5464    ;;
5465  esac
5466  ;;
5467
5468tpf*)
5469  lt_cv_deplibs_check_method=pass_all
5470  ;;
5471os2*)
5472  lt_cv_deplibs_check_method=pass_all
5473  ;;
5474esac
5475
5476fi
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5478$as_echo "$lt_cv_deplibs_check_method" >&6; }
5479
5480file_magic_glob=
5481want_nocaseglob=no
5482if test "$build" = "$host"; then
5483  case $host_os in
5484  mingw* | pw32*)
5485    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5486      want_nocaseglob=yes
5487    else
5488      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5489    fi
5490    ;;
5491  esac
5492fi
5493
5494file_magic_cmd=$lt_cv_file_magic_cmd
5495deplibs_check_method=$lt_cv_deplibs_check_method
5496test -z "$deplibs_check_method" && deplibs_check_method=unknown
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519if test -n "$ac_tool_prefix"; then
5520  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5521set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523$as_echo_n "checking for $ac_word... " >&6; }
5524if ${ac_cv_prog_DLLTOOL+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  if test -n "$DLLTOOL"; then
5528  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5529else
5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535    for ac_exec_ext in '' $ac_executable_extensions; do
5536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539    break 2
5540  fi
5541done
5542  done
5543IFS=$as_save_IFS
5544
5545fi
5546fi
5547DLLTOOL=$ac_cv_prog_DLLTOOL
5548if test -n "$DLLTOOL"; then
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5550$as_echo "$DLLTOOL" >&6; }
5551else
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553$as_echo "no" >&6; }
5554fi
5555
5556
5557fi
5558if test -z "$ac_cv_prog_DLLTOOL"; then
5559  ac_ct_DLLTOOL=$DLLTOOL
5560  # Extract the first word of "dlltool", so it can be a program name with args.
5561set dummy dlltool; ac_word=$2
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563$as_echo_n "checking for $ac_word... " >&6; }
5564if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  if test -n "$ac_ct_DLLTOOL"; then
5568  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573  IFS=$as_save_IFS
5574  test -z "$as_dir" && as_dir=.
5575    for ac_exec_ext in '' $ac_executable_extensions; do
5576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579    break 2
5580  fi
5581done
5582  done
5583IFS=$as_save_IFS
5584
5585fi
5586fi
5587ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5588if test -n "$ac_ct_DLLTOOL"; then
5589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5590$as_echo "$ac_ct_DLLTOOL" >&6; }
5591else
5592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593$as_echo "no" >&6; }
5594fi
5595
5596  if test "x$ac_ct_DLLTOOL" = x; then
5597    DLLTOOL="false"
5598  else
5599    case $cross_compiling:$ac_tool_warned in
5600yes:)
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603ac_tool_warned=yes ;;
5604esac
5605    DLLTOOL=$ac_ct_DLLTOOL
5606  fi
5607else
5608  DLLTOOL="$ac_cv_prog_DLLTOOL"
5609fi
5610
5611test -z "$DLLTOOL" && DLLTOOL=dlltool
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5623$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5624if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5625  $as_echo_n "(cached) " >&6
5626else
5627  lt_cv_sharedlib_from_linklib_cmd='unknown'
5628
5629case $host_os in
5630cygwin* | mingw* | pw32* | cegcc*)
5631  # two different shell functions defined in ltmain.sh;
5632  # decide which one to use based on capabilities of $DLLTOOL
5633  case `$DLLTOOL --help 2>&1` in
5634  *--identify-strict*)
5635    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5636    ;;
5637  *)
5638    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5639    ;;
5640  esac
5641  ;;
5642*)
5643  # fallback: assume linklib IS sharedlib
5644  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5645  ;;
5646esac
5647
5648fi
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5650$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5651sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5652test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5653
5654
5655
5656
5657
5658
5659
5660
5661if test -n "$ac_tool_prefix"; then
5662  for ac_prog in ar
5663  do
5664    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667$as_echo_n "checking for $ac_word... " >&6; }
5668if ${ac_cv_prog_AR+:} false; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671  if test -n "$AR"; then
5672  ac_cv_prog_AR="$AR" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677  IFS=$as_save_IFS
5678  test -z "$as_dir" && as_dir=.
5679    for ac_exec_ext in '' $ac_executable_extensions; do
5680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683    break 2
5684  fi
5685done
5686  done
5687IFS=$as_save_IFS
5688
5689fi
5690fi
5691AR=$ac_cv_prog_AR
5692if test -n "$AR"; then
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5694$as_echo "$AR" >&6; }
5695else
5696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }
5698fi
5699
5700
5701    test -n "$AR" && break
5702  done
5703fi
5704if test -z "$AR"; then
5705  ac_ct_AR=$AR
5706  for ac_prog in ar
5707do
5708  # Extract the first word of "$ac_prog", so it can be a program name with args.
5709set dummy $ac_prog; ac_word=$2
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711$as_echo_n "checking for $ac_word... " >&6; }
5712if ${ac_cv_prog_ac_ct_AR+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  if test -n "$ac_ct_AR"; then
5716  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721  IFS=$as_save_IFS
5722  test -z "$as_dir" && as_dir=.
5723    for ac_exec_ext in '' $ac_executable_extensions; do
5724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725    ac_cv_prog_ac_ct_AR="$ac_prog"
5726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727    break 2
5728  fi
5729done
5730  done
5731IFS=$as_save_IFS
5732
5733fi
5734fi
5735ac_ct_AR=$ac_cv_prog_ac_ct_AR
5736if test -n "$ac_ct_AR"; then
5737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5738$as_echo "$ac_ct_AR" >&6; }
5739else
5740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }
5742fi
5743
5744
5745  test -n "$ac_ct_AR" && break
5746done
5747
5748  if test "x$ac_ct_AR" = x; then
5749    AR="false"
5750  else
5751    case $cross_compiling:$ac_tool_warned in
5752yes:)
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755ac_tool_warned=yes ;;
5756esac
5757    AR=$ac_ct_AR
5758  fi
5759fi
5760
5761: ${AR=ar}
5762: ${AR_FLAGS=cru}
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5775$as_echo_n "checking for archiver @FILE support... " >&6; }
5776if ${lt_cv_ar_at_file+:} false; then :
5777  $as_echo_n "(cached) " >&6
5778else
5779  lt_cv_ar_at_file=no
5780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h.  */
5782
5783int
5784main ()
5785{
5786
5787  ;
5788  return 0;
5789}
5790_ACEOF
5791if ac_fn_c_try_compile "$LINENO"; then :
5792  echo conftest.$ac_objext > conftest.lst
5793      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5794      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5795  (eval $lt_ar_try) 2>&5
5796  ac_status=$?
5797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5798  test $ac_status = 0; }
5799      if test 0 -eq "$ac_status"; then
5800	# Ensure the archiver fails upon bogus file names.
5801	rm -f conftest.$ac_objext libconftest.a
5802	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5803  (eval $lt_ar_try) 2>&5
5804  ac_status=$?
5805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806  test $ac_status = 0; }
5807	if test 0 -ne "$ac_status"; then
5808          lt_cv_ar_at_file=@
5809        fi
5810      fi
5811      rm -f conftest.* libconftest.a
5812
5813fi
5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815
5816fi
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5818$as_echo "$lt_cv_ar_at_file" >&6; }
5819
5820if test no = "$lt_cv_ar_at_file"; then
5821  archiver_list_spec=
5822else
5823  archiver_list_spec=$lt_cv_ar_at_file
5824fi
5825
5826
5827
5828
5829
5830
5831
5832if test -n "$ac_tool_prefix"; then
5833  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5834set dummy ${ac_tool_prefix}strip; ac_word=$2
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
5837if ${ac_cv_prog_STRIP+:} false; then :
5838  $as_echo_n "(cached) " >&6
5839else
5840  if test -n "$STRIP"; then
5841  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846  IFS=$as_save_IFS
5847  test -z "$as_dir" && as_dir=.
5848    for ac_exec_ext in '' $ac_executable_extensions; do
5849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852    break 2
5853  fi
5854done
5855  done
5856IFS=$as_save_IFS
5857
5858fi
5859fi
5860STRIP=$ac_cv_prog_STRIP
5861if test -n "$STRIP"; then
5862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5863$as_echo "$STRIP" >&6; }
5864else
5865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866$as_echo "no" >&6; }
5867fi
5868
5869
5870fi
5871if test -z "$ac_cv_prog_STRIP"; then
5872  ac_ct_STRIP=$STRIP
5873  # Extract the first word of "strip", so it can be a program name with args.
5874set dummy strip; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
5877if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5878  $as_echo_n "(cached) " >&6
5879else
5880  if test -n "$ac_ct_STRIP"; then
5881  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886  IFS=$as_save_IFS
5887  test -z "$as_dir" && as_dir=.
5888    for ac_exec_ext in '' $ac_executable_extensions; do
5889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890    ac_cv_prog_ac_ct_STRIP="strip"
5891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892    break 2
5893  fi
5894done
5895  done
5896IFS=$as_save_IFS
5897
5898fi
5899fi
5900ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5901if test -n "$ac_ct_STRIP"; then
5902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5903$as_echo "$ac_ct_STRIP" >&6; }
5904else
5905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909  if test "x$ac_ct_STRIP" = x; then
5910    STRIP=":"
5911  else
5912    case $cross_compiling:$ac_tool_warned in
5913yes:)
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916ac_tool_warned=yes ;;
5917esac
5918    STRIP=$ac_ct_STRIP
5919  fi
5920else
5921  STRIP="$ac_cv_prog_STRIP"
5922fi
5923
5924test -z "$STRIP" && STRIP=:
5925
5926
5927
5928
5929
5930
5931if test -n "$ac_tool_prefix"; then
5932  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5933set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935$as_echo_n "checking for $ac_word... " >&6; }
5936if ${ac_cv_prog_RANLIB+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  if test -n "$RANLIB"; then
5940  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945  IFS=$as_save_IFS
5946  test -z "$as_dir" && as_dir=.
5947    for ac_exec_ext in '' $ac_executable_extensions; do
5948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951    break 2
5952  fi
5953done
5954  done
5955IFS=$as_save_IFS
5956
5957fi
5958fi
5959RANLIB=$ac_cv_prog_RANLIB
5960if test -n "$RANLIB"; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5962$as_echo "$RANLIB" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
5966fi
5967
5968
5969fi
5970if test -z "$ac_cv_prog_RANLIB"; then
5971  ac_ct_RANLIB=$RANLIB
5972  # Extract the first word of "ranlib", so it can be a program name with args.
5973set dummy ranlib; ac_word=$2
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975$as_echo_n "checking for $ac_word... " >&6; }
5976if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5977  $as_echo_n "(cached) " >&6
5978else
5979  if test -n "$ac_ct_RANLIB"; then
5980  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5981else
5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH
5984do
5985  IFS=$as_save_IFS
5986  test -z "$as_dir" && as_dir=.
5987    for ac_exec_ext in '' $ac_executable_extensions; do
5988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989    ac_cv_prog_ac_ct_RANLIB="ranlib"
5990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991    break 2
5992  fi
5993done
5994  done
5995IFS=$as_save_IFS
5996
5997fi
5998fi
5999ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6000if test -n "$ac_ct_RANLIB"; then
6001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6002$as_echo "$ac_ct_RANLIB" >&6; }
6003else
6004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005$as_echo "no" >&6; }
6006fi
6007
6008  if test "x$ac_ct_RANLIB" = x; then
6009    RANLIB=":"
6010  else
6011    case $cross_compiling:$ac_tool_warned in
6012yes:)
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015ac_tool_warned=yes ;;
6016esac
6017    RANLIB=$ac_ct_RANLIB
6018  fi
6019else
6020  RANLIB="$ac_cv_prog_RANLIB"
6021fi
6022
6023test -z "$RANLIB" && RANLIB=:
6024
6025
6026
6027
6028
6029
6030# Determine commands to create old-style static archives.
6031old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6032old_postinstall_cmds='chmod 644 $oldlib'
6033old_postuninstall_cmds=
6034
6035if test -n "$RANLIB"; then
6036  case $host_os in
6037  bitrig* | openbsd*)
6038    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6039    ;;
6040  *)
6041    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6042    ;;
6043  esac
6044  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6045fi
6046
6047case $host_os in
6048  darwin*)
6049    lock_old_archive_extraction=yes ;;
6050  *)
6051    lock_old_archive_extraction=no ;;
6052esac
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092# If no C compiler was specified, use CC.
6093LTCC=${LTCC-"$CC"}
6094
6095# If no C compiler flags were specified, use CFLAGS.
6096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6097
6098# Allow CC to be a program name with arguments.
6099compiler=$CC
6100
6101
6102# Check for command to grab the raw symbol name followed by C symbol from nm.
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6104$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6105if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6106  $as_echo_n "(cached) " >&6
6107else
6108
6109# These are sane defaults that work on at least a few old systems.
6110# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6111
6112# Character class describing NM global symbol codes.
6113symcode='[BCDEGRST]'
6114
6115# Regexp to match symbols that can be accessed directly from C.
6116sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6117
6118# Define system-specific variables.
6119case $host_os in
6120aix*)
6121  symcode='[BCDT]'
6122  ;;
6123cygwin* | mingw* | pw32* | cegcc*)
6124  symcode='[ABCDGISTW]'
6125  ;;
6126hpux*)
6127  if test ia64 = "$host_cpu"; then
6128    symcode='[ABCDEGRST]'
6129  fi
6130  ;;
6131irix* | nonstopux*)
6132  symcode='[BCDEGRST]'
6133  ;;
6134osf*)
6135  symcode='[BCDEGQRST]'
6136  ;;
6137solaris*)
6138  symcode='[BDRT]'
6139  ;;
6140sco3.2v5*)
6141  symcode='[DT]'
6142  ;;
6143sysv4.2uw2*)
6144  symcode='[DT]'
6145  ;;
6146sysv5* | sco5v6* | unixware* | OpenUNIX*)
6147  symcode='[ABDT]'
6148  ;;
6149sysv4)
6150  symcode='[DFNSTU]'
6151  ;;
6152esac
6153
6154# If we're using GNU nm, then use its standard symbol codes.
6155case `$NM -V 2>&1` in
6156*GNU* | *'with BFD'*)
6157  symcode='[ABCDGIRSTW]' ;;
6158esac
6159
6160if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6161  # Gets list of data symbols to import.
6162  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6163  # Adjust the below global symbol transforms to fixup imported variables.
6164  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6165  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6166  lt_c_name_lib_hook="\
6167  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6168  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6169else
6170  # Disable hooks by default.
6171  lt_cv_sys_global_symbol_to_import=
6172  lt_cdecl_hook=
6173  lt_c_name_hook=
6174  lt_c_name_lib_hook=
6175fi
6176
6177# Transform an extracted symbol line into a proper C declaration.
6178# Some systems (esp. on ia64) link data and code symbols differently,
6179# so use this general approach.
6180lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6181$lt_cdecl_hook\
6182" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6183" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6184
6185# Transform an extracted symbol line into symbol name and symbol address
6186lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6187$lt_c_name_hook\
6188" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6189" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6190
6191# Transform an extracted symbol line into symbol name with lib prefix and
6192# symbol address.
6193lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6194$lt_c_name_lib_hook\
6195" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6196" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6197" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6198
6199# Handle CRLF in mingw tool chain
6200opt_cr=
6201case $build_os in
6202mingw*)
6203  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6204  ;;
6205esac
6206
6207# Try without a prefix underscore, then with it.
6208for ac_symprfx in "" "_"; do
6209
6210  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6211  symxfrm="\\1 $ac_symprfx\\2 \\2"
6212
6213  # Write the raw and C identifiers.
6214  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6215    # Fake it for dumpbin and say T for any non-static function,
6216    # D for any global variable and I for any imported variable.
6217    # Also find C++ and __fastcall symbols from MSVC++,
6218    # which start with @ or ?.
6219    lt_cv_sys_global_symbol_pipe="$AWK '"\
6220"     {last_section=section; section=\$ 3};"\
6221"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6222"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6223"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6224"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6225"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6226"     \$ 0!~/External *\|/{next};"\
6227"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6228"     {if(hide[section]) next};"\
6229"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6230"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6231"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6232"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6233"     ' prfx=^$ac_symprfx"
6234  else
6235    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6236  fi
6237  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6238
6239  # Check to see that the pipe works correctly.
6240  pipe_works=no
6241
6242  rm -f conftest*
6243  cat > conftest.$ac_ext <<_LT_EOF
6244#ifdef __cplusplus
6245extern "C" {
6246#endif
6247char nm_test_var;
6248void nm_test_func(void);
6249void nm_test_func(void){}
6250#ifdef __cplusplus
6251}
6252#endif
6253int main(){nm_test_var='a';nm_test_func();return(0);}
6254_LT_EOF
6255
6256  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6257  (eval $ac_compile) 2>&5
6258  ac_status=$?
6259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260  test $ac_status = 0; }; then
6261    # Now try to grab the symbols.
6262    nlist=conftest.nm
6263    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6264  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6265  ac_status=$?
6266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267  test $ac_status = 0; } && test -s "$nlist"; then
6268      # Try sorting and uniquifying the output.
6269      if sort "$nlist" | uniq > "$nlist"T; then
6270	mv -f "$nlist"T "$nlist"
6271      else
6272	rm -f "$nlist"T
6273      fi
6274
6275      # Make sure that we snagged all the symbols we need.
6276      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6277	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6278	  cat <<_LT_EOF > conftest.$ac_ext
6279/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6280#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6281/* DATA imports from DLLs on WIN32 can't be const, because runtime
6282   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6283# define LT_DLSYM_CONST
6284#elif defined __osf__
6285/* This system does not cope well with relocations in const data.  */
6286# define LT_DLSYM_CONST
6287#else
6288# define LT_DLSYM_CONST const
6289#endif
6290
6291#ifdef __cplusplus
6292extern "C" {
6293#endif
6294
6295_LT_EOF
6296	  # Now generate the symbol file.
6297	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6298
6299	  cat <<_LT_EOF >> conftest.$ac_ext
6300
6301/* The mapping between symbol names and symbols.  */
6302LT_DLSYM_CONST struct {
6303  const char *name;
6304  void       *address;
6305}
6306lt__PROGRAM__LTX_preloaded_symbols[] =
6307{
6308  { "@PROGRAM@", (void *) 0 },
6309_LT_EOF
6310	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6311	  cat <<\_LT_EOF >> conftest.$ac_ext
6312  {0, (void *) 0}
6313};
6314
6315/* This works around a problem in FreeBSD linker */
6316#ifdef FREEBSD_WORKAROUND
6317static const void *lt_preloaded_setup() {
6318  return lt__PROGRAM__LTX_preloaded_symbols;
6319}
6320#endif
6321
6322#ifdef __cplusplus
6323}
6324#endif
6325_LT_EOF
6326	  # Now try linking the two files.
6327	  mv conftest.$ac_objext conftstm.$ac_objext
6328	  lt_globsym_save_LIBS=$LIBS
6329	  lt_globsym_save_CFLAGS=$CFLAGS
6330	  LIBS=conftstm.$ac_objext
6331	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6332	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6333  (eval $ac_link) 2>&5
6334  ac_status=$?
6335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6337	    pipe_works=yes
6338	  fi
6339	  LIBS=$lt_globsym_save_LIBS
6340	  CFLAGS=$lt_globsym_save_CFLAGS
6341	else
6342	  echo "cannot find nm_test_func in $nlist" >&5
6343	fi
6344      else
6345	echo "cannot find nm_test_var in $nlist" >&5
6346      fi
6347    else
6348      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6349    fi
6350  else
6351    echo "$progname: failed program was:" >&5
6352    cat conftest.$ac_ext >&5
6353  fi
6354  rm -rf conftest* conftst*
6355
6356  # Do not use the global_symbol_pipe unless it works.
6357  if test yes = "$pipe_works"; then
6358    break
6359  else
6360    lt_cv_sys_global_symbol_pipe=
6361  fi
6362done
6363
6364fi
6365
6366if test -z "$lt_cv_sys_global_symbol_pipe"; then
6367  lt_cv_sys_global_symbol_to_cdecl=
6368fi
6369if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6371$as_echo "failed" >&6; }
6372else
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6374$as_echo "ok" >&6; }
6375fi
6376
6377# Response file support.
6378if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6379  nm_file_list_spec='@'
6380elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6381  nm_file_list_spec='@'
6382fi
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6421$as_echo_n "checking for sysroot... " >&6; }
6422
6423# Check whether --with-sysroot was given.
6424if test "${with_sysroot+set}" = set; then :
6425  withval=$with_sysroot;
6426else
6427  with_sysroot=no
6428fi
6429
6430
6431lt_sysroot=
6432case $with_sysroot in #(
6433 yes)
6434   if test yes = "$GCC"; then
6435     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6436   fi
6437   ;; #(
6438 /*)
6439   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6440   ;; #(
6441 no|'')
6442   ;; #(
6443 *)
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6445$as_echo "$with_sysroot" >&6; }
6446   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6447   ;;
6448esac
6449
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6451$as_echo "${lt_sysroot:-no}" >&6; }
6452
6453
6454
6455
6456
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6458$as_echo_n "checking for a working dd... " >&6; }
6459if ${ac_cv_path_lt_DD+:} false; then :
6460  $as_echo_n "(cached) " >&6
6461else
6462  printf 0123456789abcdef0123456789abcdef >conftest.i
6463cat conftest.i conftest.i >conftest2.i
6464: ${lt_DD:=$DD}
6465if test -z "$lt_DD"; then
6466  ac_path_lt_DD_found=false
6467  # Loop through the user's path and test for each of PROGNAME-LIST
6468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471  IFS=$as_save_IFS
6472  test -z "$as_dir" && as_dir=.
6473    for ac_prog in dd; do
6474    for ac_exec_ext in '' $ac_executable_extensions; do
6475      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6476      as_fn_executable_p "$ac_path_lt_DD" || continue
6477if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6478  cmp -s conftest.i conftest.out \
6479  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6480fi
6481      $ac_path_lt_DD_found && break 3
6482    done
6483  done
6484  done
6485IFS=$as_save_IFS
6486  if test -z "$ac_cv_path_lt_DD"; then
6487    :
6488  fi
6489else
6490  ac_cv_path_lt_DD=$lt_DD
6491fi
6492
6493rm -f conftest.i conftest2.i conftest.out
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6496$as_echo "$ac_cv_path_lt_DD" >&6; }
6497
6498
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6500$as_echo_n "checking how to truncate binary pipes... " >&6; }
6501if ${lt_cv_truncate_bin+:} false; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  printf 0123456789abcdef0123456789abcdef >conftest.i
6505cat conftest.i conftest.i >conftest2.i
6506lt_cv_truncate_bin=
6507if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6508  cmp -s conftest.i conftest.out \
6509  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6510fi
6511rm -f conftest.i conftest2.i conftest.out
6512test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6515$as_echo "$lt_cv_truncate_bin" >&6; }
6516
6517
6518
6519
6520
6521
6522
6523# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6524func_cc_basename ()
6525{
6526    for cc_temp in $*""; do
6527      case $cc_temp in
6528        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6529        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6530        \-*) ;;
6531        *) break;;
6532      esac
6533    done
6534    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6535}
6536
6537# Check whether --enable-libtool-lock was given.
6538if test "${enable_libtool_lock+set}" = set; then :
6539  enableval=$enable_libtool_lock;
6540fi
6541
6542test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6543
6544# Some flags need to be propagated to the compiler or linker for good
6545# libtool support.
6546case $host in
6547ia64-*-hpux*)
6548  # Find out what ABI is being produced by ac_compile, and set mode
6549  # options accordingly.
6550  echo 'int i;' > conftest.$ac_ext
6551  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6552  (eval $ac_compile) 2>&5
6553  ac_status=$?
6554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555  test $ac_status = 0; }; then
6556    case `/usr/bin/file conftest.$ac_objext` in
6557      *ELF-32*)
6558	HPUX_IA64_MODE=32
6559	;;
6560      *ELF-64*)
6561	HPUX_IA64_MODE=64
6562	;;
6563    esac
6564  fi
6565  rm -rf conftest*
6566  ;;
6567*-*-irix6*)
6568  # Find out what ABI is being produced by ac_compile, and set linker
6569  # options accordingly.
6570  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6571  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6572  (eval $ac_compile) 2>&5
6573  ac_status=$?
6574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6575  test $ac_status = 0; }; then
6576    if test yes = "$lt_cv_prog_gnu_ld"; then
6577      case `/usr/bin/file conftest.$ac_objext` in
6578	*32-bit*)
6579	  LD="${LD-ld} -melf32bsmip"
6580	  ;;
6581	*N32*)
6582	  LD="${LD-ld} -melf32bmipn32"
6583	  ;;
6584	*64-bit*)
6585	  LD="${LD-ld} -melf64bmip"
6586	;;
6587      esac
6588    else
6589      case `/usr/bin/file conftest.$ac_objext` in
6590	*32-bit*)
6591	  LD="${LD-ld} -32"
6592	  ;;
6593	*N32*)
6594	  LD="${LD-ld} -n32"
6595	  ;;
6596	*64-bit*)
6597	  LD="${LD-ld} -64"
6598	  ;;
6599      esac
6600    fi
6601  fi
6602  rm -rf conftest*
6603  ;;
6604
6605mips64*-*linux*)
6606  # Find out what ABI is being produced by ac_compile, and set linker
6607  # options accordingly.
6608  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6609  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6610  (eval $ac_compile) 2>&5
6611  ac_status=$?
6612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6613  test $ac_status = 0; }; then
6614    emul=elf
6615    case `/usr/bin/file conftest.$ac_objext` in
6616      *32-bit*)
6617	emul="${emul}32"
6618	;;
6619      *64-bit*)
6620	emul="${emul}64"
6621	;;
6622    esac
6623    case `/usr/bin/file conftest.$ac_objext` in
6624      *MSB*)
6625	emul="${emul}btsmip"
6626	;;
6627      *LSB*)
6628	emul="${emul}ltsmip"
6629	;;
6630    esac
6631    case `/usr/bin/file conftest.$ac_objext` in
6632      *N32*)
6633	emul="${emul}n32"
6634	;;
6635    esac
6636    LD="${LD-ld} -m $emul"
6637  fi
6638  rm -rf conftest*
6639  ;;
6640
6641x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6642s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6643  # Find out what ABI is being produced by ac_compile, and set linker
6644  # options accordingly.  Note that the listed cases only cover the
6645  # situations where additional linker options are needed (such as when
6646  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6647  # vice versa); the common cases where no linker options are needed do
6648  # not appear in the list.
6649  echo 'int i;' > conftest.$ac_ext
6650  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6651  (eval $ac_compile) 2>&5
6652  ac_status=$?
6653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654  test $ac_status = 0; }; then
6655    case `/usr/bin/file conftest.o` in
6656      *32-bit*)
6657	case $host in
6658	  x86_64-*kfreebsd*-gnu)
6659	    LD="${LD-ld} -m elf_i386_fbsd"
6660	    ;;
6661	  x86_64-*linux*)
6662	    case `/usr/bin/file conftest.o` in
6663	      *x86-64*)
6664		LD="${LD-ld} -m elf32_x86_64"
6665		;;
6666	      *)
6667		LD="${LD-ld} -m elf_i386"
6668		;;
6669	    esac
6670	    ;;
6671	  powerpc64le-*linux*)
6672	    LD="${LD-ld} -m elf32lppclinux"
6673	    ;;
6674	  powerpc64-*linux*)
6675	    LD="${LD-ld} -m elf32ppclinux"
6676	    ;;
6677	  s390x-*linux*)
6678	    LD="${LD-ld} -m elf_s390"
6679	    ;;
6680	  sparc64-*linux*)
6681	    LD="${LD-ld} -m elf32_sparc"
6682	    ;;
6683	esac
6684	;;
6685      *64-bit*)
6686	case $host in
6687	  x86_64-*kfreebsd*-gnu)
6688	    LD="${LD-ld} -m elf_x86_64_fbsd"
6689	    ;;
6690	  x86_64-*linux*)
6691	    LD="${LD-ld} -m elf_x86_64"
6692	    ;;
6693	  powerpcle-*linux*|powerpc64le-*linux*)
6694	    LD="${LD-ld} -m elf64lppc"
6695	    ;;
6696	  powerpc-*linux*|powerpc64-*linux*)
6697	    LD="${LD-ld} -m elf64ppc"
6698	    ;;
6699	  s390*-*linux*|s390*-*tpf*)
6700	    LD="${LD-ld} -m elf64_s390"
6701	    ;;
6702	  sparc*-*linux*)
6703	    LD="${LD-ld} -m elf64_sparc"
6704	    ;;
6705	esac
6706	;;
6707    esac
6708  fi
6709  rm -rf conftest*
6710  ;;
6711
6712*-*-sco3.2v5*)
6713  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6714  SAVE_CFLAGS=$CFLAGS
6715  CFLAGS="$CFLAGS -belf"
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6717$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6718if ${lt_cv_cc_needs_belf+:} false; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  ac_ext=c
6722ac_cpp='$CPP $CPPFLAGS'
6723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725ac_compiler_gnu=$ac_cv_c_compiler_gnu
6726
6727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729
6730int
6731main ()
6732{
6733
6734  ;
6735  return 0;
6736}
6737_ACEOF
6738if ac_fn_c_try_link "$LINENO"; then :
6739  lt_cv_cc_needs_belf=yes
6740else
6741  lt_cv_cc_needs_belf=no
6742fi
6743rm -f core conftest.err conftest.$ac_objext \
6744    conftest$ac_exeext conftest.$ac_ext
6745     ac_ext=c
6746ac_cpp='$CPP $CPPFLAGS'
6747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751fi
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6753$as_echo "$lt_cv_cc_needs_belf" >&6; }
6754  if test yes != "$lt_cv_cc_needs_belf"; then
6755    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6756    CFLAGS=$SAVE_CFLAGS
6757  fi
6758  ;;
6759*-*solaris*)
6760  # Find out what ABI is being produced by ac_compile, and set linker
6761  # options accordingly.
6762  echo 'int i;' > conftest.$ac_ext
6763  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6764  (eval $ac_compile) 2>&5
6765  ac_status=$?
6766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767  test $ac_status = 0; }; then
6768    case `/usr/bin/file conftest.o` in
6769    *64-bit*)
6770      case $lt_cv_prog_gnu_ld in
6771      yes*)
6772        case $host in
6773        i?86-*-solaris*|x86_64-*-solaris*)
6774          LD="${LD-ld} -m elf_x86_64"
6775          ;;
6776        sparc*-*-solaris*)
6777          LD="${LD-ld} -m elf64_sparc"
6778          ;;
6779        esac
6780        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6781        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6782          LD=${LD-ld}_sol2
6783        fi
6784        ;;
6785      *)
6786	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6787	  LD="${LD-ld} -64"
6788	fi
6789	;;
6790      esac
6791      ;;
6792    esac
6793  fi
6794  rm -rf conftest*
6795  ;;
6796esac
6797
6798need_locks=$enable_libtool_lock
6799
6800if test -n "$ac_tool_prefix"; then
6801  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6802set dummy ${ac_tool_prefix}mt; ac_word=$2
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804$as_echo_n "checking for $ac_word... " >&6; }
6805if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  if test -n "$MANIFEST_TOOL"; then
6809  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814  IFS=$as_save_IFS
6815  test -z "$as_dir" && as_dir=.
6816    for ac_exec_ext in '' $ac_executable_extensions; do
6817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820    break 2
6821  fi
6822done
6823  done
6824IFS=$as_save_IFS
6825
6826fi
6827fi
6828MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6829if test -n "$MANIFEST_TOOL"; then
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6831$as_echo "$MANIFEST_TOOL" >&6; }
6832else
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834$as_echo "no" >&6; }
6835fi
6836
6837
6838fi
6839if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6840  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6841  # Extract the first word of "mt", so it can be a program name with args.
6842set dummy mt; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  if test -n "$ac_ct_MANIFEST_TOOL"; then
6849  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856    for ac_exec_ext in '' $ac_executable_extensions; do
6857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863  done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6869if test -n "$ac_ct_MANIFEST_TOOL"; then
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6871$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6872else
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6878    MANIFEST_TOOL=":"
6879  else
6880    case $cross_compiling:$ac_tool_warned in
6881yes:)
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884ac_tool_warned=yes ;;
6885esac
6886    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6887  fi
6888else
6889  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6890fi
6891
6892test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6894$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6895if ${lt_cv_path_mainfest_tool+:} false; then :
6896  $as_echo_n "(cached) " >&6
6897else
6898  lt_cv_path_mainfest_tool=no
6899  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6900  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6901  cat conftest.err >&5
6902  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6903    lt_cv_path_mainfest_tool=yes
6904  fi
6905  rm -f conftest*
6906fi
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6908$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6909if test yes != "$lt_cv_path_mainfest_tool"; then
6910  MANIFEST_TOOL=:
6911fi
6912
6913
6914
6915
6916
6917
6918  case $host_os in
6919    rhapsody* | darwin*)
6920    if test -n "$ac_tool_prefix"; then
6921  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6922set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if ${ac_cv_prog_DSYMUTIL+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  if test -n "$DSYMUTIL"; then
6929  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934  IFS=$as_save_IFS
6935  test -z "$as_dir" && as_dir=.
6936    for ac_exec_ext in '' $ac_executable_extensions; do
6937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940    break 2
6941  fi
6942done
6943  done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948DSYMUTIL=$ac_cv_prog_DSYMUTIL
6949if test -n "$DSYMUTIL"; then
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6951$as_echo "$DSYMUTIL" >&6; }
6952else
6953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957
6958fi
6959if test -z "$ac_cv_prog_DSYMUTIL"; then
6960  ac_ct_DSYMUTIL=$DSYMUTIL
6961  # Extract the first word of "dsymutil", so it can be a program name with args.
6962set dummy dsymutil; ac_word=$2
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964$as_echo_n "checking for $ac_word... " >&6; }
6965if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6966  $as_echo_n "(cached) " >&6
6967else
6968  if test -n "$ac_ct_DSYMUTIL"; then
6969  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974  IFS=$as_save_IFS
6975  test -z "$as_dir" && as_dir=.
6976    for ac_exec_ext in '' $ac_executable_extensions; do
6977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980    break 2
6981  fi
6982done
6983  done
6984IFS=$as_save_IFS
6985
6986fi
6987fi
6988ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6989if test -n "$ac_ct_DSYMUTIL"; then
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6991$as_echo "$ac_ct_DSYMUTIL" >&6; }
6992else
6993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994$as_echo "no" >&6; }
6995fi
6996
6997  if test "x$ac_ct_DSYMUTIL" = x; then
6998    DSYMUTIL=":"
6999  else
7000    case $cross_compiling:$ac_tool_warned in
7001yes:)
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004ac_tool_warned=yes ;;
7005esac
7006    DSYMUTIL=$ac_ct_DSYMUTIL
7007  fi
7008else
7009  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7010fi
7011
7012    if test -n "$ac_tool_prefix"; then
7013  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7014set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016$as_echo_n "checking for $ac_word... " >&6; }
7017if ${ac_cv_prog_NMEDIT+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  if test -n "$NMEDIT"; then
7021  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026  IFS=$as_save_IFS
7027  test -z "$as_dir" && as_dir=.
7028    for ac_exec_ext in '' $ac_executable_extensions; do
7029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032    break 2
7033  fi
7034done
7035  done
7036IFS=$as_save_IFS
7037
7038fi
7039fi
7040NMEDIT=$ac_cv_prog_NMEDIT
7041if test -n "$NMEDIT"; then
7042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7043$as_echo "$NMEDIT" >&6; }
7044else
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046$as_echo "no" >&6; }
7047fi
7048
7049
7050fi
7051if test -z "$ac_cv_prog_NMEDIT"; then
7052  ac_ct_NMEDIT=$NMEDIT
7053  # Extract the first word of "nmedit", so it can be a program name with args.
7054set dummy nmedit; ac_word=$2
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056$as_echo_n "checking for $ac_word... " >&6; }
7057if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  if test -n "$ac_ct_NMEDIT"; then
7061  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066  IFS=$as_save_IFS
7067  test -z "$as_dir" && as_dir=.
7068    for ac_exec_ext in '' $ac_executable_extensions; do
7069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072    break 2
7073  fi
7074done
7075  done
7076IFS=$as_save_IFS
7077
7078fi
7079fi
7080ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7081if test -n "$ac_ct_NMEDIT"; then
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7083$as_echo "$ac_ct_NMEDIT" >&6; }
7084else
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087fi
7088
7089  if test "x$ac_ct_NMEDIT" = x; then
7090    NMEDIT=":"
7091  else
7092    case $cross_compiling:$ac_tool_warned in
7093yes:)
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096ac_tool_warned=yes ;;
7097esac
7098    NMEDIT=$ac_ct_NMEDIT
7099  fi
7100else
7101  NMEDIT="$ac_cv_prog_NMEDIT"
7102fi
7103
7104    if test -n "$ac_tool_prefix"; then
7105  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7106set dummy ${ac_tool_prefix}lipo; ac_word=$2
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108$as_echo_n "checking for $ac_word... " >&6; }
7109if ${ac_cv_prog_LIPO+:} false; then :
7110  $as_echo_n "(cached) " >&6
7111else
7112  if test -n "$LIPO"; then
7113  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7114else
7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118  IFS=$as_save_IFS
7119  test -z "$as_dir" && as_dir=.
7120    for ac_exec_ext in '' $ac_executable_extensions; do
7121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124    break 2
7125  fi
7126done
7127  done
7128IFS=$as_save_IFS
7129
7130fi
7131fi
7132LIPO=$ac_cv_prog_LIPO
7133if test -n "$LIPO"; then
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7135$as_echo "$LIPO" >&6; }
7136else
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138$as_echo "no" >&6; }
7139fi
7140
7141
7142fi
7143if test -z "$ac_cv_prog_LIPO"; then
7144  ac_ct_LIPO=$LIPO
7145  # Extract the first word of "lipo", so it can be a program name with args.
7146set dummy lipo; ac_word=$2
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148$as_echo_n "checking for $ac_word... " >&6; }
7149if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7150  $as_echo_n "(cached) " >&6
7151else
7152  if test -n "$ac_ct_LIPO"; then
7153  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158  IFS=$as_save_IFS
7159  test -z "$as_dir" && as_dir=.
7160    for ac_exec_ext in '' $ac_executable_extensions; do
7161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162    ac_cv_prog_ac_ct_LIPO="lipo"
7163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164    break 2
7165  fi
7166done
7167  done
7168IFS=$as_save_IFS
7169
7170fi
7171fi
7172ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7173if test -n "$ac_ct_LIPO"; then
7174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7175$as_echo "$ac_ct_LIPO" >&6; }
7176else
7177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178$as_echo "no" >&6; }
7179fi
7180
7181  if test "x$ac_ct_LIPO" = x; then
7182    LIPO=":"
7183  else
7184    case $cross_compiling:$ac_tool_warned in
7185yes:)
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7188ac_tool_warned=yes ;;
7189esac
7190    LIPO=$ac_ct_LIPO
7191  fi
7192else
7193  LIPO="$ac_cv_prog_LIPO"
7194fi
7195
7196    if test -n "$ac_tool_prefix"; then
7197  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7198set dummy ${ac_tool_prefix}otool; ac_word=$2
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200$as_echo_n "checking for $ac_word... " >&6; }
7201if ${ac_cv_prog_OTOOL+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  if test -n "$OTOOL"; then
7205  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7206else
7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210  IFS=$as_save_IFS
7211  test -z "$as_dir" && as_dir=.
7212    for ac_exec_ext in '' $ac_executable_extensions; do
7213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216    break 2
7217  fi
7218done
7219  done
7220IFS=$as_save_IFS
7221
7222fi
7223fi
7224OTOOL=$ac_cv_prog_OTOOL
7225if test -n "$OTOOL"; then
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7227$as_echo "$OTOOL" >&6; }
7228else
7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230$as_echo "no" >&6; }
7231fi
7232
7233
7234fi
7235if test -z "$ac_cv_prog_OTOOL"; then
7236  ac_ct_OTOOL=$OTOOL
7237  # Extract the first word of "otool", so it can be a program name with args.
7238set dummy otool; ac_word=$2
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240$as_echo_n "checking for $ac_word... " >&6; }
7241if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7242  $as_echo_n "(cached) " >&6
7243else
7244  if test -n "$ac_ct_OTOOL"; then
7245  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7246else
7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250  IFS=$as_save_IFS
7251  test -z "$as_dir" && as_dir=.
7252    for ac_exec_ext in '' $ac_executable_extensions; do
7253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254    ac_cv_prog_ac_ct_OTOOL="otool"
7255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256    break 2
7257  fi
7258done
7259  done
7260IFS=$as_save_IFS
7261
7262fi
7263fi
7264ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7265if test -n "$ac_ct_OTOOL"; then
7266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7267$as_echo "$ac_ct_OTOOL" >&6; }
7268else
7269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270$as_echo "no" >&6; }
7271fi
7272
7273  if test "x$ac_ct_OTOOL" = x; then
7274    OTOOL=":"
7275  else
7276    case $cross_compiling:$ac_tool_warned in
7277yes:)
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280ac_tool_warned=yes ;;
7281esac
7282    OTOOL=$ac_ct_OTOOL
7283  fi
7284else
7285  OTOOL="$ac_cv_prog_OTOOL"
7286fi
7287
7288    if test -n "$ac_tool_prefix"; then
7289  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7290set dummy ${ac_tool_prefix}otool64; ac_word=$2
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292$as_echo_n "checking for $ac_word... " >&6; }
7293if ${ac_cv_prog_OTOOL64+:} false; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  if test -n "$OTOOL64"; then
7297  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7298else
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302  IFS=$as_save_IFS
7303  test -z "$as_dir" && as_dir=.
7304    for ac_exec_ext in '' $ac_executable_extensions; do
7305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308    break 2
7309  fi
7310done
7311  done
7312IFS=$as_save_IFS
7313
7314fi
7315fi
7316OTOOL64=$ac_cv_prog_OTOOL64
7317if test -n "$OTOOL64"; then
7318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7319$as_echo "$OTOOL64" >&6; }
7320else
7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322$as_echo "no" >&6; }
7323fi
7324
7325
7326fi
7327if test -z "$ac_cv_prog_OTOOL64"; then
7328  ac_ct_OTOOL64=$OTOOL64
7329  # Extract the first word of "otool64", so it can be a program name with args.
7330set dummy otool64; ac_word=$2
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332$as_echo_n "checking for $ac_word... " >&6; }
7333if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7334  $as_echo_n "(cached) " >&6
7335else
7336  if test -n "$ac_ct_OTOOL64"; then
7337  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7338else
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342  IFS=$as_save_IFS
7343  test -z "$as_dir" && as_dir=.
7344    for ac_exec_ext in '' $ac_executable_extensions; do
7345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346    ac_cv_prog_ac_ct_OTOOL64="otool64"
7347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348    break 2
7349  fi
7350done
7351  done
7352IFS=$as_save_IFS
7353
7354fi
7355fi
7356ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7357if test -n "$ac_ct_OTOOL64"; then
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7359$as_echo "$ac_ct_OTOOL64" >&6; }
7360else
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
7363fi
7364
7365  if test "x$ac_ct_OTOOL64" = x; then
7366    OTOOL64=":"
7367  else
7368    case $cross_compiling:$ac_tool_warned in
7369yes:)
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372ac_tool_warned=yes ;;
7373esac
7374    OTOOL64=$ac_ct_OTOOL64
7375  fi
7376else
7377  OTOOL64="$ac_cv_prog_OTOOL64"
7378fi
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7407$as_echo_n "checking for -single_module linker flag... " >&6; }
7408if ${lt_cv_apple_cc_single_mod+:} false; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  lt_cv_apple_cc_single_mod=no
7412      if test -z "$LT_MULTI_MODULE"; then
7413	# By default we will add the -single_module flag. You can override
7414	# by either setting the environment variable LT_MULTI_MODULE
7415	# non-empty at configure time, or by adding -multi_module to the
7416	# link flags.
7417	rm -rf libconftest.dylib*
7418	echo "int foo(void){return 1;}" > conftest.c
7419	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7420-dynamiclib -Wl,-single_module conftest.c" >&5
7421	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7422	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7423        _lt_result=$?
7424	# If there is a non-empty error log, and "single_module"
7425	# appears in it, assume the flag caused a linker warning
7426        if test -s conftest.err && $GREP single_module conftest.err; then
7427	  cat conftest.err >&5
7428	# Otherwise, if the output was created with a 0 exit code from
7429	# the compiler, it worked.
7430	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7431	  lt_cv_apple_cc_single_mod=yes
7432	else
7433	  cat conftest.err >&5
7434	fi
7435	rm -rf libconftest.dylib*
7436	rm -f conftest.*
7437      fi
7438fi
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7440$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7441
7442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7443$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7444if ${lt_cv_ld_exported_symbols_list+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  lt_cv_ld_exported_symbols_list=no
7448      save_LDFLAGS=$LDFLAGS
7449      echo "_main" > conftest.sym
7450      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7451      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h.  */
7453
7454int
7455main ()
7456{
7457
7458  ;
7459  return 0;
7460}
7461_ACEOF
7462if ac_fn_c_try_link "$LINENO"; then :
7463  lt_cv_ld_exported_symbols_list=yes
7464else
7465  lt_cv_ld_exported_symbols_list=no
7466fi
7467rm -f core conftest.err conftest.$ac_objext \
7468    conftest$ac_exeext conftest.$ac_ext
7469	LDFLAGS=$save_LDFLAGS
7470
7471fi
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7473$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7474
7475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7476$as_echo_n "checking for -force_load linker flag... " >&6; }
7477if ${lt_cv_ld_force_load+:} false; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  lt_cv_ld_force_load=no
7481      cat > conftest.c << _LT_EOF
7482int forced_loaded() { return 2;}
7483_LT_EOF
7484      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7485      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7486      echo "$AR cru libconftest.a conftest.o" >&5
7487      $AR cru libconftest.a conftest.o 2>&5
7488      echo "$RANLIB libconftest.a" >&5
7489      $RANLIB libconftest.a 2>&5
7490      cat > conftest.c << _LT_EOF
7491int main() { return 0;}
7492_LT_EOF
7493      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7494      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7495      _lt_result=$?
7496      if test -s conftest.err && $GREP force_load conftest.err; then
7497	cat conftest.err >&5
7498      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7499	lt_cv_ld_force_load=yes
7500      else
7501	cat conftest.err >&5
7502      fi
7503        rm -f conftest.err libconftest.a conftest conftest.c
7504        rm -rf conftest.dSYM
7505
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7508$as_echo "$lt_cv_ld_force_load" >&6; }
7509    case $host_os in
7510    rhapsody* | darwin1.[012])
7511      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7512    darwin1.*)
7513      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7514    darwin*) # darwin 5.x on
7515      # if running on 10.5 or later, the deployment target defaults
7516      # to the OS version, if on x86, and 10.4, the deployment
7517      # target defaults to 10.4. Don't you love it?
7518      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7519	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7520	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7521	10.[012][,.]*)
7522	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7523	10.*)
7524	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7525      esac
7526    ;;
7527  esac
7528    if test yes = "$lt_cv_apple_cc_single_mod"; then
7529      _lt_dar_single_mod='$single_module'
7530    fi
7531    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7532      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7533    else
7534      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7535    fi
7536    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7537      _lt_dsymutil='~$DSYMUTIL $lib || :'
7538    else
7539      _lt_dsymutil=
7540    fi
7541    ;;
7542  esac
7543
7544# func_munge_path_list VARIABLE PATH
7545# -----------------------------------
7546# VARIABLE is name of variable containing _space_ separated list of
7547# directories to be munged by the contents of PATH, which is string
7548# having a format:
7549# "DIR[:DIR]:"
7550#       string "DIR[ DIR]" will be prepended to VARIABLE
7551# ":DIR[:DIR]"
7552#       string "DIR[ DIR]" will be appended to VARIABLE
7553# "DIRP[:DIRP]::[DIRA:]DIRA"
7554#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7555#       "DIRA[ DIRA]" will be appended to VARIABLE
7556# "DIR[:DIR]"
7557#       VARIABLE will be replaced by "DIR[ DIR]"
7558func_munge_path_list ()
7559{
7560    case x$2 in
7561    x)
7562        ;;
7563    *:)
7564        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7565        ;;
7566    x:*)
7567        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7568        ;;
7569    *::*)
7570        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7571        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7572        ;;
7573    *)
7574        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7575        ;;
7576    esac
7577}
7578
7579ac_ext=c
7580ac_cpp='$CPP $CPPFLAGS'
7581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7585$as_echo_n "checking how to run the C preprocessor... " >&6; }
7586# On Suns, sometimes $CPP names a directory.
7587if test -n "$CPP" && test -d "$CPP"; then
7588  CPP=
7589fi
7590if test -z "$CPP"; then
7591  if ${ac_cv_prog_CPP+:} false; then :
7592  $as_echo_n "(cached) " >&6
7593else
7594      # Double quotes because CPP needs to be expanded
7595    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7596    do
7597      ac_preproc_ok=false
7598for ac_c_preproc_warn_flag in '' yes
7599do
7600  # Use a header file that comes with gcc, so configuring glibc
7601  # with a fresh cross-compiler works.
7602  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7603  # <limits.h> exists even on freestanding compilers.
7604  # On the NeXT, cc -E runs the code through the compiler's parser,
7605  # not just through cpp. "Syntax error" is here to catch this case.
7606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h.  */
7608#ifdef __STDC__
7609# include <limits.h>
7610#else
7611# include <assert.h>
7612#endif
7613		     Syntax error
7614_ACEOF
7615if ac_fn_c_try_cpp "$LINENO"; then :
7616
7617else
7618  # Broken: fails on valid input.
7619continue
7620fi
7621rm -f conftest.err conftest.i conftest.$ac_ext
7622
7623  # OK, works on sane cases.  Now check whether nonexistent headers
7624  # can be detected and how.
7625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627#include <ac_nonexistent.h>
7628_ACEOF
7629if ac_fn_c_try_cpp "$LINENO"; then :
7630  # Broken: success on invalid input.
7631continue
7632else
7633  # Passes both tests.
7634ac_preproc_ok=:
7635break
7636fi
7637rm -f conftest.err conftest.i conftest.$ac_ext
7638
7639done
7640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7641rm -f conftest.i conftest.err conftest.$ac_ext
7642if $ac_preproc_ok; then :
7643  break
7644fi
7645
7646    done
7647    ac_cv_prog_CPP=$CPP
7648
7649fi
7650  CPP=$ac_cv_prog_CPP
7651else
7652  ac_cv_prog_CPP=$CPP
7653fi
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7655$as_echo "$CPP" >&6; }
7656ac_preproc_ok=false
7657for ac_c_preproc_warn_flag in '' yes
7658do
7659  # Use a header file that comes with gcc, so configuring glibc
7660  # with a fresh cross-compiler works.
7661  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7662  # <limits.h> exists even on freestanding compilers.
7663  # On the NeXT, cc -E runs the code through the compiler's parser,
7664  # not just through cpp. "Syntax error" is here to catch this case.
7665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666/* end confdefs.h.  */
7667#ifdef __STDC__
7668# include <limits.h>
7669#else
7670# include <assert.h>
7671#endif
7672		     Syntax error
7673_ACEOF
7674if ac_fn_c_try_cpp "$LINENO"; then :
7675
7676else
7677  # Broken: fails on valid input.
7678continue
7679fi
7680rm -f conftest.err conftest.i conftest.$ac_ext
7681
7682  # OK, works on sane cases.  Now check whether nonexistent headers
7683  # can be detected and how.
7684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h.  */
7686#include <ac_nonexistent.h>
7687_ACEOF
7688if ac_fn_c_try_cpp "$LINENO"; then :
7689  # Broken: success on invalid input.
7690continue
7691else
7692  # Passes both tests.
7693ac_preproc_ok=:
7694break
7695fi
7696rm -f conftest.err conftest.i conftest.$ac_ext
7697
7698done
7699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7700rm -f conftest.i conftest.err conftest.$ac_ext
7701if $ac_preproc_ok; then :
7702
7703else
7704  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7706as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7707See \`config.log' for more details" "$LINENO" 5; }
7708fi
7709
7710ac_ext=c
7711ac_cpp='$CPP $CPPFLAGS'
7712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7718$as_echo_n "checking for ANSI C header files... " >&6; }
7719if ${ac_cv_header_stdc+:} false; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724#include <stdlib.h>
7725#include <stdarg.h>
7726#include <string.h>
7727#include <float.h>
7728
7729int
7730main ()
7731{
7732
7733  ;
7734  return 0;
7735}
7736_ACEOF
7737if ac_fn_c_try_compile "$LINENO"; then :
7738  ac_cv_header_stdc=yes
7739else
7740  ac_cv_header_stdc=no
7741fi
7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743
7744if test $ac_cv_header_stdc = yes; then
7745  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h.  */
7748#include <string.h>
7749
7750_ACEOF
7751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752  $EGREP "memchr" >/dev/null 2>&1; then :
7753
7754else
7755  ac_cv_header_stdc=no
7756fi
7757rm -f conftest*
7758
7759fi
7760
7761if test $ac_cv_header_stdc = yes; then
7762  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h.  */
7765#include <stdlib.h>
7766
7767_ACEOF
7768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7769  $EGREP "free" >/dev/null 2>&1; then :
7770
7771else
7772  ac_cv_header_stdc=no
7773fi
7774rm -f conftest*
7775
7776fi
7777
7778if test $ac_cv_header_stdc = yes; then
7779  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7780  if test "$cross_compiling" = yes; then :
7781  :
7782else
7783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784/* end confdefs.h.  */
7785#include <ctype.h>
7786#include <stdlib.h>
7787#if ((' ' & 0x0FF) == 0x020)
7788# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7789# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7790#else
7791# define ISLOWER(c) \
7792		   (('a' <= (c) && (c) <= 'i') \
7793		     || ('j' <= (c) && (c) <= 'r') \
7794		     || ('s' <= (c) && (c) <= 'z'))
7795# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7796#endif
7797
7798#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7799int
7800main ()
7801{
7802  int i;
7803  for (i = 0; i < 256; i++)
7804    if (XOR (islower (i), ISLOWER (i))
7805	|| toupper (i) != TOUPPER (i))
7806      return 2;
7807  return 0;
7808}
7809_ACEOF
7810if ac_fn_c_try_run "$LINENO"; then :
7811
7812else
7813  ac_cv_header_stdc=no
7814fi
7815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7816  conftest.$ac_objext conftest.beam conftest.$ac_ext
7817fi
7818
7819fi
7820fi
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7822$as_echo "$ac_cv_header_stdc" >&6; }
7823if test $ac_cv_header_stdc = yes; then
7824
7825$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7826
7827fi
7828
7829# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7830for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7831		  inttypes.h stdint.h unistd.h
7832do :
7833  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7834ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7835"
7836if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7837  cat >>confdefs.h <<_ACEOF
7838#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839_ACEOF
7840
7841fi
7842
7843done
7844
7845
7846for ac_header in dlfcn.h
7847do :
7848  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7849"
7850if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7851  cat >>confdefs.h <<_ACEOF
7852#define HAVE_DLFCN_H 1
7853_ACEOF
7854
7855fi
7856
7857done
7858
7859
7860
7861
7862
7863# Set options
7864
7865
7866
7867        enable_dlopen=no
7868
7869
7870  enable_win32_dll=no
7871
7872
7873            # Check whether --enable-shared was given.
7874if test "${enable_shared+set}" = set; then :
7875  enableval=$enable_shared; p=${PACKAGE-default}
7876    case $enableval in
7877    yes) enable_shared=yes ;;
7878    no) enable_shared=no ;;
7879    *)
7880      enable_shared=no
7881      # Look at the argument we got.  We use all the common list separators.
7882      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7883      for pkg in $enableval; do
7884	IFS=$lt_save_ifs
7885	if test "X$pkg" = "X$p"; then
7886	  enable_shared=yes
7887	fi
7888      done
7889      IFS=$lt_save_ifs
7890      ;;
7891    esac
7892else
7893  enable_shared=yes
7894fi
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904  # Check whether --enable-static was given.
7905if test "${enable_static+set}" = set; then :
7906  enableval=$enable_static; p=${PACKAGE-default}
7907    case $enableval in
7908    yes) enable_static=yes ;;
7909    no) enable_static=no ;;
7910    *)
7911     enable_static=no
7912      # Look at the argument we got.  We use all the common list separators.
7913      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7914      for pkg in $enableval; do
7915	IFS=$lt_save_ifs
7916	if test "X$pkg" = "X$p"; then
7917	  enable_static=yes
7918	fi
7919      done
7920      IFS=$lt_save_ifs
7921      ;;
7922    esac
7923else
7924  enable_static=yes
7925fi
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936# Check whether --with-pic was given.
7937if test "${with_pic+set}" = set; then :
7938  withval=$with_pic; lt_p=${PACKAGE-default}
7939    case $withval in
7940    yes|no) pic_mode=$withval ;;
7941    *)
7942      pic_mode=default
7943      # Look at the argument we got.  We use all the common list separators.
7944      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7945      for lt_pkg in $withval; do
7946	IFS=$lt_save_ifs
7947	if test "X$lt_pkg" = "X$lt_p"; then
7948	  pic_mode=yes
7949	fi
7950      done
7951      IFS=$lt_save_ifs
7952      ;;
7953    esac
7954else
7955  pic_mode=default
7956fi
7957
7958
7959
7960
7961
7962
7963
7964
7965  # Check whether --enable-fast-install was given.
7966if test "${enable_fast_install+set}" = set; then :
7967  enableval=$enable_fast_install; p=${PACKAGE-default}
7968    case $enableval in
7969    yes) enable_fast_install=yes ;;
7970    no) enable_fast_install=no ;;
7971    *)
7972      enable_fast_install=no
7973      # Look at the argument we got.  We use all the common list separators.
7974      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7975      for pkg in $enableval; do
7976	IFS=$lt_save_ifs
7977	if test "X$pkg" = "X$p"; then
7978	  enable_fast_install=yes
7979	fi
7980      done
7981      IFS=$lt_save_ifs
7982      ;;
7983    esac
7984else
7985  enable_fast_install=yes
7986fi
7987
7988
7989
7990
7991
7992
7993
7994
7995  shared_archive_member_spec=
7996case $host,$enable_shared in
7997power*-*-aix[5-9]*,yes)
7998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7999$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8000
8001# Check whether --with-aix-soname was given.
8002if test "${with_aix_soname+set}" = set; then :
8003  withval=$with_aix_soname; case $withval in
8004    aix|svr4|both)
8005      ;;
8006    *)
8007      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8008      ;;
8009    esac
8010    lt_cv_with_aix_soname=$with_aix_soname
8011else
8012  if ${lt_cv_with_aix_soname+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  lt_cv_with_aix_soname=aix
8016fi
8017
8018    with_aix_soname=$lt_cv_with_aix_soname
8019fi
8020
8021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8022$as_echo "$with_aix_soname" >&6; }
8023  if test aix != "$with_aix_soname"; then
8024    # For the AIX way of multilib, we name the shared archive member
8025    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8026    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8027    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8028    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8029    if test 64 = "${OBJECT_MODE-32}"; then
8030      shared_archive_member_spec=shr_64
8031    else
8032      shared_archive_member_spec=shr
8033    fi
8034  fi
8035  ;;
8036*)
8037  with_aix_soname=aix
8038  ;;
8039esac
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050# This can be used to rebuild libtool when needed
8051LIBTOOL_DEPS=$ltmain
8052
8053# Always use our own libtool.
8054LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085test -z "$LN_S" && LN_S="ln -s"
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100if test -n "${ZSH_VERSION+set}"; then
8101   setopt NO_GLOB_SUBST
8102fi
8103
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8105$as_echo_n "checking for objdir... " >&6; }
8106if ${lt_cv_objdir+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  rm -f .libs 2>/dev/null
8110mkdir .libs 2>/dev/null
8111if test -d .libs; then
8112  lt_cv_objdir=.libs
8113else
8114  # MS-DOS does not allow filenames that begin with a dot.
8115  lt_cv_objdir=_libs
8116fi
8117rmdir .libs 2>/dev/null
8118fi
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8120$as_echo "$lt_cv_objdir" >&6; }
8121objdir=$lt_cv_objdir
8122
8123
8124
8125
8126
8127cat >>confdefs.h <<_ACEOF
8128#define LT_OBJDIR "$lt_cv_objdir/"
8129_ACEOF
8130
8131
8132
8133
8134case $host_os in
8135aix3*)
8136  # AIX sometimes has problems with the GCC collect2 program.  For some
8137  # reason, if we set the COLLECT_NAMES environment variable, the problems
8138  # vanish in a puff of smoke.
8139  if test set != "${COLLECT_NAMES+set}"; then
8140    COLLECT_NAMES=
8141    export COLLECT_NAMES
8142  fi
8143  ;;
8144esac
8145
8146# Global variables:
8147ofile=libtool
8148can_build_shared=yes
8149
8150# All known linkers require a '.a' archive for static linking (except MSVC,
8151# which needs '.lib').
8152libext=a
8153
8154with_gnu_ld=$lt_cv_prog_gnu_ld
8155
8156old_CC=$CC
8157old_CFLAGS=$CFLAGS
8158
8159# Set sane defaults for various variables
8160test -z "$CC" && CC=cc
8161test -z "$LTCC" && LTCC=$CC
8162test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8163test -z "$LD" && LD=ld
8164test -z "$ac_objext" && ac_objext=o
8165
8166func_cc_basename $compiler
8167cc_basename=$func_cc_basename_result
8168
8169
8170# Only perform the check for file, if the check method requires it
8171test -z "$MAGIC_CMD" && MAGIC_CMD=file
8172case $deplibs_check_method in
8173file_magic*)
8174  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8176$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8177if ${lt_cv_path_MAGIC_CMD+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  case $MAGIC_CMD in
8181[\\/*] |  ?:[\\/]*)
8182  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8183  ;;
8184*)
8185  lt_save_MAGIC_CMD=$MAGIC_CMD
8186  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8187  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8188  for ac_dir in $ac_dummy; do
8189    IFS=$lt_save_ifs
8190    test -z "$ac_dir" && ac_dir=.
8191    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8192      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8193      if test -n "$file_magic_test_file"; then
8194	case $deplibs_check_method in
8195	"file_magic "*)
8196	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8197	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8198	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8199	    $EGREP "$file_magic_regex" > /dev/null; then
8200	    :
8201	  else
8202	    cat <<_LT_EOF 1>&2
8203
8204*** Warning: the command libtool uses to detect shared libraries,
8205*** $file_magic_cmd, produces output that libtool cannot recognize.
8206*** The result is that libtool may fail to recognize shared libraries
8207*** as such.  This will affect the creation of libtool libraries that
8208*** depend on shared libraries, but programs linked with such libtool
8209*** libraries will work regardless of this problem.  Nevertheless, you
8210*** may want to report the problem to your system manager and/or to
8211*** bug-libtool@gnu.org
8212
8213_LT_EOF
8214	  fi ;;
8215	esac
8216      fi
8217      break
8218    fi
8219  done
8220  IFS=$lt_save_ifs
8221  MAGIC_CMD=$lt_save_MAGIC_CMD
8222  ;;
8223esac
8224fi
8225
8226MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8227if test -n "$MAGIC_CMD"; then
8228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8229$as_echo "$MAGIC_CMD" >&6; }
8230else
8231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232$as_echo "no" >&6; }
8233fi
8234
8235
8236
8237
8238
8239if test -z "$lt_cv_path_MAGIC_CMD"; then
8240  if test -n "$ac_tool_prefix"; then
8241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8242$as_echo_n "checking for file... " >&6; }
8243if ${lt_cv_path_MAGIC_CMD+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  case $MAGIC_CMD in
8247[\\/*] |  ?:[\\/]*)
8248  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8249  ;;
8250*)
8251  lt_save_MAGIC_CMD=$MAGIC_CMD
8252  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8253  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254  for ac_dir in $ac_dummy; do
8255    IFS=$lt_save_ifs
8256    test -z "$ac_dir" && ac_dir=.
8257    if test -f "$ac_dir/file"; then
8258      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8259      if test -n "$file_magic_test_file"; then
8260	case $deplibs_check_method in
8261	"file_magic "*)
8262	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8264	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265	    $EGREP "$file_magic_regex" > /dev/null; then
8266	    :
8267	  else
8268	    cat <<_LT_EOF 1>&2
8269
8270*** Warning: the command libtool uses to detect shared libraries,
8271*** $file_magic_cmd, produces output that libtool cannot recognize.
8272*** The result is that libtool may fail to recognize shared libraries
8273*** as such.  This will affect the creation of libtool libraries that
8274*** depend on shared libraries, but programs linked with such libtool
8275*** libraries will work regardless of this problem.  Nevertheless, you
8276*** may want to report the problem to your system manager and/or to
8277*** bug-libtool@gnu.org
8278
8279_LT_EOF
8280	  fi ;;
8281	esac
8282      fi
8283      break
8284    fi
8285  done
8286  IFS=$lt_save_ifs
8287  MAGIC_CMD=$lt_save_MAGIC_CMD
8288  ;;
8289esac
8290fi
8291
8292MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8293if test -n "$MAGIC_CMD"; then
8294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8295$as_echo "$MAGIC_CMD" >&6; }
8296else
8297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298$as_echo "no" >&6; }
8299fi
8300
8301
8302  else
8303    MAGIC_CMD=:
8304  fi
8305fi
8306
8307  fi
8308  ;;
8309esac
8310
8311# Use C for the default configuration in the libtool script
8312
8313lt_save_CC=$CC
8314ac_ext=c
8315ac_cpp='$CPP $CPPFLAGS'
8316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319
8320
8321# Source file extension for C test sources.
8322ac_ext=c
8323
8324# Object file extension for compiled C test sources.
8325objext=o
8326objext=$objext
8327
8328# Code to be used in simple compile tests
8329lt_simple_compile_test_code="int some_variable = 0;"
8330
8331# Code to be used in simple link tests
8332lt_simple_link_test_code='int main(){return(0);}'
8333
8334
8335
8336
8337
8338
8339
8340# If no C compiler was specified, use CC.
8341LTCC=${LTCC-"$CC"}
8342
8343# If no C compiler flags were specified, use CFLAGS.
8344LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8345
8346# Allow CC to be a program name with arguments.
8347compiler=$CC
8348
8349# Save the default compiler, since it gets overwritten when the other
8350# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8351compiler_DEFAULT=$CC
8352
8353# save warnings/boilerplate of simple test code
8354ac_outfile=conftest.$ac_objext
8355echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8356eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8357_lt_compiler_boilerplate=`cat conftest.err`
8358$RM conftest*
8359
8360ac_outfile=conftest.$ac_objext
8361echo "$lt_simple_link_test_code" >conftest.$ac_ext
8362eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8363_lt_linker_boilerplate=`cat conftest.err`
8364$RM -r conftest*
8365
8366
8367if test -n "$compiler"; then
8368
8369lt_prog_compiler_no_builtin_flag=
8370
8371if test yes = "$GCC"; then
8372  case $cc_basename in
8373  nvcc*)
8374    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8375  *)
8376    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8377  esac
8378
8379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8380$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8381if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8382  $as_echo_n "(cached) " >&6
8383else
8384  lt_cv_prog_compiler_rtti_exceptions=no
8385   ac_outfile=conftest.$ac_objext
8386   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8387   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8388   # Insert the option either (1) after the last *FLAGS variable, or
8389   # (2) before a word containing "conftest.", or (3) at the end.
8390   # Note that $ac_compile itself does not contain backslashes and begins
8391   # with a dollar sign (not a hyphen), so the echo should work correctly.
8392   # The option is referenced via a variable to avoid confusing sed.
8393   lt_compile=`echo "$ac_compile" | $SED \
8394   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8395   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8396   -e 's:$: $lt_compiler_flag:'`
8397   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8398   (eval "$lt_compile" 2>conftest.err)
8399   ac_status=$?
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   if (exit $ac_status) && test -s "$ac_outfile"; then
8403     # The compiler can only warn and ignore the option if not recognized
8404     # So say no if there are warnings other than the usual output.
8405     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8406     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8407     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8408       lt_cv_prog_compiler_rtti_exceptions=yes
8409     fi
8410   fi
8411   $RM conftest*
8412
8413fi
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8415$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8416
8417if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8418    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8419else
8420    :
8421fi
8422
8423fi
8424
8425
8426
8427
8428
8429
8430  lt_prog_compiler_wl=
8431lt_prog_compiler_pic=
8432lt_prog_compiler_static=
8433
8434
8435  if test yes = "$GCC"; then
8436    lt_prog_compiler_wl='-Wl,'
8437    lt_prog_compiler_static='-static'
8438
8439    case $host_os in
8440      aix*)
8441      # All AIX code is PIC.
8442      if test ia64 = "$host_cpu"; then
8443	# AIX 5 now supports IA64 processor
8444	lt_prog_compiler_static='-Bstatic'
8445      fi
8446      lt_prog_compiler_pic='-fPIC'
8447      ;;
8448
8449    amigaos*)
8450      case $host_cpu in
8451      powerpc)
8452            # see comment about AmigaOS4 .so support
8453            lt_prog_compiler_pic='-fPIC'
8454        ;;
8455      m68k)
8456            # FIXME: we need at least 68020 code to build shared libraries, but
8457            # adding the '-m68020' flag to GCC prevents building anything better,
8458            # like '-m68040'.
8459            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8460        ;;
8461      esac
8462      ;;
8463
8464    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8465      # PIC is the default for these OSes.
8466      ;;
8467
8468    mingw* | cygwin* | pw32* | os2* | cegcc*)
8469      # This hack is so that the source file can tell whether it is being
8470      # built for inclusion in a dll (and should export symbols for example).
8471      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8472      # (--disable-auto-import) libraries
8473      lt_prog_compiler_pic='-DDLL_EXPORT'
8474      case $host_os in
8475      os2*)
8476	lt_prog_compiler_static='$wl-static'
8477	;;
8478      esac
8479      ;;
8480
8481    darwin* | rhapsody*)
8482      # PIC is the default on this platform
8483      # Common symbols not allowed in MH_DYLIB files
8484      lt_prog_compiler_pic='-fno-common'
8485      ;;
8486
8487    haiku*)
8488      # PIC is the default for Haiku.
8489      # The "-static" flag exists, but is broken.
8490      lt_prog_compiler_static=
8491      ;;
8492
8493    hpux*)
8494      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8495      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8496      # sets the default TLS model and affects inlining.
8497      case $host_cpu in
8498      hppa*64*)
8499	# +Z the default
8500	;;
8501      *)
8502	lt_prog_compiler_pic='-fPIC'
8503	;;
8504      esac
8505      ;;
8506
8507    interix[3-9]*)
8508      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8509      # Instead, we relocate shared libraries at runtime.
8510      ;;
8511
8512    msdosdjgpp*)
8513      # Just because we use GCC doesn't mean we suddenly get shared libraries
8514      # on systems that don't support them.
8515      lt_prog_compiler_can_build_shared=no
8516      enable_shared=no
8517      ;;
8518
8519    *nto* | *qnx*)
8520      # QNX uses GNU C++, but need to define -shared option too, otherwise
8521      # it will coredump.
8522      lt_prog_compiler_pic='-fPIC -shared'
8523      ;;
8524
8525    sysv4*MP*)
8526      if test -d /usr/nec; then
8527	lt_prog_compiler_pic=-Kconform_pic
8528      fi
8529      ;;
8530
8531    *)
8532      lt_prog_compiler_pic='-fPIC'
8533      ;;
8534    esac
8535
8536    case $cc_basename in
8537    nvcc*) # Cuda Compiler Driver 2.2
8538      lt_prog_compiler_wl='-Xlinker '
8539      if test -n "$lt_prog_compiler_pic"; then
8540        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8541      fi
8542      ;;
8543    esac
8544  else
8545    # PORTME Check for flag to pass linker flags through the system compiler.
8546    case $host_os in
8547    aix*)
8548      lt_prog_compiler_wl='-Wl,'
8549      if test ia64 = "$host_cpu"; then
8550	# AIX 5 now supports IA64 processor
8551	lt_prog_compiler_static='-Bstatic'
8552      else
8553	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8554      fi
8555      ;;
8556
8557    darwin* | rhapsody*)
8558      # PIC is the default on this platform
8559      # Common symbols not allowed in MH_DYLIB files
8560      lt_prog_compiler_pic='-fno-common'
8561      case $cc_basename in
8562      nagfor*)
8563        # NAG Fortran compiler
8564        lt_prog_compiler_wl='-Wl,-Wl,,'
8565        lt_prog_compiler_pic='-PIC'
8566        lt_prog_compiler_static='-Bstatic'
8567        ;;
8568      esac
8569      ;;
8570
8571    mingw* | cygwin* | pw32* | os2* | cegcc*)
8572      # This hack is so that the source file can tell whether it is being
8573      # built for inclusion in a dll (and should export symbols for example).
8574      lt_prog_compiler_pic='-DDLL_EXPORT'
8575      case $host_os in
8576      os2*)
8577	lt_prog_compiler_static='$wl-static'
8578	;;
8579      esac
8580      ;;
8581
8582    hpux9* | hpux10* | hpux11*)
8583      lt_prog_compiler_wl='-Wl,'
8584      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8585      # not for PA HP-UX.
8586      case $host_cpu in
8587      hppa*64*|ia64*)
8588	# +Z the default
8589	;;
8590      *)
8591	lt_prog_compiler_pic='+Z'
8592	;;
8593      esac
8594      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8595      lt_prog_compiler_static='$wl-a ${wl}archive'
8596      ;;
8597
8598    irix5* | irix6* | nonstopux*)
8599      lt_prog_compiler_wl='-Wl,'
8600      # PIC (with -KPIC) is the default.
8601      lt_prog_compiler_static='-non_shared'
8602      ;;
8603
8604    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8605      case $cc_basename in
8606      # old Intel for x86_64, which still supported -KPIC.
8607      ecc*)
8608	lt_prog_compiler_wl='-Wl,'
8609	lt_prog_compiler_pic='-KPIC'
8610	lt_prog_compiler_static='-static'
8611        ;;
8612      # icc used to be incompatible with GCC.
8613      # ICC 10 doesn't accept -KPIC any more.
8614      icc* | ifort*)
8615	lt_prog_compiler_wl='-Wl,'
8616	lt_prog_compiler_pic='-fPIC'
8617	lt_prog_compiler_static='-static'
8618        ;;
8619      # Lahey Fortran 8.1.
8620      lf95*)
8621	lt_prog_compiler_wl='-Wl,'
8622	lt_prog_compiler_pic='--shared'
8623	lt_prog_compiler_static='--static'
8624	;;
8625      nagfor*)
8626	# NAG Fortran compiler
8627	lt_prog_compiler_wl='-Wl,-Wl,,'
8628	lt_prog_compiler_pic='-PIC'
8629	lt_prog_compiler_static='-Bstatic'
8630	;;
8631      tcc*)
8632	# Fabrice Bellard et al's Tiny C Compiler
8633	lt_prog_compiler_wl='-Wl,'
8634	lt_prog_compiler_pic='-fPIC'
8635	lt_prog_compiler_static='-static'
8636	;;
8637      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8638        # Portland Group compilers (*not* the Pentium gcc compiler,
8639	# which looks to be a dead project)
8640	lt_prog_compiler_wl='-Wl,'
8641	lt_prog_compiler_pic='-fpic'
8642	lt_prog_compiler_static='-Bstatic'
8643        ;;
8644      ccc*)
8645        lt_prog_compiler_wl='-Wl,'
8646        # All Alpha code is PIC.
8647        lt_prog_compiler_static='-non_shared'
8648        ;;
8649      xl* | bgxl* | bgf* | mpixl*)
8650	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8651	lt_prog_compiler_wl='-Wl,'
8652	lt_prog_compiler_pic='-qpic'
8653	lt_prog_compiler_static='-qstaticlink'
8654	;;
8655      *)
8656	case `$CC -V 2>&1 | sed 5q` in
8657	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8658	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8659	  lt_prog_compiler_pic='-KPIC'
8660	  lt_prog_compiler_static='-Bstatic'
8661	  lt_prog_compiler_wl=''
8662	  ;;
8663	*Sun\ F* | *Sun*Fortran*)
8664	  lt_prog_compiler_pic='-KPIC'
8665	  lt_prog_compiler_static='-Bstatic'
8666	  lt_prog_compiler_wl='-Qoption ld '
8667	  ;;
8668	*Sun\ C*)
8669	  # Sun C 5.9
8670	  lt_prog_compiler_pic='-KPIC'
8671	  lt_prog_compiler_static='-Bstatic'
8672	  lt_prog_compiler_wl='-Wl,'
8673	  ;;
8674        *Intel*\ [CF]*Compiler*)
8675	  lt_prog_compiler_wl='-Wl,'
8676	  lt_prog_compiler_pic='-fPIC'
8677	  lt_prog_compiler_static='-static'
8678	  ;;
8679	*Portland\ Group*)
8680	  lt_prog_compiler_wl='-Wl,'
8681	  lt_prog_compiler_pic='-fpic'
8682	  lt_prog_compiler_static='-Bstatic'
8683	  ;;
8684	esac
8685	;;
8686      esac
8687      ;;
8688
8689    newsos6)
8690      lt_prog_compiler_pic='-KPIC'
8691      lt_prog_compiler_static='-Bstatic'
8692      ;;
8693
8694    *nto* | *qnx*)
8695      # QNX uses GNU C++, but need to define -shared option too, otherwise
8696      # it will coredump.
8697      lt_prog_compiler_pic='-fPIC -shared'
8698      ;;
8699
8700    osf3* | osf4* | osf5*)
8701      lt_prog_compiler_wl='-Wl,'
8702      # All OSF/1 code is PIC.
8703      lt_prog_compiler_static='-non_shared'
8704      ;;
8705
8706    rdos*)
8707      lt_prog_compiler_static='-non_shared'
8708      ;;
8709
8710    solaris*)
8711      lt_prog_compiler_pic='-KPIC'
8712      lt_prog_compiler_static='-Bstatic'
8713      case $cc_basename in
8714      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8715	lt_prog_compiler_wl='-Qoption ld ';;
8716      *)
8717	lt_prog_compiler_wl='-Wl,';;
8718      esac
8719      ;;
8720
8721    sunos4*)
8722      lt_prog_compiler_wl='-Qoption ld '
8723      lt_prog_compiler_pic='-PIC'
8724      lt_prog_compiler_static='-Bstatic'
8725      ;;
8726
8727    sysv4 | sysv4.2uw2* | sysv4.3*)
8728      lt_prog_compiler_wl='-Wl,'
8729      lt_prog_compiler_pic='-KPIC'
8730      lt_prog_compiler_static='-Bstatic'
8731      ;;
8732
8733    sysv4*MP*)
8734      if test -d /usr/nec; then
8735	lt_prog_compiler_pic='-Kconform_pic'
8736	lt_prog_compiler_static='-Bstatic'
8737      fi
8738      ;;
8739
8740    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8741      lt_prog_compiler_wl='-Wl,'
8742      lt_prog_compiler_pic='-KPIC'
8743      lt_prog_compiler_static='-Bstatic'
8744      ;;
8745
8746    unicos*)
8747      lt_prog_compiler_wl='-Wl,'
8748      lt_prog_compiler_can_build_shared=no
8749      ;;
8750
8751    uts4*)
8752      lt_prog_compiler_pic='-pic'
8753      lt_prog_compiler_static='-Bstatic'
8754      ;;
8755
8756    *)
8757      lt_prog_compiler_can_build_shared=no
8758      ;;
8759    esac
8760  fi
8761
8762case $host_os in
8763  # For platforms that do not support PIC, -DPIC is meaningless:
8764  *djgpp*)
8765    lt_prog_compiler_pic=
8766    ;;
8767  *)
8768    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8769    ;;
8770esac
8771
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8773$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8774if ${lt_cv_prog_compiler_pic+:} false; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8778fi
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8780$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8781lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8782
8783#
8784# Check to make sure the PIC flag actually works.
8785#
8786if test -n "$lt_prog_compiler_pic"; then
8787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8788$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8789if ${lt_cv_prog_compiler_pic_works+:} false; then :
8790  $as_echo_n "(cached) " >&6
8791else
8792  lt_cv_prog_compiler_pic_works=no
8793   ac_outfile=conftest.$ac_objext
8794   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8795   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8796   # Insert the option either (1) after the last *FLAGS variable, or
8797   # (2) before a word containing "conftest.", or (3) at the end.
8798   # Note that $ac_compile itself does not contain backslashes and begins
8799   # with a dollar sign (not a hyphen), so the echo should work correctly.
8800   # The option is referenced via a variable to avoid confusing sed.
8801   lt_compile=`echo "$ac_compile" | $SED \
8802   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8803   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8804   -e 's:$: $lt_compiler_flag:'`
8805   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8806   (eval "$lt_compile" 2>conftest.err)
8807   ac_status=$?
8808   cat conftest.err >&5
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   if (exit $ac_status) && test -s "$ac_outfile"; then
8811     # The compiler can only warn and ignore the option if not recognized
8812     # So say no if there are warnings other than the usual output.
8813     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8814     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8815     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8816       lt_cv_prog_compiler_pic_works=yes
8817     fi
8818   fi
8819   $RM conftest*
8820
8821fi
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8823$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8824
8825if test yes = "$lt_cv_prog_compiler_pic_works"; then
8826    case $lt_prog_compiler_pic in
8827     "" | " "*) ;;
8828     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8829     esac
8830else
8831    lt_prog_compiler_pic=
8832     lt_prog_compiler_can_build_shared=no
8833fi
8834
8835fi
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847#
8848# Check to make sure the static flag actually works.
8849#
8850wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8852$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8853if ${lt_cv_prog_compiler_static_works+:} false; then :
8854  $as_echo_n "(cached) " >&6
8855else
8856  lt_cv_prog_compiler_static_works=no
8857   save_LDFLAGS=$LDFLAGS
8858   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8859   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8860   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8861     # The linker can only warn and ignore the option if not recognized
8862     # So say no if there are warnings
8863     if test -s conftest.err; then
8864       # Append any errors to the config.log.
8865       cat conftest.err 1>&5
8866       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8867       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868       if diff conftest.exp conftest.er2 >/dev/null; then
8869         lt_cv_prog_compiler_static_works=yes
8870       fi
8871     else
8872       lt_cv_prog_compiler_static_works=yes
8873     fi
8874   fi
8875   $RM -r conftest*
8876   LDFLAGS=$save_LDFLAGS
8877
8878fi
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8880$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8881
8882if test yes = "$lt_cv_prog_compiler_static_works"; then
8883    :
8884else
8885    lt_prog_compiler_static=
8886fi
8887
8888
8889
8890
8891
8892
8893
8894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8895$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8896if ${lt_cv_prog_compiler_c_o+:} false; then :
8897  $as_echo_n "(cached) " >&6
8898else
8899  lt_cv_prog_compiler_c_o=no
8900   $RM -r conftest 2>/dev/null
8901   mkdir conftest
8902   cd conftest
8903   mkdir out
8904   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905
8906   lt_compiler_flag="-o out/conftest2.$ac_objext"
8907   # Insert the option either (1) after the last *FLAGS variable, or
8908   # (2) before a word containing "conftest.", or (3) at the end.
8909   # Note that $ac_compile itself does not contain backslashes and begins
8910   # with a dollar sign (not a hyphen), so the echo should work correctly.
8911   lt_compile=`echo "$ac_compile" | $SED \
8912   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914   -e 's:$: $lt_compiler_flag:'`
8915   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8916   (eval "$lt_compile" 2>out/conftest.err)
8917   ac_status=$?
8918   cat out/conftest.err >&5
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8921   then
8922     # The compiler can only warn and ignore the option if not recognized
8923     # So say no if there are warnings
8924     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8925     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8926     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8927       lt_cv_prog_compiler_c_o=yes
8928     fi
8929   fi
8930   chmod u+w . 2>&5
8931   $RM conftest*
8932   # SGI C++ compiler will create directory out/ii_files/ for
8933   # template instantiation
8934   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8935   $RM out/* && rmdir out
8936   cd ..
8937   $RM -r conftest
8938   $RM conftest*
8939
8940fi
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8942$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8943
8944
8945
8946
8947
8948
8949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8950$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8951if ${lt_cv_prog_compiler_c_o+:} false; then :
8952  $as_echo_n "(cached) " >&6
8953else
8954  lt_cv_prog_compiler_c_o=no
8955   $RM -r conftest 2>/dev/null
8956   mkdir conftest
8957   cd conftest
8958   mkdir out
8959   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8960
8961   lt_compiler_flag="-o out/conftest2.$ac_objext"
8962   # Insert the option either (1) after the last *FLAGS variable, or
8963   # (2) before a word containing "conftest.", or (3) at the end.
8964   # Note that $ac_compile itself does not contain backslashes and begins
8965   # with a dollar sign (not a hyphen), so the echo should work correctly.
8966   lt_compile=`echo "$ac_compile" | $SED \
8967   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8968   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8969   -e 's:$: $lt_compiler_flag:'`
8970   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8971   (eval "$lt_compile" 2>out/conftest.err)
8972   ac_status=$?
8973   cat out/conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8976   then
8977     # The compiler can only warn and ignore the option if not recognized
8978     # So say no if there are warnings
8979     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8980     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8981     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8982       lt_cv_prog_compiler_c_o=yes
8983     fi
8984   fi
8985   chmod u+w . 2>&5
8986   $RM conftest*
8987   # SGI C++ compiler will create directory out/ii_files/ for
8988   # template instantiation
8989   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8990   $RM out/* && rmdir out
8991   cd ..
8992   $RM -r conftest
8993   $RM conftest*
8994
8995fi
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8997$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8998
8999
9000
9001
9002hard_links=nottested
9003if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9004  # do not overwrite the value of need_locks provided by the user
9005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9006$as_echo_n "checking if we can lock with hard links... " >&6; }
9007  hard_links=yes
9008  $RM conftest*
9009  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9010  touch conftest.a
9011  ln conftest.a conftest.b 2>&5 || hard_links=no
9012  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9014$as_echo "$hard_links" >&6; }
9015  if test no = "$hard_links"; then
9016    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9017$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9018    need_locks=warn
9019  fi
9020else
9021  need_locks=no
9022fi
9023
9024
9025
9026
9027
9028
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9030$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9031
9032  runpath_var=
9033  allow_undefined_flag=
9034  always_export_symbols=no
9035  archive_cmds=
9036  archive_expsym_cmds=
9037  compiler_needs_object=no
9038  enable_shared_with_static_runtimes=no
9039  export_dynamic_flag_spec=
9040  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9041  hardcode_automatic=no
9042  hardcode_direct=no
9043  hardcode_direct_absolute=no
9044  hardcode_libdir_flag_spec=
9045  hardcode_libdir_separator=
9046  hardcode_minus_L=no
9047  hardcode_shlibpath_var=unsupported
9048  inherit_rpath=no
9049  link_all_deplibs=unknown
9050  module_cmds=
9051  module_expsym_cmds=
9052  old_archive_from_new_cmds=
9053  old_archive_from_expsyms_cmds=
9054  thread_safe_flag_spec=
9055  whole_archive_flag_spec=
9056  # include_expsyms should be a list of space-separated symbols to be *always*
9057  # included in the symbol list
9058  include_expsyms=
9059  # exclude_expsyms can be an extended regexp of symbols to exclude
9060  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9061  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9062  # as well as any symbol that contains 'd'.
9063  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9064  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9065  # platforms (ab)use it in PIC code, but their linkers get confused if
9066  # the symbol is explicitly referenced.  Since portable code cannot
9067  # rely on this symbol name, it's probably fine to never include it in
9068  # preloaded symbol tables.
9069  # Exclude shared library initialization/finalization symbols.
9070  extract_expsyms_cmds=
9071
9072  case $host_os in
9073  cygwin* | mingw* | pw32* | cegcc*)
9074    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9075    # When not using gcc, we currently assume that we are using
9076    # Microsoft Visual C++.
9077    if test yes != "$GCC"; then
9078      with_gnu_ld=no
9079    fi
9080    ;;
9081  interix*)
9082    # we just hope/assume this is gcc and not c89 (= MSVC++)
9083    with_gnu_ld=yes
9084    ;;
9085  openbsd* | bitrig*)
9086    with_gnu_ld=no
9087    ;;
9088  esac
9089
9090  ld_shlibs=yes
9091
9092  # On some targets, GNU ld is compatible enough with the native linker
9093  # that we're better off using the native interface for both.
9094  lt_use_gnu_ld_interface=no
9095  if test yes = "$with_gnu_ld"; then
9096    case $host_os in
9097      aix*)
9098	# The AIX port of GNU ld has always aspired to compatibility
9099	# with the native linker.  However, as the warning in the GNU ld
9100	# block says, versions before 2.19.5* couldn't really create working
9101	# shared libraries, regardless of the interface used.
9102	case `$LD -v 2>&1` in
9103	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9104	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9105	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9106	  *)
9107	    lt_use_gnu_ld_interface=yes
9108	    ;;
9109	esac
9110	;;
9111      *)
9112	lt_use_gnu_ld_interface=yes
9113	;;
9114    esac
9115  fi
9116
9117  if test yes = "$lt_use_gnu_ld_interface"; then
9118    # If archive_cmds runs LD, not CC, wlarc should be empty
9119    wlarc='$wl'
9120
9121    # Set some defaults for GNU ld with shared library support. These
9122    # are reset later if shared libraries are not supported. Putting them
9123    # here allows them to be overridden if necessary.
9124    runpath_var=LD_RUN_PATH
9125    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9126    export_dynamic_flag_spec='$wl--export-dynamic'
9127    # ancient GNU ld didn't support --whole-archive et. al.
9128    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9129      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9130    else
9131      whole_archive_flag_spec=
9132    fi
9133    supports_anon_versioning=no
9134    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9135      *GNU\ gold*) supports_anon_versioning=yes ;;
9136      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9137      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9138      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9139      *\ 2.11.*) ;; # other 2.11 versions
9140      *) supports_anon_versioning=yes ;;
9141    esac
9142
9143    # See if GNU ld supports shared libraries.
9144    case $host_os in
9145    aix[3-9]*)
9146      # On AIX/PPC, the GNU linker is very broken
9147      if test ia64 != "$host_cpu"; then
9148	ld_shlibs=no
9149	cat <<_LT_EOF 1>&2
9150
9151*** Warning: the GNU linker, at least up to release 2.19, is reported
9152*** to be unable to reliably create shared libraries on AIX.
9153*** Therefore, libtool is disabling shared libraries support.  If you
9154*** really care for shared libraries, you may want to install binutils
9155*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9156*** You will then need to restart the configuration process.
9157
9158_LT_EOF
9159      fi
9160      ;;
9161
9162    amigaos*)
9163      case $host_cpu in
9164      powerpc)
9165            # see comment about AmigaOS4 .so support
9166            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9167            archive_expsym_cmds=''
9168        ;;
9169      m68k)
9170            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)'
9171            hardcode_libdir_flag_spec='-L$libdir'
9172            hardcode_minus_L=yes
9173        ;;
9174      esac
9175      ;;
9176
9177    beos*)
9178      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9179	allow_undefined_flag=unsupported
9180	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9181	# support --undefined.  This deserves some investigation.  FIXME
9182	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9183      else
9184	ld_shlibs=no
9185      fi
9186      ;;
9187
9188    cygwin* | mingw* | pw32* | cegcc*)
9189      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9190      # as there is no search path for DLLs.
9191      hardcode_libdir_flag_spec='-L$libdir'
9192      export_dynamic_flag_spec='$wl--export-all-symbols'
9193      allow_undefined_flag=unsupported
9194      always_export_symbols=no
9195      enable_shared_with_static_runtimes=yes
9196      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'
9197      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9198
9199      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9200        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9201	# If the export-symbols file already is a .def file, use it as
9202	# is; otherwise, prepend EXPORTS...
9203	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9204          cp $export_symbols $output_objdir/$soname.def;
9205        else
9206          echo EXPORTS > $output_objdir/$soname.def;
9207          cat $export_symbols >> $output_objdir/$soname.def;
9208        fi~
9209        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9210      else
9211	ld_shlibs=no
9212      fi
9213      ;;
9214
9215    haiku*)
9216      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9217      link_all_deplibs=yes
9218      ;;
9219
9220    os2*)
9221      hardcode_libdir_flag_spec='-L$libdir'
9222      hardcode_minus_L=yes
9223      allow_undefined_flag=unsupported
9224      shrext_cmds=.dll
9225      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9226	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9227	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9228	$ECHO EXPORTS >> $output_objdir/$libname.def~
9229	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9230	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9231	emximp -o $lib $output_objdir/$libname.def'
9232      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9233	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9234	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9235	$ECHO EXPORTS >> $output_objdir/$libname.def~
9236	prefix_cmds="$SED"~
9237	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9238	  prefix_cmds="$prefix_cmds -e 1d";
9239	fi~
9240	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9241	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9242	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9243	emximp -o $lib $output_objdir/$libname.def'
9244      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9245      enable_shared_with_static_runtimes=yes
9246      ;;
9247
9248    interix[3-9]*)
9249      hardcode_direct=no
9250      hardcode_shlibpath_var=no
9251      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9252      export_dynamic_flag_spec='$wl-E'
9253      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9254      # Instead, shared libraries are loaded at an image base (0x10000000 by
9255      # default) and relocated if they conflict, which is a slow very memory
9256      # consuming and fragmenting process.  To avoid this, we pick a random,
9257      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9258      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9259      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9260      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'
9261      ;;
9262
9263    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9264      tmp_diet=no
9265      if test linux-dietlibc = "$host_os"; then
9266	case $cc_basename in
9267	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9268	esac
9269      fi
9270      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9271	 && test no = "$tmp_diet"
9272      then
9273	tmp_addflag=' $pic_flag'
9274	tmp_sharedflag='-shared'
9275	case $cc_basename,$host_cpu in
9276        pgcc*)				# Portland Group C compiler
9277	  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'
9278	  tmp_addflag=' $pic_flag'
9279	  ;;
9280	pgf77* | pgf90* | pgf95* | pgfortran*)
9281					# Portland Group f77 and f90 compilers
9282	  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'
9283	  tmp_addflag=' $pic_flag -Mnomain' ;;
9284	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9285	  tmp_addflag=' -i_dynamic' ;;
9286	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9287	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9288	ifc* | ifort*)			# Intel Fortran compiler
9289	  tmp_addflag=' -nofor_main' ;;
9290	lf95*)				# Lahey Fortran 8.1
9291	  whole_archive_flag_spec=
9292	  tmp_sharedflag='--shared' ;;
9293        nagfor*)                        # NAGFOR 5.3
9294          tmp_sharedflag='-Wl,-shared' ;;
9295	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9296	  tmp_sharedflag='-qmkshrobj'
9297	  tmp_addflag= ;;
9298	nvcc*)	# Cuda Compiler Driver 2.2
9299	  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'
9300	  compiler_needs_object=yes
9301	  ;;
9302	esac
9303	case `$CC -V 2>&1 | sed 5q` in
9304	*Sun\ C*)			# Sun C 5.9
9305	  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'
9306	  compiler_needs_object=yes
9307	  tmp_sharedflag='-G' ;;
9308	*Sun\ F*)			# Sun Fortran 8.3
9309	  tmp_sharedflag='-G' ;;
9310	esac
9311	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9312
9313        if test yes = "$supports_anon_versioning"; then
9314          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9315            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9316            echo "local: *; };" >> $output_objdir/$libname.ver~
9317            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9318        fi
9319
9320	case $cc_basename in
9321	tcc*)
9322	  export_dynamic_flag_spec='-rdynamic'
9323	  ;;
9324	xlf* | bgf* | bgxlf* | mpixlf*)
9325	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9326	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9327	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9328	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9329	  if test yes = "$supports_anon_versioning"; then
9330	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9331              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9332              echo "local: *; };" >> $output_objdir/$libname.ver~
9333              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9334	  fi
9335	  ;;
9336	esac
9337      else
9338        ld_shlibs=no
9339      fi
9340      ;;
9341
9342    netbsd*)
9343      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9344	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9345	wlarc=
9346      else
9347	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9348	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9349      fi
9350      ;;
9351
9352    solaris*)
9353      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9354	ld_shlibs=no
9355	cat <<_LT_EOF 1>&2
9356
9357*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9358*** create shared libraries on Solaris systems.  Therefore, libtool
9359*** is disabling shared libraries support.  We urge you to upgrade GNU
9360*** binutils to release 2.9.1 or newer.  Another option is to modify
9361*** your PATH or compiler configuration so that the native linker is
9362*** used, and then restart.
9363
9364_LT_EOF
9365      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9366	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9367	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9368      else
9369	ld_shlibs=no
9370      fi
9371      ;;
9372
9373    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9374      case `$LD -v 2>&1` in
9375        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9376	ld_shlibs=no
9377	cat <<_LT_EOF 1>&2
9378
9379*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9380*** reliably create shared libraries on SCO systems.  Therefore, libtool
9381*** is disabling shared libraries support.  We urge you to upgrade GNU
9382*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9383*** your PATH or compiler configuration so that the native linker is
9384*** used, and then restart.
9385
9386_LT_EOF
9387	;;
9388	*)
9389	  # For security reasons, it is highly recommended that you always
9390	  # use absolute paths for naming shared libraries, and exclude the
9391	  # DT_RUNPATH tag from executables and libraries.  But doing so
9392	  # requires that you compile everything twice, which is a pain.
9393	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9394	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9395	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9396	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9397	  else
9398	    ld_shlibs=no
9399	  fi
9400	;;
9401      esac
9402      ;;
9403
9404    sunos4*)
9405      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9406      wlarc=
9407      hardcode_direct=yes
9408      hardcode_shlibpath_var=no
9409      ;;
9410
9411    *)
9412      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9413	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9414	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9415      else
9416	ld_shlibs=no
9417      fi
9418      ;;
9419    esac
9420
9421    if test no = "$ld_shlibs"; then
9422      runpath_var=
9423      hardcode_libdir_flag_spec=
9424      export_dynamic_flag_spec=
9425      whole_archive_flag_spec=
9426    fi
9427  else
9428    # PORTME fill in a description of your system's linker (not GNU ld)
9429    case $host_os in
9430    aix3*)
9431      allow_undefined_flag=unsupported
9432      always_export_symbols=yes
9433      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'
9434      # Note: this linker hardcodes the directories in LIBPATH if there
9435      # are no directories specified by -L.
9436      hardcode_minus_L=yes
9437      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9438	# Neither direct hardcoding nor static linking is supported with a
9439	# broken collect2.
9440	hardcode_direct=unsupported
9441      fi
9442      ;;
9443
9444    aix[4-9]*)
9445      if test ia64 = "$host_cpu"; then
9446	# On IA64, the linker does run time linking by default, so we don't
9447	# have to do anything special.
9448	aix_use_runtimelinking=no
9449	exp_sym_flag='-Bexport'
9450	no_entry_flag=
9451      else
9452	# If we're using GNU nm, then we don't want the "-C" option.
9453	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9454	# Without the "-l" option, or with the "-B" option, AIX nm treats
9455	# weak defined symbols like other global defined symbols, whereas
9456	# GNU nm marks them as "W".
9457	# While the 'weak' keyword is ignored in the Export File, we need
9458	# it in the Import File for the 'aix-soname' feature, so we have
9459	# to replace the "-B" option with "-P" for AIX nm.
9460	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9461	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9462	else
9463	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9464	fi
9465	aix_use_runtimelinking=no
9466
9467	# Test if we are trying to use run time linking or normal
9468	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9469	# have runtime linking enabled, and use it for executables.
9470	# For shared libraries, we enable/disable runtime linking
9471	# depending on the kind of the shared library created -
9472	# when "with_aix_soname,aix_use_runtimelinking" is:
9473	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9474	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9475	#            lib.a           static archive
9476	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9477	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9478	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9479	#            lib.a(lib.so.V) shared, rtl:no
9480	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9481	#            lib.a           static archive
9482	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9483	  for ld_flag in $LDFLAGS; do
9484	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9485	    aix_use_runtimelinking=yes
9486	    break
9487	  fi
9488	  done
9489	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9490	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9491	    # so we don't have lib.a shared libs to link our executables.
9492	    # We have to force runtime linking in this case.
9493	    aix_use_runtimelinking=yes
9494	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9495	  fi
9496	  ;;
9497	esac
9498
9499	exp_sym_flag='-bexport'
9500	no_entry_flag='-bnoentry'
9501      fi
9502
9503      # When large executables or shared objects are built, AIX ld can
9504      # have problems creating the table of contents.  If linking a library
9505      # or program results in "error TOC overflow" add -mminimal-toc to
9506      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9507      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9508
9509      archive_cmds=''
9510      hardcode_direct=yes
9511      hardcode_direct_absolute=yes
9512      hardcode_libdir_separator=':'
9513      link_all_deplibs=yes
9514      file_list_spec='$wl-f,'
9515      case $with_aix_soname,$aix_use_runtimelinking in
9516      aix,*) ;; # traditional, no import file
9517      svr4,* | *,yes) # use import file
9518	# The Import File defines what to hardcode.
9519	hardcode_direct=no
9520	hardcode_direct_absolute=no
9521	;;
9522      esac
9523
9524      if test yes = "$GCC"; then
9525	case $host_os in aix4.[012]|aix4.[012].*)
9526	# We only want to do this on AIX 4.2 and lower, the check
9527	# below for broken collect2 doesn't work under 4.3+
9528	  collect2name=`$CC -print-prog-name=collect2`
9529	  if test -f "$collect2name" &&
9530	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9531	  then
9532	  # We have reworked collect2
9533	  :
9534	  else
9535	  # We have old collect2
9536	  hardcode_direct=unsupported
9537	  # It fails to find uninstalled libraries when the uninstalled
9538	  # path is not listed in the libpath.  Setting hardcode_minus_L
9539	  # to unsupported forces relinking
9540	  hardcode_minus_L=yes
9541	  hardcode_libdir_flag_spec='-L$libdir'
9542	  hardcode_libdir_separator=
9543	  fi
9544	  ;;
9545	esac
9546	shared_flag='-shared'
9547	if test yes = "$aix_use_runtimelinking"; then
9548	  shared_flag="$shared_flag "'$wl-G'
9549	fi
9550	# Need to ensure runtime linking is disabled for the traditional
9551	# shared library, or the linker may eventually find shared libraries
9552	# /with/ Import File - we do not want to mix them.
9553	shared_flag_aix='-shared'
9554	shared_flag_svr4='-shared $wl-G'
9555      else
9556	# not using gcc
9557	if test ia64 = "$host_cpu"; then
9558	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9559	# chokes on -Wl,-G. The following line is correct:
9560	  shared_flag='-G'
9561	else
9562	  if test yes = "$aix_use_runtimelinking"; then
9563	    shared_flag='$wl-G'
9564	  else
9565	    shared_flag='$wl-bM:SRE'
9566	  fi
9567	  shared_flag_aix='$wl-bM:SRE'
9568	  shared_flag_svr4='$wl-G'
9569	fi
9570      fi
9571
9572      export_dynamic_flag_spec='$wl-bexpall'
9573      # It seems that -bexpall does not export symbols beginning with
9574      # underscore (_), so it is better to generate a list of symbols to export.
9575      always_export_symbols=yes
9576      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9577	# Warning - without using the other runtime loading flags (-brtl),
9578	# -berok will link without error, but may produce a broken library.
9579	allow_undefined_flag='-berok'
9580        # Determine the default libpath from the value encoded in an
9581        # empty executable.
9582        if test set = "${lt_cv_aix_libpath+set}"; then
9583  aix_libpath=$lt_cv_aix_libpath
9584else
9585  if ${lt_cv_aix_libpath_+:} false; then :
9586  $as_echo_n "(cached) " >&6
9587else
9588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589/* end confdefs.h.  */
9590
9591int
9592main ()
9593{
9594
9595  ;
9596  return 0;
9597}
9598_ACEOF
9599if ac_fn_c_try_link "$LINENO"; then :
9600
9601  lt_aix_libpath_sed='
9602      /Import File Strings/,/^$/ {
9603	  /^0/ {
9604	      s/^0  *\([^ ]*\) *$/\1/
9605	      p
9606	  }
9607      }'
9608  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9609  # Check for a 64-bit object if we didn't find anything.
9610  if test -z "$lt_cv_aix_libpath_"; then
9611    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9612  fi
9613fi
9614rm -f core conftest.err conftest.$ac_objext \
9615    conftest$ac_exeext conftest.$ac_ext
9616  if test -z "$lt_cv_aix_libpath_"; then
9617    lt_cv_aix_libpath_=/usr/lib:/lib
9618  fi
9619
9620fi
9621
9622  aix_libpath=$lt_cv_aix_libpath_
9623fi
9624
9625        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9626        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9627      else
9628	if test ia64 = "$host_cpu"; then
9629	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9630	  allow_undefined_flag="-z nodefs"
9631	  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"
9632	else
9633	 # Determine the default libpath from the value encoded in an
9634	 # empty executable.
9635	 if test set = "${lt_cv_aix_libpath+set}"; then
9636  aix_libpath=$lt_cv_aix_libpath
9637else
9638  if ${lt_cv_aix_libpath_+:} false; then :
9639  $as_echo_n "(cached) " >&6
9640else
9641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642/* end confdefs.h.  */
9643
9644int
9645main ()
9646{
9647
9648  ;
9649  return 0;
9650}
9651_ACEOF
9652if ac_fn_c_try_link "$LINENO"; then :
9653
9654  lt_aix_libpath_sed='
9655      /Import File Strings/,/^$/ {
9656	  /^0/ {
9657	      s/^0  *\([^ ]*\) *$/\1/
9658	      p
9659	  }
9660      }'
9661  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9662  # Check for a 64-bit object if we didn't find anything.
9663  if test -z "$lt_cv_aix_libpath_"; then
9664    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9665  fi
9666fi
9667rm -f core conftest.err conftest.$ac_objext \
9668    conftest$ac_exeext conftest.$ac_ext
9669  if test -z "$lt_cv_aix_libpath_"; then
9670    lt_cv_aix_libpath_=/usr/lib:/lib
9671  fi
9672
9673fi
9674
9675  aix_libpath=$lt_cv_aix_libpath_
9676fi
9677
9678	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9679	  # Warning - without using the other run time loading flags,
9680	  # -berok will link without error, but may produce a broken library.
9681	  no_undefined_flag=' $wl-bernotok'
9682	  allow_undefined_flag=' $wl-berok'
9683	  if test yes = "$with_gnu_ld"; then
9684	    # We only use this code for GNU lds that support --whole-archive.
9685	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9686	  else
9687	    # Exported symbols can be pulled into shared objects from archives
9688	    whole_archive_flag_spec='$convenience'
9689	  fi
9690	  archive_cmds_need_lc=yes
9691	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9692	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9693	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9694	  if test svr4 != "$with_aix_soname"; then
9695	    # This is similar to how AIX traditionally builds its shared libraries.
9696	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9697	  fi
9698	  if test aix != "$with_aix_soname"; then
9699	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9700	  else
9701	    # used by -dlpreopen to get the symbols
9702	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9703	  fi
9704	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9705	fi
9706      fi
9707      ;;
9708
9709    amigaos*)
9710      case $host_cpu in
9711      powerpc)
9712            # see comment about AmigaOS4 .so support
9713            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9714            archive_expsym_cmds=''
9715        ;;
9716      m68k)
9717            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)'
9718            hardcode_libdir_flag_spec='-L$libdir'
9719            hardcode_minus_L=yes
9720        ;;
9721      esac
9722      ;;
9723
9724    bsdi[45]*)
9725      export_dynamic_flag_spec=-rdynamic
9726      ;;
9727
9728    cygwin* | mingw* | pw32* | cegcc*)
9729      # When not using gcc, we currently assume that we are using
9730      # Microsoft Visual C++.
9731      # hardcode_libdir_flag_spec is actually meaningless, as there is
9732      # no search path for DLLs.
9733      case $cc_basename in
9734      cl*)
9735	# Native MSVC
9736	hardcode_libdir_flag_spec=' '
9737	allow_undefined_flag=unsupported
9738	always_export_symbols=yes
9739	file_list_spec='@'
9740	# Tell ltmain to make .lib files, not .a files.
9741	libext=lib
9742	# Tell ltmain to make .dll files, not .so files.
9743	shrext_cmds=.dll
9744	# FIXME: Setting linknames here is a bad hack.
9745	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9746	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9747            cp "$export_symbols" "$output_objdir/$soname.def";
9748            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9749          else
9750            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9751          fi~
9752          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9753          linknames='
9754	# The linker will not automatically build a static lib if we build a DLL.
9755	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9756	enable_shared_with_static_runtimes=yes
9757	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9758	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9759	# Don't use ranlib
9760	old_postinstall_cmds='chmod 644 $oldlib'
9761	postlink_cmds='lt_outputfile="@OUTPUT@"~
9762          lt_tool_outputfile="@TOOL_OUTPUT@"~
9763          case $lt_outputfile in
9764            *.exe|*.EXE) ;;
9765            *)
9766              lt_outputfile=$lt_outputfile.exe
9767              lt_tool_outputfile=$lt_tool_outputfile.exe
9768              ;;
9769          esac~
9770          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9771            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9772            $RM "$lt_outputfile.manifest";
9773          fi'
9774	;;
9775      *)
9776	# Assume MSVC wrapper
9777	hardcode_libdir_flag_spec=' '
9778	allow_undefined_flag=unsupported
9779	# Tell ltmain to make .lib files, not .a files.
9780	libext=lib
9781	# Tell ltmain to make .dll files, not .so files.
9782	shrext_cmds=.dll
9783	# FIXME: Setting linknames here is a bad hack.
9784	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9785	# The linker will automatically build a .lib file if we build a DLL.
9786	old_archive_from_new_cmds='true'
9787	# FIXME: Should let the user specify the lib program.
9788	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9789	enable_shared_with_static_runtimes=yes
9790	;;
9791      esac
9792      ;;
9793
9794    darwin* | rhapsody*)
9795
9796
9797  archive_cmds_need_lc=no
9798  hardcode_direct=no
9799  hardcode_automatic=yes
9800  hardcode_shlibpath_var=unsupported
9801  if test yes = "$lt_cv_ld_force_load"; then
9802    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\"`'
9803
9804  else
9805    whole_archive_flag_spec=''
9806  fi
9807  link_all_deplibs=yes
9808  allow_undefined_flag=$_lt_dar_allow_undefined
9809  case $cc_basename in
9810     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9811     *) _lt_dar_can_shared=$GCC ;;
9812  esac
9813  if test yes = "$_lt_dar_can_shared"; then
9814    output_verbose_link_cmd=func_echo_all
9815    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9816    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9817    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"
9818    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"
9819
9820  else
9821  ld_shlibs=no
9822  fi
9823
9824      ;;
9825
9826    dgux*)
9827      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828      hardcode_libdir_flag_spec='-L$libdir'
9829      hardcode_shlibpath_var=no
9830      ;;
9831
9832    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9833    # support.  Future versions do this automatically, but an explicit c++rt0.o
9834    # does not break anything, and helps significantly (at the cost of a little
9835    # extra space).
9836    freebsd2.2*)
9837      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9838      hardcode_libdir_flag_spec='-R$libdir'
9839      hardcode_direct=yes
9840      hardcode_shlibpath_var=no
9841      ;;
9842
9843    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9844    freebsd2.*)
9845      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9846      hardcode_direct=yes
9847      hardcode_minus_L=yes
9848      hardcode_shlibpath_var=no
9849      ;;
9850
9851    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9852    freebsd* | dragonfly*)
9853      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9854      hardcode_libdir_flag_spec='-R$libdir'
9855      hardcode_direct=yes
9856      hardcode_shlibpath_var=no
9857      ;;
9858
9859    hpux9*)
9860      if test yes = "$GCC"; then
9861	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9862      else
9863	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9864      fi
9865      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9866      hardcode_libdir_separator=:
9867      hardcode_direct=yes
9868
9869      # hardcode_minus_L: Not really in the search PATH,
9870      # but as the default location of the library.
9871      hardcode_minus_L=yes
9872      export_dynamic_flag_spec='$wl-E'
9873      ;;
9874
9875    hpux10*)
9876      if test yes,no = "$GCC,$with_gnu_ld"; then
9877	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9878      else
9879	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9880      fi
9881      if test no = "$with_gnu_ld"; then
9882	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9883	hardcode_libdir_separator=:
9884	hardcode_direct=yes
9885	hardcode_direct_absolute=yes
9886	export_dynamic_flag_spec='$wl-E'
9887	# hardcode_minus_L: Not really in the search PATH,
9888	# but as the default location of the library.
9889	hardcode_minus_L=yes
9890      fi
9891      ;;
9892
9893    hpux11*)
9894      if test yes,no = "$GCC,$with_gnu_ld"; then
9895	case $host_cpu in
9896	hppa*64*)
9897	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9898	  ;;
9899	ia64*)
9900	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9901	  ;;
9902	*)
9903	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904	  ;;
9905	esac
9906      else
9907	case $host_cpu in
9908	hppa*64*)
9909	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9910	  ;;
9911	ia64*)
9912	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9913	  ;;
9914	*)
9915
9916	  # Older versions of the 11.00 compiler do not understand -b yet
9917	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9918	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9919$as_echo_n "checking if $CC understands -b... " >&6; }
9920if ${lt_cv_prog_compiler__b+:} false; then :
9921  $as_echo_n "(cached) " >&6
9922else
9923  lt_cv_prog_compiler__b=no
9924   save_LDFLAGS=$LDFLAGS
9925   LDFLAGS="$LDFLAGS -b"
9926   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9927   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9928     # The linker can only warn and ignore the option if not recognized
9929     # So say no if there are warnings
9930     if test -s conftest.err; then
9931       # Append any errors to the config.log.
9932       cat conftest.err 1>&5
9933       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9934       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9935       if diff conftest.exp conftest.er2 >/dev/null; then
9936         lt_cv_prog_compiler__b=yes
9937       fi
9938     else
9939       lt_cv_prog_compiler__b=yes
9940     fi
9941   fi
9942   $RM -r conftest*
9943   LDFLAGS=$save_LDFLAGS
9944
9945fi
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9947$as_echo "$lt_cv_prog_compiler__b" >&6; }
9948
9949if test yes = "$lt_cv_prog_compiler__b"; then
9950    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9951else
9952    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9953fi
9954
9955	  ;;
9956	esac
9957      fi
9958      if test no = "$with_gnu_ld"; then
9959	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9960	hardcode_libdir_separator=:
9961
9962	case $host_cpu in
9963	hppa*64*|ia64*)
9964	  hardcode_direct=no
9965	  hardcode_shlibpath_var=no
9966	  ;;
9967	*)
9968	  hardcode_direct=yes
9969	  hardcode_direct_absolute=yes
9970	  export_dynamic_flag_spec='$wl-E'
9971
9972	  # hardcode_minus_L: Not really in the search PATH,
9973	  # but as the default location of the library.
9974	  hardcode_minus_L=yes
9975	  ;;
9976	esac
9977      fi
9978      ;;
9979
9980    irix5* | irix6* | nonstopux*)
9981      if test yes = "$GCC"; then
9982	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'
9983	# Try to use the -exported_symbol ld option, if it does not
9984	# work, assume that -exports_file does not work either and
9985	# implicitly export all symbols.
9986	# This should be the same for all languages, so no per-tag cache variable.
9987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9988$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9989if ${lt_cv_irix_exported_symbol+:} false; then :
9990  $as_echo_n "(cached) " >&6
9991else
9992  save_LDFLAGS=$LDFLAGS
9993	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9994	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h.  */
9996int foo (void) { return 0; }
9997_ACEOF
9998if ac_fn_c_try_link "$LINENO"; then :
9999  lt_cv_irix_exported_symbol=yes
10000else
10001  lt_cv_irix_exported_symbol=no
10002fi
10003rm -f core conftest.err conftest.$ac_objext \
10004    conftest$ac_exeext conftest.$ac_ext
10005           LDFLAGS=$save_LDFLAGS
10006fi
10007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10008$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10009	if test yes = "$lt_cv_irix_exported_symbol"; then
10010          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'
10011	fi
10012      else
10013	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'
10014	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'
10015      fi
10016      archive_cmds_need_lc='no'
10017      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10018      hardcode_libdir_separator=:
10019      inherit_rpath=yes
10020      link_all_deplibs=yes
10021      ;;
10022
10023    linux*)
10024      case $cc_basename in
10025      tcc*)
10026	# Fabrice Bellard et al's Tiny C Compiler
10027	ld_shlibs=yes
10028	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10029	;;
10030      esac
10031      ;;
10032
10033    netbsd*)
10034      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10035	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10036      else
10037	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10038      fi
10039      hardcode_libdir_flag_spec='-R$libdir'
10040      hardcode_direct=yes
10041      hardcode_shlibpath_var=no
10042      ;;
10043
10044    newsos6)
10045      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046      hardcode_direct=yes
10047      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10048      hardcode_libdir_separator=:
10049      hardcode_shlibpath_var=no
10050      ;;
10051
10052    *nto* | *qnx*)
10053      ;;
10054
10055    openbsd* | bitrig*)
10056      if test -f /usr/libexec/ld.so; then
10057	hardcode_direct=yes
10058	hardcode_shlibpath_var=no
10059	hardcode_direct_absolute=yes
10060	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10061	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10062	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10063	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10064	  export_dynamic_flag_spec='$wl-E'
10065	else
10066	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10067	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10068	fi
10069      else
10070	ld_shlibs=no
10071      fi
10072      ;;
10073
10074    os2*)
10075      hardcode_libdir_flag_spec='-L$libdir'
10076      hardcode_minus_L=yes
10077      allow_undefined_flag=unsupported
10078      shrext_cmds=.dll
10079      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10080	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10081	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10082	$ECHO EXPORTS >> $output_objdir/$libname.def~
10083	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10084	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10085	emximp -o $lib $output_objdir/$libname.def'
10086      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10087	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10088	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10089	$ECHO EXPORTS >> $output_objdir/$libname.def~
10090	prefix_cmds="$SED"~
10091	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10092	  prefix_cmds="$prefix_cmds -e 1d";
10093	fi~
10094	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10095	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10096	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10097	emximp -o $lib $output_objdir/$libname.def'
10098      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10099      enable_shared_with_static_runtimes=yes
10100      ;;
10101
10102    osf3*)
10103      if test yes = "$GCC"; then
10104	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10105	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'
10106      else
10107	allow_undefined_flag=' -expect_unresolved \*'
10108	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'
10109      fi
10110      archive_cmds_need_lc='no'
10111      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10112      hardcode_libdir_separator=:
10113      ;;
10114
10115    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10116      if test yes = "$GCC"; then
10117	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10118	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'
10119	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10120      else
10121	allow_undefined_flag=' -expect_unresolved \*'
10122	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'
10123	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~
10124          $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'
10125
10126	# Both c and cxx compiler support -rpath directly
10127	hardcode_libdir_flag_spec='-rpath $libdir'
10128      fi
10129      archive_cmds_need_lc='no'
10130      hardcode_libdir_separator=:
10131      ;;
10132
10133    solaris*)
10134      no_undefined_flag=' -z defs'
10135      if test yes = "$GCC"; then
10136	wlarc='$wl'
10137	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10138	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10139          $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'
10140      else
10141	case `$CC -V 2>&1` in
10142	*"Compilers 5.0"*)
10143	  wlarc=''
10144	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10146            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10147	  ;;
10148	*)
10149	  wlarc='$wl'
10150	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10151	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10152            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10153	  ;;
10154	esac
10155      fi
10156      hardcode_libdir_flag_spec='-R$libdir'
10157      hardcode_shlibpath_var=no
10158      case $host_os in
10159      solaris2.[0-5] | solaris2.[0-5].*) ;;
10160      *)
10161	# The compiler driver will combine and reorder linker options,
10162	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10163	# but is careful enough not to reorder.
10164	# Supported since Solaris 2.6 (maybe 2.5.1?)
10165	if test yes = "$GCC"; then
10166	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10167	else
10168	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10169	fi
10170	;;
10171      esac
10172      link_all_deplibs=yes
10173      ;;
10174
10175    sunos4*)
10176      if test sequent = "$host_vendor"; then
10177	# Use $CC to link under sequent, because it throws in some extra .o
10178	# files that make .init and .fini sections work.
10179	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10180      else
10181	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10182      fi
10183      hardcode_libdir_flag_spec='-L$libdir'
10184      hardcode_direct=yes
10185      hardcode_minus_L=yes
10186      hardcode_shlibpath_var=no
10187      ;;
10188
10189    sysv4)
10190      case $host_vendor in
10191	sni)
10192	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193	  hardcode_direct=yes # is this really true???
10194	;;
10195	siemens)
10196	  ## LD is ld it makes a PLAMLIB
10197	  ## CC just makes a GrossModule.
10198	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10199	  reload_cmds='$CC -r -o $output$reload_objs'
10200	  hardcode_direct=no
10201        ;;
10202	motorola)
10203	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10205	;;
10206      esac
10207      runpath_var='LD_RUN_PATH'
10208      hardcode_shlibpath_var=no
10209      ;;
10210
10211    sysv4.3*)
10212      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213      hardcode_shlibpath_var=no
10214      export_dynamic_flag_spec='-Bexport'
10215      ;;
10216
10217    sysv4*MP*)
10218      if test -d /usr/nec; then
10219	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220	hardcode_shlibpath_var=no
10221	runpath_var=LD_RUN_PATH
10222	hardcode_runpath_var=yes
10223	ld_shlibs=yes
10224      fi
10225      ;;
10226
10227    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10228      no_undefined_flag='$wl-z,text'
10229      archive_cmds_need_lc=no
10230      hardcode_shlibpath_var=no
10231      runpath_var='LD_RUN_PATH'
10232
10233      if test yes = "$GCC"; then
10234	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236      else
10237	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239      fi
10240      ;;
10241
10242    sysv5* | sco3.2v5* | sco5v6*)
10243      # Note: We CANNOT use -z defs as we might desire, because we do not
10244      # link with -lc, and that would cause any symbols used from libc to
10245      # always be unresolved, which means just about no library would
10246      # ever link correctly.  If we're not using GNU ld we use -z text
10247      # though, which does catch some bad symbols but isn't as heavy-handed
10248      # as -z defs.
10249      no_undefined_flag='$wl-z,text'
10250      allow_undefined_flag='$wl-z,nodefs'
10251      archive_cmds_need_lc=no
10252      hardcode_shlibpath_var=no
10253      hardcode_libdir_flag_spec='$wl-R,$libdir'
10254      hardcode_libdir_separator=':'
10255      link_all_deplibs=yes
10256      export_dynamic_flag_spec='$wl-Bexport'
10257      runpath_var='LD_RUN_PATH'
10258
10259      if test yes = "$GCC"; then
10260	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262      else
10263	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265      fi
10266      ;;
10267
10268    uts4*)
10269      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270      hardcode_libdir_flag_spec='-L$libdir'
10271      hardcode_shlibpath_var=no
10272      ;;
10273
10274    *)
10275      ld_shlibs=no
10276      ;;
10277    esac
10278
10279    if test sni = "$host_vendor"; then
10280      case $host in
10281      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10282	export_dynamic_flag_spec='$wl-Blargedynsym'
10283	;;
10284      esac
10285    fi
10286  fi
10287
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10289$as_echo "$ld_shlibs" >&6; }
10290test no = "$ld_shlibs" && can_build_shared=no
10291
10292with_gnu_ld=$with_gnu_ld
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308#
10309# Do we need to explicitly link libc?
10310#
10311case "x$archive_cmds_need_lc" in
10312x|xyes)
10313  # Assume -lc should be added
10314  archive_cmds_need_lc=yes
10315
10316  if test yes,yes = "$GCC,$enable_shared"; then
10317    case $archive_cmds in
10318    *'~'*)
10319      # FIXME: we may have to deal with multi-command sequences.
10320      ;;
10321    '$CC '*)
10322      # Test whether the compiler implicitly links with -lc since on some
10323      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10324      # to ld, don't add -lc before -lgcc.
10325      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10326$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10327if ${lt_cv_archive_cmds_need_lc+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  $RM conftest*
10331	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10332
10333	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10334  (eval $ac_compile) 2>&5
10335  ac_status=$?
10336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337  test $ac_status = 0; } 2>conftest.err; then
10338	  soname=conftest
10339	  lib=conftest
10340	  libobjs=conftest.$ac_objext
10341	  deplibs=
10342	  wl=$lt_prog_compiler_wl
10343	  pic_flag=$lt_prog_compiler_pic
10344	  compiler_flags=-v
10345	  linker_flags=-v
10346	  verstring=
10347	  output_objdir=.
10348	  libname=conftest
10349	  lt_save_allow_undefined_flag=$allow_undefined_flag
10350	  allow_undefined_flag=
10351	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10352  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10353  ac_status=$?
10354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10355  test $ac_status = 0; }
10356	  then
10357	    lt_cv_archive_cmds_need_lc=no
10358	  else
10359	    lt_cv_archive_cmds_need_lc=yes
10360	  fi
10361	  allow_undefined_flag=$lt_save_allow_undefined_flag
10362	else
10363	  cat conftest.err 1>&5
10364	fi
10365	$RM conftest*
10366
10367fi
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10369$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10370      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10371      ;;
10372    esac
10373  fi
10374  ;;
10375esac
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10529$as_echo_n "checking dynamic linker characteristics... " >&6; }
10530
10531if test yes = "$GCC"; then
10532  case $host_os in
10533    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10534    *) lt_awk_arg='/^libraries:/' ;;
10535  esac
10536  case $host_os in
10537    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10538    *) lt_sed_strip_eq='s|=/|/|g' ;;
10539  esac
10540  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10541  case $lt_search_path_spec in
10542  *\;*)
10543    # if the path contains ";" then we assume it to be the separator
10544    # otherwise default to the standard path separator (i.e. ":") - it is
10545    # assumed that no part of a normal pathname contains ";" but that should
10546    # okay in the real world where ";" in dirpaths is itself problematic.
10547    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10548    ;;
10549  *)
10550    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10551    ;;
10552  esac
10553  # Ok, now we have the path, separated by spaces, we can step through it
10554  # and add multilib dir if necessary...
10555  lt_tmp_lt_search_path_spec=
10556  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10557  # ...but if some path component already ends with the multilib dir we assume
10558  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10559  case "$lt_multi_os_dir; $lt_search_path_spec " in
10560  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10561    lt_multi_os_dir=
10562    ;;
10563  esac
10564  for lt_sys_path in $lt_search_path_spec; do
10565    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10566      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10567    elif test -n "$lt_multi_os_dir"; then
10568      test -d "$lt_sys_path" && \
10569	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10570    fi
10571  done
10572  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10573BEGIN {RS = " "; FS = "/|\n";} {
10574  lt_foo = "";
10575  lt_count = 0;
10576  for (lt_i = NF; lt_i > 0; lt_i--) {
10577    if ($lt_i != "" && $lt_i != ".") {
10578      if ($lt_i == "..") {
10579        lt_count++;
10580      } else {
10581        if (lt_count == 0) {
10582          lt_foo = "/" $lt_i lt_foo;
10583        } else {
10584          lt_count--;
10585        }
10586      }
10587    }
10588  }
10589  if (lt_foo != "") { lt_freq[lt_foo]++; }
10590  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10591}'`
10592  # AWK program above erroneously prepends '/' to C:/dos/paths
10593  # for these hosts.
10594  case $host_os in
10595    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10596      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10597  esac
10598  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10599else
10600  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10601fi
10602library_names_spec=
10603libname_spec='lib$name'
10604soname_spec=
10605shrext_cmds=.so
10606postinstall_cmds=
10607postuninstall_cmds=
10608finish_cmds=
10609finish_eval=
10610shlibpath_var=
10611shlibpath_overrides_runpath=unknown
10612version_type=none
10613dynamic_linker="$host_os ld.so"
10614sys_lib_dlsearch_path_spec="/lib /usr/lib"
10615need_lib_prefix=unknown
10616hardcode_into_libs=no
10617
10618# when you set need_version to no, make sure it does not cause -set_version
10619# flags to be left without arguments
10620need_version=unknown
10621
10622
10623
10624case $host_os in
10625aix3*)
10626  version_type=linux # correct to gnu/linux during the next big refactor
10627  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10628  shlibpath_var=LIBPATH
10629
10630  # AIX 3 has no versioning support, so we append a major version to the name.
10631  soname_spec='$libname$release$shared_ext$major'
10632  ;;
10633
10634aix[4-9]*)
10635  version_type=linux # correct to gnu/linux during the next big refactor
10636  need_lib_prefix=no
10637  need_version=no
10638  hardcode_into_libs=yes
10639  if test ia64 = "$host_cpu"; then
10640    # AIX 5 supports IA64
10641    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10642    shlibpath_var=LD_LIBRARY_PATH
10643  else
10644    # With GCC up to 2.95.x, collect2 would create an import file
10645    # for dependence libraries.  The import file would start with
10646    # the line '#! .'.  This would cause the generated library to
10647    # depend on '.', always an invalid library.  This was fixed in
10648    # development snapshots of GCC prior to 3.0.
10649    case $host_os in
10650      aix4 | aix4.[01] | aix4.[01].*)
10651      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10652	   echo ' yes '
10653	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10654	:
10655      else
10656	can_build_shared=no
10657      fi
10658      ;;
10659    esac
10660    # Using Import Files as archive members, it is possible to support
10661    # filename-based versioning of shared library archives on AIX. While
10662    # this would work for both with and without runtime linking, it will
10663    # prevent static linking of such archives. So we do filename-based
10664    # shared library versioning with .so extension only, which is used
10665    # when both runtime linking and shared linking is enabled.
10666    # Unfortunately, runtime linking may impact performance, so we do
10667    # not want this to be the default eventually. Also, we use the
10668    # versioned .so libs for executables only if there is the -brtl
10669    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10670    # To allow for filename-based versioning support, we need to create
10671    # libNAME.so.V as an archive file, containing:
10672    # *) an Import File, referring to the versioned filename of the
10673    #    archive as well as the shared archive member, telling the
10674    #    bitwidth (32 or 64) of that shared object, and providing the
10675    #    list of exported symbols of that shared object, eventually
10676    #    decorated with the 'weak' keyword
10677    # *) the shared object with the F_LOADONLY flag set, to really avoid
10678    #    it being seen by the linker.
10679    # At run time we better use the real file rather than another symlink,
10680    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10681
10682    case $with_aix_soname,$aix_use_runtimelinking in
10683    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10684    # soname into executable. Probably we can add versioning support to
10685    # collect2, so additional links can be useful in future.
10686    aix,yes) # traditional libtool
10687      dynamic_linker='AIX unversionable lib.so'
10688      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10689      # instead of lib<name>.a to let people know that these are not
10690      # typical AIX shared libraries.
10691      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10692      ;;
10693    aix,no) # traditional AIX only
10694      dynamic_linker='AIX lib.a(lib.so.V)'
10695      # We preserve .a as extension for shared libraries through AIX4.2
10696      # and later when we are not doing run time linking.
10697      library_names_spec='$libname$release.a $libname.a'
10698      soname_spec='$libname$release$shared_ext$major'
10699      ;;
10700    svr4,*) # full svr4 only
10701      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10702      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10703      # We do not specify a path in Import Files, so LIBPATH fires.
10704      shlibpath_overrides_runpath=yes
10705      ;;
10706    *,yes) # both, prefer svr4
10707      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10708      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10709      # unpreferred sharedlib libNAME.a needs extra handling
10710      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10711      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10712      # We do not specify a path in Import Files, so LIBPATH fires.
10713      shlibpath_overrides_runpath=yes
10714      ;;
10715    *,no) # both, prefer aix
10716      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10717      library_names_spec='$libname$release.a $libname.a'
10718      soname_spec='$libname$release$shared_ext$major'
10719      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10720      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10721      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10722      ;;
10723    esac
10724    shlibpath_var=LIBPATH
10725  fi
10726  ;;
10727
10728amigaos*)
10729  case $host_cpu in
10730  powerpc)
10731    # Since July 2007 AmigaOS4 officially supports .so libraries.
10732    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10733    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10734    ;;
10735  m68k)
10736    library_names_spec='$libname.ixlibrary $libname.a'
10737    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10738    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10739    ;;
10740  esac
10741  ;;
10742
10743beos*)
10744  library_names_spec='$libname$shared_ext'
10745  dynamic_linker="$host_os ld.so"
10746  shlibpath_var=LIBRARY_PATH
10747  ;;
10748
10749bsdi[45]*)
10750  version_type=linux # correct to gnu/linux during the next big refactor
10751  need_version=no
10752  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10753  soname_spec='$libname$release$shared_ext$major'
10754  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10755  shlibpath_var=LD_LIBRARY_PATH
10756  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10757  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10758  # the default ld.so.conf also contains /usr/contrib/lib and
10759  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10760  # libtool to hard-code these into programs
10761  ;;
10762
10763cygwin* | mingw* | pw32* | cegcc*)
10764  version_type=windows
10765  shrext_cmds=.dll
10766  need_version=no
10767  need_lib_prefix=no
10768
10769  case $GCC,$cc_basename in
10770  yes,*)
10771    # gcc
10772    library_names_spec='$libname.dll.a'
10773    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10774    postinstall_cmds='base_file=`basename \$file`~
10775      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10776      dldir=$destdir/`dirname \$dlpath`~
10777      test -d \$dldir || mkdir -p \$dldir~
10778      $install_prog $dir/$dlname \$dldir/$dlname~
10779      chmod a+x \$dldir/$dlname~
10780      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10781        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10782      fi'
10783    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10784      dlpath=$dir/\$dldll~
10785       $RM \$dlpath'
10786    shlibpath_overrides_runpath=yes
10787
10788    case $host_os in
10789    cygwin*)
10790      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10791      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10792
10793      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10794      ;;
10795    mingw* | cegcc*)
10796      # MinGW DLLs use traditional 'lib' prefix
10797      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10798      ;;
10799    pw32*)
10800      # pw32 DLLs use 'pw' prefix rather than 'lib'
10801      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10802      ;;
10803    esac
10804    dynamic_linker='Win32 ld.exe'
10805    ;;
10806
10807  *,cl*)
10808    # Native MSVC
10809    libname_spec='$name'
10810    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10811    library_names_spec='$libname.dll.lib'
10812
10813    case $build_os in
10814    mingw*)
10815      sys_lib_search_path_spec=
10816      lt_save_ifs=$IFS
10817      IFS=';'
10818      for lt_path in $LIB
10819      do
10820        IFS=$lt_save_ifs
10821        # Let DOS variable expansion print the short 8.3 style file name.
10822        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10823        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10824      done
10825      IFS=$lt_save_ifs
10826      # Convert to MSYS style.
10827      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10828      ;;
10829    cygwin*)
10830      # Convert to unix form, then to dos form, then back to unix form
10831      # but this time dos style (no spaces!) so that the unix form looks
10832      # like /cygdrive/c/PROGRA~1:/cygdr...
10833      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10834      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10835      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10836      ;;
10837    *)
10838      sys_lib_search_path_spec=$LIB
10839      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10840        # It is most probably a Windows format PATH.
10841        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10842      else
10843        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10844      fi
10845      # FIXME: find the short name or the path components, as spaces are
10846      # common. (e.g. "Program Files" -> "PROGRA~1")
10847      ;;
10848    esac
10849
10850    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10851    postinstall_cmds='base_file=`basename \$file`~
10852      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10853      dldir=$destdir/`dirname \$dlpath`~
10854      test -d \$dldir || mkdir -p \$dldir~
10855      $install_prog $dir/$dlname \$dldir/$dlname'
10856    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10857      dlpath=$dir/\$dldll~
10858       $RM \$dlpath'
10859    shlibpath_overrides_runpath=yes
10860    dynamic_linker='Win32 link.exe'
10861    ;;
10862
10863  *)
10864    # Assume MSVC wrapper
10865    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10866    dynamic_linker='Win32 ld.exe'
10867    ;;
10868  esac
10869  # FIXME: first we should search . and the directory the executable is in
10870  shlibpath_var=PATH
10871  ;;
10872
10873darwin* | rhapsody*)
10874  dynamic_linker="$host_os dyld"
10875  version_type=darwin
10876  need_lib_prefix=no
10877  need_version=no
10878  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
10879  soname_spec='$libname$release$major$shared_ext'
10880  shlibpath_overrides_runpath=yes
10881  shlibpath_var=DYLD_LIBRARY_PATH
10882  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
10883
10884  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10885  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10886  ;;
10887
10888dgux*)
10889  version_type=linux # correct to gnu/linux during the next big refactor
10890  need_lib_prefix=no
10891  need_version=no
10892  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10893  soname_spec='$libname$release$shared_ext$major'
10894  shlibpath_var=LD_LIBRARY_PATH
10895  ;;
10896
10897freebsd* | dragonfly*)
10898  # DragonFly does not have aout.  When/if they implement a new
10899  # versioning mechanism, adjust this.
10900  if test -x /usr/bin/objformat; then
10901    objformat=`/usr/bin/objformat`
10902  else
10903    case $host_os in
10904    freebsd[23].*) objformat=aout ;;
10905    *) objformat=elf ;;
10906    esac
10907  fi
10908  # Handle Gentoo/FreeBSD as it was Linux
10909  case $host_vendor in
10910    gentoo)
10911      version_type=linux ;;
10912    *)
10913      version_type=freebsd-$objformat ;;
10914  esac
10915
10916  case $version_type in
10917    freebsd-elf*)
10918      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10919      soname_spec='$libname$release$shared_ext$major'
10920      need_version=no
10921      need_lib_prefix=no
10922      ;;
10923    freebsd-*)
10924      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10925      need_version=yes
10926      ;;
10927    linux)
10928      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10929      soname_spec='${libname}${release}${shared_ext}$major'
10930      need_lib_prefix=no
10931      need_version=no
10932      ;;
10933  esac
10934  shlibpath_var=LD_LIBRARY_PATH
10935  case $host_os in
10936  freebsd2.*)
10937    shlibpath_overrides_runpath=yes
10938    ;;
10939  freebsd3.[01]* | freebsdelf3.[01]*)
10940    shlibpath_overrides_runpath=yes
10941    hardcode_into_libs=yes
10942    ;;
10943  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10944  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10945    shlibpath_overrides_runpath=no
10946    hardcode_into_libs=yes
10947    ;;
10948  *) # from 4.6 on, and DragonFly
10949    shlibpath_overrides_runpath=yes
10950    hardcode_into_libs=yes
10951    ;;
10952  esac
10953  ;;
10954
10955haiku*)
10956  version_type=linux # correct to gnu/linux during the next big refactor
10957  need_lib_prefix=no
10958  need_version=no
10959  dynamic_linker="$host_os runtime_loader"
10960  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10961  soname_spec='$libname$release$shared_ext$major'
10962  shlibpath_var=LIBRARY_PATH
10963  shlibpath_overrides_runpath=no
10964  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10965  hardcode_into_libs=yes
10966  ;;
10967
10968hpux9* | hpux10* | hpux11*)
10969  # Give a soname corresponding to the major version so that dld.sl refuses to
10970  # link against other versions.
10971  version_type=sunos
10972  need_lib_prefix=no
10973  need_version=no
10974  case $host_cpu in
10975  ia64*)
10976    shrext_cmds='.so'
10977    hardcode_into_libs=yes
10978    dynamic_linker="$host_os dld.so"
10979    shlibpath_var=LD_LIBRARY_PATH
10980    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10981    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10982    soname_spec='$libname$release$shared_ext$major'
10983    if test 32 = "$HPUX_IA64_MODE"; then
10984      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10985      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10986    else
10987      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10988      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10989    fi
10990    ;;
10991  hppa*64*)
10992    shrext_cmds='.sl'
10993    hardcode_into_libs=yes
10994    dynamic_linker="$host_os dld.sl"
10995    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10996    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10997    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10998    soname_spec='$libname$release$shared_ext$major'
10999    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11000    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11001    ;;
11002  *)
11003    shrext_cmds='.sl'
11004    dynamic_linker="$host_os dld.sl"
11005    shlibpath_var=SHLIB_PATH
11006    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11007    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11008    soname_spec='$libname$release$shared_ext$major'
11009    ;;
11010  esac
11011  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11012  postinstall_cmds='chmod 555 $lib'
11013  # or fails outright, so override atomically:
11014  install_override_mode=555
11015  ;;
11016
11017interix[3-9]*)
11018  version_type=linux # correct to gnu/linux during the next big refactor
11019  need_lib_prefix=no
11020  need_version=no
11021  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11022  soname_spec='$libname$release$shared_ext$major'
11023  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11024  shlibpath_var=LD_LIBRARY_PATH
11025  shlibpath_overrides_runpath=no
11026  hardcode_into_libs=yes
11027  ;;
11028
11029irix5* | irix6* | nonstopux*)
11030  case $host_os in
11031    nonstopux*) version_type=nonstopux ;;
11032    *)
11033	if test yes = "$lt_cv_prog_gnu_ld"; then
11034		version_type=linux # correct to gnu/linux during the next big refactor
11035	else
11036		version_type=irix
11037	fi ;;
11038  esac
11039  need_lib_prefix=no
11040  need_version=no
11041  soname_spec='$libname$release$shared_ext$major'
11042  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11043  case $host_os in
11044  irix5* | nonstopux*)
11045    libsuff= shlibsuff=
11046    ;;
11047  *)
11048    case $LD in # libtool.m4 will add one of these switches to LD
11049    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11050      libsuff= shlibsuff= libmagic=32-bit;;
11051    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11052      libsuff=32 shlibsuff=N32 libmagic=N32;;
11053    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11054      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11055    *) libsuff= shlibsuff= libmagic=never-match;;
11056    esac
11057    ;;
11058  esac
11059  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11060  shlibpath_overrides_runpath=no
11061  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11062  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11063  hardcode_into_libs=yes
11064  ;;
11065
11066# No shared lib support for Linux oldld, aout, or coff.
11067linux*oldld* | linux*aout* | linux*coff*)
11068  dynamic_linker=no
11069  ;;
11070
11071linux*android*)
11072  version_type=none # Android doesn't support versioned libraries.
11073  need_lib_prefix=no
11074  need_version=no
11075  library_names_spec='$libname$release$shared_ext'
11076  soname_spec='$libname$release$shared_ext'
11077  finish_cmds=
11078  shlibpath_var=LD_LIBRARY_PATH
11079  shlibpath_overrides_runpath=yes
11080
11081  # This implies no fast_install, which is unacceptable.
11082  # Some rework will be needed to allow for fast_install
11083  # before this can be enabled.
11084  hardcode_into_libs=yes
11085
11086  dynamic_linker='Android linker'
11087  # Don't embed -rpath directories since the linker doesn't support them.
11088  hardcode_libdir_flag_spec='-L$libdir'
11089  ;;
11090
11091# This must be glibc/ELF.
11092linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11093  version_type=linux # correct to gnu/linux during the next big refactor
11094  need_lib_prefix=no
11095  need_version=no
11096  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097  soname_spec='$libname$release$shared_ext$major'
11098  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11099  shlibpath_var=LD_LIBRARY_PATH
11100  shlibpath_overrides_runpath=no
11101
11102  # Some binutils ld are patched to set DT_RUNPATH
11103  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11104  $as_echo_n "(cached) " >&6
11105else
11106  lt_cv_shlibpath_overrides_runpath=no
11107    save_LDFLAGS=$LDFLAGS
11108    save_libdir=$libdir
11109    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11110	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11111    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112/* end confdefs.h.  */
11113
11114int
11115main ()
11116{
11117
11118  ;
11119  return 0;
11120}
11121_ACEOF
11122if ac_fn_c_try_link "$LINENO"; then :
11123  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11124  lt_cv_shlibpath_overrides_runpath=yes
11125fi
11126fi
11127rm -f core conftest.err conftest.$ac_objext \
11128    conftest$ac_exeext conftest.$ac_ext
11129    LDFLAGS=$save_LDFLAGS
11130    libdir=$save_libdir
11131
11132fi
11133
11134  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11135
11136  # This implies no fast_install, which is unacceptable.
11137  # Some rework will be needed to allow for fast_install
11138  # before this can be enabled.
11139  hardcode_into_libs=yes
11140
11141  # Ideally, we could use ldconfig to report *all* directores which are
11142  # searched for libraries, however this is still not possible.  Aside from not
11143  # being certain /sbin/ldconfig is available, command
11144  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11145  # even though it is searched at run-time.  Try to do the best guess by
11146  # appending ld.so.conf contents (and includes) to the search path.
11147  if test -f /etc/ld.so.conf; then
11148    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' ' '`
11149    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11150  fi
11151
11152  # We used to test for /lib/ld.so.1 and disable shared libraries on
11153  # powerpc, because MkLinux only supported shared libraries with the
11154  # GNU dynamic linker.  Since this was broken with cross compilers,
11155  # most powerpc-linux boxes support dynamic linking these days and
11156  # people can always --disable-shared, the test was removed, and we
11157  # assume the GNU/Linux dynamic linker is in use.
11158  dynamic_linker='GNU/Linux ld.so'
11159  ;;
11160
11161netbsd*)
11162  version_type=sunos
11163  need_lib_prefix=no
11164  need_version=no
11165  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11166    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11167    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11168    dynamic_linker='NetBSD (a.out) ld.so'
11169  else
11170    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171    soname_spec='$libname$release$shared_ext$major'
11172    dynamic_linker='NetBSD ld.elf_so'
11173  fi
11174  shlibpath_var=LD_LIBRARY_PATH
11175  shlibpath_overrides_runpath=yes
11176  hardcode_into_libs=yes
11177  ;;
11178
11179newsos6)
11180  version_type=linux # correct to gnu/linux during the next big refactor
11181  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11182  shlibpath_var=LD_LIBRARY_PATH
11183  shlibpath_overrides_runpath=yes
11184  ;;
11185
11186*nto* | *qnx*)
11187  version_type=qnx
11188  need_lib_prefix=no
11189  need_version=no
11190  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191  soname_spec='$libname$release$shared_ext$major'
11192  shlibpath_var=LD_LIBRARY_PATH
11193  shlibpath_overrides_runpath=no
11194  hardcode_into_libs=yes
11195  dynamic_linker='ldqnx.so'
11196  ;;
11197
11198openbsd* | bitrig*)
11199  version_type=sunos
11200  sys_lib_dlsearch_path_spec=/usr/lib
11201  need_lib_prefix=no
11202  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11203    need_version=no
11204  else
11205    need_version=yes
11206  fi
11207  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11208  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11209  shlibpath_var=LD_LIBRARY_PATH
11210  shlibpath_overrides_runpath=yes
11211  ;;
11212
11213os2*)
11214  libname_spec='$name'
11215  version_type=windows
11216  shrext_cmds=.dll
11217  need_version=no
11218  need_lib_prefix=no
11219  # OS/2 can only load a DLL with a base name of 8 characters or less.
11220  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11221    v=$($ECHO $release$versuffix | tr -d .-);
11222    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11223    $ECHO $n$v`$shared_ext'
11224  library_names_spec='${libname}_dll.$libext'
11225  dynamic_linker='OS/2 ld.exe'
11226  shlibpath_var=BEGINLIBPATH
11227  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11228  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11229  postinstall_cmds='base_file=`basename \$file`~
11230    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11231    dldir=$destdir/`dirname \$dlpath`~
11232    test -d \$dldir || mkdir -p \$dldir~
11233    $install_prog $dir/$dlname \$dldir/$dlname~
11234    chmod a+x \$dldir/$dlname~
11235    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11236      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11237    fi'
11238  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11239    dlpath=$dir/\$dldll~
11240    $RM \$dlpath'
11241  ;;
11242
11243osf3* | osf4* | osf5*)
11244  version_type=osf
11245  need_lib_prefix=no
11246  need_version=no
11247  soname_spec='$libname$release$shared_ext$major'
11248  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11249  shlibpath_var=LD_LIBRARY_PATH
11250  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11251  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11252  ;;
11253
11254rdos*)
11255  dynamic_linker=no
11256  ;;
11257
11258solaris*)
11259  version_type=linux # correct to gnu/linux during the next big refactor
11260  need_lib_prefix=no
11261  need_version=no
11262  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11263  soname_spec='$libname$release$shared_ext$major'
11264  shlibpath_var=LD_LIBRARY_PATH
11265  shlibpath_overrides_runpath=yes
11266  hardcode_into_libs=yes
11267  # ldd complains unless libraries are executable
11268  postinstall_cmds='chmod +x $lib'
11269  ;;
11270
11271sunos4*)
11272  version_type=sunos
11273  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11274  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11275  shlibpath_var=LD_LIBRARY_PATH
11276  shlibpath_overrides_runpath=yes
11277  if test yes = "$with_gnu_ld"; then
11278    need_lib_prefix=no
11279  fi
11280  need_version=yes
11281  ;;
11282
11283sysv4 | sysv4.3*)
11284  version_type=linux # correct to gnu/linux during the next big refactor
11285  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11286  soname_spec='$libname$release$shared_ext$major'
11287  shlibpath_var=LD_LIBRARY_PATH
11288  case $host_vendor in
11289    sni)
11290      shlibpath_overrides_runpath=no
11291      need_lib_prefix=no
11292      runpath_var=LD_RUN_PATH
11293      ;;
11294    siemens)
11295      need_lib_prefix=no
11296      ;;
11297    motorola)
11298      need_lib_prefix=no
11299      need_version=no
11300      shlibpath_overrides_runpath=no
11301      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11302      ;;
11303  esac
11304  ;;
11305
11306sysv4*MP*)
11307  if test -d /usr/nec; then
11308    version_type=linux # correct to gnu/linux during the next big refactor
11309    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11310    soname_spec='$libname$shared_ext.$major'
11311    shlibpath_var=LD_LIBRARY_PATH
11312  fi
11313  ;;
11314
11315sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11316  version_type=sco
11317  need_lib_prefix=no
11318  need_version=no
11319  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11320  soname_spec='$libname$release$shared_ext$major'
11321  shlibpath_var=LD_LIBRARY_PATH
11322  shlibpath_overrides_runpath=yes
11323  hardcode_into_libs=yes
11324  if test yes = "$with_gnu_ld"; then
11325    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11326  else
11327    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11328    case $host_os in
11329      sco3.2v5*)
11330        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11331	;;
11332    esac
11333  fi
11334  sys_lib_dlsearch_path_spec='/usr/lib'
11335  ;;
11336
11337tpf*)
11338  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11339  version_type=linux # correct to gnu/linux during the next big refactor
11340  need_lib_prefix=no
11341  need_version=no
11342  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11343  shlibpath_var=LD_LIBRARY_PATH
11344  shlibpath_overrides_runpath=no
11345  hardcode_into_libs=yes
11346  ;;
11347
11348uts4*)
11349  version_type=linux # correct to gnu/linux during the next big refactor
11350  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11351  soname_spec='$libname$release$shared_ext$major'
11352  shlibpath_var=LD_LIBRARY_PATH
11353  ;;
11354
11355*)
11356  dynamic_linker=no
11357  ;;
11358esac
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11360$as_echo "$dynamic_linker" >&6; }
11361test no = "$dynamic_linker" && can_build_shared=no
11362
11363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11364if test yes = "$GCC"; then
11365  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11366fi
11367
11368if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11369  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11370fi
11371
11372if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11373  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11374fi
11375
11376# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11377configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11378
11379# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11380func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11381
11382# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11383configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11482$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11483hardcode_action=
11484if test -n "$hardcode_libdir_flag_spec" ||
11485   test -n "$runpath_var" ||
11486   test yes = "$hardcode_automatic"; then
11487
11488  # We can hardcode non-existent directories.
11489  if test no != "$hardcode_direct" &&
11490     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11491     # have to relink, otherwise we might link with an installed library
11492     # when we should be linking with a yet-to-be-installed one
11493     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11494     test no != "$hardcode_minus_L"; then
11495    # Linking always hardcodes the temporary library directory.
11496    hardcode_action=relink
11497  else
11498    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11499    hardcode_action=immediate
11500  fi
11501else
11502  # We cannot hardcode anything, or else we can only hardcode existing
11503  # directories.
11504  hardcode_action=unsupported
11505fi
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11507$as_echo "$hardcode_action" >&6; }
11508
11509if test relink = "$hardcode_action" ||
11510   test yes = "$inherit_rpath"; then
11511  # Fast installation is not supported
11512  enable_fast_install=no
11513elif test yes = "$shlibpath_overrides_runpath" ||
11514     test no = "$enable_shared"; then
11515  # Fast installation is not necessary
11516  enable_fast_install=needless
11517fi
11518
11519
11520
11521
11522
11523
11524  if test yes != "$enable_dlopen"; then
11525  enable_dlopen=unknown
11526  enable_dlopen_self=unknown
11527  enable_dlopen_self_static=unknown
11528else
11529  lt_cv_dlopen=no
11530  lt_cv_dlopen_libs=
11531
11532  case $host_os in
11533  beos*)
11534    lt_cv_dlopen=load_add_on
11535    lt_cv_dlopen_libs=
11536    lt_cv_dlopen_self=yes
11537    ;;
11538
11539  mingw* | pw32* | cegcc*)
11540    lt_cv_dlopen=LoadLibrary
11541    lt_cv_dlopen_libs=
11542    ;;
11543
11544  cygwin*)
11545    lt_cv_dlopen=dlopen
11546    lt_cv_dlopen_libs=
11547    ;;
11548
11549  darwin*)
11550    # if libdl is installed we need to link against it
11551    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11552$as_echo_n "checking for dlopen in -ldl... " >&6; }
11553if ${ac_cv_lib_dl_dlopen+:} false; then :
11554  $as_echo_n "(cached) " >&6
11555else
11556  ac_check_lib_save_LIBS=$LIBS
11557LIBS="-ldl  $LIBS"
11558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559/* end confdefs.h.  */
11560
11561/* Override any GCC internal prototype to avoid an error.
11562   Use char because int might match the return type of a GCC
11563   builtin and then its argument prototype would still apply.  */
11564#ifdef __cplusplus
11565extern "C"
11566#endif
11567char dlopen ();
11568int
11569main ()
11570{
11571return dlopen ();
11572  ;
11573  return 0;
11574}
11575_ACEOF
11576if ac_fn_c_try_link "$LINENO"; then :
11577  ac_cv_lib_dl_dlopen=yes
11578else
11579  ac_cv_lib_dl_dlopen=no
11580fi
11581rm -f core conftest.err conftest.$ac_objext \
11582    conftest$ac_exeext conftest.$ac_ext
11583LIBS=$ac_check_lib_save_LIBS
11584fi
11585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11586$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11587if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11588  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11589else
11590
11591    lt_cv_dlopen=dyld
11592    lt_cv_dlopen_libs=
11593    lt_cv_dlopen_self=yes
11594
11595fi
11596
11597    ;;
11598
11599  tpf*)
11600    # Don't try to run any link tests for TPF.  We know it's impossible
11601    # because TPF is a cross-compiler, and we know how we open DSOs.
11602    lt_cv_dlopen=dlopen
11603    lt_cv_dlopen_libs=
11604    lt_cv_dlopen_self=no
11605    ;;
11606
11607  *)
11608    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11609if test "x$ac_cv_func_shl_load" = xyes; then :
11610  lt_cv_dlopen=shl_load
11611else
11612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11613$as_echo_n "checking for shl_load in -ldld... " >&6; }
11614if ${ac_cv_lib_dld_shl_load+:} false; then :
11615  $as_echo_n "(cached) " >&6
11616else
11617  ac_check_lib_save_LIBS=$LIBS
11618LIBS="-ldld  $LIBS"
11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620/* end confdefs.h.  */
11621
11622/* Override any GCC internal prototype to avoid an error.
11623   Use char because int might match the return type of a GCC
11624   builtin and then its argument prototype would still apply.  */
11625#ifdef __cplusplus
11626extern "C"
11627#endif
11628char shl_load ();
11629int
11630main ()
11631{
11632return shl_load ();
11633  ;
11634  return 0;
11635}
11636_ACEOF
11637if ac_fn_c_try_link "$LINENO"; then :
11638  ac_cv_lib_dld_shl_load=yes
11639else
11640  ac_cv_lib_dld_shl_load=no
11641fi
11642rm -f core conftest.err conftest.$ac_objext \
11643    conftest$ac_exeext conftest.$ac_ext
11644LIBS=$ac_check_lib_save_LIBS
11645fi
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11647$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11648if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11649  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11650else
11651  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11652if test "x$ac_cv_func_dlopen" = xyes; then :
11653  lt_cv_dlopen=dlopen
11654else
11655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11656$as_echo_n "checking for dlopen in -ldl... " >&6; }
11657if ${ac_cv_lib_dl_dlopen+:} false; then :
11658  $as_echo_n "(cached) " >&6
11659else
11660  ac_check_lib_save_LIBS=$LIBS
11661LIBS="-ldl  $LIBS"
11662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663/* end confdefs.h.  */
11664
11665/* Override any GCC internal prototype to avoid an error.
11666   Use char because int might match the return type of a GCC
11667   builtin and then its argument prototype would still apply.  */
11668#ifdef __cplusplus
11669extern "C"
11670#endif
11671char dlopen ();
11672int
11673main ()
11674{
11675return dlopen ();
11676  ;
11677  return 0;
11678}
11679_ACEOF
11680if ac_fn_c_try_link "$LINENO"; then :
11681  ac_cv_lib_dl_dlopen=yes
11682else
11683  ac_cv_lib_dl_dlopen=no
11684fi
11685rm -f core conftest.err conftest.$ac_objext \
11686    conftest$ac_exeext conftest.$ac_ext
11687LIBS=$ac_check_lib_save_LIBS
11688fi
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11690$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11691if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11692  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11693else
11694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11695$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11696if ${ac_cv_lib_svld_dlopen+:} false; then :
11697  $as_echo_n "(cached) " >&6
11698else
11699  ac_check_lib_save_LIBS=$LIBS
11700LIBS="-lsvld  $LIBS"
11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702/* end confdefs.h.  */
11703
11704/* Override any GCC internal prototype to avoid an error.
11705   Use char because int might match the return type of a GCC
11706   builtin and then its argument prototype would still apply.  */
11707#ifdef __cplusplus
11708extern "C"
11709#endif
11710char dlopen ();
11711int
11712main ()
11713{
11714return dlopen ();
11715  ;
11716  return 0;
11717}
11718_ACEOF
11719if ac_fn_c_try_link "$LINENO"; then :
11720  ac_cv_lib_svld_dlopen=yes
11721else
11722  ac_cv_lib_svld_dlopen=no
11723fi
11724rm -f core conftest.err conftest.$ac_objext \
11725    conftest$ac_exeext conftest.$ac_ext
11726LIBS=$ac_check_lib_save_LIBS
11727fi
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11729$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11730if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11731  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11732else
11733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11734$as_echo_n "checking for dld_link in -ldld... " >&6; }
11735if ${ac_cv_lib_dld_dld_link+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  ac_check_lib_save_LIBS=$LIBS
11739LIBS="-ldld  $LIBS"
11740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741/* end confdefs.h.  */
11742
11743/* Override any GCC internal prototype to avoid an error.
11744   Use char because int might match the return type of a GCC
11745   builtin and then its argument prototype would still apply.  */
11746#ifdef __cplusplus
11747extern "C"
11748#endif
11749char dld_link ();
11750int
11751main ()
11752{
11753return dld_link ();
11754  ;
11755  return 0;
11756}
11757_ACEOF
11758if ac_fn_c_try_link "$LINENO"; then :
11759  ac_cv_lib_dld_dld_link=yes
11760else
11761  ac_cv_lib_dld_dld_link=no
11762fi
11763rm -f core conftest.err conftest.$ac_objext \
11764    conftest$ac_exeext conftest.$ac_ext
11765LIBS=$ac_check_lib_save_LIBS
11766fi
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11768$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11769if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11770  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11771fi
11772
11773
11774fi
11775
11776
11777fi
11778
11779
11780fi
11781
11782
11783fi
11784
11785
11786fi
11787
11788    ;;
11789  esac
11790
11791  if test no = "$lt_cv_dlopen"; then
11792    enable_dlopen=no
11793  else
11794    enable_dlopen=yes
11795  fi
11796
11797  case $lt_cv_dlopen in
11798  dlopen)
11799    save_CPPFLAGS=$CPPFLAGS
11800    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11801
11802    save_LDFLAGS=$LDFLAGS
11803    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11804
11805    save_LIBS=$LIBS
11806    LIBS="$lt_cv_dlopen_libs $LIBS"
11807
11808    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11809$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11810if ${lt_cv_dlopen_self+:} false; then :
11811  $as_echo_n "(cached) " >&6
11812else
11813  	  if test yes = "$cross_compiling"; then :
11814  lt_cv_dlopen_self=cross
11815else
11816  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11817  lt_status=$lt_dlunknown
11818  cat > conftest.$ac_ext <<_LT_EOF
11819#line $LINENO "configure"
11820#include "confdefs.h"
11821
11822#if HAVE_DLFCN_H
11823#include <dlfcn.h>
11824#endif
11825
11826#include <stdio.h>
11827
11828#ifdef RTLD_GLOBAL
11829#  define LT_DLGLOBAL		RTLD_GLOBAL
11830#else
11831#  ifdef DL_GLOBAL
11832#    define LT_DLGLOBAL		DL_GLOBAL
11833#  else
11834#    define LT_DLGLOBAL		0
11835#  endif
11836#endif
11837
11838/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11839   find out it does not work in some platform. */
11840#ifndef LT_DLLAZY_OR_NOW
11841#  ifdef RTLD_LAZY
11842#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11843#  else
11844#    ifdef DL_LAZY
11845#      define LT_DLLAZY_OR_NOW		DL_LAZY
11846#    else
11847#      ifdef RTLD_NOW
11848#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11849#      else
11850#        ifdef DL_NOW
11851#          define LT_DLLAZY_OR_NOW	DL_NOW
11852#        else
11853#          define LT_DLLAZY_OR_NOW	0
11854#        endif
11855#      endif
11856#    endif
11857#  endif
11858#endif
11859
11860/* When -fvisibility=hidden is used, assume the code has been annotated
11861   correspondingly for the symbols needed.  */
11862#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11863int fnord () __attribute__((visibility("default")));
11864#endif
11865
11866int fnord () { return 42; }
11867int main ()
11868{
11869  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11870  int status = $lt_dlunknown;
11871
11872  if (self)
11873    {
11874      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11875      else
11876        {
11877	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11878          else puts (dlerror ());
11879	}
11880      /* dlclose (self); */
11881    }
11882  else
11883    puts (dlerror ());
11884
11885  return status;
11886}
11887_LT_EOF
11888  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11889  (eval $ac_link) 2>&5
11890  ac_status=$?
11891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11892  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11893    (./conftest; exit; ) >&5 2>/dev/null
11894    lt_status=$?
11895    case x$lt_status in
11896      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11897      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11898      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11899    esac
11900  else :
11901    # compilation failed
11902    lt_cv_dlopen_self=no
11903  fi
11904fi
11905rm -fr conftest*
11906
11907
11908fi
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11910$as_echo "$lt_cv_dlopen_self" >&6; }
11911
11912    if test yes = "$lt_cv_dlopen_self"; then
11913      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11914      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11915$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11916if ${lt_cv_dlopen_self_static+:} false; then :
11917  $as_echo_n "(cached) " >&6
11918else
11919  	  if test yes = "$cross_compiling"; then :
11920  lt_cv_dlopen_self_static=cross
11921else
11922  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11923  lt_status=$lt_dlunknown
11924  cat > conftest.$ac_ext <<_LT_EOF
11925#line $LINENO "configure"
11926#include "confdefs.h"
11927
11928#if HAVE_DLFCN_H
11929#include <dlfcn.h>
11930#endif
11931
11932#include <stdio.h>
11933
11934#ifdef RTLD_GLOBAL
11935#  define LT_DLGLOBAL		RTLD_GLOBAL
11936#else
11937#  ifdef DL_GLOBAL
11938#    define LT_DLGLOBAL		DL_GLOBAL
11939#  else
11940#    define LT_DLGLOBAL		0
11941#  endif
11942#endif
11943
11944/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11945   find out it does not work in some platform. */
11946#ifndef LT_DLLAZY_OR_NOW
11947#  ifdef RTLD_LAZY
11948#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11949#  else
11950#    ifdef DL_LAZY
11951#      define LT_DLLAZY_OR_NOW		DL_LAZY
11952#    else
11953#      ifdef RTLD_NOW
11954#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11955#      else
11956#        ifdef DL_NOW
11957#          define LT_DLLAZY_OR_NOW	DL_NOW
11958#        else
11959#          define LT_DLLAZY_OR_NOW	0
11960#        endif
11961#      endif
11962#    endif
11963#  endif
11964#endif
11965
11966/* When -fvisibility=hidden is used, assume the code has been annotated
11967   correspondingly for the symbols needed.  */
11968#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11969int fnord () __attribute__((visibility("default")));
11970#endif
11971
11972int fnord () { return 42; }
11973int main ()
11974{
11975  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11976  int status = $lt_dlunknown;
11977
11978  if (self)
11979    {
11980      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11981      else
11982        {
11983	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11984          else puts (dlerror ());
11985	}
11986      /* dlclose (self); */
11987    }
11988  else
11989    puts (dlerror ());
11990
11991  return status;
11992}
11993_LT_EOF
11994  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11995  (eval $ac_link) 2>&5
11996  ac_status=$?
11997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11998  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11999    (./conftest; exit; ) >&5 2>/dev/null
12000    lt_status=$?
12001    case x$lt_status in
12002      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12003      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12004      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12005    esac
12006  else :
12007    # compilation failed
12008    lt_cv_dlopen_self_static=no
12009  fi
12010fi
12011rm -fr conftest*
12012
12013
12014fi
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12016$as_echo "$lt_cv_dlopen_self_static" >&6; }
12017    fi
12018
12019    CPPFLAGS=$save_CPPFLAGS
12020    LDFLAGS=$save_LDFLAGS
12021    LIBS=$save_LIBS
12022    ;;
12023  esac
12024
12025  case $lt_cv_dlopen_self in
12026  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12027  *) enable_dlopen_self=unknown ;;
12028  esac
12029
12030  case $lt_cv_dlopen_self_static in
12031  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12032  *) enable_dlopen_self_static=unknown ;;
12033  esac
12034fi
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052striplib=
12053old_striplib=
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12055$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12056if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12057  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12058  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12060$as_echo "yes" >&6; }
12061else
12062# FIXME - insert some real tests, host_os isn't really good enough
12063  case $host_os in
12064  darwin*)
12065    if test -n "$STRIP"; then
12066      striplib="$STRIP -x"
12067      old_striplib="$STRIP -S"
12068      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069$as_echo "yes" >&6; }
12070    else
12071      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072$as_echo "no" >&6; }
12073    fi
12074    ;;
12075  *)
12076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077$as_echo "no" >&6; }
12078    ;;
12079  esac
12080fi
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093  # Report what library types will actually be built
12094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12095$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12097$as_echo "$can_build_shared" >&6; }
12098
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12100$as_echo_n "checking whether to build shared libraries... " >&6; }
12101  test no = "$can_build_shared" && enable_shared=no
12102
12103  # On AIX, shared libraries and static libraries use the same namespace, and
12104  # are all built from PIC.
12105  case $host_os in
12106  aix3*)
12107    test yes = "$enable_shared" && enable_static=no
12108    if test -n "$RANLIB"; then
12109      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12110      postinstall_cmds='$RANLIB $lib'
12111    fi
12112    ;;
12113
12114  aix[4-9]*)
12115    if test ia64 != "$host_cpu"; then
12116      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12117      yes,aix,yes) ;;			# shared object as lib.so file only
12118      yes,svr4,*) ;;			# shared object as lib.so archive member only
12119      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12120      esac
12121    fi
12122    ;;
12123  esac
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12125$as_echo "$enable_shared" >&6; }
12126
12127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12128$as_echo_n "checking whether to build static libraries... " >&6; }
12129  # Make sure either enable_shared or enable_static is yes.
12130  test yes = "$enable_shared" || enable_static=yes
12131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12132$as_echo "$enable_static" >&6; }
12133
12134
12135
12136
12137fi
12138ac_ext=c
12139ac_cpp='$CPP $CPPFLAGS'
12140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12142ac_compiler_gnu=$ac_cv_c_compiler_gnu
12143
12144CC=$lt_save_CC
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160        ac_config_commands="$ac_config_commands libtool"
12161
12162
12163
12164
12165# Only expand once:
12166
12167
12168
12169# Require xorg-macros minimum of 1.12 for DocBook external references
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12182$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12183if ${ac_cv_prog_cc_c99+:} false; then :
12184  $as_echo_n "(cached) " >&6
12185else
12186  ac_cv_prog_cc_c99=no
12187ac_save_CC=$CC
12188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189/* end confdefs.h.  */
12190#include <stdarg.h>
12191#include <stdbool.h>
12192#include <stdlib.h>
12193#include <wchar.h>
12194#include <stdio.h>
12195
12196// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12197#define debug(...) fprintf (stderr, __VA_ARGS__)
12198#define showlist(...) puts (#__VA_ARGS__)
12199#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12200static void
12201test_varargs_macros (void)
12202{
12203  int x = 1234;
12204  int y = 5678;
12205  debug ("Flag");
12206  debug ("X = %d\n", x);
12207  showlist (The first, second, and third items.);
12208  report (x>y, "x is %d but y is %d", x, y);
12209}
12210
12211// Check long long types.
12212#define BIG64 18446744073709551615ull
12213#define BIG32 4294967295ul
12214#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12215#if !BIG_OK
12216  your preprocessor is broken;
12217#endif
12218#if BIG_OK
12219#else
12220  your preprocessor is broken;
12221#endif
12222static long long int bignum = -9223372036854775807LL;
12223static unsigned long long int ubignum = BIG64;
12224
12225struct incomplete_array
12226{
12227  int datasize;
12228  double data[];
12229};
12230
12231struct named_init {
12232  int number;
12233  const wchar_t *name;
12234  double average;
12235};
12236
12237typedef const char *ccp;
12238
12239static inline int
12240test_restrict (ccp restrict text)
12241{
12242  // See if C++-style comments work.
12243  // Iterate through items via the restricted pointer.
12244  // Also check for declarations in for loops.
12245  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12246    continue;
12247  return 0;
12248}
12249
12250// Check varargs and va_copy.
12251static void
12252test_varargs (const char *format, ...)
12253{
12254  va_list args;
12255  va_start (args, format);
12256  va_list args_copy;
12257  va_copy (args_copy, args);
12258
12259  const char *str;
12260  int number;
12261  float fnumber;
12262
12263  while (*format)
12264    {
12265      switch (*format++)
12266	{
12267	case 's': // string
12268	  str = va_arg (args_copy, const char *);
12269	  break;
12270	case 'd': // int
12271	  number = va_arg (args_copy, int);
12272	  break;
12273	case 'f': // float
12274	  fnumber = va_arg (args_copy, double);
12275	  break;
12276	default:
12277	  break;
12278	}
12279    }
12280  va_end (args_copy);
12281  va_end (args);
12282}
12283
12284int
12285main ()
12286{
12287
12288  // Check bool.
12289  _Bool success = false;
12290
12291  // Check restrict.
12292  if (test_restrict ("String literal") == 0)
12293    success = true;
12294  char *restrict newvar = "Another string";
12295
12296  // Check varargs.
12297  test_varargs ("s, d' f .", "string", 65, 34.234);
12298  test_varargs_macros ();
12299
12300  // Check flexible array members.
12301  struct incomplete_array *ia =
12302    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12303  ia->datasize = 10;
12304  for (int i = 0; i < ia->datasize; ++i)
12305    ia->data[i] = i * 1.234;
12306
12307  // Check named initializers.
12308  struct named_init ni = {
12309    .number = 34,
12310    .name = L"Test wide string",
12311    .average = 543.34343,
12312  };
12313
12314  ni.number = 58;
12315
12316  int dynamic_array[ni.number];
12317  dynamic_array[ni.number - 1] = 543;
12318
12319  // work around unused variable warnings
12320  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12321	  || dynamic_array[ni.number - 1] != 543);
12322
12323  ;
12324  return 0;
12325}
12326_ACEOF
12327for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12328do
12329  CC="$ac_save_CC $ac_arg"
12330  if ac_fn_c_try_compile "$LINENO"; then :
12331  ac_cv_prog_cc_c99=$ac_arg
12332fi
12333rm -f core conftest.err conftest.$ac_objext
12334  test "x$ac_cv_prog_cc_c99" != "xno" && break
12335done
12336rm -f conftest.$ac_ext
12337CC=$ac_save_CC
12338
12339fi
12340# AC_CACHE_VAL
12341case "x$ac_cv_prog_cc_c99" in
12342  x)
12343    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12344$as_echo "none needed" >&6; } ;;
12345  xno)
12346    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12347$as_echo "unsupported" >&6; } ;;
12348  *)
12349    CC="$CC $ac_cv_prog_cc_c99"
12350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12351$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12352esac
12353if test "x$ac_cv_prog_cc_c99" != xno; then :
12354
12355fi
12356
12357
12358
12359
12360
12361
12362ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12363if test "x$ac_cv_have_decl___clang__" = xyes; then :
12364  CLANGCC="yes"
12365else
12366  CLANGCC="no"
12367fi
12368
12369ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12370if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12371  INTELCC="yes"
12372else
12373  INTELCC="no"
12374fi
12375
12376ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12377if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12378  SUNCC="yes"
12379else
12380  SUNCC="no"
12381fi
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12392	if test -n "$ac_tool_prefix"; then
12393  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12394set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396$as_echo_n "checking for $ac_word... " >&6; }
12397if ${ac_cv_path_PKG_CONFIG+:} false; then :
12398  $as_echo_n "(cached) " >&6
12399else
12400  case $PKG_CONFIG in
12401  [\\/]* | ?:[\\/]*)
12402  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12403  ;;
12404  *)
12405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406for as_dir in $PATH
12407do
12408  IFS=$as_save_IFS
12409  test -z "$as_dir" && as_dir=.
12410    for ac_exec_ext in '' $ac_executable_extensions; do
12411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12412    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414    break 2
12415  fi
12416done
12417  done
12418IFS=$as_save_IFS
12419
12420  ;;
12421esac
12422fi
12423PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12424if test -n "$PKG_CONFIG"; then
12425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12426$as_echo "$PKG_CONFIG" >&6; }
12427else
12428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429$as_echo "no" >&6; }
12430fi
12431
12432
12433fi
12434if test -z "$ac_cv_path_PKG_CONFIG"; then
12435  ac_pt_PKG_CONFIG=$PKG_CONFIG
12436  # Extract the first word of "pkg-config", so it can be a program name with args.
12437set dummy pkg-config; ac_word=$2
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439$as_echo_n "checking for $ac_word... " >&6; }
12440if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12441  $as_echo_n "(cached) " >&6
12442else
12443  case $ac_pt_PKG_CONFIG in
12444  [\\/]* | ?:[\\/]*)
12445  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12446  ;;
12447  *)
12448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449for as_dir in $PATH
12450do
12451  IFS=$as_save_IFS
12452  test -z "$as_dir" && as_dir=.
12453    for ac_exec_ext in '' $ac_executable_extensions; do
12454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12455    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12457    break 2
12458  fi
12459done
12460  done
12461IFS=$as_save_IFS
12462
12463  ;;
12464esac
12465fi
12466ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12467if test -n "$ac_pt_PKG_CONFIG"; then
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12469$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12470else
12471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472$as_echo "no" >&6; }
12473fi
12474
12475  if test "x$ac_pt_PKG_CONFIG" = x; then
12476    PKG_CONFIG=""
12477  else
12478    case $cross_compiling:$ac_tool_warned in
12479yes:)
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12482ac_tool_warned=yes ;;
12483esac
12484    PKG_CONFIG=$ac_pt_PKG_CONFIG
12485  fi
12486else
12487  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12488fi
12489
12490fi
12491if test -n "$PKG_CONFIG"; then
12492	_pkg_min_version=0.9.0
12493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12494$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12495	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12497$as_echo "yes" >&6; }
12498	else
12499		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500$as_echo "no" >&6; }
12501		PKG_CONFIG=""
12502	fi
12503fi
12504
12505
12506
12507
12508
12509# Check whether --enable-selective-werror was given.
12510if test "${enable_selective_werror+set}" = set; then :
12511  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12512else
12513  SELECTIVE_WERROR=yes
12514fi
12515
12516
12517
12518
12519
12520# -v is too short to test reliably with XORG_TESTSET_CFLAG
12521if test "x$SUNCC" = "xyes"; then
12522    BASE_CFLAGS="-v"
12523else
12524    BASE_CFLAGS=""
12525fi
12526
12527# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541xorg_testset_save_CFLAGS="$CFLAGS"
12542
12543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12548  $as_echo_n "(cached) " >&6
12549else
12550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551/* end confdefs.h.  */
12552int i;
12553_ACEOF
12554if ac_fn_c_try_compile "$LINENO"; then :
12555  xorg_cv_cc_flag_unknown_warning_option=yes
12556else
12557  xorg_cv_cc_flag_unknown_warning_option=no
12558fi
12559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12560fi
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12564	CFLAGS="$xorg_testset_save_CFLAGS"
12565fi
12566
12567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12570	fi
12571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12575  $as_echo_n "(cached) " >&6
12576else
12577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578/* end confdefs.h.  */
12579int i;
12580_ACEOF
12581if ac_fn_c_try_compile "$LINENO"; then :
12582  xorg_cv_cc_flag_unused_command_line_argument=yes
12583else
12584  xorg_cv_cc_flag_unused_command_line_argument=no
12585fi
12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587fi
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12591	CFLAGS="$xorg_testset_save_CFLAGS"
12592fi
12593
12594found="no"
12595
12596	if test $found = "no" ; then
12597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12599		fi
12600
12601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12603		fi
12604
12605		CFLAGS="$CFLAGS -Wall"
12606
12607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12608$as_echo_n "checking if $CC supports -Wall... " >&6; }
12609		cacheid=xorg_cv_cc_flag__Wall
12610		if eval \${$cacheid+:} false; then :
12611  $as_echo_n "(cached) " >&6
12612else
12613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h.  */
12615int i;
12616int
12617main ()
12618{
12619
12620  ;
12621  return 0;
12622}
12623_ACEOF
12624if ac_fn_c_try_link "$LINENO"; then :
12625  eval $cacheid=yes
12626else
12627  eval $cacheid=no
12628fi
12629rm -f core conftest.err conftest.$ac_objext \
12630    conftest$ac_exeext conftest.$ac_ext
12631fi
12632
12633
12634		CFLAGS="$xorg_testset_save_CFLAGS"
12635
12636		eval supported=\$$cacheid
12637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12638$as_echo "$supported" >&6; }
12639		if test "$supported" = "yes" ; then
12640			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12641			found="yes"
12642		fi
12643	fi
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659xorg_testset_save_CFLAGS="$CFLAGS"
12660
12661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12666  $as_echo_n "(cached) " >&6
12667else
12668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669/* end confdefs.h.  */
12670int i;
12671_ACEOF
12672if ac_fn_c_try_compile "$LINENO"; then :
12673  xorg_cv_cc_flag_unknown_warning_option=yes
12674else
12675  xorg_cv_cc_flag_unknown_warning_option=no
12676fi
12677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678fi
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12682	CFLAGS="$xorg_testset_save_CFLAGS"
12683fi
12684
12685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12688	fi
12689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12693  $as_echo_n "(cached) " >&6
12694else
12695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696/* end confdefs.h.  */
12697int i;
12698_ACEOF
12699if ac_fn_c_try_compile "$LINENO"; then :
12700  xorg_cv_cc_flag_unused_command_line_argument=yes
12701else
12702  xorg_cv_cc_flag_unused_command_line_argument=no
12703fi
12704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705fi
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12709	CFLAGS="$xorg_testset_save_CFLAGS"
12710fi
12711
12712found="no"
12713
12714	if test $found = "no" ; then
12715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12717		fi
12718
12719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12721		fi
12722
12723		CFLAGS="$CFLAGS -Wpointer-arith"
12724
12725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12726$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12727		cacheid=xorg_cv_cc_flag__Wpointer_arith
12728		if eval \${$cacheid+:} false; then :
12729  $as_echo_n "(cached) " >&6
12730else
12731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h.  */
12733int i;
12734int
12735main ()
12736{
12737
12738  ;
12739  return 0;
12740}
12741_ACEOF
12742if ac_fn_c_try_link "$LINENO"; then :
12743  eval $cacheid=yes
12744else
12745  eval $cacheid=no
12746fi
12747rm -f core conftest.err conftest.$ac_objext \
12748    conftest$ac_exeext conftest.$ac_ext
12749fi
12750
12751
12752		CFLAGS="$xorg_testset_save_CFLAGS"
12753
12754		eval supported=\$$cacheid
12755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12756$as_echo "$supported" >&6; }
12757		if test "$supported" = "yes" ; then
12758			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12759			found="yes"
12760		fi
12761	fi
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777xorg_testset_save_CFLAGS="$CFLAGS"
12778
12779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12784  $as_echo_n "(cached) " >&6
12785else
12786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787/* end confdefs.h.  */
12788int i;
12789_ACEOF
12790if ac_fn_c_try_compile "$LINENO"; then :
12791  xorg_cv_cc_flag_unknown_warning_option=yes
12792else
12793  xorg_cv_cc_flag_unknown_warning_option=no
12794fi
12795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796fi
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12800	CFLAGS="$xorg_testset_save_CFLAGS"
12801fi
12802
12803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12806	fi
12807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12811  $as_echo_n "(cached) " >&6
12812else
12813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814/* end confdefs.h.  */
12815int i;
12816_ACEOF
12817if ac_fn_c_try_compile "$LINENO"; then :
12818  xorg_cv_cc_flag_unused_command_line_argument=yes
12819else
12820  xorg_cv_cc_flag_unused_command_line_argument=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823fi
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12827	CFLAGS="$xorg_testset_save_CFLAGS"
12828fi
12829
12830found="no"
12831
12832	if test $found = "no" ; then
12833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12835		fi
12836
12837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12839		fi
12840
12841		CFLAGS="$CFLAGS -Wmissing-declarations"
12842
12843		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12844$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12845		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12846		if eval \${$cacheid+:} false; then :
12847  $as_echo_n "(cached) " >&6
12848else
12849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850/* end confdefs.h.  */
12851int i;
12852int
12853main ()
12854{
12855
12856  ;
12857  return 0;
12858}
12859_ACEOF
12860if ac_fn_c_try_link "$LINENO"; then :
12861  eval $cacheid=yes
12862else
12863  eval $cacheid=no
12864fi
12865rm -f core conftest.err conftest.$ac_objext \
12866    conftest$ac_exeext conftest.$ac_ext
12867fi
12868
12869
12870		CFLAGS="$xorg_testset_save_CFLAGS"
12871
12872		eval supported=\$$cacheid
12873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12874$as_echo "$supported" >&6; }
12875		if test "$supported" = "yes" ; then
12876			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12877			found="yes"
12878		fi
12879	fi
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895xorg_testset_save_CFLAGS="$CFLAGS"
12896
12897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12902  $as_echo_n "(cached) " >&6
12903else
12904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h.  */
12906int i;
12907_ACEOF
12908if ac_fn_c_try_compile "$LINENO"; then :
12909  xorg_cv_cc_flag_unknown_warning_option=yes
12910else
12911  xorg_cv_cc_flag_unknown_warning_option=no
12912fi
12913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914fi
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12918	CFLAGS="$xorg_testset_save_CFLAGS"
12919fi
12920
12921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12924	fi
12925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12929  $as_echo_n "(cached) " >&6
12930else
12931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h.  */
12933int i;
12934_ACEOF
12935if ac_fn_c_try_compile "$LINENO"; then :
12936  xorg_cv_cc_flag_unused_command_line_argument=yes
12937else
12938  xorg_cv_cc_flag_unused_command_line_argument=no
12939fi
12940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941fi
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12945	CFLAGS="$xorg_testset_save_CFLAGS"
12946fi
12947
12948found="no"
12949
12950	if test $found = "no" ; then
12951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12953		fi
12954
12955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12957		fi
12958
12959		CFLAGS="$CFLAGS -Wformat=2"
12960
12961		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12962$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12963		cacheid=xorg_cv_cc_flag__Wformat_2
12964		if eval \${$cacheid+:} false; then :
12965  $as_echo_n "(cached) " >&6
12966else
12967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968/* end confdefs.h.  */
12969int i;
12970int
12971main ()
12972{
12973
12974  ;
12975  return 0;
12976}
12977_ACEOF
12978if ac_fn_c_try_link "$LINENO"; then :
12979  eval $cacheid=yes
12980else
12981  eval $cacheid=no
12982fi
12983rm -f core conftest.err conftest.$ac_objext \
12984    conftest$ac_exeext conftest.$ac_ext
12985fi
12986
12987
12988		CFLAGS="$xorg_testset_save_CFLAGS"
12989
12990		eval supported=\$$cacheid
12991		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12992$as_echo "$supported" >&6; }
12993		if test "$supported" = "yes" ; then
12994			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12995			found="yes"
12996		fi
12997	fi
12998
12999	if test $found = "no" ; then
13000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13002		fi
13003
13004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13006		fi
13007
13008		CFLAGS="$CFLAGS -Wformat"
13009
13010		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13011$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13012		cacheid=xorg_cv_cc_flag__Wformat
13013		if eval \${$cacheid+:} false; then :
13014  $as_echo_n "(cached) " >&6
13015else
13016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017/* end confdefs.h.  */
13018int i;
13019int
13020main ()
13021{
13022
13023  ;
13024  return 0;
13025}
13026_ACEOF
13027if ac_fn_c_try_link "$LINENO"; then :
13028  eval $cacheid=yes
13029else
13030  eval $cacheid=no
13031fi
13032rm -f core conftest.err conftest.$ac_objext \
13033    conftest$ac_exeext conftest.$ac_ext
13034fi
13035
13036
13037		CFLAGS="$xorg_testset_save_CFLAGS"
13038
13039		eval supported=\$$cacheid
13040		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13041$as_echo "$supported" >&6; }
13042		if test "$supported" = "yes" ; then
13043			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13044			found="yes"
13045		fi
13046	fi
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064xorg_testset_save_CFLAGS="$CFLAGS"
13065
13066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13067	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13071  $as_echo_n "(cached) " >&6
13072else
13073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074/* end confdefs.h.  */
13075int i;
13076_ACEOF
13077if ac_fn_c_try_compile "$LINENO"; then :
13078  xorg_cv_cc_flag_unknown_warning_option=yes
13079else
13080  xorg_cv_cc_flag_unknown_warning_option=no
13081fi
13082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083fi
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13087	CFLAGS="$xorg_testset_save_CFLAGS"
13088fi
13089
13090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13093	fi
13094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13098  $as_echo_n "(cached) " >&6
13099else
13100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101/* end confdefs.h.  */
13102int i;
13103_ACEOF
13104if ac_fn_c_try_compile "$LINENO"; then :
13105  xorg_cv_cc_flag_unused_command_line_argument=yes
13106else
13107  xorg_cv_cc_flag_unused_command_line_argument=no
13108fi
13109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13110fi
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13114	CFLAGS="$xorg_testset_save_CFLAGS"
13115fi
13116
13117found="no"
13118
13119	if test $found = "no" ; then
13120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13122		fi
13123
13124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13126		fi
13127
13128		CFLAGS="$CFLAGS -Wstrict-prototypes"
13129
13130		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13131$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13132		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13133		if eval \${$cacheid+:} false; then :
13134  $as_echo_n "(cached) " >&6
13135else
13136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137/* end confdefs.h.  */
13138int i;
13139int
13140main ()
13141{
13142
13143  ;
13144  return 0;
13145}
13146_ACEOF
13147if ac_fn_c_try_link "$LINENO"; then :
13148  eval $cacheid=yes
13149else
13150  eval $cacheid=no
13151fi
13152rm -f core conftest.err conftest.$ac_objext \
13153    conftest$ac_exeext conftest.$ac_ext
13154fi
13155
13156
13157		CFLAGS="$xorg_testset_save_CFLAGS"
13158
13159		eval supported=\$$cacheid
13160		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13161$as_echo "$supported" >&6; }
13162		if test "$supported" = "yes" ; then
13163			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13164			found="yes"
13165		fi
13166	fi
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182xorg_testset_save_CFLAGS="$CFLAGS"
13183
13184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13189  $as_echo_n "(cached) " >&6
13190else
13191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192/* end confdefs.h.  */
13193int i;
13194_ACEOF
13195if ac_fn_c_try_compile "$LINENO"; then :
13196  xorg_cv_cc_flag_unknown_warning_option=yes
13197else
13198  xorg_cv_cc_flag_unknown_warning_option=no
13199fi
13200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201fi
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13205	CFLAGS="$xorg_testset_save_CFLAGS"
13206fi
13207
13208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13211	fi
13212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13216  $as_echo_n "(cached) " >&6
13217else
13218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219/* end confdefs.h.  */
13220int i;
13221_ACEOF
13222if ac_fn_c_try_compile "$LINENO"; then :
13223  xorg_cv_cc_flag_unused_command_line_argument=yes
13224else
13225  xorg_cv_cc_flag_unused_command_line_argument=no
13226fi
13227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228fi
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13232	CFLAGS="$xorg_testset_save_CFLAGS"
13233fi
13234
13235found="no"
13236
13237	if test $found = "no" ; then
13238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13240		fi
13241
13242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13244		fi
13245
13246		CFLAGS="$CFLAGS -Wmissing-prototypes"
13247
13248		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13249$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13250		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13251		if eval \${$cacheid+:} false; then :
13252  $as_echo_n "(cached) " >&6
13253else
13254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h.  */
13256int i;
13257int
13258main ()
13259{
13260
13261  ;
13262  return 0;
13263}
13264_ACEOF
13265if ac_fn_c_try_link "$LINENO"; then :
13266  eval $cacheid=yes
13267else
13268  eval $cacheid=no
13269fi
13270rm -f core conftest.err conftest.$ac_objext \
13271    conftest$ac_exeext conftest.$ac_ext
13272fi
13273
13274
13275		CFLAGS="$xorg_testset_save_CFLAGS"
13276
13277		eval supported=\$$cacheid
13278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13279$as_echo "$supported" >&6; }
13280		if test "$supported" = "yes" ; then
13281			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13282			found="yes"
13283		fi
13284	fi
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300xorg_testset_save_CFLAGS="$CFLAGS"
13301
13302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13307  $as_echo_n "(cached) " >&6
13308else
13309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310/* end confdefs.h.  */
13311int i;
13312_ACEOF
13313if ac_fn_c_try_compile "$LINENO"; then :
13314  xorg_cv_cc_flag_unknown_warning_option=yes
13315else
13316  xorg_cv_cc_flag_unknown_warning_option=no
13317fi
13318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319fi
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13323	CFLAGS="$xorg_testset_save_CFLAGS"
13324fi
13325
13326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13329	fi
13330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13334  $as_echo_n "(cached) " >&6
13335else
13336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337/* end confdefs.h.  */
13338int i;
13339_ACEOF
13340if ac_fn_c_try_compile "$LINENO"; then :
13341  xorg_cv_cc_flag_unused_command_line_argument=yes
13342else
13343  xorg_cv_cc_flag_unused_command_line_argument=no
13344fi
13345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346fi
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13350	CFLAGS="$xorg_testset_save_CFLAGS"
13351fi
13352
13353found="no"
13354
13355	if test $found = "no" ; then
13356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13358		fi
13359
13360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13362		fi
13363
13364		CFLAGS="$CFLAGS -Wnested-externs"
13365
13366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13367$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13368		cacheid=xorg_cv_cc_flag__Wnested_externs
13369		if eval \${$cacheid+:} false; then :
13370  $as_echo_n "(cached) " >&6
13371else
13372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373/* end confdefs.h.  */
13374int i;
13375int
13376main ()
13377{
13378
13379  ;
13380  return 0;
13381}
13382_ACEOF
13383if ac_fn_c_try_link "$LINENO"; then :
13384  eval $cacheid=yes
13385else
13386  eval $cacheid=no
13387fi
13388rm -f core conftest.err conftest.$ac_objext \
13389    conftest$ac_exeext conftest.$ac_ext
13390fi
13391
13392
13393		CFLAGS="$xorg_testset_save_CFLAGS"
13394
13395		eval supported=\$$cacheid
13396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13397$as_echo "$supported" >&6; }
13398		if test "$supported" = "yes" ; then
13399			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13400			found="yes"
13401		fi
13402	fi
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418xorg_testset_save_CFLAGS="$CFLAGS"
13419
13420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13425  $as_echo_n "(cached) " >&6
13426else
13427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428/* end confdefs.h.  */
13429int i;
13430_ACEOF
13431if ac_fn_c_try_compile "$LINENO"; then :
13432  xorg_cv_cc_flag_unknown_warning_option=yes
13433else
13434  xorg_cv_cc_flag_unknown_warning_option=no
13435fi
13436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437fi
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13441	CFLAGS="$xorg_testset_save_CFLAGS"
13442fi
13443
13444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13447	fi
13448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13452  $as_echo_n "(cached) " >&6
13453else
13454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455/* end confdefs.h.  */
13456int i;
13457_ACEOF
13458if ac_fn_c_try_compile "$LINENO"; then :
13459  xorg_cv_cc_flag_unused_command_line_argument=yes
13460else
13461  xorg_cv_cc_flag_unused_command_line_argument=no
13462fi
13463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13464fi
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13468	CFLAGS="$xorg_testset_save_CFLAGS"
13469fi
13470
13471found="no"
13472
13473	if test $found = "no" ; then
13474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13476		fi
13477
13478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13480		fi
13481
13482		CFLAGS="$CFLAGS -Wbad-function-cast"
13483
13484		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13485$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13486		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13487		if eval \${$cacheid+:} false; then :
13488  $as_echo_n "(cached) " >&6
13489else
13490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h.  */
13492int i;
13493int
13494main ()
13495{
13496
13497  ;
13498  return 0;
13499}
13500_ACEOF
13501if ac_fn_c_try_link "$LINENO"; then :
13502  eval $cacheid=yes
13503else
13504  eval $cacheid=no
13505fi
13506rm -f core conftest.err conftest.$ac_objext \
13507    conftest$ac_exeext conftest.$ac_ext
13508fi
13509
13510
13511		CFLAGS="$xorg_testset_save_CFLAGS"
13512
13513		eval supported=\$$cacheid
13514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13515$as_echo "$supported" >&6; }
13516		if test "$supported" = "yes" ; then
13517			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13518			found="yes"
13519		fi
13520	fi
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536xorg_testset_save_CFLAGS="$CFLAGS"
13537
13538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13543  $as_echo_n "(cached) " >&6
13544else
13545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546/* end confdefs.h.  */
13547int i;
13548_ACEOF
13549if ac_fn_c_try_compile "$LINENO"; then :
13550  xorg_cv_cc_flag_unknown_warning_option=yes
13551else
13552  xorg_cv_cc_flag_unknown_warning_option=no
13553fi
13554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555fi
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13559	CFLAGS="$xorg_testset_save_CFLAGS"
13560fi
13561
13562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13565	fi
13566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13570  $as_echo_n "(cached) " >&6
13571else
13572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573/* end confdefs.h.  */
13574int i;
13575_ACEOF
13576if ac_fn_c_try_compile "$LINENO"; then :
13577  xorg_cv_cc_flag_unused_command_line_argument=yes
13578else
13579  xorg_cv_cc_flag_unused_command_line_argument=no
13580fi
13581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582fi
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13586	CFLAGS="$xorg_testset_save_CFLAGS"
13587fi
13588
13589found="no"
13590
13591	if test $found = "no" ; then
13592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13594		fi
13595
13596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13598		fi
13599
13600		CFLAGS="$CFLAGS -Wold-style-definition"
13601
13602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13603$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13604		cacheid=xorg_cv_cc_flag__Wold_style_definition
13605		if eval \${$cacheid+:} false; then :
13606  $as_echo_n "(cached) " >&6
13607else
13608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609/* end confdefs.h.  */
13610int i;
13611int
13612main ()
13613{
13614
13615  ;
13616  return 0;
13617}
13618_ACEOF
13619if ac_fn_c_try_link "$LINENO"; then :
13620  eval $cacheid=yes
13621else
13622  eval $cacheid=no
13623fi
13624rm -f core conftest.err conftest.$ac_objext \
13625    conftest$ac_exeext conftest.$ac_ext
13626fi
13627
13628
13629		CFLAGS="$xorg_testset_save_CFLAGS"
13630
13631		eval supported=\$$cacheid
13632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13633$as_echo "$supported" >&6; }
13634		if test "$supported" = "yes" ; then
13635			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13636			found="yes"
13637		fi
13638	fi
13639
13640	if test $found = "no" ; then
13641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13643		fi
13644
13645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13647		fi
13648
13649		CFLAGS="$CFLAGS -fd"
13650
13651		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13652$as_echo_n "checking if $CC supports -fd... " >&6; }
13653		cacheid=xorg_cv_cc_flag__fd
13654		if eval \${$cacheid+:} false; then :
13655  $as_echo_n "(cached) " >&6
13656else
13657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658/* end confdefs.h.  */
13659int i;
13660int
13661main ()
13662{
13663
13664  ;
13665  return 0;
13666}
13667_ACEOF
13668if ac_fn_c_try_link "$LINENO"; then :
13669  eval $cacheid=yes
13670else
13671  eval $cacheid=no
13672fi
13673rm -f core conftest.err conftest.$ac_objext \
13674    conftest$ac_exeext conftest.$ac_ext
13675fi
13676
13677
13678		CFLAGS="$xorg_testset_save_CFLAGS"
13679
13680		eval supported=\$$cacheid
13681		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13682$as_echo "$supported" >&6; }
13683		if test "$supported" = "yes" ; then
13684			BASE_CFLAGS="$BASE_CFLAGS -fd"
13685			found="yes"
13686		fi
13687	fi
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703xorg_testset_save_CFLAGS="$CFLAGS"
13704
13705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13710  $as_echo_n "(cached) " >&6
13711else
13712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713/* end confdefs.h.  */
13714int i;
13715_ACEOF
13716if ac_fn_c_try_compile "$LINENO"; then :
13717  xorg_cv_cc_flag_unknown_warning_option=yes
13718else
13719  xorg_cv_cc_flag_unknown_warning_option=no
13720fi
13721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722fi
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13725	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13726	CFLAGS="$xorg_testset_save_CFLAGS"
13727fi
13728
13729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13730	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13731		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13732	fi
13733	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13737  $as_echo_n "(cached) " >&6
13738else
13739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740/* end confdefs.h.  */
13741int i;
13742_ACEOF
13743if ac_fn_c_try_compile "$LINENO"; then :
13744  xorg_cv_cc_flag_unused_command_line_argument=yes
13745else
13746  xorg_cv_cc_flag_unused_command_line_argument=no
13747fi
13748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749fi
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13753	CFLAGS="$xorg_testset_save_CFLAGS"
13754fi
13755
13756found="no"
13757
13758	if test $found = "no" ; then
13759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13761		fi
13762
13763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13765		fi
13766
13767		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13768
13769		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13770$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13771		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13772		if eval \${$cacheid+:} false; then :
13773  $as_echo_n "(cached) " >&6
13774else
13775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776/* end confdefs.h.  */
13777int i;
13778int
13779main ()
13780{
13781
13782  ;
13783  return 0;
13784}
13785_ACEOF
13786if ac_fn_c_try_link "$LINENO"; then :
13787  eval $cacheid=yes
13788else
13789  eval $cacheid=no
13790fi
13791rm -f core conftest.err conftest.$ac_objext \
13792    conftest$ac_exeext conftest.$ac_ext
13793fi
13794
13795
13796		CFLAGS="$xorg_testset_save_CFLAGS"
13797
13798		eval supported=\$$cacheid
13799		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13800$as_echo "$supported" >&6; }
13801		if test "$supported" = "yes" ; then
13802			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13803			found="yes"
13804		fi
13805	fi
13806
13807
13808
13809
13810
13811# This chunk adds additional warnings that could catch undesired effects.
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825xorg_testset_save_CFLAGS="$CFLAGS"
13826
13827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13828	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13832  $as_echo_n "(cached) " >&6
13833else
13834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835/* end confdefs.h.  */
13836int i;
13837_ACEOF
13838if ac_fn_c_try_compile "$LINENO"; then :
13839  xorg_cv_cc_flag_unknown_warning_option=yes
13840else
13841  xorg_cv_cc_flag_unknown_warning_option=no
13842fi
13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844fi
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13848	CFLAGS="$xorg_testset_save_CFLAGS"
13849fi
13850
13851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13854	fi
13855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13859  $as_echo_n "(cached) " >&6
13860else
13861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h.  */
13863int i;
13864_ACEOF
13865if ac_fn_c_try_compile "$LINENO"; then :
13866  xorg_cv_cc_flag_unused_command_line_argument=yes
13867else
13868  xorg_cv_cc_flag_unused_command_line_argument=no
13869fi
13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871fi
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13875	CFLAGS="$xorg_testset_save_CFLAGS"
13876fi
13877
13878found="no"
13879
13880	if test $found = "no" ; then
13881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13883		fi
13884
13885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13887		fi
13888
13889		CFLAGS="$CFLAGS -Wunused"
13890
13891		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13892$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13893		cacheid=xorg_cv_cc_flag__Wunused
13894		if eval \${$cacheid+:} false; then :
13895  $as_echo_n "(cached) " >&6
13896else
13897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898/* end confdefs.h.  */
13899int i;
13900int
13901main ()
13902{
13903
13904  ;
13905  return 0;
13906}
13907_ACEOF
13908if ac_fn_c_try_link "$LINENO"; then :
13909  eval $cacheid=yes
13910else
13911  eval $cacheid=no
13912fi
13913rm -f core conftest.err conftest.$ac_objext \
13914    conftest$ac_exeext conftest.$ac_ext
13915fi
13916
13917
13918		CFLAGS="$xorg_testset_save_CFLAGS"
13919
13920		eval supported=\$$cacheid
13921		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13922$as_echo "$supported" >&6; }
13923		if test "$supported" = "yes" ; then
13924			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13925			found="yes"
13926		fi
13927	fi
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943xorg_testset_save_CFLAGS="$CFLAGS"
13944
13945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13950  $as_echo_n "(cached) " >&6
13951else
13952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953/* end confdefs.h.  */
13954int i;
13955_ACEOF
13956if ac_fn_c_try_compile "$LINENO"; then :
13957  xorg_cv_cc_flag_unknown_warning_option=yes
13958else
13959  xorg_cv_cc_flag_unknown_warning_option=no
13960fi
13961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962fi
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13966	CFLAGS="$xorg_testset_save_CFLAGS"
13967fi
13968
13969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13972	fi
13973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13977  $as_echo_n "(cached) " >&6
13978else
13979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980/* end confdefs.h.  */
13981int i;
13982_ACEOF
13983if ac_fn_c_try_compile "$LINENO"; then :
13984  xorg_cv_cc_flag_unused_command_line_argument=yes
13985else
13986  xorg_cv_cc_flag_unused_command_line_argument=no
13987fi
13988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13993	CFLAGS="$xorg_testset_save_CFLAGS"
13994fi
13995
13996found="no"
13997
13998	if test $found = "no" ; then
13999		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14001		fi
14002
14003		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14005		fi
14006
14007		CFLAGS="$CFLAGS -Wuninitialized"
14008
14009		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14010$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14011		cacheid=xorg_cv_cc_flag__Wuninitialized
14012		if eval \${$cacheid+:} false; then :
14013  $as_echo_n "(cached) " >&6
14014else
14015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016/* end confdefs.h.  */
14017int i;
14018int
14019main ()
14020{
14021
14022  ;
14023  return 0;
14024}
14025_ACEOF
14026if ac_fn_c_try_link "$LINENO"; then :
14027  eval $cacheid=yes
14028else
14029  eval $cacheid=no
14030fi
14031rm -f core conftest.err conftest.$ac_objext \
14032    conftest$ac_exeext conftest.$ac_ext
14033fi
14034
14035
14036		CFLAGS="$xorg_testset_save_CFLAGS"
14037
14038		eval supported=\$$cacheid
14039		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14040$as_echo "$supported" >&6; }
14041		if test "$supported" = "yes" ; then
14042			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14043			found="yes"
14044		fi
14045	fi
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061xorg_testset_save_CFLAGS="$CFLAGS"
14062
14063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14068  $as_echo_n "(cached) " >&6
14069else
14070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071/* end confdefs.h.  */
14072int i;
14073_ACEOF
14074if ac_fn_c_try_compile "$LINENO"; then :
14075  xorg_cv_cc_flag_unknown_warning_option=yes
14076else
14077  xorg_cv_cc_flag_unknown_warning_option=no
14078fi
14079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14080fi
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14083	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14084	CFLAGS="$xorg_testset_save_CFLAGS"
14085fi
14086
14087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14088	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14089		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14090	fi
14091	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14095  $as_echo_n "(cached) " >&6
14096else
14097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h.  */
14099int i;
14100_ACEOF
14101if ac_fn_c_try_compile "$LINENO"; then :
14102  xorg_cv_cc_flag_unused_command_line_argument=yes
14103else
14104  xorg_cv_cc_flag_unused_command_line_argument=no
14105fi
14106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107fi
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14110	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14111	CFLAGS="$xorg_testset_save_CFLAGS"
14112fi
14113
14114found="no"
14115
14116	if test $found = "no" ; then
14117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14119		fi
14120
14121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14123		fi
14124
14125		CFLAGS="$CFLAGS -Wshadow"
14126
14127		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14128$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14129		cacheid=xorg_cv_cc_flag__Wshadow
14130		if eval \${$cacheid+:} false; then :
14131  $as_echo_n "(cached) " >&6
14132else
14133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134/* end confdefs.h.  */
14135int i;
14136int
14137main ()
14138{
14139
14140  ;
14141  return 0;
14142}
14143_ACEOF
14144if ac_fn_c_try_link "$LINENO"; then :
14145  eval $cacheid=yes
14146else
14147  eval $cacheid=no
14148fi
14149rm -f core conftest.err conftest.$ac_objext \
14150    conftest$ac_exeext conftest.$ac_ext
14151fi
14152
14153
14154		CFLAGS="$xorg_testset_save_CFLAGS"
14155
14156		eval supported=\$$cacheid
14157		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14158$as_echo "$supported" >&6; }
14159		if test "$supported" = "yes" ; then
14160			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14161			found="yes"
14162		fi
14163	fi
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179xorg_testset_save_CFLAGS="$CFLAGS"
14180
14181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14186  $as_echo_n "(cached) " >&6
14187else
14188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189/* end confdefs.h.  */
14190int i;
14191_ACEOF
14192if ac_fn_c_try_compile "$LINENO"; then :
14193  xorg_cv_cc_flag_unknown_warning_option=yes
14194else
14195  xorg_cv_cc_flag_unknown_warning_option=no
14196fi
14197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198fi
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14201	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14202	CFLAGS="$xorg_testset_save_CFLAGS"
14203fi
14204
14205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14206	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14207		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14208	fi
14209	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14213  $as_echo_n "(cached) " >&6
14214else
14215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216/* end confdefs.h.  */
14217int i;
14218_ACEOF
14219if ac_fn_c_try_compile "$LINENO"; then :
14220  xorg_cv_cc_flag_unused_command_line_argument=yes
14221else
14222  xorg_cv_cc_flag_unused_command_line_argument=no
14223fi
14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225fi
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14228	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14229	CFLAGS="$xorg_testset_save_CFLAGS"
14230fi
14231
14232found="no"
14233
14234	if test $found = "no" ; then
14235		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14236			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14237		fi
14238
14239		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14240			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14241		fi
14242
14243		CFLAGS="$CFLAGS -Wmissing-noreturn"
14244
14245		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14246$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14247		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14248		if eval \${$cacheid+:} false; then :
14249  $as_echo_n "(cached) " >&6
14250else
14251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252/* end confdefs.h.  */
14253int i;
14254int
14255main ()
14256{
14257
14258  ;
14259  return 0;
14260}
14261_ACEOF
14262if ac_fn_c_try_link "$LINENO"; then :
14263  eval $cacheid=yes
14264else
14265  eval $cacheid=no
14266fi
14267rm -f core conftest.err conftest.$ac_objext \
14268    conftest$ac_exeext conftest.$ac_ext
14269fi
14270
14271
14272		CFLAGS="$xorg_testset_save_CFLAGS"
14273
14274		eval supported=\$$cacheid
14275		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14276$as_echo "$supported" >&6; }
14277		if test "$supported" = "yes" ; then
14278			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14279			found="yes"
14280		fi
14281	fi
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297xorg_testset_save_CFLAGS="$CFLAGS"
14298
14299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14304  $as_echo_n "(cached) " >&6
14305else
14306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307/* end confdefs.h.  */
14308int i;
14309_ACEOF
14310if ac_fn_c_try_compile "$LINENO"; then :
14311  xorg_cv_cc_flag_unknown_warning_option=yes
14312else
14313  xorg_cv_cc_flag_unknown_warning_option=no
14314fi
14315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316fi
14317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14319	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14320	CFLAGS="$xorg_testset_save_CFLAGS"
14321fi
14322
14323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14324	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14325		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14326	fi
14327	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14331  $as_echo_n "(cached) " >&6
14332else
14333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334/* end confdefs.h.  */
14335int i;
14336_ACEOF
14337if ac_fn_c_try_compile "$LINENO"; then :
14338  xorg_cv_cc_flag_unused_command_line_argument=yes
14339else
14340  xorg_cv_cc_flag_unused_command_line_argument=no
14341fi
14342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343fi
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14346	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14347	CFLAGS="$xorg_testset_save_CFLAGS"
14348fi
14349
14350found="no"
14351
14352	if test $found = "no" ; then
14353		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14354			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14355		fi
14356
14357		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14358			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14359		fi
14360
14361		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14362
14363		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14364$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14365		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14366		if eval \${$cacheid+:} false; then :
14367  $as_echo_n "(cached) " >&6
14368else
14369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370/* end confdefs.h.  */
14371int i;
14372int
14373main ()
14374{
14375
14376  ;
14377  return 0;
14378}
14379_ACEOF
14380if ac_fn_c_try_link "$LINENO"; then :
14381  eval $cacheid=yes
14382else
14383  eval $cacheid=no
14384fi
14385rm -f core conftest.err conftest.$ac_objext \
14386    conftest$ac_exeext conftest.$ac_ext
14387fi
14388
14389
14390		CFLAGS="$xorg_testset_save_CFLAGS"
14391
14392		eval supported=\$$cacheid
14393		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14394$as_echo "$supported" >&6; }
14395		if test "$supported" = "yes" ; then
14396			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14397			found="yes"
14398		fi
14399	fi
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415xorg_testset_save_CFLAGS="$CFLAGS"
14416
14417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14422  $as_echo_n "(cached) " >&6
14423else
14424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425/* end confdefs.h.  */
14426int i;
14427_ACEOF
14428if ac_fn_c_try_compile "$LINENO"; then :
14429  xorg_cv_cc_flag_unknown_warning_option=yes
14430else
14431  xorg_cv_cc_flag_unknown_warning_option=no
14432fi
14433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14434fi
14435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14438	CFLAGS="$xorg_testset_save_CFLAGS"
14439fi
14440
14441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14444	fi
14445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14449  $as_echo_n "(cached) " >&6
14450else
14451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452/* end confdefs.h.  */
14453int i;
14454_ACEOF
14455if ac_fn_c_try_compile "$LINENO"; then :
14456  xorg_cv_cc_flag_unused_command_line_argument=yes
14457else
14458  xorg_cv_cc_flag_unused_command_line_argument=no
14459fi
14460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461fi
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14465	CFLAGS="$xorg_testset_save_CFLAGS"
14466fi
14467
14468found="no"
14469
14470	if test $found = "no" ; then
14471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14473		fi
14474
14475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14477		fi
14478
14479		CFLAGS="$CFLAGS -Wredundant-decls"
14480
14481		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14482$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14483		cacheid=xorg_cv_cc_flag__Wredundant_decls
14484		if eval \${$cacheid+:} false; then :
14485  $as_echo_n "(cached) " >&6
14486else
14487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488/* end confdefs.h.  */
14489int i;
14490int
14491main ()
14492{
14493
14494  ;
14495  return 0;
14496}
14497_ACEOF
14498if ac_fn_c_try_link "$LINENO"; then :
14499  eval $cacheid=yes
14500else
14501  eval $cacheid=no
14502fi
14503rm -f core conftest.err conftest.$ac_objext \
14504    conftest$ac_exeext conftest.$ac_ext
14505fi
14506
14507
14508		CFLAGS="$xorg_testset_save_CFLAGS"
14509
14510		eval supported=\$$cacheid
14511		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14512$as_echo "$supported" >&6; }
14513		if test "$supported" = "yes" ; then
14514			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14515			found="yes"
14516		fi
14517	fi
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533xorg_testset_save_CFLAGS="$CFLAGS"
14534
14535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14540  $as_echo_n "(cached) " >&6
14541else
14542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543/* end confdefs.h.  */
14544int i;
14545_ACEOF
14546if ac_fn_c_try_compile "$LINENO"; then :
14547  xorg_cv_cc_flag_unknown_warning_option=yes
14548else
14549  xorg_cv_cc_flag_unknown_warning_option=no
14550fi
14551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552fi
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14556	CFLAGS="$xorg_testset_save_CFLAGS"
14557fi
14558
14559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14562	fi
14563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14567  $as_echo_n "(cached) " >&6
14568else
14569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570/* end confdefs.h.  */
14571int i;
14572_ACEOF
14573if ac_fn_c_try_compile "$LINENO"; then :
14574  xorg_cv_cc_flag_unused_command_line_argument=yes
14575else
14576  xorg_cv_cc_flag_unused_command_line_argument=no
14577fi
14578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579fi
14580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14583	CFLAGS="$xorg_testset_save_CFLAGS"
14584fi
14585
14586found="no"
14587
14588	if test $found = "no" ; then
14589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14591		fi
14592
14593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14595		fi
14596
14597		CFLAGS="$CFLAGS -Wlogical-op"
14598
14599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14600$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14601		cacheid=xorg_cv_cc_flag__Wlogical_op
14602		if eval \${$cacheid+:} false; then :
14603  $as_echo_n "(cached) " >&6
14604else
14605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606/* end confdefs.h.  */
14607int i;
14608int
14609main ()
14610{
14611
14612  ;
14613  return 0;
14614}
14615_ACEOF
14616if ac_fn_c_try_link "$LINENO"; then :
14617  eval $cacheid=yes
14618else
14619  eval $cacheid=no
14620fi
14621rm -f core conftest.err conftest.$ac_objext \
14622    conftest$ac_exeext conftest.$ac_ext
14623fi
14624
14625
14626		CFLAGS="$xorg_testset_save_CFLAGS"
14627
14628		eval supported=\$$cacheid
14629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14630$as_echo "$supported" >&6; }
14631		if test "$supported" = "yes" ; then
14632			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14633			found="yes"
14634		fi
14635	fi
14636
14637
14638
14639# These are currently disabled because they are noisy.  They will be enabled
14640# in the future once the codebase is sufficiently modernized to silence
14641# them.  For now, I don't want them to drown out the other warnings.
14642# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14643# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14644# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14645
14646# Turn some warnings into errors, so we don't accidently get successful builds
14647# when there are problems that should be fixed.
14648
14649if test "x$SELECTIVE_WERROR" = "xyes" ; then
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663xorg_testset_save_CFLAGS="$CFLAGS"
14664
14665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14670  $as_echo_n "(cached) " >&6
14671else
14672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673/* end confdefs.h.  */
14674int i;
14675_ACEOF
14676if ac_fn_c_try_compile "$LINENO"; then :
14677  xorg_cv_cc_flag_unknown_warning_option=yes
14678else
14679  xorg_cv_cc_flag_unknown_warning_option=no
14680fi
14681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682fi
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14686	CFLAGS="$xorg_testset_save_CFLAGS"
14687fi
14688
14689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14692	fi
14693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14697  $as_echo_n "(cached) " >&6
14698else
14699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700/* end confdefs.h.  */
14701int i;
14702_ACEOF
14703if ac_fn_c_try_compile "$LINENO"; then :
14704  xorg_cv_cc_flag_unused_command_line_argument=yes
14705else
14706  xorg_cv_cc_flag_unused_command_line_argument=no
14707fi
14708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709fi
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14713	CFLAGS="$xorg_testset_save_CFLAGS"
14714fi
14715
14716found="no"
14717
14718	if test $found = "no" ; then
14719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14721		fi
14722
14723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14725		fi
14726
14727		CFLAGS="$CFLAGS -Werror=implicit"
14728
14729		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14730$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14731		cacheid=xorg_cv_cc_flag__Werror_implicit
14732		if eval \${$cacheid+:} false; then :
14733  $as_echo_n "(cached) " >&6
14734else
14735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736/* end confdefs.h.  */
14737int i;
14738int
14739main ()
14740{
14741
14742  ;
14743  return 0;
14744}
14745_ACEOF
14746if ac_fn_c_try_link "$LINENO"; then :
14747  eval $cacheid=yes
14748else
14749  eval $cacheid=no
14750fi
14751rm -f core conftest.err conftest.$ac_objext \
14752    conftest$ac_exeext conftest.$ac_ext
14753fi
14754
14755
14756		CFLAGS="$xorg_testset_save_CFLAGS"
14757
14758		eval supported=\$$cacheid
14759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14760$as_echo "$supported" >&6; }
14761		if test "$supported" = "yes" ; then
14762			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14763			found="yes"
14764		fi
14765	fi
14766
14767	if test $found = "no" ; then
14768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14770		fi
14771
14772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14774		fi
14775
14776		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14777
14778		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14779$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14780		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14781		if eval \${$cacheid+:} false; then :
14782  $as_echo_n "(cached) " >&6
14783else
14784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785/* end confdefs.h.  */
14786int i;
14787int
14788main ()
14789{
14790
14791  ;
14792  return 0;
14793}
14794_ACEOF
14795if ac_fn_c_try_link "$LINENO"; then :
14796  eval $cacheid=yes
14797else
14798  eval $cacheid=no
14799fi
14800rm -f core conftest.err conftest.$ac_objext \
14801    conftest$ac_exeext conftest.$ac_ext
14802fi
14803
14804
14805		CFLAGS="$xorg_testset_save_CFLAGS"
14806
14807		eval supported=\$$cacheid
14808		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14809$as_echo "$supported" >&6; }
14810		if test "$supported" = "yes" ; then
14811			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14812			found="yes"
14813		fi
14814	fi
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830xorg_testset_save_CFLAGS="$CFLAGS"
14831
14832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14833	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14835$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14836if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14837  $as_echo_n "(cached) " >&6
14838else
14839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840/* end confdefs.h.  */
14841int i;
14842_ACEOF
14843if ac_fn_c_try_compile "$LINENO"; then :
14844  xorg_cv_cc_flag_unknown_warning_option=yes
14845else
14846  xorg_cv_cc_flag_unknown_warning_option=no
14847fi
14848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849fi
14850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14851$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14852	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14853	CFLAGS="$xorg_testset_save_CFLAGS"
14854fi
14855
14856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14857	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14858		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14859	fi
14860	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14862$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14863if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14864  $as_echo_n "(cached) " >&6
14865else
14866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867/* end confdefs.h.  */
14868int i;
14869_ACEOF
14870if ac_fn_c_try_compile "$LINENO"; then :
14871  xorg_cv_cc_flag_unused_command_line_argument=yes
14872else
14873  xorg_cv_cc_flag_unused_command_line_argument=no
14874fi
14875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876fi
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14878$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14880	CFLAGS="$xorg_testset_save_CFLAGS"
14881fi
14882
14883found="no"
14884
14885	if test $found = "no" ; then
14886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14888		fi
14889
14890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14892		fi
14893
14894		CFLAGS="$CFLAGS -Werror=nonnull"
14895
14896		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14897$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14898		cacheid=xorg_cv_cc_flag__Werror_nonnull
14899		if eval \${$cacheid+:} false; then :
14900  $as_echo_n "(cached) " >&6
14901else
14902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903/* end confdefs.h.  */
14904int i;
14905int
14906main ()
14907{
14908
14909  ;
14910  return 0;
14911}
14912_ACEOF
14913if ac_fn_c_try_link "$LINENO"; then :
14914  eval $cacheid=yes
14915else
14916  eval $cacheid=no
14917fi
14918rm -f core conftest.err conftest.$ac_objext \
14919    conftest$ac_exeext conftest.$ac_ext
14920fi
14921
14922
14923		CFLAGS="$xorg_testset_save_CFLAGS"
14924
14925		eval supported=\$$cacheid
14926		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14927$as_echo "$supported" >&6; }
14928		if test "$supported" = "yes" ; then
14929			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14930			found="yes"
14931		fi
14932	fi
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948xorg_testset_save_CFLAGS="$CFLAGS"
14949
14950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14955  $as_echo_n "(cached) " >&6
14956else
14957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958/* end confdefs.h.  */
14959int i;
14960_ACEOF
14961if ac_fn_c_try_compile "$LINENO"; then :
14962  xorg_cv_cc_flag_unknown_warning_option=yes
14963else
14964  xorg_cv_cc_flag_unknown_warning_option=no
14965fi
14966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14967fi
14968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14971	CFLAGS="$xorg_testset_save_CFLAGS"
14972fi
14973
14974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14977	fi
14978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14982  $as_echo_n "(cached) " >&6
14983else
14984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985/* end confdefs.h.  */
14986int i;
14987_ACEOF
14988if ac_fn_c_try_compile "$LINENO"; then :
14989  xorg_cv_cc_flag_unused_command_line_argument=yes
14990else
14991  xorg_cv_cc_flag_unused_command_line_argument=no
14992fi
14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994fi
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14998	CFLAGS="$xorg_testset_save_CFLAGS"
14999fi
15000
15001found="no"
15002
15003	if test $found = "no" ; then
15004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15006		fi
15007
15008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15010		fi
15011
15012		CFLAGS="$CFLAGS -Werror=init-self"
15013
15014		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15015$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15016		cacheid=xorg_cv_cc_flag__Werror_init_self
15017		if eval \${$cacheid+:} false; then :
15018  $as_echo_n "(cached) " >&6
15019else
15020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h.  */
15022int i;
15023int
15024main ()
15025{
15026
15027  ;
15028  return 0;
15029}
15030_ACEOF
15031if ac_fn_c_try_link "$LINENO"; then :
15032  eval $cacheid=yes
15033else
15034  eval $cacheid=no
15035fi
15036rm -f core conftest.err conftest.$ac_objext \
15037    conftest$ac_exeext conftest.$ac_ext
15038fi
15039
15040
15041		CFLAGS="$xorg_testset_save_CFLAGS"
15042
15043		eval supported=\$$cacheid
15044		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15045$as_echo "$supported" >&6; }
15046		if test "$supported" = "yes" ; then
15047			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15048			found="yes"
15049		fi
15050	fi
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066xorg_testset_save_CFLAGS="$CFLAGS"
15067
15068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15071$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15072if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15073  $as_echo_n "(cached) " >&6
15074else
15075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076/* end confdefs.h.  */
15077int i;
15078_ACEOF
15079if ac_fn_c_try_compile "$LINENO"; then :
15080  xorg_cv_cc_flag_unknown_warning_option=yes
15081else
15082  xorg_cv_cc_flag_unknown_warning_option=no
15083fi
15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085fi
15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15087$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15088	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15089	CFLAGS="$xorg_testset_save_CFLAGS"
15090fi
15091
15092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15093	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15094		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15095	fi
15096	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15097	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15098$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15099if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15100  $as_echo_n "(cached) " >&6
15101else
15102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103/* end confdefs.h.  */
15104int i;
15105_ACEOF
15106if ac_fn_c_try_compile "$LINENO"; then :
15107  xorg_cv_cc_flag_unused_command_line_argument=yes
15108else
15109  xorg_cv_cc_flag_unused_command_line_argument=no
15110fi
15111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112fi
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15114$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15115	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15116	CFLAGS="$xorg_testset_save_CFLAGS"
15117fi
15118
15119found="no"
15120
15121	if test $found = "no" ; then
15122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15124		fi
15125
15126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15128		fi
15129
15130		CFLAGS="$CFLAGS -Werror=main"
15131
15132		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15133$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15134		cacheid=xorg_cv_cc_flag__Werror_main
15135		if eval \${$cacheid+:} false; then :
15136  $as_echo_n "(cached) " >&6
15137else
15138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139/* end confdefs.h.  */
15140int i;
15141int
15142main ()
15143{
15144
15145  ;
15146  return 0;
15147}
15148_ACEOF
15149if ac_fn_c_try_link "$LINENO"; then :
15150  eval $cacheid=yes
15151else
15152  eval $cacheid=no
15153fi
15154rm -f core conftest.err conftest.$ac_objext \
15155    conftest$ac_exeext conftest.$ac_ext
15156fi
15157
15158
15159		CFLAGS="$xorg_testset_save_CFLAGS"
15160
15161		eval supported=\$$cacheid
15162		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15163$as_echo "$supported" >&6; }
15164		if test "$supported" = "yes" ; then
15165			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15166			found="yes"
15167		fi
15168	fi
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184xorg_testset_save_CFLAGS="$CFLAGS"
15185
15186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15187	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15191  $as_echo_n "(cached) " >&6
15192else
15193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194/* end confdefs.h.  */
15195int i;
15196_ACEOF
15197if ac_fn_c_try_compile "$LINENO"; then :
15198  xorg_cv_cc_flag_unknown_warning_option=yes
15199else
15200  xorg_cv_cc_flag_unknown_warning_option=no
15201fi
15202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203fi
15204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15206	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15207	CFLAGS="$xorg_testset_save_CFLAGS"
15208fi
15209
15210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15211	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15212		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15213	fi
15214	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15218  $as_echo_n "(cached) " >&6
15219else
15220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h.  */
15222int i;
15223_ACEOF
15224if ac_fn_c_try_compile "$LINENO"; then :
15225  xorg_cv_cc_flag_unused_command_line_argument=yes
15226else
15227  xorg_cv_cc_flag_unused_command_line_argument=no
15228fi
15229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230fi
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15234	CFLAGS="$xorg_testset_save_CFLAGS"
15235fi
15236
15237found="no"
15238
15239	if test $found = "no" ; then
15240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15242		fi
15243
15244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15246		fi
15247
15248		CFLAGS="$CFLAGS -Werror=missing-braces"
15249
15250		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15251$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15252		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15253		if eval \${$cacheid+:} false; then :
15254  $as_echo_n "(cached) " >&6
15255else
15256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h.  */
15258int i;
15259int
15260main ()
15261{
15262
15263  ;
15264  return 0;
15265}
15266_ACEOF
15267if ac_fn_c_try_link "$LINENO"; then :
15268  eval $cacheid=yes
15269else
15270  eval $cacheid=no
15271fi
15272rm -f core conftest.err conftest.$ac_objext \
15273    conftest$ac_exeext conftest.$ac_ext
15274fi
15275
15276
15277		CFLAGS="$xorg_testset_save_CFLAGS"
15278
15279		eval supported=\$$cacheid
15280		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15281$as_echo "$supported" >&6; }
15282		if test "$supported" = "yes" ; then
15283			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15284			found="yes"
15285		fi
15286	fi
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302xorg_testset_save_CFLAGS="$CFLAGS"
15303
15304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15309  $as_echo_n "(cached) " >&6
15310else
15311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312/* end confdefs.h.  */
15313int i;
15314_ACEOF
15315if ac_fn_c_try_compile "$LINENO"; then :
15316  xorg_cv_cc_flag_unknown_warning_option=yes
15317else
15318  xorg_cv_cc_flag_unknown_warning_option=no
15319fi
15320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321fi
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15325	CFLAGS="$xorg_testset_save_CFLAGS"
15326fi
15327
15328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15331	fi
15332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15336  $as_echo_n "(cached) " >&6
15337else
15338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339/* end confdefs.h.  */
15340int i;
15341_ACEOF
15342if ac_fn_c_try_compile "$LINENO"; then :
15343  xorg_cv_cc_flag_unused_command_line_argument=yes
15344else
15345  xorg_cv_cc_flag_unused_command_line_argument=no
15346fi
15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348fi
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15351	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15352	CFLAGS="$xorg_testset_save_CFLAGS"
15353fi
15354
15355found="no"
15356
15357	if test $found = "no" ; then
15358		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15359			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15360		fi
15361
15362		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15363			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15364		fi
15365
15366		CFLAGS="$CFLAGS -Werror=sequence-point"
15367
15368		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15369$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15370		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15371		if eval \${$cacheid+:} false; then :
15372  $as_echo_n "(cached) " >&6
15373else
15374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375/* end confdefs.h.  */
15376int i;
15377int
15378main ()
15379{
15380
15381  ;
15382  return 0;
15383}
15384_ACEOF
15385if ac_fn_c_try_link "$LINENO"; then :
15386  eval $cacheid=yes
15387else
15388  eval $cacheid=no
15389fi
15390rm -f core conftest.err conftest.$ac_objext \
15391    conftest$ac_exeext conftest.$ac_ext
15392fi
15393
15394
15395		CFLAGS="$xorg_testset_save_CFLAGS"
15396
15397		eval supported=\$$cacheid
15398		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15399$as_echo "$supported" >&6; }
15400		if test "$supported" = "yes" ; then
15401			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15402			found="yes"
15403		fi
15404	fi
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420xorg_testset_save_CFLAGS="$CFLAGS"
15421
15422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15425$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15426if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15427  $as_echo_n "(cached) " >&6
15428else
15429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430/* end confdefs.h.  */
15431int i;
15432_ACEOF
15433if ac_fn_c_try_compile "$LINENO"; then :
15434  xorg_cv_cc_flag_unknown_warning_option=yes
15435else
15436  xorg_cv_cc_flag_unknown_warning_option=no
15437fi
15438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439fi
15440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15441$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15443	CFLAGS="$xorg_testset_save_CFLAGS"
15444fi
15445
15446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15449	fi
15450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15452$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15453if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15454  $as_echo_n "(cached) " >&6
15455else
15456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457/* end confdefs.h.  */
15458int i;
15459_ACEOF
15460if ac_fn_c_try_compile "$LINENO"; then :
15461  xorg_cv_cc_flag_unused_command_line_argument=yes
15462else
15463  xorg_cv_cc_flag_unused_command_line_argument=no
15464fi
15465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15466fi
15467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15468$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15469	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15470	CFLAGS="$xorg_testset_save_CFLAGS"
15471fi
15472
15473found="no"
15474
15475	if test $found = "no" ; then
15476		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15477			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15478		fi
15479
15480		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15481			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15482		fi
15483
15484		CFLAGS="$CFLAGS -Werror=return-type"
15485
15486		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15487$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15488		cacheid=xorg_cv_cc_flag__Werror_return_type
15489		if eval \${$cacheid+:} false; then :
15490  $as_echo_n "(cached) " >&6
15491else
15492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493/* end confdefs.h.  */
15494int i;
15495int
15496main ()
15497{
15498
15499  ;
15500  return 0;
15501}
15502_ACEOF
15503if ac_fn_c_try_link "$LINENO"; then :
15504  eval $cacheid=yes
15505else
15506  eval $cacheid=no
15507fi
15508rm -f core conftest.err conftest.$ac_objext \
15509    conftest$ac_exeext conftest.$ac_ext
15510fi
15511
15512
15513		CFLAGS="$xorg_testset_save_CFLAGS"
15514
15515		eval supported=\$$cacheid
15516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15517$as_echo "$supported" >&6; }
15518		if test "$supported" = "yes" ; then
15519			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15520			found="yes"
15521		fi
15522	fi
15523
15524	if test $found = "no" ; then
15525		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15527		fi
15528
15529		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15531		fi
15532
15533		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15534
15535		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15536$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15537		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15538		if eval \${$cacheid+:} false; then :
15539  $as_echo_n "(cached) " >&6
15540else
15541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542/* end confdefs.h.  */
15543int i;
15544int
15545main ()
15546{
15547
15548  ;
15549  return 0;
15550}
15551_ACEOF
15552if ac_fn_c_try_link "$LINENO"; then :
15553  eval $cacheid=yes
15554else
15555  eval $cacheid=no
15556fi
15557rm -f core conftest.err conftest.$ac_objext \
15558    conftest$ac_exeext conftest.$ac_ext
15559fi
15560
15561
15562		CFLAGS="$xorg_testset_save_CFLAGS"
15563
15564		eval supported=\$$cacheid
15565		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15566$as_echo "$supported" >&6; }
15567		if test "$supported" = "yes" ; then
15568			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15569			found="yes"
15570		fi
15571	fi
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587xorg_testset_save_CFLAGS="$CFLAGS"
15588
15589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15594  $as_echo_n "(cached) " >&6
15595else
15596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597/* end confdefs.h.  */
15598int i;
15599_ACEOF
15600if ac_fn_c_try_compile "$LINENO"; then :
15601  xorg_cv_cc_flag_unknown_warning_option=yes
15602else
15603  xorg_cv_cc_flag_unknown_warning_option=no
15604fi
15605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15606fi
15607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15610	CFLAGS="$xorg_testset_save_CFLAGS"
15611fi
15612
15613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15616	fi
15617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15621  $as_echo_n "(cached) " >&6
15622else
15623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624/* end confdefs.h.  */
15625int i;
15626_ACEOF
15627if ac_fn_c_try_compile "$LINENO"; then :
15628  xorg_cv_cc_flag_unused_command_line_argument=yes
15629else
15630  xorg_cv_cc_flag_unused_command_line_argument=no
15631fi
15632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15633fi
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15637	CFLAGS="$xorg_testset_save_CFLAGS"
15638fi
15639
15640found="no"
15641
15642	if test $found = "no" ; then
15643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15645		fi
15646
15647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15649		fi
15650
15651		CFLAGS="$CFLAGS -Werror=trigraphs"
15652
15653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15654$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15655		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15656		if eval \${$cacheid+:} false; then :
15657  $as_echo_n "(cached) " >&6
15658else
15659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660/* end confdefs.h.  */
15661int i;
15662int
15663main ()
15664{
15665
15666  ;
15667  return 0;
15668}
15669_ACEOF
15670if ac_fn_c_try_link "$LINENO"; then :
15671  eval $cacheid=yes
15672else
15673  eval $cacheid=no
15674fi
15675rm -f core conftest.err conftest.$ac_objext \
15676    conftest$ac_exeext conftest.$ac_ext
15677fi
15678
15679
15680		CFLAGS="$xorg_testset_save_CFLAGS"
15681
15682		eval supported=\$$cacheid
15683		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15684$as_echo "$supported" >&6; }
15685		if test "$supported" = "yes" ; then
15686			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15687			found="yes"
15688		fi
15689	fi
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705xorg_testset_save_CFLAGS="$CFLAGS"
15706
15707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15708	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15712  $as_echo_n "(cached) " >&6
15713else
15714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715/* end confdefs.h.  */
15716int i;
15717_ACEOF
15718if ac_fn_c_try_compile "$LINENO"; then :
15719  xorg_cv_cc_flag_unknown_warning_option=yes
15720else
15721  xorg_cv_cc_flag_unknown_warning_option=no
15722fi
15723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724fi
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15728	CFLAGS="$xorg_testset_save_CFLAGS"
15729fi
15730
15731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15734	fi
15735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15739  $as_echo_n "(cached) " >&6
15740else
15741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742/* end confdefs.h.  */
15743int i;
15744_ACEOF
15745if ac_fn_c_try_compile "$LINENO"; then :
15746  xorg_cv_cc_flag_unused_command_line_argument=yes
15747else
15748  xorg_cv_cc_flag_unused_command_line_argument=no
15749fi
15750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751fi
15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15754	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15755	CFLAGS="$xorg_testset_save_CFLAGS"
15756fi
15757
15758found="no"
15759
15760	if test $found = "no" ; then
15761		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15762			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15763		fi
15764
15765		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15766			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15767		fi
15768
15769		CFLAGS="$CFLAGS -Werror=array-bounds"
15770
15771		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15772$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15773		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15774		if eval \${$cacheid+:} false; then :
15775  $as_echo_n "(cached) " >&6
15776else
15777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778/* end confdefs.h.  */
15779int i;
15780int
15781main ()
15782{
15783
15784  ;
15785  return 0;
15786}
15787_ACEOF
15788if ac_fn_c_try_link "$LINENO"; then :
15789  eval $cacheid=yes
15790else
15791  eval $cacheid=no
15792fi
15793rm -f core conftest.err conftest.$ac_objext \
15794    conftest$ac_exeext conftest.$ac_ext
15795fi
15796
15797
15798		CFLAGS="$xorg_testset_save_CFLAGS"
15799
15800		eval supported=\$$cacheid
15801		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15802$as_echo "$supported" >&6; }
15803		if test "$supported" = "yes" ; then
15804			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15805			found="yes"
15806		fi
15807	fi
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823xorg_testset_save_CFLAGS="$CFLAGS"
15824
15825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15830  $as_echo_n "(cached) " >&6
15831else
15832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833/* end confdefs.h.  */
15834int i;
15835_ACEOF
15836if ac_fn_c_try_compile "$LINENO"; then :
15837  xorg_cv_cc_flag_unknown_warning_option=yes
15838else
15839  xorg_cv_cc_flag_unknown_warning_option=no
15840fi
15841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842fi
15843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15846	CFLAGS="$xorg_testset_save_CFLAGS"
15847fi
15848
15849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15852	fi
15853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15857  $as_echo_n "(cached) " >&6
15858else
15859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860/* end confdefs.h.  */
15861int i;
15862_ACEOF
15863if ac_fn_c_try_compile "$LINENO"; then :
15864  xorg_cv_cc_flag_unused_command_line_argument=yes
15865else
15866  xorg_cv_cc_flag_unused_command_line_argument=no
15867fi
15868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869fi
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15873	CFLAGS="$xorg_testset_save_CFLAGS"
15874fi
15875
15876found="no"
15877
15878	if test $found = "no" ; then
15879		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15881		fi
15882
15883		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15885		fi
15886
15887		CFLAGS="$CFLAGS -Werror=write-strings"
15888
15889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15890$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15891		cacheid=xorg_cv_cc_flag__Werror_write_strings
15892		if eval \${$cacheid+:} false; then :
15893  $as_echo_n "(cached) " >&6
15894else
15895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896/* end confdefs.h.  */
15897int i;
15898int
15899main ()
15900{
15901
15902  ;
15903  return 0;
15904}
15905_ACEOF
15906if ac_fn_c_try_link "$LINENO"; then :
15907  eval $cacheid=yes
15908else
15909  eval $cacheid=no
15910fi
15911rm -f core conftest.err conftest.$ac_objext \
15912    conftest$ac_exeext conftest.$ac_ext
15913fi
15914
15915
15916		CFLAGS="$xorg_testset_save_CFLAGS"
15917
15918		eval supported=\$$cacheid
15919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15920$as_echo "$supported" >&6; }
15921		if test "$supported" = "yes" ; then
15922			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15923			found="yes"
15924		fi
15925	fi
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941xorg_testset_save_CFLAGS="$CFLAGS"
15942
15943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15948  $as_echo_n "(cached) " >&6
15949else
15950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951/* end confdefs.h.  */
15952int i;
15953_ACEOF
15954if ac_fn_c_try_compile "$LINENO"; then :
15955  xorg_cv_cc_flag_unknown_warning_option=yes
15956else
15957  xorg_cv_cc_flag_unknown_warning_option=no
15958fi
15959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960fi
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15964	CFLAGS="$xorg_testset_save_CFLAGS"
15965fi
15966
15967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15970	fi
15971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15975  $as_echo_n "(cached) " >&6
15976else
15977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978/* end confdefs.h.  */
15979int i;
15980_ACEOF
15981if ac_fn_c_try_compile "$LINENO"; then :
15982  xorg_cv_cc_flag_unused_command_line_argument=yes
15983else
15984  xorg_cv_cc_flag_unused_command_line_argument=no
15985fi
15986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987fi
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15991	CFLAGS="$xorg_testset_save_CFLAGS"
15992fi
15993
15994found="no"
15995
15996	if test $found = "no" ; then
15997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15999		fi
16000
16001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16003		fi
16004
16005		CFLAGS="$CFLAGS -Werror=address"
16006
16007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16008$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16009		cacheid=xorg_cv_cc_flag__Werror_address
16010		if eval \${$cacheid+:} false; then :
16011  $as_echo_n "(cached) " >&6
16012else
16013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014/* end confdefs.h.  */
16015int i;
16016int
16017main ()
16018{
16019
16020  ;
16021  return 0;
16022}
16023_ACEOF
16024if ac_fn_c_try_link "$LINENO"; then :
16025  eval $cacheid=yes
16026else
16027  eval $cacheid=no
16028fi
16029rm -f core conftest.err conftest.$ac_objext \
16030    conftest$ac_exeext conftest.$ac_ext
16031fi
16032
16033
16034		CFLAGS="$xorg_testset_save_CFLAGS"
16035
16036		eval supported=\$$cacheid
16037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16038$as_echo "$supported" >&6; }
16039		if test "$supported" = "yes" ; then
16040			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16041			found="yes"
16042		fi
16043	fi
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059xorg_testset_save_CFLAGS="$CFLAGS"
16060
16061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16066  $as_echo_n "(cached) " >&6
16067else
16068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069/* end confdefs.h.  */
16070int i;
16071_ACEOF
16072if ac_fn_c_try_compile "$LINENO"; then :
16073  xorg_cv_cc_flag_unknown_warning_option=yes
16074else
16075  xorg_cv_cc_flag_unknown_warning_option=no
16076fi
16077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16078fi
16079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16081	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16082	CFLAGS="$xorg_testset_save_CFLAGS"
16083fi
16084
16085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16086	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16087		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16088	fi
16089	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16093  $as_echo_n "(cached) " >&6
16094else
16095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096/* end confdefs.h.  */
16097int i;
16098_ACEOF
16099if ac_fn_c_try_compile "$LINENO"; then :
16100  xorg_cv_cc_flag_unused_command_line_argument=yes
16101else
16102  xorg_cv_cc_flag_unused_command_line_argument=no
16103fi
16104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105fi
16106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16109	CFLAGS="$xorg_testset_save_CFLAGS"
16110fi
16111
16112found="no"
16113
16114	if test $found = "no" ; then
16115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16117		fi
16118
16119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16121		fi
16122
16123		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16124
16125		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16126$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16127		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16128		if eval \${$cacheid+:} false; then :
16129  $as_echo_n "(cached) " >&6
16130else
16131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132/* end confdefs.h.  */
16133int i;
16134int
16135main ()
16136{
16137
16138  ;
16139  return 0;
16140}
16141_ACEOF
16142if ac_fn_c_try_link "$LINENO"; then :
16143  eval $cacheid=yes
16144else
16145  eval $cacheid=no
16146fi
16147rm -f core conftest.err conftest.$ac_objext \
16148    conftest$ac_exeext conftest.$ac_ext
16149fi
16150
16151
16152		CFLAGS="$xorg_testset_save_CFLAGS"
16153
16154		eval supported=\$$cacheid
16155		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16156$as_echo "$supported" >&6; }
16157		if test "$supported" = "yes" ; then
16158			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16159			found="yes"
16160		fi
16161	fi
16162
16163	if test $found = "no" ; then
16164		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16166		fi
16167
16168		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16170		fi
16171
16172		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16173
16174		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16175$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16176		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16177		if eval \${$cacheid+:} false; then :
16178  $as_echo_n "(cached) " >&6
16179else
16180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h.  */
16182int i;
16183int
16184main ()
16185{
16186
16187  ;
16188  return 0;
16189}
16190_ACEOF
16191if ac_fn_c_try_link "$LINENO"; then :
16192  eval $cacheid=yes
16193else
16194  eval $cacheid=no
16195fi
16196rm -f core conftest.err conftest.$ac_objext \
16197    conftest$ac_exeext conftest.$ac_ext
16198fi
16199
16200
16201		CFLAGS="$xorg_testset_save_CFLAGS"
16202
16203		eval supported=\$$cacheid
16204		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16205$as_echo "$supported" >&6; }
16206		if test "$supported" = "yes" ; then
16207			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16208			found="yes"
16209		fi
16210	fi
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226xorg_testset_save_CFLAGS="$CFLAGS"
16227
16228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16229	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16231$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16232if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16233  $as_echo_n "(cached) " >&6
16234else
16235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16236/* end confdefs.h.  */
16237int i;
16238_ACEOF
16239if ac_fn_c_try_compile "$LINENO"; then :
16240  xorg_cv_cc_flag_unknown_warning_option=yes
16241else
16242  xorg_cv_cc_flag_unknown_warning_option=no
16243fi
16244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245fi
16246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16247$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16248	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16249	CFLAGS="$xorg_testset_save_CFLAGS"
16250fi
16251
16252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16253	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16254		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16255	fi
16256	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16258$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16259if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16260  $as_echo_n "(cached) " >&6
16261else
16262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263/* end confdefs.h.  */
16264int i;
16265_ACEOF
16266if ac_fn_c_try_compile "$LINENO"; then :
16267  xorg_cv_cc_flag_unused_command_line_argument=yes
16268else
16269  xorg_cv_cc_flag_unused_command_line_argument=no
16270fi
16271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272fi
16273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16274$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16276	CFLAGS="$xorg_testset_save_CFLAGS"
16277fi
16278
16279found="no"
16280
16281	if test $found = "no" ; then
16282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16284		fi
16285
16286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16288		fi
16289
16290		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16291
16292		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16293$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16294		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16295		if eval \${$cacheid+:} false; then :
16296  $as_echo_n "(cached) " >&6
16297else
16298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299/* end confdefs.h.  */
16300int i;
16301int
16302main ()
16303{
16304
16305  ;
16306  return 0;
16307}
16308_ACEOF
16309if ac_fn_c_try_link "$LINENO"; then :
16310  eval $cacheid=yes
16311else
16312  eval $cacheid=no
16313fi
16314rm -f core conftest.err conftest.$ac_objext \
16315    conftest$ac_exeext conftest.$ac_ext
16316fi
16317
16318
16319		CFLAGS="$xorg_testset_save_CFLAGS"
16320
16321		eval supported=\$$cacheid
16322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16323$as_echo "$supported" >&6; }
16324		if test "$supported" = "yes" ; then
16325			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16326			found="yes"
16327		fi
16328	fi
16329
16330 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16331else
16332{ $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
16333$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;}
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347xorg_testset_save_CFLAGS="$CFLAGS"
16348
16349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16350	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16352$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16353if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16354  $as_echo_n "(cached) " >&6
16355else
16356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357/* end confdefs.h.  */
16358int i;
16359_ACEOF
16360if ac_fn_c_try_compile "$LINENO"; then :
16361  xorg_cv_cc_flag_unknown_warning_option=yes
16362else
16363  xorg_cv_cc_flag_unknown_warning_option=no
16364fi
16365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366fi
16367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16368$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16370	CFLAGS="$xorg_testset_save_CFLAGS"
16371fi
16372
16373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16376	fi
16377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16379$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16380if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16381  $as_echo_n "(cached) " >&6
16382else
16383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384/* end confdefs.h.  */
16385int i;
16386_ACEOF
16387if ac_fn_c_try_compile "$LINENO"; then :
16388  xorg_cv_cc_flag_unused_command_line_argument=yes
16389else
16390  xorg_cv_cc_flag_unused_command_line_argument=no
16391fi
16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393fi
16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16395$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16397	CFLAGS="$xorg_testset_save_CFLAGS"
16398fi
16399
16400found="no"
16401
16402	if test $found = "no" ; then
16403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16405		fi
16406
16407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16409		fi
16410
16411		CFLAGS="$CFLAGS -Wimplicit"
16412
16413		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16414$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16415		cacheid=xorg_cv_cc_flag__Wimplicit
16416		if eval \${$cacheid+:} false; then :
16417  $as_echo_n "(cached) " >&6
16418else
16419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420/* end confdefs.h.  */
16421int i;
16422int
16423main ()
16424{
16425
16426  ;
16427  return 0;
16428}
16429_ACEOF
16430if ac_fn_c_try_link "$LINENO"; then :
16431  eval $cacheid=yes
16432else
16433  eval $cacheid=no
16434fi
16435rm -f core conftest.err conftest.$ac_objext \
16436    conftest$ac_exeext conftest.$ac_ext
16437fi
16438
16439
16440		CFLAGS="$xorg_testset_save_CFLAGS"
16441
16442		eval supported=\$$cacheid
16443		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16444$as_echo "$supported" >&6; }
16445		if test "$supported" = "yes" ; then
16446			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16447			found="yes"
16448		fi
16449	fi
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465xorg_testset_save_CFLAGS="$CFLAGS"
16466
16467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16472  $as_echo_n "(cached) " >&6
16473else
16474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475/* end confdefs.h.  */
16476int i;
16477_ACEOF
16478if ac_fn_c_try_compile "$LINENO"; then :
16479  xorg_cv_cc_flag_unknown_warning_option=yes
16480else
16481  xorg_cv_cc_flag_unknown_warning_option=no
16482fi
16483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484fi
16485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16487	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16488	CFLAGS="$xorg_testset_save_CFLAGS"
16489fi
16490
16491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16492	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16493		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16494	fi
16495	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16499  $as_echo_n "(cached) " >&6
16500else
16501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502/* end confdefs.h.  */
16503int i;
16504_ACEOF
16505if ac_fn_c_try_compile "$LINENO"; then :
16506  xorg_cv_cc_flag_unused_command_line_argument=yes
16507else
16508  xorg_cv_cc_flag_unused_command_line_argument=no
16509fi
16510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511fi
16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16515	CFLAGS="$xorg_testset_save_CFLAGS"
16516fi
16517
16518found="no"
16519
16520	if test $found = "no" ; then
16521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16523		fi
16524
16525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16527		fi
16528
16529		CFLAGS="$CFLAGS -Wnonnull"
16530
16531		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16532$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16533		cacheid=xorg_cv_cc_flag__Wnonnull
16534		if eval \${$cacheid+:} false; then :
16535  $as_echo_n "(cached) " >&6
16536else
16537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538/* end confdefs.h.  */
16539int i;
16540int
16541main ()
16542{
16543
16544  ;
16545  return 0;
16546}
16547_ACEOF
16548if ac_fn_c_try_link "$LINENO"; then :
16549  eval $cacheid=yes
16550else
16551  eval $cacheid=no
16552fi
16553rm -f core conftest.err conftest.$ac_objext \
16554    conftest$ac_exeext conftest.$ac_ext
16555fi
16556
16557
16558		CFLAGS="$xorg_testset_save_CFLAGS"
16559
16560		eval supported=\$$cacheid
16561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16562$as_echo "$supported" >&6; }
16563		if test "$supported" = "yes" ; then
16564			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16565			found="yes"
16566		fi
16567	fi
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583xorg_testset_save_CFLAGS="$CFLAGS"
16584
16585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16588$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16589if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16590  $as_echo_n "(cached) " >&6
16591else
16592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593/* end confdefs.h.  */
16594int i;
16595_ACEOF
16596if ac_fn_c_try_compile "$LINENO"; then :
16597  xorg_cv_cc_flag_unknown_warning_option=yes
16598else
16599  xorg_cv_cc_flag_unknown_warning_option=no
16600fi
16601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16602fi
16603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16604$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16606	CFLAGS="$xorg_testset_save_CFLAGS"
16607fi
16608
16609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16612	fi
16613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16615$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16616if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16617  $as_echo_n "(cached) " >&6
16618else
16619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620/* end confdefs.h.  */
16621int i;
16622_ACEOF
16623if ac_fn_c_try_compile "$LINENO"; then :
16624  xorg_cv_cc_flag_unused_command_line_argument=yes
16625else
16626  xorg_cv_cc_flag_unused_command_line_argument=no
16627fi
16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629fi
16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16631$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16633	CFLAGS="$xorg_testset_save_CFLAGS"
16634fi
16635
16636found="no"
16637
16638	if test $found = "no" ; then
16639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16641		fi
16642
16643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16645		fi
16646
16647		CFLAGS="$CFLAGS -Winit-self"
16648
16649		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16650$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16651		cacheid=xorg_cv_cc_flag__Winit_self
16652		if eval \${$cacheid+:} false; then :
16653  $as_echo_n "(cached) " >&6
16654else
16655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656/* end confdefs.h.  */
16657int i;
16658int
16659main ()
16660{
16661
16662  ;
16663  return 0;
16664}
16665_ACEOF
16666if ac_fn_c_try_link "$LINENO"; then :
16667  eval $cacheid=yes
16668else
16669  eval $cacheid=no
16670fi
16671rm -f core conftest.err conftest.$ac_objext \
16672    conftest$ac_exeext conftest.$ac_ext
16673fi
16674
16675
16676		CFLAGS="$xorg_testset_save_CFLAGS"
16677
16678		eval supported=\$$cacheid
16679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16680$as_echo "$supported" >&6; }
16681		if test "$supported" = "yes" ; then
16682			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16683			found="yes"
16684		fi
16685	fi
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701xorg_testset_save_CFLAGS="$CFLAGS"
16702
16703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16704	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16706$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16707if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16708  $as_echo_n "(cached) " >&6
16709else
16710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711/* end confdefs.h.  */
16712int i;
16713_ACEOF
16714if ac_fn_c_try_compile "$LINENO"; then :
16715  xorg_cv_cc_flag_unknown_warning_option=yes
16716else
16717  xorg_cv_cc_flag_unknown_warning_option=no
16718fi
16719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720fi
16721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16722$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16724	CFLAGS="$xorg_testset_save_CFLAGS"
16725fi
16726
16727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16730	fi
16731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16733$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16734if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16735  $as_echo_n "(cached) " >&6
16736else
16737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738/* end confdefs.h.  */
16739int i;
16740_ACEOF
16741if ac_fn_c_try_compile "$LINENO"; then :
16742  xorg_cv_cc_flag_unused_command_line_argument=yes
16743else
16744  xorg_cv_cc_flag_unused_command_line_argument=no
16745fi
16746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747fi
16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16749$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16751	CFLAGS="$xorg_testset_save_CFLAGS"
16752fi
16753
16754found="no"
16755
16756	if test $found = "no" ; then
16757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16759		fi
16760
16761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16763		fi
16764
16765		CFLAGS="$CFLAGS -Wmain"
16766
16767		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16768$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16769		cacheid=xorg_cv_cc_flag__Wmain
16770		if eval \${$cacheid+:} false; then :
16771  $as_echo_n "(cached) " >&6
16772else
16773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774/* end confdefs.h.  */
16775int i;
16776int
16777main ()
16778{
16779
16780  ;
16781  return 0;
16782}
16783_ACEOF
16784if ac_fn_c_try_link "$LINENO"; then :
16785  eval $cacheid=yes
16786else
16787  eval $cacheid=no
16788fi
16789rm -f core conftest.err conftest.$ac_objext \
16790    conftest$ac_exeext conftest.$ac_ext
16791fi
16792
16793
16794		CFLAGS="$xorg_testset_save_CFLAGS"
16795
16796		eval supported=\$$cacheid
16797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16798$as_echo "$supported" >&6; }
16799		if test "$supported" = "yes" ; then
16800			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16801			found="yes"
16802		fi
16803	fi
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819xorg_testset_save_CFLAGS="$CFLAGS"
16820
16821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16822	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16826  $as_echo_n "(cached) " >&6
16827else
16828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829/* end confdefs.h.  */
16830int i;
16831_ACEOF
16832if ac_fn_c_try_compile "$LINENO"; then :
16833  xorg_cv_cc_flag_unknown_warning_option=yes
16834else
16835  xorg_cv_cc_flag_unknown_warning_option=no
16836fi
16837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838fi
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16841	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16842	CFLAGS="$xorg_testset_save_CFLAGS"
16843fi
16844
16845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16846	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16847		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16848	fi
16849	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16853  $as_echo_n "(cached) " >&6
16854else
16855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856/* end confdefs.h.  */
16857int i;
16858_ACEOF
16859if ac_fn_c_try_compile "$LINENO"; then :
16860  xorg_cv_cc_flag_unused_command_line_argument=yes
16861else
16862  xorg_cv_cc_flag_unused_command_line_argument=no
16863fi
16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865fi
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16868	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16869	CFLAGS="$xorg_testset_save_CFLAGS"
16870fi
16871
16872found="no"
16873
16874	if test $found = "no" ; then
16875		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16877		fi
16878
16879		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16881		fi
16882
16883		CFLAGS="$CFLAGS -Wmissing-braces"
16884
16885		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16886$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16887		cacheid=xorg_cv_cc_flag__Wmissing_braces
16888		if eval \${$cacheid+:} false; then :
16889  $as_echo_n "(cached) " >&6
16890else
16891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892/* end confdefs.h.  */
16893int i;
16894int
16895main ()
16896{
16897
16898  ;
16899  return 0;
16900}
16901_ACEOF
16902if ac_fn_c_try_link "$LINENO"; then :
16903  eval $cacheid=yes
16904else
16905  eval $cacheid=no
16906fi
16907rm -f core conftest.err conftest.$ac_objext \
16908    conftest$ac_exeext conftest.$ac_ext
16909fi
16910
16911
16912		CFLAGS="$xorg_testset_save_CFLAGS"
16913
16914		eval supported=\$$cacheid
16915		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16916$as_echo "$supported" >&6; }
16917		if test "$supported" = "yes" ; then
16918			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16919			found="yes"
16920		fi
16921	fi
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937xorg_testset_save_CFLAGS="$CFLAGS"
16938
16939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16944  $as_echo_n "(cached) " >&6
16945else
16946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947/* end confdefs.h.  */
16948int i;
16949_ACEOF
16950if ac_fn_c_try_compile "$LINENO"; then :
16951  xorg_cv_cc_flag_unknown_warning_option=yes
16952else
16953  xorg_cv_cc_flag_unknown_warning_option=no
16954fi
16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956fi
16957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16959	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16960	CFLAGS="$xorg_testset_save_CFLAGS"
16961fi
16962
16963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16964	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16965		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16966	fi
16967	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16971  $as_echo_n "(cached) " >&6
16972else
16973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h.  */
16975int i;
16976_ACEOF
16977if ac_fn_c_try_compile "$LINENO"; then :
16978  xorg_cv_cc_flag_unused_command_line_argument=yes
16979else
16980  xorg_cv_cc_flag_unused_command_line_argument=no
16981fi
16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983fi
16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16987	CFLAGS="$xorg_testset_save_CFLAGS"
16988fi
16989
16990found="no"
16991
16992	if test $found = "no" ; then
16993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16995		fi
16996
16997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16999		fi
17000
17001		CFLAGS="$CFLAGS -Wsequence-point"
17002
17003		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17004$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17005		cacheid=xorg_cv_cc_flag__Wsequence_point
17006		if eval \${$cacheid+:} false; then :
17007  $as_echo_n "(cached) " >&6
17008else
17009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010/* end confdefs.h.  */
17011int i;
17012int
17013main ()
17014{
17015
17016  ;
17017  return 0;
17018}
17019_ACEOF
17020if ac_fn_c_try_link "$LINENO"; then :
17021  eval $cacheid=yes
17022else
17023  eval $cacheid=no
17024fi
17025rm -f core conftest.err conftest.$ac_objext \
17026    conftest$ac_exeext conftest.$ac_ext
17027fi
17028
17029
17030		CFLAGS="$xorg_testset_save_CFLAGS"
17031
17032		eval supported=\$$cacheid
17033		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17034$as_echo "$supported" >&6; }
17035		if test "$supported" = "yes" ; then
17036			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17037			found="yes"
17038		fi
17039	fi
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055xorg_testset_save_CFLAGS="$CFLAGS"
17056
17057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17062  $as_echo_n "(cached) " >&6
17063else
17064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065/* end confdefs.h.  */
17066int i;
17067_ACEOF
17068if ac_fn_c_try_compile "$LINENO"; then :
17069  xorg_cv_cc_flag_unknown_warning_option=yes
17070else
17071  xorg_cv_cc_flag_unknown_warning_option=no
17072fi
17073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074fi
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17077	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17078	CFLAGS="$xorg_testset_save_CFLAGS"
17079fi
17080
17081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17082	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17083		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17084	fi
17085	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17089  $as_echo_n "(cached) " >&6
17090else
17091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092/* end confdefs.h.  */
17093int i;
17094_ACEOF
17095if ac_fn_c_try_compile "$LINENO"; then :
17096  xorg_cv_cc_flag_unused_command_line_argument=yes
17097else
17098  xorg_cv_cc_flag_unused_command_line_argument=no
17099fi
17100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101fi
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17104	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17105	CFLAGS="$xorg_testset_save_CFLAGS"
17106fi
17107
17108found="no"
17109
17110	if test $found = "no" ; then
17111		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17112			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17113		fi
17114
17115		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17116			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17117		fi
17118
17119		CFLAGS="$CFLAGS -Wreturn-type"
17120
17121		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17122$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17123		cacheid=xorg_cv_cc_flag__Wreturn_type
17124		if eval \${$cacheid+:} false; then :
17125  $as_echo_n "(cached) " >&6
17126else
17127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128/* end confdefs.h.  */
17129int i;
17130int
17131main ()
17132{
17133
17134  ;
17135  return 0;
17136}
17137_ACEOF
17138if ac_fn_c_try_link "$LINENO"; then :
17139  eval $cacheid=yes
17140else
17141  eval $cacheid=no
17142fi
17143rm -f core conftest.err conftest.$ac_objext \
17144    conftest$ac_exeext conftest.$ac_ext
17145fi
17146
17147
17148		CFLAGS="$xorg_testset_save_CFLAGS"
17149
17150		eval supported=\$$cacheid
17151		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17152$as_echo "$supported" >&6; }
17153		if test "$supported" = "yes" ; then
17154			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17155			found="yes"
17156		fi
17157	fi
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173xorg_testset_save_CFLAGS="$CFLAGS"
17174
17175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17180  $as_echo_n "(cached) " >&6
17181else
17182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183/* end confdefs.h.  */
17184int i;
17185_ACEOF
17186if ac_fn_c_try_compile "$LINENO"; then :
17187  xorg_cv_cc_flag_unknown_warning_option=yes
17188else
17189  xorg_cv_cc_flag_unknown_warning_option=no
17190fi
17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192fi
17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17196	CFLAGS="$xorg_testset_save_CFLAGS"
17197fi
17198
17199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17202	fi
17203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17207  $as_echo_n "(cached) " >&6
17208else
17209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210/* end confdefs.h.  */
17211int i;
17212_ACEOF
17213if ac_fn_c_try_compile "$LINENO"; then :
17214  xorg_cv_cc_flag_unused_command_line_argument=yes
17215else
17216  xorg_cv_cc_flag_unused_command_line_argument=no
17217fi
17218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219fi
17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17223	CFLAGS="$xorg_testset_save_CFLAGS"
17224fi
17225
17226found="no"
17227
17228	if test $found = "no" ; then
17229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17231		fi
17232
17233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17235		fi
17236
17237		CFLAGS="$CFLAGS -Wtrigraphs"
17238
17239		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17240$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17241		cacheid=xorg_cv_cc_flag__Wtrigraphs
17242		if eval \${$cacheid+:} false; then :
17243  $as_echo_n "(cached) " >&6
17244else
17245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246/* end confdefs.h.  */
17247int i;
17248int
17249main ()
17250{
17251
17252  ;
17253  return 0;
17254}
17255_ACEOF
17256if ac_fn_c_try_link "$LINENO"; then :
17257  eval $cacheid=yes
17258else
17259  eval $cacheid=no
17260fi
17261rm -f core conftest.err conftest.$ac_objext \
17262    conftest$ac_exeext conftest.$ac_ext
17263fi
17264
17265
17266		CFLAGS="$xorg_testset_save_CFLAGS"
17267
17268		eval supported=\$$cacheid
17269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17270$as_echo "$supported" >&6; }
17271		if test "$supported" = "yes" ; then
17272			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17273			found="yes"
17274		fi
17275	fi
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291xorg_testset_save_CFLAGS="$CFLAGS"
17292
17293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17298  $as_echo_n "(cached) " >&6
17299else
17300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301/* end confdefs.h.  */
17302int i;
17303_ACEOF
17304if ac_fn_c_try_compile "$LINENO"; then :
17305  xorg_cv_cc_flag_unknown_warning_option=yes
17306else
17307  xorg_cv_cc_flag_unknown_warning_option=no
17308fi
17309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310fi
17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17314	CFLAGS="$xorg_testset_save_CFLAGS"
17315fi
17316
17317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17320	fi
17321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17325  $as_echo_n "(cached) " >&6
17326else
17327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h.  */
17329int i;
17330_ACEOF
17331if ac_fn_c_try_compile "$LINENO"; then :
17332  xorg_cv_cc_flag_unused_command_line_argument=yes
17333else
17334  xorg_cv_cc_flag_unused_command_line_argument=no
17335fi
17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337fi
17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17341	CFLAGS="$xorg_testset_save_CFLAGS"
17342fi
17343
17344found="no"
17345
17346	if test $found = "no" ; then
17347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17349		fi
17350
17351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17353		fi
17354
17355		CFLAGS="$CFLAGS -Warray-bounds"
17356
17357		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17358$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17359		cacheid=xorg_cv_cc_flag__Warray_bounds
17360		if eval \${$cacheid+:} false; then :
17361  $as_echo_n "(cached) " >&6
17362else
17363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364/* end confdefs.h.  */
17365int i;
17366int
17367main ()
17368{
17369
17370  ;
17371  return 0;
17372}
17373_ACEOF
17374if ac_fn_c_try_link "$LINENO"; then :
17375  eval $cacheid=yes
17376else
17377  eval $cacheid=no
17378fi
17379rm -f core conftest.err conftest.$ac_objext \
17380    conftest$ac_exeext conftest.$ac_ext
17381fi
17382
17383
17384		CFLAGS="$xorg_testset_save_CFLAGS"
17385
17386		eval supported=\$$cacheid
17387		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17388$as_echo "$supported" >&6; }
17389		if test "$supported" = "yes" ; then
17390			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17391			found="yes"
17392		fi
17393	fi
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409xorg_testset_save_CFLAGS="$CFLAGS"
17410
17411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17416  $as_echo_n "(cached) " >&6
17417else
17418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419/* end confdefs.h.  */
17420int i;
17421_ACEOF
17422if ac_fn_c_try_compile "$LINENO"; then :
17423  xorg_cv_cc_flag_unknown_warning_option=yes
17424else
17425  xorg_cv_cc_flag_unknown_warning_option=no
17426fi
17427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428fi
17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17431	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17432	CFLAGS="$xorg_testset_save_CFLAGS"
17433fi
17434
17435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17436	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17437		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17438	fi
17439	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17443  $as_echo_n "(cached) " >&6
17444else
17445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446/* end confdefs.h.  */
17447int i;
17448_ACEOF
17449if ac_fn_c_try_compile "$LINENO"; then :
17450  xorg_cv_cc_flag_unused_command_line_argument=yes
17451else
17452  xorg_cv_cc_flag_unused_command_line_argument=no
17453fi
17454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455fi
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17459	CFLAGS="$xorg_testset_save_CFLAGS"
17460fi
17461
17462found="no"
17463
17464	if test $found = "no" ; then
17465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17467		fi
17468
17469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17471		fi
17472
17473		CFLAGS="$CFLAGS -Wwrite-strings"
17474
17475		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17476$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17477		cacheid=xorg_cv_cc_flag__Wwrite_strings
17478		if eval \${$cacheid+:} false; then :
17479  $as_echo_n "(cached) " >&6
17480else
17481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482/* end confdefs.h.  */
17483int i;
17484int
17485main ()
17486{
17487
17488  ;
17489  return 0;
17490}
17491_ACEOF
17492if ac_fn_c_try_link "$LINENO"; then :
17493  eval $cacheid=yes
17494else
17495  eval $cacheid=no
17496fi
17497rm -f core conftest.err conftest.$ac_objext \
17498    conftest$ac_exeext conftest.$ac_ext
17499fi
17500
17501
17502		CFLAGS="$xorg_testset_save_CFLAGS"
17503
17504		eval supported=\$$cacheid
17505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17506$as_echo "$supported" >&6; }
17507		if test "$supported" = "yes" ; then
17508			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17509			found="yes"
17510		fi
17511	fi
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527xorg_testset_save_CFLAGS="$CFLAGS"
17528
17529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17534  $as_echo_n "(cached) " >&6
17535else
17536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537/* end confdefs.h.  */
17538int i;
17539_ACEOF
17540if ac_fn_c_try_compile "$LINENO"; then :
17541  xorg_cv_cc_flag_unknown_warning_option=yes
17542else
17543  xorg_cv_cc_flag_unknown_warning_option=no
17544fi
17545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17546fi
17547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17550	CFLAGS="$xorg_testset_save_CFLAGS"
17551fi
17552
17553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17556	fi
17557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17561  $as_echo_n "(cached) " >&6
17562else
17563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564/* end confdefs.h.  */
17565int i;
17566_ACEOF
17567if ac_fn_c_try_compile "$LINENO"; then :
17568  xorg_cv_cc_flag_unused_command_line_argument=yes
17569else
17570  xorg_cv_cc_flag_unused_command_line_argument=no
17571fi
17572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17573fi
17574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17577	CFLAGS="$xorg_testset_save_CFLAGS"
17578fi
17579
17580found="no"
17581
17582	if test $found = "no" ; then
17583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17585		fi
17586
17587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17589		fi
17590
17591		CFLAGS="$CFLAGS -Waddress"
17592
17593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17594$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17595		cacheid=xorg_cv_cc_flag__Waddress
17596		if eval \${$cacheid+:} false; then :
17597  $as_echo_n "(cached) " >&6
17598else
17599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600/* end confdefs.h.  */
17601int i;
17602int
17603main ()
17604{
17605
17606  ;
17607  return 0;
17608}
17609_ACEOF
17610if ac_fn_c_try_link "$LINENO"; then :
17611  eval $cacheid=yes
17612else
17613  eval $cacheid=no
17614fi
17615rm -f core conftest.err conftest.$ac_objext \
17616    conftest$ac_exeext conftest.$ac_ext
17617fi
17618
17619
17620		CFLAGS="$xorg_testset_save_CFLAGS"
17621
17622		eval supported=\$$cacheid
17623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17624$as_echo "$supported" >&6; }
17625		if test "$supported" = "yes" ; then
17626			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17627			found="yes"
17628		fi
17629	fi
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645xorg_testset_save_CFLAGS="$CFLAGS"
17646
17647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17652  $as_echo_n "(cached) " >&6
17653else
17654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655/* end confdefs.h.  */
17656int i;
17657_ACEOF
17658if ac_fn_c_try_compile "$LINENO"; then :
17659  xorg_cv_cc_flag_unknown_warning_option=yes
17660else
17661  xorg_cv_cc_flag_unknown_warning_option=no
17662fi
17663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664fi
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17668	CFLAGS="$xorg_testset_save_CFLAGS"
17669fi
17670
17671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17674	fi
17675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17679  $as_echo_n "(cached) " >&6
17680else
17681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682/* end confdefs.h.  */
17683int i;
17684_ACEOF
17685if ac_fn_c_try_compile "$LINENO"; then :
17686  xorg_cv_cc_flag_unused_command_line_argument=yes
17687else
17688  xorg_cv_cc_flag_unused_command_line_argument=no
17689fi
17690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691fi
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17695	CFLAGS="$xorg_testset_save_CFLAGS"
17696fi
17697
17698found="no"
17699
17700	if test $found = "no" ; then
17701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17703		fi
17704
17705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17707		fi
17708
17709		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17710
17711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17712$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17713		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17714		if eval \${$cacheid+:} false; then :
17715  $as_echo_n "(cached) " >&6
17716else
17717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718/* end confdefs.h.  */
17719int i;
17720int
17721main ()
17722{
17723
17724  ;
17725  return 0;
17726}
17727_ACEOF
17728if ac_fn_c_try_link "$LINENO"; then :
17729  eval $cacheid=yes
17730else
17731  eval $cacheid=no
17732fi
17733rm -f core conftest.err conftest.$ac_objext \
17734    conftest$ac_exeext conftest.$ac_ext
17735fi
17736
17737
17738		CFLAGS="$xorg_testset_save_CFLAGS"
17739
17740		eval supported=\$$cacheid
17741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17742$as_echo "$supported" >&6; }
17743		if test "$supported" = "yes" ; then
17744			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17745			found="yes"
17746		fi
17747	fi
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763xorg_testset_save_CFLAGS="$CFLAGS"
17764
17765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17770  $as_echo_n "(cached) " >&6
17771else
17772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773/* end confdefs.h.  */
17774int i;
17775_ACEOF
17776if ac_fn_c_try_compile "$LINENO"; then :
17777  xorg_cv_cc_flag_unknown_warning_option=yes
17778else
17779  xorg_cv_cc_flag_unknown_warning_option=no
17780fi
17781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782fi
17783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17786	CFLAGS="$xorg_testset_save_CFLAGS"
17787fi
17788
17789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17792	fi
17793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17797  $as_echo_n "(cached) " >&6
17798else
17799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800/* end confdefs.h.  */
17801int i;
17802_ACEOF
17803if ac_fn_c_try_compile "$LINENO"; then :
17804  xorg_cv_cc_flag_unused_command_line_argument=yes
17805else
17806  xorg_cv_cc_flag_unused_command_line_argument=no
17807fi
17808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809fi
17810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17813	CFLAGS="$xorg_testset_save_CFLAGS"
17814fi
17815
17816found="no"
17817
17818	if test $found = "no" ; then
17819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17821		fi
17822
17823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17825		fi
17826
17827		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17828
17829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17830$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17831		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17832		if eval \${$cacheid+:} false; then :
17833  $as_echo_n "(cached) " >&6
17834else
17835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17836/* end confdefs.h.  */
17837int i;
17838int
17839main ()
17840{
17841
17842  ;
17843  return 0;
17844}
17845_ACEOF
17846if ac_fn_c_try_link "$LINENO"; then :
17847  eval $cacheid=yes
17848else
17849  eval $cacheid=no
17850fi
17851rm -f core conftest.err conftest.$ac_objext \
17852    conftest$ac_exeext conftest.$ac_ext
17853fi
17854
17855
17856		CFLAGS="$xorg_testset_save_CFLAGS"
17857
17858		eval supported=\$$cacheid
17859		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17860$as_echo "$supported" >&6; }
17861		if test "$supported" = "yes" ; then
17862			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17863			found="yes"
17864		fi
17865	fi
17866
17867
17868fi
17869
17870
17871
17872
17873
17874
17875
17876		CWARNFLAGS="$BASE_CFLAGS"
17877		if  test "x$GCC" = xyes ; then
17878		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17879		fi
17880
17881
17882
17883
17884
17885
17886
17887
17888# Check whether --enable-strict-compilation was given.
17889if test "${enable_strict_compilation+set}" = set; then :
17890  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17891else
17892  STRICT_COMPILE=no
17893fi
17894
17895
17896
17897
17898
17899
17900STRICT_CFLAGS=""
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914xorg_testset_save_CFLAGS="$CFLAGS"
17915
17916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17921  $as_echo_n "(cached) " >&6
17922else
17923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924/* end confdefs.h.  */
17925int i;
17926_ACEOF
17927if ac_fn_c_try_compile "$LINENO"; then :
17928  xorg_cv_cc_flag_unknown_warning_option=yes
17929else
17930  xorg_cv_cc_flag_unknown_warning_option=no
17931fi
17932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933fi
17934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17937	CFLAGS="$xorg_testset_save_CFLAGS"
17938fi
17939
17940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17943	fi
17944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17948  $as_echo_n "(cached) " >&6
17949else
17950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951/* end confdefs.h.  */
17952int i;
17953_ACEOF
17954if ac_fn_c_try_compile "$LINENO"; then :
17955  xorg_cv_cc_flag_unused_command_line_argument=yes
17956else
17957  xorg_cv_cc_flag_unused_command_line_argument=no
17958fi
17959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17960fi
17961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17964	CFLAGS="$xorg_testset_save_CFLAGS"
17965fi
17966
17967found="no"
17968
17969	if test $found = "no" ; then
17970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17972		fi
17973
17974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17976		fi
17977
17978		CFLAGS="$CFLAGS -pedantic"
17979
17980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17981$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17982		cacheid=xorg_cv_cc_flag__pedantic
17983		if eval \${$cacheid+:} false; then :
17984  $as_echo_n "(cached) " >&6
17985else
17986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987/* end confdefs.h.  */
17988int i;
17989int
17990main ()
17991{
17992
17993  ;
17994  return 0;
17995}
17996_ACEOF
17997if ac_fn_c_try_link "$LINENO"; then :
17998  eval $cacheid=yes
17999else
18000  eval $cacheid=no
18001fi
18002rm -f core conftest.err conftest.$ac_objext \
18003    conftest$ac_exeext conftest.$ac_ext
18004fi
18005
18006
18007		CFLAGS="$xorg_testset_save_CFLAGS"
18008
18009		eval supported=\$$cacheid
18010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18011$as_echo "$supported" >&6; }
18012		if test "$supported" = "yes" ; then
18013			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18014			found="yes"
18015		fi
18016	fi
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032xorg_testset_save_CFLAGS="$CFLAGS"
18033
18034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18039  $as_echo_n "(cached) " >&6
18040else
18041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042/* end confdefs.h.  */
18043int i;
18044_ACEOF
18045if ac_fn_c_try_compile "$LINENO"; then :
18046  xorg_cv_cc_flag_unknown_warning_option=yes
18047else
18048  xorg_cv_cc_flag_unknown_warning_option=no
18049fi
18050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18051fi
18052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18055	CFLAGS="$xorg_testset_save_CFLAGS"
18056fi
18057
18058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18061	fi
18062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18066  $as_echo_n "(cached) " >&6
18067else
18068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18069/* end confdefs.h.  */
18070int i;
18071_ACEOF
18072if ac_fn_c_try_compile "$LINENO"; then :
18073  xorg_cv_cc_flag_unused_command_line_argument=yes
18074else
18075  xorg_cv_cc_flag_unused_command_line_argument=no
18076fi
18077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18078fi
18079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18082	CFLAGS="$xorg_testset_save_CFLAGS"
18083fi
18084
18085found="no"
18086
18087	if test $found = "no" ; then
18088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18090		fi
18091
18092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18094		fi
18095
18096		CFLAGS="$CFLAGS -Werror"
18097
18098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18099$as_echo_n "checking if $CC supports -Werror... " >&6; }
18100		cacheid=xorg_cv_cc_flag__Werror
18101		if eval \${$cacheid+:} false; then :
18102  $as_echo_n "(cached) " >&6
18103else
18104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105/* end confdefs.h.  */
18106int i;
18107int
18108main ()
18109{
18110
18111  ;
18112  return 0;
18113}
18114_ACEOF
18115if ac_fn_c_try_link "$LINENO"; then :
18116  eval $cacheid=yes
18117else
18118  eval $cacheid=no
18119fi
18120rm -f core conftest.err conftest.$ac_objext \
18121    conftest$ac_exeext conftest.$ac_ext
18122fi
18123
18124
18125		CFLAGS="$xorg_testset_save_CFLAGS"
18126
18127		eval supported=\$$cacheid
18128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18129$as_echo "$supported" >&6; }
18130		if test "$supported" = "yes" ; then
18131			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18132			found="yes"
18133		fi
18134	fi
18135
18136	if test $found = "no" ; then
18137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18139		fi
18140
18141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18143		fi
18144
18145		CFLAGS="$CFLAGS -errwarn"
18146
18147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18148$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18149		cacheid=xorg_cv_cc_flag__errwarn
18150		if eval \${$cacheid+:} false; then :
18151  $as_echo_n "(cached) " >&6
18152else
18153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154/* end confdefs.h.  */
18155int i;
18156int
18157main ()
18158{
18159
18160  ;
18161  return 0;
18162}
18163_ACEOF
18164if ac_fn_c_try_link "$LINENO"; then :
18165  eval $cacheid=yes
18166else
18167  eval $cacheid=no
18168fi
18169rm -f core conftest.err conftest.$ac_objext \
18170    conftest$ac_exeext conftest.$ac_ext
18171fi
18172
18173
18174		CFLAGS="$xorg_testset_save_CFLAGS"
18175
18176		eval supported=\$$cacheid
18177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18178$as_echo "$supported" >&6; }
18179		if test "$supported" = "yes" ; then
18180			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18181			found="yes"
18182		fi
18183	fi
18184
18185
18186
18187# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18188# activate it with -Werror, so we add it here explicitly.
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202xorg_testset_save_CFLAGS="$CFLAGS"
18203
18204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18209  $as_echo_n "(cached) " >&6
18210else
18211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212/* end confdefs.h.  */
18213int i;
18214_ACEOF
18215if ac_fn_c_try_compile "$LINENO"; then :
18216  xorg_cv_cc_flag_unknown_warning_option=yes
18217else
18218  xorg_cv_cc_flag_unknown_warning_option=no
18219fi
18220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18221fi
18222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18225	CFLAGS="$xorg_testset_save_CFLAGS"
18226fi
18227
18228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18231	fi
18232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18236  $as_echo_n "(cached) " >&6
18237else
18238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239/* end confdefs.h.  */
18240int i;
18241_ACEOF
18242if ac_fn_c_try_compile "$LINENO"; then :
18243  xorg_cv_cc_flag_unused_command_line_argument=yes
18244else
18245  xorg_cv_cc_flag_unused_command_line_argument=no
18246fi
18247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18248fi
18249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18252	CFLAGS="$xorg_testset_save_CFLAGS"
18253fi
18254
18255found="no"
18256
18257	if test $found = "no" ; then
18258		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18260		fi
18261
18262		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18264		fi
18265
18266		CFLAGS="$CFLAGS -Werror=attributes"
18267
18268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18269$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18270		cacheid=xorg_cv_cc_flag__Werror_attributes
18271		if eval \${$cacheid+:} false; then :
18272  $as_echo_n "(cached) " >&6
18273else
18274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275/* end confdefs.h.  */
18276int i;
18277int
18278main ()
18279{
18280
18281  ;
18282  return 0;
18283}
18284_ACEOF
18285if ac_fn_c_try_link "$LINENO"; then :
18286  eval $cacheid=yes
18287else
18288  eval $cacheid=no
18289fi
18290rm -f core conftest.err conftest.$ac_objext \
18291    conftest$ac_exeext conftest.$ac_ext
18292fi
18293
18294
18295		CFLAGS="$xorg_testset_save_CFLAGS"
18296
18297		eval supported=\$$cacheid
18298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18299$as_echo "$supported" >&6; }
18300		if test "$supported" = "yes" ; then
18301			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18302			found="yes"
18303		fi
18304	fi
18305
18306
18307
18308if test "x$STRICT_COMPILE" = "xyes"; then
18309    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18310    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18311fi
18312
18313
18314
18315
18316
18317
18318cat >>confdefs.h <<_ACEOF
18319#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18320_ACEOF
18321
18322	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18323	if test "x$PVM" = "x"; then
18324		PVM="0"
18325	fi
18326
18327cat >>confdefs.h <<_ACEOF
18328#define PACKAGE_VERSION_MINOR $PVM
18329_ACEOF
18330
18331	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18332	if test "x$PVP" = "x"; then
18333		PVP="0"
18334	fi
18335
18336cat >>confdefs.h <<_ACEOF
18337#define PACKAGE_VERSION_PATCHLEVEL $PVP
18338_ACEOF
18339
18340
18341
18342CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18343mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18344|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18345touch \$(top_srcdir)/ChangeLog; \
18346echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18347
18348
18349
18350
18351macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18352INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18353mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18354|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18355touch \$(top_srcdir)/INSTALL; \
18356echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18357
18358
18359
18360
18361
18362
18363case $host_os in
18364    solaris*)
18365        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18366        # check for a man page file found in later versions that use
18367        # traditional section numbers instead
18368        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18369$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18370if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18371  $as_echo_n "(cached) " >&6
18372else
18373  test "$cross_compiling" = yes &&
18374  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18375if test -r "/usr/share/man/man7/attributes.7"; then
18376  ac_cv_file__usr_share_man_man7_attributes_7=yes
18377else
18378  ac_cv_file__usr_share_man_man7_attributes_7=no
18379fi
18380fi
18381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18382$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18383if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18384  SYSV_MAN_SECTIONS=false
18385else
18386  SYSV_MAN_SECTIONS=true
18387fi
18388
18389        ;;
18390    *) SYSV_MAN_SECTIONS=false ;;
18391esac
18392
18393if test x$APP_MAN_SUFFIX = x    ; then
18394    APP_MAN_SUFFIX=1
18395fi
18396if test x$APP_MAN_DIR = x    ; then
18397    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18398fi
18399
18400if test x$LIB_MAN_SUFFIX = x    ; then
18401    LIB_MAN_SUFFIX=3
18402fi
18403if test x$LIB_MAN_DIR = x    ; then
18404    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18405fi
18406
18407if test x$FILE_MAN_SUFFIX = x    ; then
18408    case $SYSV_MAN_SECTIONS in
18409	true)				FILE_MAN_SUFFIX=4  ;;
18410	*)				FILE_MAN_SUFFIX=5  ;;
18411    esac
18412fi
18413if test x$FILE_MAN_DIR = x    ; then
18414    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18415fi
18416
18417if test x$MISC_MAN_SUFFIX = x    ; then
18418    case $SYSV_MAN_SECTIONS in
18419	true)				MISC_MAN_SUFFIX=5  ;;
18420	*)				MISC_MAN_SUFFIX=7  ;;
18421    esac
18422fi
18423if test x$MISC_MAN_DIR = x    ; then
18424    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18425fi
18426
18427if test x$DRIVER_MAN_SUFFIX = x    ; then
18428    case $SYSV_MAN_SECTIONS in
18429	true)				DRIVER_MAN_SUFFIX=7  ;;
18430	*)				DRIVER_MAN_SUFFIX=4  ;;
18431    esac
18432fi
18433if test x$DRIVER_MAN_DIR = x    ; then
18434    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18435fi
18436
18437if test x$ADMIN_MAN_SUFFIX = x    ; then
18438    case $SYSV_MAN_SECTIONS in
18439	true)				ADMIN_MAN_SUFFIX=1m ;;
18440	*)				ADMIN_MAN_SUFFIX=8  ;;
18441    esac
18442fi
18443if test x$ADMIN_MAN_DIR = x    ; then
18444    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18445fi
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461XORG_MAN_PAGE="X Version 11"
18462
18463MAN_SUBSTS="\
18464	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18465	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18466	-e 's|__xservername__|Xorg|g' \
18467	-e 's|__xconfigfile__|xorg.conf|g' \
18468	-e 's|__projectroot__|\$(prefix)|g' \
18469	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18470	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18471	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18472	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18473	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18474	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18475	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18476
18477
18478
18479# Check whether --enable-silent-rules was given.
18480if test "${enable_silent_rules+set}" = set; then :
18481  enableval=$enable_silent_rules;
18482fi
18483
18484case $enable_silent_rules in # (((
18485  yes) AM_DEFAULT_VERBOSITY=0;;
18486   no) AM_DEFAULT_VERBOSITY=1;;
18487    *) AM_DEFAULT_VERBOSITY=0;;
18488esac
18489am_make=${MAKE-make}
18490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18491$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18492if ${am_cv_make_support_nested_variables+:} false; then :
18493  $as_echo_n "(cached) " >&6
18494else
18495  if $as_echo 'TRUE=$(BAR$(V))
18496BAR0=false
18497BAR1=true
18498V=1
18499am__doit:
18500	@$(TRUE)
18501.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18502  am_cv_make_support_nested_variables=yes
18503else
18504  am_cv_make_support_nested_variables=no
18505fi
18506fi
18507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18508$as_echo "$am_cv_make_support_nested_variables" >&6; }
18509if test $am_cv_make_support_nested_variables = yes; then
18510    AM_V='$(V)'
18511  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18512else
18513  AM_V=$AM_DEFAULT_VERBOSITY
18514  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18515fi
18516AM_BACKSLASH='\'
18517
18518
18519
18520
18521# Check whether --enable-specs was given.
18522if test "${enable_specs+set}" = set; then :
18523  enableval=$enable_specs; build_specs=$enableval
18524else
18525  build_specs=yes
18526fi
18527
18528
18529 if test x$build_specs = xyes; then
18530  ENABLE_SPECS_TRUE=
18531  ENABLE_SPECS_FALSE='#'
18532else
18533  ENABLE_SPECS_TRUE='#'
18534  ENABLE_SPECS_FALSE=
18535fi
18536
18537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18538$as_echo_n "checking whether to build functional specifications... " >&6; }
18539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18540$as_echo "$build_specs" >&6; }
18541
18542
18543
18544
18545
18546# Check whether --with-xmlto was given.
18547if test "${with_xmlto+set}" = set; then :
18548  withval=$with_xmlto; use_xmlto=$withval
18549else
18550  use_xmlto=auto
18551fi
18552
18553
18554
18555if test "x$use_xmlto" = x"auto"; then
18556   # Extract the first word of "xmlto", so it can be a program name with args.
18557set dummy xmlto; ac_word=$2
18558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18559$as_echo_n "checking for $ac_word... " >&6; }
18560if ${ac_cv_path_XMLTO+:} false; then :
18561  $as_echo_n "(cached) " >&6
18562else
18563  case $XMLTO in
18564  [\\/]* | ?:[\\/]*)
18565  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18566  ;;
18567  *)
18568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569for as_dir in $PATH
18570do
18571  IFS=$as_save_IFS
18572  test -z "$as_dir" && as_dir=.
18573    for ac_exec_ext in '' $ac_executable_extensions; do
18574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18575    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18577    break 2
18578  fi
18579done
18580  done
18581IFS=$as_save_IFS
18582
18583  ;;
18584esac
18585fi
18586XMLTO=$ac_cv_path_XMLTO
18587if test -n "$XMLTO"; then
18588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18589$as_echo "$XMLTO" >&6; }
18590else
18591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18592$as_echo "no" >&6; }
18593fi
18594
18595
18596   if test "x$XMLTO" = "x"; then
18597        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18598$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18599	have_xmlto=no
18600   else
18601        have_xmlto=yes
18602   fi
18603elif test "x$use_xmlto" = x"yes" ; then
18604   # Extract the first word of "xmlto", so it can be a program name with args.
18605set dummy xmlto; ac_word=$2
18606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18607$as_echo_n "checking for $ac_word... " >&6; }
18608if ${ac_cv_path_XMLTO+:} false; then :
18609  $as_echo_n "(cached) " >&6
18610else
18611  case $XMLTO in
18612  [\\/]* | ?:[\\/]*)
18613  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18614  ;;
18615  *)
18616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18617for as_dir in $PATH
18618do
18619  IFS=$as_save_IFS
18620  test -z "$as_dir" && as_dir=.
18621    for ac_exec_ext in '' $ac_executable_extensions; do
18622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18623    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18625    break 2
18626  fi
18627done
18628  done
18629IFS=$as_save_IFS
18630
18631  ;;
18632esac
18633fi
18634XMLTO=$ac_cv_path_XMLTO
18635if test -n "$XMLTO"; then
18636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18637$as_echo "$XMLTO" >&6; }
18638else
18639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18640$as_echo "no" >&6; }
18641fi
18642
18643
18644   if test "x$XMLTO" = "x"; then
18645        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18646   fi
18647   have_xmlto=yes
18648elif test "x$use_xmlto" = x"no" ; then
18649   if test "x$XMLTO" != "x"; then
18650      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18651$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18652   fi
18653   have_xmlto=no
18654else
18655   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18656fi
18657
18658# Test for a minimum version of xmlto, if provided.
18659if test "$have_xmlto" = yes; then
18660    # scrape the xmlto version
18661    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18662$as_echo_n "checking the xmlto version... " >&6; }
18663    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18665$as_echo "$xmlto_version" >&6; }
18666    as_arg_v1=$xmlto_version
18667as_arg_v2=0.0.22
18668awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18669case $? in #(
18670  1) :
18671    if test "x$use_xmlto" = xauto; then
18672            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18673$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18674            have_xmlto=no
18675        else
18676            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18677        fi ;; #(
18678  0) :
18679     ;; #(
18680  2) :
18681     ;; #(
18682  *) :
18683     ;;
18684esac
18685fi
18686
18687# Test for the ability of xmlto to generate a text target
18688#
18689# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18690# following test for empty XML docbook files.
18691# For compatibility reasons use the following empty XML docbook file and if
18692# it fails try it again with a non-empty XML file.
18693have_xmlto_text=no
18694cat > conftest.xml << "EOF"
18695EOF
18696if test "$have_xmlto" = yes; then :
18697  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18698  have_xmlto_text=yes
18699else
18700  # Try it again with a non-empty XML file.
18701              cat > conftest.xml << "EOF"
18702<x></x>
18703EOF
18704              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18705  have_xmlto_text=yes
18706else
18707  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18708$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18709fi
18710fi
18711fi
18712rm -f conftest.xml
18713 if test $have_xmlto_text = yes; then
18714  HAVE_XMLTO_TEXT_TRUE=
18715  HAVE_XMLTO_TEXT_FALSE='#'
18716else
18717  HAVE_XMLTO_TEXT_TRUE='#'
18718  HAVE_XMLTO_TEXT_FALSE=
18719fi
18720
18721 if test "$have_xmlto" = yes; then
18722  HAVE_XMLTO_TRUE=
18723  HAVE_XMLTO_FALSE='#'
18724else
18725  HAVE_XMLTO_TRUE='#'
18726  HAVE_XMLTO_FALSE=
18727fi
18728
18729
18730
18731
18732
18733
18734# Check whether --with-fop was given.
18735if test "${with_fop+set}" = set; then :
18736  withval=$with_fop; use_fop=$withval
18737else
18738  use_fop=auto
18739fi
18740
18741
18742
18743if test "x$use_fop" = x"auto"; then
18744   # Extract the first word of "fop", so it can be a program name with args.
18745set dummy fop; ac_word=$2
18746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18747$as_echo_n "checking for $ac_word... " >&6; }
18748if ${ac_cv_path_FOP+:} false; then :
18749  $as_echo_n "(cached) " >&6
18750else
18751  case $FOP in
18752  [\\/]* | ?:[\\/]*)
18753  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18754  ;;
18755  *)
18756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18757for as_dir in $PATH
18758do
18759  IFS=$as_save_IFS
18760  test -z "$as_dir" && as_dir=.
18761    for ac_exec_ext in '' $ac_executable_extensions; do
18762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18763    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18765    break 2
18766  fi
18767done
18768  done
18769IFS=$as_save_IFS
18770
18771  ;;
18772esac
18773fi
18774FOP=$ac_cv_path_FOP
18775if test -n "$FOP"; then
18776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18777$as_echo "$FOP" >&6; }
18778else
18779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18780$as_echo "no" >&6; }
18781fi
18782
18783
18784   if test "x$FOP" = "x"; then
18785        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18786$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18787	have_fop=no
18788   else
18789        have_fop=yes
18790   fi
18791elif test "x$use_fop" = x"yes" ; then
18792   # Extract the first word of "fop", so it can be a program name with args.
18793set dummy fop; ac_word=$2
18794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18795$as_echo_n "checking for $ac_word... " >&6; }
18796if ${ac_cv_path_FOP+:} false; then :
18797  $as_echo_n "(cached) " >&6
18798else
18799  case $FOP in
18800  [\\/]* | ?:[\\/]*)
18801  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18802  ;;
18803  *)
18804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18805for as_dir in $PATH
18806do
18807  IFS=$as_save_IFS
18808  test -z "$as_dir" && as_dir=.
18809    for ac_exec_ext in '' $ac_executable_extensions; do
18810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18811    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18813    break 2
18814  fi
18815done
18816  done
18817IFS=$as_save_IFS
18818
18819  ;;
18820esac
18821fi
18822FOP=$ac_cv_path_FOP
18823if test -n "$FOP"; then
18824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18825$as_echo "$FOP" >&6; }
18826else
18827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828$as_echo "no" >&6; }
18829fi
18830
18831
18832   if test "x$FOP" = "x"; then
18833        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18834   fi
18835   have_fop=yes
18836elif test "x$use_fop" = x"no" ; then
18837   if test "x$FOP" != "x"; then
18838      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18839$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18840   fi
18841   have_fop=no
18842else
18843   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18844fi
18845
18846# Test for a minimum version of fop, if provided.
18847
18848 if test "$have_fop" = yes; then
18849  HAVE_FOP_TRUE=
18850  HAVE_FOP_FALSE='#'
18851else
18852  HAVE_FOP_TRUE='#'
18853  HAVE_FOP_FALSE=
18854fi
18855
18856
18857
18858
18859# Preserves the interface, should it be implemented later
18860
18861
18862
18863# Check whether --with-xsltproc was given.
18864if test "${with_xsltproc+set}" = set; then :
18865  withval=$with_xsltproc; use_xsltproc=$withval
18866else
18867  use_xsltproc=auto
18868fi
18869
18870
18871
18872if test "x$use_xsltproc" = x"auto"; then
18873   # Extract the first word of "xsltproc", so it can be a program name with args.
18874set dummy xsltproc; ac_word=$2
18875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18876$as_echo_n "checking for $ac_word... " >&6; }
18877if ${ac_cv_path_XSLTPROC+:} false; then :
18878  $as_echo_n "(cached) " >&6
18879else
18880  case $XSLTPROC in
18881  [\\/]* | ?:[\\/]*)
18882  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18883  ;;
18884  *)
18885  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886for as_dir in $PATH
18887do
18888  IFS=$as_save_IFS
18889  test -z "$as_dir" && as_dir=.
18890    for ac_exec_ext in '' $ac_executable_extensions; do
18891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18892    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18894    break 2
18895  fi
18896done
18897  done
18898IFS=$as_save_IFS
18899
18900  ;;
18901esac
18902fi
18903XSLTPROC=$ac_cv_path_XSLTPROC
18904if test -n "$XSLTPROC"; then
18905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18906$as_echo "$XSLTPROC" >&6; }
18907else
18908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18909$as_echo "no" >&6; }
18910fi
18911
18912
18913   if test "x$XSLTPROC" = "x"; then
18914        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18915$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18916	have_xsltproc=no
18917   else
18918        have_xsltproc=yes
18919   fi
18920elif test "x$use_xsltproc" = x"yes" ; then
18921   # Extract the first word of "xsltproc", so it can be a program name with args.
18922set dummy xsltproc; ac_word=$2
18923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18924$as_echo_n "checking for $ac_word... " >&6; }
18925if ${ac_cv_path_XSLTPROC+:} false; then :
18926  $as_echo_n "(cached) " >&6
18927else
18928  case $XSLTPROC in
18929  [\\/]* | ?:[\\/]*)
18930  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18931  ;;
18932  *)
18933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934for as_dir in $PATH
18935do
18936  IFS=$as_save_IFS
18937  test -z "$as_dir" && as_dir=.
18938    for ac_exec_ext in '' $ac_executable_extensions; do
18939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18940    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18942    break 2
18943  fi
18944done
18945  done
18946IFS=$as_save_IFS
18947
18948  ;;
18949esac
18950fi
18951XSLTPROC=$ac_cv_path_XSLTPROC
18952if test -n "$XSLTPROC"; then
18953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18954$as_echo "$XSLTPROC" >&6; }
18955else
18956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18957$as_echo "no" >&6; }
18958fi
18959
18960
18961   if test "x$XSLTPROC" = "x"; then
18962        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18963   fi
18964   have_xsltproc=yes
18965elif test "x$use_xsltproc" = x"no" ; then
18966   if test "x$XSLTPROC" != "x"; then
18967      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18968$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18969   fi
18970   have_xsltproc=no
18971else
18972   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18973fi
18974
18975 if test "$have_xsltproc" = yes; then
18976  HAVE_XSLTPROC_TRUE=
18977  HAVE_XSLTPROC_FALSE='#'
18978else
18979  HAVE_XSLTPROC_TRUE='#'
18980  HAVE_XSLTPROC_FALSE=
18981fi
18982
18983
18984
18985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18986$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18987XORG_SGML_PATH=
18988if test -n "$PKG_CONFIG" && \
18989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18990  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18991  ac_status=$?
18992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18993  test $ac_status = 0; }; then
18994  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18995else
18996  :
18997
18998fi
18999
19000# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19001# the path and the name of the doc stylesheet
19002if test "x$XORG_SGML_PATH" != "x" ; then
19003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19004$as_echo "$XORG_SGML_PATH" >&6; }
19005   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19006   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19007else
19008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19009$as_echo "no" >&6; }
19010fi
19011
19012
19013
19014
19015 if test "x$XSL_STYLESHEET" != "x"; then
19016  HAVE_STYLESHEETS_TRUE=
19017  HAVE_STYLESHEETS_FALSE='#'
19018else
19019  HAVE_STYLESHEETS_TRUE='#'
19020  HAVE_STYLESHEETS_FALSE=
19021fi
19022
19023
19024
19025# Some compilers do not support per target -c and -o flags
19026
19027
19028# Checks for programs.
19029for ac_prog in gawk mawk nawk awk
19030do
19031  # Extract the first word of "$ac_prog", so it can be a program name with args.
19032set dummy $ac_prog; ac_word=$2
19033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19034$as_echo_n "checking for $ac_word... " >&6; }
19035if ${ac_cv_prog_AWK+:} false; then :
19036  $as_echo_n "(cached) " >&6
19037else
19038  if test -n "$AWK"; then
19039  ac_cv_prog_AWK="$AWK" # Let the user override the test.
19040else
19041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042for as_dir in $PATH
19043do
19044  IFS=$as_save_IFS
19045  test -z "$as_dir" && as_dir=.
19046    for ac_exec_ext in '' $ac_executable_extensions; do
19047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19048    ac_cv_prog_AWK="$ac_prog"
19049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19050    break 2
19051  fi
19052done
19053  done
19054IFS=$as_save_IFS
19055
19056fi
19057fi
19058AWK=$ac_cv_prog_AWK
19059if test -n "$AWK"; then
19060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19061$as_echo "$AWK" >&6; }
19062else
19063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064$as_echo "no" >&6; }
19065fi
19066
19067
19068  test -n "$AWK" && break
19069done
19070
19071
19072# Need to call this explicitly since the first call to PKG_CHECK_MODULES
19073# is in an if statement, and later calls would break if it's skipped.
19074
19075
19076
19077
19078
19079
19080
19081if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19082	if test -n "$ac_tool_prefix"; then
19083  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19084set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19086$as_echo_n "checking for $ac_word... " >&6; }
19087if ${ac_cv_path_PKG_CONFIG+:} false; then :
19088  $as_echo_n "(cached) " >&6
19089else
19090  case $PKG_CONFIG in
19091  [\\/]* | ?:[\\/]*)
19092  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19093  ;;
19094  *)
19095  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19096for as_dir in $PATH
19097do
19098  IFS=$as_save_IFS
19099  test -z "$as_dir" && as_dir=.
19100    for ac_exec_ext in '' $ac_executable_extensions; do
19101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19102    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19104    break 2
19105  fi
19106done
19107  done
19108IFS=$as_save_IFS
19109
19110  ;;
19111esac
19112fi
19113PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19114if test -n "$PKG_CONFIG"; then
19115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19116$as_echo "$PKG_CONFIG" >&6; }
19117else
19118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19119$as_echo "no" >&6; }
19120fi
19121
19122
19123fi
19124if test -z "$ac_cv_path_PKG_CONFIG"; then
19125  ac_pt_PKG_CONFIG=$PKG_CONFIG
19126  # Extract the first word of "pkg-config", so it can be a program name with args.
19127set dummy pkg-config; ac_word=$2
19128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19129$as_echo_n "checking for $ac_word... " >&6; }
19130if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19131  $as_echo_n "(cached) " >&6
19132else
19133  case $ac_pt_PKG_CONFIG in
19134  [\\/]* | ?:[\\/]*)
19135  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19136  ;;
19137  *)
19138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19139for as_dir in $PATH
19140do
19141  IFS=$as_save_IFS
19142  test -z "$as_dir" && as_dir=.
19143    for ac_exec_ext in '' $ac_executable_extensions; do
19144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19145    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19147    break 2
19148  fi
19149done
19150  done
19151IFS=$as_save_IFS
19152
19153  ;;
19154esac
19155fi
19156ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19157if test -n "$ac_pt_PKG_CONFIG"; then
19158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19159$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19160else
19161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19162$as_echo "no" >&6; }
19163fi
19164
19165  if test "x$ac_pt_PKG_CONFIG" = x; then
19166    PKG_CONFIG=""
19167  else
19168    case $cross_compiling:$ac_tool_warned in
19169yes:)
19170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19172ac_tool_warned=yes ;;
19173esac
19174    PKG_CONFIG=$ac_pt_PKG_CONFIG
19175  fi
19176else
19177  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19178fi
19179
19180fi
19181if test -n "$PKG_CONFIG"; then
19182	_pkg_min_version=0.9.0
19183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19184$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19185	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19187$as_echo "yes" >&6; }
19188	else
19189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19190$as_echo "no" >&6; }
19191		PKG_CONFIG=""
19192	fi
19193fi
19194
19195#
19196# fix libtool to set SONAME to libXaw.so.$major
19197#
19198ac_config_commands="$ac_config_commands libtool_hack"
19199
19200
19201# OSX/Win32 rules are different.
19202platform_win32=no
19203platform_darwin=no
19204LIBEXT=so
19205case $host_os in
19206    cygwin*|mingw*)
19207	LIBEXT=dll.a
19208	platform_win32=yes
19209	;;
19210    darwin*)
19211	LIBEXT=dylib
19212	platform_darwin=yes
19213	;;
19214esac
19215
19216 if test "x$platform_win32" = "xyes"; then
19217  PLATFORM_WIN32_TRUE=
19218  PLATFORM_WIN32_FALSE='#'
19219else
19220  PLATFORM_WIN32_TRUE='#'
19221  PLATFORM_WIN32_FALSE=
19222fi
19223
19224 if test "x$platform_darwin" = "xyes"; then
19225  PLATFORM_DARWIN_TRUE=
19226  PLATFORM_DARWIN_FALSE='#'
19227else
19228  PLATFORM_DARWIN_TRUE='#'
19229  PLATFORM_DARWIN_FALSE=
19230fi
19231
19232
19233# Whether to build Xaw6
19234
19235# Check whether --enable-xaw6 was given.
19236if test "${enable_xaw6+set}" = set; then :
19237  enableval=$enable_xaw6; build_v6=$enableval
19238else
19239  build_v6=yes
19240fi
19241
19242
19243if test "x$build_v6" = xyes; then
19244
19245pkg_failed=no
19246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW6" >&5
19247$as_echo_n "checking for XAW6... " >&6; }
19248
19249if test -n "$XAW6_CFLAGS"; then
19250    pkg_cv_XAW6_CFLAGS="$XAW6_CFLAGS"
19251 elif test -n "$PKG_CONFIG"; then
19252    if test -n "$PKG_CONFIG" && \
19253    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
19254  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
19255  ac_status=$?
19256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19257  test $ac_status = 0; }; then
19258  pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null`
19259		      test "x$?" != "x0" && pkg_failed=yes
19260else
19261  pkg_failed=yes
19262fi
19263 else
19264    pkg_failed=untried
19265fi
19266if test -n "$XAW6_LIBS"; then
19267    pkg_cv_XAW6_LIBS="$XAW6_LIBS"
19268 elif test -n "$PKG_CONFIG"; then
19269    if test -n "$PKG_CONFIG" && \
19270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
19271  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
19272  ac_status=$?
19273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274  test $ac_status = 0; }; then
19275  pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null`
19276		      test "x$?" != "x0" && pkg_failed=yes
19277else
19278  pkg_failed=yes
19279fi
19280 else
19281    pkg_failed=untried
19282fi
19283
19284
19285
19286if test $pkg_failed = yes; then
19287   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19288$as_echo "no" >&6; }
19289
19290if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19291        _pkg_short_errors_supported=yes
19292else
19293        _pkg_short_errors_supported=no
19294fi
19295        if test $_pkg_short_errors_supported = yes; then
19296	        XAW6_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu" 2>&1`
19297        else
19298	        XAW6_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu" 2>&1`
19299        fi
19300	# Put the nasty error message in config.log where it belongs
19301	echo "$XAW6_PKG_ERRORS" >&5
19302
19303	as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu) were not met:
19304
19305$XAW6_PKG_ERRORS
19306
19307Consider adjusting the PKG_CONFIG_PATH environment variable if you
19308installed software in a non-standard prefix.
19309
19310Alternatively, you may set the environment variables XAW6_CFLAGS
19311and XAW6_LIBS to avoid the need to call pkg-config.
19312See the pkg-config man page for more details." "$LINENO" 5
19313elif test $pkg_failed = untried; then
19314     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19315$as_echo "no" >&6; }
19316	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19318as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19319is in your PATH or set the PKG_CONFIG environment variable to the full
19320path to pkg-config.
19321
19322Alternatively, you may set the environment variables XAW6_CFLAGS
19323and XAW6_LIBS to avoid the need to call pkg-config.
19324See the pkg-config man page for more details.
19325
19326To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19327See \`config.log' for more details" "$LINENO" 5; }
19328else
19329	XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS
19330	XAW6_LIBS=$pkg_cv_XAW6_LIBS
19331        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332$as_echo "yes" >&6; }
19333
19334fi
19335fi
19336
19337
19338# Whether to build Xaw7
19339
19340# Check whether --enable-xaw7 was given.
19341if test "${enable_xaw7+set}" = set; then :
19342  enableval=$enable_xaw7; build_v7=$enableval
19343else
19344  build_v7=yes
19345fi
19346
19347
19348if test "x$build_v7" = xyes; then
19349
19350pkg_failed=no
19351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW7" >&5
19352$as_echo_n "checking for XAW7... " >&6; }
19353
19354if test -n "$XAW7_CFLAGS"; then
19355    pkg_cv_XAW7_CFLAGS="$XAW7_CFLAGS"
19356 elif test -n "$PKG_CONFIG"; then
19357    if test -n "$PKG_CONFIG" && \
19358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
19359  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
19360  ac_status=$?
19361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19362  test $ac_status = 0; }; then
19363  pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
19364		      test "x$?" != "x0" && pkg_failed=yes
19365else
19366  pkg_failed=yes
19367fi
19368 else
19369    pkg_failed=untried
19370fi
19371if test -n "$XAW7_LIBS"; then
19372    pkg_cv_XAW7_LIBS="$XAW7_LIBS"
19373 elif test -n "$PKG_CONFIG"; then
19374    if test -n "$PKG_CONFIG" && \
19375    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
19376  ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
19377  ac_status=$?
19378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19379  test $ac_status = 0; }; then
19380  pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
19381		      test "x$?" != "x0" && pkg_failed=yes
19382else
19383  pkg_failed=yes
19384fi
19385 else
19386    pkg_failed=untried
19387fi
19388
19389
19390
19391if test $pkg_failed = yes; then
19392   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19393$as_echo "no" >&6; }
19394
19395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19396        _pkg_short_errors_supported=yes
19397else
19398        _pkg_short_errors_supported=no
19399fi
19400        if test $_pkg_short_errors_supported = yes; then
19401	        XAW7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu xpm" 2>&1`
19402        else
19403	        XAW7_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 xext xextproto xt xmu xpm" 2>&1`
19404        fi
19405	# Put the nasty error message in config.log where it belongs
19406	echo "$XAW7_PKG_ERRORS" >&5
19407
19408	as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met:
19409
19410$XAW7_PKG_ERRORS
19411
19412Consider adjusting the PKG_CONFIG_PATH environment variable if you
19413installed software in a non-standard prefix.
19414
19415Alternatively, you may set the environment variables XAW7_CFLAGS
19416and XAW7_LIBS to avoid the need to call pkg-config.
19417See the pkg-config man page for more details." "$LINENO" 5
19418elif test $pkg_failed = untried; then
19419     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19420$as_echo "no" >&6; }
19421	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19423as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19424is in your PATH or set the PKG_CONFIG environment variable to the full
19425path to pkg-config.
19426
19427Alternatively, you may set the environment variables XAW7_CFLAGS
19428and XAW7_LIBS to avoid the need to call pkg-config.
19429See the pkg-config man page for more details.
19430
19431To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19432See \`config.log' for more details" "$LINENO" 5; }
19433else
19434	XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS
19435	XAW7_LIBS=$pkg_cv_XAW7_LIBS
19436        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19437$as_echo "yes" >&6; }
19438
19439fi
19440fi
19441
19442
19443 if test x$build_v6 = xyes; then
19444  BUILD_XAW6_TRUE=
19445  BUILD_XAW6_FALSE='#'
19446else
19447  BUILD_XAW6_TRUE='#'
19448  BUILD_XAW6_FALSE=
19449fi
19450
19451 if test x$build_v7 = xyes; then
19452  BUILD_XAW7_TRUE=
19453  BUILD_XAW7_FALSE='#'
19454else
19455  BUILD_XAW7_TRUE='#'
19456  BUILD_XAW7_FALSE=
19457fi
19458
19459
19460# Checks for header files.
19461for ac_header in wctype.h wchar.h widec.h
19462do :
19463  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19464ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19465if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19466  cat >>confdefs.h <<_ACEOF
19467#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19468_ACEOF
19469
19470fi
19471
19472done
19473
19474
19475# Checks for functions
19476for ac_func in iswalnum getpagesize
19477do :
19478  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19479ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19480if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19481  cat >>confdefs.h <<_ACEOF
19482#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19483_ACEOF
19484
19485fi
19486done
19487
19488
19489# Link with winsock if mingw target
19490case $host_os in
19491	*mingw*)
19492		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19493$as_echo_n "checking for main in -lws2_32... " >&6; }
19494if ${ac_cv_lib_ws2_32_main+:} false; then :
19495  $as_echo_n "(cached) " >&6
19496else
19497  ac_check_lib_save_LIBS=$LIBS
19498LIBS="-lws2_32  $LIBS"
19499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19500/* end confdefs.h.  */
19501
19502
19503int
19504main ()
19505{
19506return main ();
19507  ;
19508  return 0;
19509}
19510_ACEOF
19511if ac_fn_c_try_link "$LINENO"; then :
19512  ac_cv_lib_ws2_32_main=yes
19513else
19514  ac_cv_lib_ws2_32_main=no
19515fi
19516rm -f core conftest.err conftest.$ac_objext \
19517    conftest$ac_exeext conftest.$ac_ext
19518LIBS=$ac_check_lib_save_LIBS
19519fi
19520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19521$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19522if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19523  cat >>confdefs.h <<_ACEOF
19524#define HAVE_LIBWS2_32 1
19525_ACEOF
19526
19527  LIBS="-lws2_32 $LIBS"
19528
19529fi
19530
19531	;;
19532	*)
19533	;;
19534esac
19535
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C const-support is wanted" >&5
19537$as_echo_n "checking if C const-support is wanted... " >&6; }
19538# Check whether --enable-const was given.
19539if test "${enable_const+set}" = set; then :
19540  enableval=$enable_const; USE_CONST="$enableval"
19541else
19542  USE_CONST="yes"
19543fi
19544
19545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_CONST" >&5
19546$as_echo "$USE_CONST" >&6; }
19547if test "x$USE_CONST" = "xyes" ; then
19548
19549$as_echo "#define _CONST_X_STRING 1" >>confdefs.h
19550
19551fi
19552
19553ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile specs/Makefile specs/libXaw.ent src/Makefile"
19554
19555
19556if test "x$build_v6" = xyes; then
19557   ac_config_files="$ac_config_files xaw6.pc"
19558
19559fi
19560
19561if test "x$build_v7" = xyes; then
19562   ac_config_files="$ac_config_files xaw7.pc"
19563
19564fi
19565
19566cat >confcache <<\_ACEOF
19567# This file is a shell script that caches the results of configure
19568# tests run on this system so they can be shared between configure
19569# scripts and configure runs, see configure's option --config-cache.
19570# It is not useful on other systems.  If it contains results you don't
19571# want to keep, you may remove or edit it.
19572#
19573# config.status only pays attention to the cache file if you give it
19574# the --recheck option to rerun configure.
19575#
19576# `ac_cv_env_foo' variables (set or unset) will be overridden when
19577# loading this file, other *unset* `ac_cv_foo' will be assigned the
19578# following values.
19579
19580_ACEOF
19581
19582# The following way of writing the cache mishandles newlines in values,
19583# but we know of no workaround that is simple, portable, and efficient.
19584# So, we kill variables containing newlines.
19585# Ultrix sh set writes to stderr and can't be redirected directly,
19586# and sets the high bit in the cache file unless we assign to the vars.
19587(
19588  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19589    eval ac_val=\$$ac_var
19590    case $ac_val in #(
19591    *${as_nl}*)
19592      case $ac_var in #(
19593      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19594$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19595      esac
19596      case $ac_var in #(
19597      _ | IFS | as_nl) ;; #(
19598      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19599      *) { eval $ac_var=; unset $ac_var;} ;;
19600      esac ;;
19601    esac
19602  done
19603
19604  (set) 2>&1 |
19605    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19606    *${as_nl}ac_space=\ *)
19607      # `set' does not quote correctly, so add quotes: double-quote
19608      # substitution turns \\\\ into \\, and sed turns \\ into \.
19609      sed -n \
19610	"s/'/'\\\\''/g;
19611	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19612      ;; #(
19613    *)
19614      # `set' quotes correctly as required by POSIX, so do not add quotes.
19615      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19616      ;;
19617    esac |
19618    sort
19619) |
19620  sed '
19621     /^ac_cv_env_/b end
19622     t clear
19623     :clear
19624     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19625     t end
19626     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19627     :end' >>confcache
19628if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19629  if test -w "$cache_file"; then
19630    if test "x$cache_file" != "x/dev/null"; then
19631      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19632$as_echo "$as_me: updating cache $cache_file" >&6;}
19633      if test ! -f "$cache_file" || test -h "$cache_file"; then
19634	cat confcache >"$cache_file"
19635      else
19636        case $cache_file in #(
19637        */* | ?:*)
19638	  mv -f confcache "$cache_file"$$ &&
19639	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19640        *)
19641	  mv -f confcache "$cache_file" ;;
19642	esac
19643      fi
19644    fi
19645  else
19646    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19647$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19648  fi
19649fi
19650rm -f confcache
19651
19652test "x$prefix" = xNONE && prefix=$ac_default_prefix
19653# Let make expand exec_prefix.
19654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19655
19656DEFS=-DHAVE_CONFIG_H
19657
19658ac_libobjs=
19659ac_ltlibobjs=
19660U=
19661for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19662  # 1. Remove the extension, and $U if already installed.
19663  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19664  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19665  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19666  #    will be set to the directory where LIBOBJS objects are built.
19667  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19668  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19669done
19670LIBOBJS=$ac_libobjs
19671
19672LTLIBOBJS=$ac_ltlibobjs
19673
19674
19675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19676$as_echo_n "checking that generated files are newer than configure... " >&6; }
19677   if test -n "$am_sleep_pid"; then
19678     # Hide warnings about reused PIDs.
19679     wait $am_sleep_pid 2>/dev/null
19680   fi
19681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19682$as_echo "done" >&6; }
19683 if test -n "$EXEEXT"; then
19684  am__EXEEXT_TRUE=
19685  am__EXEEXT_FALSE='#'
19686else
19687  am__EXEEXT_TRUE='#'
19688  am__EXEEXT_FALSE=
19689fi
19690
19691if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19692  as_fn_error $? "conditional \"AMDEP\" was never defined.
19693Usually this means the macro was only invoked conditionally." "$LINENO" 5
19694fi
19695if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19696  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19697Usually this means the macro was only invoked conditionally." "$LINENO" 5
19698fi
19699if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
19700  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
19701Usually this means the macro was only invoked conditionally." "$LINENO" 5
19702fi
19703if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19704  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19705Usually this means the macro was only invoked conditionally." "$LINENO" 5
19706fi
19707if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19708  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19709Usually this means the macro was only invoked conditionally." "$LINENO" 5
19710fi
19711if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19712  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19713Usually this means the macro was only invoked conditionally." "$LINENO" 5
19714fi
19715if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19716  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19717Usually this means the macro was only invoked conditionally." "$LINENO" 5
19718fi
19719if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19720  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19721Usually this means the macro was only invoked conditionally." "$LINENO" 5
19722fi
19723if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
19724  as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
19725Usually this means the macro was only invoked conditionally." "$LINENO" 5
19726fi
19727if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then
19728  as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined.
19729Usually this means the macro was only invoked conditionally." "$LINENO" 5
19730fi
19731if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
19732  as_fn_error $? "conditional \"BUILD_XAW6\" was never defined.
19733Usually this means the macro was only invoked conditionally." "$LINENO" 5
19734fi
19735if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
19736  as_fn_error $? "conditional \"BUILD_XAW7\" was never defined.
19737Usually this means the macro was only invoked conditionally." "$LINENO" 5
19738fi
19739
19740: "${CONFIG_STATUS=./config.status}"
19741ac_write_fail=0
19742ac_clean_files_save=$ac_clean_files
19743ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19744{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19745$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19746as_write_fail=0
19747cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19748#! $SHELL
19749# Generated by $as_me.
19750# Run this file to recreate the current configuration.
19751# Compiler output produced by configure, useful for debugging
19752# configure, is in config.log if it exists.
19753
19754debug=false
19755ac_cs_recheck=false
19756ac_cs_silent=false
19757
19758SHELL=\${CONFIG_SHELL-$SHELL}
19759export SHELL
19760_ASEOF
19761cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19762## -------------------- ##
19763## M4sh Initialization. ##
19764## -------------------- ##
19765
19766# Be more Bourne compatible
19767DUALCASE=1; export DUALCASE # for MKS sh
19768if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19769  emulate sh
19770  NULLCMD=:
19771  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19772  # is contrary to our usage.  Disable this feature.
19773  alias -g '${1+"$@"}'='"$@"'
19774  setopt NO_GLOB_SUBST
19775else
19776  case `(set -o) 2>/dev/null` in #(
19777  *posix*) :
19778    set -o posix ;; #(
19779  *) :
19780     ;;
19781esac
19782fi
19783
19784
19785as_nl='
19786'
19787export as_nl
19788# Printing a long string crashes Solaris 7 /usr/bin/printf.
19789as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19790as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19791as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19792# Prefer a ksh shell builtin over an external printf program on Solaris,
19793# but without wasting forks for bash or zsh.
19794if test -z "$BASH_VERSION$ZSH_VERSION" \
19795    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19796  as_echo='print -r --'
19797  as_echo_n='print -rn --'
19798elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19799  as_echo='printf %s\n'
19800  as_echo_n='printf %s'
19801else
19802  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19803    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19804    as_echo_n='/usr/ucb/echo -n'
19805  else
19806    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19807    as_echo_n_body='eval
19808      arg=$1;
19809      case $arg in #(
19810      *"$as_nl"*)
19811	expr "X$arg" : "X\\(.*\\)$as_nl";
19812	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19813      esac;
19814      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19815    '
19816    export as_echo_n_body
19817    as_echo_n='sh -c $as_echo_n_body as_echo'
19818  fi
19819  export as_echo_body
19820  as_echo='sh -c $as_echo_body as_echo'
19821fi
19822
19823# The user is always right.
19824if test "${PATH_SEPARATOR+set}" != set; then
19825  PATH_SEPARATOR=:
19826  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19827    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19828      PATH_SEPARATOR=';'
19829  }
19830fi
19831
19832
19833# IFS
19834# We need space, tab and new line, in precisely that order.  Quoting is
19835# there to prevent editors from complaining about space-tab.
19836# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19837# splitting by setting IFS to empty value.)
19838IFS=" ""	$as_nl"
19839
19840# Find who we are.  Look in the path if we contain no directory separator.
19841as_myself=
19842case $0 in #((
19843  *[\\/]* ) as_myself=$0 ;;
19844  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19845for as_dir in $PATH
19846do
19847  IFS=$as_save_IFS
19848  test -z "$as_dir" && as_dir=.
19849    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19850  done
19851IFS=$as_save_IFS
19852
19853     ;;
19854esac
19855# We did not find ourselves, most probably we were run as `sh COMMAND'
19856# in which case we are not to be found in the path.
19857if test "x$as_myself" = x; then
19858  as_myself=$0
19859fi
19860if test ! -f "$as_myself"; then
19861  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19862  exit 1
19863fi
19864
19865# Unset variables that we do not need and which cause bugs (e.g. in
19866# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19867# suppresses any "Segmentation fault" message there.  '((' could
19868# trigger a bug in pdksh 5.2.14.
19869for as_var in BASH_ENV ENV MAIL MAILPATH
19870do eval test x\${$as_var+set} = xset \
19871  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19872done
19873PS1='$ '
19874PS2='> '
19875PS4='+ '
19876
19877# NLS nuisances.
19878LC_ALL=C
19879export LC_ALL
19880LANGUAGE=C
19881export LANGUAGE
19882
19883# CDPATH.
19884(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19885
19886
19887# as_fn_error STATUS ERROR [LINENO LOG_FD]
19888# ----------------------------------------
19889# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19890# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19891# script with STATUS, using 1 if that was 0.
19892as_fn_error ()
19893{
19894  as_status=$1; test $as_status -eq 0 && as_status=1
19895  if test "$4"; then
19896    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19897    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19898  fi
19899  $as_echo "$as_me: error: $2" >&2
19900  as_fn_exit $as_status
19901} # as_fn_error
19902
19903
19904# as_fn_set_status STATUS
19905# -----------------------
19906# Set $? to STATUS, without forking.
19907as_fn_set_status ()
19908{
19909  return $1
19910} # as_fn_set_status
19911
19912# as_fn_exit STATUS
19913# -----------------
19914# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19915as_fn_exit ()
19916{
19917  set +e
19918  as_fn_set_status $1
19919  exit $1
19920} # as_fn_exit
19921
19922# as_fn_unset VAR
19923# ---------------
19924# Portably unset VAR.
19925as_fn_unset ()
19926{
19927  { eval $1=; unset $1;}
19928}
19929as_unset=as_fn_unset
19930# as_fn_append VAR VALUE
19931# ----------------------
19932# Append the text in VALUE to the end of the definition contained in VAR. Take
19933# advantage of any shell optimizations that allow amortized linear growth over
19934# repeated appends, instead of the typical quadratic growth present in naive
19935# implementations.
19936if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19937  eval 'as_fn_append ()
19938  {
19939    eval $1+=\$2
19940  }'
19941else
19942  as_fn_append ()
19943  {
19944    eval $1=\$$1\$2
19945  }
19946fi # as_fn_append
19947
19948# as_fn_arith ARG...
19949# ------------------
19950# Perform arithmetic evaluation on the ARGs, and store the result in the
19951# global $as_val. Take advantage of shells that can avoid forks. The arguments
19952# must be portable across $(()) and expr.
19953if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19954  eval 'as_fn_arith ()
19955  {
19956    as_val=$(( $* ))
19957  }'
19958else
19959  as_fn_arith ()
19960  {
19961    as_val=`expr "$@" || test $? -eq 1`
19962  }
19963fi # as_fn_arith
19964
19965
19966if expr a : '\(a\)' >/dev/null 2>&1 &&
19967   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19968  as_expr=expr
19969else
19970  as_expr=false
19971fi
19972
19973if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19974  as_basename=basename
19975else
19976  as_basename=false
19977fi
19978
19979if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19980  as_dirname=dirname
19981else
19982  as_dirname=false
19983fi
19984
19985as_me=`$as_basename -- "$0" ||
19986$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19987	 X"$0" : 'X\(//\)$' \| \
19988	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19989$as_echo X/"$0" |
19990    sed '/^.*\/\([^/][^/]*\)\/*$/{
19991	    s//\1/
19992	    q
19993	  }
19994	  /^X\/\(\/\/\)$/{
19995	    s//\1/
19996	    q
19997	  }
19998	  /^X\/\(\/\).*/{
19999	    s//\1/
20000	    q
20001	  }
20002	  s/.*/./; q'`
20003
20004# Avoid depending upon Character Ranges.
20005as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20006as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20007as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20008as_cr_digits='0123456789'
20009as_cr_alnum=$as_cr_Letters$as_cr_digits
20010
20011ECHO_C= ECHO_N= ECHO_T=
20012case `echo -n x` in #(((((
20013-n*)
20014  case `echo 'xy\c'` in
20015  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20016  xy)  ECHO_C='\c';;
20017  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20018       ECHO_T='	';;
20019  esac;;
20020*)
20021  ECHO_N='-n';;
20022esac
20023
20024rm -f conf$$ conf$$.exe conf$$.file
20025if test -d conf$$.dir; then
20026  rm -f conf$$.dir/conf$$.file
20027else
20028  rm -f conf$$.dir
20029  mkdir conf$$.dir 2>/dev/null
20030fi
20031if (echo >conf$$.file) 2>/dev/null; then
20032  if ln -s conf$$.file conf$$ 2>/dev/null; then
20033    as_ln_s='ln -s'
20034    # ... but there are two gotchas:
20035    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20036    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20037    # In both cases, we have to default to `cp -pR'.
20038    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20039      as_ln_s='cp -pR'
20040  elif ln conf$$.file conf$$ 2>/dev/null; then
20041    as_ln_s=ln
20042  else
20043    as_ln_s='cp -pR'
20044  fi
20045else
20046  as_ln_s='cp -pR'
20047fi
20048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20049rmdir conf$$.dir 2>/dev/null
20050
20051
20052# as_fn_mkdir_p
20053# -------------
20054# Create "$as_dir" as a directory, including parents if necessary.
20055as_fn_mkdir_p ()
20056{
20057
20058  case $as_dir in #(
20059  -*) as_dir=./$as_dir;;
20060  esac
20061  test -d "$as_dir" || eval $as_mkdir_p || {
20062    as_dirs=
20063    while :; do
20064      case $as_dir in #(
20065      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20066      *) as_qdir=$as_dir;;
20067      esac
20068      as_dirs="'$as_qdir' $as_dirs"
20069      as_dir=`$as_dirname -- "$as_dir" ||
20070$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20071	 X"$as_dir" : 'X\(//\)[^/]' \| \
20072	 X"$as_dir" : 'X\(//\)$' \| \
20073	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20074$as_echo X"$as_dir" |
20075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20076	    s//\1/
20077	    q
20078	  }
20079	  /^X\(\/\/\)[^/].*/{
20080	    s//\1/
20081	    q
20082	  }
20083	  /^X\(\/\/\)$/{
20084	    s//\1/
20085	    q
20086	  }
20087	  /^X\(\/\).*/{
20088	    s//\1/
20089	    q
20090	  }
20091	  s/.*/./; q'`
20092      test -d "$as_dir" && break
20093    done
20094    test -z "$as_dirs" || eval "mkdir $as_dirs"
20095  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20096
20097
20098} # as_fn_mkdir_p
20099if mkdir -p . 2>/dev/null; then
20100  as_mkdir_p='mkdir -p "$as_dir"'
20101else
20102  test -d ./-p && rmdir ./-p
20103  as_mkdir_p=false
20104fi
20105
20106
20107# as_fn_executable_p FILE
20108# -----------------------
20109# Test if FILE is an executable regular file.
20110as_fn_executable_p ()
20111{
20112  test -f "$1" && test -x "$1"
20113} # as_fn_executable_p
20114as_test_x='test -x'
20115as_executable_p=as_fn_executable_p
20116
20117# Sed expression to map a string onto a valid CPP name.
20118as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20119
20120# Sed expression to map a string onto a valid variable name.
20121as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20122
20123
20124exec 6>&1
20125## ----------------------------------- ##
20126## Main body of $CONFIG_STATUS script. ##
20127## ----------------------------------- ##
20128_ASEOF
20129test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20130
20131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20132# Save the log message, to keep $0 and so on meaningful, and to
20133# report actual input values of CONFIG_FILES etc. instead of their
20134# values after options handling.
20135ac_log="
20136This file was extended by libXaw $as_me 1.0.14, which was
20137generated by GNU Autoconf 2.69.  Invocation command line was
20138
20139  CONFIG_FILES    = $CONFIG_FILES
20140  CONFIG_HEADERS  = $CONFIG_HEADERS
20141  CONFIG_LINKS    = $CONFIG_LINKS
20142  CONFIG_COMMANDS = $CONFIG_COMMANDS
20143  $ $0 $@
20144
20145on `(hostname || uname -n) 2>/dev/null | sed 1q`
20146"
20147
20148_ACEOF
20149
20150case $ac_config_files in *"
20151"*) set x $ac_config_files; shift; ac_config_files=$*;;
20152esac
20153
20154case $ac_config_headers in *"
20155"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20156esac
20157
20158
20159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20160# Files that config.status was made for.
20161config_files="$ac_config_files"
20162config_headers="$ac_config_headers"
20163config_commands="$ac_config_commands"
20164
20165_ACEOF
20166
20167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20168ac_cs_usage="\
20169\`$as_me' instantiates files and other configuration actions
20170from templates according to the current configuration.  Unless the files
20171and actions are specified as TAGs, all are instantiated by default.
20172
20173Usage: $0 [OPTION]... [TAG]...
20174
20175  -h, --help       print this help, then exit
20176  -V, --version    print version number and configuration settings, then exit
20177      --config     print configuration, then exit
20178  -q, --quiet, --silent
20179                   do not print progress messages
20180  -d, --debug      don't remove temporary files
20181      --recheck    update $as_me by reconfiguring in the same conditions
20182      --file=FILE[:TEMPLATE]
20183                   instantiate the configuration file FILE
20184      --header=FILE[:TEMPLATE]
20185                   instantiate the configuration header FILE
20186
20187Configuration files:
20188$config_files
20189
20190Configuration headers:
20191$config_headers
20192
20193Configuration commands:
20194$config_commands
20195
20196Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXaw/issues>."
20197
20198_ACEOF
20199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20200ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20201ac_cs_version="\\
20202libXaw config.status 1.0.14
20203configured by $0, generated by GNU Autoconf 2.69,
20204  with options \\"\$ac_cs_config\\"
20205
20206Copyright (C) 2012 Free Software Foundation, Inc.
20207This config.status script is free software; the Free Software Foundation
20208gives unlimited permission to copy, distribute and modify it."
20209
20210ac_pwd='$ac_pwd'
20211srcdir='$srcdir'
20212INSTALL='$INSTALL'
20213MKDIR_P='$MKDIR_P'
20214AWK='$AWK'
20215test -n "\$AWK" || AWK=awk
20216_ACEOF
20217
20218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20219# The default lists apply if the user does not specify any file.
20220ac_need_defaults=:
20221while test $# != 0
20222do
20223  case $1 in
20224  --*=?*)
20225    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20226    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20227    ac_shift=:
20228    ;;
20229  --*=)
20230    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20231    ac_optarg=
20232    ac_shift=:
20233    ;;
20234  *)
20235    ac_option=$1
20236    ac_optarg=$2
20237    ac_shift=shift
20238    ;;
20239  esac
20240
20241  case $ac_option in
20242  # Handling of the options.
20243  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20244    ac_cs_recheck=: ;;
20245  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20246    $as_echo "$ac_cs_version"; exit ;;
20247  --config | --confi | --conf | --con | --co | --c )
20248    $as_echo "$ac_cs_config"; exit ;;
20249  --debug | --debu | --deb | --de | --d | -d )
20250    debug=: ;;
20251  --file | --fil | --fi | --f )
20252    $ac_shift
20253    case $ac_optarg in
20254    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20255    '') as_fn_error $? "missing file argument" ;;
20256    esac
20257    as_fn_append CONFIG_FILES " '$ac_optarg'"
20258    ac_need_defaults=false;;
20259  --header | --heade | --head | --hea )
20260    $ac_shift
20261    case $ac_optarg in
20262    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20263    esac
20264    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20265    ac_need_defaults=false;;
20266  --he | --h)
20267    # Conflict between --help and --header
20268    as_fn_error $? "ambiguous option: \`$1'
20269Try \`$0 --help' for more information.";;
20270  --help | --hel | -h )
20271    $as_echo "$ac_cs_usage"; exit ;;
20272  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20273  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20274    ac_cs_silent=: ;;
20275
20276  # This is an error.
20277  -*) as_fn_error $? "unrecognized option: \`$1'
20278Try \`$0 --help' for more information." ;;
20279
20280  *) as_fn_append ac_config_targets " $1"
20281     ac_need_defaults=false ;;
20282
20283  esac
20284  shift
20285done
20286
20287ac_configure_extra_args=
20288
20289if $ac_cs_silent; then
20290  exec 6>/dev/null
20291  ac_configure_extra_args="$ac_configure_extra_args --silent"
20292fi
20293
20294_ACEOF
20295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20296if \$ac_cs_recheck; then
20297  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20298  shift
20299  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20300  CONFIG_SHELL='$SHELL'
20301  export CONFIG_SHELL
20302  exec "\$@"
20303fi
20304
20305_ACEOF
20306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20307exec 5>>config.log
20308{
20309  echo
20310  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20311## Running $as_me. ##
20312_ASBOX
20313  $as_echo "$ac_log"
20314} >&5
20315
20316_ACEOF
20317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20318#
20319# INIT-COMMANDS
20320#
20321AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20322
20323
20324# The HP-UX ksh and POSIX shell print the target directory to stdout
20325# if CDPATH is set.
20326(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20327
20328sed_quote_subst='$sed_quote_subst'
20329double_quote_subst='$double_quote_subst'
20330delay_variable_subst='$delay_variable_subst'
20331macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20332macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20333enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20334enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20335pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20336enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20337shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20338SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20339ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20340PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20341host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20342host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20343host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20344build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20345build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20346build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20347SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20348Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20349GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20350EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20351FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20352LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20353NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20354LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20355max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20356ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20357exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20358lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20359lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20360lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20361lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20362lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20363reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20364reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20365OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20366deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20367file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20368file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20369want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20370DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20371sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20372AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20373AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20374archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20375STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20376RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20377old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20378old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20379old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20380lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20381CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20382CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20383compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20384GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20385lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20386lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20387lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20388lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20389lt_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"`'
20390lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20391nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20392lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20393lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20394objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20395MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20396lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20397lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20398lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20399lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20400lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20401need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20402MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20403DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20404NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20405LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20406OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20407OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20408libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20409shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20410extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20411archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20412enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20413export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20414whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20415compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20416old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20417old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20418archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20419archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20420module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20421module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20422with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20423allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20424no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20425hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20426hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20427hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20428hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20429hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20430hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20431hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20432inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20433link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20434always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20435export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20436exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20437include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20438prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20439postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20440file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20441variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20442need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20443need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20444version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20445runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20446shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20447shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20448libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20449library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20450soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20451install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20452postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20453postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20454finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20455finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20456hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20457sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20458configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20459configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20460hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20461enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20462enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20463enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20464old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20465striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20466
20467LTCC='$LTCC'
20468LTCFLAGS='$LTCFLAGS'
20469compiler='$compiler_DEFAULT'
20470
20471# A function that is used when there is no print builtin or printf.
20472func_fallback_echo ()
20473{
20474  eval 'cat <<_LTECHO_EOF
20475\$1
20476_LTECHO_EOF'
20477}
20478
20479# Quote evaled strings.
20480for var in SHELL \
20481ECHO \
20482PATH_SEPARATOR \
20483SED \
20484GREP \
20485EGREP \
20486FGREP \
20487LD \
20488NM \
20489LN_S \
20490lt_SP2NL \
20491lt_NL2SP \
20492reload_flag \
20493OBJDUMP \
20494deplibs_check_method \
20495file_magic_cmd \
20496file_magic_glob \
20497want_nocaseglob \
20498DLLTOOL \
20499sharedlib_from_linklib_cmd \
20500AR \
20501AR_FLAGS \
20502archiver_list_spec \
20503STRIP \
20504RANLIB \
20505CC \
20506CFLAGS \
20507compiler \
20508lt_cv_sys_global_symbol_pipe \
20509lt_cv_sys_global_symbol_to_cdecl \
20510lt_cv_sys_global_symbol_to_import \
20511lt_cv_sys_global_symbol_to_c_name_address \
20512lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20513lt_cv_nm_interface \
20514nm_file_list_spec \
20515lt_cv_truncate_bin \
20516lt_prog_compiler_no_builtin_flag \
20517lt_prog_compiler_pic \
20518lt_prog_compiler_wl \
20519lt_prog_compiler_static \
20520lt_cv_prog_compiler_c_o \
20521need_locks \
20522MANIFEST_TOOL \
20523DSYMUTIL \
20524NMEDIT \
20525LIPO \
20526OTOOL \
20527OTOOL64 \
20528shrext_cmds \
20529export_dynamic_flag_spec \
20530whole_archive_flag_spec \
20531compiler_needs_object \
20532with_gnu_ld \
20533allow_undefined_flag \
20534no_undefined_flag \
20535hardcode_libdir_flag_spec \
20536hardcode_libdir_separator \
20537exclude_expsyms \
20538include_expsyms \
20539file_list_spec \
20540variables_saved_for_relink \
20541libname_spec \
20542library_names_spec \
20543soname_spec \
20544install_override_mode \
20545finish_eval \
20546old_striplib \
20547striplib; do
20548    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20549    *[\\\\\\\`\\"\\\$]*)
20550      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20551      ;;
20552    *)
20553      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20554      ;;
20555    esac
20556done
20557
20558# Double-quote double-evaled strings.
20559for var in reload_cmds \
20560old_postinstall_cmds \
20561old_postuninstall_cmds \
20562old_archive_cmds \
20563extract_expsyms_cmds \
20564old_archive_from_new_cmds \
20565old_archive_from_expsyms_cmds \
20566archive_cmds \
20567archive_expsym_cmds \
20568module_cmds \
20569module_expsym_cmds \
20570export_symbols_cmds \
20571prelink_cmds \
20572postlink_cmds \
20573postinstall_cmds \
20574postuninstall_cmds \
20575finish_cmds \
20576sys_lib_search_path_spec \
20577configure_time_dlsearch_path \
20578configure_time_lt_sys_library_path; do
20579    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20580    *[\\\\\\\`\\"\\\$]*)
20581      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20582      ;;
20583    *)
20584      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20585      ;;
20586    esac
20587done
20588
20589ac_aux_dir='$ac_aux_dir'
20590
20591# See if we are running on zsh, and set the options that allow our
20592# commands through without removal of \ escapes INIT.
20593if test -n "\${ZSH_VERSION+set}"; then
20594   setopt NO_GLOB_SUBST
20595fi
20596
20597
20598    PACKAGE='$PACKAGE'
20599    VERSION='$VERSION'
20600    RM='$RM'
20601    ofile='$ofile'
20602
20603
20604
20605
20606_ACEOF
20607
20608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20609
20610# Handling of arguments.
20611for ac_config_target in $ac_config_targets
20612do
20613  case $ac_config_target in
20614    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20615    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20616    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20617    "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;;
20618    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20619    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20620    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20621    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
20622    "specs/libXaw.ent") CONFIG_FILES="$CONFIG_FILES specs/libXaw.ent" ;;
20623    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20624    "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;;
20625    "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;;
20626
20627  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20628  esac
20629done
20630
20631
20632# If the user did not use the arguments to specify the items to instantiate,
20633# then the envvar interface is used.  Set only those that are not.
20634# We use the long form for the default assignment because of an extremely
20635# bizarre bug on SunOS 4.1.3.
20636if $ac_need_defaults; then
20637  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20638  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20639  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20640fi
20641
20642# Have a temporary directory for convenience.  Make it in the build tree
20643# simply because there is no reason against having it here, and in addition,
20644# creating and moving files from /tmp can sometimes cause problems.
20645# Hook for its removal unless debugging.
20646# Note that there is a small window in which the directory will not be cleaned:
20647# after its creation but before its name has been assigned to `$tmp'.
20648$debug ||
20649{
20650  tmp= ac_tmp=
20651  trap 'exit_status=$?
20652  : "${ac_tmp:=$tmp}"
20653  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20654' 0
20655  trap 'as_fn_exit 1' 1 2 13 15
20656}
20657# Create a (secure) tmp directory for tmp files.
20658
20659{
20660  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20661  test -d "$tmp"
20662}  ||
20663{
20664  tmp=./conf$$-$RANDOM
20665  (umask 077 && mkdir "$tmp")
20666} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20667ac_tmp=$tmp
20668
20669# Set up the scripts for CONFIG_FILES section.
20670# No need to generate them if there are no CONFIG_FILES.
20671# This happens for instance with `./config.status config.h'.
20672if test -n "$CONFIG_FILES"; then
20673
20674
20675ac_cr=`echo X | tr X '\015'`
20676# On cygwin, bash can eat \r inside `` if the user requested igncr.
20677# But we know of no other shell where ac_cr would be empty at this
20678# point, so we can use a bashism as a fallback.
20679if test "x$ac_cr" = x; then
20680  eval ac_cr=\$\'\\r\'
20681fi
20682ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20683if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20684  ac_cs_awk_cr='\\r'
20685else
20686  ac_cs_awk_cr=$ac_cr
20687fi
20688
20689echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20690_ACEOF
20691
20692
20693{
20694  echo "cat >conf$$subs.awk <<_ACEOF" &&
20695  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20696  echo "_ACEOF"
20697} >conf$$subs.sh ||
20698  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20699ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20700ac_delim='%!_!# '
20701for ac_last_try in false false false false false :; do
20702  . ./conf$$subs.sh ||
20703    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20704
20705  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20706  if test $ac_delim_n = $ac_delim_num; then
20707    break
20708  elif $ac_last_try; then
20709    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20710  else
20711    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20712  fi
20713done
20714rm -f conf$$subs.sh
20715
20716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20717cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20718_ACEOF
20719sed -n '
20720h
20721s/^/S["/; s/!.*/"]=/
20722p
20723g
20724s/^[^!]*!//
20725:repl
20726t repl
20727s/'"$ac_delim"'$//
20728t delim
20729:nl
20730h
20731s/\(.\{148\}\)..*/\1/
20732t more1
20733s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20734p
20735n
20736b repl
20737:more1
20738s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20739p
20740g
20741s/.\{148\}//
20742t nl
20743:delim
20744h
20745s/\(.\{148\}\)..*/\1/
20746t more2
20747s/["\\]/\\&/g; s/^/"/; s/$/"/
20748p
20749b
20750:more2
20751s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20752p
20753g
20754s/.\{148\}//
20755t delim
20756' <conf$$subs.awk | sed '
20757/^[^""]/{
20758  N
20759  s/\n//
20760}
20761' >>$CONFIG_STATUS || ac_write_fail=1
20762rm -f conf$$subs.awk
20763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20764_ACAWK
20765cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20766  for (key in S) S_is_set[key] = 1
20767  FS = ""
20768
20769}
20770{
20771  line = $ 0
20772  nfields = split(line, field, "@")
20773  substed = 0
20774  len = length(field[1])
20775  for (i = 2; i < nfields; i++) {
20776    key = field[i]
20777    keylen = length(key)
20778    if (S_is_set[key]) {
20779      value = S[key]
20780      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20781      len += length(value) + length(field[++i])
20782      substed = 1
20783    } else
20784      len += 1 + keylen
20785  }
20786
20787  print line
20788}
20789
20790_ACAWK
20791_ACEOF
20792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20793if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20794  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20795else
20796  cat
20797fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20798  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20799_ACEOF
20800
20801# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20802# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20803# trailing colons and then remove the whole line if VPATH becomes empty
20804# (actually we leave an empty line to preserve line numbers).
20805if test "x$srcdir" = x.; then
20806  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20807h
20808s///
20809s/^/:/
20810s/[	 ]*$/:/
20811s/:\$(srcdir):/:/g
20812s/:\${srcdir}:/:/g
20813s/:@srcdir@:/:/g
20814s/^:*//
20815s/:*$//
20816x
20817s/\(=[	 ]*\).*/\1/
20818G
20819s/\n//
20820s/^[^=]*=[	 ]*$//
20821}'
20822fi
20823
20824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20825fi # test -n "$CONFIG_FILES"
20826
20827# Set up the scripts for CONFIG_HEADERS section.
20828# No need to generate them if there are no CONFIG_HEADERS.
20829# This happens for instance with `./config.status Makefile'.
20830if test -n "$CONFIG_HEADERS"; then
20831cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20832BEGIN {
20833_ACEOF
20834
20835# Transform confdefs.h into an awk script `defines.awk', embedded as
20836# here-document in config.status, that substitutes the proper values into
20837# config.h.in to produce config.h.
20838
20839# Create a delimiter string that does not exist in confdefs.h, to ease
20840# handling of long lines.
20841ac_delim='%!_!# '
20842for ac_last_try in false false :; do
20843  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20844  if test -z "$ac_tt"; then
20845    break
20846  elif $ac_last_try; then
20847    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20848  else
20849    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20850  fi
20851done
20852
20853# For the awk script, D is an array of macro values keyed by name,
20854# likewise P contains macro parameters if any.  Preserve backslash
20855# newline sequences.
20856
20857ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20858sed -n '
20859s/.\{148\}/&'"$ac_delim"'/g
20860t rset
20861:rset
20862s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20863t def
20864d
20865:def
20866s/\\$//
20867t bsnl
20868s/["\\]/\\&/g
20869s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20870D["\1"]=" \3"/p
20871s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20872d
20873:bsnl
20874s/["\\]/\\&/g
20875s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20876D["\1"]=" \3\\\\\\n"\\/p
20877t cont
20878s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20879t cont
20880d
20881:cont
20882n
20883s/.\{148\}/&'"$ac_delim"'/g
20884t clear
20885:clear
20886s/\\$//
20887t bsnlc
20888s/["\\]/\\&/g; s/^/"/; s/$/"/p
20889d
20890:bsnlc
20891s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20892b cont
20893' <confdefs.h | sed '
20894s/'"$ac_delim"'/"\\\
20895"/g' >>$CONFIG_STATUS || ac_write_fail=1
20896
20897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20898  for (key in D) D_is_set[key] = 1
20899  FS = ""
20900}
20901/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20902  line = \$ 0
20903  split(line, arg, " ")
20904  if (arg[1] == "#") {
20905    defundef = arg[2]
20906    mac1 = arg[3]
20907  } else {
20908    defundef = substr(arg[1], 2)
20909    mac1 = arg[2]
20910  }
20911  split(mac1, mac2, "(") #)
20912  macro = mac2[1]
20913  prefix = substr(line, 1, index(line, defundef) - 1)
20914  if (D_is_set[macro]) {
20915    # Preserve the white space surrounding the "#".
20916    print prefix "define", macro P[macro] D[macro]
20917    next
20918  } else {
20919    # Replace #undef with comments.  This is necessary, for example,
20920    # in the case of _POSIX_SOURCE, which is predefined and required
20921    # on some systems where configure will not decide to define it.
20922    if (defundef == "undef") {
20923      print "/*", prefix defundef, macro, "*/"
20924      next
20925    }
20926  }
20927}
20928{ print }
20929_ACAWK
20930_ACEOF
20931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20932  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20933fi # test -n "$CONFIG_HEADERS"
20934
20935
20936eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20937shift
20938for ac_tag
20939do
20940  case $ac_tag in
20941  :[FHLC]) ac_mode=$ac_tag; continue;;
20942  esac
20943  case $ac_mode$ac_tag in
20944  :[FHL]*:*);;
20945  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20946  :[FH]-) ac_tag=-:-;;
20947  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20948  esac
20949  ac_save_IFS=$IFS
20950  IFS=:
20951  set x $ac_tag
20952  IFS=$ac_save_IFS
20953  shift
20954  ac_file=$1
20955  shift
20956
20957  case $ac_mode in
20958  :L) ac_source=$1;;
20959  :[FH])
20960    ac_file_inputs=
20961    for ac_f
20962    do
20963      case $ac_f in
20964      -) ac_f="$ac_tmp/stdin";;
20965      *) # Look for the file first in the build tree, then in the source tree
20966	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20967	 # because $ac_f cannot contain `:'.
20968	 test -f "$ac_f" ||
20969	   case $ac_f in
20970	   [\\/$]*) false;;
20971	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20972	   esac ||
20973	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20974      esac
20975      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20976      as_fn_append ac_file_inputs " '$ac_f'"
20977    done
20978
20979    # Let's still pretend it is `configure' which instantiates (i.e., don't
20980    # use $as_me), people would be surprised to read:
20981    #    /* config.h.  Generated by config.status.  */
20982    configure_input='Generated from '`
20983	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20984	`' by configure.'
20985    if test x"$ac_file" != x-; then
20986      configure_input="$ac_file.  $configure_input"
20987      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20988$as_echo "$as_me: creating $ac_file" >&6;}
20989    fi
20990    # Neutralize special characters interpreted by sed in replacement strings.
20991    case $configure_input in #(
20992    *\&* | *\|* | *\\* )
20993       ac_sed_conf_input=`$as_echo "$configure_input" |
20994       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20995    *) ac_sed_conf_input=$configure_input;;
20996    esac
20997
20998    case $ac_tag in
20999    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21000      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21001    esac
21002    ;;
21003  esac
21004
21005  ac_dir=`$as_dirname -- "$ac_file" ||
21006$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21007	 X"$ac_file" : 'X\(//\)[^/]' \| \
21008	 X"$ac_file" : 'X\(//\)$' \| \
21009	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21010$as_echo X"$ac_file" |
21011    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21012	    s//\1/
21013	    q
21014	  }
21015	  /^X\(\/\/\)[^/].*/{
21016	    s//\1/
21017	    q
21018	  }
21019	  /^X\(\/\/\)$/{
21020	    s//\1/
21021	    q
21022	  }
21023	  /^X\(\/\).*/{
21024	    s//\1/
21025	    q
21026	  }
21027	  s/.*/./; q'`
21028  as_dir="$ac_dir"; as_fn_mkdir_p
21029  ac_builddir=.
21030
21031case "$ac_dir" in
21032.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21033*)
21034  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21035  # A ".." for each directory in $ac_dir_suffix.
21036  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21037  case $ac_top_builddir_sub in
21038  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21039  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21040  esac ;;
21041esac
21042ac_abs_top_builddir=$ac_pwd
21043ac_abs_builddir=$ac_pwd$ac_dir_suffix
21044# for backward compatibility:
21045ac_top_builddir=$ac_top_build_prefix
21046
21047case $srcdir in
21048  .)  # We are building in place.
21049    ac_srcdir=.
21050    ac_top_srcdir=$ac_top_builddir_sub
21051    ac_abs_top_srcdir=$ac_pwd ;;
21052  [\\/]* | ?:[\\/]* )  # Absolute name.
21053    ac_srcdir=$srcdir$ac_dir_suffix;
21054    ac_top_srcdir=$srcdir
21055    ac_abs_top_srcdir=$srcdir ;;
21056  *) # Relative name.
21057    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21058    ac_top_srcdir=$ac_top_build_prefix$srcdir
21059    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21060esac
21061ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21062
21063
21064  case $ac_mode in
21065  :F)
21066  #
21067  # CONFIG_FILE
21068  #
21069
21070  case $INSTALL in
21071  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21072  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21073  esac
21074  ac_MKDIR_P=$MKDIR_P
21075  case $MKDIR_P in
21076  [\\/$]* | ?:[\\/]* ) ;;
21077  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21078  esac
21079_ACEOF
21080
21081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21082# If the template does not know about datarootdir, expand it.
21083# FIXME: This hack should be removed a few years after 2.60.
21084ac_datarootdir_hack=; ac_datarootdir_seen=
21085ac_sed_dataroot='
21086/datarootdir/ {
21087  p
21088  q
21089}
21090/@datadir@/p
21091/@docdir@/p
21092/@infodir@/p
21093/@localedir@/p
21094/@mandir@/p'
21095case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21096*datarootdir*) ac_datarootdir_seen=yes;;
21097*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21098  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21099$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21100_ACEOF
21101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21102  ac_datarootdir_hack='
21103  s&@datadir@&$datadir&g
21104  s&@docdir@&$docdir&g
21105  s&@infodir@&$infodir&g
21106  s&@localedir@&$localedir&g
21107  s&@mandir@&$mandir&g
21108  s&\\\${datarootdir}&$datarootdir&g' ;;
21109esac
21110_ACEOF
21111
21112# Neutralize VPATH when `$srcdir' = `.'.
21113# Shell code in configure.ac might set extrasub.
21114# FIXME: do we really want to maintain this feature?
21115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21116ac_sed_extra="$ac_vpsub
21117$extrasub
21118_ACEOF
21119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21120:t
21121/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21122s|@configure_input@|$ac_sed_conf_input|;t t
21123s&@top_builddir@&$ac_top_builddir_sub&;t t
21124s&@top_build_prefix@&$ac_top_build_prefix&;t t
21125s&@srcdir@&$ac_srcdir&;t t
21126s&@abs_srcdir@&$ac_abs_srcdir&;t t
21127s&@top_srcdir@&$ac_top_srcdir&;t t
21128s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21129s&@builddir@&$ac_builddir&;t t
21130s&@abs_builddir@&$ac_abs_builddir&;t t
21131s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21132s&@INSTALL@&$ac_INSTALL&;t t
21133s&@MKDIR_P@&$ac_MKDIR_P&;t t
21134$ac_datarootdir_hack
21135"
21136eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21137  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21138
21139test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21140  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21141  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21142      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21143  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21144which seems to be undefined.  Please make sure it is defined" >&5
21145$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21146which seems to be undefined.  Please make sure it is defined" >&2;}
21147
21148  rm -f "$ac_tmp/stdin"
21149  case $ac_file in
21150  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21151  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21152  esac \
21153  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21154 ;;
21155  :H)
21156  #
21157  # CONFIG_HEADER
21158  #
21159  if test x"$ac_file" != x-; then
21160    {
21161      $as_echo "/* $configure_input  */" \
21162      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21163    } >"$ac_tmp/config.h" \
21164      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21165    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21166      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21167$as_echo "$as_me: $ac_file is unchanged" >&6;}
21168    else
21169      rm -f "$ac_file"
21170      mv "$ac_tmp/config.h" "$ac_file" \
21171	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21172    fi
21173  else
21174    $as_echo "/* $configure_input  */" \
21175      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21176      || as_fn_error $? "could not create -" "$LINENO" 5
21177  fi
21178# Compute "$ac_file"'s index in $config_headers.
21179_am_arg="$ac_file"
21180_am_stamp_count=1
21181for _am_header in $config_headers :; do
21182  case $_am_header in
21183    $_am_arg | $_am_arg:* )
21184      break ;;
21185    * )
21186      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21187  esac
21188done
21189echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21190$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21191	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21192	 X"$_am_arg" : 'X\(//\)$' \| \
21193	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21194$as_echo X"$_am_arg" |
21195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21196	    s//\1/
21197	    q
21198	  }
21199	  /^X\(\/\/\)[^/].*/{
21200	    s//\1/
21201	    q
21202	  }
21203	  /^X\(\/\/\)$/{
21204	    s//\1/
21205	    q
21206	  }
21207	  /^X\(\/\).*/{
21208	    s//\1/
21209	    q
21210	  }
21211	  s/.*/./; q'`/stamp-h$_am_stamp_count
21212 ;;
21213
21214  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21215$as_echo "$as_me: executing $ac_file commands" >&6;}
21216 ;;
21217  esac
21218
21219
21220  case $ac_file$ac_mode in
21221    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21222  # Older Autoconf quotes --file arguments for eval, but not when files
21223  # are listed without --file.  Let's play safe and only enable the eval
21224  # if we detect the quoting.
21225  # TODO: see whether this extra hack can be removed once we start
21226  # requiring Autoconf 2.70 or later.
21227  case $CONFIG_FILES in #(
21228  *\'*) :
21229    eval set x "$CONFIG_FILES" ;; #(
21230  *) :
21231    set x $CONFIG_FILES ;; #(
21232  *) :
21233     ;;
21234esac
21235  shift
21236  # Used to flag and report bootstrapping failures.
21237  am_rc=0
21238  for am_mf
21239  do
21240    # Strip MF so we end up with the name of the file.
21241    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21242    # Check whether this is an Automake generated Makefile which includes
21243    # dependency-tracking related rules and includes.
21244    # Grep'ing the whole file directly is not great: AIX grep has a line
21245    # limit of 2048, but all sed's we know have understand at least 4000.
21246    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21247      || continue
21248    am_dirpart=`$as_dirname -- "$am_mf" ||
21249$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21250	 X"$am_mf" : 'X\(//\)[^/]' \| \
21251	 X"$am_mf" : 'X\(//\)$' \| \
21252	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21253$as_echo X"$am_mf" |
21254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21255	    s//\1/
21256	    q
21257	  }
21258	  /^X\(\/\/\)[^/].*/{
21259	    s//\1/
21260	    q
21261	  }
21262	  /^X\(\/\/\)$/{
21263	    s//\1/
21264	    q
21265	  }
21266	  /^X\(\/\).*/{
21267	    s//\1/
21268	    q
21269	  }
21270	  s/.*/./; q'`
21271    am_filepart=`$as_basename -- "$am_mf" ||
21272$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21273	 X"$am_mf" : 'X\(//\)$' \| \
21274	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21275$as_echo X/"$am_mf" |
21276    sed '/^.*\/\([^/][^/]*\)\/*$/{
21277	    s//\1/
21278	    q
21279	  }
21280	  /^X\/\(\/\/\)$/{
21281	    s//\1/
21282	    q
21283	  }
21284	  /^X\/\(\/\).*/{
21285	    s//\1/
21286	    q
21287	  }
21288	  s/.*/./; q'`
21289    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21290      && sed -e '/# am--include-marker/d' "$am_filepart" \
21291        | $MAKE -f - am--depfiles" >&5
21292   (cd "$am_dirpart" \
21293      && sed -e '/# am--include-marker/d' "$am_filepart" \
21294        | $MAKE -f - am--depfiles) >&5 2>&5
21295   ac_status=$?
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); } || am_rc=$?
21298  done
21299  if test $am_rc -ne 0; then
21300    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21302as_fn_error $? "Something went wrong bootstrapping makefile fragments
21303    for automatic dependency tracking.  If GNU make was not used, consider
21304    re-running the configure script with MAKE=\"gmake\" (or whatever is
21305    necessary).  You can also try re-running configure with the
21306    '--disable-dependency-tracking' option to at least be able to build
21307    the package (albeit without support for automatic dependency tracking).
21308See \`config.log' for more details" "$LINENO" 5; }
21309  fi
21310  { am_dirpart=; unset am_dirpart;}
21311  { am_filepart=; unset am_filepart;}
21312  { am_mf=; unset am_mf;}
21313  { am_rc=; unset am_rc;}
21314  rm -f conftest-deps.mk
21315}
21316 ;;
21317    "libtool":C)
21318
21319    # See if we are running on zsh, and set the options that allow our
21320    # commands through without removal of \ escapes.
21321    if test -n "${ZSH_VERSION+set}"; then
21322      setopt NO_GLOB_SUBST
21323    fi
21324
21325    cfgfile=${ofile}T
21326    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21327    $RM "$cfgfile"
21328
21329    cat <<_LT_EOF >> "$cfgfile"
21330#! $SHELL
21331# Generated automatically by $as_me ($PACKAGE) $VERSION
21332# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21333# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21334
21335# Provide generalized library-building support services.
21336# Written by Gordon Matzigkeit, 1996
21337
21338# Copyright (C) 2014 Free Software Foundation, Inc.
21339# This is free software; see the source for copying conditions.  There is NO
21340# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21341
21342# GNU Libtool is free software; you can redistribute it and/or modify
21343# it under the terms of the GNU General Public License as published by
21344# the Free Software Foundation; either version 2 of of the License, or
21345# (at your option) any later version.
21346#
21347# As a special exception to the GNU General Public License, if you
21348# distribute this file as part of a program or library that is built
21349# using GNU Libtool, you may include this file under the  same
21350# distribution terms that you use for the rest of that program.
21351#
21352# GNU Libtool is distributed in the hope that it will be useful, but
21353# WITHOUT ANY WARRANTY; without even the implied warranty of
21354# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21355# GNU General Public License for more details.
21356#
21357# You should have received a copy of the GNU General Public License
21358# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21359
21360
21361# The names of the tagged configurations supported by this script.
21362available_tags=''
21363
21364# Configured defaults for sys_lib_dlsearch_path munging.
21365: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21366
21367# ### BEGIN LIBTOOL CONFIG
21368
21369# Which release of libtool.m4 was used?
21370macro_version=$macro_version
21371macro_revision=$macro_revision
21372
21373# Whether or not to build shared libraries.
21374build_libtool_libs=$enable_shared
21375
21376# Whether or not to build static libraries.
21377build_old_libs=$enable_static
21378
21379# What type of objects to build.
21380pic_mode=$pic_mode
21381
21382# Whether or not to optimize for fast installation.
21383fast_install=$enable_fast_install
21384
21385# Shared archive member basename,for filename based shared library versioning on AIX.
21386shared_archive_member_spec=$shared_archive_member_spec
21387
21388# Shell to use when invoking shell scripts.
21389SHELL=$lt_SHELL
21390
21391# An echo program that protects backslashes.
21392ECHO=$lt_ECHO
21393
21394# The PATH separator for the build system.
21395PATH_SEPARATOR=$lt_PATH_SEPARATOR
21396
21397# The host system.
21398host_alias=$host_alias
21399host=$host
21400host_os=$host_os
21401
21402# The build system.
21403build_alias=$build_alias
21404build=$build
21405build_os=$build_os
21406
21407# A sed program that does not truncate output.
21408SED=$lt_SED
21409
21410# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21411Xsed="\$SED -e 1s/^X//"
21412
21413# A grep program that handles long lines.
21414GREP=$lt_GREP
21415
21416# An ERE matcher.
21417EGREP=$lt_EGREP
21418
21419# A literal string matcher.
21420FGREP=$lt_FGREP
21421
21422# A BSD- or MS-compatible name lister.
21423NM=$lt_NM
21424
21425# Whether we need soft or hard links.
21426LN_S=$lt_LN_S
21427
21428# What is the maximum length of a command?
21429max_cmd_len=$max_cmd_len
21430
21431# Object file suffix (normally "o").
21432objext=$ac_objext
21433
21434# Executable file suffix (normally "").
21435exeext=$exeext
21436
21437# whether the shell understands "unset".
21438lt_unset=$lt_unset
21439
21440# turn spaces into newlines.
21441SP2NL=$lt_lt_SP2NL
21442
21443# turn newlines into spaces.
21444NL2SP=$lt_lt_NL2SP
21445
21446# convert \$build file names to \$host format.
21447to_host_file_cmd=$lt_cv_to_host_file_cmd
21448
21449# convert \$build files to toolchain format.
21450to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21451
21452# An object symbol dumper.
21453OBJDUMP=$lt_OBJDUMP
21454
21455# Method to check whether dependent libraries are shared objects.
21456deplibs_check_method=$lt_deplibs_check_method
21457
21458# Command to use when deplibs_check_method = "file_magic".
21459file_magic_cmd=$lt_file_magic_cmd
21460
21461# How to find potential files when deplibs_check_method = "file_magic".
21462file_magic_glob=$lt_file_magic_glob
21463
21464# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21465want_nocaseglob=$lt_want_nocaseglob
21466
21467# DLL creation program.
21468DLLTOOL=$lt_DLLTOOL
21469
21470# Command to associate shared and link libraries.
21471sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21472
21473# The archiver.
21474AR=$lt_AR
21475
21476# Flags to create an archive.
21477AR_FLAGS=$lt_AR_FLAGS
21478
21479# How to feed a file listing to the archiver.
21480archiver_list_spec=$lt_archiver_list_spec
21481
21482# A symbol stripping program.
21483STRIP=$lt_STRIP
21484
21485# Commands used to install an old-style archive.
21486RANLIB=$lt_RANLIB
21487old_postinstall_cmds=$lt_old_postinstall_cmds
21488old_postuninstall_cmds=$lt_old_postuninstall_cmds
21489
21490# Whether to use a lock for old archive extraction.
21491lock_old_archive_extraction=$lock_old_archive_extraction
21492
21493# A C compiler.
21494LTCC=$lt_CC
21495
21496# LTCC compiler flags.
21497LTCFLAGS=$lt_CFLAGS
21498
21499# Take the output of nm and produce a listing of raw symbols and C names.
21500global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21501
21502# Transform the output of nm in a proper C declaration.
21503global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21504
21505# Transform the output of nm into a list of symbols to manually relocate.
21506global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21507
21508# Transform the output of nm in a C name address pair.
21509global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21510
21511# Transform the output of nm in a C name address pair when lib prefix is needed.
21512global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21513
21514# The name lister interface.
21515nm_interface=$lt_lt_cv_nm_interface
21516
21517# Specify filename containing input files for \$NM.
21518nm_file_list_spec=$lt_nm_file_list_spec
21519
21520# The root where to search for dependent libraries,and where our libraries should be installed.
21521lt_sysroot=$lt_sysroot
21522
21523# Command to truncate a binary pipe.
21524lt_truncate_bin=$lt_lt_cv_truncate_bin
21525
21526# The name of the directory that contains temporary libtool files.
21527objdir=$objdir
21528
21529# Used to examine libraries when file_magic_cmd begins with "file".
21530MAGIC_CMD=$MAGIC_CMD
21531
21532# Must we lock files when doing compilation?
21533need_locks=$lt_need_locks
21534
21535# Manifest tool.
21536MANIFEST_TOOL=$lt_MANIFEST_TOOL
21537
21538# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21539DSYMUTIL=$lt_DSYMUTIL
21540
21541# Tool to change global to local symbols on Mac OS X.
21542NMEDIT=$lt_NMEDIT
21543
21544# Tool to manipulate fat objects and archives on Mac OS X.
21545LIPO=$lt_LIPO
21546
21547# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21548OTOOL=$lt_OTOOL
21549
21550# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21551OTOOL64=$lt_OTOOL64
21552
21553# Old archive suffix (normally "a").
21554libext=$libext
21555
21556# Shared library suffix (normally ".so").
21557shrext_cmds=$lt_shrext_cmds
21558
21559# The commands to extract the exported symbol list from a shared archive.
21560extract_expsyms_cmds=$lt_extract_expsyms_cmds
21561
21562# Variables whose values should be saved in libtool wrapper scripts and
21563# restored at link time.
21564variables_saved_for_relink=$lt_variables_saved_for_relink
21565
21566# Do we need the "lib" prefix for modules?
21567need_lib_prefix=$need_lib_prefix
21568
21569# Do we need a version for libraries?
21570need_version=$need_version
21571
21572# Library versioning type.
21573version_type=$version_type
21574
21575# Shared library runtime path variable.
21576runpath_var=$runpath_var
21577
21578# Shared library path variable.
21579shlibpath_var=$shlibpath_var
21580
21581# Is shlibpath searched before the hard-coded library search path?
21582shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21583
21584# Format of library name prefix.
21585libname_spec=$lt_libname_spec
21586
21587# List of archive names.  First name is the real one, the rest are links.
21588# The last name is the one that the linker finds with -lNAME
21589library_names_spec=$lt_library_names_spec
21590
21591# The coded name of the library, if different from the real name.
21592soname_spec=$lt_soname_spec
21593
21594# Permission mode override for installation of shared libraries.
21595install_override_mode=$lt_install_override_mode
21596
21597# Command to use after installation of a shared archive.
21598postinstall_cmds=$lt_postinstall_cmds
21599
21600# Command to use after uninstallation of a shared archive.
21601postuninstall_cmds=$lt_postuninstall_cmds
21602
21603# Commands used to finish a libtool library installation in a directory.
21604finish_cmds=$lt_finish_cmds
21605
21606# As "finish_cmds", except a single script fragment to be evaled but
21607# not shown.
21608finish_eval=$lt_finish_eval
21609
21610# Whether we should hardcode library paths into libraries.
21611hardcode_into_libs=$hardcode_into_libs
21612
21613# Compile-time system search path for libraries.
21614sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21615
21616# Detected run-time system search path for libraries.
21617sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21618
21619# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21620configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21621
21622# Whether dlopen is supported.
21623dlopen_support=$enable_dlopen
21624
21625# Whether dlopen of programs is supported.
21626dlopen_self=$enable_dlopen_self
21627
21628# Whether dlopen of statically linked programs is supported.
21629dlopen_self_static=$enable_dlopen_self_static
21630
21631# Commands to strip libraries.
21632old_striplib=$lt_old_striplib
21633striplib=$lt_striplib
21634
21635
21636# The linker used to build libraries.
21637LD=$lt_LD
21638
21639# How to create reloadable object files.
21640reload_flag=$lt_reload_flag
21641reload_cmds=$lt_reload_cmds
21642
21643# Commands used to build an old-style archive.
21644old_archive_cmds=$lt_old_archive_cmds
21645
21646# A language specific compiler.
21647CC=$lt_compiler
21648
21649# Is the compiler the GNU compiler?
21650with_gcc=$GCC
21651
21652# Compiler flag to turn off builtin functions.
21653no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21654
21655# Additional compiler flags for building library objects.
21656pic_flag=$lt_lt_prog_compiler_pic
21657
21658# How to pass a linker flag through the compiler.
21659wl=$lt_lt_prog_compiler_wl
21660
21661# Compiler flag to prevent dynamic linking.
21662link_static_flag=$lt_lt_prog_compiler_static
21663
21664# Does compiler simultaneously support -c and -o options?
21665compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21666
21667# Whether or not to add -lc for building shared libraries.
21668build_libtool_need_lc=$archive_cmds_need_lc
21669
21670# Whether or not to disallow shared libs when runtime libs are static.
21671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21672
21673# Compiler flag to allow reflexive dlopens.
21674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21675
21676# Compiler flag to generate shared objects directly from archives.
21677whole_archive_flag_spec=$lt_whole_archive_flag_spec
21678
21679# Whether the compiler copes with passing no objects directly.
21680compiler_needs_object=$lt_compiler_needs_object
21681
21682# Create an old-style archive from a shared archive.
21683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21684
21685# Create a temporary old-style archive to link instead of a shared archive.
21686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21687
21688# Commands used to build a shared archive.
21689archive_cmds=$lt_archive_cmds
21690archive_expsym_cmds=$lt_archive_expsym_cmds
21691
21692# Commands used to build a loadable module if different from building
21693# a shared archive.
21694module_cmds=$lt_module_cmds
21695module_expsym_cmds=$lt_module_expsym_cmds
21696
21697# Whether we are building with GNU ld or not.
21698with_gnu_ld=$lt_with_gnu_ld
21699
21700# Flag that allows shared libraries with undefined symbols to be built.
21701allow_undefined_flag=$lt_allow_undefined_flag
21702
21703# Flag that enforces no undefined symbols.
21704no_undefined_flag=$lt_no_undefined_flag
21705
21706# Flag to hardcode \$libdir into a binary during linking.
21707# This must work even if \$libdir does not exist
21708hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21709
21710# Whether we need a single "-rpath" flag with a separated argument.
21711hardcode_libdir_separator=$lt_hardcode_libdir_separator
21712
21713# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21714# DIR into the resulting binary.
21715hardcode_direct=$hardcode_direct
21716
21717# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21718# DIR into the resulting binary and the resulting library dependency is
21719# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21720# library is relocated.
21721hardcode_direct_absolute=$hardcode_direct_absolute
21722
21723# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21724# into the resulting binary.
21725hardcode_minus_L=$hardcode_minus_L
21726
21727# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21728# into the resulting binary.
21729hardcode_shlibpath_var=$hardcode_shlibpath_var
21730
21731# Set to "yes" if building a shared library automatically hardcodes DIR
21732# into the library and all subsequent libraries and executables linked
21733# against it.
21734hardcode_automatic=$hardcode_automatic
21735
21736# Set to yes if linker adds runtime paths of dependent libraries
21737# to runtime path list.
21738inherit_rpath=$inherit_rpath
21739
21740# Whether libtool must link a program against all its dependency libraries.
21741link_all_deplibs=$link_all_deplibs
21742
21743# Set to "yes" if exported symbols are required.
21744always_export_symbols=$always_export_symbols
21745
21746# The commands to list exported symbols.
21747export_symbols_cmds=$lt_export_symbols_cmds
21748
21749# Symbols that should not be listed in the preloaded symbols.
21750exclude_expsyms=$lt_exclude_expsyms
21751
21752# Symbols that must always be exported.
21753include_expsyms=$lt_include_expsyms
21754
21755# Commands necessary for linking programs (against libraries) with templates.
21756prelink_cmds=$lt_prelink_cmds
21757
21758# Commands necessary for finishing linking programs.
21759postlink_cmds=$lt_postlink_cmds
21760
21761# Specify filename containing input files.
21762file_list_spec=$lt_file_list_spec
21763
21764# How to hardcode a shared library path into an executable.
21765hardcode_action=$hardcode_action
21766
21767# ### END LIBTOOL CONFIG
21768
21769_LT_EOF
21770
21771    cat <<'_LT_EOF' >> "$cfgfile"
21772
21773# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21774
21775# func_munge_path_list VARIABLE PATH
21776# -----------------------------------
21777# VARIABLE is name of variable containing _space_ separated list of
21778# directories to be munged by the contents of PATH, which is string
21779# having a format:
21780# "DIR[:DIR]:"
21781#       string "DIR[ DIR]" will be prepended to VARIABLE
21782# ":DIR[:DIR]"
21783#       string "DIR[ DIR]" will be appended to VARIABLE
21784# "DIRP[:DIRP]::[DIRA:]DIRA"
21785#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21786#       "DIRA[ DIRA]" will be appended to VARIABLE
21787# "DIR[:DIR]"
21788#       VARIABLE will be replaced by "DIR[ DIR]"
21789func_munge_path_list ()
21790{
21791    case x$2 in
21792    x)
21793        ;;
21794    *:)
21795        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21796        ;;
21797    x:*)
21798        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21799        ;;
21800    *::*)
21801        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21802        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21803        ;;
21804    *)
21805        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21806        ;;
21807    esac
21808}
21809
21810
21811# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21812func_cc_basename ()
21813{
21814    for cc_temp in $*""; do
21815      case $cc_temp in
21816        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21817        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21818        \-*) ;;
21819        *) break;;
21820      esac
21821    done
21822    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21823}
21824
21825
21826# ### END FUNCTIONS SHARED WITH CONFIGURE
21827
21828_LT_EOF
21829
21830  case $host_os in
21831  aix3*)
21832    cat <<\_LT_EOF >> "$cfgfile"
21833# AIX sometimes has problems with the GCC collect2 program.  For some
21834# reason, if we set the COLLECT_NAMES environment variable, the problems
21835# vanish in a puff of smoke.
21836if test set != "${COLLECT_NAMES+set}"; then
21837  COLLECT_NAMES=
21838  export COLLECT_NAMES
21839fi
21840_LT_EOF
21841    ;;
21842  esac
21843
21844
21845ltmain=$ac_aux_dir/ltmain.sh
21846
21847
21848  # We use sed instead of cat because bash on DJGPP gets confused if
21849  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21850  # text mode, it properly converts lines to CR/LF.  This bash problem
21851  # is reportedly fixed, but why not run on old versions too?
21852  sed '$q' "$ltmain" >> "$cfgfile" \
21853     || (rm -f "$cfgfile"; exit 1)
21854
21855   mv -f "$cfgfile" "$ofile" ||
21856    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21857  chmod +x "$ofile"
21858
21859 ;;
21860    "libtool_hack":C)
21861	cp -f libtool libtool_
21862	test -z "$SED" && SED=sed
21863	$SED '1,/^soname_spec/{
21864/^soname_spec/i\
21865# X.Org hack to match monolithic Xaw SONAME\
21866xorglibxawname="libXaw"
21867/^soname_spec/s/libname/xorglibxawname/
21868}' libtool_ > libtool
21869	rm -f libtool_
21870 ;;
21871
21872  esac
21873done # for ac_tag
21874
21875
21876as_fn_exit 0
21877_ACEOF
21878ac_clean_files=$ac_clean_files_save
21879
21880test $ac_write_fail = 0 ||
21881  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21882
21883
21884# configure is writing to config.log, and then calls config.status.
21885# config.status does its own redirection, appending to config.log.
21886# Unfortunately, on DOS this fails, as config.log is still kept open
21887# by configure, so config.status won't be able to write to it; its
21888# output is simply discarded.  So we exec the FD to /dev/null,
21889# effectively closing config.log, so it can be properly (re)opened and
21890# appended to by config.status.  When coming back to configure, we
21891# need to make the FD available again.
21892if test "$no_create" != yes; then
21893  ac_cs_success=:
21894  ac_config_status_args=
21895  test "$silent" = yes &&
21896    ac_config_status_args="$ac_config_status_args --quiet"
21897  exec 5>/dev/null
21898  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21899  exec 5>>config.log
21900  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21901  # would make configure fail if this is the last instruction.
21902  $ac_cs_success || as_fn_exit 1
21903fi
21904if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21905  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21906$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21907fi
21908
21909