configure revision a97c3f35
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXfont 1.5.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570as_awk_strverscmp='
571  # Use only awk features that work with 7th edition Unix awk (1978).
572  # My, what an old awk you have, Mr. Solaris!
573  END {
574    while (length(v1) && length(v2)) {
575      # Set d1 to be the next thing to compare from v1, and likewise for d2.
576      # Normally this is a single character, but if v1 and v2 contain digits,
577      # compare them as integers and fractions as strverscmp does.
578      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579	# Split v1 and v2 into their leading digit string components d1 and d2,
580	# and advance v1 and v2 past the leading digit strings.
581	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585	if (d1 ~ /^0/) {
586	  if (d2 ~ /^0/) {
587	    # Compare two fractions.
588	    while (d1 ~ /^0/ && d2 ~ /^0/) {
589	      d1 = substr(d1, 2); len1--
590	      d2 = substr(d2, 2); len2--
591	    }
592	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593	      # The two components differ in length, and the common prefix
594	      # contains only leading zeros.  Consider the longer to be less.
595	      d1 = -len1
596	      d2 = -len2
597	    } else {
598	      # Otherwise, compare as strings.
599	      d1 = "x" d1
600	      d2 = "x" d2
601	    }
602	  } else {
603	    # A fraction is less than an integer.
604	    exit 1
605	  }
606	} else {
607	  if (d2 ~ /^0/) {
608	    # An integer is greater than a fraction.
609	    exit 2
610	  } else {
611	    # Compare two integers.
612	    d1 += 0
613	    d2 += 0
614	  }
615	}
616      } else {
617	# The normal case, without worrying about digits.
618	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620      }
621      if (d1 < d2) exit 1
622      if (d1 > d2) exit 2
623    }
624    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625    # which mishandles some comparisons of empty strings to integers.
626    if (length(v2)) exit 1
627    if (length(v1)) exit 2
628  }
629'
630
631test -n "$DJDIR" || exec 7<&0 </dev/null
632exec 6>&1
633
634# Name of the host.
635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636# so uname gets run too.
637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639#
640# Initializations.
641#
642ac_default_prefix=/usr/local
643ac_clean_files=
644ac_config_libobj_dir=.
645LIBOBJS=
646cross_compiling=no
647subdirs=
648MFLAGS=
649MAKEFLAGS=
650
651# Identity of this package.
652PACKAGE_NAME='libXfont'
653PACKAGE_TARNAME='libXfont'
654PACKAGE_VERSION='1.5.4'
655PACKAGE_STRING='libXfont 1.5.4'
656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
657PACKAGE_URL=''
658
659ac_unique_file="Makefile.am"
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_subst_vars='am__EXEEXT_FALSE
697am__EXEEXT_TRUE
698LTLIBOBJS
699LIBOBJS
700OS_CFLAGS
701XFONT_LIBS
702XFONT_CFLAGS
703MATH_LIBS
704XFONT_FC_FALSE
705XFONT_FC_TRUE
706XFONT_FONTFILE_FALSE
707XFONT_FONTFILE_TRUE
708XFONT_BITMAP_FALSE
709XFONT_BITMAP_TRUE
710XFONT_SNFFORMAT_FALSE
711XFONT_SNFFORMAT_TRUE
712XFONT_BDFFORMAT_FALSE
713XFONT_BDFFORMAT_TRUE
714XFONT_PCF_OR_BUILTIN_FALSE
715XFONT_PCF_OR_BUILTIN_TRUE
716XFONT_PCFFORMAT_FALSE
717XFONT_PCFFORMAT_TRUE
718XFONT_BUILTINS_FALSE
719XFONT_BUILTINS_TRUE
720Z_LIBS
721X_BZIP2_FONT_COMPRESSION_FALSE
722X_BZIP2_FONT_COMPRESSION_TRUE
723X_GZIP_FONT_COMPRESSION
724FREETYPE_REQUIRES
725ft_config
726FREETYPE_LIBS
727FREETYPE_CFLAGS
728XFONT_FREETYPE_FALSE
729XFONT_FREETYPE_TRUE
730HAVE_STYLESHEETS_FALSE
731HAVE_STYLESHEETS_TRUE
732XSL_STYLESHEET
733STYLESHEET_SRCDIR
734XORG_SGML_PATH
735HAVE_FOP_FALSE
736HAVE_FOP_TRUE
737FOP
738HAVE_XMLTO_FALSE
739HAVE_XMLTO_TRUE
740HAVE_XMLTO_TEXT_FALSE
741HAVE_XMLTO_TEXT_TRUE
742XMLTO
743ENABLE_DEVEL_DOCS_FALSE
744ENABLE_DEVEL_DOCS_TRUE
745MAN_SUBSTS
746XORG_MAN_PAGE
747ADMIN_MAN_DIR
748DRIVER_MAN_DIR
749MISC_MAN_DIR
750FILE_MAN_DIR
751LIB_MAN_DIR
752APP_MAN_DIR
753ADMIN_MAN_SUFFIX
754DRIVER_MAN_SUFFIX
755MISC_MAN_SUFFIX
756FILE_MAN_SUFFIX
757LIB_MAN_SUFFIX
758APP_MAN_SUFFIX
759INSTALL_CMD
760PKG_CONFIG_LIBDIR
761PKG_CONFIG_PATH
762PKG_CONFIG
763CHANGELOG_CMD
764STRICT_CFLAGS
765CWARNFLAGS
766BASE_CFLAGS
767LT_SYS_LIBRARY_PATH
768OTOOL64
769OTOOL
770LIPO
771NMEDIT
772DSYMUTIL
773MANIFEST_TOOL
774RANLIB
775ac_ct_AR
776AR
777DLLTOOL
778OBJDUMP
779LN_S
780NM
781ac_ct_DUMPBIN
782DUMPBIN
783LD
784FGREP
785SED
786host_os
787host_vendor
788host_cpu
789host
790build_os
791build_vendor
792build_cpu
793build
794LIBTOOL
795EGREP
796GREP
797CPP
798am__fastdepCC_FALSE
799am__fastdepCC_TRUE
800CCDEPMODE
801am__nodep
802AMDEPBACKSLASH
803AMDEP_FALSE
804AMDEP_TRUE
805am__quote
806am__include
807DEPDIR
808OBJEXT
809EXEEXT
810ac_ct_CC
811CPPFLAGS
812LDFLAGS
813CFLAGS
814CC
815AM_BACKSLASH
816AM_DEFAULT_VERBOSITY
817AM_DEFAULT_V
818AM_V
819am__untar
820am__tar
821AMTAR
822am__leading_dot
823SET_MAKE
824AWK
825mkdir_p
826MKDIR_P
827INSTALL_STRIP_PROGRAM
828STRIP
829install_sh
830MAKEINFO
831AUTOHEADER
832AUTOMAKE
833AUTOCONF
834ACLOCAL
835VERSION
836PACKAGE
837CYGPATH_W
838am__isrc
839INSTALL_DATA
840INSTALL_SCRIPT
841INSTALL_PROGRAM
842target_alias
843host_alias
844build_alias
845LIBS
846ECHO_T
847ECHO_N
848ECHO_C
849DEFS
850mandir
851localedir
852libdir
853psdir
854pdfdir
855dvidir
856htmldir
857infodir
858docdir
859oldincludedir
860includedir
861runstatedir
862localstatedir
863sharedstatedir
864sysconfdir
865datadir
866datarootdir
867libexecdir
868sbindir
869bindir
870program_transform_name
871prefix
872exec_prefix
873PACKAGE_URL
874PACKAGE_BUGREPORT
875PACKAGE_STRING
876PACKAGE_VERSION
877PACKAGE_TARNAME
878PACKAGE_NAME
879PATH_SEPARATOR
880SHELL'
881ac_subst_files=''
882ac_user_opts='
883enable_option_checking
884enable_silent_rules
885enable_dependency_tracking
886enable_shared
887enable_static
888with_pic
889enable_fast_install
890with_aix_soname
891with_gnu_ld
892with_sysroot
893enable_libtool_lock
894enable_selective_werror
895enable_strict_compilation
896enable_devel_docs
897with_xmlto
898with_fop
899enable_freetype
900with_freetype_config
901with_bzip2
902enable_builtins
903enable_pcfformat
904enable_bdfformat
905enable_snfformat
906enable_fc
907enable_unix_transport
908enable_tcp_transport
909enable_ipv6
910enable_local_transport
911'
912      ac_precious_vars='build_alias
913host_alias
914target_alias
915CC
916CFLAGS
917LDFLAGS
918LIBS
919CPPFLAGS
920CPP
921LT_SYS_LIBRARY_PATH
922PKG_CONFIG
923PKG_CONFIG_PATH
924PKG_CONFIG_LIBDIR
925XMLTO
926FOP
927FREETYPE_CFLAGS
928FREETYPE_LIBS
929XFONT_CFLAGS
930XFONT_LIBS'
931
932
933# Initialize some variables set by options.
934ac_init_help=
935ac_init_version=false
936ac_unrecognized_opts=
937ac_unrecognized_sep=
938# The variables have the same names as the options, with
939# dashes changed to underlines.
940cache_file=/dev/null
941exec_prefix=NONE
942no_create=
943no_recursion=
944prefix=NONE
945program_prefix=NONE
946program_suffix=NONE
947program_transform_name=s,x,x,
948silent=
949site=
950srcdir=
951verbose=
952x_includes=NONE
953x_libraries=NONE
954
955# Installation directory options.
956# These are left unexpanded so users can "make install exec_prefix=/foo"
957# and all the variables that are supposed to be based on exec_prefix
958# by default will actually change.
959# Use braces instead of parens because sh, perl, etc. also accept them.
960# (The list follows the same order as the GNU Coding Standards.)
961bindir='${exec_prefix}/bin'
962sbindir='${exec_prefix}/sbin'
963libexecdir='${exec_prefix}/libexec'
964datarootdir='${prefix}/share'
965datadir='${datarootdir}'
966sysconfdir='${prefix}/etc'
967sharedstatedir='${prefix}/com'
968localstatedir='${prefix}/var'
969runstatedir='${localstatedir}/run'
970includedir='${prefix}/include'
971oldincludedir='/usr/include'
972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973infodir='${datarootdir}/info'
974htmldir='${docdir}'
975dvidir='${docdir}'
976pdfdir='${docdir}'
977psdir='${docdir}'
978libdir='${exec_prefix}/lib'
979localedir='${datarootdir}/locale'
980mandir='${datarootdir}/man'
981
982ac_prev=
983ac_dashdash=
984for ac_option
985do
986  # If the previous option needs an argument, assign it.
987  if test -n "$ac_prev"; then
988    eval $ac_prev=\$ac_option
989    ac_prev=
990    continue
991  fi
992
993  case $ac_option in
994  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995  *=)   ac_optarg= ;;
996  *)    ac_optarg=yes ;;
997  esac
998
999  # Accept the important Cygnus configure options, so we can diagnose typos.
1000
1001  case $ac_dashdash$ac_option in
1002  --)
1003    ac_dashdash=yes ;;
1004
1005  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006    ac_prev=bindir ;;
1007  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008    bindir=$ac_optarg ;;
1009
1010  -build | --build | --buil | --bui | --bu)
1011    ac_prev=build_alias ;;
1012  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013    build_alias=$ac_optarg ;;
1014
1015  -cache-file | --cache-file | --cache-fil | --cache-fi \
1016  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017    ac_prev=cache_file ;;
1018  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020    cache_file=$ac_optarg ;;
1021
1022  --config-cache | -C)
1023    cache_file=config.cache ;;
1024
1025  -datadir | --datadir | --datadi | --datad)
1026    ac_prev=datadir ;;
1027  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028    datadir=$ac_optarg ;;
1029
1030  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031  | --dataroo | --dataro | --datar)
1032    ac_prev=datarootdir ;;
1033  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035    datarootdir=$ac_optarg ;;
1036
1037  -disable-* | --disable-*)
1038    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039    # Reject names that are not valid shell variable names.
1040    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041      as_fn_error $? "invalid feature name: $ac_useropt"
1042    ac_useropt_orig=$ac_useropt
1043    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044    case $ac_user_opts in
1045      *"
1046"enable_$ac_useropt"
1047"*) ;;
1048      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049	 ac_unrecognized_sep=', ';;
1050    esac
1051    eval enable_$ac_useropt=no ;;
1052
1053  -docdir | --docdir | --docdi | --doc | --do)
1054    ac_prev=docdir ;;
1055  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056    docdir=$ac_optarg ;;
1057
1058  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059    ac_prev=dvidir ;;
1060  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061    dvidir=$ac_optarg ;;
1062
1063  -enable-* | --enable-*)
1064    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065    # Reject names that are not valid shell variable names.
1066    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067      as_fn_error $? "invalid feature name: $ac_useropt"
1068    ac_useropt_orig=$ac_useropt
1069    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070    case $ac_user_opts in
1071      *"
1072"enable_$ac_useropt"
1073"*) ;;
1074      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075	 ac_unrecognized_sep=', ';;
1076    esac
1077    eval enable_$ac_useropt=\$ac_optarg ;;
1078
1079  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081  | --exec | --exe | --ex)
1082    ac_prev=exec_prefix ;;
1083  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085  | --exec=* | --exe=* | --ex=*)
1086    exec_prefix=$ac_optarg ;;
1087
1088  -gas | --gas | --ga | --g)
1089    # Obsolete; use --with-gas.
1090    with_gas=yes ;;
1091
1092  -help | --help | --hel | --he | -h)
1093    ac_init_help=long ;;
1094  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095    ac_init_help=recursive ;;
1096  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097    ac_init_help=short ;;
1098
1099  -host | --host | --hos | --ho)
1100    ac_prev=host_alias ;;
1101  -host=* | --host=* | --hos=* | --ho=*)
1102    host_alias=$ac_optarg ;;
1103
1104  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105    ac_prev=htmldir ;;
1106  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107  | --ht=*)
1108    htmldir=$ac_optarg ;;
1109
1110  -includedir | --includedir | --includedi | --included | --include \
1111  | --includ | --inclu | --incl | --inc)
1112    ac_prev=includedir ;;
1113  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114  | --includ=* | --inclu=* | --incl=* | --inc=*)
1115    includedir=$ac_optarg ;;
1116
1117  -infodir | --infodir | --infodi | --infod | --info | --inf)
1118    ac_prev=infodir ;;
1119  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120    infodir=$ac_optarg ;;
1121
1122  -libdir | --libdir | --libdi | --libd)
1123    ac_prev=libdir ;;
1124  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125    libdir=$ac_optarg ;;
1126
1127  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128  | --libexe | --libex | --libe)
1129    ac_prev=libexecdir ;;
1130  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131  | --libexe=* | --libex=* | --libe=*)
1132    libexecdir=$ac_optarg ;;
1133
1134  -localedir | --localedir | --localedi | --localed | --locale)
1135    ac_prev=localedir ;;
1136  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137    localedir=$ac_optarg ;;
1138
1139  -localstatedir | --localstatedir | --localstatedi | --localstated \
1140  | --localstate | --localstat | --localsta | --localst | --locals)
1141    ac_prev=localstatedir ;;
1142  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144    localstatedir=$ac_optarg ;;
1145
1146  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147    ac_prev=mandir ;;
1148  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149    mandir=$ac_optarg ;;
1150
1151  -nfp | --nfp | --nf)
1152    # Obsolete; use --without-fp.
1153    with_fp=no ;;
1154
1155  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156  | --no-cr | --no-c | -n)
1157    no_create=yes ;;
1158
1159  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161    no_recursion=yes ;;
1162
1163  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165  | --oldin | --oldi | --old | --ol | --o)
1166    ac_prev=oldincludedir ;;
1167  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170    oldincludedir=$ac_optarg ;;
1171
1172  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173    ac_prev=prefix ;;
1174  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175    prefix=$ac_optarg ;;
1176
1177  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178  | --program-pre | --program-pr | --program-p)
1179    ac_prev=program_prefix ;;
1180  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182    program_prefix=$ac_optarg ;;
1183
1184  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185  | --program-suf | --program-su | --program-s)
1186    ac_prev=program_suffix ;;
1187  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189    program_suffix=$ac_optarg ;;
1190
1191  -program-transform-name | --program-transform-name \
1192  | --program-transform-nam | --program-transform-na \
1193  | --program-transform-n | --program-transform- \
1194  | --program-transform | --program-transfor \
1195  | --program-transfo | --program-transf \
1196  | --program-trans | --program-tran \
1197  | --progr-tra | --program-tr | --program-t)
1198    ac_prev=program_transform_name ;;
1199  -program-transform-name=* | --program-transform-name=* \
1200  | --program-transform-nam=* | --program-transform-na=* \
1201  | --program-transform-n=* | --program-transform-=* \
1202  | --program-transform=* | --program-transfor=* \
1203  | --program-transfo=* | --program-transf=* \
1204  | --program-trans=* | --program-tran=* \
1205  | --progr-tra=* | --program-tr=* | --program-t=*)
1206    program_transform_name=$ac_optarg ;;
1207
1208  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209    ac_prev=pdfdir ;;
1210  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211    pdfdir=$ac_optarg ;;
1212
1213  -psdir | --psdir | --psdi | --psd | --ps)
1214    ac_prev=psdir ;;
1215  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216    psdir=$ac_optarg ;;
1217
1218  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219  | -silent | --silent | --silen | --sile | --sil)
1220    silent=yes ;;
1221
1222  -runstatedir | --runstatedir | --runstatedi | --runstated \
1223  | --runstate | --runstat | --runsta | --runst | --runs \
1224  | --run | --ru | --r)
1225    ac_prev=runstatedir ;;
1226  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1227  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1228  | --run=* | --ru=* | --r=*)
1229    runstatedir=$ac_optarg ;;
1230
1231  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232    ac_prev=sbindir ;;
1233  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234  | --sbi=* | --sb=*)
1235    sbindir=$ac_optarg ;;
1236
1237  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239  | --sharedst | --shareds | --shared | --share | --shar \
1240  | --sha | --sh)
1241    ac_prev=sharedstatedir ;;
1242  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245  | --sha=* | --sh=*)
1246    sharedstatedir=$ac_optarg ;;
1247
1248  -site | --site | --sit)
1249    ac_prev=site ;;
1250  -site=* | --site=* | --sit=*)
1251    site=$ac_optarg ;;
1252
1253  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254    ac_prev=srcdir ;;
1255  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256    srcdir=$ac_optarg ;;
1257
1258  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259  | --syscon | --sysco | --sysc | --sys | --sy)
1260    ac_prev=sysconfdir ;;
1261  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263    sysconfdir=$ac_optarg ;;
1264
1265  -target | --target | --targe | --targ | --tar | --ta | --t)
1266    ac_prev=target_alias ;;
1267  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268    target_alias=$ac_optarg ;;
1269
1270  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271    verbose=yes ;;
1272
1273  -version | --version | --versio | --versi | --vers | -V)
1274    ac_init_version=: ;;
1275
1276  -with-* | --with-*)
1277    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278    # Reject names that are not valid shell variable names.
1279    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280      as_fn_error $? "invalid package name: $ac_useropt"
1281    ac_useropt_orig=$ac_useropt
1282    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283    case $ac_user_opts in
1284      *"
1285"with_$ac_useropt"
1286"*) ;;
1287      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288	 ac_unrecognized_sep=', ';;
1289    esac
1290    eval with_$ac_useropt=\$ac_optarg ;;
1291
1292  -without-* | --without-*)
1293    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294    # Reject names that are not valid shell variable names.
1295    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296      as_fn_error $? "invalid package name: $ac_useropt"
1297    ac_useropt_orig=$ac_useropt
1298    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299    case $ac_user_opts in
1300      *"
1301"with_$ac_useropt"
1302"*) ;;
1303      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304	 ac_unrecognized_sep=', ';;
1305    esac
1306    eval with_$ac_useropt=no ;;
1307
1308  --x)
1309    # Obsolete; use --with-x.
1310    with_x=yes ;;
1311
1312  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313  | --x-incl | --x-inc | --x-in | --x-i)
1314    ac_prev=x_includes ;;
1315  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317    x_includes=$ac_optarg ;;
1318
1319  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321    ac_prev=x_libraries ;;
1322  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324    x_libraries=$ac_optarg ;;
1325
1326  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327Try \`$0 --help' for more information"
1328    ;;
1329
1330  *=*)
1331    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332    # Reject names that are not valid shell variable names.
1333    case $ac_envvar in #(
1334      '' | [0-9]* | *[!_$as_cr_alnum]* )
1335      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336    esac
1337    eval $ac_envvar=\$ac_optarg
1338    export $ac_envvar ;;
1339
1340  *)
1341    # FIXME: should be removed in autoconf 3.0.
1342    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1346    ;;
1347
1348  esac
1349done
1350
1351if test -n "$ac_prev"; then
1352  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353  as_fn_error $? "missing argument to $ac_option"
1354fi
1355
1356if test -n "$ac_unrecognized_opts"; then
1357  case $enable_option_checking in
1358    no) ;;
1359    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361  esac
1362fi
1363
1364# Check all directory arguments for consistency.
1365for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366		datadir sysconfdir sharedstatedir localstatedir includedir \
1367		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368		libdir localedir mandir runstatedir
1369do
1370  eval ac_val=\$$ac_var
1371  # Remove trailing slashes.
1372  case $ac_val in
1373    */ )
1374      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375      eval $ac_var=\$ac_val;;
1376  esac
1377  # Be sure to have absolute directory names.
1378  case $ac_val in
1379    [\\/$]* | ?:[\\/]* )  continue;;
1380    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381  esac
1382  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383done
1384
1385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
1387# FIXME: To remove some day.
1388build=$build_alias
1389host=$host_alias
1390target=$target_alias
1391
1392# FIXME: To remove some day.
1393if test "x$host_alias" != x; then
1394  if test "x$build_alias" = x; then
1395    cross_compiling=maybe
1396  elif test "x$build_alias" != "x$host_alias"; then
1397    cross_compiling=yes
1398  fi
1399fi
1400
1401ac_tool_prefix=
1402test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404test "$silent" = yes && exec 6>/dev/null
1405
1406
1407ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408ac_ls_di=`ls -di .` &&
1409ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410  as_fn_error $? "working directory cannot be determined"
1411test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412  as_fn_error $? "pwd does not report name of working directory"
1413
1414
1415# Find the source files, if location was not specified.
1416if test -z "$srcdir"; then
1417  ac_srcdir_defaulted=yes
1418  # Try the directory containing this script, then the parent directory.
1419  ac_confdir=`$as_dirname -- "$as_myself" ||
1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421	 X"$as_myself" : 'X\(//\)[^/]' \| \
1422	 X"$as_myself" : 'X\(//\)$' \| \
1423	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424$as_echo X"$as_myself" |
1425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426	    s//\1/
1427	    q
1428	  }
1429	  /^X\(\/\/\)[^/].*/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)$/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\).*/{
1438	    s//\1/
1439	    q
1440	  }
1441	  s/.*/./; q'`
1442  srcdir=$ac_confdir
1443  if test ! -r "$srcdir/$ac_unique_file"; then
1444    srcdir=..
1445  fi
1446else
1447  ac_srcdir_defaulted=no
1448fi
1449if test ! -r "$srcdir/$ac_unique_file"; then
1450  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452fi
1453ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454ac_abs_confdir=`(
1455	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456	pwd)`
1457# When building in place, set srcdir=.
1458if test "$ac_abs_confdir" = "$ac_pwd"; then
1459  srcdir=.
1460fi
1461# Remove unnecessary trailing slashes from srcdir.
1462# Double slashes in file names in object file debugging info
1463# mess up M-x gdb in Emacs.
1464case $srcdir in
1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466esac
1467for ac_var in $ac_precious_vars; do
1468  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469  eval ac_env_${ac_var}_value=\$${ac_var}
1470  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472done
1473
1474#
1475# Report the --help message.
1476#
1477if test "$ac_init_help" = "long"; then
1478  # Omit some internal or obsolete options to make the list less imposing.
1479  # This message is too long to be a string in the A/UX 3.1 sh.
1480  cat <<_ACEOF
1481\`configure' configures libXfont 1.5.4 to adapt to many kinds of systems.
1482
1483Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488Defaults for the options are specified in brackets.
1489
1490Configuration:
1491  -h, --help              display this help and exit
1492      --help=short        display options specific to this package
1493      --help=recursive    display the short help of all the included packages
1494  -V, --version           display version information and exit
1495  -q, --quiet, --silent   do not print \`checking ...' messages
1496      --cache-file=FILE   cache test results in FILE [disabled]
1497  -C, --config-cache      alias for \`--cache-file=config.cache'
1498  -n, --no-create         do not create output files
1499      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501Installation directories:
1502  --prefix=PREFIX         install architecture-independent files in PREFIX
1503                          [$ac_default_prefix]
1504  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                          [PREFIX]
1506
1507By default, \`make install' will install all the files in
1508\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510for instance \`--prefix=\$HOME'.
1511
1512For better control, use the options below.
1513
1514Fine tuning of the installation directories:
1515  --bindir=DIR            user executables [EPREFIX/bin]
1516  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517  --libexecdir=DIR        program executables [EPREFIX/libexec]
1518  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1522  --libdir=DIR            object code libraries [EPREFIX/lib]
1523  --includedir=DIR        C header files [PREFIX/include]
1524  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1525  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1526  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1527  --infodir=DIR           info documentation [DATAROOTDIR/info]
1528  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1529  --mandir=DIR            man documentation [DATAROOTDIR/man]
1530  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXfont]
1531  --htmldir=DIR           html documentation [DOCDIR]
1532  --dvidir=DIR            dvi documentation [DOCDIR]
1533  --pdfdir=DIR            pdf documentation [DOCDIR]
1534  --psdir=DIR             ps documentation [DOCDIR]
1535_ACEOF
1536
1537  cat <<\_ACEOF
1538
1539Program names:
1540  --program-prefix=PREFIX            prepend PREFIX to installed program names
1541  --program-suffix=SUFFIX            append SUFFIX to installed program names
1542  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1543
1544System types:
1545  --build=BUILD     configure for building on BUILD [guessed]
1546  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1547_ACEOF
1548fi
1549
1550if test -n "$ac_init_help"; then
1551  case $ac_init_help in
1552     short | recursive ) echo "Configuration of libXfont 1.5.4:";;
1553   esac
1554  cat <<\_ACEOF
1555
1556Optional Features:
1557  --disable-option-checking  ignore unrecognized --enable/--with options
1558  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1559  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1560  --enable-silent-rules   less verbose build output (undo: "make V=1")
1561  --disable-silent-rules  verbose build output (undo: "make V=0")
1562  --enable-dependency-tracking
1563                          do not reject slow dependency extractors
1564  --disable-dependency-tracking
1565                          speeds up one-time build
1566  --enable-shared[=PKGS]  build shared libraries [default=yes]
1567  --enable-static[=PKGS]  build static libraries [default=yes]
1568  --enable-fast-install[=PKGS]
1569                          optimize for fast installation [default=yes]
1570  --disable-libtool-lock  avoid locking (might break parallel builds)
1571  --disable-selective-werror
1572                          Turn off selective compiler errors. (default:
1573                          enabled)
1574  --enable-strict-compilation
1575                          Enable all warnings from compiler and make them
1576                          errors (default: disabled)
1577  --enable-devel-docs     Enable building the developer documentation
1578                          (default: yes)
1579  --disable-freetype      Build freetype backend (default: enabled)
1580  --disable-builtins      Support builtin fonts (default: enabled)
1581  --disable-pcfformat     Support PCF format bitmap fonts (default: enabled)
1582  --disable-bdfformat     Support BDF format bitmap fonts (default: enabled)
1583  --enable-snfformat      Support SNF format bitmap fonts (default: disabled)
1584  --disable-fc            Support connections to xfs servers (default:
1585                          enabled)
1586  --enable-unix-transport Enable UNIX domain socket transport
1587  --enable-tcp-transport  Enable TCP socket transport
1588  --enable-ipv6           Enable IPv6 support
1589  --enable-local-transport
1590                          Enable os-specific local transport
1591
1592Optional Packages:
1593  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1594  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1595  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1596                          both]
1597  --with-aix-soname=aix|svr4|both
1598                          shared library versioning (aka "SONAME") variant to
1599                          provide on AIX, [default=aix].
1600  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1601  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1602                          compiler's sysroot if not specified).
1603  --with-xmlto            Use xmlto to regenerate documentation (default:
1604                          auto)
1605  --with-fop              Use fop to regenerate documentation (default: auto)
1606  --with-freetype-config=PROG
1607                          Use FreeType configuration program PROG
1608  --with-bzip2            Use libbz2 to support bzip2 compressed bitmap fonts
1609                          (default: no)
1610
1611Some influential environment variables:
1612  CC          C compiler command
1613  CFLAGS      C compiler flags
1614  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1615              nonstandard directory <lib dir>
1616  LIBS        libraries to pass to the linker, e.g. -l<library>
1617  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1618              you have headers in a nonstandard directory <include dir>
1619  CPP         C preprocessor
1620  LT_SYS_LIBRARY_PATH
1621              User-defined run-time library search path.
1622  PKG_CONFIG  path to pkg-config utility
1623  PKG_CONFIG_PATH
1624              directories to add to pkg-config's search path
1625  PKG_CONFIG_LIBDIR
1626              path overriding pkg-config's built-in search path
1627  XMLTO       Path to xmlto command
1628  FOP         Path to fop command
1629  FREETYPE_CFLAGS
1630              C compiler flags for FREETYPE, overriding pkg-config
1631  FREETYPE_LIBS
1632              linker flags for FREETYPE, overriding pkg-config
1633  XFONT_CFLAGS
1634              C compiler flags for XFONT, overriding pkg-config
1635  XFONT_LIBS  linker flags for XFONT, overriding pkg-config
1636
1637Use these variables to override the choices made by `configure' or to help
1638it to find libraries and programs with nonstandard names/locations.
1639
1640Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1641_ACEOF
1642ac_status=$?
1643fi
1644
1645if test "$ac_init_help" = "recursive"; then
1646  # If there are subdirs, report their specific --help.
1647  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648    test -d "$ac_dir" ||
1649      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650      continue
1651    ac_builddir=.
1652
1653case "$ac_dir" in
1654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655*)
1656  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657  # A ".." for each directory in $ac_dir_suffix.
1658  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659  case $ac_top_builddir_sub in
1660  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662  esac ;;
1663esac
1664ac_abs_top_builddir=$ac_pwd
1665ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666# for backward compatibility:
1667ac_top_builddir=$ac_top_build_prefix
1668
1669case $srcdir in
1670  .)  # We are building in place.
1671    ac_srcdir=.
1672    ac_top_srcdir=$ac_top_builddir_sub
1673    ac_abs_top_srcdir=$ac_pwd ;;
1674  [\\/]* | ?:[\\/]* )  # Absolute name.
1675    ac_srcdir=$srcdir$ac_dir_suffix;
1676    ac_top_srcdir=$srcdir
1677    ac_abs_top_srcdir=$srcdir ;;
1678  *) # Relative name.
1679    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680    ac_top_srcdir=$ac_top_build_prefix$srcdir
1681    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682esac
1683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685    cd "$ac_dir" || { ac_status=$?; continue; }
1686    # Check for guested configure.
1687    if test -f "$ac_srcdir/configure.gnu"; then
1688      echo &&
1689      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690    elif test -f "$ac_srcdir/configure"; then
1691      echo &&
1692      $SHELL "$ac_srcdir/configure" --help=recursive
1693    else
1694      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695    fi || ac_status=$?
1696    cd "$ac_pwd" || { ac_status=$?; break; }
1697  done
1698fi
1699
1700test -n "$ac_init_help" && exit $ac_status
1701if $ac_init_version; then
1702  cat <<\_ACEOF
1703libXfont configure 1.5.4
1704generated by GNU Autoconf 2.69
1705
1706Copyright (C) 2012 Free Software Foundation, Inc.
1707This configure script is free software; the Free Software Foundation
1708gives unlimited permission to copy, distribute and modify it.
1709_ACEOF
1710  exit
1711fi
1712
1713## ------------------------ ##
1714## Autoconf initialization. ##
1715## ------------------------ ##
1716
1717# ac_fn_c_try_compile LINENO
1718# --------------------------
1719# Try to compile conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_compile ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  rm -f conftest.$ac_objext
1724  if { { ac_try="$ac_compile"
1725case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_compile") 2>conftest.err
1732  ac_status=$?
1733  if test -s conftest.err; then
1734    grep -v '^ *+' conftest.err >conftest.er1
1735    cat conftest.er1 >&5
1736    mv -f conftest.er1 conftest.err
1737  fi
1738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; } && {
1740	 test -z "$ac_c_werror_flag" ||
1741	 test ! -s conftest.err
1742       } && test -s conftest.$ac_objext; then :
1743  ac_retval=0
1744else
1745  $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748	ac_retval=1
1749fi
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751  as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_compile
1754
1755# ac_fn_c_try_cpp LINENO
1756# ----------------------
1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_cpp ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  if { { ac_try="$ac_cpp conftest.$ac_ext"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769  ac_status=$?
1770  if test -s conftest.err; then
1771    grep -v '^ *+' conftest.err >conftest.er1
1772    cat conftest.er1 >&5
1773    mv -f conftest.er1 conftest.err
1774  fi
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } > conftest.i && {
1777	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778	 test ! -s conftest.err
1779       }; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785    ac_retval=1
1786fi
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_cpp
1791
1792# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795# the include files in INCLUDES and setting the cache variable VAR
1796# accordingly.
1797ac_fn_c_check_header_mongrel ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  if eval \${$3+:} false; then :
1801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804  $as_echo_n "(cached) " >&6
1805fi
1806eval ac_res=\$$3
1807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809else
1810  # Is the header compilable?
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812$as_echo_n "checking $2 usability... " >&6; }
1813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h.  */
1815$4
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819  ac_header_compiler=yes
1820else
1821  ac_header_compiler=no
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825$as_echo "$ac_header_compiler" >&6; }
1826
1827# Is the header present?
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829$as_echo_n "checking $2 presence... " >&6; }
1830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h.  */
1832#include <$2>
1833_ACEOF
1834if ac_fn_c_try_cpp "$LINENO"; then :
1835  ac_header_preproc=yes
1836else
1837  ac_header_preproc=no
1838fi
1839rm -f conftest.err conftest.i conftest.$ac_ext
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841$as_echo "$ac_header_preproc" >&6; }
1842
1843# So?  What about this header?
1844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845  yes:no: )
1846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850    ;;
1851  no:yes:* )
1852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1855$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1859$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862( $as_echo "## ---------------------------------------------------------------------- ##
1863## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1864## ---------------------------------------------------------------------- ##"
1865     ) | sed "s/^/$as_me: WARNING:     /" >&2
1866    ;;
1867esac
1868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
1870if eval \${$3+:} false; then :
1871  $as_echo_n "(cached) " >&6
1872else
1873  eval "$3=\$ac_header_compiler"
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878fi
1879  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881} # ac_fn_c_check_header_mongrel
1882
1883# ac_fn_c_try_run LINENO
1884# ----------------------
1885# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886# that executables *can* be run.
1887ac_fn_c_try_run ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  if { { ac_try="$ac_link"
1891case "(($ac_try" in
1892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893  *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897  (eval "$ac_link") 2>&5
1898  ac_status=$?
1899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901  { { case "(($ac_try" in
1902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903  *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907  (eval "$ac_try") 2>&5
1908  ac_status=$?
1909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910  test $ac_status = 0; }; }; then :
1911  ac_retval=0
1912else
1913  $as_echo "$as_me: program exited with status $ac_status" >&5
1914       $as_echo "$as_me: failed program was:" >&5
1915sed 's/^/| /' conftest.$ac_ext >&5
1916
1917       ac_retval=$ac_status
1918fi
1919  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921  as_fn_set_status $ac_retval
1922
1923} # ac_fn_c_try_run
1924
1925# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926# -------------------------------------------------------
1927# Tests whether HEADER exists and can be compiled using the include files in
1928# INCLUDES, setting the cache variable VAR accordingly.
1929ac_fn_c_check_header_compile ()
1930{
1931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933$as_echo_n "checking for $2... " >&6; }
1934if eval \${$3+:} false; then :
1935  $as_echo_n "(cached) " >&6
1936else
1937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940#include <$2>
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"; then :
1943  eval "$3=yes"
1944else
1945  eval "$3=no"
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949eval ac_res=\$$3
1950	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954} # ac_fn_c_check_header_compile
1955
1956# ac_fn_c_try_link LINENO
1957# -----------------------
1958# Try to link conftest.$ac_ext, and return whether this succeeded.
1959ac_fn_c_try_link ()
1960{
1961  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962  rm -f conftest.$ac_objext conftest$ac_exeext
1963  if { { ac_try="$ac_link"
1964case "(($ac_try" in
1965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966  *) ac_try_echo=$ac_try;;
1967esac
1968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969$as_echo "$ac_try_echo"; } >&5
1970  (eval "$ac_link") 2>conftest.err
1971  ac_status=$?
1972  if test -s conftest.err; then
1973    grep -v '^ *+' conftest.err >conftest.er1
1974    cat conftest.er1 >&5
1975    mv -f conftest.er1 conftest.err
1976  fi
1977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978  test $ac_status = 0; } && {
1979	 test -z "$ac_c_werror_flag" ||
1980	 test ! -s conftest.err
1981       } && test -s conftest$ac_exeext && {
1982	 test "$cross_compiling" = yes ||
1983	 test -x conftest$ac_exeext
1984       }; then :
1985  ac_retval=0
1986else
1987  $as_echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990	ac_retval=1
1991fi
1992  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994  # interfere with the next link command; also delete a directory that is
1995  # left behind by Apple's compiler.  We do this before executing the actions.
1996  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998  as_fn_set_status $ac_retval
1999
2000} # ac_fn_c_try_link
2001
2002# ac_fn_c_check_func LINENO FUNC VAR
2003# ----------------------------------
2004# Tests whether FUNC exists, setting the cache variable VAR accordingly
2005ac_fn_c_check_func ()
2006{
2007  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009$as_echo_n "checking for $2... " >&6; }
2010if eval \${$3+:} false; then :
2011  $as_echo_n "(cached) " >&6
2012else
2013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h.  */
2015/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2016   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2017#define $2 innocuous_$2
2018
2019/* System header to define __stub macros and hopefully few prototypes,
2020    which can conflict with char $2 (); below.
2021    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2022    <limits.h> exists even on freestanding compilers.  */
2023
2024#ifdef __STDC__
2025# include <limits.h>
2026#else
2027# include <assert.h>
2028#endif
2029
2030#undef $2
2031
2032/* Override any GCC internal prototype to avoid an error.
2033   Use char because int might match the return type of a GCC
2034   builtin and then its argument prototype would still apply.  */
2035#ifdef __cplusplus
2036extern "C"
2037#endif
2038char $2 ();
2039/* The GNU C library defines this for functions which it implements
2040    to always fail with ENOSYS.  Some functions are actually named
2041    something starting with __ and the normal name is an alias.  */
2042#if defined __stub_$2 || defined __stub___$2
2043choke me
2044#endif
2045
2046int
2047main ()
2048{
2049return $2 ();
2050  ;
2051  return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_link "$LINENO"; then :
2055  eval "$3=yes"
2056else
2057  eval "$3=no"
2058fi
2059rm -f core conftest.err conftest.$ac_objext \
2060    conftest$ac_exeext conftest.$ac_ext
2061fi
2062eval ac_res=\$$3
2063	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064$as_echo "$ac_res" >&6; }
2065  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067} # ac_fn_c_check_func
2068
2069# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2070# ---------------------------------------------
2071# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2072# accordingly.
2073ac_fn_c_check_decl ()
2074{
2075  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076  as_decl_name=`echo $2|sed 's/ *(.*//'`
2077  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2079$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2080if eval \${$3+:} false; then :
2081  $as_echo_n "(cached) " >&6
2082else
2083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085$4
2086int
2087main ()
2088{
2089#ifndef $as_decl_name
2090#ifdef __cplusplus
2091  (void) $as_decl_use;
2092#else
2093  (void) $as_decl_name;
2094#endif
2095#endif
2096
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102  eval "$3=yes"
2103else
2104  eval "$3=no"
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108eval ac_res=\$$3
2109	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_decl
2114
2115# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116# ----------------------------------------------------
2117# Tries to find if the field MEMBER exists in type AGGR, after including
2118# INCLUDES, setting cache variable VAR accordingly.
2119ac_fn_c_check_member ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123$as_echo_n "checking for $2.$3... " >&6; }
2124if eval \${$4+:} false; then :
2125  $as_echo_n "(cached) " >&6
2126else
2127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h.  */
2129$5
2130int
2131main ()
2132{
2133static $2 ac_aggr;
2134if (ac_aggr.$3)
2135return 0;
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141  eval "$4=yes"
2142else
2143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h.  */
2145$5
2146int
2147main ()
2148{
2149static $2 ac_aggr;
2150if (sizeof ac_aggr.$3)
2151return 0;
2152  ;
2153  return 0;
2154}
2155_ACEOF
2156if ac_fn_c_try_compile "$LINENO"; then :
2157  eval "$4=yes"
2158else
2159  eval "$4=no"
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164fi
2165eval ac_res=\$$4
2166	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167$as_echo "$ac_res" >&6; }
2168  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170} # ac_fn_c_check_member
2171
2172# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2173# -------------------------------------------
2174# Tests whether TYPE exists after having included INCLUDES, setting cache
2175# variable VAR accordingly.
2176ac_fn_c_check_type ()
2177{
2178  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180$as_echo_n "checking for $2... " >&6; }
2181if eval \${$3+:} false; then :
2182  $as_echo_n "(cached) " >&6
2183else
2184  eval "$3=no"
2185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h.  */
2187$4
2188int
2189main ()
2190{
2191if (sizeof ($2))
2192	 return 0;
2193  ;
2194  return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h.  */
2200$4
2201int
2202main ()
2203{
2204if (sizeof (($2)))
2205	    return 0;
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210if ac_fn_c_try_compile "$LINENO"; then :
2211
2212else
2213  eval "$3=yes"
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219eval ac_res=\$$3
2220	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223
2224} # ac_fn_c_check_type
2225cat >config.log <<_ACEOF
2226This file contains any messages produced by compilers while
2227running configure, to aid debugging if configure makes a mistake.
2228
2229It was created by libXfont $as_me 1.5.4, which was
2230generated by GNU Autoconf 2.69.  Invocation command line was
2231
2232  $ $0 $@
2233
2234_ACEOF
2235exec 5>>config.log
2236{
2237cat <<_ASUNAME
2238## --------- ##
2239## Platform. ##
2240## --------- ##
2241
2242hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2243uname -m = `(uname -m) 2>/dev/null || echo unknown`
2244uname -r = `(uname -r) 2>/dev/null || echo unknown`
2245uname -s = `(uname -s) 2>/dev/null || echo unknown`
2246uname -v = `(uname -v) 2>/dev/null || echo unknown`
2247
2248/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2249/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2250
2251/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2252/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2253/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2254/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2255/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2256/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2257/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2258
2259_ASUNAME
2260
2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262for as_dir in $PATH
2263do
2264  IFS=$as_save_IFS
2265  test -z "$as_dir" && as_dir=.
2266    $as_echo "PATH: $as_dir"
2267  done
2268IFS=$as_save_IFS
2269
2270} >&5
2271
2272cat >&5 <<_ACEOF
2273
2274
2275## ----------- ##
2276## Core tests. ##
2277## ----------- ##
2278
2279_ACEOF
2280
2281
2282# Keep a trace of the command line.
2283# Strip out --no-create and --no-recursion so they do not pile up.
2284# Strip out --silent because we don't want to record it for future runs.
2285# Also quote any args containing shell meta-characters.
2286# Make two passes to allow for proper duplicate-argument suppression.
2287ac_configure_args=
2288ac_configure_args0=
2289ac_configure_args1=
2290ac_must_keep_next=false
2291for ac_pass in 1 2
2292do
2293  for ac_arg
2294  do
2295    case $ac_arg in
2296    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2297    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2298    | -silent | --silent | --silen | --sile | --sil)
2299      continue ;;
2300    *\'*)
2301      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2302    esac
2303    case $ac_pass in
2304    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2305    2)
2306      as_fn_append ac_configure_args1 " '$ac_arg'"
2307      if test $ac_must_keep_next = true; then
2308	ac_must_keep_next=false # Got value, back to normal.
2309      else
2310	case $ac_arg in
2311	  *=* | --config-cache | -C | -disable-* | --disable-* \
2312	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2313	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2314	  | -with-* | --with-* | -without-* | --without-* | --x)
2315	    case "$ac_configure_args0 " in
2316	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2317	    esac
2318	    ;;
2319	  -* ) ac_must_keep_next=true ;;
2320	esac
2321      fi
2322      as_fn_append ac_configure_args " '$ac_arg'"
2323      ;;
2324    esac
2325  done
2326done
2327{ ac_configure_args0=; unset ac_configure_args0;}
2328{ ac_configure_args1=; unset ac_configure_args1;}
2329
2330# When interrupted or exit'd, cleanup temporary files, and complete
2331# config.log.  We remove comments because anyway the quotes in there
2332# would cause problems or look ugly.
2333# WARNING: Use '\'' to represent an apostrophe within the trap.
2334# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2335trap 'exit_status=$?
2336  # Save into config.log some information that might help in debugging.
2337  {
2338    echo
2339
2340    $as_echo "## ---------------- ##
2341## Cache variables. ##
2342## ---------------- ##"
2343    echo
2344    # The following way of writing the cache mishandles newlines in values,
2345(
2346  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2347    eval ac_val=\$$ac_var
2348    case $ac_val in #(
2349    *${as_nl}*)
2350      case $ac_var in #(
2351      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2352$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2353      esac
2354      case $ac_var in #(
2355      _ | IFS | as_nl) ;; #(
2356      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2357      *) { eval $ac_var=; unset $ac_var;} ;;
2358      esac ;;
2359    esac
2360  done
2361  (set) 2>&1 |
2362    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2363    *${as_nl}ac_space=\ *)
2364      sed -n \
2365	"s/'\''/'\''\\\\'\'''\''/g;
2366	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2367      ;; #(
2368    *)
2369      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2370      ;;
2371    esac |
2372    sort
2373)
2374    echo
2375
2376    $as_echo "## ----------------- ##
2377## Output variables. ##
2378## ----------------- ##"
2379    echo
2380    for ac_var in $ac_subst_vars
2381    do
2382      eval ac_val=\$$ac_var
2383      case $ac_val in
2384      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385      esac
2386      $as_echo "$ac_var='\''$ac_val'\''"
2387    done | sort
2388    echo
2389
2390    if test -n "$ac_subst_files"; then
2391      $as_echo "## ------------------- ##
2392## File substitutions. ##
2393## ------------------- ##"
2394      echo
2395      for ac_var in $ac_subst_files
2396      do
2397	eval ac_val=\$$ac_var
2398	case $ac_val in
2399	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400	esac
2401	$as_echo "$ac_var='\''$ac_val'\''"
2402      done | sort
2403      echo
2404    fi
2405
2406    if test -s confdefs.h; then
2407      $as_echo "## ----------- ##
2408## confdefs.h. ##
2409## ----------- ##"
2410      echo
2411      cat confdefs.h
2412      echo
2413    fi
2414    test "$ac_signal" != 0 &&
2415      $as_echo "$as_me: caught signal $ac_signal"
2416    $as_echo "$as_me: exit $exit_status"
2417  } >&5
2418  rm -f core *.core core.conftest.* &&
2419    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2420    exit $exit_status
2421' 0
2422for ac_signal in 1 2 13 15; do
2423  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2424done
2425ac_signal=0
2426
2427# confdefs.h avoids OS command line length limits that DEFS can exceed.
2428rm -f -r conftest* confdefs.h
2429
2430$as_echo "/* confdefs.h */" > confdefs.h
2431
2432# Predefined preprocessor variables.
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_NAME "$PACKAGE_NAME"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_VERSION "$PACKAGE_VERSION"
2444_ACEOF
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_STRING "$PACKAGE_STRING"
2448_ACEOF
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2452_ACEOF
2453
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_URL "$PACKAGE_URL"
2456_ACEOF
2457
2458
2459# Let the site file select an alternate cache file if it wants to.
2460# Prefer an explicitly selected file to automatically selected ones.
2461ac_site_file1=NONE
2462ac_site_file2=NONE
2463if test -n "$CONFIG_SITE"; then
2464  # We do not want a PATH search for config.site.
2465  case $CONFIG_SITE in #((
2466    -*)  ac_site_file1=./$CONFIG_SITE;;
2467    */*) ac_site_file1=$CONFIG_SITE;;
2468    *)   ac_site_file1=./$CONFIG_SITE;;
2469  esac
2470elif test "x$prefix" != xNONE; then
2471  ac_site_file1=$prefix/share/config.site
2472  ac_site_file2=$prefix/etc/config.site
2473else
2474  ac_site_file1=$ac_default_prefix/share/config.site
2475  ac_site_file2=$ac_default_prefix/etc/config.site
2476fi
2477for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2478do
2479  test "x$ac_site_file" = xNONE && continue
2480  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2481    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2482$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2483    sed 's/^/| /' "$ac_site_file" >&5
2484    . "$ac_site_file" \
2485      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487as_fn_error $? "failed to load site script $ac_site_file
2488See \`config.log' for more details" "$LINENO" 5; }
2489  fi
2490done
2491
2492if test -r "$cache_file"; then
2493  # Some versions of bash will fail to source /dev/null (special files
2494  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2495  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2496    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2497$as_echo "$as_me: loading cache $cache_file" >&6;}
2498    case $cache_file in
2499      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2500      *)                      . "./$cache_file";;
2501    esac
2502  fi
2503else
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2505$as_echo "$as_me: creating cache $cache_file" >&6;}
2506  >$cache_file
2507fi
2508
2509# Check that the precious variables saved in the cache have kept the same
2510# value.
2511ac_cache_corrupted=false
2512for ac_var in $ac_precious_vars; do
2513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2514  eval ac_new_set=\$ac_env_${ac_var}_set
2515  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2516  eval ac_new_val=\$ac_env_${ac_var}_value
2517  case $ac_old_set,$ac_new_set in
2518    set,)
2519      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2520$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2521      ac_cache_corrupted=: ;;
2522    ,set)
2523      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2524$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2525      ac_cache_corrupted=: ;;
2526    ,);;
2527    *)
2528      if test "x$ac_old_val" != "x$ac_new_val"; then
2529	# differences in whitespace do not lead to failure.
2530	ac_old_val_w=`echo x $ac_old_val`
2531	ac_new_val_w=`echo x $ac_new_val`
2532	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2533	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2534$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2535	  ac_cache_corrupted=:
2536	else
2537	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2538$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2539	  eval $ac_var=\$ac_old_val
2540	fi
2541	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2542$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2543	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2544$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2545      fi;;
2546  esac
2547  # Pass precious variables to config.status.
2548  if test "$ac_new_set" = set; then
2549    case $ac_new_val in
2550    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2551    *) ac_arg=$ac_var=$ac_new_val ;;
2552    esac
2553    case " $ac_configure_args " in
2554      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2555      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2556    esac
2557  fi
2558done
2559if $ac_cache_corrupted; then
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2563$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2564  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2565fi
2566## -------------------- ##
2567## Main body of script. ##
2568## -------------------- ##
2569
2570ac_ext=c
2571ac_cpp='$CPP $CPPFLAGS'
2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576
2577
2578ac_config_headers="$ac_config_headers config.h include/X11/fonts/fontconf.h"
2579
2580
2581# Initialize Automake
2582am__api_version='1.15'
2583
2584ac_aux_dir=
2585for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2586  if test -f "$ac_dir/install-sh"; then
2587    ac_aux_dir=$ac_dir
2588    ac_install_sh="$ac_aux_dir/install-sh -c"
2589    break
2590  elif test -f "$ac_dir/install.sh"; then
2591    ac_aux_dir=$ac_dir
2592    ac_install_sh="$ac_aux_dir/install.sh -c"
2593    break
2594  elif test -f "$ac_dir/shtool"; then
2595    ac_aux_dir=$ac_dir
2596    ac_install_sh="$ac_aux_dir/shtool install -c"
2597    break
2598  fi
2599done
2600if test -z "$ac_aux_dir"; then
2601  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2602fi
2603
2604# These three variables are undocumented and unsupported,
2605# and are intended to be withdrawn in a future Autoconf release.
2606# They can cause serious problems if a builder's source tree is in a directory
2607# whose full name contains unusual characters.
2608ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2609ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2610ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2611
2612
2613# Find a good install program.  We prefer a C program (faster),
2614# so one script is as good as another.  But avoid the broken or
2615# incompatible versions:
2616# SysV /etc/install, /usr/sbin/install
2617# SunOS /usr/etc/install
2618# IRIX /sbin/install
2619# AIX /bin/install
2620# AmigaOS /C/install, which installs bootblocks on floppy discs
2621# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2622# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2623# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2624# OS/2's system install, which has a completely different semantic
2625# ./install, which can be erroneously created by make from ./install.sh.
2626# Reject install programs that cannot install multiple files.
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2628$as_echo_n "checking for a BSD-compatible install... " >&6; }
2629if test -z "$INSTALL"; then
2630if ${ac_cv_path_install+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638    # Account for people who put trailing slashes in PATH elements.
2639case $as_dir/ in #((
2640  ./ | .// | /[cC]/* | \
2641  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2642  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2643  /usr/ucb/* ) ;;
2644  *)
2645    # OSF1 and SCO ODT 3.0 have their own names for install.
2646    # Don't use installbsd from OSF since it installs stuff as root
2647    # by default.
2648    for ac_prog in ginstall scoinst install; do
2649      for ac_exec_ext in '' $ac_executable_extensions; do
2650	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2651	  if test $ac_prog = install &&
2652	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2653	    # AIX install.  It has an incompatible calling convention.
2654	    :
2655	  elif test $ac_prog = install &&
2656	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657	    # program-specific install script used by HP pwplus--don't use.
2658	    :
2659	  else
2660	    rm -rf conftest.one conftest.two conftest.dir
2661	    echo one > conftest.one
2662	    echo two > conftest.two
2663	    mkdir conftest.dir
2664	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2665	      test -s conftest.one && test -s conftest.two &&
2666	      test -s conftest.dir/conftest.one &&
2667	      test -s conftest.dir/conftest.two
2668	    then
2669	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2670	      break 3
2671	    fi
2672	  fi
2673	fi
2674      done
2675    done
2676    ;;
2677esac
2678
2679  done
2680IFS=$as_save_IFS
2681
2682rm -rf conftest.one conftest.two conftest.dir
2683
2684fi
2685  if test "${ac_cv_path_install+set}" = set; then
2686    INSTALL=$ac_cv_path_install
2687  else
2688    # As a last resort, use the slow shell script.  Don't cache a
2689    # value for INSTALL within a source directory, because that will
2690    # break other packages using the cache if that directory is
2691    # removed, or if the value is a relative name.
2692    INSTALL=$ac_install_sh
2693  fi
2694fi
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2696$as_echo "$INSTALL" >&6; }
2697
2698# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2699# It thinks the first close brace ends the variable substitution.
2700test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2701
2702test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2703
2704test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2705
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2707$as_echo_n "checking whether build environment is sane... " >&6; }
2708# Reject unsafe characters in $srcdir or the absolute working directory
2709# name.  Accept space and tab only in the latter.
2710am_lf='
2711'
2712case `pwd` in
2713  *[\\\"\#\$\&\'\`$am_lf]*)
2714    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2715esac
2716case $srcdir in
2717  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2718    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2719esac
2720
2721# Do 'set' in a subshell so we don't clobber the current shell's
2722# arguments.  Must try -L first in case configure is actually a
2723# symlink; some systems play weird games with the mod time of symlinks
2724# (eg FreeBSD returns the mod time of the symlink's containing
2725# directory).
2726if (
2727   am_has_slept=no
2728   for am_try in 1 2; do
2729     echo "timestamp, slept: $am_has_slept" > conftest.file
2730     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2731     if test "$*" = "X"; then
2732	# -L didn't work.
2733	set X `ls -t "$srcdir/configure" conftest.file`
2734     fi
2735     if test "$*" != "X $srcdir/configure conftest.file" \
2736	&& test "$*" != "X conftest.file $srcdir/configure"; then
2737
2738	# If neither matched, then we have a broken ls.  This can happen
2739	# if, for instance, CONFIG_SHELL is bash and it inherits a
2740	# broken ls alias from the environment.  This has actually
2741	# happened.  Such a system could not be considered "sane".
2742	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2743  alias in your environment" "$LINENO" 5
2744     fi
2745     if test "$2" = conftest.file || test $am_try -eq 2; then
2746       break
2747     fi
2748     # Just in case.
2749     sleep 1
2750     am_has_slept=yes
2751   done
2752   test "$2" = conftest.file
2753   )
2754then
2755   # Ok.
2756   :
2757else
2758   as_fn_error $? "newly created file is older than distributed files!
2759Check your system clock" "$LINENO" 5
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2762$as_echo "yes" >&6; }
2763# If we didn't sleep, we still need to ensure time stamps of config.status and
2764# generated files are strictly newer.
2765am_sleep_pid=
2766if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2767  ( sleep 1 ) &
2768  am_sleep_pid=$!
2769fi
2770
2771rm -f conftest.file
2772
2773test "$program_prefix" != NONE &&
2774  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2775# Use a double $ so make ignores it.
2776test "$program_suffix" != NONE &&
2777  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2778# Double any \ or $.
2779# By default was `s,x,x', remove it if useless.
2780ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2781program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2782
2783# Expand $ac_aux_dir to an absolute path.
2784am_aux_dir=`cd "$ac_aux_dir" && pwd`
2785
2786if test x"${MISSING+set}" != xset; then
2787  case $am_aux_dir in
2788  *\ * | *\	*)
2789    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2790  *)
2791    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2792  esac
2793fi
2794# Use eval to expand $SHELL
2795if eval "$MISSING --is-lightweight"; then
2796  am_missing_run="$MISSING "
2797else
2798  am_missing_run=
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2800$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2801fi
2802
2803if test x"${install_sh+set}" != xset; then
2804  case $am_aux_dir in
2805  *\ * | *\	*)
2806    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2807  *)
2808    install_sh="\${SHELL} $am_aux_dir/install-sh"
2809  esac
2810fi
2811
2812# Installed binaries are usually stripped using 'strip' when the user
2813# run "make install-strip".  However 'strip' might not be the right
2814# tool to use in cross-compilation environments, therefore Automake
2815# will honor the 'STRIP' environment variable to overrule this program.
2816if test "$cross_compiling" != no; then
2817  if test -n "$ac_tool_prefix"; then
2818  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2819set dummy ${ac_tool_prefix}strip; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_prog_STRIP+:} false; then :
2823  $as_echo_n "(cached) " >&6
2824else
2825  if test -n "$STRIP"; then
2826  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833    for ac_exec_ext in '' $ac_executable_extensions; do
2834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845STRIP=$ac_cv_prog_STRIP
2846if test -n "$STRIP"; then
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2848$as_echo "$STRIP" >&6; }
2849else
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854
2855fi
2856if test -z "$ac_cv_prog_STRIP"; then
2857  ac_ct_STRIP=$STRIP
2858  # Extract the first word of "strip", so it can be a program name with args.
2859set dummy strip; ac_word=$2
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861$as_echo_n "checking for $ac_word... " >&6; }
2862if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  if test -n "$ac_ct_STRIP"; then
2866  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871  IFS=$as_save_IFS
2872  test -z "$as_dir" && as_dir=.
2873    for ac_exec_ext in '' $ac_executable_extensions; do
2874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875    ac_cv_prog_ac_ct_STRIP="strip"
2876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880  done
2881IFS=$as_save_IFS
2882
2883fi
2884fi
2885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2886if test -n "$ac_ct_STRIP"; then
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2888$as_echo "$ac_ct_STRIP" >&6; }
2889else
2890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891$as_echo "no" >&6; }
2892fi
2893
2894  if test "x$ac_ct_STRIP" = x; then
2895    STRIP=":"
2896  else
2897    case $cross_compiling:$ac_tool_warned in
2898yes:)
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901ac_tool_warned=yes ;;
2902esac
2903    STRIP=$ac_ct_STRIP
2904  fi
2905else
2906  STRIP="$ac_cv_prog_STRIP"
2907fi
2908
2909fi
2910INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2911
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2913$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2914if test -z "$MKDIR_P"; then
2915  if ${ac_cv_path_mkdir+:} false; then :
2916  $as_echo_n "(cached) " >&6
2917else
2918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923    for ac_prog in mkdir gmkdir; do
2924	 for ac_exec_ext in '' $ac_executable_extensions; do
2925	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2926	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2927	     'mkdir (GNU coreutils) '* | \
2928	     'mkdir (coreutils) '* | \
2929	     'mkdir (fileutils) '4.1*)
2930	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2931	       break 3;;
2932	   esac
2933	 done
2934       done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939
2940  test -d ./--version && rmdir ./--version
2941  if test "${ac_cv_path_mkdir+set}" = set; then
2942    MKDIR_P="$ac_cv_path_mkdir -p"
2943  else
2944    # As a last resort, use the slow shell script.  Don't cache a
2945    # value for MKDIR_P within a source directory, because that will
2946    # break other packages using the cache if that directory is
2947    # removed, or if the value is a relative name.
2948    MKDIR_P="$ac_install_sh -d"
2949  fi
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2952$as_echo "$MKDIR_P" >&6; }
2953
2954for ac_prog in gawk mawk nawk awk
2955do
2956  # Extract the first word of "$ac_prog", so it can be a program name with args.
2957set dummy $ac_prog; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if ${ac_cv_prog_AWK+:} false; then :
2961  $as_echo_n "(cached) " >&6
2962else
2963  if test -n "$AWK"; then
2964  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  test -z "$as_dir" && as_dir=.
2971    for ac_exec_ext in '' $ac_executable_extensions; do
2972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973    ac_cv_prog_AWK="$ac_prog"
2974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975    break 2
2976  fi
2977done
2978  done
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983AWK=$ac_cv_prog_AWK
2984if test -n "$AWK"; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2986$as_echo "$AWK" >&6; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992
2993  test -n "$AWK" && break
2994done
2995
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2997$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2998set x ${MAKE-make}
2999ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3000if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3001  $as_echo_n "(cached) " >&6
3002else
3003  cat >conftest.make <<\_ACEOF
3004SHELL = /bin/sh
3005all:
3006	@echo '@@@%%%=$(MAKE)=@@@%%%'
3007_ACEOF
3008# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3009case `${MAKE-make} -f conftest.make 2>/dev/null` in
3010  *@@@%%%=?*=@@@%%%*)
3011    eval ac_cv_prog_make_${ac_make}_set=yes;;
3012  *)
3013    eval ac_cv_prog_make_${ac_make}_set=no;;
3014esac
3015rm -f conftest.make
3016fi
3017if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019$as_echo "yes" >&6; }
3020  SET_MAKE=
3021else
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024  SET_MAKE="MAKE=${MAKE-make}"
3025fi
3026
3027rm -rf .tst 2>/dev/null
3028mkdir .tst 2>/dev/null
3029if test -d .tst; then
3030  am__leading_dot=.
3031else
3032  am__leading_dot=_
3033fi
3034rmdir .tst 2>/dev/null
3035
3036# Check whether --enable-silent-rules was given.
3037if test "${enable_silent_rules+set}" = set; then :
3038  enableval=$enable_silent_rules;
3039fi
3040
3041case $enable_silent_rules in # (((
3042  yes) AM_DEFAULT_VERBOSITY=0;;
3043   no) AM_DEFAULT_VERBOSITY=1;;
3044    *) AM_DEFAULT_VERBOSITY=1;;
3045esac
3046am_make=${MAKE-make}
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3048$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3049if ${am_cv_make_support_nested_variables+:} false; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  if $as_echo 'TRUE=$(BAR$(V))
3053BAR0=false
3054BAR1=true
3055V=1
3056am__doit:
3057	@$(TRUE)
3058.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3059  am_cv_make_support_nested_variables=yes
3060else
3061  am_cv_make_support_nested_variables=no
3062fi
3063fi
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3065$as_echo "$am_cv_make_support_nested_variables" >&6; }
3066if test $am_cv_make_support_nested_variables = yes; then
3067    AM_V='$(V)'
3068  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3069else
3070  AM_V=$AM_DEFAULT_VERBOSITY
3071  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3072fi
3073AM_BACKSLASH='\'
3074
3075if test "`cd $srcdir && pwd`" != "`pwd`"; then
3076  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3077  # is not polluted with repeated "-I."
3078  am__isrc=' -I$(srcdir)'
3079  # test to see if srcdir already configured
3080  if test -f $srcdir/config.status; then
3081    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3082  fi
3083fi
3084
3085# test whether we have cygpath
3086if test -z "$CYGPATH_W"; then
3087  if (cygpath --version) >/dev/null 2>/dev/null; then
3088    CYGPATH_W='cygpath -w'
3089  else
3090    CYGPATH_W=echo
3091  fi
3092fi
3093
3094
3095# Define the identity of the package.
3096 PACKAGE='libXfont'
3097 VERSION='1.5.4'
3098
3099
3100cat >>confdefs.h <<_ACEOF
3101#define PACKAGE "$PACKAGE"
3102_ACEOF
3103
3104
3105cat >>confdefs.h <<_ACEOF
3106#define VERSION "$VERSION"
3107_ACEOF
3108
3109# Some tools Automake needs.
3110
3111ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3112
3113
3114AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3115
3116
3117AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3118
3119
3120AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3121
3122
3123MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3124
3125# For better backward compatibility.  To be removed once Automake 1.9.x
3126# dies out for good.  For more background, see:
3127# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3128# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3129mkdir_p='$(MKDIR_P)'
3130
3131# We need awk for the "check" target (and possibly the TAP driver).  The
3132# system "awk" is bad on some platforms.
3133# Always define AMTAR for backward compatibility.  Yes, it's still used
3134# in the wild :-(  We should find a proper way to deprecate it ...
3135AMTAR='$${TAR-tar}'
3136
3137
3138# We'll loop over all known methods to create a tar archive until one works.
3139_am_tools='gnutar  pax cpio none'
3140
3141am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3142
3143
3144
3145
3146
3147
3148# POSIX will say in a future version that running "rm -f" with no argument
3149# is OK; and we want to be able to make that assumption in our Makefile
3150# recipes.  So use an aggressive probe to check that the usage we want is
3151# actually supported "in the wild" to an acceptable degree.
3152# See automake bug#10828.
3153# To make any issue more visible, cause the running configure to be aborted
3154# by default if the 'rm' program in use doesn't match our expectations; the
3155# user can still override this though.
3156if rm -f && rm -fr && rm -rf; then : OK; else
3157  cat >&2 <<'END'
3158Oops!
3159
3160Your 'rm' program seems unable to run without file operands specified
3161on the command line, even when the '-f' option is present.  This is contrary
3162to the behaviour of most rm programs out there, and not conforming with
3163the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3164
3165Please tell bug-automake@gnu.org about your system, including the value
3166of your $PATH and any error possibly output before this message.  This
3167can help us improve future automake versions.
3168
3169END
3170  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3171    echo 'Configuration will proceed anyway, since you have set the' >&2
3172    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3173    echo >&2
3174  else
3175    cat >&2 <<'END'
3176Aborting the configuration process, to ensure you take notice of the issue.
3177
3178You can download and install GNU coreutils to get an 'rm' implementation
3179that behaves properly: <http://www.gnu.org/software/coreutils/>.
3180
3181If you want to complete the configuration process using your problematic
3182'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3183to "yes", and re-run configure.
3184
3185END
3186    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3187  fi
3188fi
3189
3190
3191# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3192# Must be called before any macros that run the compiler (like
3193# AC_PROG_LIBTOOL) to avoid autoconf errors.
3194DEPDIR="${am__leading_dot}deps"
3195
3196ac_config_commands="$ac_config_commands depfiles"
3197
3198
3199am_make=${MAKE-make}
3200cat > confinc << 'END'
3201am__doit:
3202	@echo this is the am__doit target
3203.PHONY: am__doit
3204END
3205# If we don't find an include directive, just comment out the code.
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3207$as_echo_n "checking for style of include used by $am_make... " >&6; }
3208am__include="#"
3209am__quote=
3210_am_result=none
3211# First try GNU make style include.
3212echo "include confinc" > confmf
3213# Ignore all kinds of additional output from 'make'.
3214case `$am_make -s -f confmf 2> /dev/null` in #(
3215*the\ am__doit\ target*)
3216  am__include=include
3217  am__quote=
3218  _am_result=GNU
3219  ;;
3220esac
3221# Now try BSD make style include.
3222if test "$am__include" = "#"; then
3223   echo '.include "confinc"' > confmf
3224   case `$am_make -s -f confmf 2> /dev/null` in #(
3225   *the\ am__doit\ target*)
3226     am__include=.include
3227     am__quote="\""
3228     _am_result=BSD
3229     ;;
3230   esac
3231fi
3232
3233
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3235$as_echo "$_am_result" >&6; }
3236rm -f confinc confmf
3237
3238# Check whether --enable-dependency-tracking was given.
3239if test "${enable_dependency_tracking+set}" = set; then :
3240  enableval=$enable_dependency_tracking;
3241fi
3242
3243if test "x$enable_dependency_tracking" != xno; then
3244  am_depcomp="$ac_aux_dir/depcomp"
3245  AMDEPBACKSLASH='\'
3246  am__nodep='_no'
3247fi
3248 if test "x$enable_dependency_tracking" != xno; then
3249  AMDEP_TRUE=
3250  AMDEP_FALSE='#'
3251else
3252  AMDEP_TRUE='#'
3253  AMDEP_FALSE=
3254fi
3255
3256
3257ac_ext=c
3258ac_cpp='$CPP $CPPFLAGS'
3259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262if test -n "$ac_tool_prefix"; then
3263  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3264set dummy ${ac_tool_prefix}gcc; ac_word=$2
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266$as_echo_n "checking for $ac_word... " >&6; }
3267if ${ac_cv_prog_CC+:} false; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  if test -n "$CC"; then
3271  ac_cv_prog_CC="$CC" # Let the user override the test.
3272else
3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278    for ac_exec_ext in '' $ac_executable_extensions; do
3279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282    break 2
3283  fi
3284done
3285  done
3286IFS=$as_save_IFS
3287
3288fi
3289fi
3290CC=$ac_cv_prog_CC
3291if test -n "$CC"; then
3292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293$as_echo "$CC" >&6; }
3294else
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296$as_echo "no" >&6; }
3297fi
3298
3299
3300fi
3301if test -z "$ac_cv_prog_CC"; then
3302  ac_ct_CC=$CC
3303  # Extract the first word of "gcc", so it can be a program name with args.
3304set dummy gcc; ac_word=$2
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306$as_echo_n "checking for $ac_word... " >&6; }
3307if ${ac_cv_prog_ac_ct_CC+:} false; then :
3308  $as_echo_n "(cached) " >&6
3309else
3310  if test -n "$ac_ct_CC"; then
3311  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318    for ac_exec_ext in '' $ac_executable_extensions; do
3319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320    ac_cv_prog_ac_ct_CC="gcc"
3321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325  done
3326IFS=$as_save_IFS
3327
3328fi
3329fi
3330ac_ct_CC=$ac_cv_prog_ac_ct_CC
3331if test -n "$ac_ct_CC"; then
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3333$as_echo "$ac_ct_CC" >&6; }
3334else
3335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336$as_echo "no" >&6; }
3337fi
3338
3339  if test "x$ac_ct_CC" = x; then
3340    CC=""
3341  else
3342    case $cross_compiling:$ac_tool_warned in
3343yes:)
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346ac_tool_warned=yes ;;
3347esac
3348    CC=$ac_ct_CC
3349  fi
3350else
3351  CC="$ac_cv_prog_CC"
3352fi
3353
3354if test -z "$CC"; then
3355          if test -n "$ac_tool_prefix"; then
3356    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357set dummy ${ac_tool_prefix}cc; ac_word=$2
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359$as_echo_n "checking for $ac_word... " >&6; }
3360if ${ac_cv_prog_CC+:} false; then :
3361  $as_echo_n "(cached) " >&6
3362else
3363  if test -n "$CC"; then
3364  ac_cv_prog_CC="$CC" # Let the user override the test.
3365else
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369  IFS=$as_save_IFS
3370  test -z "$as_dir" && as_dir=.
3371    for ac_exec_ext in '' $ac_executable_extensions; do
3372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373    ac_cv_prog_CC="${ac_tool_prefix}cc"
3374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375    break 2
3376  fi
3377done
3378  done
3379IFS=$as_save_IFS
3380
3381fi
3382fi
3383CC=$ac_cv_prog_CC
3384if test -n "$CC"; then
3385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386$as_echo "$CC" >&6; }
3387else
3388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389$as_echo "no" >&6; }
3390fi
3391
3392
3393  fi
3394fi
3395if test -z "$CC"; then
3396  # Extract the first word of "cc", so it can be a program name with args.
3397set dummy cc; ac_word=$2
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399$as_echo_n "checking for $ac_word... " >&6; }
3400if ${ac_cv_prog_CC+:} false; then :
3401  $as_echo_n "(cached) " >&6
3402else
3403  if test -n "$CC"; then
3404  ac_cv_prog_CC="$CC" # Let the user override the test.
3405else
3406  ac_prog_rejected=no
3407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408for as_dir in $PATH
3409do
3410  IFS=$as_save_IFS
3411  test -z "$as_dir" && as_dir=.
3412    for ac_exec_ext in '' $ac_executable_extensions; do
3413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3415       ac_prog_rejected=yes
3416       continue
3417     fi
3418    ac_cv_prog_CC="cc"
3419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420    break 2
3421  fi
3422done
3423  done
3424IFS=$as_save_IFS
3425
3426if test $ac_prog_rejected = yes; then
3427  # We found a bogon in the path, so make sure we never use it.
3428  set dummy $ac_cv_prog_CC
3429  shift
3430  if test $# != 0; then
3431    # We chose a different compiler from the bogus one.
3432    # However, it has the same basename, so the bogon will be chosen
3433    # first if we set CC to just the basename; use the full file name.
3434    shift
3435    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3436  fi
3437fi
3438fi
3439fi
3440CC=$ac_cv_prog_CC
3441if test -n "$CC"; then
3442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443$as_echo "$CC" >&6; }
3444else
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446$as_echo "no" >&6; }
3447fi
3448
3449
3450fi
3451if test -z "$CC"; then
3452  if test -n "$ac_tool_prefix"; then
3453  for ac_prog in cl.exe
3454  do
3455    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3456set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458$as_echo_n "checking for $ac_word... " >&6; }
3459if ${ac_cv_prog_CC+:} false; then :
3460  $as_echo_n "(cached) " >&6
3461else
3462  if test -n "$CC"; then
3463  ac_cv_prog_CC="$CC" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468  IFS=$as_save_IFS
3469  test -z "$as_dir" && as_dir=.
3470    for ac_exec_ext in '' $ac_executable_extensions; do
3471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474    break 2
3475  fi
3476done
3477  done
3478IFS=$as_save_IFS
3479
3480fi
3481fi
3482CC=$ac_cv_prog_CC
3483if test -n "$CC"; then
3484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485$as_echo "$CC" >&6; }
3486else
3487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492    test -n "$CC" && break
3493  done
3494fi
3495if test -z "$CC"; then
3496  ac_ct_CC=$CC
3497  for ac_prog in cl.exe
3498do
3499  # Extract the first word of "$ac_prog", so it can be a program name with args.
3500set dummy $ac_prog; ac_word=$2
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502$as_echo_n "checking for $ac_word... " >&6; }
3503if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504  $as_echo_n "(cached) " >&6
3505else
3506  if test -n "$ac_ct_CC"; then
3507  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508else
3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH
3511do
3512  IFS=$as_save_IFS
3513  test -z "$as_dir" && as_dir=.
3514    for ac_exec_ext in '' $ac_executable_extensions; do
3515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516    ac_cv_prog_ac_ct_CC="$ac_prog"
3517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518    break 2
3519  fi
3520done
3521  done
3522IFS=$as_save_IFS
3523
3524fi
3525fi
3526ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527if test -n "$ac_ct_CC"; then
3528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529$as_echo "$ac_ct_CC" >&6; }
3530else
3531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532$as_echo "no" >&6; }
3533fi
3534
3535
3536  test -n "$ac_ct_CC" && break
3537done
3538
3539  if test "x$ac_ct_CC" = x; then
3540    CC=""
3541  else
3542    case $cross_compiling:$ac_tool_warned in
3543yes:)
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546ac_tool_warned=yes ;;
3547esac
3548    CC=$ac_ct_CC
3549  fi
3550fi
3551
3552fi
3553
3554
3555test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557as_fn_error $? "no acceptable C compiler found in \$PATH
3558See \`config.log' for more details" "$LINENO" 5; }
3559
3560# Provide some information about the compiler.
3561$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3562set X $ac_compile
3563ac_compiler=$2
3564for ac_option in --version -v -V -qversion; do
3565  { { ac_try="$ac_compiler $ac_option >&5"
3566case "(($ac_try" in
3567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568  *) ac_try_echo=$ac_try;;
3569esac
3570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571$as_echo "$ac_try_echo"; } >&5
3572  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3573  ac_status=$?
3574  if test -s conftest.err; then
3575    sed '10a\
3576... rest of stderr output deleted ...
3577         10q' conftest.err >conftest.er1
3578    cat conftest.er1 >&5
3579  fi
3580  rm -f conftest.er1 conftest.err
3581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582  test $ac_status = 0; }
3583done
3584
3585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h.  */
3587
3588int
3589main ()
3590{
3591
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596ac_clean_files_save=$ac_clean_files
3597ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3598# Try to create an executable without -o first, disregard a.out.
3599# It will help us diagnose broken compilers, and finding out an intuition
3600# of exeext.
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3602$as_echo_n "checking whether the C compiler works... " >&6; }
3603ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3604
3605# The possible output files:
3606ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3607
3608ac_rmfiles=
3609for ac_file in $ac_files
3610do
3611  case $ac_file in
3612    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3614  esac
3615done
3616rm -f $ac_rmfiles
3617
3618if { { ac_try="$ac_link_default"
3619case "(($ac_try" in
3620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621  *) ac_try_echo=$ac_try;;
3622esac
3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624$as_echo "$ac_try_echo"; } >&5
3625  (eval "$ac_link_default") 2>&5
3626  ac_status=$?
3627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628  test $ac_status = 0; }; then :
3629  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3630# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3631# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3632# so that the user can short-circuit this test for compilers unknown to
3633# Autoconf.
3634for ac_file in $ac_files ''
3635do
3636  test -f "$ac_file" || continue
3637  case $ac_file in
3638    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3639	;;
3640    [ab].out )
3641	# We found the default executable, but exeext='' is most
3642	# certainly right.
3643	break;;
3644    *.* )
3645	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3646	then :; else
3647	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648	fi
3649	# We set ac_cv_exeext here because the later test for it is not
3650	# safe: cross compilers may not add the suffix if given an `-o'
3651	# argument, so we may need to know it at that point already.
3652	# Even if this section looks crufty: it has the advantage of
3653	# actually working.
3654	break;;
3655    * )
3656	break;;
3657  esac
3658done
3659test "$ac_cv_exeext" = no && ac_cv_exeext=
3660
3661else
3662  ac_file=''
3663fi
3664if test -z "$ac_file"; then :
3665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666$as_echo "no" >&6; }
3667$as_echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672as_fn_error 77 "C compiler cannot create executables
3673See \`config.log' for more details" "$LINENO" 5; }
3674else
3675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676$as_echo "yes" >&6; }
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3679$as_echo_n "checking for C compiler default output file name... " >&6; }
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3681$as_echo "$ac_file" >&6; }
3682ac_exeext=$ac_cv_exeext
3683
3684rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3685ac_clean_files=$ac_clean_files_save
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3687$as_echo_n "checking for suffix of executables... " >&6; }
3688if { { ac_try="$ac_link"
3689case "(($ac_try" in
3690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691  *) ac_try_echo=$ac_try;;
3692esac
3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694$as_echo "$ac_try_echo"; } >&5
3695  (eval "$ac_link") 2>&5
3696  ac_status=$?
3697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698  test $ac_status = 0; }; then :
3699  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3700# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3701# work properly (i.e., refer to `conftest.exe'), while it won't with
3702# `rm'.
3703for ac_file in conftest.exe conftest conftest.*; do
3704  test -f "$ac_file" || continue
3705  case $ac_file in
3706    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3708	  break;;
3709    * ) break;;
3710  esac
3711done
3712else
3713  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3716See \`config.log' for more details" "$LINENO" 5; }
3717fi
3718rm -f conftest conftest$ac_cv_exeext
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3720$as_echo "$ac_cv_exeext" >&6; }
3721
3722rm -f conftest.$ac_ext
3723EXEEXT=$ac_cv_exeext
3724ac_exeext=$EXEEXT
3725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h.  */
3727#include <stdio.h>
3728int
3729main ()
3730{
3731FILE *f = fopen ("conftest.out", "w");
3732 return ferror (f) || fclose (f) != 0;
3733
3734  ;
3735  return 0;
3736}
3737_ACEOF
3738ac_clean_files="$ac_clean_files conftest.out"
3739# Check that the compiler produces executables we can run.  If not, either
3740# the compiler is broken, or we cross compile.
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3742$as_echo_n "checking whether we are cross compiling... " >&6; }
3743if test "$cross_compiling" != yes; then
3744  { { ac_try="$ac_link"
3745case "(($ac_try" in
3746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747  *) ac_try_echo=$ac_try;;
3748esac
3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750$as_echo "$ac_try_echo"; } >&5
3751  (eval "$ac_link") 2>&5
3752  ac_status=$?
3753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754  test $ac_status = 0; }
3755  if { ac_try='./conftest$ac_cv_exeext'
3756  { { case "(($ac_try" in
3757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758  *) ac_try_echo=$ac_try;;
3759esac
3760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761$as_echo "$ac_try_echo"; } >&5
3762  (eval "$ac_try") 2>&5
3763  ac_status=$?
3764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765  test $ac_status = 0; }; }; then
3766    cross_compiling=no
3767  else
3768    if test "$cross_compiling" = maybe; then
3769	cross_compiling=yes
3770    else
3771	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773as_fn_error $? "cannot run C compiled programs.
3774If you meant to cross compile, use \`--host'.
3775See \`config.log' for more details" "$LINENO" 5; }
3776    fi
3777  fi
3778fi
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3780$as_echo "$cross_compiling" >&6; }
3781
3782rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3783ac_clean_files=$ac_clean_files_save
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3785$as_echo_n "checking for suffix of object files... " >&6; }
3786if ${ac_cv_objext+:} false; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791
3792int
3793main ()
3794{
3795
3796  ;
3797  return 0;
3798}
3799_ACEOF
3800rm -f conftest.o conftest.obj
3801if { { ac_try="$ac_compile"
3802case "(($ac_try" in
3803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804  *) ac_try_echo=$ac_try;;
3805esac
3806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807$as_echo "$ac_try_echo"; } >&5
3808  (eval "$ac_compile") 2>&5
3809  ac_status=$?
3810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811  test $ac_status = 0; }; then :
3812  for ac_file in conftest.o conftest.obj conftest.*; do
3813  test -f "$ac_file" || continue;
3814  case $ac_file in
3815    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3816    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3817       break;;
3818  esac
3819done
3820else
3821  $as_echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826as_fn_error $? "cannot compute suffix of object files: cannot compile
3827See \`config.log' for more details" "$LINENO" 5; }
3828fi
3829rm -f conftest.$ac_cv_objext conftest.$ac_ext
3830fi
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3832$as_echo "$ac_cv_objext" >&6; }
3833OBJEXT=$ac_cv_objext
3834ac_objext=$OBJEXT
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3836$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3837if ${ac_cv_c_compiler_gnu+:} false; then :
3838  $as_echo_n "(cached) " >&6
3839else
3840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841/* end confdefs.h.  */
3842
3843int
3844main ()
3845{
3846#ifndef __GNUC__
3847       choke me
3848#endif
3849
3850  ;
3851  return 0;
3852}
3853_ACEOF
3854if ac_fn_c_try_compile "$LINENO"; then :
3855  ac_compiler_gnu=yes
3856else
3857  ac_compiler_gnu=no
3858fi
3859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860ac_cv_c_compiler_gnu=$ac_compiler_gnu
3861
3862fi
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3864$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3865if test $ac_compiler_gnu = yes; then
3866  GCC=yes
3867else
3868  GCC=
3869fi
3870ac_test_CFLAGS=${CFLAGS+set}
3871ac_save_CFLAGS=$CFLAGS
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3873$as_echo_n "checking whether $CC accepts -g... " >&6; }
3874if ${ac_cv_prog_cc_g+:} false; then :
3875  $as_echo_n "(cached) " >&6
3876else
3877  ac_save_c_werror_flag=$ac_c_werror_flag
3878   ac_c_werror_flag=yes
3879   ac_cv_prog_cc_g=no
3880   CFLAGS="-g"
3881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h.  */
3883
3884int
3885main ()
3886{
3887
3888  ;
3889  return 0;
3890}
3891_ACEOF
3892if ac_fn_c_try_compile "$LINENO"; then :
3893  ac_cv_prog_cc_g=yes
3894else
3895  CFLAGS=""
3896      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h.  */
3898
3899int
3900main ()
3901{
3902
3903  ;
3904  return 0;
3905}
3906_ACEOF
3907if ac_fn_c_try_compile "$LINENO"; then :
3908
3909else
3910  ac_c_werror_flag=$ac_save_c_werror_flag
3911	 CFLAGS="-g"
3912	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914
3915int
3916main ()
3917{
3918
3919  ;
3920  return 0;
3921}
3922_ACEOF
3923if ac_fn_c_try_compile "$LINENO"; then :
3924  ac_cv_prog_cc_g=yes
3925fi
3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927fi
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929fi
3930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931   ac_c_werror_flag=$ac_save_c_werror_flag
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3934$as_echo "$ac_cv_prog_cc_g" >&6; }
3935if test "$ac_test_CFLAGS" = set; then
3936  CFLAGS=$ac_save_CFLAGS
3937elif test $ac_cv_prog_cc_g = yes; then
3938  if test "$GCC" = yes; then
3939    CFLAGS="-g -O2"
3940  else
3941    CFLAGS="-g"
3942  fi
3943else
3944  if test "$GCC" = yes; then
3945    CFLAGS="-O2"
3946  else
3947    CFLAGS=
3948  fi
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3951$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3952if ${ac_cv_prog_cc_c89+:} false; then :
3953  $as_echo_n "(cached) " >&6
3954else
3955  ac_cv_prog_cc_c89=no
3956ac_save_CC=$CC
3957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958/* end confdefs.h.  */
3959#include <stdarg.h>
3960#include <stdio.h>
3961struct stat;
3962/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3963struct buf { int x; };
3964FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965static char *e (p, i)
3966     char **p;
3967     int i;
3968{
3969  return p[i];
3970}
3971static char *f (char * (*g) (char **, int), char **p, ...)
3972{
3973  char *s;
3974  va_list v;
3975  va_start (v,p);
3976  s = g (p, va_arg (v,int));
3977  va_end (v);
3978  return s;
3979}
3980
3981/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3982   function prototypes and stuff, but not '\xHH' hex character constants.
3983   These don't provoke an error unfortunately, instead are silently treated
3984   as 'x'.  The following induces an error, until -std is added to get
3985   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3986   array size at least.  It's necessary to write '\x00'==0 to get something
3987   that's true only with -std.  */
3988int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3989
3990/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991   inside strings and character constants.  */
3992#define FOO(x) 'x'
3993int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3994
3995int test (int i, double x);
3996struct s1 {int (*f) (int a);};
3997struct s2 {int (*f) (double a);};
3998int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999int argc;
4000char **argv;
4001int
4002main ()
4003{
4004return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4011do
4012  CC="$ac_save_CC $ac_arg"
4013  if ac_fn_c_try_compile "$LINENO"; then :
4014  ac_cv_prog_cc_c89=$ac_arg
4015fi
4016rm -f core conftest.err conftest.$ac_objext
4017  test "x$ac_cv_prog_cc_c89" != "xno" && break
4018done
4019rm -f conftest.$ac_ext
4020CC=$ac_save_CC
4021
4022fi
4023# AC_CACHE_VAL
4024case "x$ac_cv_prog_cc_c89" in
4025  x)
4026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027$as_echo "none needed" >&6; } ;;
4028  xno)
4029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030$as_echo "unsupported" >&6; } ;;
4031  *)
4032    CC="$CC $ac_cv_prog_cc_c89"
4033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4035esac
4036if test "x$ac_cv_prog_cc_c89" != xno; then :
4037
4038fi
4039
4040ac_ext=c
4041ac_cpp='$CPP $CPPFLAGS'
4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045
4046ac_ext=c
4047ac_cpp='$CPP $CPPFLAGS'
4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4052$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4053if ${am_cv_prog_cc_c_o+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h.  */
4058
4059int
4060main ()
4061{
4062
4063  ;
4064  return 0;
4065}
4066_ACEOF
4067  # Make sure it works both with $CC and with simple cc.
4068  # Following AC_PROG_CC_C_O, we do the test twice because some
4069  # compilers refuse to overwrite an existing .o file with -o,
4070  # though they will create one.
4071  am_cv_prog_cc_c_o=yes
4072  for am_i in 1 2; do
4073    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4074   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); } \
4078         && test -f conftest2.$ac_objext; then
4079      : OK
4080    else
4081      am_cv_prog_cc_c_o=no
4082      break
4083    fi
4084  done
4085  rm -f core conftest*
4086  unset am_i
4087fi
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4089$as_echo "$am_cv_prog_cc_c_o" >&6; }
4090if test "$am_cv_prog_cc_c_o" != yes; then
4091   # Losing compiler, so override with the script.
4092   # FIXME: It is wrong to rewrite CC.
4093   # But if we don't then we get into trouble of one sort or another.
4094   # A longer-term fix would be to have automake use am__CC in this case,
4095   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4096   CC="$am_aux_dir/compile $CC"
4097fi
4098ac_ext=c
4099ac_cpp='$CPP $CPPFLAGS'
4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104
4105depcc="$CC"   am_compiler_list=
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4108$as_echo_n "checking dependency style of $depcc... " >&6; }
4109if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4110  $as_echo_n "(cached) " >&6
4111else
4112  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113  # We make a subdir and do the tests there.  Otherwise we can end up
4114  # making bogus files that we don't know about and never remove.  For
4115  # instance it was reported that on HP-UX the gcc test will end up
4116  # making a dummy file named 'D' -- because '-MD' means "put the output
4117  # in D".
4118  rm -rf conftest.dir
4119  mkdir conftest.dir
4120  # Copy depcomp to subdir because otherwise we won't find it if we're
4121  # using a relative directory.
4122  cp "$am_depcomp" conftest.dir
4123  cd conftest.dir
4124  # We will build objects and dependencies in a subdirectory because
4125  # it helps to detect inapplicable dependency modes.  For instance
4126  # both Tru64's cc and ICC support -MD to output dependencies as a
4127  # side effect of compilation, but ICC will put the dependencies in
4128  # the current directory while Tru64 will put them in the object
4129  # directory.
4130  mkdir sub
4131
4132  am_cv_CC_dependencies_compiler_type=none
4133  if test "$am_compiler_list" = ""; then
4134     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4135  fi
4136  am__universal=false
4137  case " $depcc " in #(
4138     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4139     esac
4140
4141  for depmode in $am_compiler_list; do
4142    # Setup a source with many dependencies, because some compilers
4143    # like to wrap large dependency lists on column 80 (with \), and
4144    # we should not choose a depcomp mode which is confused by this.
4145    #
4146    # We need to recreate these files for each test, as the compiler may
4147    # overwrite some of them when testing with obscure command lines.
4148    # This happens at least with the AIX C compiler.
4149    : > sub/conftest.c
4150    for i in 1 2 3 4 5 6; do
4151      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4153      # Solaris 10 /bin/sh.
4154      echo '/* dummy */' > sub/conftst$i.h
4155    done
4156    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157
4158    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4159    # mode.  It turns out that the SunPro C++ compiler does not properly
4160    # handle '-M -o', and we need to detect this.  Also, some Intel
4161    # versions had trouble with output in subdirs.
4162    am__obj=sub/conftest.${OBJEXT-o}
4163    am__minus_obj="-o $am__obj"
4164    case $depmode in
4165    gcc)
4166      # This depmode causes a compiler race in universal mode.
4167      test "$am__universal" = false || continue
4168      ;;
4169    nosideeffect)
4170      # After this tag, mechanisms are not by side-effect, so they'll
4171      # only be used when explicitly requested.
4172      if test "x$enable_dependency_tracking" = xyes; then
4173	continue
4174      else
4175	break
4176      fi
4177      ;;
4178    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4179      # This compiler won't grok '-c -o', but also, the minuso test has
4180      # not run yet.  These depmodes are late enough in the game, and
4181      # so weak that their functioning should not be impacted.
4182      am__obj=conftest.${OBJEXT-o}
4183      am__minus_obj=
4184      ;;
4185    none) break ;;
4186    esac
4187    if depmode=$depmode \
4188       source=sub/conftest.c object=$am__obj \
4189       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4190       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4191         >/dev/null 2>conftest.err &&
4192       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4193       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4194       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4195       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4196      # icc doesn't choke on unknown options, it will just issue warnings
4197      # or remarks (even with -Werror).  So we grep stderr for any message
4198      # that says an option was ignored or not supported.
4199      # When given -MP, icc 7.0 and 7.1 complain thusly:
4200      #   icc: Command line warning: ignoring option '-M'; no argument required
4201      # The diagnosis changed in icc 8.0:
4202      #   icc: Command line remark: option '-MP' not supported
4203      if (grep 'ignoring option' conftest.err ||
4204          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4205        am_cv_CC_dependencies_compiler_type=$depmode
4206        break
4207      fi
4208    fi
4209  done
4210
4211  cd ..
4212  rm -rf conftest.dir
4213else
4214  am_cv_CC_dependencies_compiler_type=none
4215fi
4216
4217fi
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4219$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4220CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4221
4222 if
4223  test "x$enable_dependency_tracking" != xno \
4224  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225  am__fastdepCC_TRUE=
4226  am__fastdepCC_FALSE='#'
4227else
4228  am__fastdepCC_TRUE='#'
4229  am__fastdepCC_FALSE=
4230fi
4231
4232
4233
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4240$as_echo_n "checking how to run the C preprocessor... " >&6; }
4241# On Suns, sometimes $CPP names a directory.
4242if test -n "$CPP" && test -d "$CPP"; then
4243  CPP=
4244fi
4245if test -z "$CPP"; then
4246  if ${ac_cv_prog_CPP+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249      # Double quotes because CPP needs to be expanded
4250    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4251    do
4252      ac_preproc_ok=false
4253for ac_c_preproc_warn_flag in '' yes
4254do
4255  # Use a header file that comes with gcc, so configuring glibc
4256  # with a fresh cross-compiler works.
4257  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258  # <limits.h> exists even on freestanding compilers.
4259  # On the NeXT, cc -E runs the code through the compiler's parser,
4260  # not just through cpp. "Syntax error" is here to catch this case.
4261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263#ifdef __STDC__
4264# include <limits.h>
4265#else
4266# include <assert.h>
4267#endif
4268		     Syntax error
4269_ACEOF
4270if ac_fn_c_try_cpp "$LINENO"; then :
4271
4272else
4273  # Broken: fails on valid input.
4274continue
4275fi
4276rm -f conftest.err conftest.i conftest.$ac_ext
4277
4278  # OK, works on sane cases.  Now check whether nonexistent headers
4279  # can be detected and how.
4280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282#include <ac_nonexistent.h>
4283_ACEOF
4284if ac_fn_c_try_cpp "$LINENO"; then :
4285  # Broken: success on invalid input.
4286continue
4287else
4288  # Passes both tests.
4289ac_preproc_ok=:
4290break
4291fi
4292rm -f conftest.err conftest.i conftest.$ac_ext
4293
4294done
4295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296rm -f conftest.i conftest.err conftest.$ac_ext
4297if $ac_preproc_ok; then :
4298  break
4299fi
4300
4301    done
4302    ac_cv_prog_CPP=$CPP
4303
4304fi
4305  CPP=$ac_cv_prog_CPP
4306else
4307  ac_cv_prog_CPP=$CPP
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4310$as_echo "$CPP" >&6; }
4311ac_preproc_ok=false
4312for ac_c_preproc_warn_flag in '' yes
4313do
4314  # Use a header file that comes with gcc, so configuring glibc
4315  # with a fresh cross-compiler works.
4316  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317  # <limits.h> exists even on freestanding compilers.
4318  # On the NeXT, cc -E runs the code through the compiler's parser,
4319  # not just through cpp. "Syntax error" is here to catch this case.
4320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h.  */
4322#ifdef __STDC__
4323# include <limits.h>
4324#else
4325# include <assert.h>
4326#endif
4327		     Syntax error
4328_ACEOF
4329if ac_fn_c_try_cpp "$LINENO"; then :
4330
4331else
4332  # Broken: fails on valid input.
4333continue
4334fi
4335rm -f conftest.err conftest.i conftest.$ac_ext
4336
4337  # OK, works on sane cases.  Now check whether nonexistent headers
4338  # can be detected and how.
4339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h.  */
4341#include <ac_nonexistent.h>
4342_ACEOF
4343if ac_fn_c_try_cpp "$LINENO"; then :
4344  # Broken: success on invalid input.
4345continue
4346else
4347  # Passes both tests.
4348ac_preproc_ok=:
4349break
4350fi
4351rm -f conftest.err conftest.i conftest.$ac_ext
4352
4353done
4354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355rm -f conftest.i conftest.err conftest.$ac_ext
4356if $ac_preproc_ok; then :
4357
4358else
4359  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4362See \`config.log' for more details" "$LINENO" 5; }
4363fi
4364
4365ac_ext=c
4366ac_cpp='$CPP $CPPFLAGS'
4367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4373$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4374if ${ac_cv_path_GREP+:} false; then :
4375  $as_echo_n "(cached) " >&6
4376else
4377  if test -z "$GREP"; then
4378  ac_path_GREP_found=false
4379  # Loop through the user's path and test for each of PROGNAME-LIST
4380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4382do
4383  IFS=$as_save_IFS
4384  test -z "$as_dir" && as_dir=.
4385    for ac_prog in grep ggrep; do
4386    for ac_exec_ext in '' $ac_executable_extensions; do
4387      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4388      as_fn_executable_p "$ac_path_GREP" || continue
4389# Check for GNU ac_path_GREP and select it if it is found.
4390  # Check for GNU $ac_path_GREP
4391case `"$ac_path_GREP" --version 2>&1` in
4392*GNU*)
4393  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4394*)
4395  ac_count=0
4396  $as_echo_n 0123456789 >"conftest.in"
4397  while :
4398  do
4399    cat "conftest.in" "conftest.in" >"conftest.tmp"
4400    mv "conftest.tmp" "conftest.in"
4401    cp "conftest.in" "conftest.nl"
4402    $as_echo 'GREP' >> "conftest.nl"
4403    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4404    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4405    as_fn_arith $ac_count + 1 && ac_count=$as_val
4406    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4407      # Best one so far, save it but keep looking for a better one
4408      ac_cv_path_GREP="$ac_path_GREP"
4409      ac_path_GREP_max=$ac_count
4410    fi
4411    # 10*(2^10) chars as input seems more than enough
4412    test $ac_count -gt 10 && break
4413  done
4414  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415esac
4416
4417      $ac_path_GREP_found && break 3
4418    done
4419  done
4420  done
4421IFS=$as_save_IFS
4422  if test -z "$ac_cv_path_GREP"; then
4423    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4424  fi
4425else
4426  ac_cv_path_GREP=$GREP
4427fi
4428
4429fi
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4431$as_echo "$ac_cv_path_GREP" >&6; }
4432 GREP="$ac_cv_path_GREP"
4433
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4436$as_echo_n "checking for egrep... " >&6; }
4437if ${ac_cv_path_EGREP+:} false; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4441   then ac_cv_path_EGREP="$GREP -E"
4442   else
4443     if test -z "$EGREP"; then
4444  ac_path_EGREP_found=false
4445  # Loop through the user's path and test for each of PROGNAME-LIST
4446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448do
4449  IFS=$as_save_IFS
4450  test -z "$as_dir" && as_dir=.
4451    for ac_prog in egrep; do
4452    for ac_exec_ext in '' $ac_executable_extensions; do
4453      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4454      as_fn_executable_p "$ac_path_EGREP" || continue
4455# Check for GNU ac_path_EGREP and select it if it is found.
4456  # Check for GNU $ac_path_EGREP
4457case `"$ac_path_EGREP" --version 2>&1` in
4458*GNU*)
4459  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4460*)
4461  ac_count=0
4462  $as_echo_n 0123456789 >"conftest.in"
4463  while :
4464  do
4465    cat "conftest.in" "conftest.in" >"conftest.tmp"
4466    mv "conftest.tmp" "conftest.in"
4467    cp "conftest.in" "conftest.nl"
4468    $as_echo 'EGREP' >> "conftest.nl"
4469    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471    as_fn_arith $ac_count + 1 && ac_count=$as_val
4472    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4473      # Best one so far, save it but keep looking for a better one
4474      ac_cv_path_EGREP="$ac_path_EGREP"
4475      ac_path_EGREP_max=$ac_count
4476    fi
4477    # 10*(2^10) chars as input seems more than enough
4478    test $ac_count -gt 10 && break
4479  done
4480  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481esac
4482
4483      $ac_path_EGREP_found && break 3
4484    done
4485  done
4486  done
4487IFS=$as_save_IFS
4488  if test -z "$ac_cv_path_EGREP"; then
4489    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490  fi
4491else
4492  ac_cv_path_EGREP=$EGREP
4493fi
4494
4495   fi
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4498$as_echo "$ac_cv_path_EGREP" >&6; }
4499 EGREP="$ac_cv_path_EGREP"
4500
4501
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4503$as_echo_n "checking for ANSI C header files... " >&6; }
4504if ${ac_cv_header_stdc+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509#include <stdlib.h>
4510#include <stdarg.h>
4511#include <string.h>
4512#include <float.h>
4513
4514int
4515main ()
4516{
4517
4518  ;
4519  return 0;
4520}
4521_ACEOF
4522if ac_fn_c_try_compile "$LINENO"; then :
4523  ac_cv_header_stdc=yes
4524else
4525  ac_cv_header_stdc=no
4526fi
4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528
4529if test $ac_cv_header_stdc = yes; then
4530  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532/* end confdefs.h.  */
4533#include <string.h>
4534
4535_ACEOF
4536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537  $EGREP "memchr" >/dev/null 2>&1; then :
4538
4539else
4540  ac_cv_header_stdc=no
4541fi
4542rm -f conftest*
4543
4544fi
4545
4546if test $ac_cv_header_stdc = yes; then
4547  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550#include <stdlib.h>
4551
4552_ACEOF
4553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554  $EGREP "free" >/dev/null 2>&1; then :
4555
4556else
4557  ac_cv_header_stdc=no
4558fi
4559rm -f conftest*
4560
4561fi
4562
4563if test $ac_cv_header_stdc = yes; then
4564  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4565  if test "$cross_compiling" = yes; then :
4566  :
4567else
4568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h.  */
4570#include <ctype.h>
4571#include <stdlib.h>
4572#if ((' ' & 0x0FF) == 0x020)
4573# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4574# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4575#else
4576# define ISLOWER(c) \
4577		   (('a' <= (c) && (c) <= 'i') \
4578		     || ('j' <= (c) && (c) <= 'r') \
4579		     || ('s' <= (c) && (c) <= 'z'))
4580# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4581#endif
4582
4583#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4584int
4585main ()
4586{
4587  int i;
4588  for (i = 0; i < 256; i++)
4589    if (XOR (islower (i), ISLOWER (i))
4590	|| toupper (i) != TOUPPER (i))
4591      return 2;
4592  return 0;
4593}
4594_ACEOF
4595if ac_fn_c_try_run "$LINENO"; then :
4596
4597else
4598  ac_cv_header_stdc=no
4599fi
4600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4601  conftest.$ac_objext conftest.beam conftest.$ac_ext
4602fi
4603
4604fi
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4607$as_echo "$ac_cv_header_stdc" >&6; }
4608if test $ac_cv_header_stdc = yes; then
4609
4610$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4611
4612fi
4613
4614# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4616		  inttypes.h stdint.h unistd.h
4617do :
4618  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4619ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4620"
4621if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4622  cat >>confdefs.h <<_ACEOF
4623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4624_ACEOF
4625
4626fi
4627
4628done
4629
4630
4631
4632  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4633if test "x$ac_cv_header_minix_config_h" = xyes; then :
4634  MINIX=yes
4635else
4636  MINIX=
4637fi
4638
4639
4640  if test "$MINIX" = yes; then
4641
4642$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4643
4644
4645$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4646
4647
4648$as_echo "#define _MINIX 1" >>confdefs.h
4649
4650  fi
4651
4652
4653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4654$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4655if ${ac_cv_safe_to_define___extensions__+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h.  */
4660
4661#         define __EXTENSIONS__ 1
4662          $ac_includes_default
4663int
4664main ()
4665{
4666
4667  ;
4668  return 0;
4669}
4670_ACEOF
4671if ac_fn_c_try_compile "$LINENO"; then :
4672  ac_cv_safe_to_define___extensions__=yes
4673else
4674  ac_cv_safe_to_define___extensions__=no
4675fi
4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4679$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4680  test $ac_cv_safe_to_define___extensions__ = yes &&
4681    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4682
4683  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4684
4685  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4686
4687  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4688
4689  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4690
4691
4692
4693# Initialize libtool
4694case `pwd` in
4695  *\ * | *\	*)
4696    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4697$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4698esac
4699
4700
4701
4702macro_version='2.4.6'
4703macro_revision='2.4.6'
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717ltmain=$ac_aux_dir/ltmain.sh
4718
4719# Make sure we can run config.sub.
4720$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4721  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4722
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4724$as_echo_n "checking build system type... " >&6; }
4725if ${ac_cv_build+:} false; then :
4726  $as_echo_n "(cached) " >&6
4727else
4728  ac_build_alias=$build_alias
4729test "x$ac_build_alias" = x &&
4730  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4731test "x$ac_build_alias" = x &&
4732  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4733ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4734  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4735
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4738$as_echo "$ac_cv_build" >&6; }
4739case $ac_cv_build in
4740*-*-*) ;;
4741*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4742esac
4743build=$ac_cv_build
4744ac_save_IFS=$IFS; IFS='-'
4745set x $ac_cv_build
4746shift
4747build_cpu=$1
4748build_vendor=$2
4749shift; shift
4750# Remember, the first character of IFS is used to create $*,
4751# except with old shells:
4752build_os=$*
4753IFS=$ac_save_IFS
4754case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4755
4756
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4758$as_echo_n "checking host system type... " >&6; }
4759if ${ac_cv_host+:} false; then :
4760  $as_echo_n "(cached) " >&6
4761else
4762  if test "x$host_alias" = x; then
4763  ac_cv_host=$ac_cv_build
4764else
4765  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4766    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4767fi
4768
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4771$as_echo "$ac_cv_host" >&6; }
4772case $ac_cv_host in
4773*-*-*) ;;
4774*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775esac
4776host=$ac_cv_host
4777ac_save_IFS=$IFS; IFS='-'
4778set x $ac_cv_host
4779shift
4780host_cpu=$1
4781host_vendor=$2
4782shift; shift
4783# Remember, the first character of IFS is used to create $*,
4784# except with old shells:
4785host_os=$*
4786IFS=$ac_save_IFS
4787case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4788
4789
4790# Backslashify metacharacters that are still active within
4791# double-quoted strings.
4792sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4793
4794# Same as above, but do not quote variable references.
4795double_quote_subst='s/\(["`\\]\)/\\\1/g'
4796
4797# Sed substitution to delay expansion of an escaped shell variable in a
4798# double_quote_subst'ed string.
4799delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4800
4801# Sed substitution to delay expansion of an escaped single quote.
4802delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4803
4804# Sed substitution to avoid accidental globbing in evaled expressions
4805no_glob_subst='s/\*/\\\*/g'
4806
4807ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4808ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4809ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4810
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4812$as_echo_n "checking how to print strings... " >&6; }
4813# Test print first, because it will be a builtin if present.
4814if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4815   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4816  ECHO='print -r --'
4817elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4818  ECHO='printf %s\n'
4819else
4820  # Use this function as a fallback that always works.
4821  func_fallback_echo ()
4822  {
4823    eval 'cat <<_LTECHO_EOF
4824$1
4825_LTECHO_EOF'
4826  }
4827  ECHO='func_fallback_echo'
4828fi
4829
4830# func_echo_all arg...
4831# Invoke $ECHO with all args, space-separated.
4832func_echo_all ()
4833{
4834    $ECHO ""
4835}
4836
4837case $ECHO in
4838  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4839$as_echo "printf" >&6; } ;;
4840  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4841$as_echo "print -r" >&6; } ;;
4842  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4843$as_echo "cat" >&6; } ;;
4844esac
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4860$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4861if ${ac_cv_path_SED+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4865     for ac_i in 1 2 3 4 5 6 7; do
4866       ac_script="$ac_script$as_nl$ac_script"
4867     done
4868     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4869     { ac_script=; unset ac_script;}
4870     if test -z "$SED"; then
4871  ac_path_SED_found=false
4872  # Loop through the user's path and test for each of PROGNAME-LIST
4873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876  IFS=$as_save_IFS
4877  test -z "$as_dir" && as_dir=.
4878    for ac_prog in sed gsed; do
4879    for ac_exec_ext in '' $ac_executable_extensions; do
4880      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4881      as_fn_executable_p "$ac_path_SED" || continue
4882# Check for GNU ac_path_SED and select it if it is found.
4883  # Check for GNU $ac_path_SED
4884case `"$ac_path_SED" --version 2>&1` in
4885*GNU*)
4886  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4887*)
4888  ac_count=0
4889  $as_echo_n 0123456789 >"conftest.in"
4890  while :
4891  do
4892    cat "conftest.in" "conftest.in" >"conftest.tmp"
4893    mv "conftest.tmp" "conftest.in"
4894    cp "conftest.in" "conftest.nl"
4895    $as_echo '' >> "conftest.nl"
4896    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898    as_fn_arith $ac_count + 1 && ac_count=$as_val
4899    if test $ac_count -gt ${ac_path_SED_max-0}; then
4900      # Best one so far, save it but keep looking for a better one
4901      ac_cv_path_SED="$ac_path_SED"
4902      ac_path_SED_max=$ac_count
4903    fi
4904    # 10*(2^10) chars as input seems more than enough
4905    test $ac_count -gt 10 && break
4906  done
4907  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908esac
4909
4910      $ac_path_SED_found && break 3
4911    done
4912  done
4913  done
4914IFS=$as_save_IFS
4915  if test -z "$ac_cv_path_SED"; then
4916    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4917  fi
4918else
4919  ac_cv_path_SED=$SED
4920fi
4921
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4924$as_echo "$ac_cv_path_SED" >&6; }
4925 SED="$ac_cv_path_SED"
4926  rm -f conftest.sed
4927
4928test -z "$SED" && SED=sed
4929Xsed="$SED -e 1s/^X//"
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4942$as_echo_n "checking for fgrep... " >&6; }
4943if ${ac_cv_path_FGREP+:} false; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4947   then ac_cv_path_FGREP="$GREP -F"
4948   else
4949     if test -z "$FGREP"; then
4950  ac_path_FGREP_found=false
4951  # Loop through the user's path and test for each of PROGNAME-LIST
4952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4954do
4955  IFS=$as_save_IFS
4956  test -z "$as_dir" && as_dir=.
4957    for ac_prog in fgrep; do
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4960      as_fn_executable_p "$ac_path_FGREP" || continue
4961# Check for GNU ac_path_FGREP and select it if it is found.
4962  # Check for GNU $ac_path_FGREP
4963case `"$ac_path_FGREP" --version 2>&1` in
4964*GNU*)
4965  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4966*)
4967  ac_count=0
4968  $as_echo_n 0123456789 >"conftest.in"
4969  while :
4970  do
4971    cat "conftest.in" "conftest.in" >"conftest.tmp"
4972    mv "conftest.tmp" "conftest.in"
4973    cp "conftest.in" "conftest.nl"
4974    $as_echo 'FGREP' >> "conftest.nl"
4975    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977    as_fn_arith $ac_count + 1 && ac_count=$as_val
4978    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4979      # Best one so far, save it but keep looking for a better one
4980      ac_cv_path_FGREP="$ac_path_FGREP"
4981      ac_path_FGREP_max=$ac_count
4982    fi
4983    # 10*(2^10) chars as input seems more than enough
4984    test $ac_count -gt 10 && break
4985  done
4986  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4987esac
4988
4989      $ac_path_FGREP_found && break 3
4990    done
4991  done
4992  done
4993IFS=$as_save_IFS
4994  if test -z "$ac_cv_path_FGREP"; then
4995    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4996  fi
4997else
4998  ac_cv_path_FGREP=$FGREP
4999fi
5000
5001   fi
5002fi
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5004$as_echo "$ac_cv_path_FGREP" >&6; }
5005 FGREP="$ac_cv_path_FGREP"
5006
5007
5008test -z "$GREP" && GREP=grep
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028# Check whether --with-gnu-ld was given.
5029if test "${with_gnu_ld+set}" = set; then :
5030  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5031else
5032  with_gnu_ld=no
5033fi
5034
5035ac_prog=ld
5036if test yes = "$GCC"; then
5037  # Check if gcc -print-prog-name=ld gives a path.
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5039$as_echo_n "checking for ld used by $CC... " >&6; }
5040  case $host in
5041  *-*-mingw*)
5042    # gcc leaves a trailing carriage return, which upsets mingw
5043    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5044  *)
5045    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5046  esac
5047  case $ac_prog in
5048    # Accept absolute paths.
5049    [\\/]* | ?:[\\/]*)
5050      re_direlt='/[^/][^/]*/\.\./'
5051      # Canonicalize the pathname of ld
5052      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5053      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5054	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5055      done
5056      test -z "$LD" && LD=$ac_prog
5057      ;;
5058  "")
5059    # If it fails, then pretend we aren't using GCC.
5060    ac_prog=ld
5061    ;;
5062  *)
5063    # If it is relative, then search for the first ld in PATH.
5064    with_gnu_ld=unknown
5065    ;;
5066  esac
5067elif test yes = "$with_gnu_ld"; then
5068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5069$as_echo_n "checking for GNU ld... " >&6; }
5070else
5071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5072$as_echo_n "checking for non-GNU ld... " >&6; }
5073fi
5074if ${lt_cv_path_LD+:} false; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  if test -z "$LD"; then
5078  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5079  for ac_dir in $PATH; do
5080    IFS=$lt_save_ifs
5081    test -z "$ac_dir" && ac_dir=.
5082    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5083      lt_cv_path_LD=$ac_dir/$ac_prog
5084      # Check to see if the program is GNU ld.  I'd rather use --version,
5085      # but apparently some variants of GNU ld only accept -v.
5086      # Break only if it was the GNU/non-GNU ld that we prefer.
5087      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5088      *GNU* | *'with BFD'*)
5089	test no != "$with_gnu_ld" && break
5090	;;
5091      *)
5092	test yes != "$with_gnu_ld" && break
5093	;;
5094      esac
5095    fi
5096  done
5097  IFS=$lt_save_ifs
5098else
5099  lt_cv_path_LD=$LD # Let the user override the test with a path.
5100fi
5101fi
5102
5103LD=$lt_cv_path_LD
5104if test -n "$LD"; then
5105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5106$as_echo "$LD" >&6; }
5107else
5108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109$as_echo "no" >&6; }
5110fi
5111test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5113$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5114if ${lt_cv_prog_gnu_ld+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5118case `$LD -v 2>&1 </dev/null` in
5119*GNU* | *'with BFD'*)
5120  lt_cv_prog_gnu_ld=yes
5121  ;;
5122*)
5123  lt_cv_prog_gnu_ld=no
5124  ;;
5125esac
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5128$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5129with_gnu_ld=$lt_cv_prog_gnu_ld
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5140$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5141if ${lt_cv_path_NM+:} false; then :
5142  $as_echo_n "(cached) " >&6
5143else
5144  if test -n "$NM"; then
5145  # Let the user override the test.
5146  lt_cv_path_NM=$NM
5147else
5148  lt_nm_to_check=${ac_tool_prefix}nm
5149  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5150    lt_nm_to_check="$lt_nm_to_check nm"
5151  fi
5152  for lt_tmp_nm in $lt_nm_to_check; do
5153    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5154    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5155      IFS=$lt_save_ifs
5156      test -z "$ac_dir" && ac_dir=.
5157      tmp_nm=$ac_dir/$lt_tmp_nm
5158      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5159	# Check to see if the nm accepts a BSD-compat flag.
5160	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5161	#   nm: unknown option "B" ignored
5162	# Tru64's nm complains that /dev/null is an invalid object file
5163	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5164	case $build_os in
5165	mingw*) lt_bad_file=conftest.nm/nofile ;;
5166	*) lt_bad_file=/dev/null ;;
5167	esac
5168	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5169	*$lt_bad_file* | *'Invalid file or object type'*)
5170	  lt_cv_path_NM="$tmp_nm -B"
5171	  break 2
5172	  ;;
5173	*)
5174	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5175	  */dev/null*)
5176	    lt_cv_path_NM="$tmp_nm -p"
5177	    break 2
5178	    ;;
5179	  *)
5180	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5181	    continue # so that we can try to find one that supports BSD flags
5182	    ;;
5183	  esac
5184	  ;;
5185	esac
5186      fi
5187    done
5188    IFS=$lt_save_ifs
5189  done
5190  : ${lt_cv_path_NM=no}
5191fi
5192fi
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5194$as_echo "$lt_cv_path_NM" >&6; }
5195if test no != "$lt_cv_path_NM"; then
5196  NM=$lt_cv_path_NM
5197else
5198  # Didn't find any BSD compatible name lister, look for dumpbin.
5199  if test -n "$DUMPBIN"; then :
5200    # Let the user override the test.
5201  else
5202    if test -n "$ac_tool_prefix"; then
5203  for ac_prog in dumpbin "link -dump"
5204  do
5205    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208$as_echo_n "checking for $ac_word... " >&6; }
5209if ${ac_cv_prog_DUMPBIN+:} false; then :
5210  $as_echo_n "(cached) " >&6
5211else
5212  if test -n "$DUMPBIN"; then
5213  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218  IFS=$as_save_IFS
5219  test -z "$as_dir" && as_dir=.
5220    for ac_exec_ext in '' $ac_executable_extensions; do
5221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224    break 2
5225  fi
5226done
5227  done
5228IFS=$as_save_IFS
5229
5230fi
5231fi
5232DUMPBIN=$ac_cv_prog_DUMPBIN
5233if test -n "$DUMPBIN"; then
5234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5235$as_echo "$DUMPBIN" >&6; }
5236else
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238$as_echo "no" >&6; }
5239fi
5240
5241
5242    test -n "$DUMPBIN" && break
5243  done
5244fi
5245if test -z "$DUMPBIN"; then
5246  ac_ct_DUMPBIN=$DUMPBIN
5247  for ac_prog in dumpbin "link -dump"
5248do
5249  # Extract the first word of "$ac_prog", so it can be a program name with args.
5250set dummy $ac_prog; ac_word=$2
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  if test -n "$ac_ct_DUMPBIN"; then
5257  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262  IFS=$as_save_IFS
5263  test -z "$as_dir" && as_dir=.
5264    for ac_exec_ext in '' $ac_executable_extensions; do
5265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268    break 2
5269  fi
5270done
5271  done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5277if test -n "$ac_ct_DUMPBIN"; then
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5279$as_echo "$ac_ct_DUMPBIN" >&6; }
5280else
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
5284
5285
5286  test -n "$ac_ct_DUMPBIN" && break
5287done
5288
5289  if test "x$ac_ct_DUMPBIN" = x; then
5290    DUMPBIN=":"
5291  else
5292    case $cross_compiling:$ac_tool_warned in
5293yes:)
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296ac_tool_warned=yes ;;
5297esac
5298    DUMPBIN=$ac_ct_DUMPBIN
5299  fi
5300fi
5301
5302    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5303    *COFF*)
5304      DUMPBIN="$DUMPBIN -symbols -headers"
5305      ;;
5306    *)
5307      DUMPBIN=:
5308      ;;
5309    esac
5310  fi
5311
5312  if test : != "$DUMPBIN"; then
5313    NM=$DUMPBIN
5314  fi
5315fi
5316test -z "$NM" && NM=nm
5317
5318
5319
5320
5321
5322
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5324$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5325if ${lt_cv_nm_interface+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  lt_cv_nm_interface="BSD nm"
5329  echo "int some_variable = 0;" > conftest.$ac_ext
5330  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5331  (eval "$ac_compile" 2>conftest.err)
5332  cat conftest.err >&5
5333  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5334  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5335  cat conftest.err >&5
5336  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5337  cat conftest.out >&5
5338  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5339    lt_cv_nm_interface="MS dumpbin"
5340  fi
5341  rm -f conftest*
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5344$as_echo "$lt_cv_nm_interface" >&6; }
5345
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5347$as_echo_n "checking whether ln -s works... " >&6; }
5348LN_S=$as_ln_s
5349if test "$LN_S" = "ln -s"; then
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351$as_echo "yes" >&6; }
5352else
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5354$as_echo "no, using $LN_S" >&6; }
5355fi
5356
5357# find the maximum length of command line arguments
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5359$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5360if ${lt_cv_sys_max_cmd_len+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363    i=0
5364  teststring=ABCD
5365
5366  case $build_os in
5367  msdosdjgpp*)
5368    # On DJGPP, this test can blow up pretty badly due to problems in libc
5369    # (any single argument exceeding 2000 bytes causes a buffer overrun
5370    # during glob expansion).  Even if it were fixed, the result of this
5371    # check would be larger than it should be.
5372    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5373    ;;
5374
5375  gnu*)
5376    # Under GNU Hurd, this test is not required because there is
5377    # no limit to the length of command line arguments.
5378    # Libtool will interpret -1 as no limit whatsoever
5379    lt_cv_sys_max_cmd_len=-1;
5380    ;;
5381
5382  cygwin* | mingw* | cegcc*)
5383    # On Win9x/ME, this test blows up -- it succeeds, but takes
5384    # about 5 minutes as the teststring grows exponentially.
5385    # Worse, since 9x/ME are not pre-emptively multitasking,
5386    # you end up with a "frozen" computer, even though with patience
5387    # the test eventually succeeds (with a max line length of 256k).
5388    # Instead, let's just punt: use the minimum linelength reported by
5389    # all of the supported platforms: 8192 (on NT/2K/XP).
5390    lt_cv_sys_max_cmd_len=8192;
5391    ;;
5392
5393  mint*)
5394    # On MiNT this can take a long time and run out of memory.
5395    lt_cv_sys_max_cmd_len=8192;
5396    ;;
5397
5398  amigaos*)
5399    # On AmigaOS with pdksh, this test takes hours, literally.
5400    # So we just punt and use a minimum line length of 8192.
5401    lt_cv_sys_max_cmd_len=8192;
5402    ;;
5403
5404  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5405    # This has been around since 386BSD, at least.  Likely further.
5406    if test -x /sbin/sysctl; then
5407      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5408    elif test -x /usr/sbin/sysctl; then
5409      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5410    else
5411      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5412    fi
5413    # And add a safety zone
5414    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5415    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5416    ;;
5417
5418  interix*)
5419    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5420    lt_cv_sys_max_cmd_len=196608
5421    ;;
5422
5423  os2*)
5424    # The test takes a long time on OS/2.
5425    lt_cv_sys_max_cmd_len=8192
5426    ;;
5427
5428  osf*)
5429    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5430    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5431    # nice to cause kernel panics so lets avoid the loop below.
5432    # First set a reasonable default.
5433    lt_cv_sys_max_cmd_len=16384
5434    #
5435    if test -x /sbin/sysconfig; then
5436      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5437        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5438      esac
5439    fi
5440    ;;
5441  sco3.2v5*)
5442    lt_cv_sys_max_cmd_len=102400
5443    ;;
5444  sysv5* | sco5v6* | sysv4.2uw2*)
5445    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5446    if test -n "$kargmax"; then
5447      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5448    else
5449      lt_cv_sys_max_cmd_len=32768
5450    fi
5451    ;;
5452  *)
5453    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5454    if test -n "$lt_cv_sys_max_cmd_len" && \
5455       test undefined != "$lt_cv_sys_max_cmd_len"; then
5456      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5457      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5458    else
5459      # Make teststring a little bigger before we do anything with it.
5460      # a 1K string should be a reasonable start.
5461      for i in 1 2 3 4 5 6 7 8; do
5462        teststring=$teststring$teststring
5463      done
5464      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5465      # If test is not a shell built-in, we'll probably end up computing a
5466      # maximum length that is only half of the actual maximum length, but
5467      # we can't tell.
5468      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5469	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5470	      test 17 != "$i" # 1/2 MB should be enough
5471      do
5472        i=`expr $i + 1`
5473        teststring=$teststring$teststring
5474      done
5475      # Only check the string length outside the loop.
5476      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5477      teststring=
5478      # Add a significant safety factor because C++ compilers can tack on
5479      # massive amounts of additional arguments before passing them to the
5480      # linker.  It appears as though 1/2 is a usable value.
5481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5482    fi
5483    ;;
5484  esac
5485
5486fi
5487
5488if test -n "$lt_cv_sys_max_cmd_len"; then
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5490$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5491else
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5493$as_echo "none" >&6; }
5494fi
5495max_cmd_len=$lt_cv_sys_max_cmd_len
5496
5497
5498
5499
5500
5501
5502: ${CP="cp -f"}
5503: ${MV="mv -f"}
5504: ${RM="rm -f"}
5505
5506if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5507  lt_unset=unset
5508else
5509  lt_unset=false
5510fi
5511
5512
5513
5514
5515
5516# test EBCDIC or ASCII
5517case `echo X|tr X '\101'` in
5518 A) # ASCII based system
5519    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5520  lt_SP2NL='tr \040 \012'
5521  lt_NL2SP='tr \015\012 \040\040'
5522  ;;
5523 *) # EBCDIC based system
5524  lt_SP2NL='tr \100 \n'
5525  lt_NL2SP='tr \r\n \100\100'
5526  ;;
5527esac
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5538$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5539if ${lt_cv_to_host_file_cmd+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  case $host in
5543  *-*-mingw* )
5544    case $build in
5545      *-*-mingw* ) # actually msys
5546        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5547        ;;
5548      *-*-cygwin* )
5549        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5550        ;;
5551      * ) # otherwise, assume *nix
5552        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5553        ;;
5554    esac
5555    ;;
5556  *-*-cygwin* )
5557    case $build in
5558      *-*-mingw* ) # actually msys
5559        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5560        ;;
5561      *-*-cygwin* )
5562        lt_cv_to_host_file_cmd=func_convert_file_noop
5563        ;;
5564      * ) # otherwise, assume *nix
5565        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5566        ;;
5567    esac
5568    ;;
5569  * ) # unhandled hosts (and "normal" native builds)
5570    lt_cv_to_host_file_cmd=func_convert_file_noop
5571    ;;
5572esac
5573
5574fi
5575
5576to_host_file_cmd=$lt_cv_to_host_file_cmd
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5578$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5579
5580
5581
5582
5583
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5585$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5586if ${lt_cv_to_tool_file_cmd+:} false; then :
5587  $as_echo_n "(cached) " >&6
5588else
5589  #assume ordinary cross tools, or native build.
5590lt_cv_to_tool_file_cmd=func_convert_file_noop
5591case $host in
5592  *-*-mingw* )
5593    case $build in
5594      *-*-mingw* ) # actually msys
5595        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5596        ;;
5597    esac
5598    ;;
5599esac
5600
5601fi
5602
5603to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5605$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5606
5607
5608
5609
5610
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5612$as_echo_n "checking for $LD option to reload object files... " >&6; }
5613if ${lt_cv_ld_reload_flag+:} false; then :
5614  $as_echo_n "(cached) " >&6
5615else
5616  lt_cv_ld_reload_flag='-r'
5617fi
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5619$as_echo "$lt_cv_ld_reload_flag" >&6; }
5620reload_flag=$lt_cv_ld_reload_flag
5621case $reload_flag in
5622"" | " "*) ;;
5623*) reload_flag=" $reload_flag" ;;
5624esac
5625reload_cmds='$LD$reload_flag -o $output$reload_objs'
5626case $host_os in
5627  cygwin* | mingw* | pw32* | cegcc*)
5628    if test yes != "$GCC"; then
5629      reload_cmds=false
5630    fi
5631    ;;
5632  darwin*)
5633    if test yes = "$GCC"; then
5634      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5635    else
5636      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5637    fi
5638    ;;
5639esac
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649if test -n "$ac_tool_prefix"; then
5650  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5651set dummy ${ac_tool_prefix}objdump; ac_word=$2
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653$as_echo_n "checking for $ac_word... " >&6; }
5654if ${ac_cv_prog_OBJDUMP+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  if test -n "$OBJDUMP"; then
5658  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663  IFS=$as_save_IFS
5664  test -z "$as_dir" && as_dir=.
5665    for ac_exec_ext in '' $ac_executable_extensions; do
5666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669    break 2
5670  fi
5671done
5672  done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
5677OBJDUMP=$ac_cv_prog_OBJDUMP
5678if test -n "$OBJDUMP"; then
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5680$as_echo "$OBJDUMP" >&6; }
5681else
5682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683$as_echo "no" >&6; }
5684fi
5685
5686
5687fi
5688if test -z "$ac_cv_prog_OBJDUMP"; then
5689  ac_ct_OBJDUMP=$OBJDUMP
5690  # Extract the first word of "objdump", so it can be a program name with args.
5691set dummy objdump; ac_word=$2
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693$as_echo_n "checking for $ac_word... " >&6; }
5694if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5695  $as_echo_n "(cached) " >&6
5696else
5697  if test -n "$ac_ct_OBJDUMP"; then
5698  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703  IFS=$as_save_IFS
5704  test -z "$as_dir" && as_dir=.
5705    for ac_exec_ext in '' $ac_executable_extensions; do
5706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709    break 2
5710  fi
5711done
5712  done
5713IFS=$as_save_IFS
5714
5715fi
5716fi
5717ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5718if test -n "$ac_ct_OBJDUMP"; then
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5720$as_echo "$ac_ct_OBJDUMP" >&6; }
5721else
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723$as_echo "no" >&6; }
5724fi
5725
5726  if test "x$ac_ct_OBJDUMP" = x; then
5727    OBJDUMP="false"
5728  else
5729    case $cross_compiling:$ac_tool_warned in
5730yes:)
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5733ac_tool_warned=yes ;;
5734esac
5735    OBJDUMP=$ac_ct_OBJDUMP
5736  fi
5737else
5738  OBJDUMP="$ac_cv_prog_OBJDUMP"
5739fi
5740
5741test -z "$OBJDUMP" && OBJDUMP=objdump
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5752$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5753if ${lt_cv_deplibs_check_method+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  lt_cv_file_magic_cmd='$MAGIC_CMD'
5757lt_cv_file_magic_test_file=
5758lt_cv_deplibs_check_method='unknown'
5759# Need to set the preceding variable on all platforms that support
5760# interlibrary dependencies.
5761# 'none' -- dependencies not supported.
5762# 'unknown' -- same as none, but documents that we really don't know.
5763# 'pass_all' -- all dependencies passed with no checks.
5764# 'test_compile' -- check by making test program.
5765# 'file_magic [[regex]]' -- check by looking for files in library path
5766# that responds to the $file_magic_cmd with a given extended regex.
5767# If you have 'file' or equivalent on your system and you're not sure
5768# whether 'pass_all' will *always* work, you probably want this one.
5769
5770case $host_os in
5771aix[4-9]*)
5772  lt_cv_deplibs_check_method=pass_all
5773  ;;
5774
5775beos*)
5776  lt_cv_deplibs_check_method=pass_all
5777  ;;
5778
5779bsdi[45]*)
5780  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5781  lt_cv_file_magic_cmd='/usr/bin/file -L'
5782  lt_cv_file_magic_test_file=/shlib/libc.so
5783  ;;
5784
5785cygwin*)
5786  # func_win32_libid is a shell function defined in ltmain.sh
5787  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5788  lt_cv_file_magic_cmd='func_win32_libid'
5789  ;;
5790
5791mingw* | pw32*)
5792  # Base MSYS/MinGW do not provide the 'file' command needed by
5793  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5794  # unless we find 'file', for example because we are cross-compiling.
5795  if ( file / ) >/dev/null 2>&1; then
5796    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5797    lt_cv_file_magic_cmd='func_win32_libid'
5798  else
5799    # Keep this pattern in sync with the one in func_win32_libid.
5800    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5801    lt_cv_file_magic_cmd='$OBJDUMP -f'
5802  fi
5803  ;;
5804
5805cegcc*)
5806  # use the weaker test based on 'objdump'. See mingw*.
5807  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5808  lt_cv_file_magic_cmd='$OBJDUMP -f'
5809  ;;
5810
5811darwin* | rhapsody*)
5812  lt_cv_deplibs_check_method=pass_all
5813  ;;
5814
5815freebsd* | dragonfly*)
5816  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5817    case $host_cpu in
5818    i*86 )
5819      # Not sure whether the presence of OpenBSD here was a mistake.
5820      # Let's accept both of them until this is cleared up.
5821      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5822      lt_cv_file_magic_cmd=/usr/bin/file
5823      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5824      ;;
5825    esac
5826  else
5827    lt_cv_deplibs_check_method=pass_all
5828  fi
5829  ;;
5830
5831haiku*)
5832  lt_cv_deplibs_check_method=pass_all
5833  ;;
5834
5835hpux10.20* | hpux11*)
5836  lt_cv_file_magic_cmd=/usr/bin/file
5837  case $host_cpu in
5838  ia64*)
5839    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5840    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5841    ;;
5842  hppa*64*)
5843    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]'
5844    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5845    ;;
5846  *)
5847    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5848    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5849    ;;
5850  esac
5851  ;;
5852
5853interix[3-9]*)
5854  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5855  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5856  ;;
5857
5858irix5* | irix6* | nonstopux*)
5859  case $LD in
5860  *-32|*"-32 ") libmagic=32-bit;;
5861  *-n32|*"-n32 ") libmagic=N32;;
5862  *-64|*"-64 ") libmagic=64-bit;;
5863  *) libmagic=never-match;;
5864  esac
5865  lt_cv_deplibs_check_method=pass_all
5866  ;;
5867
5868# This must be glibc/ELF.
5869linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5870  lt_cv_deplibs_check_method=pass_all
5871  ;;
5872
5873netbsd* | netbsdelf*-gnu)
5874  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5875    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5876  else
5877    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5878  fi
5879  ;;
5880
5881newos6*)
5882  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5883  lt_cv_file_magic_cmd=/usr/bin/file
5884  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5885  ;;
5886
5887*nto* | *qnx*)
5888  lt_cv_deplibs_check_method=pass_all
5889  ;;
5890
5891openbsd* | bitrig*)
5892  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5893    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5894  else
5895    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5896  fi
5897  ;;
5898
5899osf3* | osf4* | osf5*)
5900  lt_cv_deplibs_check_method=pass_all
5901  ;;
5902
5903rdos*)
5904  lt_cv_deplibs_check_method=pass_all
5905  ;;
5906
5907solaris*)
5908  lt_cv_deplibs_check_method=pass_all
5909  ;;
5910
5911sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915sysv4 | sysv4.3*)
5916  case $host_vendor in
5917  motorola)
5918    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]'
5919    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5920    ;;
5921  ncr)
5922    lt_cv_deplibs_check_method=pass_all
5923    ;;
5924  sequent)
5925    lt_cv_file_magic_cmd='/bin/file'
5926    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5927    ;;
5928  sni)
5929    lt_cv_file_magic_cmd='/bin/file'
5930    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5931    lt_cv_file_magic_test_file=/lib/libc.so
5932    ;;
5933  siemens)
5934    lt_cv_deplibs_check_method=pass_all
5935    ;;
5936  pc)
5937    lt_cv_deplibs_check_method=pass_all
5938    ;;
5939  esac
5940  ;;
5941
5942tpf*)
5943  lt_cv_deplibs_check_method=pass_all
5944  ;;
5945os2*)
5946  lt_cv_deplibs_check_method=pass_all
5947  ;;
5948esac
5949
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5952$as_echo "$lt_cv_deplibs_check_method" >&6; }
5953
5954file_magic_glob=
5955want_nocaseglob=no
5956if test "$build" = "$host"; then
5957  case $host_os in
5958  mingw* | pw32*)
5959    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5960      want_nocaseglob=yes
5961    else
5962      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5963    fi
5964    ;;
5965  esac
5966fi
5967
5968file_magic_cmd=$lt_cv_file_magic_cmd
5969deplibs_check_method=$lt_cv_deplibs_check_method
5970test -z "$deplibs_check_method" && deplibs_check_method=unknown
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993if test -n "$ac_tool_prefix"; then
5994  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997$as_echo_n "checking for $ac_word... " >&6; }
5998if ${ac_cv_prog_DLLTOOL+:} false; then :
5999  $as_echo_n "(cached) " >&6
6000else
6001  if test -n "$DLLTOOL"; then
6002  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007  IFS=$as_save_IFS
6008  test -z "$as_dir" && as_dir=.
6009    for ac_exec_ext in '' $ac_executable_extensions; do
6010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013    break 2
6014  fi
6015done
6016  done
6017IFS=$as_save_IFS
6018
6019fi
6020fi
6021DLLTOOL=$ac_cv_prog_DLLTOOL
6022if test -n "$DLLTOOL"; then
6023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6024$as_echo "$DLLTOOL" >&6; }
6025else
6026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
6028fi
6029
6030
6031fi
6032if test -z "$ac_cv_prog_DLLTOOL"; then
6033  ac_ct_DLLTOOL=$DLLTOOL
6034  # Extract the first word of "dlltool", so it can be a program name with args.
6035set dummy dlltool; ac_word=$2
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037$as_echo_n "checking for $ac_word... " >&6; }
6038if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6039  $as_echo_n "(cached) " >&6
6040else
6041  if test -n "$ac_ct_DLLTOOL"; then
6042  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6043else
6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047  IFS=$as_save_IFS
6048  test -z "$as_dir" && as_dir=.
6049    for ac_exec_ext in '' $ac_executable_extensions; do
6050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053    break 2
6054  fi
6055done
6056  done
6057IFS=$as_save_IFS
6058
6059fi
6060fi
6061ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6062if test -n "$ac_ct_DLLTOOL"; then
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6064$as_echo "$ac_ct_DLLTOOL" >&6; }
6065else
6066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067$as_echo "no" >&6; }
6068fi
6069
6070  if test "x$ac_ct_DLLTOOL" = x; then
6071    DLLTOOL="false"
6072  else
6073    case $cross_compiling:$ac_tool_warned in
6074yes:)
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077ac_tool_warned=yes ;;
6078esac
6079    DLLTOOL=$ac_ct_DLLTOOL
6080  fi
6081else
6082  DLLTOOL="$ac_cv_prog_DLLTOOL"
6083fi
6084
6085test -z "$DLLTOOL" && DLLTOOL=dlltool
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6097$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6098if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6099  $as_echo_n "(cached) " >&6
6100else
6101  lt_cv_sharedlib_from_linklib_cmd='unknown'
6102
6103case $host_os in
6104cygwin* | mingw* | pw32* | cegcc*)
6105  # two different shell functions defined in ltmain.sh;
6106  # decide which one to use based on capabilities of $DLLTOOL
6107  case `$DLLTOOL --help 2>&1` in
6108  *--identify-strict*)
6109    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6110    ;;
6111  *)
6112    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6113    ;;
6114  esac
6115  ;;
6116*)
6117  # fallback: assume linklib IS sharedlib
6118  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6119  ;;
6120esac
6121
6122fi
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6124$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6125sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6126test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6127
6128
6129
6130
6131
6132
6133
6134if test -n "$ac_tool_prefix"; then
6135  for ac_prog in ar
6136  do
6137    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6138set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140$as_echo_n "checking for $ac_word... " >&6; }
6141if ${ac_cv_prog_AR+:} false; then :
6142  $as_echo_n "(cached) " >&6
6143else
6144  if test -n "$AR"; then
6145  ac_cv_prog_AR="$AR" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150  IFS=$as_save_IFS
6151  test -z "$as_dir" && as_dir=.
6152    for ac_exec_ext in '' $ac_executable_extensions; do
6153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156    break 2
6157  fi
6158done
6159  done
6160IFS=$as_save_IFS
6161
6162fi
6163fi
6164AR=$ac_cv_prog_AR
6165if test -n "$AR"; then
6166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6167$as_echo "$AR" >&6; }
6168else
6169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170$as_echo "no" >&6; }
6171fi
6172
6173
6174    test -n "$AR" && break
6175  done
6176fi
6177if test -z "$AR"; then
6178  ac_ct_AR=$AR
6179  for ac_prog in ar
6180do
6181  # Extract the first word of "$ac_prog", so it can be a program name with args.
6182set dummy $ac_prog; ac_word=$2
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184$as_echo_n "checking for $ac_word... " >&6; }
6185if ${ac_cv_prog_ac_ct_AR+:} false; then :
6186  $as_echo_n "(cached) " >&6
6187else
6188  if test -n "$ac_ct_AR"; then
6189  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6190else
6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194  IFS=$as_save_IFS
6195  test -z "$as_dir" && as_dir=.
6196    for ac_exec_ext in '' $ac_executable_extensions; do
6197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198    ac_cv_prog_ac_ct_AR="$ac_prog"
6199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200    break 2
6201  fi
6202done
6203  done
6204IFS=$as_save_IFS
6205
6206fi
6207fi
6208ac_ct_AR=$ac_cv_prog_ac_ct_AR
6209if test -n "$ac_ct_AR"; then
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6211$as_echo "$ac_ct_AR" >&6; }
6212else
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214$as_echo "no" >&6; }
6215fi
6216
6217
6218  test -n "$ac_ct_AR" && break
6219done
6220
6221  if test "x$ac_ct_AR" = x; then
6222    AR="false"
6223  else
6224    case $cross_compiling:$ac_tool_warned in
6225yes:)
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228ac_tool_warned=yes ;;
6229esac
6230    AR=$ac_ct_AR
6231  fi
6232fi
6233
6234: ${AR=ar}
6235: ${AR_FLAGS=cru}
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6248$as_echo_n "checking for archiver @FILE support... " >&6; }
6249if ${lt_cv_ar_at_file+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  lt_cv_ar_at_file=no
6253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h.  */
6255
6256int
6257main ()
6258{
6259
6260  ;
6261  return 0;
6262}
6263_ACEOF
6264if ac_fn_c_try_compile "$LINENO"; then :
6265  echo conftest.$ac_objext > conftest.lst
6266      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6267      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6268  (eval $lt_ar_try) 2>&5
6269  ac_status=$?
6270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271  test $ac_status = 0; }
6272      if test 0 -eq "$ac_status"; then
6273	# Ensure the archiver fails upon bogus file names.
6274	rm -f conftest.$ac_objext libconftest.a
6275	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6276  (eval $lt_ar_try) 2>&5
6277  ac_status=$?
6278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279  test $ac_status = 0; }
6280	if test 0 -ne "$ac_status"; then
6281          lt_cv_ar_at_file=@
6282        fi
6283      fi
6284      rm -f conftest.* libconftest.a
6285
6286fi
6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288
6289fi
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6291$as_echo "$lt_cv_ar_at_file" >&6; }
6292
6293if test no = "$lt_cv_ar_at_file"; then
6294  archiver_list_spec=
6295else
6296  archiver_list_spec=$lt_cv_ar_at_file
6297fi
6298
6299
6300
6301
6302
6303
6304
6305if test -n "$ac_tool_prefix"; then
6306  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6307set dummy ${ac_tool_prefix}strip; ac_word=$2
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309$as_echo_n "checking for $ac_word... " >&6; }
6310if ${ac_cv_prog_STRIP+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  if test -n "$STRIP"; then
6314  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319  IFS=$as_save_IFS
6320  test -z "$as_dir" && as_dir=.
6321    for ac_exec_ext in '' $ac_executable_extensions; do
6322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328  done
6329IFS=$as_save_IFS
6330
6331fi
6332fi
6333STRIP=$ac_cv_prog_STRIP
6334if test -n "$STRIP"; then
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6336$as_echo "$STRIP" >&6; }
6337else
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340fi
6341
6342
6343fi
6344if test -z "$ac_cv_prog_STRIP"; then
6345  ac_ct_STRIP=$STRIP
6346  # Extract the first word of "strip", so it can be a program name with args.
6347set dummy strip; ac_word=$2
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349$as_echo_n "checking for $ac_word... " >&6; }
6350if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6351  $as_echo_n "(cached) " >&6
6352else
6353  if test -n "$ac_ct_STRIP"; then
6354  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6355else
6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359  IFS=$as_save_IFS
6360  test -z "$as_dir" && as_dir=.
6361    for ac_exec_ext in '' $ac_executable_extensions; do
6362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363    ac_cv_prog_ac_ct_STRIP="strip"
6364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365    break 2
6366  fi
6367done
6368  done
6369IFS=$as_save_IFS
6370
6371fi
6372fi
6373ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6374if test -n "$ac_ct_STRIP"; then
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6376$as_echo "$ac_ct_STRIP" >&6; }
6377else
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382  if test "x$ac_ct_STRIP" = x; then
6383    STRIP=":"
6384  else
6385    case $cross_compiling:$ac_tool_warned in
6386yes:)
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389ac_tool_warned=yes ;;
6390esac
6391    STRIP=$ac_ct_STRIP
6392  fi
6393else
6394  STRIP="$ac_cv_prog_STRIP"
6395fi
6396
6397test -z "$STRIP" && STRIP=:
6398
6399
6400
6401
6402
6403
6404if test -n "$ac_tool_prefix"; then
6405  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6406set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408$as_echo_n "checking for $ac_word... " >&6; }
6409if ${ac_cv_prog_RANLIB+:} false; then :
6410  $as_echo_n "(cached) " >&6
6411else
6412  if test -n "$RANLIB"; then
6413  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6414else
6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418  IFS=$as_save_IFS
6419  test -z "$as_dir" && as_dir=.
6420    for ac_exec_ext in '' $ac_executable_extensions; do
6421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424    break 2
6425  fi
6426done
6427  done
6428IFS=$as_save_IFS
6429
6430fi
6431fi
6432RANLIB=$ac_cv_prog_RANLIB
6433if test -n "$RANLIB"; then
6434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6435$as_echo "$RANLIB" >&6; }
6436else
6437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438$as_echo "no" >&6; }
6439fi
6440
6441
6442fi
6443if test -z "$ac_cv_prog_RANLIB"; then
6444  ac_ct_RANLIB=$RANLIB
6445  # Extract the first word of "ranlib", so it can be a program name with args.
6446set dummy ranlib; ac_word=$2
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448$as_echo_n "checking for $ac_word... " >&6; }
6449if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6450  $as_echo_n "(cached) " >&6
6451else
6452  if test -n "$ac_ct_RANLIB"; then
6453  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458  IFS=$as_save_IFS
6459  test -z "$as_dir" && as_dir=.
6460    for ac_exec_ext in '' $ac_executable_extensions; do
6461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462    ac_cv_prog_ac_ct_RANLIB="ranlib"
6463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464    break 2
6465  fi
6466done
6467  done
6468IFS=$as_save_IFS
6469
6470fi
6471fi
6472ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6473if test -n "$ac_ct_RANLIB"; then
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6475$as_echo "$ac_ct_RANLIB" >&6; }
6476else
6477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478$as_echo "no" >&6; }
6479fi
6480
6481  if test "x$ac_ct_RANLIB" = x; then
6482    RANLIB=":"
6483  else
6484    case $cross_compiling:$ac_tool_warned in
6485yes:)
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488ac_tool_warned=yes ;;
6489esac
6490    RANLIB=$ac_ct_RANLIB
6491  fi
6492else
6493  RANLIB="$ac_cv_prog_RANLIB"
6494fi
6495
6496test -z "$RANLIB" && RANLIB=:
6497
6498
6499
6500
6501
6502
6503# Determine commands to create old-style static archives.
6504old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6505old_postinstall_cmds='chmod 644 $oldlib'
6506old_postuninstall_cmds=
6507
6508if test -n "$RANLIB"; then
6509  case $host_os in
6510  bitrig* | openbsd*)
6511    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6512    ;;
6513  *)
6514    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6515    ;;
6516  esac
6517  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6518fi
6519
6520case $host_os in
6521  darwin*)
6522    lock_old_archive_extraction=yes ;;
6523  *)
6524    lock_old_archive_extraction=no ;;
6525esac
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565# If no C compiler was specified, use CC.
6566LTCC=${LTCC-"$CC"}
6567
6568# If no C compiler flags were specified, use CFLAGS.
6569LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6570
6571# Allow CC to be a program name with arguments.
6572compiler=$CC
6573
6574
6575# Check for command to grab the raw symbol name followed by C symbol from nm.
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6577$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6578if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581
6582# These are sane defaults that work on at least a few old systems.
6583# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6584
6585# Character class describing NM global symbol codes.
6586symcode='[BCDEGRST]'
6587
6588# Regexp to match symbols that can be accessed directly from C.
6589sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6590
6591# Define system-specific variables.
6592case $host_os in
6593aix*)
6594  symcode='[BCDT]'
6595  ;;
6596cygwin* | mingw* | pw32* | cegcc*)
6597  symcode='[ABCDGISTW]'
6598  ;;
6599hpux*)
6600  if test ia64 = "$host_cpu"; then
6601    symcode='[ABCDEGRST]'
6602  fi
6603  ;;
6604irix* | nonstopux*)
6605  symcode='[BCDEGRST]'
6606  ;;
6607osf*)
6608  symcode='[BCDEGQRST]'
6609  ;;
6610solaris*)
6611  symcode='[BDRT]'
6612  ;;
6613sco3.2v5*)
6614  symcode='[DT]'
6615  ;;
6616sysv4.2uw2*)
6617  symcode='[DT]'
6618  ;;
6619sysv5* | sco5v6* | unixware* | OpenUNIX*)
6620  symcode='[ABDT]'
6621  ;;
6622sysv4)
6623  symcode='[DFNSTU]'
6624  ;;
6625esac
6626
6627# If we're using GNU nm, then use its standard symbol codes.
6628case `$NM -V 2>&1` in
6629*GNU* | *'with BFD'*)
6630  symcode='[ABCDGIRSTW]' ;;
6631esac
6632
6633if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6634  # Gets list of data symbols to import.
6635  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6636  # Adjust the below global symbol transforms to fixup imported variables.
6637  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6638  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6639  lt_c_name_lib_hook="\
6640  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6641  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6642else
6643  # Disable hooks by default.
6644  lt_cv_sys_global_symbol_to_import=
6645  lt_cdecl_hook=
6646  lt_c_name_hook=
6647  lt_c_name_lib_hook=
6648fi
6649
6650# Transform an extracted symbol line into a proper C declaration.
6651# Some systems (esp. on ia64) link data and code symbols differently,
6652# so use this general approach.
6653lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6654$lt_cdecl_hook\
6655" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6656" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6657
6658# Transform an extracted symbol line into symbol name and symbol address
6659lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6660$lt_c_name_hook\
6661" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6662" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6663
6664# Transform an extracted symbol line into symbol name with lib prefix and
6665# symbol address.
6666lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6667$lt_c_name_lib_hook\
6668" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6669" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6670" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6671
6672# Handle CRLF in mingw tool chain
6673opt_cr=
6674case $build_os in
6675mingw*)
6676  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6677  ;;
6678esac
6679
6680# Try without a prefix underscore, then with it.
6681for ac_symprfx in "" "_"; do
6682
6683  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6684  symxfrm="\\1 $ac_symprfx\\2 \\2"
6685
6686  # Write the raw and C identifiers.
6687  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6688    # Fake it for dumpbin and say T for any non-static function,
6689    # D for any global variable and I for any imported variable.
6690    # Also find C++ and __fastcall symbols from MSVC++,
6691    # which start with @ or ?.
6692    lt_cv_sys_global_symbol_pipe="$AWK '"\
6693"     {last_section=section; section=\$ 3};"\
6694"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6695"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6696"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6697"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6698"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6699"     \$ 0!~/External *\|/{next};"\
6700"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6701"     {if(hide[section]) next};"\
6702"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6703"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6704"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6705"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6706"     ' prfx=^$ac_symprfx"
6707  else
6708    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6709  fi
6710  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6711
6712  # Check to see that the pipe works correctly.
6713  pipe_works=no
6714
6715  rm -f conftest*
6716  cat > conftest.$ac_ext <<_LT_EOF
6717#ifdef __cplusplus
6718extern "C" {
6719#endif
6720char nm_test_var;
6721void nm_test_func(void);
6722void nm_test_func(void){}
6723#ifdef __cplusplus
6724}
6725#endif
6726int main(){nm_test_var='a';nm_test_func();return(0);}
6727_LT_EOF
6728
6729  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730  (eval $ac_compile) 2>&5
6731  ac_status=$?
6732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733  test $ac_status = 0; }; then
6734    # Now try to grab the symbols.
6735    nlist=conftest.nm
6736    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6737  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6738  ac_status=$?
6739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740  test $ac_status = 0; } && test -s "$nlist"; then
6741      # Try sorting and uniquifying the output.
6742      if sort "$nlist" | uniq > "$nlist"T; then
6743	mv -f "$nlist"T "$nlist"
6744      else
6745	rm -f "$nlist"T
6746      fi
6747
6748      # Make sure that we snagged all the symbols we need.
6749      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6750	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6751	  cat <<_LT_EOF > conftest.$ac_ext
6752/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6753#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6754/* DATA imports from DLLs on WIN32 can't be const, because runtime
6755   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6756# define LT_DLSYM_CONST
6757#elif defined __osf__
6758/* This system does not cope well with relocations in const data.  */
6759# define LT_DLSYM_CONST
6760#else
6761# define LT_DLSYM_CONST const
6762#endif
6763
6764#ifdef __cplusplus
6765extern "C" {
6766#endif
6767
6768_LT_EOF
6769	  # Now generate the symbol file.
6770	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6771
6772	  cat <<_LT_EOF >> conftest.$ac_ext
6773
6774/* The mapping between symbol names and symbols.  */
6775LT_DLSYM_CONST struct {
6776  const char *name;
6777  void       *address;
6778}
6779lt__PROGRAM__LTX_preloaded_symbols[] =
6780{
6781  { "@PROGRAM@", (void *) 0 },
6782_LT_EOF
6783	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6784	  cat <<\_LT_EOF >> conftest.$ac_ext
6785  {0, (void *) 0}
6786};
6787
6788/* This works around a problem in FreeBSD linker */
6789#ifdef FREEBSD_WORKAROUND
6790static const void *lt_preloaded_setup() {
6791  return lt__PROGRAM__LTX_preloaded_symbols;
6792}
6793#endif
6794
6795#ifdef __cplusplus
6796}
6797#endif
6798_LT_EOF
6799	  # Now try linking the two files.
6800	  mv conftest.$ac_objext conftstm.$ac_objext
6801	  lt_globsym_save_LIBS=$LIBS
6802	  lt_globsym_save_CFLAGS=$CFLAGS
6803	  LIBS=conftstm.$ac_objext
6804	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6805	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6806  (eval $ac_link) 2>&5
6807  ac_status=$?
6808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6810	    pipe_works=yes
6811	  fi
6812	  LIBS=$lt_globsym_save_LIBS
6813	  CFLAGS=$lt_globsym_save_CFLAGS
6814	else
6815	  echo "cannot find nm_test_func in $nlist" >&5
6816	fi
6817      else
6818	echo "cannot find nm_test_var in $nlist" >&5
6819      fi
6820    else
6821      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6822    fi
6823  else
6824    echo "$progname: failed program was:" >&5
6825    cat conftest.$ac_ext >&5
6826  fi
6827  rm -rf conftest* conftst*
6828
6829  # Do not use the global_symbol_pipe unless it works.
6830  if test yes = "$pipe_works"; then
6831    break
6832  else
6833    lt_cv_sys_global_symbol_pipe=
6834  fi
6835done
6836
6837fi
6838
6839if test -z "$lt_cv_sys_global_symbol_pipe"; then
6840  lt_cv_sys_global_symbol_to_cdecl=
6841fi
6842if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6844$as_echo "failed" >&6; }
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6847$as_echo "ok" >&6; }
6848fi
6849
6850# Response file support.
6851if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6852  nm_file_list_spec='@'
6853elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6854  nm_file_list_spec='@'
6855fi
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6894$as_echo_n "checking for sysroot... " >&6; }
6895
6896# Check whether --with-sysroot was given.
6897if test "${with_sysroot+set}" = set; then :
6898  withval=$with_sysroot;
6899else
6900  with_sysroot=no
6901fi
6902
6903
6904lt_sysroot=
6905case $with_sysroot in #(
6906 yes)
6907   if test yes = "$GCC"; then
6908     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6909   fi
6910   ;; #(
6911 /*)
6912   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6913   ;; #(
6914 no|'')
6915   ;; #(
6916 *)
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6918$as_echo "$with_sysroot" >&6; }
6919   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6920   ;;
6921esac
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6924$as_echo "${lt_sysroot:-no}" >&6; }
6925
6926
6927
6928
6929
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6931$as_echo_n "checking for a working dd... " >&6; }
6932if ${ac_cv_path_lt_DD+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  printf 0123456789abcdef0123456789abcdef >conftest.i
6936cat conftest.i conftest.i >conftest2.i
6937: ${lt_DD:=$DD}
6938if test -z "$lt_DD"; then
6939  ac_path_lt_DD_found=false
6940  # Loop through the user's path and test for each of PROGNAME-LIST
6941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944  IFS=$as_save_IFS
6945  test -z "$as_dir" && as_dir=.
6946    for ac_prog in dd; do
6947    for ac_exec_ext in '' $ac_executable_extensions; do
6948      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6949      as_fn_executable_p "$ac_path_lt_DD" || continue
6950if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6951  cmp -s conftest.i conftest.out \
6952  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6953fi
6954      $ac_path_lt_DD_found && break 3
6955    done
6956  done
6957  done
6958IFS=$as_save_IFS
6959  if test -z "$ac_cv_path_lt_DD"; then
6960    :
6961  fi
6962else
6963  ac_cv_path_lt_DD=$lt_DD
6964fi
6965
6966rm -f conftest.i conftest2.i conftest.out
6967fi
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6969$as_echo "$ac_cv_path_lt_DD" >&6; }
6970
6971
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6973$as_echo_n "checking how to truncate binary pipes... " >&6; }
6974if ${lt_cv_truncate_bin+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  printf 0123456789abcdef0123456789abcdef >conftest.i
6978cat conftest.i conftest.i >conftest2.i
6979lt_cv_truncate_bin=
6980if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6981  cmp -s conftest.i conftest.out \
6982  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6983fi
6984rm -f conftest.i conftest2.i conftest.out
6985test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6986fi
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6988$as_echo "$lt_cv_truncate_bin" >&6; }
6989
6990
6991
6992
6993
6994
6995
6996# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6997func_cc_basename ()
6998{
6999    for cc_temp in $*""; do
7000      case $cc_temp in
7001        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7002        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7003        \-*) ;;
7004        *) break;;
7005      esac
7006    done
7007    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7008}
7009
7010# Check whether --enable-libtool-lock was given.
7011if test "${enable_libtool_lock+set}" = set; then :
7012  enableval=$enable_libtool_lock;
7013fi
7014
7015test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7016
7017# Some flags need to be propagated to the compiler or linker for good
7018# libtool support.
7019case $host in
7020ia64-*-hpux*)
7021  # Find out what ABI is being produced by ac_compile, and set mode
7022  # options accordingly.
7023  echo 'int i;' > conftest.$ac_ext
7024  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025  (eval $ac_compile) 2>&5
7026  ac_status=$?
7027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028  test $ac_status = 0; }; then
7029    case `/usr/bin/file conftest.$ac_objext` in
7030      *ELF-32*)
7031	HPUX_IA64_MODE=32
7032	;;
7033      *ELF-64*)
7034	HPUX_IA64_MODE=64
7035	;;
7036    esac
7037  fi
7038  rm -rf conftest*
7039  ;;
7040*-*-irix6*)
7041  # Find out what ABI is being produced by ac_compile, and set linker
7042  # options accordingly.
7043  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7044  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045  (eval $ac_compile) 2>&5
7046  ac_status=$?
7047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048  test $ac_status = 0; }; then
7049    if test yes = "$lt_cv_prog_gnu_ld"; then
7050      case `/usr/bin/file conftest.$ac_objext` in
7051	*32-bit*)
7052	  LD="${LD-ld} -melf32bsmip"
7053	  ;;
7054	*N32*)
7055	  LD="${LD-ld} -melf32bmipn32"
7056	  ;;
7057	*64-bit*)
7058	  LD="${LD-ld} -melf64bmip"
7059	;;
7060      esac
7061    else
7062      case `/usr/bin/file conftest.$ac_objext` in
7063	*32-bit*)
7064	  LD="${LD-ld} -32"
7065	  ;;
7066	*N32*)
7067	  LD="${LD-ld} -n32"
7068	  ;;
7069	*64-bit*)
7070	  LD="${LD-ld} -64"
7071	  ;;
7072      esac
7073    fi
7074  fi
7075  rm -rf conftest*
7076  ;;
7077
7078mips64*-*linux*)
7079  # Find out what ABI is being produced by ac_compile, and set linker
7080  # options accordingly.
7081  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7082  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083  (eval $ac_compile) 2>&5
7084  ac_status=$?
7085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086  test $ac_status = 0; }; then
7087    emul=elf
7088    case `/usr/bin/file conftest.$ac_objext` in
7089      *32-bit*)
7090	emul="${emul}32"
7091	;;
7092      *64-bit*)
7093	emul="${emul}64"
7094	;;
7095    esac
7096    case `/usr/bin/file conftest.$ac_objext` in
7097      *MSB*)
7098	emul="${emul}btsmip"
7099	;;
7100      *LSB*)
7101	emul="${emul}ltsmip"
7102	;;
7103    esac
7104    case `/usr/bin/file conftest.$ac_objext` in
7105      *N32*)
7106	emul="${emul}n32"
7107	;;
7108    esac
7109    LD="${LD-ld} -m $emul"
7110  fi
7111  rm -rf conftest*
7112  ;;
7113
7114x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7115s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7116  # Find out what ABI is being produced by ac_compile, and set linker
7117  # options accordingly.  Note that the listed cases only cover the
7118  # situations where additional linker options are needed (such as when
7119  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7120  # vice versa); the common cases where no linker options are needed do
7121  # not appear in the list.
7122  echo 'int i;' > conftest.$ac_ext
7123  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7124  (eval $ac_compile) 2>&5
7125  ac_status=$?
7126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127  test $ac_status = 0; }; then
7128    case `/usr/bin/file conftest.o` in
7129      *32-bit*)
7130	case $host in
7131	  x86_64-*kfreebsd*-gnu)
7132	    LD="${LD-ld} -m elf_i386_fbsd"
7133	    ;;
7134	  x86_64-*linux*)
7135	    case `/usr/bin/file conftest.o` in
7136	      *x86-64*)
7137		LD="${LD-ld} -m elf32_x86_64"
7138		;;
7139	      *)
7140		LD="${LD-ld} -m elf_i386"
7141		;;
7142	    esac
7143	    ;;
7144	  powerpc64le-*linux*)
7145	    LD="${LD-ld} -m elf32lppclinux"
7146	    ;;
7147	  powerpc64-*linux*)
7148	    LD="${LD-ld} -m elf32ppclinux"
7149	    ;;
7150	  s390x-*linux*)
7151	    LD="${LD-ld} -m elf_s390"
7152	    ;;
7153	  sparc64-*linux*)
7154	    LD="${LD-ld} -m elf32_sparc"
7155	    ;;
7156	esac
7157	;;
7158      *64-bit*)
7159	case $host in
7160	  x86_64-*kfreebsd*-gnu)
7161	    LD="${LD-ld} -m elf_x86_64_fbsd"
7162	    ;;
7163	  x86_64-*linux*)
7164	    LD="${LD-ld} -m elf_x86_64"
7165	    ;;
7166	  powerpcle-*linux*)
7167	    LD="${LD-ld} -m elf64lppc"
7168	    ;;
7169	  powerpc-*linux*)
7170	    LD="${LD-ld} -m elf64ppc"
7171	    ;;
7172	  s390*-*linux*|s390*-*tpf*)
7173	    LD="${LD-ld} -m elf64_s390"
7174	    ;;
7175	  sparc*-*linux*)
7176	    LD="${LD-ld} -m elf64_sparc"
7177	    ;;
7178	esac
7179	;;
7180    esac
7181  fi
7182  rm -rf conftest*
7183  ;;
7184
7185*-*-sco3.2v5*)
7186  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7187  SAVE_CFLAGS=$CFLAGS
7188  CFLAGS="$CFLAGS -belf"
7189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7190$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7191if ${lt_cv_cc_needs_belf+:} false; then :
7192  $as_echo_n "(cached) " >&6
7193else
7194  ac_ext=c
7195ac_cpp='$CPP $CPPFLAGS'
7196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199
7200     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h.  */
7202
7203int
7204main ()
7205{
7206
7207  ;
7208  return 0;
7209}
7210_ACEOF
7211if ac_fn_c_try_link "$LINENO"; then :
7212  lt_cv_cc_needs_belf=yes
7213else
7214  lt_cv_cc_needs_belf=no
7215fi
7216rm -f core conftest.err conftest.$ac_objext \
7217    conftest$ac_exeext conftest.$ac_ext
7218     ac_ext=c
7219ac_cpp='$CPP $CPPFLAGS'
7220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222ac_compiler_gnu=$ac_cv_c_compiler_gnu
7223
7224fi
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7226$as_echo "$lt_cv_cc_needs_belf" >&6; }
7227  if test yes != "$lt_cv_cc_needs_belf"; then
7228    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7229    CFLAGS=$SAVE_CFLAGS
7230  fi
7231  ;;
7232*-*solaris*)
7233  # Find out what ABI is being produced by ac_compile, and set linker
7234  # options accordingly.
7235  echo 'int i;' > conftest.$ac_ext
7236  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7237  (eval $ac_compile) 2>&5
7238  ac_status=$?
7239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7240  test $ac_status = 0; }; then
7241    case `/usr/bin/file conftest.o` in
7242    *64-bit*)
7243      case $lt_cv_prog_gnu_ld in
7244      yes*)
7245        case $host in
7246        i?86-*-solaris*|x86_64-*-solaris*)
7247          LD="${LD-ld} -m elf_x86_64"
7248          ;;
7249        sparc*-*-solaris*)
7250          LD="${LD-ld} -m elf64_sparc"
7251          ;;
7252        esac
7253        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7254        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7255          LD=${LD-ld}_sol2
7256        fi
7257        ;;
7258      *)
7259	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7260	  LD="${LD-ld} -64"
7261	fi
7262	;;
7263      esac
7264      ;;
7265    esac
7266  fi
7267  rm -rf conftest*
7268  ;;
7269esac
7270
7271need_locks=$enable_libtool_lock
7272
7273if test -n "$ac_tool_prefix"; then
7274  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7275set dummy ${ac_tool_prefix}mt; ac_word=$2
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277$as_echo_n "checking for $ac_word... " >&6; }
7278if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7279  $as_echo_n "(cached) " >&6
7280else
7281  if test -n "$MANIFEST_TOOL"; then
7282  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7283else
7284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285for as_dir in $PATH
7286do
7287  IFS=$as_save_IFS
7288  test -z "$as_dir" && as_dir=.
7289    for ac_exec_ext in '' $ac_executable_extensions; do
7290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293    break 2
7294  fi
7295done
7296  done
7297IFS=$as_save_IFS
7298
7299fi
7300fi
7301MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7302if test -n "$MANIFEST_TOOL"; then
7303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7304$as_echo "$MANIFEST_TOOL" >&6; }
7305else
7306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307$as_echo "no" >&6; }
7308fi
7309
7310
7311fi
7312if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7313  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7314  # Extract the first word of "mt", so it can be a program name with args.
7315set dummy mt; ac_word=$2
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317$as_echo_n "checking for $ac_word... " >&6; }
7318if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7319  $as_echo_n "(cached) " >&6
7320else
7321  if test -n "$ac_ct_MANIFEST_TOOL"; then
7322  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7323else
7324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327  IFS=$as_save_IFS
7328  test -z "$as_dir" && as_dir=.
7329    for ac_exec_ext in '' $ac_executable_extensions; do
7330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333    break 2
7334  fi
7335done
7336  done
7337IFS=$as_save_IFS
7338
7339fi
7340fi
7341ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7342if test -n "$ac_ct_MANIFEST_TOOL"; then
7343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7344$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7345else
7346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347$as_echo "no" >&6; }
7348fi
7349
7350  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7351    MANIFEST_TOOL=":"
7352  else
7353    case $cross_compiling:$ac_tool_warned in
7354yes:)
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357ac_tool_warned=yes ;;
7358esac
7359    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7360  fi
7361else
7362  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7363fi
7364
7365test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7367$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7368if ${lt_cv_path_mainfest_tool+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  lt_cv_path_mainfest_tool=no
7372  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7373  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7374  cat conftest.err >&5
7375  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7376    lt_cv_path_mainfest_tool=yes
7377  fi
7378  rm -f conftest*
7379fi
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7381$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7382if test yes != "$lt_cv_path_mainfest_tool"; then
7383  MANIFEST_TOOL=:
7384fi
7385
7386
7387
7388
7389
7390
7391  case $host_os in
7392    rhapsody* | darwin*)
7393    if test -n "$ac_tool_prefix"; then
7394  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7395set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397$as_echo_n "checking for $ac_word... " >&6; }
7398if ${ac_cv_prog_DSYMUTIL+:} false; then :
7399  $as_echo_n "(cached) " >&6
7400else
7401  if test -n "$DSYMUTIL"; then
7402  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7403else
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407  IFS=$as_save_IFS
7408  test -z "$as_dir" && as_dir=.
7409    for ac_exec_ext in '' $ac_executable_extensions; do
7410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413    break 2
7414  fi
7415done
7416  done
7417IFS=$as_save_IFS
7418
7419fi
7420fi
7421DSYMUTIL=$ac_cv_prog_DSYMUTIL
7422if test -n "$DSYMUTIL"; then
7423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7424$as_echo "$DSYMUTIL" >&6; }
7425else
7426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427$as_echo "no" >&6; }
7428fi
7429
7430
7431fi
7432if test -z "$ac_cv_prog_DSYMUTIL"; then
7433  ac_ct_DSYMUTIL=$DSYMUTIL
7434  # Extract the first word of "dsymutil", so it can be a program name with args.
7435set dummy dsymutil; ac_word=$2
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7439  $as_echo_n "(cached) " >&6
7440else
7441  if test -n "$ac_ct_DSYMUTIL"; then
7442  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447  IFS=$as_save_IFS
7448  test -z "$as_dir" && as_dir=.
7449    for ac_exec_ext in '' $ac_executable_extensions; do
7450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453    break 2
7454  fi
7455done
7456  done
7457IFS=$as_save_IFS
7458
7459fi
7460fi
7461ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7462if test -n "$ac_ct_DSYMUTIL"; then
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7464$as_echo "$ac_ct_DSYMUTIL" >&6; }
7465else
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
7469
7470  if test "x$ac_ct_DSYMUTIL" = x; then
7471    DSYMUTIL=":"
7472  else
7473    case $cross_compiling:$ac_tool_warned in
7474yes:)
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477ac_tool_warned=yes ;;
7478esac
7479    DSYMUTIL=$ac_ct_DSYMUTIL
7480  fi
7481else
7482  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7483fi
7484
7485    if test -n "$ac_tool_prefix"; then
7486  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7487set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489$as_echo_n "checking for $ac_word... " >&6; }
7490if ${ac_cv_prog_NMEDIT+:} false; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  if test -n "$NMEDIT"; then
7494  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7495else
7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497for as_dir in $PATH
7498do
7499  IFS=$as_save_IFS
7500  test -z "$as_dir" && as_dir=.
7501    for ac_exec_ext in '' $ac_executable_extensions; do
7502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505    break 2
7506  fi
7507done
7508  done
7509IFS=$as_save_IFS
7510
7511fi
7512fi
7513NMEDIT=$ac_cv_prog_NMEDIT
7514if test -n "$NMEDIT"; then
7515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7516$as_echo "$NMEDIT" >&6; }
7517else
7518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519$as_echo "no" >&6; }
7520fi
7521
7522
7523fi
7524if test -z "$ac_cv_prog_NMEDIT"; then
7525  ac_ct_NMEDIT=$NMEDIT
7526  # Extract the first word of "nmedit", so it can be a program name with args.
7527set dummy nmedit; ac_word=$2
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529$as_echo_n "checking for $ac_word... " >&6; }
7530if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  if test -n "$ac_ct_NMEDIT"; then
7534  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7535else
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539  IFS=$as_save_IFS
7540  test -z "$as_dir" && as_dir=.
7541    for ac_exec_ext in '' $ac_executable_extensions; do
7542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545    break 2
7546  fi
7547done
7548  done
7549IFS=$as_save_IFS
7550
7551fi
7552fi
7553ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7554if test -n "$ac_ct_NMEDIT"; then
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7556$as_echo "$ac_ct_NMEDIT" >&6; }
7557else
7558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559$as_echo "no" >&6; }
7560fi
7561
7562  if test "x$ac_ct_NMEDIT" = x; then
7563    NMEDIT=":"
7564  else
7565    case $cross_compiling:$ac_tool_warned in
7566yes:)
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569ac_tool_warned=yes ;;
7570esac
7571    NMEDIT=$ac_ct_NMEDIT
7572  fi
7573else
7574  NMEDIT="$ac_cv_prog_NMEDIT"
7575fi
7576
7577    if test -n "$ac_tool_prefix"; then
7578  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7579set dummy ${ac_tool_prefix}lipo; ac_word=$2
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581$as_echo_n "checking for $ac_word... " >&6; }
7582if ${ac_cv_prog_LIPO+:} false; then :
7583  $as_echo_n "(cached) " >&6
7584else
7585  if test -n "$LIPO"; then
7586  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7587else
7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591  IFS=$as_save_IFS
7592  test -z "$as_dir" && as_dir=.
7593    for ac_exec_ext in '' $ac_executable_extensions; do
7594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597    break 2
7598  fi
7599done
7600  done
7601IFS=$as_save_IFS
7602
7603fi
7604fi
7605LIPO=$ac_cv_prog_LIPO
7606if test -n "$LIPO"; then
7607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7608$as_echo "$LIPO" >&6; }
7609else
7610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611$as_echo "no" >&6; }
7612fi
7613
7614
7615fi
7616if test -z "$ac_cv_prog_LIPO"; then
7617  ac_ct_LIPO=$LIPO
7618  # Extract the first word of "lipo", so it can be a program name with args.
7619set dummy lipo; ac_word=$2
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621$as_echo_n "checking for $ac_word... " >&6; }
7622if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  if test -n "$ac_ct_LIPO"; then
7626  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7627else
7628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631  IFS=$as_save_IFS
7632  test -z "$as_dir" && as_dir=.
7633    for ac_exec_ext in '' $ac_executable_extensions; do
7634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635    ac_cv_prog_ac_ct_LIPO="lipo"
7636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637    break 2
7638  fi
7639done
7640  done
7641IFS=$as_save_IFS
7642
7643fi
7644fi
7645ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7646if test -n "$ac_ct_LIPO"; then
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7648$as_echo "$ac_ct_LIPO" >&6; }
7649else
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651$as_echo "no" >&6; }
7652fi
7653
7654  if test "x$ac_ct_LIPO" = x; then
7655    LIPO=":"
7656  else
7657    case $cross_compiling:$ac_tool_warned in
7658yes:)
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661ac_tool_warned=yes ;;
7662esac
7663    LIPO=$ac_ct_LIPO
7664  fi
7665else
7666  LIPO="$ac_cv_prog_LIPO"
7667fi
7668
7669    if test -n "$ac_tool_prefix"; then
7670  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7671set dummy ${ac_tool_prefix}otool; ac_word=$2
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673$as_echo_n "checking for $ac_word... " >&6; }
7674if ${ac_cv_prog_OTOOL+:} false; then :
7675  $as_echo_n "(cached) " >&6
7676else
7677  if test -n "$OTOOL"; then
7678  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7679else
7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683  IFS=$as_save_IFS
7684  test -z "$as_dir" && as_dir=.
7685    for ac_exec_ext in '' $ac_executable_extensions; do
7686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689    break 2
7690  fi
7691done
7692  done
7693IFS=$as_save_IFS
7694
7695fi
7696fi
7697OTOOL=$ac_cv_prog_OTOOL
7698if test -n "$OTOOL"; then
7699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7700$as_echo "$OTOOL" >&6; }
7701else
7702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703$as_echo "no" >&6; }
7704fi
7705
7706
7707fi
7708if test -z "$ac_cv_prog_OTOOL"; then
7709  ac_ct_OTOOL=$OTOOL
7710  # Extract the first word of "otool", so it can be a program name with args.
7711set dummy otool; ac_word=$2
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713$as_echo_n "checking for $ac_word... " >&6; }
7714if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717  if test -n "$ac_ct_OTOOL"; then
7718  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  test -z "$as_dir" && as_dir=.
7725    for ac_exec_ext in '' $ac_executable_extensions; do
7726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727    ac_cv_prog_ac_ct_OTOOL="otool"
7728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729    break 2
7730  fi
7731done
7732  done
7733IFS=$as_save_IFS
7734
7735fi
7736fi
7737ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7738if test -n "$ac_ct_OTOOL"; then
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7740$as_echo "$ac_ct_OTOOL" >&6; }
7741else
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743$as_echo "no" >&6; }
7744fi
7745
7746  if test "x$ac_ct_OTOOL" = x; then
7747    OTOOL=":"
7748  else
7749    case $cross_compiling:$ac_tool_warned in
7750yes:)
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753ac_tool_warned=yes ;;
7754esac
7755    OTOOL=$ac_ct_OTOOL
7756  fi
7757else
7758  OTOOL="$ac_cv_prog_OTOOL"
7759fi
7760
7761    if test -n "$ac_tool_prefix"; then
7762  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7763set dummy ${ac_tool_prefix}otool64; ac_word=$2
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765$as_echo_n "checking for $ac_word... " >&6; }
7766if ${ac_cv_prog_OTOOL64+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  if test -n "$OTOOL64"; then
7770  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7771else
7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775  IFS=$as_save_IFS
7776  test -z "$as_dir" && as_dir=.
7777    for ac_exec_ext in '' $ac_executable_extensions; do
7778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781    break 2
7782  fi
7783done
7784  done
7785IFS=$as_save_IFS
7786
7787fi
7788fi
7789OTOOL64=$ac_cv_prog_OTOOL64
7790if test -n "$OTOOL64"; then
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7792$as_echo "$OTOOL64" >&6; }
7793else
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795$as_echo "no" >&6; }
7796fi
7797
7798
7799fi
7800if test -z "$ac_cv_prog_OTOOL64"; then
7801  ac_ct_OTOOL64=$OTOOL64
7802  # Extract the first word of "otool64", so it can be a program name with args.
7803set dummy otool64; ac_word=$2
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805$as_echo_n "checking for $ac_word... " >&6; }
7806if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  if test -n "$ac_ct_OTOOL64"; then
7810  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7811else
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815  IFS=$as_save_IFS
7816  test -z "$as_dir" && as_dir=.
7817    for ac_exec_ext in '' $ac_executable_extensions; do
7818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819    ac_cv_prog_ac_ct_OTOOL64="otool64"
7820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821    break 2
7822  fi
7823done
7824  done
7825IFS=$as_save_IFS
7826
7827fi
7828fi
7829ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7830if test -n "$ac_ct_OTOOL64"; then
7831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7832$as_echo "$ac_ct_OTOOL64" >&6; }
7833else
7834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835$as_echo "no" >&6; }
7836fi
7837
7838  if test "x$ac_ct_OTOOL64" = x; then
7839    OTOOL64=":"
7840  else
7841    case $cross_compiling:$ac_tool_warned in
7842yes:)
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845ac_tool_warned=yes ;;
7846esac
7847    OTOOL64=$ac_ct_OTOOL64
7848  fi
7849else
7850  OTOOL64="$ac_cv_prog_OTOOL64"
7851fi
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7880$as_echo_n "checking for -single_module linker flag... " >&6; }
7881if ${lt_cv_apple_cc_single_mod+:} false; then :
7882  $as_echo_n "(cached) " >&6
7883else
7884  lt_cv_apple_cc_single_mod=no
7885      if test -z "$LT_MULTI_MODULE"; then
7886	# By default we will add the -single_module flag. You can override
7887	# by either setting the environment variable LT_MULTI_MODULE
7888	# non-empty at configure time, or by adding -multi_module to the
7889	# link flags.
7890	rm -rf libconftest.dylib*
7891	echo "int foo(void){return 1;}" > conftest.c
7892	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7893-dynamiclib -Wl,-single_module conftest.c" >&5
7894	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7895	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7896        _lt_result=$?
7897	# If there is a non-empty error log, and "single_module"
7898	# appears in it, assume the flag caused a linker warning
7899        if test -s conftest.err && $GREP single_module conftest.err; then
7900	  cat conftest.err >&5
7901	# Otherwise, if the output was created with a 0 exit code from
7902	# the compiler, it worked.
7903	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7904	  lt_cv_apple_cc_single_mod=yes
7905	else
7906	  cat conftest.err >&5
7907	fi
7908	rm -rf libconftest.dylib*
7909	rm -f conftest.*
7910      fi
7911fi
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7913$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7914
7915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7917if ${lt_cv_ld_exported_symbols_list+:} false; then :
7918  $as_echo_n "(cached) " >&6
7919else
7920  lt_cv_ld_exported_symbols_list=no
7921      save_LDFLAGS=$LDFLAGS
7922      echo "_main" > conftest.sym
7923      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7924      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926
7927int
7928main ()
7929{
7930
7931  ;
7932  return 0;
7933}
7934_ACEOF
7935if ac_fn_c_try_link "$LINENO"; then :
7936  lt_cv_ld_exported_symbols_list=yes
7937else
7938  lt_cv_ld_exported_symbols_list=no
7939fi
7940rm -f core conftest.err conftest.$ac_objext \
7941    conftest$ac_exeext conftest.$ac_ext
7942	LDFLAGS=$save_LDFLAGS
7943
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7947
7948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7949$as_echo_n "checking for -force_load linker flag... " >&6; }
7950if ${lt_cv_ld_force_load+:} false; then :
7951  $as_echo_n "(cached) " >&6
7952else
7953  lt_cv_ld_force_load=no
7954      cat > conftest.c << _LT_EOF
7955int forced_loaded() { return 2;}
7956_LT_EOF
7957      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7958      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7959      echo "$AR cru libconftest.a conftest.o" >&5
7960      $AR cru libconftest.a conftest.o 2>&5
7961      echo "$RANLIB libconftest.a" >&5
7962      $RANLIB libconftest.a 2>&5
7963      cat > conftest.c << _LT_EOF
7964int main() { return 0;}
7965_LT_EOF
7966      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7967      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7968      _lt_result=$?
7969      if test -s conftest.err && $GREP force_load conftest.err; then
7970	cat conftest.err >&5
7971      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7972	lt_cv_ld_force_load=yes
7973      else
7974	cat conftest.err >&5
7975      fi
7976        rm -f conftest.err libconftest.a conftest conftest.c
7977        rm -rf conftest.dSYM
7978
7979fi
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7981$as_echo "$lt_cv_ld_force_load" >&6; }
7982    case $host_os in
7983    rhapsody* | darwin1.[012])
7984      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7985    darwin1.*)
7986      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7987    darwin*) # darwin 5.x on
7988      # if running on 10.5 or later, the deployment target defaults
7989      # to the OS version, if on x86, and 10.4, the deployment
7990      # target defaults to 10.4. Don't you love it?
7991      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7992	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7993	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7994	10.[012][,.]*)
7995	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7996	10.*)
7997	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7998      esac
7999    ;;
8000  esac
8001    if test yes = "$lt_cv_apple_cc_single_mod"; then
8002      _lt_dar_single_mod='$single_module'
8003    fi
8004    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8005      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8006    else
8007      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8008    fi
8009    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8010      _lt_dsymutil='~$DSYMUTIL $lib || :'
8011    else
8012      _lt_dsymutil=
8013    fi
8014    ;;
8015  esac
8016
8017# func_munge_path_list VARIABLE PATH
8018# -----------------------------------
8019# VARIABLE is name of variable containing _space_ separated list of
8020# directories to be munged by the contents of PATH, which is string
8021# having a format:
8022# "DIR[:DIR]:"
8023#       string "DIR[ DIR]" will be prepended to VARIABLE
8024# ":DIR[:DIR]"
8025#       string "DIR[ DIR]" will be appended to VARIABLE
8026# "DIRP[:DIRP]::[DIRA:]DIRA"
8027#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8028#       "DIRA[ DIRA]" will be appended to VARIABLE
8029# "DIR[:DIR]"
8030#       VARIABLE will be replaced by "DIR[ DIR]"
8031func_munge_path_list ()
8032{
8033    case x$2 in
8034    x)
8035        ;;
8036    *:)
8037        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8038        ;;
8039    x:*)
8040        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8041        ;;
8042    *::*)
8043        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8044        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8045        ;;
8046    *)
8047        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8048        ;;
8049    esac
8050}
8051
8052for ac_header in dlfcn.h
8053do :
8054  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8055"
8056if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8057  cat >>confdefs.h <<_ACEOF
8058#define HAVE_DLFCN_H 1
8059_ACEOF
8060
8061fi
8062
8063done
8064
8065
8066
8067
8068
8069# Set options
8070
8071
8072
8073        enable_dlopen=no
8074
8075
8076  enable_win32_dll=no
8077
8078
8079            # Check whether --enable-shared was given.
8080if test "${enable_shared+set}" = set; then :
8081  enableval=$enable_shared; p=${PACKAGE-default}
8082    case $enableval in
8083    yes) enable_shared=yes ;;
8084    no) enable_shared=no ;;
8085    *)
8086      enable_shared=no
8087      # Look at the argument we got.  We use all the common list separators.
8088      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8089      for pkg in $enableval; do
8090	IFS=$lt_save_ifs
8091	if test "X$pkg" = "X$p"; then
8092	  enable_shared=yes
8093	fi
8094      done
8095      IFS=$lt_save_ifs
8096      ;;
8097    esac
8098else
8099  enable_shared=yes
8100fi
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110  # Check whether --enable-static was given.
8111if test "${enable_static+set}" = set; then :
8112  enableval=$enable_static; p=${PACKAGE-default}
8113    case $enableval in
8114    yes) enable_static=yes ;;
8115    no) enable_static=no ;;
8116    *)
8117     enable_static=no
8118      # Look at the argument we got.  We use all the common list separators.
8119      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8120      for pkg in $enableval; do
8121	IFS=$lt_save_ifs
8122	if test "X$pkg" = "X$p"; then
8123	  enable_static=yes
8124	fi
8125      done
8126      IFS=$lt_save_ifs
8127      ;;
8128    esac
8129else
8130  enable_static=yes
8131fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142# Check whether --with-pic was given.
8143if test "${with_pic+set}" = set; then :
8144  withval=$with_pic; lt_p=${PACKAGE-default}
8145    case $withval in
8146    yes|no) pic_mode=$withval ;;
8147    *)
8148      pic_mode=default
8149      # Look at the argument we got.  We use all the common list separators.
8150      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8151      for lt_pkg in $withval; do
8152	IFS=$lt_save_ifs
8153	if test "X$lt_pkg" = "X$lt_p"; then
8154	  pic_mode=yes
8155	fi
8156      done
8157      IFS=$lt_save_ifs
8158      ;;
8159    esac
8160else
8161  pic_mode=default
8162fi
8163
8164
8165
8166
8167
8168
8169
8170
8171  # Check whether --enable-fast-install was given.
8172if test "${enable_fast_install+set}" = set; then :
8173  enableval=$enable_fast_install; p=${PACKAGE-default}
8174    case $enableval in
8175    yes) enable_fast_install=yes ;;
8176    no) enable_fast_install=no ;;
8177    *)
8178      enable_fast_install=no
8179      # Look at the argument we got.  We use all the common list separators.
8180      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8181      for pkg in $enableval; do
8182	IFS=$lt_save_ifs
8183	if test "X$pkg" = "X$p"; then
8184	  enable_fast_install=yes
8185	fi
8186      done
8187      IFS=$lt_save_ifs
8188      ;;
8189    esac
8190else
8191  enable_fast_install=yes
8192fi
8193
8194
8195
8196
8197
8198
8199
8200
8201  shared_archive_member_spec=
8202case $host,$enable_shared in
8203power*-*-aix[5-9]*,yes)
8204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8205$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8206
8207# Check whether --with-aix-soname was given.
8208if test "${with_aix_soname+set}" = set; then :
8209  withval=$with_aix_soname; case $withval in
8210    aix|svr4|both)
8211      ;;
8212    *)
8213      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8214      ;;
8215    esac
8216    lt_cv_with_aix_soname=$with_aix_soname
8217else
8218  if ${lt_cv_with_aix_soname+:} false; then :
8219  $as_echo_n "(cached) " >&6
8220else
8221  lt_cv_with_aix_soname=aix
8222fi
8223
8224    with_aix_soname=$lt_cv_with_aix_soname
8225fi
8226
8227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8228$as_echo "$with_aix_soname" >&6; }
8229  if test aix != "$with_aix_soname"; then
8230    # For the AIX way of multilib, we name the shared archive member
8231    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8232    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8233    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8234    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8235    if test 64 = "${OBJECT_MODE-32}"; then
8236      shared_archive_member_spec=shr_64
8237    else
8238      shared_archive_member_spec=shr
8239    fi
8240  fi
8241  ;;
8242*)
8243  with_aix_soname=aix
8244  ;;
8245esac
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256# This can be used to rebuild libtool when needed
8257LIBTOOL_DEPS=$ltmain
8258
8259# Always use our own libtool.
8260LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291test -z "$LN_S" && LN_S="ln -s"
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306if test -n "${ZSH_VERSION+set}"; then
8307   setopt NO_GLOB_SUBST
8308fi
8309
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8311$as_echo_n "checking for objdir... " >&6; }
8312if ${lt_cv_objdir+:} false; then :
8313  $as_echo_n "(cached) " >&6
8314else
8315  rm -f .libs 2>/dev/null
8316mkdir .libs 2>/dev/null
8317if test -d .libs; then
8318  lt_cv_objdir=.libs
8319else
8320  # MS-DOS does not allow filenames that begin with a dot.
8321  lt_cv_objdir=_libs
8322fi
8323rmdir .libs 2>/dev/null
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8326$as_echo "$lt_cv_objdir" >&6; }
8327objdir=$lt_cv_objdir
8328
8329
8330
8331
8332
8333cat >>confdefs.h <<_ACEOF
8334#define LT_OBJDIR "$lt_cv_objdir/"
8335_ACEOF
8336
8337
8338
8339
8340case $host_os in
8341aix3*)
8342  # AIX sometimes has problems with the GCC collect2 program.  For some
8343  # reason, if we set the COLLECT_NAMES environment variable, the problems
8344  # vanish in a puff of smoke.
8345  if test set != "${COLLECT_NAMES+set}"; then
8346    COLLECT_NAMES=
8347    export COLLECT_NAMES
8348  fi
8349  ;;
8350esac
8351
8352# Global variables:
8353ofile=libtool
8354can_build_shared=yes
8355
8356# All known linkers require a '.a' archive for static linking (except MSVC,
8357# which needs '.lib').
8358libext=a
8359
8360with_gnu_ld=$lt_cv_prog_gnu_ld
8361
8362old_CC=$CC
8363old_CFLAGS=$CFLAGS
8364
8365# Set sane defaults for various variables
8366test -z "$CC" && CC=cc
8367test -z "$LTCC" && LTCC=$CC
8368test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8369test -z "$LD" && LD=ld
8370test -z "$ac_objext" && ac_objext=o
8371
8372func_cc_basename $compiler
8373cc_basename=$func_cc_basename_result
8374
8375
8376# Only perform the check for file, if the check method requires it
8377test -z "$MAGIC_CMD" && MAGIC_CMD=file
8378case $deplibs_check_method in
8379file_magic*)
8380  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8381    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8382$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8383if ${lt_cv_path_MAGIC_CMD+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  case $MAGIC_CMD in
8387[\\/*] |  ?:[\\/]*)
8388  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8389  ;;
8390*)
8391  lt_save_MAGIC_CMD=$MAGIC_CMD
8392  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8393  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8394  for ac_dir in $ac_dummy; do
8395    IFS=$lt_save_ifs
8396    test -z "$ac_dir" && ac_dir=.
8397    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8398      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8399      if test -n "$file_magic_test_file"; then
8400	case $deplibs_check_method in
8401	"file_magic "*)
8402	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8403	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8404	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8405	    $EGREP "$file_magic_regex" > /dev/null; then
8406	    :
8407	  else
8408	    cat <<_LT_EOF 1>&2
8409
8410*** Warning: the command libtool uses to detect shared libraries,
8411*** $file_magic_cmd, produces output that libtool cannot recognize.
8412*** The result is that libtool may fail to recognize shared libraries
8413*** as such.  This will affect the creation of libtool libraries that
8414*** depend on shared libraries, but programs linked with such libtool
8415*** libraries will work regardless of this problem.  Nevertheless, you
8416*** may want to report the problem to your system manager and/or to
8417*** bug-libtool@gnu.org
8418
8419_LT_EOF
8420	  fi ;;
8421	esac
8422      fi
8423      break
8424    fi
8425  done
8426  IFS=$lt_save_ifs
8427  MAGIC_CMD=$lt_save_MAGIC_CMD
8428  ;;
8429esac
8430fi
8431
8432MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8433if test -n "$MAGIC_CMD"; then
8434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8435$as_echo "$MAGIC_CMD" >&6; }
8436else
8437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
8439fi
8440
8441
8442
8443
8444
8445if test -z "$lt_cv_path_MAGIC_CMD"; then
8446  if test -n "$ac_tool_prefix"; then
8447    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8448$as_echo_n "checking for file... " >&6; }
8449if ${lt_cv_path_MAGIC_CMD+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  case $MAGIC_CMD in
8453[\\/*] |  ?:[\\/]*)
8454  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8455  ;;
8456*)
8457  lt_save_MAGIC_CMD=$MAGIC_CMD
8458  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8459  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8460  for ac_dir in $ac_dummy; do
8461    IFS=$lt_save_ifs
8462    test -z "$ac_dir" && ac_dir=.
8463    if test -f "$ac_dir/file"; then
8464      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8465      if test -n "$file_magic_test_file"; then
8466	case $deplibs_check_method in
8467	"file_magic "*)
8468	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8469	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8470	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8471	    $EGREP "$file_magic_regex" > /dev/null; then
8472	    :
8473	  else
8474	    cat <<_LT_EOF 1>&2
8475
8476*** Warning: the command libtool uses to detect shared libraries,
8477*** $file_magic_cmd, produces output that libtool cannot recognize.
8478*** The result is that libtool may fail to recognize shared libraries
8479*** as such.  This will affect the creation of libtool libraries that
8480*** depend on shared libraries, but programs linked with such libtool
8481*** libraries will work regardless of this problem.  Nevertheless, you
8482*** may want to report the problem to your system manager and/or to
8483*** bug-libtool@gnu.org
8484
8485_LT_EOF
8486	  fi ;;
8487	esac
8488      fi
8489      break
8490    fi
8491  done
8492  IFS=$lt_save_ifs
8493  MAGIC_CMD=$lt_save_MAGIC_CMD
8494  ;;
8495esac
8496fi
8497
8498MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8499if test -n "$MAGIC_CMD"; then
8500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8501$as_echo "$MAGIC_CMD" >&6; }
8502else
8503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504$as_echo "no" >&6; }
8505fi
8506
8507
8508  else
8509    MAGIC_CMD=:
8510  fi
8511fi
8512
8513  fi
8514  ;;
8515esac
8516
8517# Use C for the default configuration in the libtool script
8518
8519lt_save_CC=$CC
8520ac_ext=c
8521ac_cpp='$CPP $CPPFLAGS'
8522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8524ac_compiler_gnu=$ac_cv_c_compiler_gnu
8525
8526
8527# Source file extension for C test sources.
8528ac_ext=c
8529
8530# Object file extension for compiled C test sources.
8531objext=o
8532objext=$objext
8533
8534# Code to be used in simple compile tests
8535lt_simple_compile_test_code="int some_variable = 0;"
8536
8537# Code to be used in simple link tests
8538lt_simple_link_test_code='int main(){return(0);}'
8539
8540
8541
8542
8543
8544
8545
8546# If no C compiler was specified, use CC.
8547LTCC=${LTCC-"$CC"}
8548
8549# If no C compiler flags were specified, use CFLAGS.
8550LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8551
8552# Allow CC to be a program name with arguments.
8553compiler=$CC
8554
8555# Save the default compiler, since it gets overwritten when the other
8556# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8557compiler_DEFAULT=$CC
8558
8559# save warnings/boilerplate of simple test code
8560ac_outfile=conftest.$ac_objext
8561echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8562eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8563_lt_compiler_boilerplate=`cat conftest.err`
8564$RM conftest*
8565
8566ac_outfile=conftest.$ac_objext
8567echo "$lt_simple_link_test_code" >conftest.$ac_ext
8568eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8569_lt_linker_boilerplate=`cat conftest.err`
8570$RM -r conftest*
8571
8572
8573if test -n "$compiler"; then
8574
8575lt_prog_compiler_no_builtin_flag=
8576
8577if test yes = "$GCC"; then
8578  case $cc_basename in
8579  nvcc*)
8580    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8581  *)
8582    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8583  esac
8584
8585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8586$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8587if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8588  $as_echo_n "(cached) " >&6
8589else
8590  lt_cv_prog_compiler_rtti_exceptions=no
8591   ac_outfile=conftest.$ac_objext
8592   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8593   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8594   # Insert the option either (1) after the last *FLAGS variable, or
8595   # (2) before a word containing "conftest.", or (3) at the end.
8596   # Note that $ac_compile itself does not contain backslashes and begins
8597   # with a dollar sign (not a hyphen), so the echo should work correctly.
8598   # The option is referenced via a variable to avoid confusing sed.
8599   lt_compile=`echo "$ac_compile" | $SED \
8600   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8601   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8602   -e 's:$: $lt_compiler_flag:'`
8603   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8604   (eval "$lt_compile" 2>conftest.err)
8605   ac_status=$?
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   if (exit $ac_status) && test -s "$ac_outfile"; then
8609     # The compiler can only warn and ignore the option if not recognized
8610     # So say no if there are warnings other than the usual output.
8611     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8612     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8613     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8614       lt_cv_prog_compiler_rtti_exceptions=yes
8615     fi
8616   fi
8617   $RM conftest*
8618
8619fi
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8621$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8622
8623if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8624    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8625else
8626    :
8627fi
8628
8629fi
8630
8631
8632
8633
8634
8635
8636  lt_prog_compiler_wl=
8637lt_prog_compiler_pic=
8638lt_prog_compiler_static=
8639
8640
8641  if test yes = "$GCC"; then
8642    lt_prog_compiler_wl='-Wl,'
8643    lt_prog_compiler_static='-static'
8644
8645    case $host_os in
8646      aix*)
8647      # All AIX code is PIC.
8648      if test ia64 = "$host_cpu"; then
8649	# AIX 5 now supports IA64 processor
8650	lt_prog_compiler_static='-Bstatic'
8651      fi
8652      lt_prog_compiler_pic='-fPIC'
8653      ;;
8654
8655    amigaos*)
8656      case $host_cpu in
8657      powerpc)
8658            # see comment about AmigaOS4 .so support
8659            lt_prog_compiler_pic='-fPIC'
8660        ;;
8661      m68k)
8662            # FIXME: we need at least 68020 code to build shared libraries, but
8663            # adding the '-m68020' flag to GCC prevents building anything better,
8664            # like '-m68040'.
8665            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8666        ;;
8667      esac
8668      ;;
8669
8670    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8671      # PIC is the default for these OSes.
8672      ;;
8673
8674    mingw* | cygwin* | pw32* | os2* | cegcc*)
8675      # This hack is so that the source file can tell whether it is being
8676      # built for inclusion in a dll (and should export symbols for example).
8677      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8678      # (--disable-auto-import) libraries
8679      lt_prog_compiler_pic='-DDLL_EXPORT'
8680      case $host_os in
8681      os2*)
8682	lt_prog_compiler_static='$wl-static'
8683	;;
8684      esac
8685      ;;
8686
8687    darwin* | rhapsody*)
8688      # PIC is the default on this platform
8689      # Common symbols not allowed in MH_DYLIB files
8690      lt_prog_compiler_pic='-fno-common'
8691      ;;
8692
8693    haiku*)
8694      # PIC is the default for Haiku.
8695      # The "-static" flag exists, but is broken.
8696      lt_prog_compiler_static=
8697      ;;
8698
8699    hpux*)
8700      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8701      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8702      # sets the default TLS model and affects inlining.
8703      case $host_cpu in
8704      hppa*64*)
8705	# +Z the default
8706	;;
8707      *)
8708	lt_prog_compiler_pic='-fPIC'
8709	;;
8710      esac
8711      ;;
8712
8713    interix[3-9]*)
8714      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8715      # Instead, we relocate shared libraries at runtime.
8716      ;;
8717
8718    msdosdjgpp*)
8719      # Just because we use GCC doesn't mean we suddenly get shared libraries
8720      # on systems that don't support them.
8721      lt_prog_compiler_can_build_shared=no
8722      enable_shared=no
8723      ;;
8724
8725    *nto* | *qnx*)
8726      # QNX uses GNU C++, but need to define -shared option too, otherwise
8727      # it will coredump.
8728      lt_prog_compiler_pic='-fPIC -shared'
8729      ;;
8730
8731    sysv4*MP*)
8732      if test -d /usr/nec; then
8733	lt_prog_compiler_pic=-Kconform_pic
8734      fi
8735      ;;
8736
8737    *)
8738      lt_prog_compiler_pic='-fPIC'
8739      ;;
8740    esac
8741
8742    case $cc_basename in
8743    nvcc*) # Cuda Compiler Driver 2.2
8744      lt_prog_compiler_wl='-Xlinker '
8745      if test -n "$lt_prog_compiler_pic"; then
8746        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8747      fi
8748      ;;
8749    esac
8750  else
8751    # PORTME Check for flag to pass linker flags through the system compiler.
8752    case $host_os in
8753    aix*)
8754      lt_prog_compiler_wl='-Wl,'
8755      if test ia64 = "$host_cpu"; then
8756	# AIX 5 now supports IA64 processor
8757	lt_prog_compiler_static='-Bstatic'
8758      else
8759	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8760      fi
8761      ;;
8762
8763    darwin* | rhapsody*)
8764      # PIC is the default on this platform
8765      # Common symbols not allowed in MH_DYLIB files
8766      lt_prog_compiler_pic='-fno-common'
8767      case $cc_basename in
8768      nagfor*)
8769        # NAG Fortran compiler
8770        lt_prog_compiler_wl='-Wl,-Wl,,'
8771        lt_prog_compiler_pic='-PIC'
8772        lt_prog_compiler_static='-Bstatic'
8773        ;;
8774      esac
8775      ;;
8776
8777    mingw* | cygwin* | pw32* | os2* | cegcc*)
8778      # This hack is so that the source file can tell whether it is being
8779      # built for inclusion in a dll (and should export symbols for example).
8780      lt_prog_compiler_pic='-DDLL_EXPORT'
8781      case $host_os in
8782      os2*)
8783	lt_prog_compiler_static='$wl-static'
8784	;;
8785      esac
8786      ;;
8787
8788    hpux9* | hpux10* | hpux11*)
8789      lt_prog_compiler_wl='-Wl,'
8790      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8791      # not for PA HP-UX.
8792      case $host_cpu in
8793      hppa*64*|ia64*)
8794	# +Z the default
8795	;;
8796      *)
8797	lt_prog_compiler_pic='+Z'
8798	;;
8799      esac
8800      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8801      lt_prog_compiler_static='$wl-a ${wl}archive'
8802      ;;
8803
8804    irix5* | irix6* | nonstopux*)
8805      lt_prog_compiler_wl='-Wl,'
8806      # PIC (with -KPIC) is the default.
8807      lt_prog_compiler_static='-non_shared'
8808      ;;
8809
8810    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8811      case $cc_basename in
8812      # old Intel for x86_64, which still supported -KPIC.
8813      ecc*)
8814	lt_prog_compiler_wl='-Wl,'
8815	lt_prog_compiler_pic='-KPIC'
8816	lt_prog_compiler_static='-static'
8817        ;;
8818      # icc used to be incompatible with GCC.
8819      # ICC 10 doesn't accept -KPIC any more.
8820      icc* | ifort*)
8821	lt_prog_compiler_wl='-Wl,'
8822	lt_prog_compiler_pic='-fPIC'
8823	lt_prog_compiler_static='-static'
8824        ;;
8825      # Lahey Fortran 8.1.
8826      lf95*)
8827	lt_prog_compiler_wl='-Wl,'
8828	lt_prog_compiler_pic='--shared'
8829	lt_prog_compiler_static='--static'
8830	;;
8831      nagfor*)
8832	# NAG Fortran compiler
8833	lt_prog_compiler_wl='-Wl,-Wl,,'
8834	lt_prog_compiler_pic='-PIC'
8835	lt_prog_compiler_static='-Bstatic'
8836	;;
8837      tcc*)
8838	# Fabrice Bellard et al's Tiny C Compiler
8839	lt_prog_compiler_wl='-Wl,'
8840	lt_prog_compiler_pic='-fPIC'
8841	lt_prog_compiler_static='-static'
8842	;;
8843      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8844        # Portland Group compilers (*not* the Pentium gcc compiler,
8845	# which looks to be a dead project)
8846	lt_prog_compiler_wl='-Wl,'
8847	lt_prog_compiler_pic='-fpic'
8848	lt_prog_compiler_static='-Bstatic'
8849        ;;
8850      ccc*)
8851        lt_prog_compiler_wl='-Wl,'
8852        # All Alpha code is PIC.
8853        lt_prog_compiler_static='-non_shared'
8854        ;;
8855      xl* | bgxl* | bgf* | mpixl*)
8856	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8857	lt_prog_compiler_wl='-Wl,'
8858	lt_prog_compiler_pic='-qpic'
8859	lt_prog_compiler_static='-qstaticlink'
8860	;;
8861      *)
8862	case `$CC -V 2>&1 | sed 5q` in
8863	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8864	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8865	  lt_prog_compiler_pic='-KPIC'
8866	  lt_prog_compiler_static='-Bstatic'
8867	  lt_prog_compiler_wl=''
8868	  ;;
8869	*Sun\ F* | *Sun*Fortran*)
8870	  lt_prog_compiler_pic='-KPIC'
8871	  lt_prog_compiler_static='-Bstatic'
8872	  lt_prog_compiler_wl='-Qoption ld '
8873	  ;;
8874	*Sun\ C*)
8875	  # Sun C 5.9
8876	  lt_prog_compiler_pic='-KPIC'
8877	  lt_prog_compiler_static='-Bstatic'
8878	  lt_prog_compiler_wl='-Wl,'
8879	  ;;
8880        *Intel*\ [CF]*Compiler*)
8881	  lt_prog_compiler_wl='-Wl,'
8882	  lt_prog_compiler_pic='-fPIC'
8883	  lt_prog_compiler_static='-static'
8884	  ;;
8885	*Portland\ Group*)
8886	  lt_prog_compiler_wl='-Wl,'
8887	  lt_prog_compiler_pic='-fpic'
8888	  lt_prog_compiler_static='-Bstatic'
8889	  ;;
8890	esac
8891	;;
8892      esac
8893      ;;
8894
8895    newsos6)
8896      lt_prog_compiler_pic='-KPIC'
8897      lt_prog_compiler_static='-Bstatic'
8898      ;;
8899
8900    *nto* | *qnx*)
8901      # QNX uses GNU C++, but need to define -shared option too, otherwise
8902      # it will coredump.
8903      lt_prog_compiler_pic='-fPIC -shared'
8904      ;;
8905
8906    osf3* | osf4* | osf5*)
8907      lt_prog_compiler_wl='-Wl,'
8908      # All OSF/1 code is PIC.
8909      lt_prog_compiler_static='-non_shared'
8910      ;;
8911
8912    rdos*)
8913      lt_prog_compiler_static='-non_shared'
8914      ;;
8915
8916    solaris*)
8917      lt_prog_compiler_pic='-KPIC'
8918      lt_prog_compiler_static='-Bstatic'
8919      case $cc_basename in
8920      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8921	lt_prog_compiler_wl='-Qoption ld ';;
8922      *)
8923	lt_prog_compiler_wl='-Wl,';;
8924      esac
8925      ;;
8926
8927    sunos4*)
8928      lt_prog_compiler_wl='-Qoption ld '
8929      lt_prog_compiler_pic='-PIC'
8930      lt_prog_compiler_static='-Bstatic'
8931      ;;
8932
8933    sysv4 | sysv4.2uw2* | sysv4.3*)
8934      lt_prog_compiler_wl='-Wl,'
8935      lt_prog_compiler_pic='-KPIC'
8936      lt_prog_compiler_static='-Bstatic'
8937      ;;
8938
8939    sysv4*MP*)
8940      if test -d /usr/nec; then
8941	lt_prog_compiler_pic='-Kconform_pic'
8942	lt_prog_compiler_static='-Bstatic'
8943      fi
8944      ;;
8945
8946    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8947      lt_prog_compiler_wl='-Wl,'
8948      lt_prog_compiler_pic='-KPIC'
8949      lt_prog_compiler_static='-Bstatic'
8950      ;;
8951
8952    unicos*)
8953      lt_prog_compiler_wl='-Wl,'
8954      lt_prog_compiler_can_build_shared=no
8955      ;;
8956
8957    uts4*)
8958      lt_prog_compiler_pic='-pic'
8959      lt_prog_compiler_static='-Bstatic'
8960      ;;
8961
8962    *)
8963      lt_prog_compiler_can_build_shared=no
8964      ;;
8965    esac
8966  fi
8967
8968case $host_os in
8969  # For platforms that do not support PIC, -DPIC is meaningless:
8970  *djgpp*)
8971    lt_prog_compiler_pic=
8972    ;;
8973  *)
8974    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8975    ;;
8976esac
8977
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8979$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8980if ${lt_cv_prog_compiler_pic+:} false; then :
8981  $as_echo_n "(cached) " >&6
8982else
8983  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8984fi
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8986$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8987lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8988
8989#
8990# Check to make sure the PIC flag actually works.
8991#
8992if test -n "$lt_prog_compiler_pic"; then
8993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8994$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8995if ${lt_cv_prog_compiler_pic_works+:} false; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  lt_cv_prog_compiler_pic_works=no
8999   ac_outfile=conftest.$ac_objext
9000   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9001   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9002   # Insert the option either (1) after the last *FLAGS variable, or
9003   # (2) before a word containing "conftest.", or (3) at the end.
9004   # Note that $ac_compile itself does not contain backslashes and begins
9005   # with a dollar sign (not a hyphen), so the echo should work correctly.
9006   # The option is referenced via a variable to avoid confusing sed.
9007   lt_compile=`echo "$ac_compile" | $SED \
9008   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9009   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9010   -e 's:$: $lt_compiler_flag:'`
9011   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9012   (eval "$lt_compile" 2>conftest.err)
9013   ac_status=$?
9014   cat conftest.err >&5
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   if (exit $ac_status) && test -s "$ac_outfile"; then
9017     # The compiler can only warn and ignore the option if not recognized
9018     # So say no if there are warnings other than the usual output.
9019     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9020     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9021     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9022       lt_cv_prog_compiler_pic_works=yes
9023     fi
9024   fi
9025   $RM conftest*
9026
9027fi
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9029$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9030
9031if test yes = "$lt_cv_prog_compiler_pic_works"; then
9032    case $lt_prog_compiler_pic in
9033     "" | " "*) ;;
9034     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9035     esac
9036else
9037    lt_prog_compiler_pic=
9038     lt_prog_compiler_can_build_shared=no
9039fi
9040
9041fi
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053#
9054# Check to make sure the static flag actually works.
9055#
9056wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9058$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9059if ${lt_cv_prog_compiler_static_works+:} false; then :
9060  $as_echo_n "(cached) " >&6
9061else
9062  lt_cv_prog_compiler_static_works=no
9063   save_LDFLAGS=$LDFLAGS
9064   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9065   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9066   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9067     # The linker can only warn and ignore the option if not recognized
9068     # So say no if there are warnings
9069     if test -s conftest.err; then
9070       # Append any errors to the config.log.
9071       cat conftest.err 1>&5
9072       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9073       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9074       if diff conftest.exp conftest.er2 >/dev/null; then
9075         lt_cv_prog_compiler_static_works=yes
9076       fi
9077     else
9078       lt_cv_prog_compiler_static_works=yes
9079     fi
9080   fi
9081   $RM -r conftest*
9082   LDFLAGS=$save_LDFLAGS
9083
9084fi
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9086$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9087
9088if test yes = "$lt_cv_prog_compiler_static_works"; then
9089    :
9090else
9091    lt_prog_compiler_static=
9092fi
9093
9094
9095
9096
9097
9098
9099
9100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9101$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9102if ${lt_cv_prog_compiler_c_o+:} false; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105  lt_cv_prog_compiler_c_o=no
9106   $RM -r conftest 2>/dev/null
9107   mkdir conftest
9108   cd conftest
9109   mkdir out
9110   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9111
9112   lt_compiler_flag="-o out/conftest2.$ac_objext"
9113   # Insert the option either (1) after the last *FLAGS variable, or
9114   # (2) before a word containing "conftest.", or (3) at the end.
9115   # Note that $ac_compile itself does not contain backslashes and begins
9116   # with a dollar sign (not a hyphen), so the echo should work correctly.
9117   lt_compile=`echo "$ac_compile" | $SED \
9118   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9119   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9120   -e 's:$: $lt_compiler_flag:'`
9121   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9122   (eval "$lt_compile" 2>out/conftest.err)
9123   ac_status=$?
9124   cat out/conftest.err >&5
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9127   then
9128     # The compiler can only warn and ignore the option if not recognized
9129     # So say no if there are warnings
9130     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9131     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9132     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9133       lt_cv_prog_compiler_c_o=yes
9134     fi
9135   fi
9136   chmod u+w . 2>&5
9137   $RM conftest*
9138   # SGI C++ compiler will create directory out/ii_files/ for
9139   # template instantiation
9140   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9141   $RM out/* && rmdir out
9142   cd ..
9143   $RM -r conftest
9144   $RM conftest*
9145
9146fi
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9148$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9149
9150
9151
9152
9153
9154
9155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9156$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9157if ${lt_cv_prog_compiler_c_o+:} false; then :
9158  $as_echo_n "(cached) " >&6
9159else
9160  lt_cv_prog_compiler_c_o=no
9161   $RM -r conftest 2>/dev/null
9162   mkdir conftest
9163   cd conftest
9164   mkdir out
9165   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9166
9167   lt_compiler_flag="-o out/conftest2.$ac_objext"
9168   # Insert the option either (1) after the last *FLAGS variable, or
9169   # (2) before a word containing "conftest.", or (3) at the end.
9170   # Note that $ac_compile itself does not contain backslashes and begins
9171   # with a dollar sign (not a hyphen), so the echo should work correctly.
9172   lt_compile=`echo "$ac_compile" | $SED \
9173   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9174   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9175   -e 's:$: $lt_compiler_flag:'`
9176   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9177   (eval "$lt_compile" 2>out/conftest.err)
9178   ac_status=$?
9179   cat out/conftest.err >&5
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9182   then
9183     # The compiler can only warn and ignore the option if not recognized
9184     # So say no if there are warnings
9185     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9186     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9187     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9188       lt_cv_prog_compiler_c_o=yes
9189     fi
9190   fi
9191   chmod u+w . 2>&5
9192   $RM conftest*
9193   # SGI C++ compiler will create directory out/ii_files/ for
9194   # template instantiation
9195   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9196   $RM out/* && rmdir out
9197   cd ..
9198   $RM -r conftest
9199   $RM conftest*
9200
9201fi
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9203$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9204
9205
9206
9207
9208hard_links=nottested
9209if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9210  # do not overwrite the value of need_locks provided by the user
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9212$as_echo_n "checking if we can lock with hard links... " >&6; }
9213  hard_links=yes
9214  $RM conftest*
9215  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9216  touch conftest.a
9217  ln conftest.a conftest.b 2>&5 || hard_links=no
9218  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9220$as_echo "$hard_links" >&6; }
9221  if test no = "$hard_links"; then
9222    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9223$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9224    need_locks=warn
9225  fi
9226else
9227  need_locks=no
9228fi
9229
9230
9231
9232
9233
9234
9235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9236$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9237
9238  runpath_var=
9239  allow_undefined_flag=
9240  always_export_symbols=no
9241  archive_cmds=
9242  archive_expsym_cmds=
9243  compiler_needs_object=no
9244  enable_shared_with_static_runtimes=no
9245  export_dynamic_flag_spec=
9246  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9247  hardcode_automatic=no
9248  hardcode_direct=no
9249  hardcode_direct_absolute=no
9250  hardcode_libdir_flag_spec=
9251  hardcode_libdir_separator=
9252  hardcode_minus_L=no
9253  hardcode_shlibpath_var=unsupported
9254  inherit_rpath=no
9255  link_all_deplibs=unknown
9256  module_cmds=
9257  module_expsym_cmds=
9258  old_archive_from_new_cmds=
9259  old_archive_from_expsyms_cmds=
9260  thread_safe_flag_spec=
9261  whole_archive_flag_spec=
9262  # include_expsyms should be a list of space-separated symbols to be *always*
9263  # included in the symbol list
9264  include_expsyms=
9265  # exclude_expsyms can be an extended regexp of symbols to exclude
9266  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9267  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9268  # as well as any symbol that contains 'd'.
9269  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9270  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9271  # platforms (ab)use it in PIC code, but their linkers get confused if
9272  # the symbol is explicitly referenced.  Since portable code cannot
9273  # rely on this symbol name, it's probably fine to never include it in
9274  # preloaded symbol tables.
9275  # Exclude shared library initialization/finalization symbols.
9276  extract_expsyms_cmds=
9277
9278  case $host_os in
9279  cygwin* | mingw* | pw32* | cegcc*)
9280    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9281    # When not using gcc, we currently assume that we are using
9282    # Microsoft Visual C++.
9283    if test yes != "$GCC"; then
9284      with_gnu_ld=no
9285    fi
9286    ;;
9287  interix*)
9288    # we just hope/assume this is gcc and not c89 (= MSVC++)
9289    with_gnu_ld=yes
9290    ;;
9291  openbsd* | bitrig*)
9292    with_gnu_ld=no
9293    ;;
9294  linux* | k*bsd*-gnu | gnu*)
9295    link_all_deplibs=no
9296    ;;
9297  esac
9298
9299  ld_shlibs=yes
9300
9301  # On some targets, GNU ld is compatible enough with the native linker
9302  # that we're better off using the native interface for both.
9303  lt_use_gnu_ld_interface=no
9304  if test yes = "$with_gnu_ld"; then
9305    case $host_os in
9306      aix*)
9307	# The AIX port of GNU ld has always aspired to compatibility
9308	# with the native linker.  However, as the warning in the GNU ld
9309	# block says, versions before 2.19.5* couldn't really create working
9310	# shared libraries, regardless of the interface used.
9311	case `$LD -v 2>&1` in
9312	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9313	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9314	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9315	  *)
9316	    lt_use_gnu_ld_interface=yes
9317	    ;;
9318	esac
9319	;;
9320      *)
9321	lt_use_gnu_ld_interface=yes
9322	;;
9323    esac
9324  fi
9325
9326  if test yes = "$lt_use_gnu_ld_interface"; then
9327    # If archive_cmds runs LD, not CC, wlarc should be empty
9328    wlarc='$wl'
9329
9330    # Set some defaults for GNU ld with shared library support. These
9331    # are reset later if shared libraries are not supported. Putting them
9332    # here allows them to be overridden if necessary.
9333    runpath_var=LD_RUN_PATH
9334    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9335    export_dynamic_flag_spec='$wl--export-dynamic'
9336    # ancient GNU ld didn't support --whole-archive et. al.
9337    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9338      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9339    else
9340      whole_archive_flag_spec=
9341    fi
9342    supports_anon_versioning=no
9343    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9344      *GNU\ gold*) supports_anon_versioning=yes ;;
9345      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9346      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9347      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9348      *\ 2.11.*) ;; # other 2.11 versions
9349      *) supports_anon_versioning=yes ;;
9350    esac
9351
9352    # See if GNU ld supports shared libraries.
9353    case $host_os in
9354    aix[3-9]*)
9355      # On AIX/PPC, the GNU linker is very broken
9356      if test ia64 != "$host_cpu"; then
9357	ld_shlibs=no
9358	cat <<_LT_EOF 1>&2
9359
9360*** Warning: the GNU linker, at least up to release 2.19, is reported
9361*** to be unable to reliably create shared libraries on AIX.
9362*** Therefore, libtool is disabling shared libraries support.  If you
9363*** really care for shared libraries, you may want to install binutils
9364*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9365*** You will then need to restart the configuration process.
9366
9367_LT_EOF
9368      fi
9369      ;;
9370
9371    amigaos*)
9372      case $host_cpu in
9373      powerpc)
9374            # see comment about AmigaOS4 .so support
9375            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9376            archive_expsym_cmds=''
9377        ;;
9378      m68k)
9379            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)'
9380            hardcode_libdir_flag_spec='-L$libdir'
9381            hardcode_minus_L=yes
9382        ;;
9383      esac
9384      ;;
9385
9386    beos*)
9387      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9388	allow_undefined_flag=unsupported
9389	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9390	# support --undefined.  This deserves some investigation.  FIXME
9391	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9392      else
9393	ld_shlibs=no
9394      fi
9395      ;;
9396
9397    cygwin* | mingw* | pw32* | cegcc*)
9398      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9399      # as there is no search path for DLLs.
9400      hardcode_libdir_flag_spec='-L$libdir'
9401      export_dynamic_flag_spec='$wl--export-all-symbols'
9402      allow_undefined_flag=unsupported
9403      always_export_symbols=no
9404      enable_shared_with_static_runtimes=yes
9405      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'
9406      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9407
9408      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9409        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9410	# If the export-symbols file already is a .def file, use it as
9411	# is; otherwise, prepend EXPORTS...
9412	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9413          cp $export_symbols $output_objdir/$soname.def;
9414        else
9415          echo EXPORTS > $output_objdir/$soname.def;
9416          cat $export_symbols >> $output_objdir/$soname.def;
9417        fi~
9418        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9419      else
9420	ld_shlibs=no
9421      fi
9422      ;;
9423
9424    haiku*)
9425      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9426      link_all_deplibs=yes
9427      ;;
9428
9429    os2*)
9430      hardcode_libdir_flag_spec='-L$libdir'
9431      hardcode_minus_L=yes
9432      allow_undefined_flag=unsupported
9433      shrext_cmds=.dll
9434      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9435	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9436	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9437	$ECHO EXPORTS >> $output_objdir/$libname.def~
9438	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9439	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9440	emximp -o $lib $output_objdir/$libname.def'
9441      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9442	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9443	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9444	$ECHO EXPORTS >> $output_objdir/$libname.def~
9445	prefix_cmds="$SED"~
9446	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9447	  prefix_cmds="$prefix_cmds -e 1d";
9448	fi~
9449	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9450	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9451	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9452	emximp -o $lib $output_objdir/$libname.def'
9453      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9454      enable_shared_with_static_runtimes=yes
9455      ;;
9456
9457    interix[3-9]*)
9458      hardcode_direct=no
9459      hardcode_shlibpath_var=no
9460      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9461      export_dynamic_flag_spec='$wl-E'
9462      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9463      # Instead, shared libraries are loaded at an image base (0x10000000 by
9464      # default) and relocated if they conflict, which is a slow very memory
9465      # consuming and fragmenting process.  To avoid this, we pick a random,
9466      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9467      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9468      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9469      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'
9470      ;;
9471
9472    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9473      tmp_diet=no
9474      if test linux-dietlibc = "$host_os"; then
9475	case $cc_basename in
9476	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9477	esac
9478      fi
9479      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9480	 && test no = "$tmp_diet"
9481      then
9482	tmp_addflag=' $pic_flag'
9483	tmp_sharedflag='-shared'
9484	case $cc_basename,$host_cpu in
9485        pgcc*)				# Portland Group C compiler
9486	  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'
9487	  tmp_addflag=' $pic_flag'
9488	  ;;
9489	pgf77* | pgf90* | pgf95* | pgfortran*)
9490					# Portland Group f77 and f90 compilers
9491	  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'
9492	  tmp_addflag=' $pic_flag -Mnomain' ;;
9493	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9494	  tmp_addflag=' -i_dynamic' ;;
9495	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9496	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9497	ifc* | ifort*)			# Intel Fortran compiler
9498	  tmp_addflag=' -nofor_main' ;;
9499	lf95*)				# Lahey Fortran 8.1
9500	  whole_archive_flag_spec=
9501	  tmp_sharedflag='--shared' ;;
9502        nagfor*)                        # NAGFOR 5.3
9503          tmp_sharedflag='-Wl,-shared' ;;
9504	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9505	  tmp_sharedflag='-qmkshrobj'
9506	  tmp_addflag= ;;
9507	nvcc*)	# Cuda Compiler Driver 2.2
9508	  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'
9509	  compiler_needs_object=yes
9510	  ;;
9511	esac
9512	case `$CC -V 2>&1 | sed 5q` in
9513	*Sun\ C*)			# Sun C 5.9
9514	  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'
9515	  compiler_needs_object=yes
9516	  tmp_sharedflag='-G' ;;
9517	*Sun\ F*)			# Sun Fortran 8.3
9518	  tmp_sharedflag='-G' ;;
9519	esac
9520	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9521
9522        if test yes = "$supports_anon_versioning"; then
9523          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9524            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9525            echo "local: *; };" >> $output_objdir/$libname.ver~
9526            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9527        fi
9528
9529	case $cc_basename in
9530	tcc*)
9531	  export_dynamic_flag_spec='-rdynamic'
9532	  ;;
9533	xlf* | bgf* | bgxlf* | mpixlf*)
9534	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9535	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9536	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9537	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9538	  if test yes = "$supports_anon_versioning"; then
9539	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9540              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9541              echo "local: *; };" >> $output_objdir/$libname.ver~
9542              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9543	  fi
9544	  ;;
9545	esac
9546      else
9547        ld_shlibs=no
9548      fi
9549      ;;
9550
9551    netbsd* | netbsdelf*-gnu)
9552      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9553	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9554	wlarc=
9555      else
9556	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9557	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9558      fi
9559      ;;
9560
9561    solaris*)
9562      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9563	ld_shlibs=no
9564	cat <<_LT_EOF 1>&2
9565
9566*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9567*** create shared libraries on Solaris systems.  Therefore, libtool
9568*** is disabling shared libraries support.  We urge you to upgrade GNU
9569*** binutils to release 2.9.1 or newer.  Another option is to modify
9570*** your PATH or compiler configuration so that the native linker is
9571*** used, and then restart.
9572
9573_LT_EOF
9574      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9575	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9576	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9577      else
9578	ld_shlibs=no
9579      fi
9580      ;;
9581
9582    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9583      case `$LD -v 2>&1` in
9584        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9585	ld_shlibs=no
9586	cat <<_LT_EOF 1>&2
9587
9588*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9589*** reliably create shared libraries on SCO systems.  Therefore, libtool
9590*** is disabling shared libraries support.  We urge you to upgrade GNU
9591*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9592*** your PATH or compiler configuration so that the native linker is
9593*** used, and then restart.
9594
9595_LT_EOF
9596	;;
9597	*)
9598	  # For security reasons, it is highly recommended that you always
9599	  # use absolute paths for naming shared libraries, and exclude the
9600	  # DT_RUNPATH tag from executables and libraries.  But doing so
9601	  # requires that you compile everything twice, which is a pain.
9602	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9603	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9604	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9605	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9606	  else
9607	    ld_shlibs=no
9608	  fi
9609	;;
9610      esac
9611      ;;
9612
9613    sunos4*)
9614      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9615      wlarc=
9616      hardcode_direct=yes
9617      hardcode_shlibpath_var=no
9618      ;;
9619
9620    *)
9621      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9623	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9624      else
9625	ld_shlibs=no
9626      fi
9627      ;;
9628    esac
9629
9630    if test no = "$ld_shlibs"; then
9631      runpath_var=
9632      hardcode_libdir_flag_spec=
9633      export_dynamic_flag_spec=
9634      whole_archive_flag_spec=
9635    fi
9636  else
9637    # PORTME fill in a description of your system's linker (not GNU ld)
9638    case $host_os in
9639    aix3*)
9640      allow_undefined_flag=unsupported
9641      always_export_symbols=yes
9642      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'
9643      # Note: this linker hardcodes the directories in LIBPATH if there
9644      # are no directories specified by -L.
9645      hardcode_minus_L=yes
9646      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9647	# Neither direct hardcoding nor static linking is supported with a
9648	# broken collect2.
9649	hardcode_direct=unsupported
9650      fi
9651      ;;
9652
9653    aix[4-9]*)
9654      if test ia64 = "$host_cpu"; then
9655	# On IA64, the linker does run time linking by default, so we don't
9656	# have to do anything special.
9657	aix_use_runtimelinking=no
9658	exp_sym_flag='-Bexport'
9659	no_entry_flag=
9660      else
9661	# If we're using GNU nm, then we don't want the "-C" option.
9662	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9663	# Without the "-l" option, or with the "-B" option, AIX nm treats
9664	# weak defined symbols like other global defined symbols, whereas
9665	# GNU nm marks them as "W".
9666	# While the 'weak' keyword is ignored in the Export File, we need
9667	# it in the Import File for the 'aix-soname' feature, so we have
9668	# to replace the "-B" option with "-P" for AIX nm.
9669	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9670	  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'
9671	else
9672	  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'
9673	fi
9674	aix_use_runtimelinking=no
9675
9676	# Test if we are trying to use run time linking or normal
9677	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9678	# have runtime linking enabled, and use it for executables.
9679	# For shared libraries, we enable/disable runtime linking
9680	# depending on the kind of the shared library created -
9681	# when "with_aix_soname,aix_use_runtimelinking" is:
9682	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9683	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9684	#            lib.a           static archive
9685	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9686	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9687	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9688	#            lib.a(lib.so.V) shared, rtl:no
9689	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9690	#            lib.a           static archive
9691	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9692	  for ld_flag in $LDFLAGS; do
9693	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9694	    aix_use_runtimelinking=yes
9695	    break
9696	  fi
9697	  done
9698	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9699	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9700	    # so we don't have lib.a shared libs to link our executables.
9701	    # We have to force runtime linking in this case.
9702	    aix_use_runtimelinking=yes
9703	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9704	  fi
9705	  ;;
9706	esac
9707
9708	exp_sym_flag='-bexport'
9709	no_entry_flag='-bnoentry'
9710      fi
9711
9712      # When large executables or shared objects are built, AIX ld can
9713      # have problems creating the table of contents.  If linking a library
9714      # or program results in "error TOC overflow" add -mminimal-toc to
9715      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9716      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9717
9718      archive_cmds=''
9719      hardcode_direct=yes
9720      hardcode_direct_absolute=yes
9721      hardcode_libdir_separator=':'
9722      link_all_deplibs=yes
9723      file_list_spec='$wl-f,'
9724      case $with_aix_soname,$aix_use_runtimelinking in
9725      aix,*) ;; # traditional, no import file
9726      svr4,* | *,yes) # use import file
9727	# The Import File defines what to hardcode.
9728	hardcode_direct=no
9729	hardcode_direct_absolute=no
9730	;;
9731      esac
9732
9733      if test yes = "$GCC"; then
9734	case $host_os in aix4.[012]|aix4.[012].*)
9735	# We only want to do this on AIX 4.2 and lower, the check
9736	# below for broken collect2 doesn't work under 4.3+
9737	  collect2name=`$CC -print-prog-name=collect2`
9738	  if test -f "$collect2name" &&
9739	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9740	  then
9741	  # We have reworked collect2
9742	  :
9743	  else
9744	  # We have old collect2
9745	  hardcode_direct=unsupported
9746	  # It fails to find uninstalled libraries when the uninstalled
9747	  # path is not listed in the libpath.  Setting hardcode_minus_L
9748	  # to unsupported forces relinking
9749	  hardcode_minus_L=yes
9750	  hardcode_libdir_flag_spec='-L$libdir'
9751	  hardcode_libdir_separator=
9752	  fi
9753	  ;;
9754	esac
9755	shared_flag='-shared'
9756	if test yes = "$aix_use_runtimelinking"; then
9757	  shared_flag="$shared_flag "'$wl-G'
9758	fi
9759	# Need to ensure runtime linking is disabled for the traditional
9760	# shared library, or the linker may eventually find shared libraries
9761	# /with/ Import File - we do not want to mix them.
9762	shared_flag_aix='-shared'
9763	shared_flag_svr4='-shared $wl-G'
9764      else
9765	# not using gcc
9766	if test ia64 = "$host_cpu"; then
9767	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9768	# chokes on -Wl,-G. The following line is correct:
9769	  shared_flag='-G'
9770	else
9771	  if test yes = "$aix_use_runtimelinking"; then
9772	    shared_flag='$wl-G'
9773	  else
9774	    shared_flag='$wl-bM:SRE'
9775	  fi
9776	  shared_flag_aix='$wl-bM:SRE'
9777	  shared_flag_svr4='$wl-G'
9778	fi
9779      fi
9780
9781      export_dynamic_flag_spec='$wl-bexpall'
9782      # It seems that -bexpall does not export symbols beginning with
9783      # underscore (_), so it is better to generate a list of symbols to export.
9784      always_export_symbols=yes
9785      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9786	# Warning - without using the other runtime loading flags (-brtl),
9787	# -berok will link without error, but may produce a broken library.
9788	allow_undefined_flag='-berok'
9789        # Determine the default libpath from the value encoded in an
9790        # empty executable.
9791        if test set = "${lt_cv_aix_libpath+set}"; then
9792  aix_libpath=$lt_cv_aix_libpath
9793else
9794  if ${lt_cv_aix_libpath_+:} false; then :
9795  $as_echo_n "(cached) " >&6
9796else
9797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798/* end confdefs.h.  */
9799
9800int
9801main ()
9802{
9803
9804  ;
9805  return 0;
9806}
9807_ACEOF
9808if ac_fn_c_try_link "$LINENO"; then :
9809
9810  lt_aix_libpath_sed='
9811      /Import File Strings/,/^$/ {
9812	  /^0/ {
9813	      s/^0  *\([^ ]*\) *$/\1/
9814	      p
9815	  }
9816      }'
9817  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9818  # Check for a 64-bit object if we didn't find anything.
9819  if test -z "$lt_cv_aix_libpath_"; then
9820    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9821  fi
9822fi
9823rm -f core conftest.err conftest.$ac_objext \
9824    conftest$ac_exeext conftest.$ac_ext
9825  if test -z "$lt_cv_aix_libpath_"; then
9826    lt_cv_aix_libpath_=/usr/lib:/lib
9827  fi
9828
9829fi
9830
9831  aix_libpath=$lt_cv_aix_libpath_
9832fi
9833
9834        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9835        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
9836      else
9837	if test ia64 = "$host_cpu"; then
9838	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9839	  allow_undefined_flag="-z nodefs"
9840	  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"
9841	else
9842	 # Determine the default libpath from the value encoded in an
9843	 # empty executable.
9844	 if test set = "${lt_cv_aix_libpath+set}"; then
9845  aix_libpath=$lt_cv_aix_libpath
9846else
9847  if ${lt_cv_aix_libpath_+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h.  */
9852
9853int
9854main ()
9855{
9856
9857  ;
9858  return 0;
9859}
9860_ACEOF
9861if ac_fn_c_try_link "$LINENO"; then :
9862
9863  lt_aix_libpath_sed='
9864      /Import File Strings/,/^$/ {
9865	  /^0/ {
9866	      s/^0  *\([^ ]*\) *$/\1/
9867	      p
9868	  }
9869      }'
9870  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9871  # Check for a 64-bit object if we didn't find anything.
9872  if test -z "$lt_cv_aix_libpath_"; then
9873    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9874  fi
9875fi
9876rm -f core conftest.err conftest.$ac_objext \
9877    conftest$ac_exeext conftest.$ac_ext
9878  if test -z "$lt_cv_aix_libpath_"; then
9879    lt_cv_aix_libpath_=/usr/lib:/lib
9880  fi
9881
9882fi
9883
9884  aix_libpath=$lt_cv_aix_libpath_
9885fi
9886
9887	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9888	  # Warning - without using the other run time loading flags,
9889	  # -berok will link without error, but may produce a broken library.
9890	  no_undefined_flag=' $wl-bernotok'
9891	  allow_undefined_flag=' $wl-berok'
9892	  if test yes = "$with_gnu_ld"; then
9893	    # We only use this code for GNU lds that support --whole-archive.
9894	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9895	  else
9896	    # Exported symbols can be pulled into shared objects from archives
9897	    whole_archive_flag_spec='$convenience'
9898	  fi
9899	  archive_cmds_need_lc=yes
9900	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9901	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9902	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9903	  if test svr4 != "$with_aix_soname"; then
9904	    # This is similar to how AIX traditionally builds its shared libraries.
9905	    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'
9906	  fi
9907	  if test aix != "$with_aix_soname"; then
9908	    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'
9909	  else
9910	    # used by -dlpreopen to get the symbols
9911	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9912	  fi
9913	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9914	fi
9915      fi
9916      ;;
9917
9918    amigaos*)
9919      case $host_cpu in
9920      powerpc)
9921            # see comment about AmigaOS4 .so support
9922            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9923            archive_expsym_cmds=''
9924        ;;
9925      m68k)
9926            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)'
9927            hardcode_libdir_flag_spec='-L$libdir'
9928            hardcode_minus_L=yes
9929        ;;
9930      esac
9931      ;;
9932
9933    bsdi[45]*)
9934      export_dynamic_flag_spec=-rdynamic
9935      ;;
9936
9937    cygwin* | mingw* | pw32* | cegcc*)
9938      # When not using gcc, we currently assume that we are using
9939      # Microsoft Visual C++.
9940      # hardcode_libdir_flag_spec is actually meaningless, as there is
9941      # no search path for DLLs.
9942      case $cc_basename in
9943      cl*)
9944	# Native MSVC
9945	hardcode_libdir_flag_spec=' '
9946	allow_undefined_flag=unsupported
9947	always_export_symbols=yes
9948	file_list_spec='@'
9949	# Tell ltmain to make .lib files, not .a files.
9950	libext=lib
9951	# Tell ltmain to make .dll files, not .so files.
9952	shrext_cmds=.dll
9953	# FIXME: Setting linknames here is a bad hack.
9954	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9955	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9956            cp "$export_symbols" "$output_objdir/$soname.def";
9957            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9958          else
9959            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9960          fi~
9961          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9962          linknames='
9963	# The linker will not automatically build a static lib if we build a DLL.
9964	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9965	enable_shared_with_static_runtimes=yes
9966	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9967	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9968	# Don't use ranlib
9969	old_postinstall_cmds='chmod 644 $oldlib'
9970	postlink_cmds='lt_outputfile="@OUTPUT@"~
9971          lt_tool_outputfile="@TOOL_OUTPUT@"~
9972          case $lt_outputfile in
9973            *.exe|*.EXE) ;;
9974            *)
9975              lt_outputfile=$lt_outputfile.exe
9976              lt_tool_outputfile=$lt_tool_outputfile.exe
9977              ;;
9978          esac~
9979          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9980            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9981            $RM "$lt_outputfile.manifest";
9982          fi'
9983	;;
9984      *)
9985	# Assume MSVC wrapper
9986	hardcode_libdir_flag_spec=' '
9987	allow_undefined_flag=unsupported
9988	# Tell ltmain to make .lib files, not .a files.
9989	libext=lib
9990	# Tell ltmain to make .dll files, not .so files.
9991	shrext_cmds=.dll
9992	# FIXME: Setting linknames here is a bad hack.
9993	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9994	# The linker will automatically build a .lib file if we build a DLL.
9995	old_archive_from_new_cmds='true'
9996	# FIXME: Should let the user specify the lib program.
9997	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9998	enable_shared_with_static_runtimes=yes
9999	;;
10000      esac
10001      ;;
10002
10003    darwin* | rhapsody*)
10004
10005
10006  archive_cmds_need_lc=no
10007  hardcode_direct=no
10008  hardcode_automatic=yes
10009  hardcode_shlibpath_var=unsupported
10010  if test yes = "$lt_cv_ld_force_load"; then
10011    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\"`'
10012
10013  else
10014    whole_archive_flag_spec=''
10015  fi
10016  link_all_deplibs=yes
10017  allow_undefined_flag=$_lt_dar_allow_undefined
10018  case $cc_basename in
10019     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10020     *) _lt_dar_can_shared=$GCC ;;
10021  esac
10022  if test yes = "$_lt_dar_can_shared"; then
10023    output_verbose_link_cmd=func_echo_all
10024    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10025    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10026    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"
10027    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"
10028
10029  else
10030  ld_shlibs=no
10031  fi
10032
10033      ;;
10034
10035    dgux*)
10036      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037      hardcode_libdir_flag_spec='-L$libdir'
10038      hardcode_shlibpath_var=no
10039      ;;
10040
10041    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10042    # support.  Future versions do this automatically, but an explicit c++rt0.o
10043    # does not break anything, and helps significantly (at the cost of a little
10044    # extra space).
10045    freebsd2.2*)
10046      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10047      hardcode_libdir_flag_spec='-R$libdir'
10048      hardcode_direct=yes
10049      hardcode_shlibpath_var=no
10050      ;;
10051
10052    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10053    freebsd2.*)
10054      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10055      hardcode_direct=yes
10056      hardcode_minus_L=yes
10057      hardcode_shlibpath_var=no
10058      ;;
10059
10060    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10061    freebsd* | dragonfly*)
10062      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10063      hardcode_libdir_flag_spec='-R$libdir'
10064      hardcode_direct=yes
10065      hardcode_shlibpath_var=no
10066      ;;
10067
10068    hpux9*)
10069      if test yes = "$GCC"; then
10070	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'
10071      else
10072	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'
10073      fi
10074      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10075      hardcode_libdir_separator=:
10076      hardcode_direct=yes
10077
10078      # hardcode_minus_L: Not really in the search PATH,
10079      # but as the default location of the library.
10080      hardcode_minus_L=yes
10081      export_dynamic_flag_spec='$wl-E'
10082      ;;
10083
10084    hpux10*)
10085      if test yes,no = "$GCC,$with_gnu_ld"; then
10086	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10087      else
10088	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10089      fi
10090      if test no = "$with_gnu_ld"; then
10091	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10092	hardcode_libdir_separator=:
10093	hardcode_direct=yes
10094	hardcode_direct_absolute=yes
10095	export_dynamic_flag_spec='$wl-E'
10096	# hardcode_minus_L: Not really in the search PATH,
10097	# but as the default location of the library.
10098	hardcode_minus_L=yes
10099      fi
10100      ;;
10101
10102    hpux11*)
10103      if test yes,no = "$GCC,$with_gnu_ld"; then
10104	case $host_cpu in
10105	hppa*64*)
10106	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10107	  ;;
10108	ia64*)
10109	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10110	  ;;
10111	*)
10112	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10113	  ;;
10114	esac
10115      else
10116	case $host_cpu in
10117	hppa*64*)
10118	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10119	  ;;
10120	ia64*)
10121	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10122	  ;;
10123	*)
10124
10125	  # Older versions of the 11.00 compiler do not understand -b yet
10126	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10127	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10128$as_echo_n "checking if $CC understands -b... " >&6; }
10129if ${lt_cv_prog_compiler__b+:} false; then :
10130  $as_echo_n "(cached) " >&6
10131else
10132  lt_cv_prog_compiler__b=no
10133   save_LDFLAGS=$LDFLAGS
10134   LDFLAGS="$LDFLAGS -b"
10135   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10136   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10137     # The linker can only warn and ignore the option if not recognized
10138     # So say no if there are warnings
10139     if test -s conftest.err; then
10140       # Append any errors to the config.log.
10141       cat conftest.err 1>&5
10142       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10143       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10144       if diff conftest.exp conftest.er2 >/dev/null; then
10145         lt_cv_prog_compiler__b=yes
10146       fi
10147     else
10148       lt_cv_prog_compiler__b=yes
10149     fi
10150   fi
10151   $RM -r conftest*
10152   LDFLAGS=$save_LDFLAGS
10153
10154fi
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10156$as_echo "$lt_cv_prog_compiler__b" >&6; }
10157
10158if test yes = "$lt_cv_prog_compiler__b"; then
10159    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10160else
10161    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10162fi
10163
10164	  ;;
10165	esac
10166      fi
10167      if test no = "$with_gnu_ld"; then
10168	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10169	hardcode_libdir_separator=:
10170
10171	case $host_cpu in
10172	hppa*64*|ia64*)
10173	  hardcode_direct=no
10174	  hardcode_shlibpath_var=no
10175	  ;;
10176	*)
10177	  hardcode_direct=yes
10178	  hardcode_direct_absolute=yes
10179	  export_dynamic_flag_spec='$wl-E'
10180
10181	  # hardcode_minus_L: Not really in the search PATH,
10182	  # but as the default location of the library.
10183	  hardcode_minus_L=yes
10184	  ;;
10185	esac
10186      fi
10187      ;;
10188
10189    irix5* | irix6* | nonstopux*)
10190      if test yes = "$GCC"; then
10191	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'
10192	# Try to use the -exported_symbol ld option, if it does not
10193	# work, assume that -exports_file does not work either and
10194	# implicitly export all symbols.
10195	# This should be the same for all languages, so no per-tag cache variable.
10196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10197$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10198if ${lt_cv_irix_exported_symbol+:} false; then :
10199  $as_echo_n "(cached) " >&6
10200else
10201  save_LDFLAGS=$LDFLAGS
10202	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10203	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205int foo (void) { return 0; }
10206_ACEOF
10207if ac_fn_c_try_link "$LINENO"; then :
10208  lt_cv_irix_exported_symbol=yes
10209else
10210  lt_cv_irix_exported_symbol=no
10211fi
10212rm -f core conftest.err conftest.$ac_objext \
10213    conftest$ac_exeext conftest.$ac_ext
10214           LDFLAGS=$save_LDFLAGS
10215fi
10216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10217$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10218	if test yes = "$lt_cv_irix_exported_symbol"; then
10219          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'
10220	fi
10221	link_all_deplibs=no
10222      else
10223	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'
10224	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'
10225      fi
10226      archive_cmds_need_lc='no'
10227      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10228      hardcode_libdir_separator=:
10229      inherit_rpath=yes
10230      link_all_deplibs=yes
10231      ;;
10232
10233    linux*)
10234      case $cc_basename in
10235      tcc*)
10236	# Fabrice Bellard et al's Tiny C Compiler
10237	ld_shlibs=yes
10238	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10239	;;
10240      esac
10241      ;;
10242
10243    netbsd* | netbsdelf*-gnu)
10244      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10245	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10246      else
10247	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10248      fi
10249      hardcode_libdir_flag_spec='-R$libdir'
10250      hardcode_direct=yes
10251      hardcode_shlibpath_var=no
10252      ;;
10253
10254    newsos6)
10255      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10256      hardcode_direct=yes
10257      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10258      hardcode_libdir_separator=:
10259      hardcode_shlibpath_var=no
10260      ;;
10261
10262    *nto* | *qnx*)
10263      ;;
10264
10265    openbsd* | bitrig*)
10266      if test -f /usr/libexec/ld.so; then
10267	hardcode_direct=yes
10268	hardcode_shlibpath_var=no
10269	hardcode_direct_absolute=yes
10270	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10271	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10272	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10273	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10274	  export_dynamic_flag_spec='$wl-E'
10275	else
10276	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10277	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10278	fi
10279      else
10280	ld_shlibs=no
10281      fi
10282      ;;
10283
10284    os2*)
10285      hardcode_libdir_flag_spec='-L$libdir'
10286      hardcode_minus_L=yes
10287      allow_undefined_flag=unsupported
10288      shrext_cmds=.dll
10289      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10290	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10291	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10292	$ECHO EXPORTS >> $output_objdir/$libname.def~
10293	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10294	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10295	emximp -o $lib $output_objdir/$libname.def'
10296      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10297	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10298	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10299	$ECHO EXPORTS >> $output_objdir/$libname.def~
10300	prefix_cmds="$SED"~
10301	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10302	  prefix_cmds="$prefix_cmds -e 1d";
10303	fi~
10304	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10305	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10306	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10307	emximp -o $lib $output_objdir/$libname.def'
10308      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10309      enable_shared_with_static_runtimes=yes
10310      ;;
10311
10312    osf3*)
10313      if test yes = "$GCC"; then
10314	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10315	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'
10316      else
10317	allow_undefined_flag=' -expect_unresolved \*'
10318	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'
10319      fi
10320      archive_cmds_need_lc='no'
10321      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10322      hardcode_libdir_separator=:
10323      ;;
10324
10325    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10326      if test yes = "$GCC"; then
10327	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10328	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'
10329	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10330      else
10331	allow_undefined_flag=' -expect_unresolved \*'
10332	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'
10333	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~
10334          $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'
10335
10336	# Both c and cxx compiler support -rpath directly
10337	hardcode_libdir_flag_spec='-rpath $libdir'
10338      fi
10339      archive_cmds_need_lc='no'
10340      hardcode_libdir_separator=:
10341      ;;
10342
10343    solaris*)
10344      no_undefined_flag=' -z defs'
10345      if test yes = "$GCC"; then
10346	wlarc='$wl'
10347	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10348	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10349          $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'
10350      else
10351	case `$CC -V 2>&1` in
10352	*"Compilers 5.0"*)
10353	  wlarc=''
10354	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10356            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10357	  ;;
10358	*)
10359	  wlarc='$wl'
10360	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10361	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10362            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10363	  ;;
10364	esac
10365      fi
10366      hardcode_libdir_flag_spec='-R$libdir'
10367      hardcode_shlibpath_var=no
10368      case $host_os in
10369      solaris2.[0-5] | solaris2.[0-5].*) ;;
10370      *)
10371	# The compiler driver will combine and reorder linker options,
10372	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10373	# but is careful enough not to reorder.
10374	# Supported since Solaris 2.6 (maybe 2.5.1?)
10375	if test yes = "$GCC"; then
10376	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10377	else
10378	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10379	fi
10380	;;
10381      esac
10382      link_all_deplibs=yes
10383      ;;
10384
10385    sunos4*)
10386      if test sequent = "$host_vendor"; then
10387	# Use $CC to link under sequent, because it throws in some extra .o
10388	# files that make .init and .fini sections work.
10389	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10390      else
10391	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10392      fi
10393      hardcode_libdir_flag_spec='-L$libdir'
10394      hardcode_direct=yes
10395      hardcode_minus_L=yes
10396      hardcode_shlibpath_var=no
10397      ;;
10398
10399    sysv4)
10400      case $host_vendor in
10401	sni)
10402	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10403	  hardcode_direct=yes # is this really true???
10404	;;
10405	siemens)
10406	  ## LD is ld it makes a PLAMLIB
10407	  ## CC just makes a GrossModule.
10408	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10409	  reload_cmds='$CC -r -o $output$reload_objs'
10410	  hardcode_direct=no
10411        ;;
10412	motorola)
10413	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10415	;;
10416      esac
10417      runpath_var='LD_RUN_PATH'
10418      hardcode_shlibpath_var=no
10419      ;;
10420
10421    sysv4.3*)
10422      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10423      hardcode_shlibpath_var=no
10424      export_dynamic_flag_spec='-Bexport'
10425      ;;
10426
10427    sysv4*MP*)
10428      if test -d /usr/nec; then
10429	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430	hardcode_shlibpath_var=no
10431	runpath_var=LD_RUN_PATH
10432	hardcode_runpath_var=yes
10433	ld_shlibs=yes
10434      fi
10435      ;;
10436
10437    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10438      no_undefined_flag='$wl-z,text'
10439      archive_cmds_need_lc=no
10440      hardcode_shlibpath_var=no
10441      runpath_var='LD_RUN_PATH'
10442
10443      if test yes = "$GCC"; then
10444	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446      else
10447	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449      fi
10450      ;;
10451
10452    sysv5* | sco3.2v5* | sco5v6*)
10453      # Note: We CANNOT use -z defs as we might desire, because we do not
10454      # link with -lc, and that would cause any symbols used from libc to
10455      # always be unresolved, which means just about no library would
10456      # ever link correctly.  If we're not using GNU ld we use -z text
10457      # though, which does catch some bad symbols but isn't as heavy-handed
10458      # as -z defs.
10459      no_undefined_flag='$wl-z,text'
10460      allow_undefined_flag='$wl-z,nodefs'
10461      archive_cmds_need_lc=no
10462      hardcode_shlibpath_var=no
10463      hardcode_libdir_flag_spec='$wl-R,$libdir'
10464      hardcode_libdir_separator=':'
10465      link_all_deplibs=yes
10466      export_dynamic_flag_spec='$wl-Bexport'
10467      runpath_var='LD_RUN_PATH'
10468
10469      if test yes = "$GCC"; then
10470	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472      else
10473	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10475      fi
10476      ;;
10477
10478    uts4*)
10479      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10480      hardcode_libdir_flag_spec='-L$libdir'
10481      hardcode_shlibpath_var=no
10482      ;;
10483
10484    *)
10485      ld_shlibs=no
10486      ;;
10487    esac
10488
10489    if test sni = "$host_vendor"; then
10490      case $host in
10491      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10492	export_dynamic_flag_spec='$wl-Blargedynsym'
10493	;;
10494      esac
10495    fi
10496  fi
10497
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10499$as_echo "$ld_shlibs" >&6; }
10500test no = "$ld_shlibs" && can_build_shared=no
10501
10502with_gnu_ld=$with_gnu_ld
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518#
10519# Do we need to explicitly link libc?
10520#
10521case "x$archive_cmds_need_lc" in
10522x|xyes)
10523  # Assume -lc should be added
10524  archive_cmds_need_lc=yes
10525
10526  if test yes,yes = "$GCC,$enable_shared"; then
10527    case $archive_cmds in
10528    *'~'*)
10529      # FIXME: we may have to deal with multi-command sequences.
10530      ;;
10531    '$CC '*)
10532      # Test whether the compiler implicitly links with -lc since on some
10533      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10534      # to ld, don't add -lc before -lgcc.
10535      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10536$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10537if ${lt_cv_archive_cmds_need_lc+:} false; then :
10538  $as_echo_n "(cached) " >&6
10539else
10540  $RM conftest*
10541	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10542
10543	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10544  (eval $ac_compile) 2>&5
10545  ac_status=$?
10546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10547  test $ac_status = 0; } 2>conftest.err; then
10548	  soname=conftest
10549	  lib=conftest
10550	  libobjs=conftest.$ac_objext
10551	  deplibs=
10552	  wl=$lt_prog_compiler_wl
10553	  pic_flag=$lt_prog_compiler_pic
10554	  compiler_flags=-v
10555	  linker_flags=-v
10556	  verstring=
10557	  output_objdir=.
10558	  libname=conftest
10559	  lt_save_allow_undefined_flag=$allow_undefined_flag
10560	  allow_undefined_flag=
10561	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10562  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10563  ac_status=$?
10564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10565  test $ac_status = 0; }
10566	  then
10567	    lt_cv_archive_cmds_need_lc=no
10568	  else
10569	    lt_cv_archive_cmds_need_lc=yes
10570	  fi
10571	  allow_undefined_flag=$lt_save_allow_undefined_flag
10572	else
10573	  cat conftest.err 1>&5
10574	fi
10575	$RM conftest*
10576
10577fi
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10579$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10580      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10581      ;;
10582    esac
10583  fi
10584  ;;
10585esac
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10739$as_echo_n "checking dynamic linker characteristics... " >&6; }
10740
10741if test yes = "$GCC"; then
10742  case $host_os in
10743    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10744    *) lt_awk_arg='/^libraries:/' ;;
10745  esac
10746  case $host_os in
10747    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10748    *) lt_sed_strip_eq='s|=/|/|g' ;;
10749  esac
10750  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10751  case $lt_search_path_spec in
10752  *\;*)
10753    # if the path contains ";" then we assume it to be the separator
10754    # otherwise default to the standard path separator (i.e. ":") - it is
10755    # assumed that no part of a normal pathname contains ";" but that should
10756    # okay in the real world where ";" in dirpaths is itself problematic.
10757    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10758    ;;
10759  *)
10760    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10761    ;;
10762  esac
10763  # Ok, now we have the path, separated by spaces, we can step through it
10764  # and add multilib dir if necessary...
10765  lt_tmp_lt_search_path_spec=
10766  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10767  # ...but if some path component already ends with the multilib dir we assume
10768  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10769  case "$lt_multi_os_dir; $lt_search_path_spec " in
10770  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10771    lt_multi_os_dir=
10772    ;;
10773  esac
10774  for lt_sys_path in $lt_search_path_spec; do
10775    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10776      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10777    elif test -n "$lt_multi_os_dir"; then
10778      test -d "$lt_sys_path" && \
10779	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10780    fi
10781  done
10782  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10783BEGIN {RS = " "; FS = "/|\n";} {
10784  lt_foo = "";
10785  lt_count = 0;
10786  for (lt_i = NF; lt_i > 0; lt_i--) {
10787    if ($lt_i != "" && $lt_i != ".") {
10788      if ($lt_i == "..") {
10789        lt_count++;
10790      } else {
10791        if (lt_count == 0) {
10792          lt_foo = "/" $lt_i lt_foo;
10793        } else {
10794          lt_count--;
10795        }
10796      }
10797    }
10798  }
10799  if (lt_foo != "") { lt_freq[lt_foo]++; }
10800  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10801}'`
10802  # AWK program above erroneously prepends '/' to C:/dos/paths
10803  # for these hosts.
10804  case $host_os in
10805    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10806      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10807  esac
10808  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10809else
10810  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10811fi
10812library_names_spec=
10813libname_spec='lib$name'
10814soname_spec=
10815shrext_cmds=.so
10816postinstall_cmds=
10817postuninstall_cmds=
10818finish_cmds=
10819finish_eval=
10820shlibpath_var=
10821shlibpath_overrides_runpath=unknown
10822version_type=none
10823dynamic_linker="$host_os ld.so"
10824sys_lib_dlsearch_path_spec="/lib /usr/lib"
10825need_lib_prefix=unknown
10826hardcode_into_libs=no
10827
10828# when you set need_version to no, make sure it does not cause -set_version
10829# flags to be left without arguments
10830need_version=unknown
10831
10832
10833
10834case $host_os in
10835aix3*)
10836  version_type=linux # correct to gnu/linux during the next big refactor
10837  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10838  shlibpath_var=LIBPATH
10839
10840  # AIX 3 has no versioning support, so we append a major version to the name.
10841  soname_spec='$libname$release$shared_ext$major'
10842  ;;
10843
10844aix[4-9]*)
10845  version_type=linux # correct to gnu/linux during the next big refactor
10846  need_lib_prefix=no
10847  need_version=no
10848  hardcode_into_libs=yes
10849  if test ia64 = "$host_cpu"; then
10850    # AIX 5 supports IA64
10851    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10852    shlibpath_var=LD_LIBRARY_PATH
10853  else
10854    # With GCC up to 2.95.x, collect2 would create an import file
10855    # for dependence libraries.  The import file would start with
10856    # the line '#! .'.  This would cause the generated library to
10857    # depend on '.', always an invalid library.  This was fixed in
10858    # development snapshots of GCC prior to 3.0.
10859    case $host_os in
10860      aix4 | aix4.[01] | aix4.[01].*)
10861      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10862	   echo ' yes '
10863	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10864	:
10865      else
10866	can_build_shared=no
10867      fi
10868      ;;
10869    esac
10870    # Using Import Files as archive members, it is possible to support
10871    # filename-based versioning of shared library archives on AIX. While
10872    # this would work for both with and without runtime linking, it will
10873    # prevent static linking of such archives. So we do filename-based
10874    # shared library versioning with .so extension only, which is used
10875    # when both runtime linking and shared linking is enabled.
10876    # Unfortunately, runtime linking may impact performance, so we do
10877    # not want this to be the default eventually. Also, we use the
10878    # versioned .so libs for executables only if there is the -brtl
10879    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10880    # To allow for filename-based versioning support, we need to create
10881    # libNAME.so.V as an archive file, containing:
10882    # *) an Import File, referring to the versioned filename of the
10883    #    archive as well as the shared archive member, telling the
10884    #    bitwidth (32 or 64) of that shared object, and providing the
10885    #    list of exported symbols of that shared object, eventually
10886    #    decorated with the 'weak' keyword
10887    # *) the shared object with the F_LOADONLY flag set, to really avoid
10888    #    it being seen by the linker.
10889    # At run time we better use the real file rather than another symlink,
10890    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10891
10892    case $with_aix_soname,$aix_use_runtimelinking in
10893    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10894    # soname into executable. Probably we can add versioning support to
10895    # collect2, so additional links can be useful in future.
10896    aix,yes) # traditional libtool
10897      dynamic_linker='AIX unversionable lib.so'
10898      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10899      # instead of lib<name>.a to let people know that these are not
10900      # typical AIX shared libraries.
10901      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10902      ;;
10903    aix,no) # traditional AIX only
10904      dynamic_linker='AIX lib.a(lib.so.V)'
10905      # We preserve .a as extension for shared libraries through AIX4.2
10906      # and later when we are not doing run time linking.
10907      library_names_spec='$libname$release.a $libname.a'
10908      soname_spec='$libname$release$shared_ext$major'
10909      ;;
10910    svr4,*) # full svr4 only
10911      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10912      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10913      # We do not specify a path in Import Files, so LIBPATH fires.
10914      shlibpath_overrides_runpath=yes
10915      ;;
10916    *,yes) # both, prefer svr4
10917      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10918      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10919      # unpreferred sharedlib libNAME.a needs extra handling
10920      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"'
10921      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"'
10922      # We do not specify a path in Import Files, so LIBPATH fires.
10923      shlibpath_overrides_runpath=yes
10924      ;;
10925    *,no) # both, prefer aix
10926      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10927      library_names_spec='$libname$release.a $libname.a'
10928      soname_spec='$libname$release$shared_ext$major'
10929      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10930      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)'
10931      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"'
10932      ;;
10933    esac
10934    shlibpath_var=LIBPATH
10935  fi
10936  ;;
10937
10938amigaos*)
10939  case $host_cpu in
10940  powerpc)
10941    # Since July 2007 AmigaOS4 officially supports .so libraries.
10942    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10943    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10944    ;;
10945  m68k)
10946    library_names_spec='$libname.ixlibrary $libname.a'
10947    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10948    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'
10949    ;;
10950  esac
10951  ;;
10952
10953beos*)
10954  library_names_spec='$libname$shared_ext'
10955  dynamic_linker="$host_os ld.so"
10956  shlibpath_var=LIBRARY_PATH
10957  ;;
10958
10959bsdi[45]*)
10960  version_type=linux # correct to gnu/linux during the next big refactor
10961  need_version=no
10962  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10963  soname_spec='$libname$release$shared_ext$major'
10964  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10965  shlibpath_var=LD_LIBRARY_PATH
10966  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10967  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10968  # the default ld.so.conf also contains /usr/contrib/lib and
10969  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10970  # libtool to hard-code these into programs
10971  ;;
10972
10973cygwin* | mingw* | pw32* | cegcc*)
10974  version_type=windows
10975  shrext_cmds=.dll
10976  need_version=no
10977  need_lib_prefix=no
10978
10979  case $GCC,$cc_basename in
10980  yes,*)
10981    # gcc
10982    library_names_spec='$libname.dll.a'
10983    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10984    postinstall_cmds='base_file=`basename \$file`~
10985      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10986      dldir=$destdir/`dirname \$dlpath`~
10987      test -d \$dldir || mkdir -p \$dldir~
10988      $install_prog $dir/$dlname \$dldir/$dlname~
10989      chmod a+x \$dldir/$dlname~
10990      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10991        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10992      fi'
10993    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10994      dlpath=$dir/\$dldll~
10995       $RM \$dlpath'
10996    shlibpath_overrides_runpath=yes
10997
10998    case $host_os in
10999    cygwin*)
11000      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11001      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11002
11003      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11004      ;;
11005    mingw* | cegcc*)
11006      # MinGW DLLs use traditional 'lib' prefix
11007      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11008      ;;
11009    pw32*)
11010      # pw32 DLLs use 'pw' prefix rather than 'lib'
11011      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11012      ;;
11013    esac
11014    dynamic_linker='Win32 ld.exe'
11015    ;;
11016
11017  *,cl*)
11018    # Native MSVC
11019    libname_spec='$name'
11020    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11021    library_names_spec='$libname.dll.lib'
11022
11023    case $build_os in
11024    mingw*)
11025      sys_lib_search_path_spec=
11026      lt_save_ifs=$IFS
11027      IFS=';'
11028      for lt_path in $LIB
11029      do
11030        IFS=$lt_save_ifs
11031        # Let DOS variable expansion print the short 8.3 style file name.
11032        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11033        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11034      done
11035      IFS=$lt_save_ifs
11036      # Convert to MSYS style.
11037      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11038      ;;
11039    cygwin*)
11040      # Convert to unix form, then to dos form, then back to unix form
11041      # but this time dos style (no spaces!) so that the unix form looks
11042      # like /cygdrive/c/PROGRA~1:/cygdr...
11043      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11044      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11045      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11046      ;;
11047    *)
11048      sys_lib_search_path_spec=$LIB
11049      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11050        # It is most probably a Windows format PATH.
11051        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11052      else
11053        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11054      fi
11055      # FIXME: find the short name or the path components, as spaces are
11056      # common. (e.g. "Program Files" -> "PROGRA~1")
11057      ;;
11058    esac
11059
11060    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11061    postinstall_cmds='base_file=`basename \$file`~
11062      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11063      dldir=$destdir/`dirname \$dlpath`~
11064      test -d \$dldir || mkdir -p \$dldir~
11065      $install_prog $dir/$dlname \$dldir/$dlname'
11066    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11067      dlpath=$dir/\$dldll~
11068       $RM \$dlpath'
11069    shlibpath_overrides_runpath=yes
11070    dynamic_linker='Win32 link.exe'
11071    ;;
11072
11073  *)
11074    # Assume MSVC wrapper
11075    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11076    dynamic_linker='Win32 ld.exe'
11077    ;;
11078  esac
11079  # FIXME: first we should search . and the directory the executable is in
11080  shlibpath_var=PATH
11081  ;;
11082
11083darwin* | rhapsody*)
11084  dynamic_linker="$host_os dyld"
11085  version_type=darwin
11086  need_lib_prefix=no
11087  need_version=no
11088  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11089  soname_spec='$libname$release$major$shared_ext'
11090  shlibpath_overrides_runpath=yes
11091  shlibpath_var=DYLD_LIBRARY_PATH
11092  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11093
11094  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11095  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11096  ;;
11097
11098dgux*)
11099  version_type=linux # correct to gnu/linux during the next big refactor
11100  need_lib_prefix=no
11101  need_version=no
11102  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103  soname_spec='$libname$release$shared_ext$major'
11104  shlibpath_var=LD_LIBRARY_PATH
11105  ;;
11106
11107freebsd* | dragonfly*)
11108  # DragonFly does not have aout.  When/if they implement a new
11109  # versioning mechanism, adjust this.
11110  if test -x /usr/bin/objformat; then
11111    objformat=`/usr/bin/objformat`
11112  else
11113    case $host_os in
11114    freebsd[23].*) objformat=aout ;;
11115    *) objformat=elf ;;
11116    esac
11117  fi
11118  version_type=freebsd-$objformat
11119  case $version_type in
11120    freebsd-elf*)
11121      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11122      soname_spec='$libname$release$shared_ext$major'
11123      need_version=no
11124      need_lib_prefix=no
11125      ;;
11126    freebsd-*)
11127      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11128      need_version=yes
11129      ;;
11130  esac
11131  shlibpath_var=LD_LIBRARY_PATH
11132  case $host_os in
11133  freebsd2.*)
11134    shlibpath_overrides_runpath=yes
11135    ;;
11136  freebsd3.[01]* | freebsdelf3.[01]*)
11137    shlibpath_overrides_runpath=yes
11138    hardcode_into_libs=yes
11139    ;;
11140  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11141  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11142    shlibpath_overrides_runpath=no
11143    hardcode_into_libs=yes
11144    ;;
11145  *) # from 4.6 on, and DragonFly
11146    shlibpath_overrides_runpath=yes
11147    hardcode_into_libs=yes
11148    ;;
11149  esac
11150  ;;
11151
11152haiku*)
11153  version_type=linux # correct to gnu/linux during the next big refactor
11154  need_lib_prefix=no
11155  need_version=no
11156  dynamic_linker="$host_os runtime_loader"
11157  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158  soname_spec='$libname$release$shared_ext$major'
11159  shlibpath_var=LIBRARY_PATH
11160  shlibpath_overrides_runpath=no
11161  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11162  hardcode_into_libs=yes
11163  ;;
11164
11165hpux9* | hpux10* | hpux11*)
11166  # Give a soname corresponding to the major version so that dld.sl refuses to
11167  # link against other versions.
11168  version_type=sunos
11169  need_lib_prefix=no
11170  need_version=no
11171  case $host_cpu in
11172  ia64*)
11173    shrext_cmds='.so'
11174    hardcode_into_libs=yes
11175    dynamic_linker="$host_os dld.so"
11176    shlibpath_var=LD_LIBRARY_PATH
11177    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11179    soname_spec='$libname$release$shared_ext$major'
11180    if test 32 = "$HPUX_IA64_MODE"; then
11181      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11182      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11183    else
11184      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11185      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11186    fi
11187    ;;
11188  hppa*64*)
11189    shrext_cmds='.sl'
11190    hardcode_into_libs=yes
11191    dynamic_linker="$host_os dld.sl"
11192    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11193    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11194    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195    soname_spec='$libname$release$shared_ext$major'
11196    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11197    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11198    ;;
11199  *)
11200    shrext_cmds='.sl'
11201    dynamic_linker="$host_os dld.sl"
11202    shlibpath_var=SHLIB_PATH
11203    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11204    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11205    soname_spec='$libname$release$shared_ext$major'
11206    ;;
11207  esac
11208  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11209  postinstall_cmds='chmod 555 $lib'
11210  # or fails outright, so override atomically:
11211  install_override_mode=555
11212  ;;
11213
11214interix[3-9]*)
11215  version_type=linux # correct to gnu/linux during the next big refactor
11216  need_lib_prefix=no
11217  need_version=no
11218  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11219  soname_spec='$libname$release$shared_ext$major'
11220  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11221  shlibpath_var=LD_LIBRARY_PATH
11222  shlibpath_overrides_runpath=no
11223  hardcode_into_libs=yes
11224  ;;
11225
11226irix5* | irix6* | nonstopux*)
11227  case $host_os in
11228    nonstopux*) version_type=nonstopux ;;
11229    *)
11230	if test yes = "$lt_cv_prog_gnu_ld"; then
11231		version_type=linux # correct to gnu/linux during the next big refactor
11232	else
11233		version_type=irix
11234	fi ;;
11235  esac
11236  need_lib_prefix=no
11237  need_version=no
11238  soname_spec='$libname$release$shared_ext$major'
11239  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11240  case $host_os in
11241  irix5* | nonstopux*)
11242    libsuff= shlibsuff=
11243    ;;
11244  *)
11245    case $LD in # libtool.m4 will add one of these switches to LD
11246    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11247      libsuff= shlibsuff= libmagic=32-bit;;
11248    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11249      libsuff=32 shlibsuff=N32 libmagic=N32;;
11250    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11251      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11252    *) libsuff= shlibsuff= libmagic=never-match;;
11253    esac
11254    ;;
11255  esac
11256  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11257  shlibpath_overrides_runpath=no
11258  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11259  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11260  hardcode_into_libs=yes
11261  ;;
11262
11263# No shared lib support for Linux oldld, aout, or coff.
11264linux*oldld* | linux*aout* | linux*coff*)
11265  dynamic_linker=no
11266  ;;
11267
11268linux*android*)
11269  version_type=none # Android doesn't support versioned libraries.
11270  need_lib_prefix=no
11271  need_version=no
11272  library_names_spec='$libname$release$shared_ext'
11273  soname_spec='$libname$release$shared_ext'
11274  finish_cmds=
11275  shlibpath_var=LD_LIBRARY_PATH
11276  shlibpath_overrides_runpath=yes
11277
11278  # This implies no fast_install, which is unacceptable.
11279  # Some rework will be needed to allow for fast_install
11280  # before this can be enabled.
11281  hardcode_into_libs=yes
11282
11283  dynamic_linker='Android linker'
11284  # Don't embed -rpath directories since the linker doesn't support them.
11285  hardcode_libdir_flag_spec='-L$libdir'
11286  ;;
11287
11288# This must be glibc/ELF.
11289linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11290  version_type=linux # correct to gnu/linux during the next big refactor
11291  need_lib_prefix=no
11292  need_version=no
11293  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11294  soname_spec='$libname$release$shared_ext$major'
11295  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11296  shlibpath_var=LD_LIBRARY_PATH
11297  shlibpath_overrides_runpath=no
11298
11299  # Some binutils ld are patched to set DT_RUNPATH
11300  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11301  $as_echo_n "(cached) " >&6
11302else
11303  lt_cv_shlibpath_overrides_runpath=no
11304    save_LDFLAGS=$LDFLAGS
11305    save_libdir=$libdir
11306    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11307	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11308    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309/* end confdefs.h.  */
11310
11311int
11312main ()
11313{
11314
11315  ;
11316  return 0;
11317}
11318_ACEOF
11319if ac_fn_c_try_link "$LINENO"; then :
11320  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11321  lt_cv_shlibpath_overrides_runpath=yes
11322fi
11323fi
11324rm -f core conftest.err conftest.$ac_objext \
11325    conftest$ac_exeext conftest.$ac_ext
11326    LDFLAGS=$save_LDFLAGS
11327    libdir=$save_libdir
11328
11329fi
11330
11331  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11332
11333  # This implies no fast_install, which is unacceptable.
11334  # Some rework will be needed to allow for fast_install
11335  # before this can be enabled.
11336  hardcode_into_libs=yes
11337
11338  # Ideally, we could use ldconfig to report *all* directores which are
11339  # searched for libraries, however this is still not possible.  Aside from not
11340  # being certain /sbin/ldconfig is available, command
11341  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11342  # even though it is searched at run-time.  Try to do the best guess by
11343  # appending ld.so.conf contents (and includes) to the search path.
11344  if test -f /etc/ld.so.conf; then
11345    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' ' '`
11346    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11347  fi
11348
11349  # We used to test for /lib/ld.so.1 and disable shared libraries on
11350  # powerpc, because MkLinux only supported shared libraries with the
11351  # GNU dynamic linker.  Since this was broken with cross compilers,
11352  # most powerpc-linux boxes support dynamic linking these days and
11353  # people can always --disable-shared, the test was removed, and we
11354  # assume the GNU/Linux dynamic linker is in use.
11355  dynamic_linker='GNU/Linux ld.so'
11356  ;;
11357
11358netbsdelf*-gnu)
11359  version_type=linux
11360  need_lib_prefix=no
11361  need_version=no
11362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11363  soname_spec='${libname}${release}${shared_ext}$major'
11364  shlibpath_var=LD_LIBRARY_PATH
11365  shlibpath_overrides_runpath=no
11366  hardcode_into_libs=yes
11367  dynamic_linker='NetBSD ld.elf_so'
11368  ;;
11369
11370netbsd*)
11371  version_type=sunos
11372  need_lib_prefix=no
11373  need_version=no
11374  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11375    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11376    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11377    dynamic_linker='NetBSD (a.out) ld.so'
11378  else
11379    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11380    soname_spec='$libname$release$shared_ext$major'
11381    dynamic_linker='NetBSD ld.elf_so'
11382  fi
11383  shlibpath_var=LD_LIBRARY_PATH
11384  shlibpath_overrides_runpath=yes
11385  hardcode_into_libs=yes
11386  ;;
11387
11388newsos6)
11389  version_type=linux # correct to gnu/linux during the next big refactor
11390  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11391  shlibpath_var=LD_LIBRARY_PATH
11392  shlibpath_overrides_runpath=yes
11393  ;;
11394
11395*nto* | *qnx*)
11396  version_type=qnx
11397  need_lib_prefix=no
11398  need_version=no
11399  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11400  soname_spec='$libname$release$shared_ext$major'
11401  shlibpath_var=LD_LIBRARY_PATH
11402  shlibpath_overrides_runpath=no
11403  hardcode_into_libs=yes
11404  dynamic_linker='ldqnx.so'
11405  ;;
11406
11407openbsd* | bitrig*)
11408  version_type=sunos
11409  sys_lib_dlsearch_path_spec=/usr/lib
11410  need_lib_prefix=no
11411  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11412    need_version=no
11413  else
11414    need_version=yes
11415  fi
11416  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11417  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11418  shlibpath_var=LD_LIBRARY_PATH
11419  shlibpath_overrides_runpath=yes
11420  ;;
11421
11422os2*)
11423  libname_spec='$name'
11424  version_type=windows
11425  shrext_cmds=.dll
11426  need_version=no
11427  need_lib_prefix=no
11428  # OS/2 can only load a DLL with a base name of 8 characters or less.
11429  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11430    v=$($ECHO $release$versuffix | tr -d .-);
11431    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11432    $ECHO $n$v`$shared_ext'
11433  library_names_spec='${libname}_dll.$libext'
11434  dynamic_linker='OS/2 ld.exe'
11435  shlibpath_var=BEGINLIBPATH
11436  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11437  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11438  postinstall_cmds='base_file=`basename \$file`~
11439    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11440    dldir=$destdir/`dirname \$dlpath`~
11441    test -d \$dldir || mkdir -p \$dldir~
11442    $install_prog $dir/$dlname \$dldir/$dlname~
11443    chmod a+x \$dldir/$dlname~
11444    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11445      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11446    fi'
11447  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11448    dlpath=$dir/\$dldll~
11449    $RM \$dlpath'
11450  ;;
11451
11452osf3* | osf4* | osf5*)
11453  version_type=osf
11454  need_lib_prefix=no
11455  need_version=no
11456  soname_spec='$libname$release$shared_ext$major'
11457  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11458  shlibpath_var=LD_LIBRARY_PATH
11459  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11460  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11461  ;;
11462
11463rdos*)
11464  dynamic_linker=no
11465  ;;
11466
11467solaris*)
11468  version_type=linux # correct to gnu/linux during the next big refactor
11469  need_lib_prefix=no
11470  need_version=no
11471  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472  soname_spec='$libname$release$shared_ext$major'
11473  shlibpath_var=LD_LIBRARY_PATH
11474  shlibpath_overrides_runpath=yes
11475  hardcode_into_libs=yes
11476  # ldd complains unless libraries are executable
11477  postinstall_cmds='chmod +x $lib'
11478  ;;
11479
11480sunos4*)
11481  version_type=sunos
11482  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11483  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11484  shlibpath_var=LD_LIBRARY_PATH
11485  shlibpath_overrides_runpath=yes
11486  if test yes = "$with_gnu_ld"; then
11487    need_lib_prefix=no
11488  fi
11489  need_version=yes
11490  ;;
11491
11492sysv4 | sysv4.3*)
11493  version_type=linux # correct to gnu/linux during the next big refactor
11494  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11495  soname_spec='$libname$release$shared_ext$major'
11496  shlibpath_var=LD_LIBRARY_PATH
11497  case $host_vendor in
11498    sni)
11499      shlibpath_overrides_runpath=no
11500      need_lib_prefix=no
11501      runpath_var=LD_RUN_PATH
11502      ;;
11503    siemens)
11504      need_lib_prefix=no
11505      ;;
11506    motorola)
11507      need_lib_prefix=no
11508      need_version=no
11509      shlibpath_overrides_runpath=no
11510      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11511      ;;
11512  esac
11513  ;;
11514
11515sysv4*MP*)
11516  if test -d /usr/nec; then
11517    version_type=linux # correct to gnu/linux during the next big refactor
11518    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11519    soname_spec='$libname$shared_ext.$major'
11520    shlibpath_var=LD_LIBRARY_PATH
11521  fi
11522  ;;
11523
11524sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11525  version_type=sco
11526  need_lib_prefix=no
11527  need_version=no
11528  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11529  soname_spec='$libname$release$shared_ext$major'
11530  shlibpath_var=LD_LIBRARY_PATH
11531  shlibpath_overrides_runpath=yes
11532  hardcode_into_libs=yes
11533  if test yes = "$with_gnu_ld"; then
11534    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11535  else
11536    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11537    case $host_os in
11538      sco3.2v5*)
11539        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11540	;;
11541    esac
11542  fi
11543  sys_lib_dlsearch_path_spec='/usr/lib'
11544  ;;
11545
11546tpf*)
11547  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11548  version_type=linux # correct to gnu/linux during the next big refactor
11549  need_lib_prefix=no
11550  need_version=no
11551  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11552  shlibpath_var=LD_LIBRARY_PATH
11553  shlibpath_overrides_runpath=no
11554  hardcode_into_libs=yes
11555  ;;
11556
11557uts4*)
11558  version_type=linux # correct to gnu/linux during the next big refactor
11559  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11560  soname_spec='$libname$release$shared_ext$major'
11561  shlibpath_var=LD_LIBRARY_PATH
11562  ;;
11563
11564*)
11565  dynamic_linker=no
11566  ;;
11567esac
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11569$as_echo "$dynamic_linker" >&6; }
11570test no = "$dynamic_linker" && can_build_shared=no
11571
11572variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11573if test yes = "$GCC"; then
11574  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11575fi
11576
11577if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11578  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11579fi
11580
11581if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11582  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11583fi
11584
11585# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11586configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11587
11588# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11589func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11590
11591# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11592configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11691$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11692hardcode_action=
11693if test -n "$hardcode_libdir_flag_spec" ||
11694   test -n "$runpath_var" ||
11695   test yes = "$hardcode_automatic"; then
11696
11697  # We can hardcode non-existent directories.
11698  if test no != "$hardcode_direct" &&
11699     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11700     # have to relink, otherwise we might link with an installed library
11701     # when we should be linking with a yet-to-be-installed one
11702     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11703     test no != "$hardcode_minus_L"; then
11704    # Linking always hardcodes the temporary library directory.
11705    hardcode_action=relink
11706  else
11707    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11708    hardcode_action=immediate
11709  fi
11710else
11711  # We cannot hardcode anything, or else we can only hardcode existing
11712  # directories.
11713  hardcode_action=unsupported
11714fi
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11716$as_echo "$hardcode_action" >&6; }
11717
11718if test relink = "$hardcode_action" ||
11719   test yes = "$inherit_rpath"; then
11720  # Fast installation is not supported
11721  enable_fast_install=no
11722elif test yes = "$shlibpath_overrides_runpath" ||
11723     test no = "$enable_shared"; then
11724  # Fast installation is not necessary
11725  enable_fast_install=needless
11726fi
11727
11728
11729
11730
11731
11732
11733  if test yes != "$enable_dlopen"; then
11734  enable_dlopen=unknown
11735  enable_dlopen_self=unknown
11736  enable_dlopen_self_static=unknown
11737else
11738  lt_cv_dlopen=no
11739  lt_cv_dlopen_libs=
11740
11741  case $host_os in
11742  beos*)
11743    lt_cv_dlopen=load_add_on
11744    lt_cv_dlopen_libs=
11745    lt_cv_dlopen_self=yes
11746    ;;
11747
11748  mingw* | pw32* | cegcc*)
11749    lt_cv_dlopen=LoadLibrary
11750    lt_cv_dlopen_libs=
11751    ;;
11752
11753  cygwin*)
11754    lt_cv_dlopen=dlopen
11755    lt_cv_dlopen_libs=
11756    ;;
11757
11758  darwin*)
11759    # if libdl is installed we need to link against it
11760    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11761$as_echo_n "checking for dlopen in -ldl... " >&6; }
11762if ${ac_cv_lib_dl_dlopen+:} false; then :
11763  $as_echo_n "(cached) " >&6
11764else
11765  ac_check_lib_save_LIBS=$LIBS
11766LIBS="-ldl  $LIBS"
11767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768/* end confdefs.h.  */
11769
11770/* Override any GCC internal prototype to avoid an error.
11771   Use char because int might match the return type of a GCC
11772   builtin and then its argument prototype would still apply.  */
11773#ifdef __cplusplus
11774extern "C"
11775#endif
11776char dlopen ();
11777int
11778main ()
11779{
11780return dlopen ();
11781  ;
11782  return 0;
11783}
11784_ACEOF
11785if ac_fn_c_try_link "$LINENO"; then :
11786  ac_cv_lib_dl_dlopen=yes
11787else
11788  ac_cv_lib_dl_dlopen=no
11789fi
11790rm -f core conftest.err conftest.$ac_objext \
11791    conftest$ac_exeext conftest.$ac_ext
11792LIBS=$ac_check_lib_save_LIBS
11793fi
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11795$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11796if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11797  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11798else
11799
11800    lt_cv_dlopen=dyld
11801    lt_cv_dlopen_libs=
11802    lt_cv_dlopen_self=yes
11803
11804fi
11805
11806    ;;
11807
11808  tpf*)
11809    # Don't try to run any link tests for TPF.  We know it's impossible
11810    # because TPF is a cross-compiler, and we know how we open DSOs.
11811    lt_cv_dlopen=dlopen
11812    lt_cv_dlopen_libs=
11813    lt_cv_dlopen_self=no
11814    ;;
11815
11816  *)
11817    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11818if test "x$ac_cv_func_shl_load" = xyes; then :
11819  lt_cv_dlopen=shl_load
11820else
11821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11822$as_echo_n "checking for shl_load in -ldld... " >&6; }
11823if ${ac_cv_lib_dld_shl_load+:} false; then :
11824  $as_echo_n "(cached) " >&6
11825else
11826  ac_check_lib_save_LIBS=$LIBS
11827LIBS="-ldld  $LIBS"
11828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829/* end confdefs.h.  */
11830
11831/* Override any GCC internal prototype to avoid an error.
11832   Use char because int might match the return type of a GCC
11833   builtin and then its argument prototype would still apply.  */
11834#ifdef __cplusplus
11835extern "C"
11836#endif
11837char shl_load ();
11838int
11839main ()
11840{
11841return shl_load ();
11842  ;
11843  return 0;
11844}
11845_ACEOF
11846if ac_fn_c_try_link "$LINENO"; then :
11847  ac_cv_lib_dld_shl_load=yes
11848else
11849  ac_cv_lib_dld_shl_load=no
11850fi
11851rm -f core conftest.err conftest.$ac_objext \
11852    conftest$ac_exeext conftest.$ac_ext
11853LIBS=$ac_check_lib_save_LIBS
11854fi
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11856$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11857if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11858  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11859else
11860  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11861if test "x$ac_cv_func_dlopen" = xyes; then :
11862  lt_cv_dlopen=dlopen
11863else
11864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11865$as_echo_n "checking for dlopen in -ldl... " >&6; }
11866if ${ac_cv_lib_dl_dlopen+:} false; then :
11867  $as_echo_n "(cached) " >&6
11868else
11869  ac_check_lib_save_LIBS=$LIBS
11870LIBS="-ldl  $LIBS"
11871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h.  */
11873
11874/* Override any GCC internal prototype to avoid an error.
11875   Use char because int might match the return type of a GCC
11876   builtin and then its argument prototype would still apply.  */
11877#ifdef __cplusplus
11878extern "C"
11879#endif
11880char dlopen ();
11881int
11882main ()
11883{
11884return dlopen ();
11885  ;
11886  return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_link "$LINENO"; then :
11890  ac_cv_lib_dl_dlopen=yes
11891else
11892  ac_cv_lib_dl_dlopen=no
11893fi
11894rm -f core conftest.err conftest.$ac_objext \
11895    conftest$ac_exeext conftest.$ac_ext
11896LIBS=$ac_check_lib_save_LIBS
11897fi
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11899$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11900if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11901  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11902else
11903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11904$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11905if ${ac_cv_lib_svld_dlopen+:} false; then :
11906  $as_echo_n "(cached) " >&6
11907else
11908  ac_check_lib_save_LIBS=$LIBS
11909LIBS="-lsvld  $LIBS"
11910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911/* end confdefs.h.  */
11912
11913/* Override any GCC internal prototype to avoid an error.
11914   Use char because int might match the return type of a GCC
11915   builtin and then its argument prototype would still apply.  */
11916#ifdef __cplusplus
11917extern "C"
11918#endif
11919char dlopen ();
11920int
11921main ()
11922{
11923return dlopen ();
11924  ;
11925  return 0;
11926}
11927_ACEOF
11928if ac_fn_c_try_link "$LINENO"; then :
11929  ac_cv_lib_svld_dlopen=yes
11930else
11931  ac_cv_lib_svld_dlopen=no
11932fi
11933rm -f core conftest.err conftest.$ac_objext \
11934    conftest$ac_exeext conftest.$ac_ext
11935LIBS=$ac_check_lib_save_LIBS
11936fi
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11938$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11939if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11940  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11941else
11942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11943$as_echo_n "checking for dld_link in -ldld... " >&6; }
11944if ${ac_cv_lib_dld_dld_link+:} false; then :
11945  $as_echo_n "(cached) " >&6
11946else
11947  ac_check_lib_save_LIBS=$LIBS
11948LIBS="-ldld  $LIBS"
11949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950/* end confdefs.h.  */
11951
11952/* Override any GCC internal prototype to avoid an error.
11953   Use char because int might match the return type of a GCC
11954   builtin and then its argument prototype would still apply.  */
11955#ifdef __cplusplus
11956extern "C"
11957#endif
11958char dld_link ();
11959int
11960main ()
11961{
11962return dld_link ();
11963  ;
11964  return 0;
11965}
11966_ACEOF
11967if ac_fn_c_try_link "$LINENO"; then :
11968  ac_cv_lib_dld_dld_link=yes
11969else
11970  ac_cv_lib_dld_dld_link=no
11971fi
11972rm -f core conftest.err conftest.$ac_objext \
11973    conftest$ac_exeext conftest.$ac_ext
11974LIBS=$ac_check_lib_save_LIBS
11975fi
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11977$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11978if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11979  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11980fi
11981
11982
11983fi
11984
11985
11986fi
11987
11988
11989fi
11990
11991
11992fi
11993
11994
11995fi
11996
11997    ;;
11998  esac
11999
12000  if test no = "$lt_cv_dlopen"; then
12001    enable_dlopen=no
12002  else
12003    enable_dlopen=yes
12004  fi
12005
12006  case $lt_cv_dlopen in
12007  dlopen)
12008    save_CPPFLAGS=$CPPFLAGS
12009    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12010
12011    save_LDFLAGS=$LDFLAGS
12012    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12013
12014    save_LIBS=$LIBS
12015    LIBS="$lt_cv_dlopen_libs $LIBS"
12016
12017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12018$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12019if ${lt_cv_dlopen_self+:} false; then :
12020  $as_echo_n "(cached) " >&6
12021else
12022  	  if test yes = "$cross_compiling"; then :
12023  lt_cv_dlopen_self=cross
12024else
12025  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12026  lt_status=$lt_dlunknown
12027  cat > conftest.$ac_ext <<_LT_EOF
12028#line $LINENO "configure"
12029#include "confdefs.h"
12030
12031#if HAVE_DLFCN_H
12032#include <dlfcn.h>
12033#endif
12034
12035#include <stdio.h>
12036
12037#ifdef RTLD_GLOBAL
12038#  define LT_DLGLOBAL		RTLD_GLOBAL
12039#else
12040#  ifdef DL_GLOBAL
12041#    define LT_DLGLOBAL		DL_GLOBAL
12042#  else
12043#    define LT_DLGLOBAL		0
12044#  endif
12045#endif
12046
12047/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12048   find out it does not work in some platform. */
12049#ifndef LT_DLLAZY_OR_NOW
12050#  ifdef RTLD_LAZY
12051#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12052#  else
12053#    ifdef DL_LAZY
12054#      define LT_DLLAZY_OR_NOW		DL_LAZY
12055#    else
12056#      ifdef RTLD_NOW
12057#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12058#      else
12059#        ifdef DL_NOW
12060#          define LT_DLLAZY_OR_NOW	DL_NOW
12061#        else
12062#          define LT_DLLAZY_OR_NOW	0
12063#        endif
12064#      endif
12065#    endif
12066#  endif
12067#endif
12068
12069/* When -fvisibility=hidden is used, assume the code has been annotated
12070   correspondingly for the symbols needed.  */
12071#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12072int fnord () __attribute__((visibility("default")));
12073#endif
12074
12075int fnord () { return 42; }
12076int main ()
12077{
12078  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12079  int status = $lt_dlunknown;
12080
12081  if (self)
12082    {
12083      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12084      else
12085        {
12086	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12087          else puts (dlerror ());
12088	}
12089      /* dlclose (self); */
12090    }
12091  else
12092    puts (dlerror ());
12093
12094  return status;
12095}
12096_LT_EOF
12097  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12098  (eval $ac_link) 2>&5
12099  ac_status=$?
12100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12101  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12102    (./conftest; exit; ) >&5 2>/dev/null
12103    lt_status=$?
12104    case x$lt_status in
12105      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12106      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12107      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12108    esac
12109  else :
12110    # compilation failed
12111    lt_cv_dlopen_self=no
12112  fi
12113fi
12114rm -fr conftest*
12115
12116
12117fi
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12119$as_echo "$lt_cv_dlopen_self" >&6; }
12120
12121    if test yes = "$lt_cv_dlopen_self"; then
12122      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12124$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12125if ${lt_cv_dlopen_self_static+:} false; then :
12126  $as_echo_n "(cached) " >&6
12127else
12128  	  if test yes = "$cross_compiling"; then :
12129  lt_cv_dlopen_self_static=cross
12130else
12131  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12132  lt_status=$lt_dlunknown
12133  cat > conftest.$ac_ext <<_LT_EOF
12134#line $LINENO "configure"
12135#include "confdefs.h"
12136
12137#if HAVE_DLFCN_H
12138#include <dlfcn.h>
12139#endif
12140
12141#include <stdio.h>
12142
12143#ifdef RTLD_GLOBAL
12144#  define LT_DLGLOBAL		RTLD_GLOBAL
12145#else
12146#  ifdef DL_GLOBAL
12147#    define LT_DLGLOBAL		DL_GLOBAL
12148#  else
12149#    define LT_DLGLOBAL		0
12150#  endif
12151#endif
12152
12153/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12154   find out it does not work in some platform. */
12155#ifndef LT_DLLAZY_OR_NOW
12156#  ifdef RTLD_LAZY
12157#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12158#  else
12159#    ifdef DL_LAZY
12160#      define LT_DLLAZY_OR_NOW		DL_LAZY
12161#    else
12162#      ifdef RTLD_NOW
12163#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12164#      else
12165#        ifdef DL_NOW
12166#          define LT_DLLAZY_OR_NOW	DL_NOW
12167#        else
12168#          define LT_DLLAZY_OR_NOW	0
12169#        endif
12170#      endif
12171#    endif
12172#  endif
12173#endif
12174
12175/* When -fvisibility=hidden is used, assume the code has been annotated
12176   correspondingly for the symbols needed.  */
12177#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12178int fnord () __attribute__((visibility("default")));
12179#endif
12180
12181int fnord () { return 42; }
12182int main ()
12183{
12184  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12185  int status = $lt_dlunknown;
12186
12187  if (self)
12188    {
12189      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12190      else
12191        {
12192	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12193          else puts (dlerror ());
12194	}
12195      /* dlclose (self); */
12196    }
12197  else
12198    puts (dlerror ());
12199
12200  return status;
12201}
12202_LT_EOF
12203  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12204  (eval $ac_link) 2>&5
12205  ac_status=$?
12206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12207  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12208    (./conftest; exit; ) >&5 2>/dev/null
12209    lt_status=$?
12210    case x$lt_status in
12211      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12212      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12213      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12214    esac
12215  else :
12216    # compilation failed
12217    lt_cv_dlopen_self_static=no
12218  fi
12219fi
12220rm -fr conftest*
12221
12222
12223fi
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12225$as_echo "$lt_cv_dlopen_self_static" >&6; }
12226    fi
12227
12228    CPPFLAGS=$save_CPPFLAGS
12229    LDFLAGS=$save_LDFLAGS
12230    LIBS=$save_LIBS
12231    ;;
12232  esac
12233
12234  case $lt_cv_dlopen_self in
12235  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12236  *) enable_dlopen_self=unknown ;;
12237  esac
12238
12239  case $lt_cv_dlopen_self_static in
12240  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12241  *) enable_dlopen_self_static=unknown ;;
12242  esac
12243fi
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261striplib=
12262old_striplib=
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12264$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12265if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12266  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12267  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12269$as_echo "yes" >&6; }
12270else
12271# FIXME - insert some real tests, host_os isn't really good enough
12272  case $host_os in
12273  darwin*)
12274    if test -n "$STRIP"; then
12275      striplib="$STRIP -x"
12276      old_striplib="$STRIP -S"
12277      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12278$as_echo "yes" >&6; }
12279    else
12280      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
12282    fi
12283    ;;
12284  *)
12285    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286$as_echo "no" >&6; }
12287    ;;
12288  esac
12289fi
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302  # Report what library types will actually be built
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12304$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12306$as_echo "$can_build_shared" >&6; }
12307
12308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12309$as_echo_n "checking whether to build shared libraries... " >&6; }
12310  test no = "$can_build_shared" && enable_shared=no
12311
12312  # On AIX, shared libraries and static libraries use the same namespace, and
12313  # are all built from PIC.
12314  case $host_os in
12315  aix3*)
12316    test yes = "$enable_shared" && enable_static=no
12317    if test -n "$RANLIB"; then
12318      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12319      postinstall_cmds='$RANLIB $lib'
12320    fi
12321    ;;
12322
12323  aix[4-9]*)
12324    if test ia64 != "$host_cpu"; then
12325      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12326      yes,aix,yes) ;;			# shared object as lib.so file only
12327      yes,svr4,*) ;;			# shared object as lib.so archive member only
12328      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12329      esac
12330    fi
12331    ;;
12332  esac
12333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12334$as_echo "$enable_shared" >&6; }
12335
12336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12337$as_echo_n "checking whether to build static libraries... " >&6; }
12338  # Make sure either enable_shared or enable_static is yes.
12339  test yes = "$enable_shared" || enable_static=yes
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12341$as_echo "$enable_static" >&6; }
12342
12343
12344
12345
12346fi
12347ac_ext=c
12348ac_cpp='$CPP $CPPFLAGS'
12349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351ac_compiler_gnu=$ac_cv_c_compiler_gnu
12352
12353CC=$lt_save_CC
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369        ac_config_commands="$ac_config_commands libtool"
12370
12371
12372
12373
12374# Only expand once:
12375
12376
12377
12378# Require xorg-macros minimum of 1.10 for DocBook XML documentation
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12391$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12392if ${ac_cv_prog_cc_c99+:} false; then :
12393  $as_echo_n "(cached) " >&6
12394else
12395  ac_cv_prog_cc_c99=no
12396ac_save_CC=$CC
12397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398/* end confdefs.h.  */
12399#include <stdarg.h>
12400#include <stdbool.h>
12401#include <stdlib.h>
12402#include <wchar.h>
12403#include <stdio.h>
12404
12405// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12406#define debug(...) fprintf (stderr, __VA_ARGS__)
12407#define showlist(...) puts (#__VA_ARGS__)
12408#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12409static void
12410test_varargs_macros (void)
12411{
12412  int x = 1234;
12413  int y = 5678;
12414  debug ("Flag");
12415  debug ("X = %d\n", x);
12416  showlist (The first, second, and third items.);
12417  report (x>y, "x is %d but y is %d", x, y);
12418}
12419
12420// Check long long types.
12421#define BIG64 18446744073709551615ull
12422#define BIG32 4294967295ul
12423#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12424#if !BIG_OK
12425  your preprocessor is broken;
12426#endif
12427#if BIG_OK
12428#else
12429  your preprocessor is broken;
12430#endif
12431static long long int bignum = -9223372036854775807LL;
12432static unsigned long long int ubignum = BIG64;
12433
12434struct incomplete_array
12435{
12436  int datasize;
12437  double data[];
12438};
12439
12440struct named_init {
12441  int number;
12442  const wchar_t *name;
12443  double average;
12444};
12445
12446typedef const char *ccp;
12447
12448static inline int
12449test_restrict (ccp restrict text)
12450{
12451  // See if C++-style comments work.
12452  // Iterate through items via the restricted pointer.
12453  // Also check for declarations in for loops.
12454  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12455    continue;
12456  return 0;
12457}
12458
12459// Check varargs and va_copy.
12460static void
12461test_varargs (const char *format, ...)
12462{
12463  va_list args;
12464  va_start (args, format);
12465  va_list args_copy;
12466  va_copy (args_copy, args);
12467
12468  const char *str;
12469  int number;
12470  float fnumber;
12471
12472  while (*format)
12473    {
12474      switch (*format++)
12475	{
12476	case 's': // string
12477	  str = va_arg (args_copy, const char *);
12478	  break;
12479	case 'd': // int
12480	  number = va_arg (args_copy, int);
12481	  break;
12482	case 'f': // float
12483	  fnumber = va_arg (args_copy, double);
12484	  break;
12485	default:
12486	  break;
12487	}
12488    }
12489  va_end (args_copy);
12490  va_end (args);
12491}
12492
12493int
12494main ()
12495{
12496
12497  // Check bool.
12498  _Bool success = false;
12499
12500  // Check restrict.
12501  if (test_restrict ("String literal") == 0)
12502    success = true;
12503  char *restrict newvar = "Another string";
12504
12505  // Check varargs.
12506  test_varargs ("s, d' f .", "string", 65, 34.234);
12507  test_varargs_macros ();
12508
12509  // Check flexible array members.
12510  struct incomplete_array *ia =
12511    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12512  ia->datasize = 10;
12513  for (int i = 0; i < ia->datasize; ++i)
12514    ia->data[i] = i * 1.234;
12515
12516  // Check named initializers.
12517  struct named_init ni = {
12518    .number = 34,
12519    .name = L"Test wide string",
12520    .average = 543.34343,
12521  };
12522
12523  ni.number = 58;
12524
12525  int dynamic_array[ni.number];
12526  dynamic_array[ni.number - 1] = 543;
12527
12528  // work around unused variable warnings
12529  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12530	  || dynamic_array[ni.number - 1] != 543);
12531
12532  ;
12533  return 0;
12534}
12535_ACEOF
12536for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12537do
12538  CC="$ac_save_CC $ac_arg"
12539  if ac_fn_c_try_compile "$LINENO"; then :
12540  ac_cv_prog_cc_c99=$ac_arg
12541fi
12542rm -f core conftest.err conftest.$ac_objext
12543  test "x$ac_cv_prog_cc_c99" != "xno" && break
12544done
12545rm -f conftest.$ac_ext
12546CC=$ac_save_CC
12547
12548fi
12549# AC_CACHE_VAL
12550case "x$ac_cv_prog_cc_c99" in
12551  x)
12552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12553$as_echo "none needed" >&6; } ;;
12554  xno)
12555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12556$as_echo "unsupported" >&6; } ;;
12557  *)
12558    CC="$CC $ac_cv_prog_cc_c99"
12559    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12560$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12561esac
12562if test "x$ac_cv_prog_cc_c99" != xno; then :
12563
12564fi
12565
12566
12567
12568
12569
12570
12571ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12572if test "x$ac_cv_have_decl___clang__" = xyes; then :
12573  CLANGCC="yes"
12574else
12575  CLANGCC="no"
12576fi
12577
12578ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12579if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12580  INTELCC="yes"
12581else
12582  INTELCC="no"
12583fi
12584
12585ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12586if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12587  SUNCC="yes"
12588else
12589  SUNCC="no"
12590fi
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12601	if test -n "$ac_tool_prefix"; then
12602  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12603set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605$as_echo_n "checking for $ac_word... " >&6; }
12606if ${ac_cv_path_PKG_CONFIG+:} false; then :
12607  $as_echo_n "(cached) " >&6
12608else
12609  case $PKG_CONFIG in
12610  [\\/]* | ?:[\\/]*)
12611  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12612  ;;
12613  *)
12614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615for as_dir in $PATH
12616do
12617  IFS=$as_save_IFS
12618  test -z "$as_dir" && as_dir=.
12619    for ac_exec_ext in '' $ac_executable_extensions; do
12620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12621    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623    break 2
12624  fi
12625done
12626  done
12627IFS=$as_save_IFS
12628
12629  ;;
12630esac
12631fi
12632PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12633if test -n "$PKG_CONFIG"; then
12634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12635$as_echo "$PKG_CONFIG" >&6; }
12636else
12637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638$as_echo "no" >&6; }
12639fi
12640
12641
12642fi
12643if test -z "$ac_cv_path_PKG_CONFIG"; then
12644  ac_pt_PKG_CONFIG=$PKG_CONFIG
12645  # Extract the first word of "pkg-config", so it can be a program name with args.
12646set dummy pkg-config; ac_word=$2
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648$as_echo_n "checking for $ac_word... " >&6; }
12649if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12650  $as_echo_n "(cached) " >&6
12651else
12652  case $ac_pt_PKG_CONFIG in
12653  [\\/]* | ?:[\\/]*)
12654  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12655  ;;
12656  *)
12657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12658for as_dir in $PATH
12659do
12660  IFS=$as_save_IFS
12661  test -z "$as_dir" && as_dir=.
12662    for ac_exec_ext in '' $ac_executable_extensions; do
12663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12664    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12666    break 2
12667  fi
12668done
12669  done
12670IFS=$as_save_IFS
12671
12672  ;;
12673esac
12674fi
12675ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12676if test -n "$ac_pt_PKG_CONFIG"; then
12677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12678$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12679else
12680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
12682fi
12683
12684  if test "x$ac_pt_PKG_CONFIG" = x; then
12685    PKG_CONFIG=""
12686  else
12687    case $cross_compiling:$ac_tool_warned in
12688yes:)
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12691ac_tool_warned=yes ;;
12692esac
12693    PKG_CONFIG=$ac_pt_PKG_CONFIG
12694  fi
12695else
12696  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12697fi
12698
12699fi
12700if test -n "$PKG_CONFIG"; then
12701	_pkg_min_version=0.9.0
12702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12703$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12704	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12705		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12706$as_echo "yes" >&6; }
12707	else
12708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709$as_echo "no" >&6; }
12710		PKG_CONFIG=""
12711	fi
12712fi
12713
12714
12715
12716
12717
12718# Check whether --enable-selective-werror was given.
12719if test "${enable_selective_werror+set}" = set; then :
12720  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12721else
12722  SELECTIVE_WERROR=yes
12723fi
12724
12725
12726
12727
12728
12729# -v is too short to test reliably with XORG_TESTSET_CFLAG
12730if test "x$SUNCC" = "xyes"; then
12731    BASE_CFLAGS="-v"
12732else
12733    BASE_CFLAGS=""
12734fi
12735
12736# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750xorg_testset_save_CFLAGS="$CFLAGS"
12751
12752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12753	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12757  $as_echo_n "(cached) " >&6
12758else
12759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760/* end confdefs.h.  */
12761int i;
12762_ACEOF
12763if ac_fn_c_try_compile "$LINENO"; then :
12764  xorg_cv_cc_flag_unknown_warning_option=yes
12765else
12766  xorg_cv_cc_flag_unknown_warning_option=no
12767fi
12768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769fi
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12773	CFLAGS="$xorg_testset_save_CFLAGS"
12774fi
12775
12776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12779	fi
12780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12783if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12792else
12793  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12800	CFLAGS="$xorg_testset_save_CFLAGS"
12801fi
12802
12803found="no"
12804
12805	if test $found = "no" ; then
12806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12808		fi
12809
12810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12812		fi
12813
12814		CFLAGS="$CFLAGS -Wall"
12815
12816		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12817$as_echo_n "checking if $CC supports -Wall... " >&6; }
12818		cacheid=xorg_cv_cc_flag__Wall
12819		if eval \${$cacheid+:} false; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823/* end confdefs.h.  */
12824int i;
12825int
12826main ()
12827{
12828
12829  ;
12830  return 0;
12831}
12832_ACEOF
12833if ac_fn_c_try_link "$LINENO"; then :
12834  eval $cacheid=yes
12835else
12836  eval $cacheid=no
12837fi
12838rm -f core conftest.err conftest.$ac_objext \
12839    conftest$ac_exeext conftest.$ac_ext
12840fi
12841
12842
12843		CFLAGS="$xorg_testset_save_CFLAGS"
12844
12845		eval supported=\$$cacheid
12846		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12847$as_echo "$supported" >&6; }
12848		if test "$supported" = "yes" ; then
12849			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12850			found="yes"
12851		fi
12852	fi
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868xorg_testset_save_CFLAGS="$CFLAGS"
12869
12870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12875  $as_echo_n "(cached) " >&6
12876else
12877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878/* end confdefs.h.  */
12879int i;
12880_ACEOF
12881if ac_fn_c_try_compile "$LINENO"; then :
12882  xorg_cv_cc_flag_unknown_warning_option=yes
12883else
12884  xorg_cv_cc_flag_unknown_warning_option=no
12885fi
12886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887fi
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12891	CFLAGS="$xorg_testset_save_CFLAGS"
12892fi
12893
12894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12897	fi
12898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12901if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12910else
12911  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12918	CFLAGS="$xorg_testset_save_CFLAGS"
12919fi
12920
12921found="no"
12922
12923	if test $found = "no" ; then
12924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12926		fi
12927
12928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12930		fi
12931
12932		CFLAGS="$CFLAGS -Wpointer-arith"
12933
12934		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12935$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12936		cacheid=xorg_cv_cc_flag__Wpointer_arith
12937		if eval \${$cacheid+:} false; then :
12938  $as_echo_n "(cached) " >&6
12939else
12940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941/* end confdefs.h.  */
12942int i;
12943int
12944main ()
12945{
12946
12947  ;
12948  return 0;
12949}
12950_ACEOF
12951if ac_fn_c_try_link "$LINENO"; then :
12952  eval $cacheid=yes
12953else
12954  eval $cacheid=no
12955fi
12956rm -f core conftest.err conftest.$ac_objext \
12957    conftest$ac_exeext conftest.$ac_ext
12958fi
12959
12960
12961		CFLAGS="$xorg_testset_save_CFLAGS"
12962
12963		eval supported=\$$cacheid
12964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12965$as_echo "$supported" >&6; }
12966		if test "$supported" = "yes" ; then
12967			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12968			found="yes"
12969		fi
12970	fi
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986xorg_testset_save_CFLAGS="$CFLAGS"
12987
12988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12993  $as_echo_n "(cached) " >&6
12994else
12995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996/* end confdefs.h.  */
12997int i;
12998_ACEOF
12999if ac_fn_c_try_compile "$LINENO"; then :
13000  xorg_cv_cc_flag_unknown_warning_option=yes
13001else
13002  xorg_cv_cc_flag_unknown_warning_option=no
13003fi
13004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005fi
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13009	CFLAGS="$xorg_testset_save_CFLAGS"
13010fi
13011
13012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13015	fi
13016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13020  $as_echo_n "(cached) " >&6
13021else
13022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023/* end confdefs.h.  */
13024int i;
13025_ACEOF
13026if ac_fn_c_try_compile "$LINENO"; then :
13027  xorg_cv_cc_flag_unused_command_line_argument=yes
13028else
13029  xorg_cv_cc_flag_unused_command_line_argument=no
13030fi
13031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13032fi
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13036	CFLAGS="$xorg_testset_save_CFLAGS"
13037fi
13038
13039found="no"
13040
13041	if test $found = "no" ; then
13042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13044		fi
13045
13046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13048		fi
13049
13050		CFLAGS="$CFLAGS -Wmissing-declarations"
13051
13052		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13053$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13054		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13055		if eval \${$cacheid+:} false; then :
13056  $as_echo_n "(cached) " >&6
13057else
13058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059/* end confdefs.h.  */
13060int i;
13061int
13062main ()
13063{
13064
13065  ;
13066  return 0;
13067}
13068_ACEOF
13069if ac_fn_c_try_link "$LINENO"; then :
13070  eval $cacheid=yes
13071else
13072  eval $cacheid=no
13073fi
13074rm -f core conftest.err conftest.$ac_objext \
13075    conftest$ac_exeext conftest.$ac_ext
13076fi
13077
13078
13079		CFLAGS="$xorg_testset_save_CFLAGS"
13080
13081		eval supported=\$$cacheid
13082		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13083$as_echo "$supported" >&6; }
13084		if test "$supported" = "yes" ; then
13085			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13086			found="yes"
13087		fi
13088	fi
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104xorg_testset_save_CFLAGS="$CFLAGS"
13105
13106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13111  $as_echo_n "(cached) " >&6
13112else
13113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114/* end confdefs.h.  */
13115int i;
13116_ACEOF
13117if ac_fn_c_try_compile "$LINENO"; then :
13118  xorg_cv_cc_flag_unknown_warning_option=yes
13119else
13120  xorg_cv_cc_flag_unknown_warning_option=no
13121fi
13122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13123fi
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13127	CFLAGS="$xorg_testset_save_CFLAGS"
13128fi
13129
13130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13133	fi
13134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13138  $as_echo_n "(cached) " >&6
13139else
13140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141/* end confdefs.h.  */
13142int i;
13143_ACEOF
13144if ac_fn_c_try_compile "$LINENO"; then :
13145  xorg_cv_cc_flag_unused_command_line_argument=yes
13146else
13147  xorg_cv_cc_flag_unused_command_line_argument=no
13148fi
13149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150fi
13151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13154	CFLAGS="$xorg_testset_save_CFLAGS"
13155fi
13156
13157found="no"
13158
13159	if test $found = "no" ; then
13160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13162		fi
13163
13164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13166		fi
13167
13168		CFLAGS="$CFLAGS -Wformat=2"
13169
13170		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13171$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13172		cacheid=xorg_cv_cc_flag__Wformat_2
13173		if eval \${$cacheid+:} false; then :
13174  $as_echo_n "(cached) " >&6
13175else
13176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177/* end confdefs.h.  */
13178int i;
13179int
13180main ()
13181{
13182
13183  ;
13184  return 0;
13185}
13186_ACEOF
13187if ac_fn_c_try_link "$LINENO"; then :
13188  eval $cacheid=yes
13189else
13190  eval $cacheid=no
13191fi
13192rm -f core conftest.err conftest.$ac_objext \
13193    conftest$ac_exeext conftest.$ac_ext
13194fi
13195
13196
13197		CFLAGS="$xorg_testset_save_CFLAGS"
13198
13199		eval supported=\$$cacheid
13200		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13201$as_echo "$supported" >&6; }
13202		if test "$supported" = "yes" ; then
13203			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13204			found="yes"
13205		fi
13206	fi
13207
13208	if test $found = "no" ; then
13209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13211		fi
13212
13213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13215		fi
13216
13217		CFLAGS="$CFLAGS -Wformat"
13218
13219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13220$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13221		cacheid=xorg_cv_cc_flag__Wformat
13222		if eval \${$cacheid+:} false; then :
13223  $as_echo_n "(cached) " >&6
13224else
13225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226/* end confdefs.h.  */
13227int i;
13228int
13229main ()
13230{
13231
13232  ;
13233  return 0;
13234}
13235_ACEOF
13236if ac_fn_c_try_link "$LINENO"; then :
13237  eval $cacheid=yes
13238else
13239  eval $cacheid=no
13240fi
13241rm -f core conftest.err conftest.$ac_objext \
13242    conftest$ac_exeext conftest.$ac_ext
13243fi
13244
13245
13246		CFLAGS="$xorg_testset_save_CFLAGS"
13247
13248		eval supported=\$$cacheid
13249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13250$as_echo "$supported" >&6; }
13251		if test "$supported" = "yes" ; then
13252			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13253			found="yes"
13254		fi
13255	fi
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273xorg_testset_save_CFLAGS="$CFLAGS"
13274
13275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13280  $as_echo_n "(cached) " >&6
13281else
13282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283/* end confdefs.h.  */
13284int i;
13285_ACEOF
13286if ac_fn_c_try_compile "$LINENO"; then :
13287  xorg_cv_cc_flag_unknown_warning_option=yes
13288else
13289  xorg_cv_cc_flag_unknown_warning_option=no
13290fi
13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292fi
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13296	CFLAGS="$xorg_testset_save_CFLAGS"
13297fi
13298
13299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13302	fi
13303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13306if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
13315else
13316  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
13321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13323	CFLAGS="$xorg_testset_save_CFLAGS"
13324fi
13325
13326found="no"
13327
13328	if test $found = "no" ; then
13329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13331		fi
13332
13333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13335		fi
13336
13337		CFLAGS="$CFLAGS -Wstrict-prototypes"
13338
13339		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13340$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13341		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13342		if eval \${$cacheid+:} false; then :
13343  $as_echo_n "(cached) " >&6
13344else
13345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346/* end confdefs.h.  */
13347int i;
13348int
13349main ()
13350{
13351
13352  ;
13353  return 0;
13354}
13355_ACEOF
13356if ac_fn_c_try_link "$LINENO"; then :
13357  eval $cacheid=yes
13358else
13359  eval $cacheid=no
13360fi
13361rm -f core conftest.err conftest.$ac_objext \
13362    conftest$ac_exeext conftest.$ac_ext
13363fi
13364
13365
13366		CFLAGS="$xorg_testset_save_CFLAGS"
13367
13368		eval supported=\$$cacheid
13369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13370$as_echo "$supported" >&6; }
13371		if test "$supported" = "yes" ; then
13372			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13373			found="yes"
13374		fi
13375	fi
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391xorg_testset_save_CFLAGS="$CFLAGS"
13392
13393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13394	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13398  $as_echo_n "(cached) " >&6
13399else
13400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401/* end confdefs.h.  */
13402int i;
13403_ACEOF
13404if ac_fn_c_try_compile "$LINENO"; then :
13405  xorg_cv_cc_flag_unknown_warning_option=yes
13406else
13407  xorg_cv_cc_flag_unknown_warning_option=no
13408fi
13409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410fi
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13414	CFLAGS="$xorg_testset_save_CFLAGS"
13415fi
13416
13417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13420	fi
13421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13424if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
13433else
13434  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
13439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13441	CFLAGS="$xorg_testset_save_CFLAGS"
13442fi
13443
13444found="no"
13445
13446	if test $found = "no" ; then
13447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13449		fi
13450
13451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13453		fi
13454
13455		CFLAGS="$CFLAGS -Wmissing-prototypes"
13456
13457		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13458$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13459		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13460		if eval \${$cacheid+:} false; then :
13461  $as_echo_n "(cached) " >&6
13462else
13463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464/* end confdefs.h.  */
13465int i;
13466int
13467main ()
13468{
13469
13470  ;
13471  return 0;
13472}
13473_ACEOF
13474if ac_fn_c_try_link "$LINENO"; then :
13475  eval $cacheid=yes
13476else
13477  eval $cacheid=no
13478fi
13479rm -f core conftest.err conftest.$ac_objext \
13480    conftest$ac_exeext conftest.$ac_ext
13481fi
13482
13483
13484		CFLAGS="$xorg_testset_save_CFLAGS"
13485
13486		eval supported=\$$cacheid
13487		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13488$as_echo "$supported" >&6; }
13489		if test "$supported" = "yes" ; then
13490			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13491			found="yes"
13492		fi
13493	fi
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509xorg_testset_save_CFLAGS="$CFLAGS"
13510
13511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13512	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13513	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13516  $as_echo_n "(cached) " >&6
13517else
13518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519/* end confdefs.h.  */
13520int i;
13521_ACEOF
13522if ac_fn_c_try_compile "$LINENO"; then :
13523  xorg_cv_cc_flag_unknown_warning_option=yes
13524else
13525  xorg_cv_cc_flag_unknown_warning_option=no
13526fi
13527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528fi
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13531	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13532	CFLAGS="$xorg_testset_save_CFLAGS"
13533fi
13534
13535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13536	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13537		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13538	fi
13539	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13542if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
13551else
13552  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
13557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13558	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13559	CFLAGS="$xorg_testset_save_CFLAGS"
13560fi
13561
13562found="no"
13563
13564	if test $found = "no" ; then
13565		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13567		fi
13568
13569		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13571		fi
13572
13573		CFLAGS="$CFLAGS -Wnested-externs"
13574
13575		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13576$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13577		cacheid=xorg_cv_cc_flag__Wnested_externs
13578		if eval \${$cacheid+:} false; then :
13579  $as_echo_n "(cached) " >&6
13580else
13581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582/* end confdefs.h.  */
13583int i;
13584int
13585main ()
13586{
13587
13588  ;
13589  return 0;
13590}
13591_ACEOF
13592if ac_fn_c_try_link "$LINENO"; then :
13593  eval $cacheid=yes
13594else
13595  eval $cacheid=no
13596fi
13597rm -f core conftest.err conftest.$ac_objext \
13598    conftest$ac_exeext conftest.$ac_ext
13599fi
13600
13601
13602		CFLAGS="$xorg_testset_save_CFLAGS"
13603
13604		eval supported=\$$cacheid
13605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13606$as_echo "$supported" >&6; }
13607		if test "$supported" = "yes" ; then
13608			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13609			found="yes"
13610		fi
13611	fi
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627xorg_testset_save_CFLAGS="$CFLAGS"
13628
13629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13630	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13634  $as_echo_n "(cached) " >&6
13635else
13636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637/* end confdefs.h.  */
13638int i;
13639_ACEOF
13640if ac_fn_c_try_compile "$LINENO"; then :
13641  xorg_cv_cc_flag_unknown_warning_option=yes
13642else
13643  xorg_cv_cc_flag_unknown_warning_option=no
13644fi
13645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646fi
13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13650	CFLAGS="$xorg_testset_save_CFLAGS"
13651fi
13652
13653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13656	fi
13657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13661  $as_echo_n "(cached) " >&6
13662else
13663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664/* end confdefs.h.  */
13665int i;
13666_ACEOF
13667if ac_fn_c_try_compile "$LINENO"; then :
13668  xorg_cv_cc_flag_unused_command_line_argument=yes
13669else
13670  xorg_cv_cc_flag_unused_command_line_argument=no
13671fi
13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673fi
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13677	CFLAGS="$xorg_testset_save_CFLAGS"
13678fi
13679
13680found="no"
13681
13682	if test $found = "no" ; then
13683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13685		fi
13686
13687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13689		fi
13690
13691		CFLAGS="$CFLAGS -Wbad-function-cast"
13692
13693		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13694$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13695		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13696		if eval \${$cacheid+:} false; then :
13697  $as_echo_n "(cached) " >&6
13698else
13699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700/* end confdefs.h.  */
13701int i;
13702int
13703main ()
13704{
13705
13706  ;
13707  return 0;
13708}
13709_ACEOF
13710if ac_fn_c_try_link "$LINENO"; then :
13711  eval $cacheid=yes
13712else
13713  eval $cacheid=no
13714fi
13715rm -f core conftest.err conftest.$ac_objext \
13716    conftest$ac_exeext conftest.$ac_ext
13717fi
13718
13719
13720		CFLAGS="$xorg_testset_save_CFLAGS"
13721
13722		eval supported=\$$cacheid
13723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13724$as_echo "$supported" >&6; }
13725		if test "$supported" = "yes" ; then
13726			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13727			found="yes"
13728		fi
13729	fi
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745xorg_testset_save_CFLAGS="$CFLAGS"
13746
13747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13752  $as_echo_n "(cached) " >&6
13753else
13754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755/* end confdefs.h.  */
13756int i;
13757_ACEOF
13758if ac_fn_c_try_compile "$LINENO"; then :
13759  xorg_cv_cc_flag_unknown_warning_option=yes
13760else
13761  xorg_cv_cc_flag_unknown_warning_option=no
13762fi
13763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764fi
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13768	CFLAGS="$xorg_testset_save_CFLAGS"
13769fi
13770
13771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13774	fi
13775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13779  $as_echo_n "(cached) " >&6
13780else
13781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782/* end confdefs.h.  */
13783int i;
13784_ACEOF
13785if ac_fn_c_try_compile "$LINENO"; then :
13786  xorg_cv_cc_flag_unused_command_line_argument=yes
13787else
13788  xorg_cv_cc_flag_unused_command_line_argument=no
13789fi
13790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13791fi
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13795	CFLAGS="$xorg_testset_save_CFLAGS"
13796fi
13797
13798found="no"
13799
13800	if test $found = "no" ; then
13801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13803		fi
13804
13805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13807		fi
13808
13809		CFLAGS="$CFLAGS -Wold-style-definition"
13810
13811		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13812$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13813		cacheid=xorg_cv_cc_flag__Wold_style_definition
13814		if eval \${$cacheid+:} false; then :
13815  $as_echo_n "(cached) " >&6
13816else
13817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818/* end confdefs.h.  */
13819int i;
13820int
13821main ()
13822{
13823
13824  ;
13825  return 0;
13826}
13827_ACEOF
13828if ac_fn_c_try_link "$LINENO"; then :
13829  eval $cacheid=yes
13830else
13831  eval $cacheid=no
13832fi
13833rm -f core conftest.err conftest.$ac_objext \
13834    conftest$ac_exeext conftest.$ac_ext
13835fi
13836
13837
13838		CFLAGS="$xorg_testset_save_CFLAGS"
13839
13840		eval supported=\$$cacheid
13841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13842$as_echo "$supported" >&6; }
13843		if test "$supported" = "yes" ; then
13844			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13845			found="yes"
13846		fi
13847	fi
13848
13849	if test $found = "no" ; then
13850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13852		fi
13853
13854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13856		fi
13857
13858		CFLAGS="$CFLAGS -fd"
13859
13860		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13861$as_echo_n "checking if $CC supports -fd... " >&6; }
13862		cacheid=xorg_cv_cc_flag__fd
13863		if eval \${$cacheid+:} false; then :
13864  $as_echo_n "(cached) " >&6
13865else
13866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867/* end confdefs.h.  */
13868int i;
13869int
13870main ()
13871{
13872
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877if ac_fn_c_try_link "$LINENO"; then :
13878  eval $cacheid=yes
13879else
13880  eval $cacheid=no
13881fi
13882rm -f core conftest.err conftest.$ac_objext \
13883    conftest$ac_exeext conftest.$ac_ext
13884fi
13885
13886
13887		CFLAGS="$xorg_testset_save_CFLAGS"
13888
13889		eval supported=\$$cacheid
13890		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13891$as_echo "$supported" >&6; }
13892		if test "$supported" = "yes" ; then
13893			BASE_CFLAGS="$BASE_CFLAGS -fd"
13894			found="yes"
13895		fi
13896	fi
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912xorg_testset_save_CFLAGS="$CFLAGS"
13913
13914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13919  $as_echo_n "(cached) " >&6
13920else
13921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922/* end confdefs.h.  */
13923int i;
13924_ACEOF
13925if ac_fn_c_try_compile "$LINENO"; then :
13926  xorg_cv_cc_flag_unknown_warning_option=yes
13927else
13928  xorg_cv_cc_flag_unknown_warning_option=no
13929fi
13930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931fi
13932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13935	CFLAGS="$xorg_testset_save_CFLAGS"
13936fi
13937
13938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13941	fi
13942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13946  $as_echo_n "(cached) " >&6
13947else
13948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949/* end confdefs.h.  */
13950int i;
13951_ACEOF
13952if ac_fn_c_try_compile "$LINENO"; then :
13953  xorg_cv_cc_flag_unused_command_line_argument=yes
13954else
13955  xorg_cv_cc_flag_unused_command_line_argument=no
13956fi
13957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958fi
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13961	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13962	CFLAGS="$xorg_testset_save_CFLAGS"
13963fi
13964
13965found="no"
13966
13967	if test $found = "no" ; then
13968		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13970		fi
13971
13972		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13974		fi
13975
13976		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13977
13978		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13979$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13980		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13981		if eval \${$cacheid+:} false; then :
13982  $as_echo_n "(cached) " >&6
13983else
13984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985/* end confdefs.h.  */
13986int i;
13987int
13988main ()
13989{
13990
13991  ;
13992  return 0;
13993}
13994_ACEOF
13995if ac_fn_c_try_link "$LINENO"; then :
13996  eval $cacheid=yes
13997else
13998  eval $cacheid=no
13999fi
14000rm -f core conftest.err conftest.$ac_objext \
14001    conftest$ac_exeext conftest.$ac_ext
14002fi
14003
14004
14005		CFLAGS="$xorg_testset_save_CFLAGS"
14006
14007		eval supported=\$$cacheid
14008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14009$as_echo "$supported" >&6; }
14010		if test "$supported" = "yes" ; then
14011			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14012			found="yes"
14013		fi
14014	fi
14015
14016
14017
14018
14019
14020# This chunk adds additional warnings that could catch undesired effects.
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034xorg_testset_save_CFLAGS="$CFLAGS"
14035
14036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14041  $as_echo_n "(cached) " >&6
14042else
14043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044/* end confdefs.h.  */
14045int i;
14046_ACEOF
14047if ac_fn_c_try_compile "$LINENO"; then :
14048  xorg_cv_cc_flag_unknown_warning_option=yes
14049else
14050  xorg_cv_cc_flag_unknown_warning_option=no
14051fi
14052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053fi
14054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14057	CFLAGS="$xorg_testset_save_CFLAGS"
14058fi
14059
14060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14063	fi
14064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14067if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14076else
14077  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14084	CFLAGS="$xorg_testset_save_CFLAGS"
14085fi
14086
14087found="no"
14088
14089	if test $found = "no" ; then
14090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14092		fi
14093
14094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14096		fi
14097
14098		CFLAGS="$CFLAGS -Wunused"
14099
14100		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14101$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14102		cacheid=xorg_cv_cc_flag__Wunused
14103		if eval \${$cacheid+:} false; then :
14104  $as_echo_n "(cached) " >&6
14105else
14106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107/* end confdefs.h.  */
14108int i;
14109int
14110main ()
14111{
14112
14113  ;
14114  return 0;
14115}
14116_ACEOF
14117if ac_fn_c_try_link "$LINENO"; then :
14118  eval $cacheid=yes
14119else
14120  eval $cacheid=no
14121fi
14122rm -f core conftest.err conftest.$ac_objext \
14123    conftest$ac_exeext conftest.$ac_ext
14124fi
14125
14126
14127		CFLAGS="$xorg_testset_save_CFLAGS"
14128
14129		eval supported=\$$cacheid
14130		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14131$as_echo "$supported" >&6; }
14132		if test "$supported" = "yes" ; then
14133			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14134			found="yes"
14135		fi
14136	fi
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152xorg_testset_save_CFLAGS="$CFLAGS"
14153
14154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14159  $as_echo_n "(cached) " >&6
14160else
14161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162/* end confdefs.h.  */
14163int i;
14164_ACEOF
14165if ac_fn_c_try_compile "$LINENO"; then :
14166  xorg_cv_cc_flag_unknown_warning_option=yes
14167else
14168  xorg_cv_cc_flag_unknown_warning_option=no
14169fi
14170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171fi
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14175	CFLAGS="$xorg_testset_save_CFLAGS"
14176fi
14177
14178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14181	fi
14182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14185if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14194else
14195  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14201	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14202	CFLAGS="$xorg_testset_save_CFLAGS"
14203fi
14204
14205found="no"
14206
14207	if test $found = "no" ; then
14208		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14210		fi
14211
14212		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14214		fi
14215
14216		CFLAGS="$CFLAGS -Wuninitialized"
14217
14218		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14219$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14220		cacheid=xorg_cv_cc_flag__Wuninitialized
14221		if eval \${$cacheid+:} false; then :
14222  $as_echo_n "(cached) " >&6
14223else
14224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225/* end confdefs.h.  */
14226int i;
14227int
14228main ()
14229{
14230
14231  ;
14232  return 0;
14233}
14234_ACEOF
14235if ac_fn_c_try_link "$LINENO"; then :
14236  eval $cacheid=yes
14237else
14238  eval $cacheid=no
14239fi
14240rm -f core conftest.err conftest.$ac_objext \
14241    conftest$ac_exeext conftest.$ac_ext
14242fi
14243
14244
14245		CFLAGS="$xorg_testset_save_CFLAGS"
14246
14247		eval supported=\$$cacheid
14248		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14249$as_echo "$supported" >&6; }
14250		if test "$supported" = "yes" ; then
14251			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14252			found="yes"
14253		fi
14254	fi
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270xorg_testset_save_CFLAGS="$CFLAGS"
14271
14272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14277  $as_echo_n "(cached) " >&6
14278else
14279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280/* end confdefs.h.  */
14281int i;
14282_ACEOF
14283if ac_fn_c_try_compile "$LINENO"; then :
14284  xorg_cv_cc_flag_unknown_warning_option=yes
14285else
14286  xorg_cv_cc_flag_unknown_warning_option=no
14287fi
14288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289fi
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14293	CFLAGS="$xorg_testset_save_CFLAGS"
14294fi
14295
14296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14299	fi
14300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14303if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14312else
14313  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14320	CFLAGS="$xorg_testset_save_CFLAGS"
14321fi
14322
14323found="no"
14324
14325	if test $found = "no" ; then
14326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14328		fi
14329
14330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14332		fi
14333
14334		CFLAGS="$CFLAGS -Wshadow"
14335
14336		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14337$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14338		cacheid=xorg_cv_cc_flag__Wshadow
14339		if eval \${$cacheid+:} false; then :
14340  $as_echo_n "(cached) " >&6
14341else
14342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343/* end confdefs.h.  */
14344int i;
14345int
14346main ()
14347{
14348
14349  ;
14350  return 0;
14351}
14352_ACEOF
14353if ac_fn_c_try_link "$LINENO"; then :
14354  eval $cacheid=yes
14355else
14356  eval $cacheid=no
14357fi
14358rm -f core conftest.err conftest.$ac_objext \
14359    conftest$ac_exeext conftest.$ac_ext
14360fi
14361
14362
14363		CFLAGS="$xorg_testset_save_CFLAGS"
14364
14365		eval supported=\$$cacheid
14366		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14367$as_echo "$supported" >&6; }
14368		if test "$supported" = "yes" ; then
14369			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14370			found="yes"
14371		fi
14372	fi
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388xorg_testset_save_CFLAGS="$CFLAGS"
14389
14390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14395  $as_echo_n "(cached) " >&6
14396else
14397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398/* end confdefs.h.  */
14399int i;
14400_ACEOF
14401if ac_fn_c_try_compile "$LINENO"; then :
14402  xorg_cv_cc_flag_unknown_warning_option=yes
14403else
14404  xorg_cv_cc_flag_unknown_warning_option=no
14405fi
14406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407fi
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14411	CFLAGS="$xorg_testset_save_CFLAGS"
14412fi
14413
14414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14417	fi
14418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14421if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14430else
14431  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14438	CFLAGS="$xorg_testset_save_CFLAGS"
14439fi
14440
14441found="no"
14442
14443	if test $found = "no" ; then
14444		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14446		fi
14447
14448		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14450		fi
14451
14452		CFLAGS="$CFLAGS -Wmissing-noreturn"
14453
14454		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14455$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14456		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14457		if eval \${$cacheid+:} false; then :
14458  $as_echo_n "(cached) " >&6
14459else
14460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461/* end confdefs.h.  */
14462int i;
14463int
14464main ()
14465{
14466
14467  ;
14468  return 0;
14469}
14470_ACEOF
14471if ac_fn_c_try_link "$LINENO"; then :
14472  eval $cacheid=yes
14473else
14474  eval $cacheid=no
14475fi
14476rm -f core conftest.err conftest.$ac_objext \
14477    conftest$ac_exeext conftest.$ac_ext
14478fi
14479
14480
14481		CFLAGS="$xorg_testset_save_CFLAGS"
14482
14483		eval supported=\$$cacheid
14484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14485$as_echo "$supported" >&6; }
14486		if test "$supported" = "yes" ; then
14487			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14488			found="yes"
14489		fi
14490	fi
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506xorg_testset_save_CFLAGS="$CFLAGS"
14507
14508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14513  $as_echo_n "(cached) " >&6
14514else
14515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516/* end confdefs.h.  */
14517int i;
14518_ACEOF
14519if ac_fn_c_try_compile "$LINENO"; then :
14520  xorg_cv_cc_flag_unknown_warning_option=yes
14521else
14522  xorg_cv_cc_flag_unknown_warning_option=no
14523fi
14524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525fi
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14528	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14529	CFLAGS="$xorg_testset_save_CFLAGS"
14530fi
14531
14532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14533	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14534		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14535	fi
14536	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14539if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14548else
14549  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14555	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14556	CFLAGS="$xorg_testset_save_CFLAGS"
14557fi
14558
14559found="no"
14560
14561	if test $found = "no" ; then
14562		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14563			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14564		fi
14565
14566		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14567			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14568		fi
14569
14570		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14571
14572		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14573$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14574		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14575		if eval \${$cacheid+:} false; then :
14576  $as_echo_n "(cached) " >&6
14577else
14578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579/* end confdefs.h.  */
14580int i;
14581int
14582main ()
14583{
14584
14585  ;
14586  return 0;
14587}
14588_ACEOF
14589if ac_fn_c_try_link "$LINENO"; then :
14590  eval $cacheid=yes
14591else
14592  eval $cacheid=no
14593fi
14594rm -f core conftest.err conftest.$ac_objext \
14595    conftest$ac_exeext conftest.$ac_ext
14596fi
14597
14598
14599		CFLAGS="$xorg_testset_save_CFLAGS"
14600
14601		eval supported=\$$cacheid
14602		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14603$as_echo "$supported" >&6; }
14604		if test "$supported" = "yes" ; then
14605			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14606			found="yes"
14607		fi
14608	fi
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624xorg_testset_save_CFLAGS="$CFLAGS"
14625
14626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14631  $as_echo_n "(cached) " >&6
14632else
14633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634/* end confdefs.h.  */
14635int i;
14636_ACEOF
14637if ac_fn_c_try_compile "$LINENO"; then :
14638  xorg_cv_cc_flag_unknown_warning_option=yes
14639else
14640  xorg_cv_cc_flag_unknown_warning_option=no
14641fi
14642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643fi
14644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14647	CFLAGS="$xorg_testset_save_CFLAGS"
14648fi
14649
14650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14653	fi
14654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14658  $as_echo_n "(cached) " >&6
14659else
14660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661/* end confdefs.h.  */
14662int i;
14663_ACEOF
14664if ac_fn_c_try_compile "$LINENO"; then :
14665  xorg_cv_cc_flag_unused_command_line_argument=yes
14666else
14667  xorg_cv_cc_flag_unused_command_line_argument=no
14668fi
14669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670fi
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14674	CFLAGS="$xorg_testset_save_CFLAGS"
14675fi
14676
14677found="no"
14678
14679	if test $found = "no" ; then
14680		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14682		fi
14683
14684		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14686		fi
14687
14688		CFLAGS="$CFLAGS -Wredundant-decls"
14689
14690		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14691$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14692		cacheid=xorg_cv_cc_flag__Wredundant_decls
14693		if eval \${$cacheid+:} false; then :
14694  $as_echo_n "(cached) " >&6
14695else
14696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697/* end confdefs.h.  */
14698int i;
14699int
14700main ()
14701{
14702
14703  ;
14704  return 0;
14705}
14706_ACEOF
14707if ac_fn_c_try_link "$LINENO"; then :
14708  eval $cacheid=yes
14709else
14710  eval $cacheid=no
14711fi
14712rm -f core conftest.err conftest.$ac_objext \
14713    conftest$ac_exeext conftest.$ac_ext
14714fi
14715
14716
14717		CFLAGS="$xorg_testset_save_CFLAGS"
14718
14719		eval supported=\$$cacheid
14720		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14721$as_echo "$supported" >&6; }
14722		if test "$supported" = "yes" ; then
14723			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14724			found="yes"
14725		fi
14726	fi
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742xorg_testset_save_CFLAGS="$CFLAGS"
14743
14744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14749  $as_echo_n "(cached) " >&6
14750else
14751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752/* end confdefs.h.  */
14753int i;
14754_ACEOF
14755if ac_fn_c_try_compile "$LINENO"; then :
14756  xorg_cv_cc_flag_unknown_warning_option=yes
14757else
14758  xorg_cv_cc_flag_unknown_warning_option=no
14759fi
14760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761fi
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14765	CFLAGS="$xorg_testset_save_CFLAGS"
14766fi
14767
14768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14771	fi
14772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14776  $as_echo_n "(cached) " >&6
14777else
14778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779/* end confdefs.h.  */
14780int i;
14781_ACEOF
14782if ac_fn_c_try_compile "$LINENO"; then :
14783  xorg_cv_cc_flag_unused_command_line_argument=yes
14784else
14785  xorg_cv_cc_flag_unused_command_line_argument=no
14786fi
14787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788fi
14789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14791	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14792	CFLAGS="$xorg_testset_save_CFLAGS"
14793fi
14794
14795found="no"
14796
14797	if test $found = "no" ; then
14798		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14800		fi
14801
14802		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14804		fi
14805
14806		CFLAGS="$CFLAGS -Wlogical-op"
14807
14808		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14809$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14810		cacheid=xorg_cv_cc_flag__Wlogical_op
14811		if eval \${$cacheid+:} false; then :
14812  $as_echo_n "(cached) " >&6
14813else
14814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815/* end confdefs.h.  */
14816int i;
14817int
14818main ()
14819{
14820
14821  ;
14822  return 0;
14823}
14824_ACEOF
14825if ac_fn_c_try_link "$LINENO"; then :
14826  eval $cacheid=yes
14827else
14828  eval $cacheid=no
14829fi
14830rm -f core conftest.err conftest.$ac_objext \
14831    conftest$ac_exeext conftest.$ac_ext
14832fi
14833
14834
14835		CFLAGS="$xorg_testset_save_CFLAGS"
14836
14837		eval supported=\$$cacheid
14838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14839$as_echo "$supported" >&6; }
14840		if test "$supported" = "yes" ; then
14841			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14842			found="yes"
14843		fi
14844	fi
14845
14846
14847
14848# These are currently disabled because they are noisy.  They will be enabled
14849# in the future once the codebase is sufficiently modernized to silence
14850# them.  For now, I don't want them to drown out the other warnings.
14851# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14852# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14853# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14854
14855# Turn some warnings into errors, so we don't accidently get successful builds
14856# when there are problems that should be fixed.
14857
14858if test "x$SELECTIVE_WERROR" = "xyes" ; then
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872xorg_testset_save_CFLAGS="$CFLAGS"
14873
14874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14879  $as_echo_n "(cached) " >&6
14880else
14881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882/* end confdefs.h.  */
14883int i;
14884_ACEOF
14885if ac_fn_c_try_compile "$LINENO"; then :
14886  xorg_cv_cc_flag_unknown_warning_option=yes
14887else
14888  xorg_cv_cc_flag_unknown_warning_option=no
14889fi
14890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14891fi
14892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14895	CFLAGS="$xorg_testset_save_CFLAGS"
14896fi
14897
14898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14901	fi
14902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14906  $as_echo_n "(cached) " >&6
14907else
14908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909/* end confdefs.h.  */
14910int i;
14911_ACEOF
14912if ac_fn_c_try_compile "$LINENO"; then :
14913  xorg_cv_cc_flag_unused_command_line_argument=yes
14914else
14915  xorg_cv_cc_flag_unused_command_line_argument=no
14916fi
14917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918fi
14919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14921	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14922	CFLAGS="$xorg_testset_save_CFLAGS"
14923fi
14924
14925found="no"
14926
14927	if test $found = "no" ; then
14928		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14930		fi
14931
14932		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14934		fi
14935
14936		CFLAGS="$CFLAGS -Werror=implicit"
14937
14938		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14939$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14940		cacheid=xorg_cv_cc_flag__Werror_implicit
14941		if eval \${$cacheid+:} false; then :
14942  $as_echo_n "(cached) " >&6
14943else
14944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945/* end confdefs.h.  */
14946int i;
14947int
14948main ()
14949{
14950
14951  ;
14952  return 0;
14953}
14954_ACEOF
14955if ac_fn_c_try_link "$LINENO"; then :
14956  eval $cacheid=yes
14957else
14958  eval $cacheid=no
14959fi
14960rm -f core conftest.err conftest.$ac_objext \
14961    conftest$ac_exeext conftest.$ac_ext
14962fi
14963
14964
14965		CFLAGS="$xorg_testset_save_CFLAGS"
14966
14967		eval supported=\$$cacheid
14968		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14969$as_echo "$supported" >&6; }
14970		if test "$supported" = "yes" ; then
14971			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14972			found="yes"
14973		fi
14974	fi
14975
14976	if test $found = "no" ; then
14977		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14979		fi
14980
14981		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14983		fi
14984
14985		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14986
14987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14988$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14989		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14990		if eval \${$cacheid+:} false; then :
14991  $as_echo_n "(cached) " >&6
14992else
14993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994/* end confdefs.h.  */
14995int i;
14996int
14997main ()
14998{
14999
15000  ;
15001  return 0;
15002}
15003_ACEOF
15004if ac_fn_c_try_link "$LINENO"; then :
15005  eval $cacheid=yes
15006else
15007  eval $cacheid=no
15008fi
15009rm -f core conftest.err conftest.$ac_objext \
15010    conftest$ac_exeext conftest.$ac_ext
15011fi
15012
15013
15014		CFLAGS="$xorg_testset_save_CFLAGS"
15015
15016		eval supported=\$$cacheid
15017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15018$as_echo "$supported" >&6; }
15019		if test "$supported" = "yes" ; then
15020			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15021			found="yes"
15022		fi
15023	fi
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039xorg_testset_save_CFLAGS="$CFLAGS"
15040
15041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15046  $as_echo_n "(cached) " >&6
15047else
15048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049/* end confdefs.h.  */
15050int i;
15051_ACEOF
15052if ac_fn_c_try_compile "$LINENO"; then :
15053  xorg_cv_cc_flag_unknown_warning_option=yes
15054else
15055  xorg_cv_cc_flag_unknown_warning_option=no
15056fi
15057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058fi
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15062	CFLAGS="$xorg_testset_save_CFLAGS"
15063fi
15064
15065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15068	fi
15069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15072if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15081else
15082  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15089	CFLAGS="$xorg_testset_save_CFLAGS"
15090fi
15091
15092found="no"
15093
15094	if test $found = "no" ; then
15095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097		fi
15098
15099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15101		fi
15102
15103		CFLAGS="$CFLAGS -Werror=nonnull"
15104
15105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15106$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15107		cacheid=xorg_cv_cc_flag__Werror_nonnull
15108		if eval \${$cacheid+:} false; then :
15109  $as_echo_n "(cached) " >&6
15110else
15111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112/* end confdefs.h.  */
15113int i;
15114int
15115main ()
15116{
15117
15118  ;
15119  return 0;
15120}
15121_ACEOF
15122if ac_fn_c_try_link "$LINENO"; then :
15123  eval $cacheid=yes
15124else
15125  eval $cacheid=no
15126fi
15127rm -f core conftest.err conftest.$ac_objext \
15128    conftest$ac_exeext conftest.$ac_ext
15129fi
15130
15131
15132		CFLAGS="$xorg_testset_save_CFLAGS"
15133
15134		eval supported=\$$cacheid
15135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15136$as_echo "$supported" >&6; }
15137		if test "$supported" = "yes" ; then
15138			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15139			found="yes"
15140		fi
15141	fi
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157xorg_testset_save_CFLAGS="$CFLAGS"
15158
15159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15164  $as_echo_n "(cached) " >&6
15165else
15166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167/* end confdefs.h.  */
15168int i;
15169_ACEOF
15170if ac_fn_c_try_compile "$LINENO"; then :
15171  xorg_cv_cc_flag_unknown_warning_option=yes
15172else
15173  xorg_cv_cc_flag_unknown_warning_option=no
15174fi
15175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176fi
15177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15180	CFLAGS="$xorg_testset_save_CFLAGS"
15181fi
15182
15183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15186	fi
15187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15190if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15199else
15200  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15207	CFLAGS="$xorg_testset_save_CFLAGS"
15208fi
15209
15210found="no"
15211
15212	if test $found = "no" ; then
15213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15215		fi
15216
15217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15219		fi
15220
15221		CFLAGS="$CFLAGS -Werror=init-self"
15222
15223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15224$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15225		cacheid=xorg_cv_cc_flag__Werror_init_self
15226		if eval \${$cacheid+:} false; then :
15227  $as_echo_n "(cached) " >&6
15228else
15229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230/* end confdefs.h.  */
15231int i;
15232int
15233main ()
15234{
15235
15236  ;
15237  return 0;
15238}
15239_ACEOF
15240if ac_fn_c_try_link "$LINENO"; then :
15241  eval $cacheid=yes
15242else
15243  eval $cacheid=no
15244fi
15245rm -f core conftest.err conftest.$ac_objext \
15246    conftest$ac_exeext conftest.$ac_ext
15247fi
15248
15249
15250		CFLAGS="$xorg_testset_save_CFLAGS"
15251
15252		eval supported=\$$cacheid
15253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15254$as_echo "$supported" >&6; }
15255		if test "$supported" = "yes" ; then
15256			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15257			found="yes"
15258		fi
15259	fi
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275xorg_testset_save_CFLAGS="$CFLAGS"
15276
15277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15282  $as_echo_n "(cached) " >&6
15283else
15284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h.  */
15286int i;
15287_ACEOF
15288if ac_fn_c_try_compile "$LINENO"; then :
15289  xorg_cv_cc_flag_unknown_warning_option=yes
15290else
15291  xorg_cv_cc_flag_unknown_warning_option=no
15292fi
15293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294fi
15295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15298	CFLAGS="$xorg_testset_save_CFLAGS"
15299fi
15300
15301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15304	fi
15305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15308if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15317else
15318  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15325	CFLAGS="$xorg_testset_save_CFLAGS"
15326fi
15327
15328found="no"
15329
15330	if test $found = "no" ; then
15331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15333		fi
15334
15335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15337		fi
15338
15339		CFLAGS="$CFLAGS -Werror=main"
15340
15341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15342$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15343		cacheid=xorg_cv_cc_flag__Werror_main
15344		if eval \${$cacheid+:} false; then :
15345  $as_echo_n "(cached) " >&6
15346else
15347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348/* end confdefs.h.  */
15349int i;
15350int
15351main ()
15352{
15353
15354  ;
15355  return 0;
15356}
15357_ACEOF
15358if ac_fn_c_try_link "$LINENO"; then :
15359  eval $cacheid=yes
15360else
15361  eval $cacheid=no
15362fi
15363rm -f core conftest.err conftest.$ac_objext \
15364    conftest$ac_exeext conftest.$ac_ext
15365fi
15366
15367
15368		CFLAGS="$xorg_testset_save_CFLAGS"
15369
15370		eval supported=\$$cacheid
15371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15372$as_echo "$supported" >&6; }
15373		if test "$supported" = "yes" ; then
15374			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15375			found="yes"
15376		fi
15377	fi
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393xorg_testset_save_CFLAGS="$CFLAGS"
15394
15395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15400  $as_echo_n "(cached) " >&6
15401else
15402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403/* end confdefs.h.  */
15404int i;
15405_ACEOF
15406if ac_fn_c_try_compile "$LINENO"; then :
15407  xorg_cv_cc_flag_unknown_warning_option=yes
15408else
15409  xorg_cv_cc_flag_unknown_warning_option=no
15410fi
15411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412fi
15413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15416	CFLAGS="$xorg_testset_save_CFLAGS"
15417fi
15418
15419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15422	fi
15423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15426if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15435else
15436  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15443	CFLAGS="$xorg_testset_save_CFLAGS"
15444fi
15445
15446found="no"
15447
15448	if test $found = "no" ; then
15449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15451		fi
15452
15453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15455		fi
15456
15457		CFLAGS="$CFLAGS -Werror=missing-braces"
15458
15459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15460$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15461		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15462		if eval \${$cacheid+:} false; then :
15463  $as_echo_n "(cached) " >&6
15464else
15465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466/* end confdefs.h.  */
15467int i;
15468int
15469main ()
15470{
15471
15472  ;
15473  return 0;
15474}
15475_ACEOF
15476if ac_fn_c_try_link "$LINENO"; then :
15477  eval $cacheid=yes
15478else
15479  eval $cacheid=no
15480fi
15481rm -f core conftest.err conftest.$ac_objext \
15482    conftest$ac_exeext conftest.$ac_ext
15483fi
15484
15485
15486		CFLAGS="$xorg_testset_save_CFLAGS"
15487
15488		eval supported=\$$cacheid
15489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15490$as_echo "$supported" >&6; }
15491		if test "$supported" = "yes" ; then
15492			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15493			found="yes"
15494		fi
15495	fi
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511xorg_testset_save_CFLAGS="$CFLAGS"
15512
15513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15518  $as_echo_n "(cached) " >&6
15519else
15520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521/* end confdefs.h.  */
15522int i;
15523_ACEOF
15524if ac_fn_c_try_compile "$LINENO"; then :
15525  xorg_cv_cc_flag_unknown_warning_option=yes
15526else
15527  xorg_cv_cc_flag_unknown_warning_option=no
15528fi
15529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530fi
15531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15534	CFLAGS="$xorg_testset_save_CFLAGS"
15535fi
15536
15537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15540	fi
15541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15545  $as_echo_n "(cached) " >&6
15546else
15547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549int i;
15550_ACEOF
15551if ac_fn_c_try_compile "$LINENO"; then :
15552  xorg_cv_cc_flag_unused_command_line_argument=yes
15553else
15554  xorg_cv_cc_flag_unused_command_line_argument=no
15555fi
15556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557fi
15558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15561	CFLAGS="$xorg_testset_save_CFLAGS"
15562fi
15563
15564found="no"
15565
15566	if test $found = "no" ; then
15567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15569		fi
15570
15571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15573		fi
15574
15575		CFLAGS="$CFLAGS -Werror=sequence-point"
15576
15577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15578$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15579		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15580		if eval \${$cacheid+:} false; then :
15581  $as_echo_n "(cached) " >&6
15582else
15583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h.  */
15585int i;
15586int
15587main ()
15588{
15589
15590  ;
15591  return 0;
15592}
15593_ACEOF
15594if ac_fn_c_try_link "$LINENO"; then :
15595  eval $cacheid=yes
15596else
15597  eval $cacheid=no
15598fi
15599rm -f core conftest.err conftest.$ac_objext \
15600    conftest$ac_exeext conftest.$ac_ext
15601fi
15602
15603
15604		CFLAGS="$xorg_testset_save_CFLAGS"
15605
15606		eval supported=\$$cacheid
15607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15608$as_echo "$supported" >&6; }
15609		if test "$supported" = "yes" ; then
15610			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15611			found="yes"
15612		fi
15613	fi
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629xorg_testset_save_CFLAGS="$CFLAGS"
15630
15631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15636  $as_echo_n "(cached) " >&6
15637else
15638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639/* end confdefs.h.  */
15640int i;
15641_ACEOF
15642if ac_fn_c_try_compile "$LINENO"; then :
15643  xorg_cv_cc_flag_unknown_warning_option=yes
15644else
15645  xorg_cv_cc_flag_unknown_warning_option=no
15646fi
15647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15648fi
15649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15652	CFLAGS="$xorg_testset_save_CFLAGS"
15653fi
15654
15655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658	fi
15659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15663  $as_echo_n "(cached) " >&6
15664else
15665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666/* end confdefs.h.  */
15667int i;
15668_ACEOF
15669if ac_fn_c_try_compile "$LINENO"; then :
15670  xorg_cv_cc_flag_unused_command_line_argument=yes
15671else
15672  xorg_cv_cc_flag_unused_command_line_argument=no
15673fi
15674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675fi
15676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15679	CFLAGS="$xorg_testset_save_CFLAGS"
15680fi
15681
15682found="no"
15683
15684	if test $found = "no" ; then
15685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15687		fi
15688
15689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15691		fi
15692
15693		CFLAGS="$CFLAGS -Werror=return-type"
15694
15695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15696$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15697		cacheid=xorg_cv_cc_flag__Werror_return_type
15698		if eval \${$cacheid+:} false; then :
15699  $as_echo_n "(cached) " >&6
15700else
15701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702/* end confdefs.h.  */
15703int i;
15704int
15705main ()
15706{
15707
15708  ;
15709  return 0;
15710}
15711_ACEOF
15712if ac_fn_c_try_link "$LINENO"; then :
15713  eval $cacheid=yes
15714else
15715  eval $cacheid=no
15716fi
15717rm -f core conftest.err conftest.$ac_objext \
15718    conftest$ac_exeext conftest.$ac_ext
15719fi
15720
15721
15722		CFLAGS="$xorg_testset_save_CFLAGS"
15723
15724		eval supported=\$$cacheid
15725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15726$as_echo "$supported" >&6; }
15727		if test "$supported" = "yes" ; then
15728			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15729			found="yes"
15730		fi
15731	fi
15732
15733	if test $found = "no" ; then
15734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15736		fi
15737
15738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15740		fi
15741
15742		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15743
15744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15745$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15746		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15747		if eval \${$cacheid+:} false; then :
15748  $as_echo_n "(cached) " >&6
15749else
15750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751/* end confdefs.h.  */
15752int i;
15753int
15754main ()
15755{
15756
15757  ;
15758  return 0;
15759}
15760_ACEOF
15761if ac_fn_c_try_link "$LINENO"; then :
15762  eval $cacheid=yes
15763else
15764  eval $cacheid=no
15765fi
15766rm -f core conftest.err conftest.$ac_objext \
15767    conftest$ac_exeext conftest.$ac_ext
15768fi
15769
15770
15771		CFLAGS="$xorg_testset_save_CFLAGS"
15772
15773		eval supported=\$$cacheid
15774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15775$as_echo "$supported" >&6; }
15776		if test "$supported" = "yes" ; then
15777			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15778			found="yes"
15779		fi
15780	fi
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796xorg_testset_save_CFLAGS="$CFLAGS"
15797
15798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15803  $as_echo_n "(cached) " >&6
15804else
15805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806/* end confdefs.h.  */
15807int i;
15808_ACEOF
15809if ac_fn_c_try_compile "$LINENO"; then :
15810  xorg_cv_cc_flag_unknown_warning_option=yes
15811else
15812  xorg_cv_cc_flag_unknown_warning_option=no
15813fi
15814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815fi
15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15819	CFLAGS="$xorg_testset_save_CFLAGS"
15820fi
15821
15822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15825	fi
15826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15829if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15838else
15839  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15846	CFLAGS="$xorg_testset_save_CFLAGS"
15847fi
15848
15849found="no"
15850
15851	if test $found = "no" ; then
15852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15854		fi
15855
15856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15858		fi
15859
15860		CFLAGS="$CFLAGS -Werror=trigraphs"
15861
15862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15863$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15864		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15865		if eval \${$cacheid+:} false; then :
15866  $as_echo_n "(cached) " >&6
15867else
15868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869/* end confdefs.h.  */
15870int i;
15871int
15872main ()
15873{
15874
15875  ;
15876  return 0;
15877}
15878_ACEOF
15879if ac_fn_c_try_link "$LINENO"; then :
15880  eval $cacheid=yes
15881else
15882  eval $cacheid=no
15883fi
15884rm -f core conftest.err conftest.$ac_objext \
15885    conftest$ac_exeext conftest.$ac_ext
15886fi
15887
15888
15889		CFLAGS="$xorg_testset_save_CFLAGS"
15890
15891		eval supported=\$$cacheid
15892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15893$as_echo "$supported" >&6; }
15894		if test "$supported" = "yes" ; then
15895			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15896			found="yes"
15897		fi
15898	fi
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914xorg_testset_save_CFLAGS="$CFLAGS"
15915
15916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15921  $as_echo_n "(cached) " >&6
15922else
15923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924/* end confdefs.h.  */
15925int i;
15926_ACEOF
15927if ac_fn_c_try_compile "$LINENO"; then :
15928  xorg_cv_cc_flag_unknown_warning_option=yes
15929else
15930  xorg_cv_cc_flag_unknown_warning_option=no
15931fi
15932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933fi
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15937	CFLAGS="$xorg_testset_save_CFLAGS"
15938fi
15939
15940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15943	fi
15944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15947if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
15956else
15957  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15964	CFLAGS="$xorg_testset_save_CFLAGS"
15965fi
15966
15967found="no"
15968
15969	if test $found = "no" ; then
15970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15972		fi
15973
15974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15976		fi
15977
15978		CFLAGS="$CFLAGS -Werror=array-bounds"
15979
15980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15981$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15982		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15983		if eval \${$cacheid+:} false; then :
15984  $as_echo_n "(cached) " >&6
15985else
15986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987/* end confdefs.h.  */
15988int i;
15989int
15990main ()
15991{
15992
15993  ;
15994  return 0;
15995}
15996_ACEOF
15997if ac_fn_c_try_link "$LINENO"; then :
15998  eval $cacheid=yes
15999else
16000  eval $cacheid=no
16001fi
16002rm -f core conftest.err conftest.$ac_objext \
16003    conftest$ac_exeext conftest.$ac_ext
16004fi
16005
16006
16007		CFLAGS="$xorg_testset_save_CFLAGS"
16008
16009		eval supported=\$$cacheid
16010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16011$as_echo "$supported" >&6; }
16012		if test "$supported" = "yes" ; then
16013			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16014			found="yes"
16015		fi
16016	fi
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032xorg_testset_save_CFLAGS="$CFLAGS"
16033
16034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16039  $as_echo_n "(cached) " >&6
16040else
16041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h.  */
16043int i;
16044_ACEOF
16045if ac_fn_c_try_compile "$LINENO"; then :
16046  xorg_cv_cc_flag_unknown_warning_option=yes
16047else
16048  xorg_cv_cc_flag_unknown_warning_option=no
16049fi
16050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051fi
16052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16055	CFLAGS="$xorg_testset_save_CFLAGS"
16056fi
16057
16058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061	fi
16062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16065if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
16074else
16075  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
16080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16082	CFLAGS="$xorg_testset_save_CFLAGS"
16083fi
16084
16085found="no"
16086
16087	if test $found = "no" ; then
16088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16090		fi
16091
16092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16094		fi
16095
16096		CFLAGS="$CFLAGS -Werror=write-strings"
16097
16098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16099$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16100		cacheid=xorg_cv_cc_flag__Werror_write_strings
16101		if eval \${$cacheid+:} false; then :
16102  $as_echo_n "(cached) " >&6
16103else
16104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105/* end confdefs.h.  */
16106int i;
16107int
16108main ()
16109{
16110
16111  ;
16112  return 0;
16113}
16114_ACEOF
16115if ac_fn_c_try_link "$LINENO"; then :
16116  eval $cacheid=yes
16117else
16118  eval $cacheid=no
16119fi
16120rm -f core conftest.err conftest.$ac_objext \
16121    conftest$ac_exeext conftest.$ac_ext
16122fi
16123
16124
16125		CFLAGS="$xorg_testset_save_CFLAGS"
16126
16127		eval supported=\$$cacheid
16128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16129$as_echo "$supported" >&6; }
16130		if test "$supported" = "yes" ; then
16131			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16132			found="yes"
16133		fi
16134	fi
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150xorg_testset_save_CFLAGS="$CFLAGS"
16151
16152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16157  $as_echo_n "(cached) " >&6
16158else
16159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160/* end confdefs.h.  */
16161int i;
16162_ACEOF
16163if ac_fn_c_try_compile "$LINENO"; then :
16164  xorg_cv_cc_flag_unknown_warning_option=yes
16165else
16166  xorg_cv_cc_flag_unknown_warning_option=no
16167fi
16168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16169fi
16170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16172	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16173	CFLAGS="$xorg_testset_save_CFLAGS"
16174fi
16175
16176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16177	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16178		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16179	fi
16180	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16184  $as_echo_n "(cached) " >&6
16185else
16186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187/* end confdefs.h.  */
16188int i;
16189_ACEOF
16190if ac_fn_c_try_compile "$LINENO"; then :
16191  xorg_cv_cc_flag_unused_command_line_argument=yes
16192else
16193  xorg_cv_cc_flag_unused_command_line_argument=no
16194fi
16195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196fi
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16200	CFLAGS="$xorg_testset_save_CFLAGS"
16201fi
16202
16203found="no"
16204
16205	if test $found = "no" ; then
16206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16208		fi
16209
16210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16212		fi
16213
16214		CFLAGS="$CFLAGS -Werror=address"
16215
16216		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16217$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16218		cacheid=xorg_cv_cc_flag__Werror_address
16219		if eval \${$cacheid+:} false; then :
16220  $as_echo_n "(cached) " >&6
16221else
16222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223/* end confdefs.h.  */
16224int i;
16225int
16226main ()
16227{
16228
16229  ;
16230  return 0;
16231}
16232_ACEOF
16233if ac_fn_c_try_link "$LINENO"; then :
16234  eval $cacheid=yes
16235else
16236  eval $cacheid=no
16237fi
16238rm -f core conftest.err conftest.$ac_objext \
16239    conftest$ac_exeext conftest.$ac_ext
16240fi
16241
16242
16243		CFLAGS="$xorg_testset_save_CFLAGS"
16244
16245		eval supported=\$$cacheid
16246		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16247$as_echo "$supported" >&6; }
16248		if test "$supported" = "yes" ; then
16249			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16250			found="yes"
16251		fi
16252	fi
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268xorg_testset_save_CFLAGS="$CFLAGS"
16269
16270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16275  $as_echo_n "(cached) " >&6
16276else
16277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278/* end confdefs.h.  */
16279int i;
16280_ACEOF
16281if ac_fn_c_try_compile "$LINENO"; then :
16282  xorg_cv_cc_flag_unknown_warning_option=yes
16283else
16284  xorg_cv_cc_flag_unknown_warning_option=no
16285fi
16286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16287fi
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16291	CFLAGS="$xorg_testset_save_CFLAGS"
16292fi
16293
16294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16297	fi
16298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16302  $as_echo_n "(cached) " >&6
16303else
16304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305/* end confdefs.h.  */
16306int i;
16307_ACEOF
16308if ac_fn_c_try_compile "$LINENO"; then :
16309  xorg_cv_cc_flag_unused_command_line_argument=yes
16310else
16311  xorg_cv_cc_flag_unused_command_line_argument=no
16312fi
16313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16314fi
16315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16318	CFLAGS="$xorg_testset_save_CFLAGS"
16319fi
16320
16321found="no"
16322
16323	if test $found = "no" ; then
16324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16326		fi
16327
16328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16330		fi
16331
16332		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16333
16334		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16335$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16336		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16337		if eval \${$cacheid+:} false; then :
16338  $as_echo_n "(cached) " >&6
16339else
16340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16341/* end confdefs.h.  */
16342int i;
16343int
16344main ()
16345{
16346
16347  ;
16348  return 0;
16349}
16350_ACEOF
16351if ac_fn_c_try_link "$LINENO"; then :
16352  eval $cacheid=yes
16353else
16354  eval $cacheid=no
16355fi
16356rm -f core conftest.err conftest.$ac_objext \
16357    conftest$ac_exeext conftest.$ac_ext
16358fi
16359
16360
16361		CFLAGS="$xorg_testset_save_CFLAGS"
16362
16363		eval supported=\$$cacheid
16364		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16365$as_echo "$supported" >&6; }
16366		if test "$supported" = "yes" ; then
16367			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16368			found="yes"
16369		fi
16370	fi
16371
16372	if test $found = "no" ; then
16373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375		fi
16376
16377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16379		fi
16380
16381		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16382
16383		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16384$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16385		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16386		if eval \${$cacheid+:} false; then :
16387  $as_echo_n "(cached) " >&6
16388else
16389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390/* end confdefs.h.  */
16391int i;
16392int
16393main ()
16394{
16395
16396  ;
16397  return 0;
16398}
16399_ACEOF
16400if ac_fn_c_try_link "$LINENO"; then :
16401  eval $cacheid=yes
16402else
16403  eval $cacheid=no
16404fi
16405rm -f core conftest.err conftest.$ac_objext \
16406    conftest$ac_exeext conftest.$ac_ext
16407fi
16408
16409
16410		CFLAGS="$xorg_testset_save_CFLAGS"
16411
16412		eval supported=\$$cacheid
16413		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16414$as_echo "$supported" >&6; }
16415		if test "$supported" = "yes" ; then
16416			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16417			found="yes"
16418		fi
16419	fi
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435xorg_testset_save_CFLAGS="$CFLAGS"
16436
16437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16442  $as_echo_n "(cached) " >&6
16443else
16444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445/* end confdefs.h.  */
16446int i;
16447_ACEOF
16448if ac_fn_c_try_compile "$LINENO"; then :
16449  xorg_cv_cc_flag_unknown_warning_option=yes
16450else
16451  xorg_cv_cc_flag_unknown_warning_option=no
16452fi
16453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454fi
16455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16457	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16458	CFLAGS="$xorg_testset_save_CFLAGS"
16459fi
16460
16461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16462	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16463		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16464	fi
16465	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16469  $as_echo_n "(cached) " >&6
16470else
16471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472/* end confdefs.h.  */
16473int i;
16474_ACEOF
16475if ac_fn_c_try_compile "$LINENO"; then :
16476  xorg_cv_cc_flag_unused_command_line_argument=yes
16477else
16478  xorg_cv_cc_flag_unused_command_line_argument=no
16479fi
16480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481fi
16482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16485	CFLAGS="$xorg_testset_save_CFLAGS"
16486fi
16487
16488found="no"
16489
16490	if test $found = "no" ; then
16491		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16493		fi
16494
16495		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497		fi
16498
16499		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16500
16501		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16502$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16503		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16504		if eval \${$cacheid+:} false; then :
16505  $as_echo_n "(cached) " >&6
16506else
16507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508/* end confdefs.h.  */
16509int i;
16510int
16511main ()
16512{
16513
16514  ;
16515  return 0;
16516}
16517_ACEOF
16518if ac_fn_c_try_link "$LINENO"; then :
16519  eval $cacheid=yes
16520else
16521  eval $cacheid=no
16522fi
16523rm -f core conftest.err conftest.$ac_objext \
16524    conftest$ac_exeext conftest.$ac_ext
16525fi
16526
16527
16528		CFLAGS="$xorg_testset_save_CFLAGS"
16529
16530		eval supported=\$$cacheid
16531		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16532$as_echo "$supported" >&6; }
16533		if test "$supported" = "yes" ; then
16534			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16535			found="yes"
16536		fi
16537	fi
16538
16539 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16540else
16541{ $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
16542$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;}
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556xorg_testset_save_CFLAGS="$CFLAGS"
16557
16558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16563  $as_echo_n "(cached) " >&6
16564else
16565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566/* end confdefs.h.  */
16567int i;
16568_ACEOF
16569if ac_fn_c_try_compile "$LINENO"; then :
16570  xorg_cv_cc_flag_unknown_warning_option=yes
16571else
16572  xorg_cv_cc_flag_unknown_warning_option=no
16573fi
16574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575fi
16576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16579	CFLAGS="$xorg_testset_save_CFLAGS"
16580fi
16581
16582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16585	fi
16586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16589if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
16598else
16599  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
16604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16606	CFLAGS="$xorg_testset_save_CFLAGS"
16607fi
16608
16609found="no"
16610
16611	if test $found = "no" ; then
16612		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614		fi
16615
16616		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16618		fi
16619
16620		CFLAGS="$CFLAGS -Wimplicit"
16621
16622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16623$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16624		cacheid=xorg_cv_cc_flag__Wimplicit
16625		if eval \${$cacheid+:} false; then :
16626  $as_echo_n "(cached) " >&6
16627else
16628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629/* end confdefs.h.  */
16630int i;
16631int
16632main ()
16633{
16634
16635  ;
16636  return 0;
16637}
16638_ACEOF
16639if ac_fn_c_try_link "$LINENO"; then :
16640  eval $cacheid=yes
16641else
16642  eval $cacheid=no
16643fi
16644rm -f core conftest.err conftest.$ac_objext \
16645    conftest$ac_exeext conftest.$ac_ext
16646fi
16647
16648
16649		CFLAGS="$xorg_testset_save_CFLAGS"
16650
16651		eval supported=\$$cacheid
16652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16653$as_echo "$supported" >&6; }
16654		if test "$supported" = "yes" ; then
16655			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16656			found="yes"
16657		fi
16658	fi
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674xorg_testset_save_CFLAGS="$CFLAGS"
16675
16676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16681  $as_echo_n "(cached) " >&6
16682else
16683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684/* end confdefs.h.  */
16685int i;
16686_ACEOF
16687if ac_fn_c_try_compile "$LINENO"; then :
16688  xorg_cv_cc_flag_unknown_warning_option=yes
16689else
16690  xorg_cv_cc_flag_unknown_warning_option=no
16691fi
16692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693fi
16694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16697	CFLAGS="$xorg_testset_save_CFLAGS"
16698fi
16699
16700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16703	fi
16704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16707if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
16716else
16717  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
16722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16724	CFLAGS="$xorg_testset_save_CFLAGS"
16725fi
16726
16727found="no"
16728
16729	if test $found = "no" ; then
16730		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732		fi
16733
16734		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16736		fi
16737
16738		CFLAGS="$CFLAGS -Wnonnull"
16739
16740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16741$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16742		cacheid=xorg_cv_cc_flag__Wnonnull
16743		if eval \${$cacheid+:} false; then :
16744  $as_echo_n "(cached) " >&6
16745else
16746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748int i;
16749int
16750main ()
16751{
16752
16753  ;
16754  return 0;
16755}
16756_ACEOF
16757if ac_fn_c_try_link "$LINENO"; then :
16758  eval $cacheid=yes
16759else
16760  eval $cacheid=no
16761fi
16762rm -f core conftest.err conftest.$ac_objext \
16763    conftest$ac_exeext conftest.$ac_ext
16764fi
16765
16766
16767		CFLAGS="$xorg_testset_save_CFLAGS"
16768
16769		eval supported=\$$cacheid
16770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16771$as_echo "$supported" >&6; }
16772		if test "$supported" = "yes" ; then
16773			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16774			found="yes"
16775		fi
16776	fi
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792xorg_testset_save_CFLAGS="$CFLAGS"
16793
16794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16795	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16799  $as_echo_n "(cached) " >&6
16800else
16801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802/* end confdefs.h.  */
16803int i;
16804_ACEOF
16805if ac_fn_c_try_compile "$LINENO"; then :
16806  xorg_cv_cc_flag_unknown_warning_option=yes
16807else
16808  xorg_cv_cc_flag_unknown_warning_option=no
16809fi
16810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811fi
16812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16815	CFLAGS="$xorg_testset_save_CFLAGS"
16816fi
16817
16818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16821	fi
16822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16825if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
16834else
16835  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
16840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16842	CFLAGS="$xorg_testset_save_CFLAGS"
16843fi
16844
16845found="no"
16846
16847	if test $found = "no" ; then
16848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16850		fi
16851
16852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16854		fi
16855
16856		CFLAGS="$CFLAGS -Winit-self"
16857
16858		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16859$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16860		cacheid=xorg_cv_cc_flag__Winit_self
16861		if eval \${$cacheid+:} false; then :
16862  $as_echo_n "(cached) " >&6
16863else
16864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865/* end confdefs.h.  */
16866int i;
16867int
16868main ()
16869{
16870
16871  ;
16872  return 0;
16873}
16874_ACEOF
16875if ac_fn_c_try_link "$LINENO"; then :
16876  eval $cacheid=yes
16877else
16878  eval $cacheid=no
16879fi
16880rm -f core conftest.err conftest.$ac_objext \
16881    conftest$ac_exeext conftest.$ac_ext
16882fi
16883
16884
16885		CFLAGS="$xorg_testset_save_CFLAGS"
16886
16887		eval supported=\$$cacheid
16888		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16889$as_echo "$supported" >&6; }
16890		if test "$supported" = "yes" ; then
16891			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16892			found="yes"
16893		fi
16894	fi
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910xorg_testset_save_CFLAGS="$CFLAGS"
16911
16912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16917  $as_echo_n "(cached) " >&6
16918else
16919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920/* end confdefs.h.  */
16921int i;
16922_ACEOF
16923if ac_fn_c_try_compile "$LINENO"; then :
16924  xorg_cv_cc_flag_unknown_warning_option=yes
16925else
16926  xorg_cv_cc_flag_unknown_warning_option=no
16927fi
16928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929fi
16930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16933	CFLAGS="$xorg_testset_save_CFLAGS"
16934fi
16935
16936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16939	fi
16940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16943if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
16952else
16953  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
16958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16960	CFLAGS="$xorg_testset_save_CFLAGS"
16961fi
16962
16963found="no"
16964
16965	if test $found = "no" ; then
16966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16968		fi
16969
16970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16972		fi
16973
16974		CFLAGS="$CFLAGS -Wmain"
16975
16976		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16977$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16978		cacheid=xorg_cv_cc_flag__Wmain
16979		if eval \${$cacheid+:} false; then :
16980  $as_echo_n "(cached) " >&6
16981else
16982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983/* end confdefs.h.  */
16984int i;
16985int
16986main ()
16987{
16988
16989  ;
16990  return 0;
16991}
16992_ACEOF
16993if ac_fn_c_try_link "$LINENO"; then :
16994  eval $cacheid=yes
16995else
16996  eval $cacheid=no
16997fi
16998rm -f core conftest.err conftest.$ac_objext \
16999    conftest$ac_exeext conftest.$ac_ext
17000fi
17001
17002
17003		CFLAGS="$xorg_testset_save_CFLAGS"
17004
17005		eval supported=\$$cacheid
17006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17007$as_echo "$supported" >&6; }
17008		if test "$supported" = "yes" ; then
17009			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17010			found="yes"
17011		fi
17012	fi
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028xorg_testset_save_CFLAGS="$CFLAGS"
17029
17030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17035  $as_echo_n "(cached) " >&6
17036else
17037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038/* end confdefs.h.  */
17039int i;
17040_ACEOF
17041if ac_fn_c_try_compile "$LINENO"; then :
17042  xorg_cv_cc_flag_unknown_warning_option=yes
17043else
17044  xorg_cv_cc_flag_unknown_warning_option=no
17045fi
17046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17047fi
17048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17051	CFLAGS="$xorg_testset_save_CFLAGS"
17052fi
17053
17054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17057	fi
17058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17061if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
17070else
17071  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
17076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17078	CFLAGS="$xorg_testset_save_CFLAGS"
17079fi
17080
17081found="no"
17082
17083	if test $found = "no" ; then
17084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17086		fi
17087
17088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17090		fi
17091
17092		CFLAGS="$CFLAGS -Wmissing-braces"
17093
17094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17095$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17096		cacheid=xorg_cv_cc_flag__Wmissing_braces
17097		if eval \${$cacheid+:} false; then :
17098  $as_echo_n "(cached) " >&6
17099else
17100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101/* end confdefs.h.  */
17102int i;
17103int
17104main ()
17105{
17106
17107  ;
17108  return 0;
17109}
17110_ACEOF
17111if ac_fn_c_try_link "$LINENO"; then :
17112  eval $cacheid=yes
17113else
17114  eval $cacheid=no
17115fi
17116rm -f core conftest.err conftest.$ac_objext \
17117    conftest$ac_exeext conftest.$ac_ext
17118fi
17119
17120
17121		CFLAGS="$xorg_testset_save_CFLAGS"
17122
17123		eval supported=\$$cacheid
17124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17125$as_echo "$supported" >&6; }
17126		if test "$supported" = "yes" ; then
17127			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17128			found="yes"
17129		fi
17130	fi
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146xorg_testset_save_CFLAGS="$CFLAGS"
17147
17148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17153  $as_echo_n "(cached) " >&6
17154else
17155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156/* end confdefs.h.  */
17157int i;
17158_ACEOF
17159if ac_fn_c_try_compile "$LINENO"; then :
17160  xorg_cv_cc_flag_unknown_warning_option=yes
17161else
17162  xorg_cv_cc_flag_unknown_warning_option=no
17163fi
17164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17165fi
17166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17169	CFLAGS="$xorg_testset_save_CFLAGS"
17170fi
17171
17172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17175	fi
17176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17179if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
17188else
17189  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
17194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17196	CFLAGS="$xorg_testset_save_CFLAGS"
17197fi
17198
17199found="no"
17200
17201	if test $found = "no" ; then
17202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204		fi
17205
17206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17208		fi
17209
17210		CFLAGS="$CFLAGS -Wsequence-point"
17211
17212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17213$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17214		cacheid=xorg_cv_cc_flag__Wsequence_point
17215		if eval \${$cacheid+:} false; then :
17216  $as_echo_n "(cached) " >&6
17217else
17218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219/* end confdefs.h.  */
17220int i;
17221int
17222main ()
17223{
17224
17225  ;
17226  return 0;
17227}
17228_ACEOF
17229if ac_fn_c_try_link "$LINENO"; then :
17230  eval $cacheid=yes
17231else
17232  eval $cacheid=no
17233fi
17234rm -f core conftest.err conftest.$ac_objext \
17235    conftest$ac_exeext conftest.$ac_ext
17236fi
17237
17238
17239		CFLAGS="$xorg_testset_save_CFLAGS"
17240
17241		eval supported=\$$cacheid
17242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17243$as_echo "$supported" >&6; }
17244		if test "$supported" = "yes" ; then
17245			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17246			found="yes"
17247		fi
17248	fi
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264xorg_testset_save_CFLAGS="$CFLAGS"
17265
17266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17271  $as_echo_n "(cached) " >&6
17272else
17273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17274/* end confdefs.h.  */
17275int i;
17276_ACEOF
17277if ac_fn_c_try_compile "$LINENO"; then :
17278  xorg_cv_cc_flag_unknown_warning_option=yes
17279else
17280  xorg_cv_cc_flag_unknown_warning_option=no
17281fi
17282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283fi
17284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17287	CFLAGS="$xorg_testset_save_CFLAGS"
17288fi
17289
17290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17293	fi
17294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17297if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
17306else
17307  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
17312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17314	CFLAGS="$xorg_testset_save_CFLAGS"
17315fi
17316
17317found="no"
17318
17319	if test $found = "no" ; then
17320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17322		fi
17323
17324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17326		fi
17327
17328		CFLAGS="$CFLAGS -Wreturn-type"
17329
17330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17331$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17332		cacheid=xorg_cv_cc_flag__Wreturn_type
17333		if eval \${$cacheid+:} false; then :
17334  $as_echo_n "(cached) " >&6
17335else
17336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337/* end confdefs.h.  */
17338int i;
17339int
17340main ()
17341{
17342
17343  ;
17344  return 0;
17345}
17346_ACEOF
17347if ac_fn_c_try_link "$LINENO"; then :
17348  eval $cacheid=yes
17349else
17350  eval $cacheid=no
17351fi
17352rm -f core conftest.err conftest.$ac_objext \
17353    conftest$ac_exeext conftest.$ac_ext
17354fi
17355
17356
17357		CFLAGS="$xorg_testset_save_CFLAGS"
17358
17359		eval supported=\$$cacheid
17360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17361$as_echo "$supported" >&6; }
17362		if test "$supported" = "yes" ; then
17363			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17364			found="yes"
17365		fi
17366	fi
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382xorg_testset_save_CFLAGS="$CFLAGS"
17383
17384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17389  $as_echo_n "(cached) " >&6
17390else
17391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392/* end confdefs.h.  */
17393int i;
17394_ACEOF
17395if ac_fn_c_try_compile "$LINENO"; then :
17396  xorg_cv_cc_flag_unknown_warning_option=yes
17397else
17398  xorg_cv_cc_flag_unknown_warning_option=no
17399fi
17400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17401fi
17402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17405	CFLAGS="$xorg_testset_save_CFLAGS"
17406fi
17407
17408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17411	fi
17412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17415if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
17424else
17425  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
17430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17432	CFLAGS="$xorg_testset_save_CFLAGS"
17433fi
17434
17435found="no"
17436
17437	if test $found = "no" ; then
17438		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17440		fi
17441
17442		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17444		fi
17445
17446		CFLAGS="$CFLAGS -Wtrigraphs"
17447
17448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17449$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17450		cacheid=xorg_cv_cc_flag__Wtrigraphs
17451		if eval \${$cacheid+:} false; then :
17452  $as_echo_n "(cached) " >&6
17453else
17454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h.  */
17456int i;
17457int
17458main ()
17459{
17460
17461  ;
17462  return 0;
17463}
17464_ACEOF
17465if ac_fn_c_try_link "$LINENO"; then :
17466  eval $cacheid=yes
17467else
17468  eval $cacheid=no
17469fi
17470rm -f core conftest.err conftest.$ac_objext \
17471    conftest$ac_exeext conftest.$ac_ext
17472fi
17473
17474
17475		CFLAGS="$xorg_testset_save_CFLAGS"
17476
17477		eval supported=\$$cacheid
17478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17479$as_echo "$supported" >&6; }
17480		if test "$supported" = "yes" ; then
17481			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17482			found="yes"
17483		fi
17484	fi
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500xorg_testset_save_CFLAGS="$CFLAGS"
17501
17502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17507  $as_echo_n "(cached) " >&6
17508else
17509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h.  */
17511int i;
17512_ACEOF
17513if ac_fn_c_try_compile "$LINENO"; then :
17514  xorg_cv_cc_flag_unknown_warning_option=yes
17515else
17516  xorg_cv_cc_flag_unknown_warning_option=no
17517fi
17518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519fi
17520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17523	CFLAGS="$xorg_testset_save_CFLAGS"
17524fi
17525
17526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17529	fi
17530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17533if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
17542else
17543  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
17548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17550	CFLAGS="$xorg_testset_save_CFLAGS"
17551fi
17552
17553found="no"
17554
17555	if test $found = "no" ; then
17556		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17558		fi
17559
17560		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17562		fi
17563
17564		CFLAGS="$CFLAGS -Warray-bounds"
17565
17566		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17567$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17568		cacheid=xorg_cv_cc_flag__Warray_bounds
17569		if eval \${$cacheid+:} false; then :
17570  $as_echo_n "(cached) " >&6
17571else
17572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573/* end confdefs.h.  */
17574int i;
17575int
17576main ()
17577{
17578
17579  ;
17580  return 0;
17581}
17582_ACEOF
17583if ac_fn_c_try_link "$LINENO"; then :
17584  eval $cacheid=yes
17585else
17586  eval $cacheid=no
17587fi
17588rm -f core conftest.err conftest.$ac_objext \
17589    conftest$ac_exeext conftest.$ac_ext
17590fi
17591
17592
17593		CFLAGS="$xorg_testset_save_CFLAGS"
17594
17595		eval supported=\$$cacheid
17596		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17597$as_echo "$supported" >&6; }
17598		if test "$supported" = "yes" ; then
17599			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17600			found="yes"
17601		fi
17602	fi
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618xorg_testset_save_CFLAGS="$CFLAGS"
17619
17620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17625  $as_echo_n "(cached) " >&6
17626else
17627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628/* end confdefs.h.  */
17629int i;
17630_ACEOF
17631if ac_fn_c_try_compile "$LINENO"; then :
17632  xorg_cv_cc_flag_unknown_warning_option=yes
17633else
17634  xorg_cv_cc_flag_unknown_warning_option=no
17635fi
17636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17637fi
17638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17641	CFLAGS="$xorg_testset_save_CFLAGS"
17642fi
17643
17644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17647	fi
17648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17651if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
17660else
17661  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
17666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17668	CFLAGS="$xorg_testset_save_CFLAGS"
17669fi
17670
17671found="no"
17672
17673	if test $found = "no" ; then
17674		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17676		fi
17677
17678		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17680		fi
17681
17682		CFLAGS="$CFLAGS -Wwrite-strings"
17683
17684		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17685$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17686		cacheid=xorg_cv_cc_flag__Wwrite_strings
17687		if eval \${$cacheid+:} false; then :
17688  $as_echo_n "(cached) " >&6
17689else
17690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691/* end confdefs.h.  */
17692int i;
17693int
17694main ()
17695{
17696
17697  ;
17698  return 0;
17699}
17700_ACEOF
17701if ac_fn_c_try_link "$LINENO"; then :
17702  eval $cacheid=yes
17703else
17704  eval $cacheid=no
17705fi
17706rm -f core conftest.err conftest.$ac_objext \
17707    conftest$ac_exeext conftest.$ac_ext
17708fi
17709
17710
17711		CFLAGS="$xorg_testset_save_CFLAGS"
17712
17713		eval supported=\$$cacheid
17714		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17715$as_echo "$supported" >&6; }
17716		if test "$supported" = "yes" ; then
17717			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17718			found="yes"
17719		fi
17720	fi
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736xorg_testset_save_CFLAGS="$CFLAGS"
17737
17738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17743  $as_echo_n "(cached) " >&6
17744else
17745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746/* end confdefs.h.  */
17747int i;
17748_ACEOF
17749if ac_fn_c_try_compile "$LINENO"; then :
17750  xorg_cv_cc_flag_unknown_warning_option=yes
17751else
17752  xorg_cv_cc_flag_unknown_warning_option=no
17753fi
17754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755fi
17756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17759	CFLAGS="$xorg_testset_save_CFLAGS"
17760fi
17761
17762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17765	fi
17766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17769if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
17778else
17779  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
17784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17786	CFLAGS="$xorg_testset_save_CFLAGS"
17787fi
17788
17789found="no"
17790
17791	if test $found = "no" ; then
17792		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17794		fi
17795
17796		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17798		fi
17799
17800		CFLAGS="$CFLAGS -Waddress"
17801
17802		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17803$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17804		cacheid=xorg_cv_cc_flag__Waddress
17805		if eval \${$cacheid+:} false; then :
17806  $as_echo_n "(cached) " >&6
17807else
17808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809/* end confdefs.h.  */
17810int i;
17811int
17812main ()
17813{
17814
17815  ;
17816  return 0;
17817}
17818_ACEOF
17819if ac_fn_c_try_link "$LINENO"; then :
17820  eval $cacheid=yes
17821else
17822  eval $cacheid=no
17823fi
17824rm -f core conftest.err conftest.$ac_objext \
17825    conftest$ac_exeext conftest.$ac_ext
17826fi
17827
17828
17829		CFLAGS="$xorg_testset_save_CFLAGS"
17830
17831		eval supported=\$$cacheid
17832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17833$as_echo "$supported" >&6; }
17834		if test "$supported" = "yes" ; then
17835			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17836			found="yes"
17837		fi
17838	fi
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854xorg_testset_save_CFLAGS="$CFLAGS"
17855
17856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17861  $as_echo_n "(cached) " >&6
17862else
17863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17864/* end confdefs.h.  */
17865int i;
17866_ACEOF
17867if ac_fn_c_try_compile "$LINENO"; then :
17868  xorg_cv_cc_flag_unknown_warning_option=yes
17869else
17870  xorg_cv_cc_flag_unknown_warning_option=no
17871fi
17872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873fi
17874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17877	CFLAGS="$xorg_testset_save_CFLAGS"
17878fi
17879
17880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17883	fi
17884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17888  $as_echo_n "(cached) " >&6
17889else
17890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891/* end confdefs.h.  */
17892int i;
17893_ACEOF
17894if ac_fn_c_try_compile "$LINENO"; then :
17895  xorg_cv_cc_flag_unused_command_line_argument=yes
17896else
17897  xorg_cv_cc_flag_unused_command_line_argument=no
17898fi
17899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17900fi
17901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17904	CFLAGS="$xorg_testset_save_CFLAGS"
17905fi
17906
17907found="no"
17908
17909	if test $found = "no" ; then
17910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17912		fi
17913
17914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17916		fi
17917
17918		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17919
17920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17921$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17922		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17923		if eval \${$cacheid+:} false; then :
17924  $as_echo_n "(cached) " >&6
17925else
17926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927/* end confdefs.h.  */
17928int i;
17929int
17930main ()
17931{
17932
17933  ;
17934  return 0;
17935}
17936_ACEOF
17937if ac_fn_c_try_link "$LINENO"; then :
17938  eval $cacheid=yes
17939else
17940  eval $cacheid=no
17941fi
17942rm -f core conftest.err conftest.$ac_objext \
17943    conftest$ac_exeext conftest.$ac_ext
17944fi
17945
17946
17947		CFLAGS="$xorg_testset_save_CFLAGS"
17948
17949		eval supported=\$$cacheid
17950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17951$as_echo "$supported" >&6; }
17952		if test "$supported" = "yes" ; then
17953			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17954			found="yes"
17955		fi
17956	fi
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972xorg_testset_save_CFLAGS="$CFLAGS"
17973
17974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17979  $as_echo_n "(cached) " >&6
17980else
17981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17982/* end confdefs.h.  */
17983int i;
17984_ACEOF
17985if ac_fn_c_try_compile "$LINENO"; then :
17986  xorg_cv_cc_flag_unknown_warning_option=yes
17987else
17988  xorg_cv_cc_flag_unknown_warning_option=no
17989fi
17990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991fi
17992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17995	CFLAGS="$xorg_testset_save_CFLAGS"
17996fi
17997
17998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18001	fi
18002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18006  $as_echo_n "(cached) " >&6
18007else
18008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009/* end confdefs.h.  */
18010int i;
18011_ACEOF
18012if ac_fn_c_try_compile "$LINENO"; then :
18013  xorg_cv_cc_flag_unused_command_line_argument=yes
18014else
18015  xorg_cv_cc_flag_unused_command_line_argument=no
18016fi
18017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018fi
18019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18022	CFLAGS="$xorg_testset_save_CFLAGS"
18023fi
18024
18025found="no"
18026
18027	if test $found = "no" ; then
18028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18030		fi
18031
18032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18034		fi
18035
18036		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18037
18038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18039$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18040		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18041		if eval \${$cacheid+:} false; then :
18042  $as_echo_n "(cached) " >&6
18043else
18044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045/* end confdefs.h.  */
18046int i;
18047int
18048main ()
18049{
18050
18051  ;
18052  return 0;
18053}
18054_ACEOF
18055if ac_fn_c_try_link "$LINENO"; then :
18056  eval $cacheid=yes
18057else
18058  eval $cacheid=no
18059fi
18060rm -f core conftest.err conftest.$ac_objext \
18061    conftest$ac_exeext conftest.$ac_ext
18062fi
18063
18064
18065		CFLAGS="$xorg_testset_save_CFLAGS"
18066
18067		eval supported=\$$cacheid
18068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18069$as_echo "$supported" >&6; }
18070		if test "$supported" = "yes" ; then
18071			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18072			found="yes"
18073		fi
18074	fi
18075
18076
18077fi
18078
18079
18080
18081
18082
18083
18084
18085		CWARNFLAGS="$BASE_CFLAGS"
18086		if  test "x$GCC" = xyes ; then
18087		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18088		fi
18089
18090
18091
18092
18093
18094
18095
18096
18097# Check whether --enable-strict-compilation was given.
18098if test "${enable_strict_compilation+set}" = set; then :
18099  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18100else
18101  STRICT_COMPILE=no
18102fi
18103
18104
18105
18106
18107
18108
18109STRICT_CFLAGS=""
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123xorg_testset_save_CFLAGS="$CFLAGS"
18124
18125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18130  $as_echo_n "(cached) " >&6
18131else
18132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133/* end confdefs.h.  */
18134int i;
18135_ACEOF
18136if ac_fn_c_try_compile "$LINENO"; then :
18137  xorg_cv_cc_flag_unknown_warning_option=yes
18138else
18139  xorg_cv_cc_flag_unknown_warning_option=no
18140fi
18141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18142fi
18143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18146	CFLAGS="$xorg_testset_save_CFLAGS"
18147fi
18148
18149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18152	fi
18153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18157  $as_echo_n "(cached) " >&6
18158else
18159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160/* end confdefs.h.  */
18161int i;
18162_ACEOF
18163if ac_fn_c_try_compile "$LINENO"; then :
18164  xorg_cv_cc_flag_unused_command_line_argument=yes
18165else
18166  xorg_cv_cc_flag_unused_command_line_argument=no
18167fi
18168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169fi
18170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18173	CFLAGS="$xorg_testset_save_CFLAGS"
18174fi
18175
18176found="no"
18177
18178	if test $found = "no" ; then
18179		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18181		fi
18182
18183		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18185		fi
18186
18187		CFLAGS="$CFLAGS -pedantic"
18188
18189		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18190$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18191		cacheid=xorg_cv_cc_flag__pedantic
18192		if eval \${$cacheid+:} false; then :
18193  $as_echo_n "(cached) " >&6
18194else
18195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196/* end confdefs.h.  */
18197int i;
18198int
18199main ()
18200{
18201
18202  ;
18203  return 0;
18204}
18205_ACEOF
18206if ac_fn_c_try_link "$LINENO"; then :
18207  eval $cacheid=yes
18208else
18209  eval $cacheid=no
18210fi
18211rm -f core conftest.err conftest.$ac_objext \
18212    conftest$ac_exeext conftest.$ac_ext
18213fi
18214
18215
18216		CFLAGS="$xorg_testset_save_CFLAGS"
18217
18218		eval supported=\$$cacheid
18219		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18220$as_echo "$supported" >&6; }
18221		if test "$supported" = "yes" ; then
18222			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18223			found="yes"
18224		fi
18225	fi
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241xorg_testset_save_CFLAGS="$CFLAGS"
18242
18243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18248  $as_echo_n "(cached) " >&6
18249else
18250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251/* end confdefs.h.  */
18252int i;
18253_ACEOF
18254if ac_fn_c_try_compile "$LINENO"; then :
18255  xorg_cv_cc_flag_unknown_warning_option=yes
18256else
18257  xorg_cv_cc_flag_unknown_warning_option=no
18258fi
18259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260fi
18261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18263	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18264	CFLAGS="$xorg_testset_save_CFLAGS"
18265fi
18266
18267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18268	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18269		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18270	fi
18271	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18275  $as_echo_n "(cached) " >&6
18276else
18277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278/* end confdefs.h.  */
18279int i;
18280_ACEOF
18281if ac_fn_c_try_compile "$LINENO"; then :
18282  xorg_cv_cc_flag_unused_command_line_argument=yes
18283else
18284  xorg_cv_cc_flag_unused_command_line_argument=no
18285fi
18286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18287fi
18288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18291	CFLAGS="$xorg_testset_save_CFLAGS"
18292fi
18293
18294found="no"
18295
18296	if test $found = "no" ; then
18297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18299		fi
18300
18301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18303		fi
18304
18305		CFLAGS="$CFLAGS -Werror"
18306
18307		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18308$as_echo_n "checking if $CC supports -Werror... " >&6; }
18309		cacheid=xorg_cv_cc_flag__Werror
18310		if eval \${$cacheid+:} false; then :
18311  $as_echo_n "(cached) " >&6
18312else
18313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314/* end confdefs.h.  */
18315int i;
18316int
18317main ()
18318{
18319
18320  ;
18321  return 0;
18322}
18323_ACEOF
18324if ac_fn_c_try_link "$LINENO"; then :
18325  eval $cacheid=yes
18326else
18327  eval $cacheid=no
18328fi
18329rm -f core conftest.err conftest.$ac_objext \
18330    conftest$ac_exeext conftest.$ac_ext
18331fi
18332
18333
18334		CFLAGS="$xorg_testset_save_CFLAGS"
18335
18336		eval supported=\$$cacheid
18337		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18338$as_echo "$supported" >&6; }
18339		if test "$supported" = "yes" ; then
18340			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18341			found="yes"
18342		fi
18343	fi
18344
18345	if test $found = "no" ; then
18346		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18348		fi
18349
18350		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18352		fi
18353
18354		CFLAGS="$CFLAGS -errwarn"
18355
18356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18357$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18358		cacheid=xorg_cv_cc_flag__errwarn
18359		if eval \${$cacheid+:} false; then :
18360  $as_echo_n "(cached) " >&6
18361else
18362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363/* end confdefs.h.  */
18364int i;
18365int
18366main ()
18367{
18368
18369  ;
18370  return 0;
18371}
18372_ACEOF
18373if ac_fn_c_try_link "$LINENO"; then :
18374  eval $cacheid=yes
18375else
18376  eval $cacheid=no
18377fi
18378rm -f core conftest.err conftest.$ac_objext \
18379    conftest$ac_exeext conftest.$ac_ext
18380fi
18381
18382
18383		CFLAGS="$xorg_testset_save_CFLAGS"
18384
18385		eval supported=\$$cacheid
18386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18387$as_echo "$supported" >&6; }
18388		if test "$supported" = "yes" ; then
18389			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18390			found="yes"
18391		fi
18392	fi
18393
18394
18395
18396# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18397# activate it with -Werror, so we add it here explicitly.
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411xorg_testset_save_CFLAGS="$CFLAGS"
18412
18413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18418  $as_echo_n "(cached) " >&6
18419else
18420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421/* end confdefs.h.  */
18422int i;
18423_ACEOF
18424if ac_fn_c_try_compile "$LINENO"; then :
18425  xorg_cv_cc_flag_unknown_warning_option=yes
18426else
18427  xorg_cv_cc_flag_unknown_warning_option=no
18428fi
18429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430fi
18431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18434	CFLAGS="$xorg_testset_save_CFLAGS"
18435fi
18436
18437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18440	fi
18441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18445  $as_echo_n "(cached) " >&6
18446else
18447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448/* end confdefs.h.  */
18449int i;
18450_ACEOF
18451if ac_fn_c_try_compile "$LINENO"; then :
18452  xorg_cv_cc_flag_unused_command_line_argument=yes
18453else
18454  xorg_cv_cc_flag_unused_command_line_argument=no
18455fi
18456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18457fi
18458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18461	CFLAGS="$xorg_testset_save_CFLAGS"
18462fi
18463
18464found="no"
18465
18466	if test $found = "no" ; then
18467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18469		fi
18470
18471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18473		fi
18474
18475		CFLAGS="$CFLAGS -Werror=attributes"
18476
18477		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18478$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18479		cacheid=xorg_cv_cc_flag__Werror_attributes
18480		if eval \${$cacheid+:} false; then :
18481  $as_echo_n "(cached) " >&6
18482else
18483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484/* end confdefs.h.  */
18485int i;
18486int
18487main ()
18488{
18489
18490  ;
18491  return 0;
18492}
18493_ACEOF
18494if ac_fn_c_try_link "$LINENO"; then :
18495  eval $cacheid=yes
18496else
18497  eval $cacheid=no
18498fi
18499rm -f core conftest.err conftest.$ac_objext \
18500    conftest$ac_exeext conftest.$ac_ext
18501fi
18502
18503
18504		CFLAGS="$xorg_testset_save_CFLAGS"
18505
18506		eval supported=\$$cacheid
18507		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18508$as_echo "$supported" >&6; }
18509		if test "$supported" = "yes" ; then
18510			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18511			found="yes"
18512		fi
18513	fi
18514
18515
18516
18517if test "x$STRICT_COMPILE" = "xyes"; then
18518    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18519    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18520fi
18521
18522
18523
18524
18525
18526
18527cat >>confdefs.h <<_ACEOF
18528#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18529_ACEOF
18530
18531	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18532	if test "x$PVM" = "x"; then
18533		PVM="0"
18534	fi
18535
18536cat >>confdefs.h <<_ACEOF
18537#define PACKAGE_VERSION_MINOR $PVM
18538_ACEOF
18539
18540	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18541	if test "x$PVP" = "x"; then
18542		PVP="0"
18543	fi
18544
18545cat >>confdefs.h <<_ACEOF
18546#define PACKAGE_VERSION_PATCHLEVEL $PVP
18547_ACEOF
18548
18549
18550
18551CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18552mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18553|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18554echo 'git directory not found: installing possibly empty changelog.' >&2)"
18555
18556
18557
18558
18559macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18560INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18561mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18562|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18563echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18564
18565
18566
18567
18568
18569
18570if test x$APP_MAN_SUFFIX = x    ; then
18571    APP_MAN_SUFFIX=1
18572fi
18573if test x$APP_MAN_DIR = x    ; then
18574    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18575fi
18576
18577if test x$LIB_MAN_SUFFIX = x    ; then
18578    LIB_MAN_SUFFIX=3
18579fi
18580if test x$LIB_MAN_DIR = x    ; then
18581    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18582fi
18583
18584if test x$FILE_MAN_SUFFIX = x    ; then
18585    case $host_os in
18586	solaris*)	FILE_MAN_SUFFIX=4  ;;
18587	*)		FILE_MAN_SUFFIX=5  ;;
18588    esac
18589fi
18590if test x$FILE_MAN_DIR = x    ; then
18591    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18592fi
18593
18594if test x$MISC_MAN_SUFFIX = x    ; then
18595    case $host_os in
18596	solaris*)	MISC_MAN_SUFFIX=5  ;;
18597	*)		MISC_MAN_SUFFIX=7  ;;
18598    esac
18599fi
18600if test x$MISC_MAN_DIR = x    ; then
18601    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18602fi
18603
18604if test x$DRIVER_MAN_SUFFIX = x    ; then
18605    case $host_os in
18606	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18607	*)		DRIVER_MAN_SUFFIX=4  ;;
18608    esac
18609fi
18610if test x$DRIVER_MAN_DIR = x    ; then
18611    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18612fi
18613
18614if test x$ADMIN_MAN_SUFFIX = x    ; then
18615    case $host_os in
18616	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18617	*)		ADMIN_MAN_SUFFIX=8  ;;
18618    esac
18619fi
18620if test x$ADMIN_MAN_DIR = x    ; then
18621    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18622fi
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638XORG_MAN_PAGE="X Version 11"
18639
18640MAN_SUBSTS="\
18641	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18642	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18643	-e 's|__xservername__|Xorg|g' \
18644	-e 's|__xconfigfile__|xorg.conf|g' \
18645	-e 's|__projectroot__|\$(prefix)|g' \
18646	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18647	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18648	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18649	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18650	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18651	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18652	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18653
18654
18655
18656# Check whether --enable-silent-rules was given.
18657if test "${enable_silent_rules+set}" = set; then :
18658  enableval=$enable_silent_rules;
18659fi
18660
18661case $enable_silent_rules in # (((
18662  yes) AM_DEFAULT_VERBOSITY=0;;
18663   no) AM_DEFAULT_VERBOSITY=1;;
18664    *) AM_DEFAULT_VERBOSITY=0;;
18665esac
18666am_make=${MAKE-make}
18667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18668$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18669if ${am_cv_make_support_nested_variables+:} false; then :
18670  $as_echo_n "(cached) " >&6
18671else
18672  if $as_echo 'TRUE=$(BAR$(V))
18673BAR0=false
18674BAR1=true
18675V=1
18676am__doit:
18677	@$(TRUE)
18678.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18679  am_cv_make_support_nested_variables=yes
18680else
18681  am_cv_make_support_nested_variables=no
18682fi
18683fi
18684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18685$as_echo "$am_cv_make_support_nested_variables" >&6; }
18686if test $am_cv_make_support_nested_variables = yes; then
18687    AM_V='$(V)'
18688  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18689else
18690  AM_V=$AM_DEFAULT_VERBOSITY
18691  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18692fi
18693AM_BACKSLASH='\'
18694
18695
18696
18697
18698# Check whether --enable-devel-docs was given.
18699if test "${enable_devel_docs+set}" = set; then :
18700  enableval=$enable_devel_docs; build_devel_docs=$enableval
18701else
18702  build_devel_docs=yes
18703fi
18704
18705
18706 if test x$build_devel_docs = xyes; then
18707  ENABLE_DEVEL_DOCS_TRUE=
18708  ENABLE_DEVEL_DOCS_FALSE='#'
18709else
18710  ENABLE_DEVEL_DOCS_TRUE='#'
18711  ENABLE_DEVEL_DOCS_FALSE=
18712fi
18713
18714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18715$as_echo_n "checking whether to build developer documentation... " >&6; }
18716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18717$as_echo "$build_devel_docs" >&6; }
18718
18719
18720
18721
18722
18723# Check whether --with-xmlto was given.
18724if test "${with_xmlto+set}" = set; then :
18725  withval=$with_xmlto; use_xmlto=$withval
18726else
18727  use_xmlto=auto
18728fi
18729
18730
18731
18732if test "x$use_xmlto" = x"auto"; then
18733   # Extract the first word of "xmlto", so it can be a program name with args.
18734set dummy xmlto; ac_word=$2
18735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18736$as_echo_n "checking for $ac_word... " >&6; }
18737if ${ac_cv_path_XMLTO+:} false; then :
18738  $as_echo_n "(cached) " >&6
18739else
18740  case $XMLTO in
18741  [\\/]* | ?:[\\/]*)
18742  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18743  ;;
18744  *)
18745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746for as_dir in $PATH
18747do
18748  IFS=$as_save_IFS
18749  test -z "$as_dir" && as_dir=.
18750    for ac_exec_ext in '' $ac_executable_extensions; do
18751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18752    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18754    break 2
18755  fi
18756done
18757  done
18758IFS=$as_save_IFS
18759
18760  ;;
18761esac
18762fi
18763XMLTO=$ac_cv_path_XMLTO
18764if test -n "$XMLTO"; then
18765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18766$as_echo "$XMLTO" >&6; }
18767else
18768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769$as_echo "no" >&6; }
18770fi
18771
18772
18773   if test "x$XMLTO" = "x"; then
18774        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18775$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18776	have_xmlto=no
18777   else
18778        have_xmlto=yes
18779   fi
18780elif test "x$use_xmlto" = x"yes" ; then
18781   # Extract the first word of "xmlto", so it can be a program name with args.
18782set dummy xmlto; ac_word=$2
18783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18784$as_echo_n "checking for $ac_word... " >&6; }
18785if ${ac_cv_path_XMLTO+:} false; then :
18786  $as_echo_n "(cached) " >&6
18787else
18788  case $XMLTO in
18789  [\\/]* | ?:[\\/]*)
18790  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18791  ;;
18792  *)
18793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18794for as_dir in $PATH
18795do
18796  IFS=$as_save_IFS
18797  test -z "$as_dir" && as_dir=.
18798    for ac_exec_ext in '' $ac_executable_extensions; do
18799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18800    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18802    break 2
18803  fi
18804done
18805  done
18806IFS=$as_save_IFS
18807
18808  ;;
18809esac
18810fi
18811XMLTO=$ac_cv_path_XMLTO
18812if test -n "$XMLTO"; then
18813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18814$as_echo "$XMLTO" >&6; }
18815else
18816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817$as_echo "no" >&6; }
18818fi
18819
18820
18821   if test "x$XMLTO" = "x"; then
18822        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18823   fi
18824   have_xmlto=yes
18825elif test "x$use_xmlto" = x"no" ; then
18826   if test "x$XMLTO" != "x"; then
18827      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18828$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18829   fi
18830   have_xmlto=no
18831else
18832   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18833fi
18834
18835# Test for a minimum version of xmlto, if provided.
18836if test "$have_xmlto" = yes; then
18837    # scrape the xmlto version
18838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18839$as_echo_n "checking the xmlto version... " >&6; }
18840    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18842$as_echo "$xmlto_version" >&6; }
18843    as_arg_v1=$xmlto_version
18844as_arg_v2=0.0.22
18845awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18846case $? in #(
18847  1) :
18848    if test "x$use_xmlto" = xauto; then
18849            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18850$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18851            have_xmlto=no
18852        else
18853            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18854        fi ;; #(
18855  0) :
18856     ;; #(
18857  2) :
18858     ;; #(
18859  *) :
18860     ;;
18861esac
18862fi
18863
18864# Test for the ability of xmlto to generate a text target
18865have_xmlto_text=no
18866cat > conftest.xml << "EOF"
18867<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
18868                   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
18869<book id="saver">
18870</book>
18871EOF
18872if test "$have_xmlto" = yes; then :
18873  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18874  have_xmlto_text=yes
18875else
18876  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18877$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18878fi
18879fi
18880rm -f conftest.xml
18881 if test $have_xmlto_text = yes; then
18882  HAVE_XMLTO_TEXT_TRUE=
18883  HAVE_XMLTO_TEXT_FALSE='#'
18884else
18885  HAVE_XMLTO_TEXT_TRUE='#'
18886  HAVE_XMLTO_TEXT_FALSE=
18887fi
18888
18889 if test "$have_xmlto" = yes; then
18890  HAVE_XMLTO_TRUE=
18891  HAVE_XMLTO_FALSE='#'
18892else
18893  HAVE_XMLTO_TRUE='#'
18894  HAVE_XMLTO_FALSE=
18895fi
18896
18897
18898
18899
18900
18901
18902# Check whether --with-fop was given.
18903if test "${with_fop+set}" = set; then :
18904  withval=$with_fop; use_fop=$withval
18905else
18906  use_fop=auto
18907fi
18908
18909
18910
18911if test "x$use_fop" = x"auto"; then
18912   # Extract the first word of "fop", so it can be a program name with args.
18913set dummy fop; ac_word=$2
18914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18915$as_echo_n "checking for $ac_word... " >&6; }
18916if ${ac_cv_path_FOP+:} false; then :
18917  $as_echo_n "(cached) " >&6
18918else
18919  case $FOP in
18920  [\\/]* | ?:[\\/]*)
18921  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18922  ;;
18923  *)
18924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18925for as_dir in $PATH
18926do
18927  IFS=$as_save_IFS
18928  test -z "$as_dir" && as_dir=.
18929    for ac_exec_ext in '' $ac_executable_extensions; do
18930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18931    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18933    break 2
18934  fi
18935done
18936  done
18937IFS=$as_save_IFS
18938
18939  ;;
18940esac
18941fi
18942FOP=$ac_cv_path_FOP
18943if test -n "$FOP"; then
18944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18945$as_echo "$FOP" >&6; }
18946else
18947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18948$as_echo "no" >&6; }
18949fi
18950
18951
18952   if test "x$FOP" = "x"; then
18953        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18954$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18955	have_fop=no
18956   else
18957        have_fop=yes
18958   fi
18959elif test "x$use_fop" = x"yes" ; then
18960   # Extract the first word of "fop", so it can be a program name with args.
18961set dummy fop; ac_word=$2
18962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18963$as_echo_n "checking for $ac_word... " >&6; }
18964if ${ac_cv_path_FOP+:} false; then :
18965  $as_echo_n "(cached) " >&6
18966else
18967  case $FOP in
18968  [\\/]* | ?:[\\/]*)
18969  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18970  ;;
18971  *)
18972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973for as_dir in $PATH
18974do
18975  IFS=$as_save_IFS
18976  test -z "$as_dir" && as_dir=.
18977    for ac_exec_ext in '' $ac_executable_extensions; do
18978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18979    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18981    break 2
18982  fi
18983done
18984  done
18985IFS=$as_save_IFS
18986
18987  ;;
18988esac
18989fi
18990FOP=$ac_cv_path_FOP
18991if test -n "$FOP"; then
18992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18993$as_echo "$FOP" >&6; }
18994else
18995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18996$as_echo "no" >&6; }
18997fi
18998
18999
19000   if test "x$FOP" = "x"; then
19001        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19002   fi
19003   have_fop=yes
19004elif test "x$use_fop" = x"no" ; then
19005   if test "x$FOP" != "x"; then
19006      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19007$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19008   fi
19009   have_fop=no
19010else
19011   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19012fi
19013
19014# Test for a minimum version of fop, if provided.
19015
19016 if test "$have_fop" = yes; then
19017  HAVE_FOP_TRUE=
19018  HAVE_FOP_FALSE='#'
19019else
19020  HAVE_FOP_TRUE='#'
19021  HAVE_FOP_FALSE=
19022fi
19023
19024
19025
19026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
19027$as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; }
19028XORG_SGML_PATH=
19029if test -n "$PKG_CONFIG" && \
19030    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
19031  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
19032  ac_status=$?
19033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19034  test $ac_status = 0; }; then
19035  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19036else
19037  :
19038
19039fi
19040
19041# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19042# the path and the name of the doc stylesheet
19043if test "x$XORG_SGML_PATH" != "x" ; then
19044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19045$as_echo "$XORG_SGML_PATH" >&6; }
19046   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19047   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19048else
19049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050$as_echo "no" >&6; }
19051fi
19052
19053
19054
19055
19056 if test "x$XSL_STYLESHEET" != "x"; then
19057  HAVE_STYLESHEETS_TRUE=
19058  HAVE_STYLESHEETS_FALSE='#'
19059else
19060  HAVE_STYLESHEETS_TRUE='#'
19061  HAVE_STYLESHEETS_FALSE=
19062fi
19063
19064
19065
19066# Checks for header files.
19067for ac_header in endian.h poll.h sys/poll.h
19068do :
19069  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19070ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19071if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19072  cat >>confdefs.h <<_ACEOF
19073#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19074_ACEOF
19075
19076fi
19077
19078done
19079
19080
19081# Checks for library functions.
19082for ac_func in poll readlink
19083do :
19084  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19085ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19086if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19087  cat >>confdefs.h <<_ACEOF
19088#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19089_ACEOF
19090
19091fi
19092done
19093
19094
19095# If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
19096# must first be located explicitly.
19097
19098
19099
19100
19101
19102
19103
19104if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19105	if test -n "$ac_tool_prefix"; then
19106  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19107set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19109$as_echo_n "checking for $ac_word... " >&6; }
19110if ${ac_cv_path_PKG_CONFIG+:} false; then :
19111  $as_echo_n "(cached) " >&6
19112else
19113  case $PKG_CONFIG in
19114  [\\/]* | ?:[\\/]*)
19115  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19116  ;;
19117  *)
19118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19119for as_dir in $PATH
19120do
19121  IFS=$as_save_IFS
19122  test -z "$as_dir" && as_dir=.
19123    for ac_exec_ext in '' $ac_executable_extensions; do
19124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19125    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19127    break 2
19128  fi
19129done
19130  done
19131IFS=$as_save_IFS
19132
19133  ;;
19134esac
19135fi
19136PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19137if test -n "$PKG_CONFIG"; then
19138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19139$as_echo "$PKG_CONFIG" >&6; }
19140else
19141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142$as_echo "no" >&6; }
19143fi
19144
19145
19146fi
19147if test -z "$ac_cv_path_PKG_CONFIG"; then
19148  ac_pt_PKG_CONFIG=$PKG_CONFIG
19149  # Extract the first word of "pkg-config", so it can be a program name with args.
19150set dummy pkg-config; ac_word=$2
19151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19152$as_echo_n "checking for $ac_word... " >&6; }
19153if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19154  $as_echo_n "(cached) " >&6
19155else
19156  case $ac_pt_PKG_CONFIG in
19157  [\\/]* | ?:[\\/]*)
19158  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19159  ;;
19160  *)
19161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19162for as_dir in $PATH
19163do
19164  IFS=$as_save_IFS
19165  test -z "$as_dir" && as_dir=.
19166    for ac_exec_ext in '' $ac_executable_extensions; do
19167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19168    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19170    break 2
19171  fi
19172done
19173  done
19174IFS=$as_save_IFS
19175
19176  ;;
19177esac
19178fi
19179ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19180if test -n "$ac_pt_PKG_CONFIG"; then
19181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19182$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19183else
19184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19185$as_echo "no" >&6; }
19186fi
19187
19188  if test "x$ac_pt_PKG_CONFIG" = x; then
19189    PKG_CONFIG=""
19190  else
19191    case $cross_compiling:$ac_tool_warned in
19192yes:)
19193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19195ac_tool_warned=yes ;;
19196esac
19197    PKG_CONFIG=$ac_pt_PKG_CONFIG
19198  fi
19199else
19200  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19201fi
19202
19203fi
19204if test -n "$PKG_CONFIG"; then
19205	_pkg_min_version=0.9.0
19206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19207$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19208	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19210$as_echo "yes" >&6; }
19211	else
19212		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19213$as_echo "no" >&6; }
19214		PKG_CONFIG=""
19215	fi
19216fi
19217
19218#
19219# select libraries to include
19220#
19221
19222XFONT_FONTFILE=no
19223
19224#
19225# FreeType for all scalable (OpenType, TrueType, PostScript) and
19226# some bitmap formats (BDF & PCF)
19227#
19228# Check whether --enable-freetype was given.
19229if test "${enable_freetype+set}" = set; then :
19230  enableval=$enable_freetype; XFONT_FREETYPE=$enableval
19231else
19232  XFONT_FREETYPE=yes
19233fi
19234
19235 if test x$XFONT_FREETYPE = xyes; then
19236  XFONT_FREETYPE_TRUE=
19237  XFONT_FREETYPE_FALSE='#'
19238else
19239  XFONT_FREETYPE_TRUE='#'
19240  XFONT_FREETYPE_FALSE=
19241fi
19242
19243if test x$XFONT_FREETYPE = xyes; then
19244
19245$as_echo "#define XFONT_FREETYPE 1" >>confdefs.h
19246
19247
19248# Check whether --with-freetype-config was given.
19249if test "${with_freetype_config+set}" = set; then :
19250  withval=$with_freetype_config; freetype_config=$withval
19251else
19252  freetype_config=auto
19253fi
19254
19255
19256	if test "$freetype_config" = "auto" ; then
19257
19258pkg_failed=no
19259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
19260$as_echo_n "checking for FREETYPE... " >&6; }
19261
19262if test -n "$FREETYPE_CFLAGS"; then
19263    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
19264 elif test -n "$PKG_CONFIG"; then
19265    if test -n "$PKG_CONFIG" && \
19266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
19267  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
19268  ac_status=$?
19269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19270  test $ac_status = 0; }; then
19271  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
19272		      test "x$?" != "x0" && pkg_failed=yes
19273else
19274  pkg_failed=yes
19275fi
19276 else
19277    pkg_failed=untried
19278fi
19279if test -n "$FREETYPE_LIBS"; then
19280    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
19281 elif test -n "$PKG_CONFIG"; then
19282    if test -n "$PKG_CONFIG" && \
19283    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
19284  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
19285  ac_status=$?
19286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19287  test $ac_status = 0; }; then
19288  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
19289		      test "x$?" != "x0" && pkg_failed=yes
19290else
19291  pkg_failed=yes
19292fi
19293 else
19294    pkg_failed=untried
19295fi
19296
19297
19298
19299if test $pkg_failed = yes; then
19300   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301$as_echo "no" >&6; }
19302
19303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19304        _pkg_short_errors_supported=yes
19305else
19306        _pkg_short_errors_supported=no
19307fi
19308        if test $_pkg_short_errors_supported = yes; then
19309	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
19310        else
19311	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
19312        fi
19313	# Put the nasty error message in config.log where it belongs
19314	echo "$FREETYPE_PKG_ERRORS" >&5
19315
19316	freetype_config=yes
19317elif test $pkg_failed = untried; then
19318     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319$as_echo "no" >&6; }
19320	freetype_config=yes
19321else
19322	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
19323	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
19324        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19325$as_echo "yes" >&6; }
19326	freetype_config=no
19327fi
19328	fi
19329
19330	if test "$freetype_config" = "yes"; then
19331		# Extract the first word of "freetype-config", so it can be a program name with args.
19332set dummy freetype-config; ac_word=$2
19333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19334$as_echo_n "checking for $ac_word... " >&6; }
19335if ${ac_cv_path_ft_config+:} false; then :
19336  $as_echo_n "(cached) " >&6
19337else
19338  case $ft_config in
19339  [\\/]* | ?:[\\/]*)
19340  ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
19341  ;;
19342  *)
19343  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19344for as_dir in $PATH
19345do
19346  IFS=$as_save_IFS
19347  test -z "$as_dir" && as_dir=.
19348    for ac_exec_ext in '' $ac_executable_extensions; do
19349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19350    ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
19351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19352    break 2
19353  fi
19354done
19355  done
19356IFS=$as_save_IFS
19357
19358  test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
19359  ;;
19360esac
19361fi
19362ft_config=$ac_cv_path_ft_config
19363if test -n "$ft_config"; then
19364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
19365$as_echo "$ft_config" >&6; }
19366else
19367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19368$as_echo "no" >&6; }
19369fi
19370
19371
19372		if test "$ft_config" = "no"; then
19373			as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
19374		fi
19375	else
19376		ft_config="$freetype_config"
19377	fi
19378
19379	if test "$freetype_config" != "no"; then
19380		FREETYPE_CFLAGS="`$ft_config --cflags`"
19381		FREETYPE_LIBS="`$ft_config --libs`"
19382	fi
19383	FREETYPE_REQUIRES="freetype2"
19384	XFONT_FONTFILE=yes
19385else
19386	FREETYPE_CFLAGS=""
19387	FREETYPE_LIBS=""
19388	FREETYPE_REQUIRES=""
19389fi
19390
19391
19392
19393
19394#
19395# Bitmap fonts in files:
19396#	Builtins (gzipped pcf format in .text segment)
19397#	PCF
19398#	BDF
19399#	SNF
19400#
19401
19402
19403$as_echo "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h
19404
19405X_GZIP_FONT_COMPRESSION=1
19406
19407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
19408$as_echo_n "checking for gzopen in -lz... " >&6; }
19409if ${ac_cv_lib_z_gzopen+:} false; then :
19410  $as_echo_n "(cached) " >&6
19411else
19412  ac_check_lib_save_LIBS=$LIBS
19413LIBS="-lz  $LIBS"
19414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415/* end confdefs.h.  */
19416
19417/* Override any GCC internal prototype to avoid an error.
19418   Use char because int might match the return type of a GCC
19419   builtin and then its argument prototype would still apply.  */
19420#ifdef __cplusplus
19421extern "C"
19422#endif
19423char gzopen ();
19424int
19425main ()
19426{
19427return gzopen ();
19428  ;
19429  return 0;
19430}
19431_ACEOF
19432if ac_fn_c_try_link "$LINENO"; then :
19433  ac_cv_lib_z_gzopen=yes
19434else
19435  ac_cv_lib_z_gzopen=no
19436fi
19437rm -f core conftest.err conftest.$ac_objext \
19438    conftest$ac_exeext conftest.$ac_ext
19439LIBS=$ac_check_lib_save_LIBS
19440fi
19441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
19442$as_echo "$ac_cv_lib_z_gzopen" >&6; }
19443if test "x$ac_cv_lib_z_gzopen" = xyes; then :
19444  Z_LIBS=-lz
19445else
19446  as_fn_error $? "*** zlib is required" "$LINENO" 5
19447fi
19448
19449
19450
19451# Check whether --with-bzip2 was given.
19452if test "${with_bzip2+set}" = set; then :
19453  withval=$with_bzip2;
19454else
19455  with_bzip2=no
19456fi
19457
19458if test "x$with_bzip2" = xyes; then
19459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
19460$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
19461if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
19462  $as_echo_n "(cached) " >&6
19463else
19464  ac_check_lib_save_LIBS=$LIBS
19465LIBS="-lbz2  $LIBS"
19466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19467/* end confdefs.h.  */
19468
19469/* Override any GCC internal prototype to avoid an error.
19470   Use char because int might match the return type of a GCC
19471   builtin and then its argument prototype would still apply.  */
19472#ifdef __cplusplus
19473extern "C"
19474#endif
19475char BZ2_bzopen ();
19476int
19477main ()
19478{
19479return BZ2_bzopen ();
19480  ;
19481  return 0;
19482}
19483_ACEOF
19484if ac_fn_c_try_link "$LINENO"; then :
19485  ac_cv_lib_bz2_BZ2_bzopen=yes
19486else
19487  ac_cv_lib_bz2_BZ2_bzopen=no
19488fi
19489rm -f core conftest.err conftest.$ac_objext \
19490    conftest$ac_exeext conftest.$ac_ext
19491LIBS=$ac_check_lib_save_LIBS
19492fi
19493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
19494$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
19495if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
19496  Z_LIBS="$Z_LIBS -lbz2"
19497else
19498  as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
19499fi
19500
19501
19502$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
19503
19504fi
19505 if test "x$with_bzip2" = xyes ; then
19506  X_BZIP2_FONT_COMPRESSION_TRUE=
19507  X_BZIP2_FONT_COMPRESSION_FALSE='#'
19508else
19509  X_BZIP2_FONT_COMPRESSION_TRUE='#'
19510  X_BZIP2_FONT_COMPRESSION_FALSE=
19511fi
19512
19513
19514
19515# Check whether --enable-builtins was given.
19516if test "${enable_builtins+set}" = set; then :
19517  enableval=$enable_builtins; XFONT_BUILTINS=$enableval
19518else
19519  XFONT_BUILTINS=yes
19520fi
19521
19522 if test "x$XFONT_BUILTINS" = xyes ; then
19523  XFONT_BUILTINS_TRUE=
19524  XFONT_BUILTINS_FALSE='#'
19525else
19526  XFONT_BUILTINS_TRUE='#'
19527  XFONT_BUILTINS_FALSE=
19528fi
19529
19530if test "x$XFONT_BUILTINS" = xyes; then
19531
19532$as_echo "#define XFONT_BUILTINS 1" >>confdefs.h
19533
19534	XFONT_BITMAP=yes
19535fi
19536
19537# Check whether --enable-pcfformat was given.
19538if test "${enable_pcfformat+set}" = set; then :
19539  enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
19540else
19541  XFONT_PCFFORMAT=yes
19542fi
19543
19544 if test "x$XFONT_PCFFORMAT" = xyes; then
19545  XFONT_PCFFORMAT_TRUE=
19546  XFONT_PCFFORMAT_FALSE='#'
19547else
19548  XFONT_PCFFORMAT_TRUE='#'
19549  XFONT_PCFFORMAT_FALSE=
19550fi
19551
19552if test "x$XFONT_PCFFORMAT" = xyes; then
19553
19554$as_echo "#define XFONT_PCFFORMAT 1" >>confdefs.h
19555
19556	XFONT_BITMAP=yes
19557fi
19558
19559 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then
19560  XFONT_PCF_OR_BUILTIN_TRUE=
19561  XFONT_PCF_OR_BUILTIN_FALSE='#'
19562else
19563  XFONT_PCF_OR_BUILTIN_TRUE='#'
19564  XFONT_PCF_OR_BUILTIN_FALSE=
19565fi
19566
19567
19568# Check whether --enable-bdfformat was given.
19569if test "${enable_bdfformat+set}" = set; then :
19570  enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
19571else
19572  XFONT_BDFFORMAT=yes
19573fi
19574
19575 if test "x$XFONT_BDFFORMAT" = xyes; then
19576  XFONT_BDFFORMAT_TRUE=
19577  XFONT_BDFFORMAT_FALSE='#'
19578else
19579  XFONT_BDFFORMAT_TRUE='#'
19580  XFONT_BDFFORMAT_FALSE=
19581fi
19582
19583if test "x$XFONT_BDFFORMAT" = xyes; then
19584
19585$as_echo "#define XFONT_BDFFORMAT 1" >>confdefs.h
19586
19587	XFONT_BITMAP=yes
19588fi
19589
19590# Check whether --enable-snfformat was given.
19591if test "${enable_snfformat+set}" = set; then :
19592  enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
19593else
19594  XFONT_SNFFORMAT=no
19595fi
19596
19597 if test "x$XFONT_SNFFORMAT" = xyes; then
19598  XFONT_SNFFORMAT_TRUE=
19599  XFONT_SNFFORMAT_FALSE='#'
19600else
19601  XFONT_SNFFORMAT_TRUE='#'
19602  XFONT_SNFFORMAT_FALSE=
19603fi
19604
19605if test "x$XFONT_SNFFORMAT" = xyes; then
19606
19607$as_echo "#define XFONT_SNFFORMAT 1" >>confdefs.h
19608
19609	XFONT_BITMAP=yes
19610fi
19611
19612 if test "x$XFONT_BITMAP" = xyes ; then
19613  XFONT_BITMAP_TRUE=
19614  XFONT_BITMAP_FALSE='#'
19615else
19616  XFONT_BITMAP_TRUE='#'
19617  XFONT_BITMAP_FALSE=
19618fi
19619
19620if test "x$XFONT_BITMAP" = xyes; then
19621
19622$as_echo "#define XFONT_BITMAP 1" >>confdefs.h
19623
19624	XFONT_FONTFILE=yes
19625fi
19626
19627 if test "x$XFONT_FONTFILE" = xyes; then
19628  XFONT_FONTFILE_TRUE=
19629  XFONT_FONTFILE_FALSE='#'
19630else
19631  XFONT_FONTFILE_TRUE='#'
19632  XFONT_FONTFILE_FALSE=
19633fi
19634
19635if test "x$XFONT_FONTFILE" = xyes; then
19636
19637$as_echo "#define XFONT_FONTFILE 1" >>confdefs.h
19638
19639fi
19640
19641#
19642# Support connection to font servers?
19643#
19644
19645# Check whether --enable-fc was given.
19646if test "${enable_fc+set}" = set; then :
19647  enableval=$enable_fc; XFONT_FC=$enableval
19648else
19649  XFONT_FC=yes
19650fi
19651
19652 if test "x$XFONT_FC" = xyes; then
19653  XFONT_FC_TRUE=
19654  XFONT_FC_FALSE='#'
19655else
19656  XFONT_FC_TRUE='#'
19657  XFONT_FC_FALSE=
19658fi
19659
19660if test "x$XFONT_FC" = xyes; then
19661
19662$as_echo "#define XFONT_FC 1" >>confdefs.h
19663
19664fi
19665
19666
19667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
19668$as_echo_n "checking for hypot in -lm... " >&6; }
19669if ${ac_cv_lib_m_hypot+:} false; then :
19670  $as_echo_n "(cached) " >&6
19671else
19672  ac_check_lib_save_LIBS=$LIBS
19673LIBS="-lm  $LIBS"
19674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19675/* end confdefs.h.  */
19676
19677/* Override any GCC internal prototype to avoid an error.
19678   Use char because int might match the return type of a GCC
19679   builtin and then its argument prototype would still apply.  */
19680#ifdef __cplusplus
19681extern "C"
19682#endif
19683char hypot ();
19684int
19685main ()
19686{
19687return hypot ();
19688  ;
19689  return 0;
19690}
19691_ACEOF
19692if ac_fn_c_try_link "$LINENO"; then :
19693  ac_cv_lib_m_hypot=yes
19694else
19695  ac_cv_lib_m_hypot=no
19696fi
19697rm -f core conftest.err conftest.$ac_objext \
19698    conftest$ac_exeext conftest.$ac_ext
19699LIBS=$ac_check_lib_save_LIBS
19700fi
19701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
19702$as_echo "$ac_cv_lib_m_hypot" >&6; }
19703if test "x$ac_cv_lib_m_hypot" = xyes; then :
19704  MATH_LIBS=-lm
19705
19706else
19707  as_fn_error $? "*** libm is required" "$LINENO" 5
19708fi
19709
19710
19711
19712pkg_failed=no
19713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5
19714$as_echo_n "checking for XFONT... " >&6; }
19715
19716if test -n "$XFONT_CFLAGS"; then
19717    pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
19718 elif test -n "$PKG_CONFIG"; then
19719    if test -n "$PKG_CONFIG" && \
19720    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19721  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19722  ac_status=$?
19723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19724  test $ac_status = 0; }; then
19725  pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19726		      test "x$?" != "x0" && pkg_failed=yes
19727else
19728  pkg_failed=yes
19729fi
19730 else
19731    pkg_failed=untried
19732fi
19733if test -n "$XFONT_LIBS"; then
19734    pkg_cv_XFONT_LIBS="$XFONT_LIBS"
19735 elif test -n "$PKG_CONFIG"; then
19736    if test -n "$PKG_CONFIG" && \
19737    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19738  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19739  ac_status=$?
19740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19741  test $ac_status = 0; }; then
19742  pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19743		      test "x$?" != "x0" && pkg_failed=yes
19744else
19745  pkg_failed=yes
19746fi
19747 else
19748    pkg_failed=untried
19749fi
19750
19751
19752
19753if test $pkg_failed = yes; then
19754   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755$as_echo "no" >&6; }
19756
19757if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19758        _pkg_short_errors_supported=yes
19759else
19760        _pkg_short_errors_supported=no
19761fi
19762        if test $_pkg_short_errors_supported = yes; then
19763	        XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19764        else
19765	        XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19766        fi
19767	# Put the nasty error message in config.log where it belongs
19768	echo "$XFONT_PKG_ERRORS" >&5
19769
19770	as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met:
19771
19772$XFONT_PKG_ERRORS
19773
19774Consider adjusting the PKG_CONFIG_PATH environment variable if you
19775installed software in a non-standard prefix.
19776
19777Alternatively, you may set the environment variables XFONT_CFLAGS
19778and XFONT_LIBS to avoid the need to call pkg-config.
19779See the pkg-config man page for more details." "$LINENO" 5
19780elif test $pkg_failed = untried; then
19781     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782$as_echo "no" >&6; }
19783	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19785as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19786is in your PATH or set the PKG_CONFIG environment variable to the full
19787path to pkg-config.
19788
19789Alternatively, you may set the environment variables XFONT_CFLAGS
19790and XFONT_LIBS to avoid the need to call pkg-config.
19791See the pkg-config man page for more details.
19792
19793To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19794See \`config.log' for more details" "$LINENO" 5; }
19795else
19796	XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
19797	XFONT_LIBS=$pkg_cv_XFONT_LIBS
19798        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19799$as_echo "yes" >&6; }
19800
19801fi
19802
19803# Transport selection macro from xtrans.m4
19804
19805
19806 case $host_os in
19807	mingw*)	unixdef="no"   ;;
19808	*)	unixdef="yes"  ;;
19809 esac
19810 # Check whether --enable-unix-transport was given.
19811if test "${enable_unix_transport+set}" = set; then :
19812  enableval=$enable_unix_transport; UNIXCONN=$enableval
19813else
19814  UNIXCONN=$unixdef
19815fi
19816
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19818$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19819 if test "$UNIXCONN" = "yes"; then
19820
19821$as_echo "#define UNIXCONN 1" >>confdefs.h
19822
19823 fi
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19825$as_echo "$UNIXCONN" >&6; }
19826 # Check whether --enable-tcp-transport was given.
19827if test "${enable_tcp_transport+set}" = set; then :
19828  enableval=$enable_tcp_transport; TCPCONN=$enableval
19829else
19830  TCPCONN=yes
19831fi
19832
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19834$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19836$as_echo "$TCPCONN" >&6; }
19837 if test "$TCPCONN" = "yes"; then
19838
19839$as_echo "#define TCPCONN 1" >>confdefs.h
19840
19841
19842 # SVR4 hides these in libraries other than libc
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19844$as_echo_n "checking for library containing socket... " >&6; }
19845if ${ac_cv_search_socket+:} false; then :
19846  $as_echo_n "(cached) " >&6
19847else
19848  ac_func_search_save_LIBS=$LIBS
19849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850/* end confdefs.h.  */
19851
19852/* Override any GCC internal prototype to avoid an error.
19853   Use char because int might match the return type of a GCC
19854   builtin and then its argument prototype would still apply.  */
19855#ifdef __cplusplus
19856extern "C"
19857#endif
19858char socket ();
19859int
19860main ()
19861{
19862return socket ();
19863  ;
19864  return 0;
19865}
19866_ACEOF
19867for ac_lib in '' socket; do
19868  if test -z "$ac_lib"; then
19869    ac_res="none required"
19870  else
19871    ac_res=-l$ac_lib
19872    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19873  fi
19874  if ac_fn_c_try_link "$LINENO"; then :
19875  ac_cv_search_socket=$ac_res
19876fi
19877rm -f core conftest.err conftest.$ac_objext \
19878    conftest$ac_exeext
19879  if ${ac_cv_search_socket+:} false; then :
19880  break
19881fi
19882done
19883if ${ac_cv_search_socket+:} false; then :
19884
19885else
19886  ac_cv_search_socket=no
19887fi
19888rm conftest.$ac_ext
19889LIBS=$ac_func_search_save_LIBS
19890fi
19891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19892$as_echo "$ac_cv_search_socket" >&6; }
19893ac_res=$ac_cv_search_socket
19894if test "$ac_res" != no; then :
19895  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19896
19897fi
19898
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19900$as_echo_n "checking for library containing gethostbyname... " >&6; }
19901if ${ac_cv_search_gethostbyname+:} false; then :
19902  $as_echo_n "(cached) " >&6
19903else
19904  ac_func_search_save_LIBS=$LIBS
19905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19906/* end confdefs.h.  */
19907
19908/* Override any GCC internal prototype to avoid an error.
19909   Use char because int might match the return type of a GCC
19910   builtin and then its argument prototype would still apply.  */
19911#ifdef __cplusplus
19912extern "C"
19913#endif
19914char gethostbyname ();
19915int
19916main ()
19917{
19918return gethostbyname ();
19919  ;
19920  return 0;
19921}
19922_ACEOF
19923for ac_lib in '' nsl; do
19924  if test -z "$ac_lib"; then
19925    ac_res="none required"
19926  else
19927    ac_res=-l$ac_lib
19928    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19929  fi
19930  if ac_fn_c_try_link "$LINENO"; then :
19931  ac_cv_search_gethostbyname=$ac_res
19932fi
19933rm -f core conftest.err conftest.$ac_objext \
19934    conftest$ac_exeext
19935  if ${ac_cv_search_gethostbyname+:} false; then :
19936  break
19937fi
19938done
19939if ${ac_cv_search_gethostbyname+:} false; then :
19940
19941else
19942  ac_cv_search_gethostbyname=no
19943fi
19944rm conftest.$ac_ext
19945LIBS=$ac_func_search_save_LIBS
19946fi
19947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19948$as_echo "$ac_cv_search_gethostbyname" >&6; }
19949ac_res=$ac_cv_search_gethostbyname
19950if test "$ac_res" != no; then :
19951  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19952
19953fi
19954
19955 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19957$as_echo_n "checking for main in -lws2_32... " >&6; }
19958if ${ac_cv_lib_ws2_32_main+:} false; then :
19959  $as_echo_n "(cached) " >&6
19960else
19961  ac_check_lib_save_LIBS=$LIBS
19962LIBS="-lws2_32  $LIBS"
19963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19964/* end confdefs.h.  */
19965
19966
19967int
19968main ()
19969{
19970return main ();
19971  ;
19972  return 0;
19973}
19974_ACEOF
19975if ac_fn_c_try_link "$LINENO"; then :
19976  ac_cv_lib_ws2_32_main=yes
19977else
19978  ac_cv_lib_ws2_32_main=no
19979fi
19980rm -f core conftest.err conftest.$ac_objext \
19981    conftest$ac_exeext conftest.$ac_ext
19982LIBS=$ac_check_lib_save_LIBS
19983fi
19984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19985$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19986if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19987  cat >>confdefs.h <<_ACEOF
19988#define HAVE_LIBWS2_32 1
19989_ACEOF
19990
19991  LIBS="-lws2_32 $LIBS"
19992
19993fi
19994
19995 fi
19996
19997 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19998 # Check whether --enable-ipv6 was given.
19999if test "${enable_ipv6+set}" = set; then :
20000  enableval=$enable_ipv6; IPV6CONN=$enableval
20001else
20002  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20003if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20004  IPV6CONN=yes
20005else
20006  IPV6CONN=no
20007fi
20008
20009fi
20010
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20012$as_echo_n "checking if IPv6 support should be built... " >&6; }
20013 if test "$IPV6CONN" = "yes"; then
20014
20015$as_echo "#define IPv6 1" >>confdefs.h
20016
20017 fi
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20019$as_echo "$IPV6CONN" >&6; }
20020
20021 # 4.3BSD-Reno added a new member to struct sockaddr_in
20022 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20023#include <sys/types.h>
20024#include <sys/socket.h>
20025#include <netinet/in.h>
20026
20027"
20028if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
20029
20030$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
20031
20032fi
20033
20034
20035 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20036 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20037$ac_includes_default
20038#include <sys/socket.h>
20039"
20040if test "x$ac_cv_type_socklen_t" = xyes; then :
20041
20042cat >>confdefs.h <<_ACEOF
20043#define HAVE_SOCKLEN_T 1
20044_ACEOF
20045
20046
20047fi
20048
20049
20050 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20051 # _XOPEN_SOURCE to get it (such as on Solaris)
20052 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20053$ac_includes_default
20054#include <sys/socket.h>
20055
20056"
20057if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20058
20059fi
20060
20061 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20062 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20063     unset ac_cv_member_struct_msghdr_msg_control
20064     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20065$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20066     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20067#define _XOPEN_SOURCE 600
20068$ac_includes_default
20069#include <sys/socket.h>
20070
20071"
20072if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20073
20074$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20075
20076
20077fi
20078
20079 fi
20080 # If that didn't work, fall back to XPG5/UNIX98 with C89
20081 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20082     unset ac_cv_member_struct_msghdr_msg_control
20083     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20084$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20085     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20086#define _XOPEN_SOURCE 500
20087$ac_includes_default
20088#include <sys/socket.h>
20089
20090"
20091if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20092
20093$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20094
20095
20096fi
20097
20098 fi
20099
20100
20101
20102 fi
20103 case $host_os in
20104	solaris*|sco*|sysv4*)	localdef="yes" ;;
20105	*)			localdef="no"  ;;
20106 esac
20107 # Check whether --enable-local-transport was given.
20108if test "${enable_local_transport+set}" = set; then :
20109  enableval=$enable_local_transport; LOCALCONN=$enableval
20110else
20111  LOCALCONN=$localdef
20112fi
20113
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20115$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20117$as_echo "$LOCALCONN" >&6; }
20118 if test "$LOCALCONN" = "yes"; then
20119
20120$as_echo "#define LOCALCONN 1" >>confdefs.h
20121
20122 fi
20123
20124
20125
20126case $host_os in
20127    linux*)
20128        OS_CFLAGS="-D_XOPEN_SOURCE"
20129        ;;
20130    *)
20131        OS_CFLAGS=
20132        ;;
20133esac
20134
20135
20136ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/fontfile/Makefile src/FreeType/Makefile src/builtins/Makefile src/bitmap/Makefile src/fc/Makefile src/util/Makefile src/stubs/Makefile xfont.pc"
20137
20138cat >confcache <<\_ACEOF
20139# This file is a shell script that caches the results of configure
20140# tests run on this system so they can be shared between configure
20141# scripts and configure runs, see configure's option --config-cache.
20142# It is not useful on other systems.  If it contains results you don't
20143# want to keep, you may remove or edit it.
20144#
20145# config.status only pays attention to the cache file if you give it
20146# the --recheck option to rerun configure.
20147#
20148# `ac_cv_env_foo' variables (set or unset) will be overridden when
20149# loading this file, other *unset* `ac_cv_foo' will be assigned the
20150# following values.
20151
20152_ACEOF
20153
20154# The following way of writing the cache mishandles newlines in values,
20155# but we know of no workaround that is simple, portable, and efficient.
20156# So, we kill variables containing newlines.
20157# Ultrix sh set writes to stderr and can't be redirected directly,
20158# and sets the high bit in the cache file unless we assign to the vars.
20159(
20160  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20161    eval ac_val=\$$ac_var
20162    case $ac_val in #(
20163    *${as_nl}*)
20164      case $ac_var in #(
20165      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20167      esac
20168      case $ac_var in #(
20169      _ | IFS | as_nl) ;; #(
20170      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20171      *) { eval $ac_var=; unset $ac_var;} ;;
20172      esac ;;
20173    esac
20174  done
20175
20176  (set) 2>&1 |
20177    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20178    *${as_nl}ac_space=\ *)
20179      # `set' does not quote correctly, so add quotes: double-quote
20180      # substitution turns \\\\ into \\, and sed turns \\ into \.
20181      sed -n \
20182	"s/'/'\\\\''/g;
20183	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20184      ;; #(
20185    *)
20186      # `set' quotes correctly as required by POSIX, so do not add quotes.
20187      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20188      ;;
20189    esac |
20190    sort
20191) |
20192  sed '
20193     /^ac_cv_env_/b end
20194     t clear
20195     :clear
20196     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20197     t end
20198     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20199     :end' >>confcache
20200if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20201  if test -w "$cache_file"; then
20202    if test "x$cache_file" != "x/dev/null"; then
20203      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20204$as_echo "$as_me: updating cache $cache_file" >&6;}
20205      if test ! -f "$cache_file" || test -h "$cache_file"; then
20206	cat confcache >"$cache_file"
20207      else
20208        case $cache_file in #(
20209        */* | ?:*)
20210	  mv -f confcache "$cache_file"$$ &&
20211	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20212        *)
20213	  mv -f confcache "$cache_file" ;;
20214	esac
20215      fi
20216    fi
20217  else
20218    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20219$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20220  fi
20221fi
20222rm -f confcache
20223
20224test "x$prefix" = xNONE && prefix=$ac_default_prefix
20225# Let make expand exec_prefix.
20226test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20227
20228DEFS=-DHAVE_CONFIG_H
20229
20230ac_libobjs=
20231ac_ltlibobjs=
20232U=
20233for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20234  # 1. Remove the extension, and $U if already installed.
20235  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20236  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20237  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20238  #    will be set to the directory where LIBOBJS objects are built.
20239  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20240  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20241done
20242LIBOBJS=$ac_libobjs
20243
20244LTLIBOBJS=$ac_ltlibobjs
20245
20246
20247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20248$as_echo_n "checking that generated files are newer than configure... " >&6; }
20249   if test -n "$am_sleep_pid"; then
20250     # Hide warnings about reused PIDs.
20251     wait $am_sleep_pid 2>/dev/null
20252   fi
20253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20254$as_echo "done" >&6; }
20255 if test -n "$EXEEXT"; then
20256  am__EXEEXT_TRUE=
20257  am__EXEEXT_FALSE='#'
20258else
20259  am__EXEEXT_TRUE='#'
20260  am__EXEEXT_FALSE=
20261fi
20262
20263if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20264  as_fn_error $? "conditional \"AMDEP\" was never defined.
20265Usually this means the macro was only invoked conditionally." "$LINENO" 5
20266fi
20267if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20268  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20269Usually this means the macro was only invoked conditionally." "$LINENO" 5
20270fi
20271if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
20272  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
20273Usually this means the macro was only invoked conditionally." "$LINENO" 5
20274fi
20275if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20276  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20277Usually this means the macro was only invoked conditionally." "$LINENO" 5
20278fi
20279if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20280  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20281Usually this means the macro was only invoked conditionally." "$LINENO" 5
20282fi
20283if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20284  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20285Usually this means the macro was only invoked conditionally." "$LINENO" 5
20286fi
20287if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20288  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20289Usually this means the macro was only invoked conditionally." "$LINENO" 5
20290fi
20291if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
20292  as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined.
20293Usually this means the macro was only invoked conditionally." "$LINENO" 5
20294fi
20295if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
20296  as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
20297Usually this means the macro was only invoked conditionally." "$LINENO" 5
20298fi
20299if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
20300  as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined.
20301Usually this means the macro was only invoked conditionally." "$LINENO" 5
20302fi
20303if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
20304  as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined.
20305Usually this means the macro was only invoked conditionally." "$LINENO" 5
20306fi
20307if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then
20308  as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined.
20309Usually this means the macro was only invoked conditionally." "$LINENO" 5
20310fi
20311if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
20312  as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined.
20313Usually this means the macro was only invoked conditionally." "$LINENO" 5
20314fi
20315if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
20316  as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined.
20317Usually this means the macro was only invoked conditionally." "$LINENO" 5
20318fi
20319if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
20320  as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined.
20321Usually this means the macro was only invoked conditionally." "$LINENO" 5
20322fi
20323if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
20324  as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined.
20325Usually this means the macro was only invoked conditionally." "$LINENO" 5
20326fi
20327if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
20328  as_fn_error $? "conditional \"XFONT_FC\" was never defined.
20329Usually this means the macro was only invoked conditionally." "$LINENO" 5
20330fi
20331
20332: "${CONFIG_STATUS=./config.status}"
20333ac_write_fail=0
20334ac_clean_files_save=$ac_clean_files
20335ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20336{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20337$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20338as_write_fail=0
20339cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20340#! $SHELL
20341# Generated by $as_me.
20342# Run this file to recreate the current configuration.
20343# Compiler output produced by configure, useful for debugging
20344# configure, is in config.log if it exists.
20345
20346debug=false
20347ac_cs_recheck=false
20348ac_cs_silent=false
20349
20350SHELL=\${CONFIG_SHELL-$SHELL}
20351export SHELL
20352_ASEOF
20353cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20354## -------------------- ##
20355## M4sh Initialization. ##
20356## -------------------- ##
20357
20358# Be more Bourne compatible
20359DUALCASE=1; export DUALCASE # for MKS sh
20360if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20361  emulate sh
20362  NULLCMD=:
20363  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20364  # is contrary to our usage.  Disable this feature.
20365  alias -g '${1+"$@"}'='"$@"'
20366  setopt NO_GLOB_SUBST
20367else
20368  case `(set -o) 2>/dev/null` in #(
20369  *posix*) :
20370    set -o posix ;; #(
20371  *) :
20372     ;;
20373esac
20374fi
20375
20376
20377as_nl='
20378'
20379export as_nl
20380# Printing a long string crashes Solaris 7 /usr/bin/printf.
20381as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20382as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20383as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20384# Prefer a ksh shell builtin over an external printf program on Solaris,
20385# but without wasting forks for bash or zsh.
20386if test -z "$BASH_VERSION$ZSH_VERSION" \
20387    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20388  as_echo='print -r --'
20389  as_echo_n='print -rn --'
20390elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20391  as_echo='printf %s\n'
20392  as_echo_n='printf %s'
20393else
20394  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20395    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20396    as_echo_n='/usr/ucb/echo -n'
20397  else
20398    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20399    as_echo_n_body='eval
20400      arg=$1;
20401      case $arg in #(
20402      *"$as_nl"*)
20403	expr "X$arg" : "X\\(.*\\)$as_nl";
20404	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20405      esac;
20406      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20407    '
20408    export as_echo_n_body
20409    as_echo_n='sh -c $as_echo_n_body as_echo'
20410  fi
20411  export as_echo_body
20412  as_echo='sh -c $as_echo_body as_echo'
20413fi
20414
20415# The user is always right.
20416if test "${PATH_SEPARATOR+set}" != set; then
20417  PATH_SEPARATOR=:
20418  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20419    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20420      PATH_SEPARATOR=';'
20421  }
20422fi
20423
20424
20425# IFS
20426# We need space, tab and new line, in precisely that order.  Quoting is
20427# there to prevent editors from complaining about space-tab.
20428# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20429# splitting by setting IFS to empty value.)
20430IFS=" ""	$as_nl"
20431
20432# Find who we are.  Look in the path if we contain no directory separator.
20433as_myself=
20434case $0 in #((
20435  *[\\/]* ) as_myself=$0 ;;
20436  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20437for as_dir in $PATH
20438do
20439  IFS=$as_save_IFS
20440  test -z "$as_dir" && as_dir=.
20441    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20442  done
20443IFS=$as_save_IFS
20444
20445     ;;
20446esac
20447# We did not find ourselves, most probably we were run as `sh COMMAND'
20448# in which case we are not to be found in the path.
20449if test "x$as_myself" = x; then
20450  as_myself=$0
20451fi
20452if test ! -f "$as_myself"; then
20453  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20454  exit 1
20455fi
20456
20457# Unset variables that we do not need and which cause bugs (e.g. in
20458# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20459# suppresses any "Segmentation fault" message there.  '((' could
20460# trigger a bug in pdksh 5.2.14.
20461for as_var in BASH_ENV ENV MAIL MAILPATH
20462do eval test x\${$as_var+set} = xset \
20463  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20464done
20465PS1='$ '
20466PS2='> '
20467PS4='+ '
20468
20469# NLS nuisances.
20470LC_ALL=C
20471export LC_ALL
20472LANGUAGE=C
20473export LANGUAGE
20474
20475# CDPATH.
20476(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20477
20478
20479# as_fn_error STATUS ERROR [LINENO LOG_FD]
20480# ----------------------------------------
20481# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20482# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20483# script with STATUS, using 1 if that was 0.
20484as_fn_error ()
20485{
20486  as_status=$1; test $as_status -eq 0 && as_status=1
20487  if test "$4"; then
20488    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20489    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20490  fi
20491  $as_echo "$as_me: error: $2" >&2
20492  as_fn_exit $as_status
20493} # as_fn_error
20494
20495
20496# as_fn_set_status STATUS
20497# -----------------------
20498# Set $? to STATUS, without forking.
20499as_fn_set_status ()
20500{
20501  return $1
20502} # as_fn_set_status
20503
20504# as_fn_exit STATUS
20505# -----------------
20506# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20507as_fn_exit ()
20508{
20509  set +e
20510  as_fn_set_status $1
20511  exit $1
20512} # as_fn_exit
20513
20514# as_fn_unset VAR
20515# ---------------
20516# Portably unset VAR.
20517as_fn_unset ()
20518{
20519  { eval $1=; unset $1;}
20520}
20521as_unset=as_fn_unset
20522# as_fn_append VAR VALUE
20523# ----------------------
20524# Append the text in VALUE to the end of the definition contained in VAR. Take
20525# advantage of any shell optimizations that allow amortized linear growth over
20526# repeated appends, instead of the typical quadratic growth present in naive
20527# implementations.
20528if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20529  eval 'as_fn_append ()
20530  {
20531    eval $1+=\$2
20532  }'
20533else
20534  as_fn_append ()
20535  {
20536    eval $1=\$$1\$2
20537  }
20538fi # as_fn_append
20539
20540# as_fn_arith ARG...
20541# ------------------
20542# Perform arithmetic evaluation on the ARGs, and store the result in the
20543# global $as_val. Take advantage of shells that can avoid forks. The arguments
20544# must be portable across $(()) and expr.
20545if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20546  eval 'as_fn_arith ()
20547  {
20548    as_val=$(( $* ))
20549  }'
20550else
20551  as_fn_arith ()
20552  {
20553    as_val=`expr "$@" || test $? -eq 1`
20554  }
20555fi # as_fn_arith
20556
20557
20558if expr a : '\(a\)' >/dev/null 2>&1 &&
20559   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20560  as_expr=expr
20561else
20562  as_expr=false
20563fi
20564
20565if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20566  as_basename=basename
20567else
20568  as_basename=false
20569fi
20570
20571if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20572  as_dirname=dirname
20573else
20574  as_dirname=false
20575fi
20576
20577as_me=`$as_basename -- "$0" ||
20578$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20579	 X"$0" : 'X\(//\)$' \| \
20580	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20581$as_echo X/"$0" |
20582    sed '/^.*\/\([^/][^/]*\)\/*$/{
20583	    s//\1/
20584	    q
20585	  }
20586	  /^X\/\(\/\/\)$/{
20587	    s//\1/
20588	    q
20589	  }
20590	  /^X\/\(\/\).*/{
20591	    s//\1/
20592	    q
20593	  }
20594	  s/.*/./; q'`
20595
20596# Avoid depending upon Character Ranges.
20597as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20598as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20599as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20600as_cr_digits='0123456789'
20601as_cr_alnum=$as_cr_Letters$as_cr_digits
20602
20603ECHO_C= ECHO_N= ECHO_T=
20604case `echo -n x` in #(((((
20605-n*)
20606  case `echo 'xy\c'` in
20607  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20608  xy)  ECHO_C='\c';;
20609  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20610       ECHO_T='	';;
20611  esac;;
20612*)
20613  ECHO_N='-n';;
20614esac
20615
20616rm -f conf$$ conf$$.exe conf$$.file
20617if test -d conf$$.dir; then
20618  rm -f conf$$.dir/conf$$.file
20619else
20620  rm -f conf$$.dir
20621  mkdir conf$$.dir 2>/dev/null
20622fi
20623if (echo >conf$$.file) 2>/dev/null; then
20624  if ln -s conf$$.file conf$$ 2>/dev/null; then
20625    as_ln_s='ln -s'
20626    # ... but there are two gotchas:
20627    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20628    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20629    # In both cases, we have to default to `cp -pR'.
20630    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20631      as_ln_s='cp -pR'
20632  elif ln conf$$.file conf$$ 2>/dev/null; then
20633    as_ln_s=ln
20634  else
20635    as_ln_s='cp -pR'
20636  fi
20637else
20638  as_ln_s='cp -pR'
20639fi
20640rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20641rmdir conf$$.dir 2>/dev/null
20642
20643
20644# as_fn_mkdir_p
20645# -------------
20646# Create "$as_dir" as a directory, including parents if necessary.
20647as_fn_mkdir_p ()
20648{
20649
20650  case $as_dir in #(
20651  -*) as_dir=./$as_dir;;
20652  esac
20653  test -d "$as_dir" || eval $as_mkdir_p || {
20654    as_dirs=
20655    while :; do
20656      case $as_dir in #(
20657      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20658      *) as_qdir=$as_dir;;
20659      esac
20660      as_dirs="'$as_qdir' $as_dirs"
20661      as_dir=`$as_dirname -- "$as_dir" ||
20662$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20663	 X"$as_dir" : 'X\(//\)[^/]' \| \
20664	 X"$as_dir" : 'X\(//\)$' \| \
20665	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20666$as_echo X"$as_dir" |
20667    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20668	    s//\1/
20669	    q
20670	  }
20671	  /^X\(\/\/\)[^/].*/{
20672	    s//\1/
20673	    q
20674	  }
20675	  /^X\(\/\/\)$/{
20676	    s//\1/
20677	    q
20678	  }
20679	  /^X\(\/\).*/{
20680	    s//\1/
20681	    q
20682	  }
20683	  s/.*/./; q'`
20684      test -d "$as_dir" && break
20685    done
20686    test -z "$as_dirs" || eval "mkdir $as_dirs"
20687  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20688
20689
20690} # as_fn_mkdir_p
20691if mkdir -p . 2>/dev/null; then
20692  as_mkdir_p='mkdir -p "$as_dir"'
20693else
20694  test -d ./-p && rmdir ./-p
20695  as_mkdir_p=false
20696fi
20697
20698
20699# as_fn_executable_p FILE
20700# -----------------------
20701# Test if FILE is an executable regular file.
20702as_fn_executable_p ()
20703{
20704  test -f "$1" && test -x "$1"
20705} # as_fn_executable_p
20706as_test_x='test -x'
20707as_executable_p=as_fn_executable_p
20708
20709# Sed expression to map a string onto a valid CPP name.
20710as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20711
20712# Sed expression to map a string onto a valid variable name.
20713as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20714
20715
20716exec 6>&1
20717## ----------------------------------- ##
20718## Main body of $CONFIG_STATUS script. ##
20719## ----------------------------------- ##
20720_ASEOF
20721test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20722
20723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20724# Save the log message, to keep $0 and so on meaningful, and to
20725# report actual input values of CONFIG_FILES etc. instead of their
20726# values after options handling.
20727ac_log="
20728This file was extended by libXfont $as_me 1.5.4, which was
20729generated by GNU Autoconf 2.69.  Invocation command line was
20730
20731  CONFIG_FILES    = $CONFIG_FILES
20732  CONFIG_HEADERS  = $CONFIG_HEADERS
20733  CONFIG_LINKS    = $CONFIG_LINKS
20734  CONFIG_COMMANDS = $CONFIG_COMMANDS
20735  $ $0 $@
20736
20737on `(hostname || uname -n) 2>/dev/null | sed 1q`
20738"
20739
20740_ACEOF
20741
20742case $ac_config_files in *"
20743"*) set x $ac_config_files; shift; ac_config_files=$*;;
20744esac
20745
20746case $ac_config_headers in *"
20747"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20748esac
20749
20750
20751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20752# Files that config.status was made for.
20753config_files="$ac_config_files"
20754config_headers="$ac_config_headers"
20755config_commands="$ac_config_commands"
20756
20757_ACEOF
20758
20759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20760ac_cs_usage="\
20761\`$as_me' instantiates files and other configuration actions
20762from templates according to the current configuration.  Unless the files
20763and actions are specified as TAGs, all are instantiated by default.
20764
20765Usage: $0 [OPTION]... [TAG]...
20766
20767  -h, --help       print this help, then exit
20768  -V, --version    print version number and configuration settings, then exit
20769      --config     print configuration, then exit
20770  -q, --quiet, --silent
20771                   do not print progress messages
20772  -d, --debug      don't remove temporary files
20773      --recheck    update $as_me by reconfiguring in the same conditions
20774      --file=FILE[:TEMPLATE]
20775                   instantiate the configuration file FILE
20776      --header=FILE[:TEMPLATE]
20777                   instantiate the configuration header FILE
20778
20779Configuration files:
20780$config_files
20781
20782Configuration headers:
20783$config_headers
20784
20785Configuration commands:
20786$config_commands
20787
20788Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20789
20790_ACEOF
20791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20792ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20793ac_cs_version="\\
20794libXfont config.status 1.5.4
20795configured by $0, generated by GNU Autoconf 2.69,
20796  with options \\"\$ac_cs_config\\"
20797
20798Copyright (C) 2012 Free Software Foundation, Inc.
20799This config.status script is free software; the Free Software Foundation
20800gives unlimited permission to copy, distribute and modify it."
20801
20802ac_pwd='$ac_pwd'
20803srcdir='$srcdir'
20804INSTALL='$INSTALL'
20805MKDIR_P='$MKDIR_P'
20806AWK='$AWK'
20807test -n "\$AWK" || AWK=awk
20808_ACEOF
20809
20810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20811# The default lists apply if the user does not specify any file.
20812ac_need_defaults=:
20813while test $# != 0
20814do
20815  case $1 in
20816  --*=?*)
20817    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20818    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20819    ac_shift=:
20820    ;;
20821  --*=)
20822    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20823    ac_optarg=
20824    ac_shift=:
20825    ;;
20826  *)
20827    ac_option=$1
20828    ac_optarg=$2
20829    ac_shift=shift
20830    ;;
20831  esac
20832
20833  case $ac_option in
20834  # Handling of the options.
20835  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20836    ac_cs_recheck=: ;;
20837  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20838    $as_echo "$ac_cs_version"; exit ;;
20839  --config | --confi | --conf | --con | --co | --c )
20840    $as_echo "$ac_cs_config"; exit ;;
20841  --debug | --debu | --deb | --de | --d | -d )
20842    debug=: ;;
20843  --file | --fil | --fi | --f )
20844    $ac_shift
20845    case $ac_optarg in
20846    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20847    '') as_fn_error $? "missing file argument" ;;
20848    esac
20849    as_fn_append CONFIG_FILES " '$ac_optarg'"
20850    ac_need_defaults=false;;
20851  --header | --heade | --head | --hea )
20852    $ac_shift
20853    case $ac_optarg in
20854    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20855    esac
20856    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20857    ac_need_defaults=false;;
20858  --he | --h)
20859    # Conflict between --help and --header
20860    as_fn_error $? "ambiguous option: \`$1'
20861Try \`$0 --help' for more information.";;
20862  --help | --hel | -h )
20863    $as_echo "$ac_cs_usage"; exit ;;
20864  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20865  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20866    ac_cs_silent=: ;;
20867
20868  # This is an error.
20869  -*) as_fn_error $? "unrecognized option: \`$1'
20870Try \`$0 --help' for more information." ;;
20871
20872  *) as_fn_append ac_config_targets " $1"
20873     ac_need_defaults=false ;;
20874
20875  esac
20876  shift
20877done
20878
20879ac_configure_extra_args=
20880
20881if $ac_cs_silent; then
20882  exec 6>/dev/null
20883  ac_configure_extra_args="$ac_configure_extra_args --silent"
20884fi
20885
20886_ACEOF
20887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20888if \$ac_cs_recheck; then
20889  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20890  shift
20891  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20892  CONFIG_SHELL='$SHELL'
20893  export CONFIG_SHELL
20894  exec "\$@"
20895fi
20896
20897_ACEOF
20898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20899exec 5>>config.log
20900{
20901  echo
20902  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20903## Running $as_me. ##
20904_ASBOX
20905  $as_echo "$ac_log"
20906} >&5
20907
20908_ACEOF
20909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20910#
20911# INIT-COMMANDS
20912#
20913AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20914
20915
20916# The HP-UX ksh and POSIX shell print the target directory to stdout
20917# if CDPATH is set.
20918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20919
20920sed_quote_subst='$sed_quote_subst'
20921double_quote_subst='$double_quote_subst'
20922delay_variable_subst='$delay_variable_subst'
20923macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20924macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20925enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20926enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20927pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20928enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20929shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20930SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20931ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20932PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20933host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20934host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20935host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20936build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20937build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20938build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20939SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20940Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20941GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20942EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20943FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20944LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20945NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20946LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20947max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20948ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20949exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20950lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20951lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20952lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20953lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20954lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20955reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20956reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20957OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20958deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20959file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20960file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20961want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20962DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20963sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20964AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20965AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20966archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20967STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20968RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20969old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20970old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20971old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20972lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20973CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20974CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20975compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20976GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20977lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20978lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20979lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20980lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20981lt_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"`'
20982lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20983nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20984lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20985lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20986objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20987MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20988lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20989lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20990lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20991lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20992lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20993need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20994MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20995DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20996NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20997LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20998OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20999OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21000libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21001shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21002extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21003archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21004enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21005export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21006whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21007compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21008old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21009old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21010archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21011archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21012module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21013module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21014with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21015allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21016no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21017hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21018hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21019hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21020hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21021hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21022hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21023hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21024inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21025link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21026always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21027export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21028exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21029include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21030prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21031postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21032file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21033variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21034need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21035need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21036version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21037runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21038shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21039shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21040libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21041library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21042soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21043install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21044postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21045postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21046finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21047finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21048hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21049sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21050configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21051configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21052hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21053enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21054enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21055enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21056old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21057striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21058
21059LTCC='$LTCC'
21060LTCFLAGS='$LTCFLAGS'
21061compiler='$compiler_DEFAULT'
21062
21063# A function that is used when there is no print builtin or printf.
21064func_fallback_echo ()
21065{
21066  eval 'cat <<_LTECHO_EOF
21067\$1
21068_LTECHO_EOF'
21069}
21070
21071# Quote evaled strings.
21072for var in SHELL \
21073ECHO \
21074PATH_SEPARATOR \
21075SED \
21076GREP \
21077EGREP \
21078FGREP \
21079LD \
21080NM \
21081LN_S \
21082lt_SP2NL \
21083lt_NL2SP \
21084reload_flag \
21085OBJDUMP \
21086deplibs_check_method \
21087file_magic_cmd \
21088file_magic_glob \
21089want_nocaseglob \
21090DLLTOOL \
21091sharedlib_from_linklib_cmd \
21092AR \
21093AR_FLAGS \
21094archiver_list_spec \
21095STRIP \
21096RANLIB \
21097CC \
21098CFLAGS \
21099compiler \
21100lt_cv_sys_global_symbol_pipe \
21101lt_cv_sys_global_symbol_to_cdecl \
21102lt_cv_sys_global_symbol_to_import \
21103lt_cv_sys_global_symbol_to_c_name_address \
21104lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21105lt_cv_nm_interface \
21106nm_file_list_spec \
21107lt_cv_truncate_bin \
21108lt_prog_compiler_no_builtin_flag \
21109lt_prog_compiler_pic \
21110lt_prog_compiler_wl \
21111lt_prog_compiler_static \
21112lt_cv_prog_compiler_c_o \
21113need_locks \
21114MANIFEST_TOOL \
21115DSYMUTIL \
21116NMEDIT \
21117LIPO \
21118OTOOL \
21119OTOOL64 \
21120shrext_cmds \
21121export_dynamic_flag_spec \
21122whole_archive_flag_spec \
21123compiler_needs_object \
21124with_gnu_ld \
21125allow_undefined_flag \
21126no_undefined_flag \
21127hardcode_libdir_flag_spec \
21128hardcode_libdir_separator \
21129exclude_expsyms \
21130include_expsyms \
21131file_list_spec \
21132variables_saved_for_relink \
21133libname_spec \
21134library_names_spec \
21135soname_spec \
21136install_override_mode \
21137finish_eval \
21138old_striplib \
21139striplib; do
21140    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21141    *[\\\\\\\`\\"\\\$]*)
21142      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21143      ;;
21144    *)
21145      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21146      ;;
21147    esac
21148done
21149
21150# Double-quote double-evaled strings.
21151for var in reload_cmds \
21152old_postinstall_cmds \
21153old_postuninstall_cmds \
21154old_archive_cmds \
21155extract_expsyms_cmds \
21156old_archive_from_new_cmds \
21157old_archive_from_expsyms_cmds \
21158archive_cmds \
21159archive_expsym_cmds \
21160module_cmds \
21161module_expsym_cmds \
21162export_symbols_cmds \
21163prelink_cmds \
21164postlink_cmds \
21165postinstall_cmds \
21166postuninstall_cmds \
21167finish_cmds \
21168sys_lib_search_path_spec \
21169configure_time_dlsearch_path \
21170configure_time_lt_sys_library_path; do
21171    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21172    *[\\\\\\\`\\"\\\$]*)
21173      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21174      ;;
21175    *)
21176      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21177      ;;
21178    esac
21179done
21180
21181ac_aux_dir='$ac_aux_dir'
21182
21183# See if we are running on zsh, and set the options that allow our
21184# commands through without removal of \ escapes INIT.
21185if test -n "\${ZSH_VERSION+set}"; then
21186   setopt NO_GLOB_SUBST
21187fi
21188
21189
21190    PACKAGE='$PACKAGE'
21191    VERSION='$VERSION'
21192    RM='$RM'
21193    ofile='$ofile'
21194
21195
21196
21197
21198_ACEOF
21199
21200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21201
21202# Handling of arguments.
21203for ac_config_target in $ac_config_targets
21204do
21205  case $ac_config_target in
21206    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21207    "include/X11/fonts/fontconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/fonts/fontconf.h" ;;
21208    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21209    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21210    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21211    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21212    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21213    "src/fontfile/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontfile/Makefile" ;;
21214    "src/FreeType/Makefile") CONFIG_FILES="$CONFIG_FILES src/FreeType/Makefile" ;;
21215    "src/builtins/Makefile") CONFIG_FILES="$CONFIG_FILES src/builtins/Makefile" ;;
21216    "src/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/bitmap/Makefile" ;;
21217    "src/fc/Makefile") CONFIG_FILES="$CONFIG_FILES src/fc/Makefile" ;;
21218    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
21219    "src/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES src/stubs/Makefile" ;;
21220    "xfont.pc") CONFIG_FILES="$CONFIG_FILES xfont.pc" ;;
21221
21222  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21223  esac
21224done
21225
21226
21227# If the user did not use the arguments to specify the items to instantiate,
21228# then the envvar interface is used.  Set only those that are not.
21229# We use the long form for the default assignment because of an extremely
21230# bizarre bug on SunOS 4.1.3.
21231if $ac_need_defaults; then
21232  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21233  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21234  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21235fi
21236
21237# Have a temporary directory for convenience.  Make it in the build tree
21238# simply because there is no reason against having it here, and in addition,
21239# creating and moving files from /tmp can sometimes cause problems.
21240# Hook for its removal unless debugging.
21241# Note that there is a small window in which the directory will not be cleaned:
21242# after its creation but before its name has been assigned to `$tmp'.
21243$debug ||
21244{
21245  tmp= ac_tmp=
21246  trap 'exit_status=$?
21247  : "${ac_tmp:=$tmp}"
21248  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21249' 0
21250  trap 'as_fn_exit 1' 1 2 13 15
21251}
21252# Create a (secure) tmp directory for tmp files.
21253
21254{
21255  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21256  test -d "$tmp"
21257}  ||
21258{
21259  tmp=./conf$$-$RANDOM
21260  (umask 077 && mkdir "$tmp")
21261} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21262ac_tmp=$tmp
21263
21264# Set up the scripts for CONFIG_FILES section.
21265# No need to generate them if there are no CONFIG_FILES.
21266# This happens for instance with `./config.status config.h'.
21267if test -n "$CONFIG_FILES"; then
21268
21269
21270ac_cr=`echo X | tr X '\015'`
21271# On cygwin, bash can eat \r inside `` if the user requested igncr.
21272# But we know of no other shell where ac_cr would be empty at this
21273# point, so we can use a bashism as a fallback.
21274if test "x$ac_cr" = x; then
21275  eval ac_cr=\$\'\\r\'
21276fi
21277ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21278if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21279  ac_cs_awk_cr='\\r'
21280else
21281  ac_cs_awk_cr=$ac_cr
21282fi
21283
21284echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21285_ACEOF
21286
21287
21288{
21289  echo "cat >conf$$subs.awk <<_ACEOF" &&
21290  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21291  echo "_ACEOF"
21292} >conf$$subs.sh ||
21293  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21294ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21295ac_delim='%!_!# '
21296for ac_last_try in false false false false false :; do
21297  . ./conf$$subs.sh ||
21298    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21299
21300  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21301  if test $ac_delim_n = $ac_delim_num; then
21302    break
21303  elif $ac_last_try; then
21304    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21305  else
21306    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21307  fi
21308done
21309rm -f conf$$subs.sh
21310
21311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21312cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21313_ACEOF
21314sed -n '
21315h
21316s/^/S["/; s/!.*/"]=/
21317p
21318g
21319s/^[^!]*!//
21320:repl
21321t repl
21322s/'"$ac_delim"'$//
21323t delim
21324:nl
21325h
21326s/\(.\{148\}\)..*/\1/
21327t more1
21328s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21329p
21330n
21331b repl
21332:more1
21333s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21334p
21335g
21336s/.\{148\}//
21337t nl
21338:delim
21339h
21340s/\(.\{148\}\)..*/\1/
21341t more2
21342s/["\\]/\\&/g; s/^/"/; s/$/"/
21343p
21344b
21345:more2
21346s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21347p
21348g
21349s/.\{148\}//
21350t delim
21351' <conf$$subs.awk | sed '
21352/^[^""]/{
21353  N
21354  s/\n//
21355}
21356' >>$CONFIG_STATUS || ac_write_fail=1
21357rm -f conf$$subs.awk
21358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21359_ACAWK
21360cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21361  for (key in S) S_is_set[key] = 1
21362  FS = ""
21363
21364}
21365{
21366  line = $ 0
21367  nfields = split(line, field, "@")
21368  substed = 0
21369  len = length(field[1])
21370  for (i = 2; i < nfields; i++) {
21371    key = field[i]
21372    keylen = length(key)
21373    if (S_is_set[key]) {
21374      value = S[key]
21375      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21376      len += length(value) + length(field[++i])
21377      substed = 1
21378    } else
21379      len += 1 + keylen
21380  }
21381
21382  print line
21383}
21384
21385_ACAWK
21386_ACEOF
21387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21388if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21389  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21390else
21391  cat
21392fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21393  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21394_ACEOF
21395
21396# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21397# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21398# trailing colons and then remove the whole line if VPATH becomes empty
21399# (actually we leave an empty line to preserve line numbers).
21400if test "x$srcdir" = x.; then
21401  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21402h
21403s///
21404s/^/:/
21405s/[	 ]*$/:/
21406s/:\$(srcdir):/:/g
21407s/:\${srcdir}:/:/g
21408s/:@srcdir@:/:/g
21409s/^:*//
21410s/:*$//
21411x
21412s/\(=[	 ]*\).*/\1/
21413G
21414s/\n//
21415s/^[^=]*=[	 ]*$//
21416}'
21417fi
21418
21419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21420fi # test -n "$CONFIG_FILES"
21421
21422# Set up the scripts for CONFIG_HEADERS section.
21423# No need to generate them if there are no CONFIG_HEADERS.
21424# This happens for instance with `./config.status Makefile'.
21425if test -n "$CONFIG_HEADERS"; then
21426cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21427BEGIN {
21428_ACEOF
21429
21430# Transform confdefs.h into an awk script `defines.awk', embedded as
21431# here-document in config.status, that substitutes the proper values into
21432# config.h.in to produce config.h.
21433
21434# Create a delimiter string that does not exist in confdefs.h, to ease
21435# handling of long lines.
21436ac_delim='%!_!# '
21437for ac_last_try in false false :; do
21438  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21439  if test -z "$ac_tt"; then
21440    break
21441  elif $ac_last_try; then
21442    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21443  else
21444    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21445  fi
21446done
21447
21448# For the awk script, D is an array of macro values keyed by name,
21449# likewise P contains macro parameters if any.  Preserve backslash
21450# newline sequences.
21451
21452ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21453sed -n '
21454s/.\{148\}/&'"$ac_delim"'/g
21455t rset
21456:rset
21457s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21458t def
21459d
21460:def
21461s/\\$//
21462t bsnl
21463s/["\\]/\\&/g
21464s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21465D["\1"]=" \3"/p
21466s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21467d
21468:bsnl
21469s/["\\]/\\&/g
21470s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21471D["\1"]=" \3\\\\\\n"\\/p
21472t cont
21473s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21474t cont
21475d
21476:cont
21477n
21478s/.\{148\}/&'"$ac_delim"'/g
21479t clear
21480:clear
21481s/\\$//
21482t bsnlc
21483s/["\\]/\\&/g; s/^/"/; s/$/"/p
21484d
21485:bsnlc
21486s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21487b cont
21488' <confdefs.h | sed '
21489s/'"$ac_delim"'/"\\\
21490"/g' >>$CONFIG_STATUS || ac_write_fail=1
21491
21492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21493  for (key in D) D_is_set[key] = 1
21494  FS = ""
21495}
21496/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21497  line = \$ 0
21498  split(line, arg, " ")
21499  if (arg[1] == "#") {
21500    defundef = arg[2]
21501    mac1 = arg[3]
21502  } else {
21503    defundef = substr(arg[1], 2)
21504    mac1 = arg[2]
21505  }
21506  split(mac1, mac2, "(") #)
21507  macro = mac2[1]
21508  prefix = substr(line, 1, index(line, defundef) - 1)
21509  if (D_is_set[macro]) {
21510    # Preserve the white space surrounding the "#".
21511    print prefix "define", macro P[macro] D[macro]
21512    next
21513  } else {
21514    # Replace #undef with comments.  This is necessary, for example,
21515    # in the case of _POSIX_SOURCE, which is predefined and required
21516    # on some systems where configure will not decide to define it.
21517    if (defundef == "undef") {
21518      print "/*", prefix defundef, macro, "*/"
21519      next
21520    }
21521  }
21522}
21523{ print }
21524_ACAWK
21525_ACEOF
21526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21527  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21528fi # test -n "$CONFIG_HEADERS"
21529
21530
21531eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21532shift
21533for ac_tag
21534do
21535  case $ac_tag in
21536  :[FHLC]) ac_mode=$ac_tag; continue;;
21537  esac
21538  case $ac_mode$ac_tag in
21539  :[FHL]*:*);;
21540  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21541  :[FH]-) ac_tag=-:-;;
21542  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21543  esac
21544  ac_save_IFS=$IFS
21545  IFS=:
21546  set x $ac_tag
21547  IFS=$ac_save_IFS
21548  shift
21549  ac_file=$1
21550  shift
21551
21552  case $ac_mode in
21553  :L) ac_source=$1;;
21554  :[FH])
21555    ac_file_inputs=
21556    for ac_f
21557    do
21558      case $ac_f in
21559      -) ac_f="$ac_tmp/stdin";;
21560      *) # Look for the file first in the build tree, then in the source tree
21561	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21562	 # because $ac_f cannot contain `:'.
21563	 test -f "$ac_f" ||
21564	   case $ac_f in
21565	   [\\/$]*) false;;
21566	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21567	   esac ||
21568	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21569      esac
21570      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21571      as_fn_append ac_file_inputs " '$ac_f'"
21572    done
21573
21574    # Let's still pretend it is `configure' which instantiates (i.e., don't
21575    # use $as_me), people would be surprised to read:
21576    #    /* config.h.  Generated by config.status.  */
21577    configure_input='Generated from '`
21578	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21579	`' by configure.'
21580    if test x"$ac_file" != x-; then
21581      configure_input="$ac_file.  $configure_input"
21582      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21583$as_echo "$as_me: creating $ac_file" >&6;}
21584    fi
21585    # Neutralize special characters interpreted by sed in replacement strings.
21586    case $configure_input in #(
21587    *\&* | *\|* | *\\* )
21588       ac_sed_conf_input=`$as_echo "$configure_input" |
21589       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21590    *) ac_sed_conf_input=$configure_input;;
21591    esac
21592
21593    case $ac_tag in
21594    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21595      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21596    esac
21597    ;;
21598  esac
21599
21600  ac_dir=`$as_dirname -- "$ac_file" ||
21601$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21602	 X"$ac_file" : 'X\(//\)[^/]' \| \
21603	 X"$ac_file" : 'X\(//\)$' \| \
21604	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21605$as_echo X"$ac_file" |
21606    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21607	    s//\1/
21608	    q
21609	  }
21610	  /^X\(\/\/\)[^/].*/{
21611	    s//\1/
21612	    q
21613	  }
21614	  /^X\(\/\/\)$/{
21615	    s//\1/
21616	    q
21617	  }
21618	  /^X\(\/\).*/{
21619	    s//\1/
21620	    q
21621	  }
21622	  s/.*/./; q'`
21623  as_dir="$ac_dir"; as_fn_mkdir_p
21624  ac_builddir=.
21625
21626case "$ac_dir" in
21627.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21628*)
21629  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21630  # A ".." for each directory in $ac_dir_suffix.
21631  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21632  case $ac_top_builddir_sub in
21633  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21634  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21635  esac ;;
21636esac
21637ac_abs_top_builddir=$ac_pwd
21638ac_abs_builddir=$ac_pwd$ac_dir_suffix
21639# for backward compatibility:
21640ac_top_builddir=$ac_top_build_prefix
21641
21642case $srcdir in
21643  .)  # We are building in place.
21644    ac_srcdir=.
21645    ac_top_srcdir=$ac_top_builddir_sub
21646    ac_abs_top_srcdir=$ac_pwd ;;
21647  [\\/]* | ?:[\\/]* )  # Absolute name.
21648    ac_srcdir=$srcdir$ac_dir_suffix;
21649    ac_top_srcdir=$srcdir
21650    ac_abs_top_srcdir=$srcdir ;;
21651  *) # Relative name.
21652    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21653    ac_top_srcdir=$ac_top_build_prefix$srcdir
21654    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21655esac
21656ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21657
21658
21659  case $ac_mode in
21660  :F)
21661  #
21662  # CONFIG_FILE
21663  #
21664
21665  case $INSTALL in
21666  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21667  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21668  esac
21669  ac_MKDIR_P=$MKDIR_P
21670  case $MKDIR_P in
21671  [\\/$]* | ?:[\\/]* ) ;;
21672  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21673  esac
21674_ACEOF
21675
21676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21677# If the template does not know about datarootdir, expand it.
21678# FIXME: This hack should be removed a few years after 2.60.
21679ac_datarootdir_hack=; ac_datarootdir_seen=
21680ac_sed_dataroot='
21681/datarootdir/ {
21682  p
21683  q
21684}
21685/@datadir@/p
21686/@docdir@/p
21687/@infodir@/p
21688/@localedir@/p
21689/@mandir@/p'
21690case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21691*datarootdir*) ac_datarootdir_seen=yes;;
21692*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21693  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21694$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21695_ACEOF
21696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21697  ac_datarootdir_hack='
21698  s&@datadir@&$datadir&g
21699  s&@docdir@&$docdir&g
21700  s&@infodir@&$infodir&g
21701  s&@localedir@&$localedir&g
21702  s&@mandir@&$mandir&g
21703  s&\\\${datarootdir}&$datarootdir&g' ;;
21704esac
21705_ACEOF
21706
21707# Neutralize VPATH when `$srcdir' = `.'.
21708# Shell code in configure.ac might set extrasub.
21709# FIXME: do we really want to maintain this feature?
21710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21711ac_sed_extra="$ac_vpsub
21712$extrasub
21713_ACEOF
21714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21715:t
21716/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21717s|@configure_input@|$ac_sed_conf_input|;t t
21718s&@top_builddir@&$ac_top_builddir_sub&;t t
21719s&@top_build_prefix@&$ac_top_build_prefix&;t t
21720s&@srcdir@&$ac_srcdir&;t t
21721s&@abs_srcdir@&$ac_abs_srcdir&;t t
21722s&@top_srcdir@&$ac_top_srcdir&;t t
21723s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21724s&@builddir@&$ac_builddir&;t t
21725s&@abs_builddir@&$ac_abs_builddir&;t t
21726s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21727s&@INSTALL@&$ac_INSTALL&;t t
21728s&@MKDIR_P@&$ac_MKDIR_P&;t t
21729$ac_datarootdir_hack
21730"
21731eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21732  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21733
21734test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21735  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21736  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21737      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21738  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21739which seems to be undefined.  Please make sure it is defined" >&5
21740$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21741which seems to be undefined.  Please make sure it is defined" >&2;}
21742
21743  rm -f "$ac_tmp/stdin"
21744  case $ac_file in
21745  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21746  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21747  esac \
21748  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21749 ;;
21750  :H)
21751  #
21752  # CONFIG_HEADER
21753  #
21754  if test x"$ac_file" != x-; then
21755    {
21756      $as_echo "/* $configure_input  */" \
21757      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21758    } >"$ac_tmp/config.h" \
21759      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21760    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21761      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21762$as_echo "$as_me: $ac_file is unchanged" >&6;}
21763    else
21764      rm -f "$ac_file"
21765      mv "$ac_tmp/config.h" "$ac_file" \
21766	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21767    fi
21768  else
21769    $as_echo "/* $configure_input  */" \
21770      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21771      || as_fn_error $? "could not create -" "$LINENO" 5
21772  fi
21773# Compute "$ac_file"'s index in $config_headers.
21774_am_arg="$ac_file"
21775_am_stamp_count=1
21776for _am_header in $config_headers :; do
21777  case $_am_header in
21778    $_am_arg | $_am_arg:* )
21779      break ;;
21780    * )
21781      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21782  esac
21783done
21784echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21785$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21786	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21787	 X"$_am_arg" : 'X\(//\)$' \| \
21788	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21789$as_echo X"$_am_arg" |
21790    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21791	    s//\1/
21792	    q
21793	  }
21794	  /^X\(\/\/\)[^/].*/{
21795	    s//\1/
21796	    q
21797	  }
21798	  /^X\(\/\/\)$/{
21799	    s//\1/
21800	    q
21801	  }
21802	  /^X\(\/\).*/{
21803	    s//\1/
21804	    q
21805	  }
21806	  s/.*/./; q'`/stamp-h$_am_stamp_count
21807 ;;
21808
21809  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21810$as_echo "$as_me: executing $ac_file commands" >&6;}
21811 ;;
21812  esac
21813
21814
21815  case $ac_file$ac_mode in
21816    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21817  # Older Autoconf quotes --file arguments for eval, but not when files
21818  # are listed without --file.  Let's play safe and only enable the eval
21819  # if we detect the quoting.
21820  case $CONFIG_FILES in
21821  *\'*) eval set x "$CONFIG_FILES" ;;
21822  *)   set x $CONFIG_FILES ;;
21823  esac
21824  shift
21825  for mf
21826  do
21827    # Strip MF so we end up with the name of the file.
21828    mf=`echo "$mf" | sed -e 's/:.*$//'`
21829    # Check whether this is an Automake generated Makefile or not.
21830    # We used to match only the files named 'Makefile.in', but
21831    # some people rename them; so instead we look at the file content.
21832    # Grep'ing the first line is not enough: some people post-process
21833    # each Makefile.in and add a new line on top of each file to say so.
21834    # Grep'ing the whole file is not good either: AIX grep has a line
21835    # limit of 2048, but all sed's we know have understand at least 4000.
21836    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21837      dirpart=`$as_dirname -- "$mf" ||
21838$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21839	 X"$mf" : 'X\(//\)[^/]' \| \
21840	 X"$mf" : 'X\(//\)$' \| \
21841	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21842$as_echo X"$mf" |
21843    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21844	    s//\1/
21845	    q
21846	  }
21847	  /^X\(\/\/\)[^/].*/{
21848	    s//\1/
21849	    q
21850	  }
21851	  /^X\(\/\/\)$/{
21852	    s//\1/
21853	    q
21854	  }
21855	  /^X\(\/\).*/{
21856	    s//\1/
21857	    q
21858	  }
21859	  s/.*/./; q'`
21860    else
21861      continue
21862    fi
21863    # Extract the definition of DEPDIR, am__include, and am__quote
21864    # from the Makefile without running 'make'.
21865    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21866    test -z "$DEPDIR" && continue
21867    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21868    test -z "$am__include" && continue
21869    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21870    # Find all dependency output files, they are included files with
21871    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21872    # simplest approach to changing $(DEPDIR) to its actual value in the
21873    # expansion.
21874    for file in `sed -n "
21875      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21876	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21877      # Make sure the directory exists.
21878      test -f "$dirpart/$file" && continue
21879      fdir=`$as_dirname -- "$file" ||
21880$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21881	 X"$file" : 'X\(//\)[^/]' \| \
21882	 X"$file" : 'X\(//\)$' \| \
21883	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21884$as_echo X"$file" |
21885    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21886	    s//\1/
21887	    q
21888	  }
21889	  /^X\(\/\/\)[^/].*/{
21890	    s//\1/
21891	    q
21892	  }
21893	  /^X\(\/\/\)$/{
21894	    s//\1/
21895	    q
21896	  }
21897	  /^X\(\/\).*/{
21898	    s//\1/
21899	    q
21900	  }
21901	  s/.*/./; q'`
21902      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21903      # echo "creating $dirpart/$file"
21904      echo '# dummy' > "$dirpart/$file"
21905    done
21906  done
21907}
21908 ;;
21909    "libtool":C)
21910
21911    # See if we are running on zsh, and set the options that allow our
21912    # commands through without removal of \ escapes.
21913    if test -n "${ZSH_VERSION+set}"; then
21914      setopt NO_GLOB_SUBST
21915    fi
21916
21917    cfgfile=${ofile}T
21918    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21919    $RM "$cfgfile"
21920
21921    cat <<_LT_EOF >> "$cfgfile"
21922#! $SHELL
21923# Generated automatically by $as_me ($PACKAGE) $VERSION
21924# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21925# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21926
21927# Provide generalized library-building support services.
21928# Written by Gordon Matzigkeit, 1996
21929
21930# Copyright (C) 2014 Free Software Foundation, Inc.
21931# This is free software; see the source for copying conditions.  There is NO
21932# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21933
21934# GNU Libtool is free software; you can redistribute it and/or modify
21935# it under the terms of the GNU General Public License as published by
21936# the Free Software Foundation; either version 2 of of the License, or
21937# (at your option) any later version.
21938#
21939# As a special exception to the GNU General Public License, if you
21940# distribute this file as part of a program or library that is built
21941# using GNU Libtool, you may include this file under the  same
21942# distribution terms that you use for the rest of that program.
21943#
21944# GNU Libtool is distributed in the hope that it will be useful, but
21945# WITHOUT ANY WARRANTY; without even the implied warranty of
21946# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21947# GNU General Public License for more details.
21948#
21949# You should have received a copy of the GNU General Public License
21950# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21951
21952
21953# The names of the tagged configurations supported by this script.
21954available_tags=''
21955
21956# Configured defaults for sys_lib_dlsearch_path munging.
21957: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21958
21959# ### BEGIN LIBTOOL CONFIG
21960
21961# Which release of libtool.m4 was used?
21962macro_version=$macro_version
21963macro_revision=$macro_revision
21964
21965# Whether or not to build shared libraries.
21966build_libtool_libs=$enable_shared
21967
21968# Whether or not to build static libraries.
21969build_old_libs=$enable_static
21970
21971# What type of objects to build.
21972pic_mode=$pic_mode
21973
21974# Whether or not to optimize for fast installation.
21975fast_install=$enable_fast_install
21976
21977# Shared archive member basename,for filename based shared library versioning on AIX.
21978shared_archive_member_spec=$shared_archive_member_spec
21979
21980# Shell to use when invoking shell scripts.
21981SHELL=$lt_SHELL
21982
21983# An echo program that protects backslashes.
21984ECHO=$lt_ECHO
21985
21986# The PATH separator for the build system.
21987PATH_SEPARATOR=$lt_PATH_SEPARATOR
21988
21989# The host system.
21990host_alias=$host_alias
21991host=$host
21992host_os=$host_os
21993
21994# The build system.
21995build_alias=$build_alias
21996build=$build
21997build_os=$build_os
21998
21999# A sed program that does not truncate output.
22000SED=$lt_SED
22001
22002# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22003Xsed="\$SED -e 1s/^X//"
22004
22005# A grep program that handles long lines.
22006GREP=$lt_GREP
22007
22008# An ERE matcher.
22009EGREP=$lt_EGREP
22010
22011# A literal string matcher.
22012FGREP=$lt_FGREP
22013
22014# A BSD- or MS-compatible name lister.
22015NM=$lt_NM
22016
22017# Whether we need soft or hard links.
22018LN_S=$lt_LN_S
22019
22020# What is the maximum length of a command?
22021max_cmd_len=$max_cmd_len
22022
22023# Object file suffix (normally "o").
22024objext=$ac_objext
22025
22026# Executable file suffix (normally "").
22027exeext=$exeext
22028
22029# whether the shell understands "unset".
22030lt_unset=$lt_unset
22031
22032# turn spaces into newlines.
22033SP2NL=$lt_lt_SP2NL
22034
22035# turn newlines into spaces.
22036NL2SP=$lt_lt_NL2SP
22037
22038# convert \$build file names to \$host format.
22039to_host_file_cmd=$lt_cv_to_host_file_cmd
22040
22041# convert \$build files to toolchain format.
22042to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22043
22044# An object symbol dumper.
22045OBJDUMP=$lt_OBJDUMP
22046
22047# Method to check whether dependent libraries are shared objects.
22048deplibs_check_method=$lt_deplibs_check_method
22049
22050# Command to use when deplibs_check_method = "file_magic".
22051file_magic_cmd=$lt_file_magic_cmd
22052
22053# How to find potential files when deplibs_check_method = "file_magic".
22054file_magic_glob=$lt_file_magic_glob
22055
22056# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22057want_nocaseglob=$lt_want_nocaseglob
22058
22059# DLL creation program.
22060DLLTOOL=$lt_DLLTOOL
22061
22062# Command to associate shared and link libraries.
22063sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22064
22065# The archiver.
22066AR=$lt_AR
22067
22068# Flags to create an archive.
22069AR_FLAGS=$lt_AR_FLAGS
22070
22071# How to feed a file listing to the archiver.
22072archiver_list_spec=$lt_archiver_list_spec
22073
22074# A symbol stripping program.
22075STRIP=$lt_STRIP
22076
22077# Commands used to install an old-style archive.
22078RANLIB=$lt_RANLIB
22079old_postinstall_cmds=$lt_old_postinstall_cmds
22080old_postuninstall_cmds=$lt_old_postuninstall_cmds
22081
22082# Whether to use a lock for old archive extraction.
22083lock_old_archive_extraction=$lock_old_archive_extraction
22084
22085# A C compiler.
22086LTCC=$lt_CC
22087
22088# LTCC compiler flags.
22089LTCFLAGS=$lt_CFLAGS
22090
22091# Take the output of nm and produce a listing of raw symbols and C names.
22092global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22093
22094# Transform the output of nm in a proper C declaration.
22095global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22096
22097# Transform the output of nm into a list of symbols to manually relocate.
22098global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22099
22100# Transform the output of nm in a C name address pair.
22101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22102
22103# Transform the output of nm in a C name address pair when lib prefix is needed.
22104global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22105
22106# The name lister interface.
22107nm_interface=$lt_lt_cv_nm_interface
22108
22109# Specify filename containing input files for \$NM.
22110nm_file_list_spec=$lt_nm_file_list_spec
22111
22112# The root where to search for dependent libraries,and where our libraries should be installed.
22113lt_sysroot=$lt_sysroot
22114
22115# Command to truncate a binary pipe.
22116lt_truncate_bin=$lt_lt_cv_truncate_bin
22117
22118# The name of the directory that contains temporary libtool files.
22119objdir=$objdir
22120
22121# Used to examine libraries when file_magic_cmd begins with "file".
22122MAGIC_CMD=$MAGIC_CMD
22123
22124# Must we lock files when doing compilation?
22125need_locks=$lt_need_locks
22126
22127# Manifest tool.
22128MANIFEST_TOOL=$lt_MANIFEST_TOOL
22129
22130# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22131DSYMUTIL=$lt_DSYMUTIL
22132
22133# Tool to change global to local symbols on Mac OS X.
22134NMEDIT=$lt_NMEDIT
22135
22136# Tool to manipulate fat objects and archives on Mac OS X.
22137LIPO=$lt_LIPO
22138
22139# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22140OTOOL=$lt_OTOOL
22141
22142# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22143OTOOL64=$lt_OTOOL64
22144
22145# Old archive suffix (normally "a").
22146libext=$libext
22147
22148# Shared library suffix (normally ".so").
22149shrext_cmds=$lt_shrext_cmds
22150
22151# The commands to extract the exported symbol list from a shared archive.
22152extract_expsyms_cmds=$lt_extract_expsyms_cmds
22153
22154# Variables whose values should be saved in libtool wrapper scripts and
22155# restored at link time.
22156variables_saved_for_relink=$lt_variables_saved_for_relink
22157
22158# Do we need the "lib" prefix for modules?
22159need_lib_prefix=$need_lib_prefix
22160
22161# Do we need a version for libraries?
22162need_version=$need_version
22163
22164# Library versioning type.
22165version_type=$version_type
22166
22167# Shared library runtime path variable.
22168runpath_var=$runpath_var
22169
22170# Shared library path variable.
22171shlibpath_var=$shlibpath_var
22172
22173# Is shlibpath searched before the hard-coded library search path?
22174shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22175
22176# Format of library name prefix.
22177libname_spec=$lt_libname_spec
22178
22179# List of archive names.  First name is the real one, the rest are links.
22180# The last name is the one that the linker finds with -lNAME
22181library_names_spec=$lt_library_names_spec
22182
22183# The coded name of the library, if different from the real name.
22184soname_spec=$lt_soname_spec
22185
22186# Permission mode override for installation of shared libraries.
22187install_override_mode=$lt_install_override_mode
22188
22189# Command to use after installation of a shared archive.
22190postinstall_cmds=$lt_postinstall_cmds
22191
22192# Command to use after uninstallation of a shared archive.
22193postuninstall_cmds=$lt_postuninstall_cmds
22194
22195# Commands used to finish a libtool library installation in a directory.
22196finish_cmds=$lt_finish_cmds
22197
22198# As "finish_cmds", except a single script fragment to be evaled but
22199# not shown.
22200finish_eval=$lt_finish_eval
22201
22202# Whether we should hardcode library paths into libraries.
22203hardcode_into_libs=$hardcode_into_libs
22204
22205# Compile-time system search path for libraries.
22206sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22207
22208# Detected run-time system search path for libraries.
22209sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22210
22211# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22212configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22213
22214# Whether dlopen is supported.
22215dlopen_support=$enable_dlopen
22216
22217# Whether dlopen of programs is supported.
22218dlopen_self=$enable_dlopen_self
22219
22220# Whether dlopen of statically linked programs is supported.
22221dlopen_self_static=$enable_dlopen_self_static
22222
22223# Commands to strip libraries.
22224old_striplib=$lt_old_striplib
22225striplib=$lt_striplib
22226
22227
22228# The linker used to build libraries.
22229LD=$lt_LD
22230
22231# How to create reloadable object files.
22232reload_flag=$lt_reload_flag
22233reload_cmds=$lt_reload_cmds
22234
22235# Commands used to build an old-style archive.
22236old_archive_cmds=$lt_old_archive_cmds
22237
22238# A language specific compiler.
22239CC=$lt_compiler
22240
22241# Is the compiler the GNU compiler?
22242with_gcc=$GCC
22243
22244# Compiler flag to turn off builtin functions.
22245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22246
22247# Additional compiler flags for building library objects.
22248pic_flag=$lt_lt_prog_compiler_pic
22249
22250# How to pass a linker flag through the compiler.
22251wl=$lt_lt_prog_compiler_wl
22252
22253# Compiler flag to prevent dynamic linking.
22254link_static_flag=$lt_lt_prog_compiler_static
22255
22256# Does compiler simultaneously support -c and -o options?
22257compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22258
22259# Whether or not to add -lc for building shared libraries.
22260build_libtool_need_lc=$archive_cmds_need_lc
22261
22262# Whether or not to disallow shared libs when runtime libs are static.
22263allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22264
22265# Compiler flag to allow reflexive dlopens.
22266export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22267
22268# Compiler flag to generate shared objects directly from archives.
22269whole_archive_flag_spec=$lt_whole_archive_flag_spec
22270
22271# Whether the compiler copes with passing no objects directly.
22272compiler_needs_object=$lt_compiler_needs_object
22273
22274# Create an old-style archive from a shared archive.
22275old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22276
22277# Create a temporary old-style archive to link instead of a shared archive.
22278old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22279
22280# Commands used to build a shared archive.
22281archive_cmds=$lt_archive_cmds
22282archive_expsym_cmds=$lt_archive_expsym_cmds
22283
22284# Commands used to build a loadable module if different from building
22285# a shared archive.
22286module_cmds=$lt_module_cmds
22287module_expsym_cmds=$lt_module_expsym_cmds
22288
22289# Whether we are building with GNU ld or not.
22290with_gnu_ld=$lt_with_gnu_ld
22291
22292# Flag that allows shared libraries with undefined symbols to be built.
22293allow_undefined_flag=$lt_allow_undefined_flag
22294
22295# Flag that enforces no undefined symbols.
22296no_undefined_flag=$lt_no_undefined_flag
22297
22298# Flag to hardcode \$libdir into a binary during linking.
22299# This must work even if \$libdir does not exist
22300hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22301
22302# Whether we need a single "-rpath" flag with a separated argument.
22303hardcode_libdir_separator=$lt_hardcode_libdir_separator
22304
22305# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22306# DIR into the resulting binary.
22307hardcode_direct=$hardcode_direct
22308
22309# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22310# DIR into the resulting binary and the resulting library dependency is
22311# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22312# library is relocated.
22313hardcode_direct_absolute=$hardcode_direct_absolute
22314
22315# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22316# into the resulting binary.
22317hardcode_minus_L=$hardcode_minus_L
22318
22319# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22320# into the resulting binary.
22321hardcode_shlibpath_var=$hardcode_shlibpath_var
22322
22323# Set to "yes" if building a shared library automatically hardcodes DIR
22324# into the library and all subsequent libraries and executables linked
22325# against it.
22326hardcode_automatic=$hardcode_automatic
22327
22328# Set to yes if linker adds runtime paths of dependent libraries
22329# to runtime path list.
22330inherit_rpath=$inherit_rpath
22331
22332# Whether libtool must link a program against all its dependency libraries.
22333link_all_deplibs=$link_all_deplibs
22334
22335# Set to "yes" if exported symbols are required.
22336always_export_symbols=$always_export_symbols
22337
22338# The commands to list exported symbols.
22339export_symbols_cmds=$lt_export_symbols_cmds
22340
22341# Symbols that should not be listed in the preloaded symbols.
22342exclude_expsyms=$lt_exclude_expsyms
22343
22344# Symbols that must always be exported.
22345include_expsyms=$lt_include_expsyms
22346
22347# Commands necessary for linking programs (against libraries) with templates.
22348prelink_cmds=$lt_prelink_cmds
22349
22350# Commands necessary for finishing linking programs.
22351postlink_cmds=$lt_postlink_cmds
22352
22353# Specify filename containing input files.
22354file_list_spec=$lt_file_list_spec
22355
22356# How to hardcode a shared library path into an executable.
22357hardcode_action=$hardcode_action
22358
22359# ### END LIBTOOL CONFIG
22360
22361_LT_EOF
22362
22363    cat <<'_LT_EOF' >> "$cfgfile"
22364
22365# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22366
22367# func_munge_path_list VARIABLE PATH
22368# -----------------------------------
22369# VARIABLE is name of variable containing _space_ separated list of
22370# directories to be munged by the contents of PATH, which is string
22371# having a format:
22372# "DIR[:DIR]:"
22373#       string "DIR[ DIR]" will be prepended to VARIABLE
22374# ":DIR[:DIR]"
22375#       string "DIR[ DIR]" will be appended to VARIABLE
22376# "DIRP[:DIRP]::[DIRA:]DIRA"
22377#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22378#       "DIRA[ DIRA]" will be appended to VARIABLE
22379# "DIR[:DIR]"
22380#       VARIABLE will be replaced by "DIR[ DIR]"
22381func_munge_path_list ()
22382{
22383    case x$2 in
22384    x)
22385        ;;
22386    *:)
22387        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22388        ;;
22389    x:*)
22390        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22391        ;;
22392    *::*)
22393        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22394        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22395        ;;
22396    *)
22397        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22398        ;;
22399    esac
22400}
22401
22402
22403# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22404func_cc_basename ()
22405{
22406    for cc_temp in $*""; do
22407      case $cc_temp in
22408        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22409        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22410        \-*) ;;
22411        *) break;;
22412      esac
22413    done
22414    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22415}
22416
22417
22418# ### END FUNCTIONS SHARED WITH CONFIGURE
22419
22420_LT_EOF
22421
22422  case $host_os in
22423  aix3*)
22424    cat <<\_LT_EOF >> "$cfgfile"
22425# AIX sometimes has problems with the GCC collect2 program.  For some
22426# reason, if we set the COLLECT_NAMES environment variable, the problems
22427# vanish in a puff of smoke.
22428if test set != "${COLLECT_NAMES+set}"; then
22429  COLLECT_NAMES=
22430  export COLLECT_NAMES
22431fi
22432_LT_EOF
22433    ;;
22434  esac
22435
22436
22437ltmain=$ac_aux_dir/ltmain.sh
22438
22439
22440  # We use sed instead of cat because bash on DJGPP gets confused if
22441  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22442  # text mode, it properly converts lines to CR/LF.  This bash problem
22443  # is reportedly fixed, but why not run on old versions too?
22444  sed '$q' "$ltmain" >> "$cfgfile" \
22445     || (rm -f "$cfgfile"; exit 1)
22446
22447   mv -f "$cfgfile" "$ofile" ||
22448    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22449  chmod +x "$ofile"
22450
22451 ;;
22452
22453  esac
22454done # for ac_tag
22455
22456
22457as_fn_exit 0
22458_ACEOF
22459ac_clean_files=$ac_clean_files_save
22460
22461test $ac_write_fail = 0 ||
22462  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22463
22464
22465# configure is writing to config.log, and then calls config.status.
22466# config.status does its own redirection, appending to config.log.
22467# Unfortunately, on DOS this fails, as config.log is still kept open
22468# by configure, so config.status won't be able to write to it; its
22469# output is simply discarded.  So we exec the FD to /dev/null,
22470# effectively closing config.log, so it can be properly (re)opened and
22471# appended to by config.status.  When coming back to configure, we
22472# need to make the FD available again.
22473if test "$no_create" != yes; then
22474  ac_cs_success=:
22475  ac_config_status_args=
22476  test "$silent" = yes &&
22477    ac_config_status_args="$ac_config_status_args --quiet"
22478  exec 5>/dev/null
22479  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22480  exec 5>>config.log
22481  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22482  # would make configure fail if this is the last instruction.
22483  $ac_cs_success || as_fn_exit 1
22484fi
22485if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22486  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22487$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22488fi
22489
22490