1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-newport 0.2.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
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-newport'
593PACKAGE_TARNAME='xf86-video-newport'
594PACKAGE_VERSION='0.2.4'
595PACKAGE_STRING='xf86-video-newport 0.2.4'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
642XORG_LIBS
643XORG_CFLAGS
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
649MANIFEST_TOOL
650RANLIB
651ac_ct_AR
652AR
653DLLTOOL
654OBJDUMP
655LN_S
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661LIBTOOL
662AM_BACKSLASH
663AM_DEFAULT_VERBOSITY
664AM_DEFAULT_V
665AM_V
666MAN_SUBSTS
667XORG_MAN_PAGE
668ADMIN_MAN_DIR
669DRIVER_MAN_DIR
670MISC_MAN_DIR
671FILE_MAN_DIR
672LIB_MAN_DIR
673APP_MAN_DIR
674ADMIN_MAN_SUFFIX
675DRIVER_MAN_SUFFIX
676MISC_MAN_SUFFIX
677FILE_MAN_SUFFIX
678LIB_MAN_SUFFIX
679APP_MAN_SUFFIX
680SED
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689INSTALL_CMD
690PKG_CONFIG_LIBDIR
691PKG_CONFIG_PATH
692PKG_CONFIG
693CHANGELOG_CMD
694STRICT_CFLAGS
695CWARNFLAGS
696BASE_CFLAGS
697EGREP
698GREP
699CPP
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
703am__nodep
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717MAINT
718MAINTAINER_MODE_FALSE
719MAINTAINER_MODE_TRUE
720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
773PACKAGE_URL
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
781ac_subst_files=''
782ac_user_opts='
783enable_option_checking
784enable_maintainer_mode
785enable_dependency_tracking
786enable_selective_werror
787enable_strict_compilation
788enable_silent_rules
789enable_static
790enable_shared
791with_pic
792enable_fast_install
793with_gnu_ld
794with_sysroot
795enable_libtool_lock
796with_xorg_module_dir
797'
798      ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CPP
807PKG_CONFIG
808PKG_CONFIG_PATH
809PKG_CONFIG_LIBDIR
810XORG_CFLAGS
811XORG_LIBS'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
861
862ac_prev=
863ac_dashdash=
864for ac_option
865do
866  # If the previous option needs an argument, assign it.
867  if test -n "$ac_prev"; then
868    eval $ac_prev=\$ac_option
869    ac_prev=
870    continue
871  fi
872
873  case $ac_option in
874  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875  *=)   ac_optarg= ;;
876  *)    ac_optarg=yes ;;
877  esac
878
879  # Accept the important Cygnus configure options, so we can diagnose typos.
880
881  case $ac_dashdash$ac_option in
882  --)
883    ac_dashdash=yes ;;
884
885  -bindir | --bindir | --bindi | --bind | --bin | --bi)
886    ac_prev=bindir ;;
887  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888    bindir=$ac_optarg ;;
889
890  -build | --build | --buil | --bui | --bu)
891    ac_prev=build_alias ;;
892  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893    build_alias=$ac_optarg ;;
894
895  -cache-file | --cache-file | --cache-fil | --cache-fi \
896  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897    ac_prev=cache_file ;;
898  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900    cache_file=$ac_optarg ;;
901
902  --config-cache | -C)
903    cache_file=config.cache ;;
904
905  -datadir | --datadir | --datadi | --datad)
906    ac_prev=datadir ;;
907  -datadir=* | --datadir=* | --datadi=* | --datad=*)
908    datadir=$ac_optarg ;;
909
910  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911  | --dataroo | --dataro | --datar)
912    ac_prev=datarootdir ;;
913  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915    datarootdir=$ac_optarg ;;
916
917  -disable-* | --disable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=no ;;
932
933  -docdir | --docdir | --docdi | --doc | --do)
934    ac_prev=docdir ;;
935  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936    docdir=$ac_optarg ;;
937
938  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939    ac_prev=dvidir ;;
940  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941    dvidir=$ac_optarg ;;
942
943  -enable-* | --enable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=\$ac_optarg ;;
958
959  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961  | --exec | --exe | --ex)
962    ac_prev=exec_prefix ;;
963  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965  | --exec=* | --exe=* | --ex=*)
966    exec_prefix=$ac_optarg ;;
967
968  -gas | --gas | --ga | --g)
969    # Obsolete; use --with-gas.
970    with_gas=yes ;;
971
972  -help | --help | --hel | --he | -h)
973    ac_init_help=long ;;
974  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975    ac_init_help=recursive ;;
976  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977    ac_init_help=short ;;
978
979  -host | --host | --hos | --ho)
980    ac_prev=host_alias ;;
981  -host=* | --host=* | --hos=* | --ho=*)
982    host_alias=$ac_optarg ;;
983
984  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985    ac_prev=htmldir ;;
986  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987  | --ht=*)
988    htmldir=$ac_optarg ;;
989
990  -includedir | --includedir | --includedi | --included | --include \
991  | --includ | --inclu | --incl | --inc)
992    ac_prev=includedir ;;
993  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994  | --includ=* | --inclu=* | --incl=* | --inc=*)
995    includedir=$ac_optarg ;;
996
997  -infodir | --infodir | --infodi | --infod | --info | --inf)
998    ac_prev=infodir ;;
999  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000    infodir=$ac_optarg ;;
1001
1002  -libdir | --libdir | --libdi | --libd)
1003    ac_prev=libdir ;;
1004  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005    libdir=$ac_optarg ;;
1006
1007  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008  | --libexe | --libex | --libe)
1009    ac_prev=libexecdir ;;
1010  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011  | --libexe=* | --libex=* | --libe=*)
1012    libexecdir=$ac_optarg ;;
1013
1014  -localedir | --localedir | --localedi | --localed | --locale)
1015    ac_prev=localedir ;;
1016  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017    localedir=$ac_optarg ;;
1018
1019  -localstatedir | --localstatedir | --localstatedi | --localstated \
1020  | --localstate | --localstat | --localsta | --localst | --locals)
1021    ac_prev=localstatedir ;;
1022  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024    localstatedir=$ac_optarg ;;
1025
1026  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027    ac_prev=mandir ;;
1028  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029    mandir=$ac_optarg ;;
1030
1031  -nfp | --nfp | --nf)
1032    # Obsolete; use --without-fp.
1033    with_fp=no ;;
1034
1035  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036  | --no-cr | --no-c | -n)
1037    no_create=yes ;;
1038
1039  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041    no_recursion=yes ;;
1042
1043  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045  | --oldin | --oldi | --old | --ol | --o)
1046    ac_prev=oldincludedir ;;
1047  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050    oldincludedir=$ac_optarg ;;
1051
1052  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053    ac_prev=prefix ;;
1054  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055    prefix=$ac_optarg ;;
1056
1057  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058  | --program-pre | --program-pr | --program-p)
1059    ac_prev=program_prefix ;;
1060  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062    program_prefix=$ac_optarg ;;
1063
1064  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065  | --program-suf | --program-su | --program-s)
1066    ac_prev=program_suffix ;;
1067  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069    program_suffix=$ac_optarg ;;
1070
1071  -program-transform-name | --program-transform-name \
1072  | --program-transform-nam | --program-transform-na \
1073  | --program-transform-n | --program-transform- \
1074  | --program-transform | --program-transfor \
1075  | --program-transfo | --program-transf \
1076  | --program-trans | --program-tran \
1077  | --progr-tra | --program-tr | --program-t)
1078    ac_prev=program_transform_name ;;
1079  -program-transform-name=* | --program-transform-name=* \
1080  | --program-transform-nam=* | --program-transform-na=* \
1081  | --program-transform-n=* | --program-transform-=* \
1082  | --program-transform=* | --program-transfor=* \
1083  | --program-transfo=* | --program-transf=* \
1084  | --program-trans=* | --program-tran=* \
1085  | --progr-tra=* | --program-tr=* | --program-t=*)
1086    program_transform_name=$ac_optarg ;;
1087
1088  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089    ac_prev=pdfdir ;;
1090  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091    pdfdir=$ac_optarg ;;
1092
1093  -psdir | --psdir | --psdi | --psd | --ps)
1094    ac_prev=psdir ;;
1095  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096    psdir=$ac_optarg ;;
1097
1098  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099  | -silent | --silent | --silen | --sile | --sil)
1100    silent=yes ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures xf86-video-newport 0.2.4 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root
1401                          [DATAROOTDIR/doc/xf86-video-newport]
1402  --htmldir=DIR           html documentation [DOCDIR]
1403  --dvidir=DIR            dvi documentation [DOCDIR]
1404  --pdfdir=DIR            pdf documentation [DOCDIR]
1405  --psdir=DIR             ps documentation [DOCDIR]
1406_ACEOF
1407
1408  cat <<\_ACEOF
1409
1410Program names:
1411  --program-prefix=PREFIX            prepend PREFIX to installed program names
1412  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415System types:
1416  --build=BUILD     configure for building on BUILD [guessed]
1417  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of xf86-video-newport 0.2.4:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-maintainer-mode  enable make rules and dependencies not useful
1432			  (and sometimes confusing) to the casual installer
1433  --disable-dependency-tracking  speeds up one-time build
1434  --enable-dependency-tracking   do not reject slow dependency extractors
1435  --disable-selective-werror
1436                          Turn off selective compiler errors. (default:
1437                          enabled)
1438  --enable-strict-compilation
1439                          Enable all warnings from compiler and make them
1440                          errors (default: disabled)
1441  --enable-silent-rules          less verbose build output (undo: `make V=1')
1442  --disable-silent-rules         verbose build output (undo: `make V=0')
1443  --enable-static[=PKGS]  build static libraries [default=no]
1444  --enable-shared[=PKGS]  build shared libraries [default=yes]
1445  --enable-fast-install[=PKGS]
1446                          optimize for fast installation [default=yes]
1447  --disable-libtool-lock  avoid locking (might break parallel builds)
1448
1449Optional Packages:
1450  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1451  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1452  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1453                          both]
1454  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1455  --with-sysroot=DIR Search for dependent libraries within DIR
1456                        (or the compiler's sysroot if not specified).
1457  --with-xorg-module-dir=DIR
1458                          Default xorg module directory
1459                          [[default=$libdir/xorg/modules]]
1460
1461Some influential environment variables:
1462  CC          C compiler command
1463  CFLAGS      C compiler flags
1464  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465              nonstandard directory <lib dir>
1466  LIBS        libraries to pass to the linker, e.g. -l<library>
1467  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468              you have headers in a nonstandard directory <include dir>
1469  CPP         C preprocessor
1470  PKG_CONFIG  path to pkg-config utility
1471  PKG_CONFIG_PATH
1472              directories to add to pkg-config's search path
1473  PKG_CONFIG_LIBDIR
1474              path overriding pkg-config's built-in search path
1475  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1476  XORG_LIBS   linker flags for XORG, overriding pkg-config
1477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
1481Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1482_ACEOF
1483ac_status=$?
1484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487  # If there are subdirs, report their specific --help.
1488  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489    test -d "$ac_dir" ||
1490      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491      continue
1492    ac_builddir=.
1493
1494case "$ac_dir" in
1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496*)
1497  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498  # A ".." for each directory in $ac_dir_suffix.
1499  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500  case $ac_top_builddir_sub in
1501  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503  esac ;;
1504esac
1505ac_abs_top_builddir=$ac_pwd
1506ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507# for backward compatibility:
1508ac_top_builddir=$ac_top_build_prefix
1509
1510case $srcdir in
1511  .)  # We are building in place.
1512    ac_srcdir=.
1513    ac_top_srcdir=$ac_top_builddir_sub
1514    ac_abs_top_srcdir=$ac_pwd ;;
1515  [\\/]* | ?:[\\/]* )  # Absolute name.
1516    ac_srcdir=$srcdir$ac_dir_suffix;
1517    ac_top_srcdir=$srcdir
1518    ac_abs_top_srcdir=$srcdir ;;
1519  *) # Relative name.
1520    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521    ac_top_srcdir=$ac_top_build_prefix$srcdir
1522    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523esac
1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526    cd "$ac_dir" || { ac_status=$?; continue; }
1527    # Check for guested configure.
1528    if test -f "$ac_srcdir/configure.gnu"; then
1529      echo &&
1530      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531    elif test -f "$ac_srcdir/configure"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure" --help=recursive
1534    else
1535      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536    fi || ac_status=$?
1537    cd "$ac_pwd" || { ac_status=$?; break; }
1538  done
1539fi
1540
1541test -n "$ac_init_help" && exit $ac_status
1542if $ac_init_version; then
1543  cat <<\_ACEOF
1544xf86-video-newport configure 0.2.4
1545generated by GNU Autoconf 2.69
1546
1547Copyright (C) 2012 Free Software Foundation, Inc.
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
1551  exit
1552fi
1553
1554## ------------------------ ##
1555## Autoconf initialization. ##
1556## ------------------------ ##
1557
1558# ac_fn_c_try_compile LINENO
1559# --------------------------
1560# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_compile ()
1562{
1563  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564  rm -f conftest.$ac_objext
1565  if { { ac_try="$ac_compile"
1566case "(($ac_try" in
1567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568  *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572  (eval "$ac_compile") 2>conftest.err
1573  ac_status=$?
1574  if test -s conftest.err; then
1575    grep -v '^ *+' conftest.err >conftest.er1
1576    cat conftest.er1 >&5
1577    mv -f conftest.er1 conftest.err
1578  fi
1579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580  test $ac_status = 0; } && {
1581	 test -z "$ac_c_werror_flag" ||
1582	 test ! -s conftest.err
1583       } && test -s conftest.$ac_objext; then :
1584  ac_retval=0
1585else
1586  $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589	ac_retval=1
1590fi
1591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592  as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_compile
1595
1596# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1597# ---------------------------------------------
1598# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1599# accordingly.
1600ac_fn_c_check_decl ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  as_decl_name=`echo $2|sed 's/ *(.*//'`
1604  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1606$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1607if eval \${$3+:} false; then :
1608  $as_echo_n "(cached) " >&6
1609else
1610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h.  */
1612$4
1613int
1614main ()
1615{
1616#ifndef $as_decl_name
1617#ifdef __cplusplus
1618  (void) $as_decl_use;
1619#else
1620  (void) $as_decl_name;
1621#endif
1622#endif
1623
1624  ;
1625  return 0;
1626}
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
1629  eval "$3=yes"
1630else
1631  eval "$3=no"
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634fi
1635eval ac_res=\$$3
1636	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637$as_echo "$ac_res" >&6; }
1638  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639
1640} # ac_fn_c_check_decl
1641
1642# ac_fn_c_try_cpp LINENO
1643# ----------------------
1644# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_cpp ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  if { { ac_try="$ac_cpp conftest.$ac_ext"
1649case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656  ac_status=$?
1657  if test -s conftest.err; then
1658    grep -v '^ *+' conftest.err >conftest.er1
1659    cat conftest.er1 >&5
1660    mv -f conftest.er1 conftest.err
1661  fi
1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; } > conftest.i && {
1664	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665	 test ! -s conftest.err
1666       }; then :
1667  ac_retval=0
1668else
1669  $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672    ac_retval=1
1673fi
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675  as_fn_set_status $ac_retval
1676
1677} # ac_fn_c_try_cpp
1678
1679# ac_fn_c_try_run LINENO
1680# ----------------------
1681# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682# that executables *can* be run.
1683ac_fn_c_try_run ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if { { ac_try="$ac_link"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_link") 2>&5
1694  ac_status=$?
1695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697  { { case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_try") 2>&5
1704  ac_status=$?
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; }; }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: program exited with status $ac_status" >&5
1710       $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713       ac_retval=$ac_status
1714fi
1715  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717  as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_run
1720
1721# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1722# -------------------------------------------------------
1723# Tests whether HEADER exists and can be compiled using the include files in
1724# INCLUDES, setting the cache variable VAR accordingly.
1725ac_fn_c_check_header_compile ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729$as_echo_n "checking for $2... " >&6; }
1730if eval \${$3+:} false; then :
1731  $as_echo_n "(cached) " >&6
1732else
1733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h.  */
1735$4
1736#include <$2>
1737_ACEOF
1738if ac_fn_c_try_compile "$LINENO"; then :
1739  eval "$3=yes"
1740else
1741  eval "$3=no"
1742fi
1743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744fi
1745eval ac_res=\$$3
1746	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747$as_echo "$ac_res" >&6; }
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750} # ac_fn_c_check_header_compile
1751
1752# ac_fn_c_try_link LINENO
1753# -----------------------
1754# Try to link conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_c_try_link ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  rm -f conftest.$ac_objext conftest$ac_exeext
1759  if { { ac_try="$ac_link"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_link") 2>conftest.err
1767  ac_status=$?
1768  if test -s conftest.err; then
1769    grep -v '^ *+' conftest.err >conftest.er1
1770    cat conftest.er1 >&5
1771    mv -f conftest.er1 conftest.err
1772  fi
1773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774  test $ac_status = 0; } && {
1775	 test -z "$ac_c_werror_flag" ||
1776	 test ! -s conftest.err
1777       } && test -s conftest$ac_exeext && {
1778	 test "$cross_compiling" = yes ||
1779	 test -x conftest$ac_exeext
1780       }; then :
1781  ac_retval=0
1782else
1783  $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786	ac_retval=1
1787fi
1788  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1789  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1790  # interfere with the next link command; also delete a directory that is
1791  # left behind by Apple's compiler.  We do this before executing the actions.
1792  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794  as_fn_set_status $ac_retval
1795
1796} # ac_fn_c_try_link
1797
1798# ac_fn_c_check_func LINENO FUNC VAR
1799# ----------------------------------
1800# Tests whether FUNC exists, setting the cache variable VAR accordingly
1801ac_fn_c_check_func ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
1806if eval \${$3+:} false; then :
1807  $as_echo_n "(cached) " >&6
1808else
1809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1813#define $2 innocuous_$2
1814
1815/* System header to define __stub macros and hopefully few prototypes,
1816    which can conflict with char $2 (); below.
1817    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1818    <limits.h> exists even on freestanding compilers.  */
1819
1820#ifdef __STDC__
1821# include <limits.h>
1822#else
1823# include <assert.h>
1824#endif
1825
1826#undef $2
1827
1828/* Override any GCC internal prototype to avoid an error.
1829   Use char because int might match the return type of a GCC
1830   builtin and then its argument prototype would still apply.  */
1831#ifdef __cplusplus
1832extern "C"
1833#endif
1834char $2 ();
1835/* The GNU C library defines this for functions which it implements
1836    to always fail with ENOSYS.  Some functions are actually named
1837    something starting with __ and the normal name is an alias.  */
1838#if defined __stub_$2 || defined __stub___$2
1839choke me
1840#endif
1841
1842int
1843main ()
1844{
1845return $2 ();
1846  ;
1847  return 0;
1848}
1849_ACEOF
1850if ac_fn_c_try_link "$LINENO"; then :
1851  eval "$3=yes"
1852else
1853  eval "$3=no"
1854fi
1855rm -f core conftest.err conftest.$ac_objext \
1856    conftest$ac_exeext conftest.$ac_ext
1857fi
1858eval ac_res=\$$3
1859	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
1861  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863} # ac_fn_c_check_func
1864cat >config.log <<_ACEOF
1865This file contains any messages produced by compilers while
1866running configure, to aid debugging if configure makes a mistake.
1867
1868It was created by xf86-video-newport $as_me 0.2.4, which was
1869generated by GNU Autoconf 2.69.  Invocation command line was
1870
1871  $ $0 $@
1872
1873_ACEOF
1874exec 5>>config.log
1875{
1876cat <<_ASUNAME
1877## --------- ##
1878## Platform. ##
1879## --------- ##
1880
1881hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1882uname -m = `(uname -m) 2>/dev/null || echo unknown`
1883uname -r = `(uname -r) 2>/dev/null || echo unknown`
1884uname -s = `(uname -s) 2>/dev/null || echo unknown`
1885uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886
1887/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1888/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1889
1890/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1891/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1892/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1893/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1894/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1895/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1896/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1897
1898_ASUNAME
1899
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903  IFS=$as_save_IFS
1904  test -z "$as_dir" && as_dir=.
1905    $as_echo "PATH: $as_dir"
1906  done
1907IFS=$as_save_IFS
1908
1909} >&5
1910
1911cat >&5 <<_ACEOF
1912
1913
1914## ----------- ##
1915## Core tests. ##
1916## ----------- ##
1917
1918_ACEOF
1919
1920
1921# Keep a trace of the command line.
1922# Strip out --no-create and --no-recursion so they do not pile up.
1923# Strip out --silent because we don't want to record it for future runs.
1924# Also quote any args containing shell meta-characters.
1925# Make two passes to allow for proper duplicate-argument suppression.
1926ac_configure_args=
1927ac_configure_args0=
1928ac_configure_args1=
1929ac_must_keep_next=false
1930for ac_pass in 1 2
1931do
1932  for ac_arg
1933  do
1934    case $ac_arg in
1935    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1936    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1937    | -silent | --silent | --silen | --sile | --sil)
1938      continue ;;
1939    *\'*)
1940      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1941    esac
1942    case $ac_pass in
1943    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944    2)
1945      as_fn_append ac_configure_args1 " '$ac_arg'"
1946      if test $ac_must_keep_next = true; then
1947	ac_must_keep_next=false # Got value, back to normal.
1948      else
1949	case $ac_arg in
1950	  *=* | --config-cache | -C | -disable-* | --disable-* \
1951	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1952	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1953	  | -with-* | --with-* | -without-* | --without-* | --x)
1954	    case "$ac_configure_args0 " in
1955	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1956	    esac
1957	    ;;
1958	  -* ) ac_must_keep_next=true ;;
1959	esac
1960      fi
1961      as_fn_append ac_configure_args " '$ac_arg'"
1962      ;;
1963    esac
1964  done
1965done
1966{ ac_configure_args0=; unset ac_configure_args0;}
1967{ ac_configure_args1=; unset ac_configure_args1;}
1968
1969# When interrupted or exit'd, cleanup temporary files, and complete
1970# config.log.  We remove comments because anyway the quotes in there
1971# would cause problems or look ugly.
1972# WARNING: Use '\'' to represent an apostrophe within the trap.
1973# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1974trap 'exit_status=$?
1975  # Save into config.log some information that might help in debugging.
1976  {
1977    echo
1978
1979    $as_echo "## ---------------- ##
1980## Cache variables. ##
1981## ---------------- ##"
1982    echo
1983    # The following way of writing the cache mishandles newlines in values,
1984(
1985  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986    eval ac_val=\$$ac_var
1987    case $ac_val in #(
1988    *${as_nl}*)
1989      case $ac_var in #(
1990      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1991$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1992      esac
1993      case $ac_var in #(
1994      _ | IFS | as_nl) ;; #(
1995      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1996      *) { eval $ac_var=; unset $ac_var;} ;;
1997      esac ;;
1998    esac
1999  done
2000  (set) 2>&1 |
2001    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002    *${as_nl}ac_space=\ *)
2003      sed -n \
2004	"s/'\''/'\''\\\\'\'''\''/g;
2005	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006      ;; #(
2007    *)
2008      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009      ;;
2010    esac |
2011    sort
2012)
2013    echo
2014
2015    $as_echo "## ----------------- ##
2016## Output variables. ##
2017## ----------------- ##"
2018    echo
2019    for ac_var in $ac_subst_vars
2020    do
2021      eval ac_val=\$$ac_var
2022      case $ac_val in
2023      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024      esac
2025      $as_echo "$ac_var='\''$ac_val'\''"
2026    done | sort
2027    echo
2028
2029    if test -n "$ac_subst_files"; then
2030      $as_echo "## ------------------- ##
2031## File substitutions. ##
2032## ------------------- ##"
2033      echo
2034      for ac_var in $ac_subst_files
2035      do
2036	eval ac_val=\$$ac_var
2037	case $ac_val in
2038	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039	esac
2040	$as_echo "$ac_var='\''$ac_val'\''"
2041      done | sort
2042      echo
2043    fi
2044
2045    if test -s confdefs.h; then
2046      $as_echo "## ----------- ##
2047## confdefs.h. ##
2048## ----------- ##"
2049      echo
2050      cat confdefs.h
2051      echo
2052    fi
2053    test "$ac_signal" != 0 &&
2054      $as_echo "$as_me: caught signal $ac_signal"
2055    $as_echo "$as_me: exit $exit_status"
2056  } >&5
2057  rm -f core *.core core.conftest.* &&
2058    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2059    exit $exit_status
2060' 0
2061for ac_signal in 1 2 13 15; do
2062  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2063done
2064ac_signal=0
2065
2066# confdefs.h avoids OS command line length limits that DEFS can exceed.
2067rm -f -r conftest* confdefs.h
2068
2069$as_echo "/* confdefs.h */" > confdefs.h
2070
2071# Predefined preprocessor variables.
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_NAME "$PACKAGE_NAME"
2075_ACEOF
2076
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079_ACEOF
2080
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_VERSION "$PACKAGE_VERSION"
2083_ACEOF
2084
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE_STRING "$PACKAGE_STRING"
2087_ACEOF
2088
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2091_ACEOF
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_URL "$PACKAGE_URL"
2095_ACEOF
2096
2097
2098# Let the site file select an alternate cache file if it wants to.
2099# Prefer an explicitly selected file to automatically selected ones.
2100ac_site_file1=NONE
2101ac_site_file2=NONE
2102if test -n "$CONFIG_SITE"; then
2103  # We do not want a PATH search for config.site.
2104  case $CONFIG_SITE in #((
2105    -*)  ac_site_file1=./$CONFIG_SITE;;
2106    */*) ac_site_file1=$CONFIG_SITE;;
2107    *)   ac_site_file1=./$CONFIG_SITE;;
2108  esac
2109elif test "x$prefix" != xNONE; then
2110  ac_site_file1=$prefix/share/config.site
2111  ac_site_file2=$prefix/etc/config.site
2112else
2113  ac_site_file1=$ac_default_prefix/share/config.site
2114  ac_site_file2=$ac_default_prefix/etc/config.site
2115fi
2116for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117do
2118  test "x$ac_site_file" = xNONE && continue
2119  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2120    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2121$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2122    sed 's/^/| /' "$ac_site_file" >&5
2123    . "$ac_site_file" \
2124      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126as_fn_error $? "failed to load site script $ac_site_file
2127See \`config.log' for more details" "$LINENO" 5; }
2128  fi
2129done
2130
2131if test -r "$cache_file"; then
2132  # Some versions of bash will fail to source /dev/null (special files
2133  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2134  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2135    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2136$as_echo "$as_me: loading cache $cache_file" >&6;}
2137    case $cache_file in
2138      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2139      *)                      . "./$cache_file";;
2140    esac
2141  fi
2142else
2143  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2144$as_echo "$as_me: creating cache $cache_file" >&6;}
2145  >$cache_file
2146fi
2147
2148# Check that the precious variables saved in the cache have kept the same
2149# value.
2150ac_cache_corrupted=false
2151for ac_var in $ac_precious_vars; do
2152  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153  eval ac_new_set=\$ac_env_${ac_var}_set
2154  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155  eval ac_new_val=\$ac_env_${ac_var}_value
2156  case $ac_old_set,$ac_new_set in
2157    set,)
2158      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2160      ac_cache_corrupted=: ;;
2161    ,set)
2162      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2163$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2164      ac_cache_corrupted=: ;;
2165    ,);;
2166    *)
2167      if test "x$ac_old_val" != "x$ac_new_val"; then
2168	# differences in whitespace do not lead to failure.
2169	ac_old_val_w=`echo x $ac_old_val`
2170	ac_new_val_w=`echo x $ac_new_val`
2171	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2172	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2173$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174	  ac_cache_corrupted=:
2175	else
2176	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178	  eval $ac_var=\$ac_old_val
2179	fi
2180	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2181$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2182	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2183$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2184      fi;;
2185  esac
2186  # Pass precious variables to config.status.
2187  if test "$ac_new_set" = set; then
2188    case $ac_new_val in
2189    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2190    *) ac_arg=$ac_var=$ac_new_val ;;
2191    esac
2192    case " $ac_configure_args " in
2193      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2194      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2195    esac
2196  fi
2197done
2198if $ac_cache_corrupted; then
2199  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2202$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2203  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2204fi
2205## -------------------- ##
2206## Main body of script. ##
2207## -------------------- ##
2208
2209ac_ext=c
2210ac_cpp='$CPP $CPPFLAGS'
2211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214
2215
2216
2217ac_config_headers="$ac_config_headers config.h"
2218
2219ac_aux_dir=
2220for ac_dir in . "$srcdir"/.; do
2221  if test -f "$ac_dir/install-sh"; then
2222    ac_aux_dir=$ac_dir
2223    ac_install_sh="$ac_aux_dir/install-sh -c"
2224    break
2225  elif test -f "$ac_dir/install.sh"; then
2226    ac_aux_dir=$ac_dir
2227    ac_install_sh="$ac_aux_dir/install.sh -c"
2228    break
2229  elif test -f "$ac_dir/shtool"; then
2230    ac_aux_dir=$ac_dir
2231    ac_install_sh="$ac_aux_dir/shtool install -c"
2232    break
2233  fi
2234done
2235if test -z "$ac_aux_dir"; then
2236  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2237fi
2238
2239# These three variables are undocumented and unsupported,
2240# and are intended to be withdrawn in a future Autoconf release.
2241# They can cause serious problems if a builder's source tree is in a directory
2242# whose full name contains unusual characters.
2243ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2244ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2245ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2246
2247
2248
2249# Initialize Automake
2250am__api_version='1.11'
2251
2252# Find a good install program.  We prefer a C program (faster),
2253# so one script is as good as another.  But avoid the broken or
2254# incompatible versions:
2255# SysV /etc/install, /usr/sbin/install
2256# SunOS /usr/etc/install
2257# IRIX /sbin/install
2258# AIX /bin/install
2259# AmigaOS /C/install, which installs bootblocks on floppy discs
2260# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2261# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2262# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2263# OS/2's system install, which has a completely different semantic
2264# ./install, which can be erroneously created by make from ./install.sh.
2265# Reject install programs that cannot install multiple files.
2266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2267$as_echo_n "checking for a BSD-compatible install... " >&6; }
2268if test -z "$INSTALL"; then
2269if ${ac_cv_path_install+:} false; then :
2270  $as_echo_n "(cached) " >&6
2271else
2272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275  IFS=$as_save_IFS
2276  test -z "$as_dir" && as_dir=.
2277    # Account for people who put trailing slashes in PATH elements.
2278case $as_dir/ in #((
2279  ./ | .// | /[cC]/* | \
2280  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2281  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2282  /usr/ucb/* ) ;;
2283  *)
2284    # OSF1 and SCO ODT 3.0 have their own names for install.
2285    # Don't use installbsd from OSF since it installs stuff as root
2286    # by default.
2287    for ac_prog in ginstall scoinst install; do
2288      for ac_exec_ext in '' $ac_executable_extensions; do
2289	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2290	  if test $ac_prog = install &&
2291	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2292	    # AIX install.  It has an incompatible calling convention.
2293	    :
2294	  elif test $ac_prog = install &&
2295	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2296	    # program-specific install script used by HP pwplus--don't use.
2297	    :
2298	  else
2299	    rm -rf conftest.one conftest.two conftest.dir
2300	    echo one > conftest.one
2301	    echo two > conftest.two
2302	    mkdir conftest.dir
2303	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2304	      test -s conftest.one && test -s conftest.two &&
2305	      test -s conftest.dir/conftest.one &&
2306	      test -s conftest.dir/conftest.two
2307	    then
2308	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2309	      break 3
2310	    fi
2311	  fi
2312	fi
2313      done
2314    done
2315    ;;
2316esac
2317
2318  done
2319IFS=$as_save_IFS
2320
2321rm -rf conftest.one conftest.two conftest.dir
2322
2323fi
2324  if test "${ac_cv_path_install+set}" = set; then
2325    INSTALL=$ac_cv_path_install
2326  else
2327    # As a last resort, use the slow shell script.  Don't cache a
2328    # value for INSTALL within a source directory, because that will
2329    # break other packages using the cache if that directory is
2330    # removed, or if the value is a relative name.
2331    INSTALL=$ac_install_sh
2332  fi
2333fi
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2335$as_echo "$INSTALL" >&6; }
2336
2337# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2338# It thinks the first close brace ends the variable substitution.
2339test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2340
2341test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2342
2343test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2344
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2346$as_echo_n "checking whether build environment is sane... " >&6; }
2347# Just in case
2348sleep 1
2349echo timestamp > conftest.file
2350# Reject unsafe characters in $srcdir or the absolute working directory
2351# name.  Accept space and tab only in the latter.
2352am_lf='
2353'
2354case `pwd` in
2355  *[\\\"\#\$\&\'\`$am_lf]*)
2356    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2357esac
2358case $srcdir in
2359  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2360    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2361esac
2362
2363# Do `set' in a subshell so we don't clobber the current shell's
2364# arguments.  Must try -L first in case configure is actually a
2365# symlink; some systems play weird games with the mod time of symlinks
2366# (eg FreeBSD returns the mod time of the symlink's containing
2367# directory).
2368if (
2369   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2370   if test "$*" = "X"; then
2371      # -L didn't work.
2372      set X `ls -t "$srcdir/configure" conftest.file`
2373   fi
2374   rm -f conftest.file
2375   if test "$*" != "X $srcdir/configure conftest.file" \
2376      && test "$*" != "X conftest.file $srcdir/configure"; then
2377
2378      # If neither matched, then we have a broken ls.  This can happen
2379      # if, for instance, CONFIG_SHELL is bash and it inherits a
2380      # broken ls alias from the environment.  This has actually
2381      # happened.  Such a system could not be considered "sane".
2382      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2383alias in your environment" "$LINENO" 5
2384   fi
2385
2386   test "$2" = conftest.file
2387   )
2388then
2389   # Ok.
2390   :
2391else
2392   as_fn_error $? "newly created file is older than distributed files!
2393Check your system clock" "$LINENO" 5
2394fi
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2396$as_echo "yes" >&6; }
2397test "$program_prefix" != NONE &&
2398  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2399# Use a double $ so make ignores it.
2400test "$program_suffix" != NONE &&
2401  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2402# Double any \ or $.
2403# By default was `s,x,x', remove it if useless.
2404ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2405program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2406
2407# expand $ac_aux_dir to an absolute path
2408am_aux_dir=`cd $ac_aux_dir && pwd`
2409
2410if test x"${MISSING+set}" != xset; then
2411  case $am_aux_dir in
2412  *\ * | *\	*)
2413    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2414  *)
2415    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2416  esac
2417fi
2418# Use eval to expand $SHELL
2419if eval "$MISSING --run true"; then
2420  am_missing_run="$MISSING --run "
2421else
2422  am_missing_run=
2423  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2424$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2425fi
2426
2427if test x"${install_sh}" != xset; then
2428  case $am_aux_dir in
2429  *\ * | *\	*)
2430    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2431  *)
2432    install_sh="\${SHELL} $am_aux_dir/install-sh"
2433  esac
2434fi
2435
2436# Installed binaries are usually stripped using `strip' when the user
2437# run `make install-strip'.  However `strip' might not be the right
2438# tool to use in cross-compilation environments, therefore Automake
2439# will honor the `STRIP' environment variable to overrule this program.
2440if test "$cross_compiling" != no; then
2441  if test -n "$ac_tool_prefix"; then
2442  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2443set dummy ${ac_tool_prefix}strip; ac_word=$2
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445$as_echo_n "checking for $ac_word... " >&6; }
2446if ${ac_cv_prog_STRIP+:} false; then :
2447  $as_echo_n "(cached) " >&6
2448else
2449  if test -n "$STRIP"; then
2450  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455  IFS=$as_save_IFS
2456  test -z "$as_dir" && as_dir=.
2457    for ac_exec_ext in '' $ac_executable_extensions; do
2458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461    break 2
2462  fi
2463done
2464  done
2465IFS=$as_save_IFS
2466
2467fi
2468fi
2469STRIP=$ac_cv_prog_STRIP
2470if test -n "$STRIP"; then
2471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2472$as_echo "$STRIP" >&6; }
2473else
2474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475$as_echo "no" >&6; }
2476fi
2477
2478
2479fi
2480if test -z "$ac_cv_prog_STRIP"; then
2481  ac_ct_STRIP=$STRIP
2482  # Extract the first word of "strip", so it can be a program name with args.
2483set dummy strip; ac_word=$2
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485$as_echo_n "checking for $ac_word... " >&6; }
2486if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2487  $as_echo_n "(cached) " >&6
2488else
2489  if test -n "$ac_ct_STRIP"; then
2490  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    for ac_exec_ext in '' $ac_executable_extensions; do
2498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499    ac_cv_prog_ac_ct_STRIP="strip"
2500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504  done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2510if test -n "$ac_ct_STRIP"; then
2511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2512$as_echo "$ac_ct_STRIP" >&6; }
2513else
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515$as_echo "no" >&6; }
2516fi
2517
2518  if test "x$ac_ct_STRIP" = x; then
2519    STRIP=":"
2520  else
2521    case $cross_compiling:$ac_tool_warned in
2522yes:)
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2525ac_tool_warned=yes ;;
2526esac
2527    STRIP=$ac_ct_STRIP
2528  fi
2529else
2530  STRIP="$ac_cv_prog_STRIP"
2531fi
2532
2533fi
2534INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2535
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2537$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2538if test -z "$MKDIR_P"; then
2539  if ${ac_cv_path_mkdir+:} false; then :
2540  $as_echo_n "(cached) " >&6
2541else
2542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547    for ac_prog in mkdir gmkdir; do
2548	 for ac_exec_ext in '' $ac_executable_extensions; do
2549	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2550	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2551	     'mkdir (GNU coreutils) '* | \
2552	     'mkdir (coreutils) '* | \
2553	     'mkdir (fileutils) '4.1*)
2554	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2555	       break 3;;
2556	   esac
2557	 done
2558       done
2559  done
2560IFS=$as_save_IFS
2561
2562fi
2563
2564  test -d ./--version && rmdir ./--version
2565  if test "${ac_cv_path_mkdir+set}" = set; then
2566    MKDIR_P="$ac_cv_path_mkdir -p"
2567  else
2568    # As a last resort, use the slow shell script.  Don't cache a
2569    # value for MKDIR_P within a source directory, because that will
2570    # break other packages using the cache if that directory is
2571    # removed, or if the value is a relative name.
2572    MKDIR_P="$ac_install_sh -d"
2573  fi
2574fi
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2576$as_echo "$MKDIR_P" >&6; }
2577
2578mkdir_p="$MKDIR_P"
2579case $mkdir_p in
2580  [\\/$]* | ?:[\\/]*) ;;
2581  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2582esac
2583
2584for ac_prog in gawk mawk nawk awk
2585do
2586  # Extract the first word of "$ac_prog", so it can be a program name with args.
2587set dummy $ac_prog; ac_word=$2
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589$as_echo_n "checking for $ac_word... " >&6; }
2590if ${ac_cv_prog_AWK+:} false; then :
2591  $as_echo_n "(cached) " >&6
2592else
2593  if test -n "$AWK"; then
2594  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2595else
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599  IFS=$as_save_IFS
2600  test -z "$as_dir" && as_dir=.
2601    for ac_exec_ext in '' $ac_executable_extensions; do
2602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603    ac_cv_prog_AWK="$ac_prog"
2604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605    break 2
2606  fi
2607done
2608  done
2609IFS=$as_save_IFS
2610
2611fi
2612fi
2613AWK=$ac_cv_prog_AWK
2614if test -n "$AWK"; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2616$as_echo "$AWK" >&6; }
2617else
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619$as_echo "no" >&6; }
2620fi
2621
2622
2623  test -n "$AWK" && break
2624done
2625
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2627$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2628set x ${MAKE-make}
2629ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2630if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  cat >conftest.make <<\_ACEOF
2634SHELL = /bin/sh
2635all:
2636	@echo '@@@%%%=$(MAKE)=@@@%%%'
2637_ACEOF
2638# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2639case `${MAKE-make} -f conftest.make 2>/dev/null` in
2640  *@@@%%%=?*=@@@%%%*)
2641    eval ac_cv_prog_make_${ac_make}_set=yes;;
2642  *)
2643    eval ac_cv_prog_make_${ac_make}_set=no;;
2644esac
2645rm -f conftest.make
2646fi
2647if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649$as_echo "yes" >&6; }
2650  SET_MAKE=
2651else
2652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653$as_echo "no" >&6; }
2654  SET_MAKE="MAKE=${MAKE-make}"
2655fi
2656
2657rm -rf .tst 2>/dev/null
2658mkdir .tst 2>/dev/null
2659if test -d .tst; then
2660  am__leading_dot=.
2661else
2662  am__leading_dot=_
2663fi
2664rmdir .tst 2>/dev/null
2665
2666if test "`cd $srcdir && pwd`" != "`pwd`"; then
2667  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2668  # is not polluted with repeated "-I."
2669  am__isrc=' -I$(srcdir)'
2670  # test to see if srcdir already configured
2671  if test -f $srcdir/config.status; then
2672    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2673  fi
2674fi
2675
2676# test whether we have cygpath
2677if test -z "$CYGPATH_W"; then
2678  if (cygpath --version) >/dev/null 2>/dev/null; then
2679    CYGPATH_W='cygpath -w'
2680  else
2681    CYGPATH_W=echo
2682  fi
2683fi
2684
2685
2686# Define the identity of the package.
2687 PACKAGE='xf86-video-newport'
2688 VERSION='0.2.4'
2689
2690
2691cat >>confdefs.h <<_ACEOF
2692#define PACKAGE "$PACKAGE"
2693_ACEOF
2694
2695
2696cat >>confdefs.h <<_ACEOF
2697#define VERSION "$VERSION"
2698_ACEOF
2699
2700# Some tools Automake needs.
2701
2702ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2703
2704
2705AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2706
2707
2708AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2709
2710
2711AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2712
2713
2714MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2715
2716# We need awk for the "check" target.  The system "awk" is bad on
2717# some platforms.
2718# Always define AMTAR for backward compatibility.  Yes, it's still used
2719# in the wild :-(  We should find a proper way to deprecate it ...
2720AMTAR='$${TAR-tar}'
2721
2722am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2723
2724
2725
2726
2727
2728
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2730$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2731    # Check whether --enable-maintainer-mode was given.
2732if test "${enable_maintainer_mode+set}" = set; then :
2733  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2734else
2735  USE_MAINTAINER_MODE=no
2736fi
2737
2738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2739$as_echo "$USE_MAINTAINER_MODE" >&6; }
2740   if test $USE_MAINTAINER_MODE = yes; then
2741  MAINTAINER_MODE_TRUE=
2742  MAINTAINER_MODE_FALSE='#'
2743else
2744  MAINTAINER_MODE_TRUE='#'
2745  MAINTAINER_MODE_FALSE=
2746fi
2747
2748  MAINT=$MAINTAINER_MODE_TRUE
2749
2750
2751
2752# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764DEPDIR="${am__leading_dot}deps"
2765
2766ac_config_commands="$ac_config_commands depfiles"
2767
2768
2769am_make=${MAKE-make}
2770cat > confinc << 'END'
2771am__doit:
2772	@echo this is the am__doit target
2773.PHONY: am__doit
2774END
2775# If we don't find an include directive, just comment out the code.
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2777$as_echo_n "checking for style of include used by $am_make... " >&6; }
2778am__include="#"
2779am__quote=
2780_am_result=none
2781# First try GNU make style include.
2782echo "include confinc" > confmf
2783# Ignore all kinds of additional output from `make'.
2784case `$am_make -s -f confmf 2> /dev/null` in #(
2785*the\ am__doit\ target*)
2786  am__include=include
2787  am__quote=
2788  _am_result=GNU
2789  ;;
2790esac
2791# Now try BSD make style include.
2792if test "$am__include" = "#"; then
2793   echo '.include "confinc"' > confmf
2794   case `$am_make -s -f confmf 2> /dev/null` in #(
2795   *the\ am__doit\ target*)
2796     am__include=.include
2797     am__quote="\""
2798     _am_result=BSD
2799     ;;
2800   esac
2801fi
2802
2803
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2805$as_echo "$_am_result" >&6; }
2806rm -f confinc confmf
2807
2808# Check whether --enable-dependency-tracking was given.
2809if test "${enable_dependency_tracking+set}" = set; then :
2810  enableval=$enable_dependency_tracking;
2811fi
2812
2813if test "x$enable_dependency_tracking" != xno; then
2814  am_depcomp="$ac_aux_dir/depcomp"
2815  AMDEPBACKSLASH='\'
2816  am__nodep='_no'
2817fi
2818 if test "x$enable_dependency_tracking" != xno; then
2819  AMDEP_TRUE=
2820  AMDEP_FALSE='#'
2821else
2822  AMDEP_TRUE='#'
2823  AMDEP_FALSE=
2824fi
2825
2826
2827ac_ext=c
2828ac_cpp='$CPP $CPPFLAGS'
2829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832if test -n "$ac_tool_prefix"; then
2833  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2834set dummy ${ac_tool_prefix}gcc; ac_word=$2
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if ${ac_cv_prog_CC+:} false; then :
2838  $as_echo_n "(cached) " >&6
2839else
2840  if test -n "$CC"; then
2841  ac_cv_prog_CC="$CC" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848    for ac_exec_ext in '' $ac_executable_extensions; do
2849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852    break 2
2853  fi
2854done
2855  done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860CC=$ac_cv_prog_CC
2861if test -n "$CC"; then
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863$as_echo "$CC" >&6; }
2864else
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869
2870fi
2871if test -z "$ac_cv_prog_CC"; then
2872  ac_ct_CC=$CC
2873  # Extract the first word of "gcc", so it can be a program name with args.
2874set dummy gcc; ac_word=$2
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876$as_echo_n "checking for $ac_word... " >&6; }
2877if ${ac_cv_prog_ac_ct_CC+:} false; then :
2878  $as_echo_n "(cached) " >&6
2879else
2880  if test -n "$ac_ct_CC"; then
2881  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886  IFS=$as_save_IFS
2887  test -z "$as_dir" && as_dir=.
2888    for ac_exec_ext in '' $ac_executable_extensions; do
2889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890    ac_cv_prog_ac_ct_CC="gcc"
2891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892    break 2
2893  fi
2894done
2895  done
2896IFS=$as_save_IFS
2897
2898fi
2899fi
2900ac_ct_CC=$ac_cv_prog_ac_ct_CC
2901if test -n "$ac_ct_CC"; then
2902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2903$as_echo "$ac_ct_CC" >&6; }
2904else
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906$as_echo "no" >&6; }
2907fi
2908
2909  if test "x$ac_ct_CC" = x; then
2910    CC=""
2911  else
2912    case $cross_compiling:$ac_tool_warned in
2913yes:)
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916ac_tool_warned=yes ;;
2917esac
2918    CC=$ac_ct_CC
2919  fi
2920else
2921  CC="$ac_cv_prog_CC"
2922fi
2923
2924if test -z "$CC"; then
2925          if test -n "$ac_tool_prefix"; then
2926    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2927set dummy ${ac_tool_prefix}cc; ac_word=$2
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929$as_echo_n "checking for $ac_word... " >&6; }
2930if ${ac_cv_prog_CC+:} false; then :
2931  $as_echo_n "(cached) " >&6
2932else
2933  if test -n "$CC"; then
2934  ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939  IFS=$as_save_IFS
2940  test -z "$as_dir" && as_dir=.
2941    for ac_exec_ext in '' $ac_executable_extensions; do
2942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943    ac_cv_prog_CC="${ac_tool_prefix}cc"
2944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945    break 2
2946  fi
2947done
2948  done
2949IFS=$as_save_IFS
2950
2951fi
2952fi
2953CC=$ac_cv_prog_CC
2954if test -n "$CC"; then
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956$as_echo "$CC" >&6; }
2957else
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960fi
2961
2962
2963  fi
2964fi
2965if test -z "$CC"; then
2966  # Extract the first word of "cc", so it can be a program name with args.
2967set dummy cc; ac_word=$2
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if ${ac_cv_prog_CC+:} false; then :
2971  $as_echo_n "(cached) " >&6
2972else
2973  if test -n "$CC"; then
2974  ac_cv_prog_CC="$CC" # Let the user override the test.
2975else
2976  ac_prog_rejected=no
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980  IFS=$as_save_IFS
2981  test -z "$as_dir" && as_dir=.
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2985       ac_prog_rejected=yes
2986       continue
2987     fi
2988    ac_cv_prog_CC="cc"
2989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990    break 2
2991  fi
2992done
2993  done
2994IFS=$as_save_IFS
2995
2996if test $ac_prog_rejected = yes; then
2997  # We found a bogon in the path, so make sure we never use it.
2998  set dummy $ac_cv_prog_CC
2999  shift
3000  if test $# != 0; then
3001    # We chose a different compiler from the bogus one.
3002    # However, it has the same basename, so the bogon will be chosen
3003    # first if we set CC to just the basename; use the full file name.
3004    shift
3005    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3006  fi
3007fi
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013$as_echo "$CC" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020fi
3021if test -z "$CC"; then
3022  if test -n "$ac_tool_prefix"; then
3023  for ac_prog in cl.exe
3024  do
3025    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028$as_echo_n "checking for $ac_word... " >&6; }
3029if ${ac_cv_prog_CC+:} false; then :
3030  $as_echo_n "(cached) " >&6
3031else
3032  if test -n "$CC"; then
3033  ac_cv_prog_CC="$CC" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038  IFS=$as_save_IFS
3039  test -z "$as_dir" && as_dir=.
3040    for ac_exec_ext in '' $ac_executable_extensions; do
3041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044    break 2
3045  fi
3046done
3047  done
3048IFS=$as_save_IFS
3049
3050fi
3051fi
3052CC=$ac_cv_prog_CC
3053if test -n "$CC"; then
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055$as_echo "$CC" >&6; }
3056else
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
3059fi
3060
3061
3062    test -n "$CC" && break
3063  done
3064fi
3065if test -z "$CC"; then
3066  ac_ct_CC=$CC
3067  for ac_prog in cl.exe
3068do
3069  # Extract the first word of "$ac_prog", so it can be a program name with args.
3070set dummy $ac_prog; ac_word=$2
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072$as_echo_n "checking for $ac_word... " >&6; }
3073if ${ac_cv_prog_ac_ct_CC+:} false; then :
3074  $as_echo_n "(cached) " >&6
3075else
3076  if test -n "$ac_ct_CC"; then
3077  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3078else
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082  IFS=$as_save_IFS
3083  test -z "$as_dir" && as_dir=.
3084    for ac_exec_ext in '' $ac_executable_extensions; do
3085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086    ac_cv_prog_ac_ct_CC="$ac_prog"
3087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088    break 2
3089  fi
3090done
3091  done
3092IFS=$as_save_IFS
3093
3094fi
3095fi
3096ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097if test -n "$ac_ct_CC"; then
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3099$as_echo "$ac_ct_CC" >&6; }
3100else
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102$as_echo "no" >&6; }
3103fi
3104
3105
3106  test -n "$ac_ct_CC" && break
3107done
3108
3109  if test "x$ac_ct_CC" = x; then
3110    CC=""
3111  else
3112    case $cross_compiling:$ac_tool_warned in
3113yes:)
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116ac_tool_warned=yes ;;
3117esac
3118    CC=$ac_ct_CC
3119  fi
3120fi
3121
3122fi
3123
3124
3125test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127as_fn_error $? "no acceptable C compiler found in \$PATH
3128See \`config.log' for more details" "$LINENO" 5; }
3129
3130# Provide some information about the compiler.
3131$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3132set X $ac_compile
3133ac_compiler=$2
3134for ac_option in --version -v -V -qversion; do
3135  { { ac_try="$ac_compiler $ac_option >&5"
3136case "(($ac_try" in
3137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138  *) ac_try_echo=$ac_try;;
3139esac
3140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141$as_echo "$ac_try_echo"; } >&5
3142  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3143  ac_status=$?
3144  if test -s conftest.err; then
3145    sed '10a\
3146... rest of stderr output deleted ...
3147         10q' conftest.err >conftest.er1
3148    cat conftest.er1 >&5
3149  fi
3150  rm -f conftest.er1 conftest.err
3151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152  test $ac_status = 0; }
3153done
3154
3155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156/* end confdefs.h.  */
3157
3158int
3159main ()
3160{
3161
3162  ;
3163  return 0;
3164}
3165_ACEOF
3166ac_clean_files_save=$ac_clean_files
3167ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3168# Try to create an executable without -o first, disregard a.out.
3169# It will help us diagnose broken compilers, and finding out an intuition
3170# of exeext.
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3172$as_echo_n "checking whether the C compiler works... " >&6; }
3173ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3174
3175# The possible output files:
3176ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3177
3178ac_rmfiles=
3179for ac_file in $ac_files
3180do
3181  case $ac_file in
3182    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3184  esac
3185done
3186rm -f $ac_rmfiles
3187
3188if { { ac_try="$ac_link_default"
3189case "(($ac_try" in
3190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191  *) ac_try_echo=$ac_try;;
3192esac
3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194$as_echo "$ac_try_echo"; } >&5
3195  (eval "$ac_link_default") 2>&5
3196  ac_status=$?
3197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198  test $ac_status = 0; }; then :
3199  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3200# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3201# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3202# so that the user can short-circuit this test for compilers unknown to
3203# Autoconf.
3204for ac_file in $ac_files ''
3205do
3206  test -f "$ac_file" || continue
3207  case $ac_file in
3208    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3209	;;
3210    [ab].out )
3211	# We found the default executable, but exeext='' is most
3212	# certainly right.
3213	break;;
3214    *.* )
3215	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3216	then :; else
3217	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218	fi
3219	# We set ac_cv_exeext here because the later test for it is not
3220	# safe: cross compilers may not add the suffix if given an `-o'
3221	# argument, so we may need to know it at that point already.
3222	# Even if this section looks crufty: it has the advantage of
3223	# actually working.
3224	break;;
3225    * )
3226	break;;
3227  esac
3228done
3229test "$ac_cv_exeext" = no && ac_cv_exeext=
3230
3231else
3232  ac_file=''
3233fi
3234if test -z "$ac_file"; then :
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237$as_echo "$as_me: failed program was:" >&5
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
3240{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242as_fn_error 77 "C compiler cannot create executables
3243See \`config.log' for more details" "$LINENO" 5; }
3244else
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246$as_echo "yes" >&6; }
3247fi
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3249$as_echo_n "checking for C compiler default output file name... " >&6; }
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3251$as_echo "$ac_file" >&6; }
3252ac_exeext=$ac_cv_exeext
3253
3254rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3255ac_clean_files=$ac_clean_files_save
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3257$as_echo_n "checking for suffix of executables... " >&6; }
3258if { { ac_try="$ac_link"
3259case "(($ac_try" in
3260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261  *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265  (eval "$ac_link") 2>&5
3266  ac_status=$?
3267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268  test $ac_status = 0; }; then :
3269  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3270# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3271# work properly (i.e., refer to `conftest.exe'), while it won't with
3272# `rm'.
3273for ac_file in conftest.exe conftest conftest.*; do
3274  test -f "$ac_file" || continue
3275  case $ac_file in
3276    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278	  break;;
3279    * ) break;;
3280  esac
3281done
3282else
3283  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3286See \`config.log' for more details" "$LINENO" 5; }
3287fi
3288rm -f conftest conftest$ac_cv_exeext
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3290$as_echo "$ac_cv_exeext" >&6; }
3291
3292rm -f conftest.$ac_ext
3293EXEEXT=$ac_cv_exeext
3294ac_exeext=$EXEEXT
3295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h.  */
3297#include <stdio.h>
3298int
3299main ()
3300{
3301FILE *f = fopen ("conftest.out", "w");
3302 return ferror (f) || fclose (f) != 0;
3303
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308ac_clean_files="$ac_clean_files conftest.out"
3309# Check that the compiler produces executables we can run.  If not, either
3310# the compiler is broken, or we cross compile.
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3312$as_echo_n "checking whether we are cross compiling... " >&6; }
3313if test "$cross_compiling" != yes; then
3314  { { ac_try="$ac_link"
3315case "(($ac_try" in
3316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317  *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320$as_echo "$ac_try_echo"; } >&5
3321  (eval "$ac_link") 2>&5
3322  ac_status=$?
3323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324  test $ac_status = 0; }
3325  if { ac_try='./conftest$ac_cv_exeext'
3326  { { case "(($ac_try" in
3327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328  *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
3332  (eval "$ac_try") 2>&5
3333  ac_status=$?
3334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335  test $ac_status = 0; }; }; then
3336    cross_compiling=no
3337  else
3338    if test "$cross_compiling" = maybe; then
3339	cross_compiling=yes
3340    else
3341	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343as_fn_error $? "cannot run C compiled programs.
3344If you meant to cross compile, use \`--host'.
3345See \`config.log' for more details" "$LINENO" 5; }
3346    fi
3347  fi
3348fi
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3350$as_echo "$cross_compiling" >&6; }
3351
3352rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3353ac_clean_files=$ac_clean_files_save
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3355$as_echo_n "checking for suffix of object files... " >&6; }
3356if ${ac_cv_objext+:} false; then :
3357  $as_echo_n "(cached) " >&6
3358else
3359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360/* end confdefs.h.  */
3361
3362int
3363main ()
3364{
3365
3366  ;
3367  return 0;
3368}
3369_ACEOF
3370rm -f conftest.o conftest.obj
3371if { { ac_try="$ac_compile"
3372case "(($ac_try" in
3373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374  *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
3378  (eval "$ac_compile") 2>&5
3379  ac_status=$?
3380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381  test $ac_status = 0; }; then :
3382  for ac_file in conftest.o conftest.obj conftest.*; do
3383  test -f "$ac_file" || continue;
3384  case $ac_file in
3385    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3386    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3387       break;;
3388  esac
3389done
3390else
3391  $as_echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396as_fn_error $? "cannot compute suffix of object files: cannot compile
3397See \`config.log' for more details" "$LINENO" 5; }
3398fi
3399rm -f conftest.$ac_cv_objext conftest.$ac_ext
3400fi
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3402$as_echo "$ac_cv_objext" >&6; }
3403OBJEXT=$ac_cv_objext
3404ac_objext=$OBJEXT
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3406$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3407if ${ac_cv_c_compiler_gnu+:} false; then :
3408  $as_echo_n "(cached) " >&6
3409else
3410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411/* end confdefs.h.  */
3412
3413int
3414main ()
3415{
3416#ifndef __GNUC__
3417       choke me
3418#endif
3419
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424if ac_fn_c_try_compile "$LINENO"; then :
3425  ac_compiler_gnu=yes
3426else
3427  ac_compiler_gnu=no
3428fi
3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430ac_cv_c_compiler_gnu=$ac_compiler_gnu
3431
3432fi
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3434$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3435if test $ac_compiler_gnu = yes; then
3436  GCC=yes
3437else
3438  GCC=
3439fi
3440ac_test_CFLAGS=${CFLAGS+set}
3441ac_save_CFLAGS=$CFLAGS
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3443$as_echo_n "checking whether $CC accepts -g... " >&6; }
3444if ${ac_cv_prog_cc_g+:} false; then :
3445  $as_echo_n "(cached) " >&6
3446else
3447  ac_save_c_werror_flag=$ac_c_werror_flag
3448   ac_c_werror_flag=yes
3449   ac_cv_prog_cc_g=no
3450   CFLAGS="-g"
3451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452/* end confdefs.h.  */
3453
3454int
3455main ()
3456{
3457
3458  ;
3459  return 0;
3460}
3461_ACEOF
3462if ac_fn_c_try_compile "$LINENO"; then :
3463  ac_cv_prog_cc_g=yes
3464else
3465  CFLAGS=""
3466      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h.  */
3468
3469int
3470main ()
3471{
3472
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477if ac_fn_c_try_compile "$LINENO"; then :
3478
3479else
3480  ac_c_werror_flag=$ac_save_c_werror_flag
3481	 CFLAGS="-g"
3482	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h.  */
3484
3485int
3486main ()
3487{
3488
3489  ;
3490  return 0;
3491}
3492_ACEOF
3493if ac_fn_c_try_compile "$LINENO"; then :
3494  ac_cv_prog_cc_g=yes
3495fi
3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497fi
3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499fi
3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501   ac_c_werror_flag=$ac_save_c_werror_flag
3502fi
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3504$as_echo "$ac_cv_prog_cc_g" >&6; }
3505if test "$ac_test_CFLAGS" = set; then
3506  CFLAGS=$ac_save_CFLAGS
3507elif test $ac_cv_prog_cc_g = yes; then
3508  if test "$GCC" = yes; then
3509    CFLAGS="-g -O2"
3510  else
3511    CFLAGS="-g"
3512  fi
3513else
3514  if test "$GCC" = yes; then
3515    CFLAGS="-O2"
3516  else
3517    CFLAGS=
3518  fi
3519fi
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3521$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3522if ${ac_cv_prog_cc_c89+:} false; then :
3523  $as_echo_n "(cached) " >&6
3524else
3525  ac_cv_prog_cc_c89=no
3526ac_save_CC=$CC
3527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528/* end confdefs.h.  */
3529#include <stdarg.h>
3530#include <stdio.h>
3531struct stat;
3532/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3533struct buf { int x; };
3534FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535static char *e (p, i)
3536     char **p;
3537     int i;
3538{
3539  return p[i];
3540}
3541static char *f (char * (*g) (char **, int), char **p, ...)
3542{
3543  char *s;
3544  va_list v;
3545  va_start (v,p);
3546  s = g (p, va_arg (v,int));
3547  va_end (v);
3548  return s;
3549}
3550
3551/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3552   function prototypes and stuff, but not '\xHH' hex character constants.
3553   These don't provoke an error unfortunately, instead are silently treated
3554   as 'x'.  The following induces an error, until -std is added to get
3555   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3556   array size at least.  It's necessary to write '\x00'==0 to get something
3557   that's true only with -std.  */
3558int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3559
3560/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561   inside strings and character constants.  */
3562#define FOO(x) 'x'
3563int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3564
3565int test (int i, double x);
3566struct s1 {int (*f) (int a);};
3567struct s2 {int (*f) (double a);};
3568int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3569int argc;
3570char **argv;
3571int
3572main ()
3573{
3574return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3575  ;
3576  return 0;
3577}
3578_ACEOF
3579for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3581do
3582  CC="$ac_save_CC $ac_arg"
3583  if ac_fn_c_try_compile "$LINENO"; then :
3584  ac_cv_prog_cc_c89=$ac_arg
3585fi
3586rm -f core conftest.err conftest.$ac_objext
3587  test "x$ac_cv_prog_cc_c89" != "xno" && break
3588done
3589rm -f conftest.$ac_ext
3590CC=$ac_save_CC
3591
3592fi
3593# AC_CACHE_VAL
3594case "x$ac_cv_prog_cc_c89" in
3595  x)
3596    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3597$as_echo "none needed" >&6; } ;;
3598  xno)
3599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3600$as_echo "unsupported" >&6; } ;;
3601  *)
3602    CC="$CC $ac_cv_prog_cc_c89"
3603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3604$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3605esac
3606if test "x$ac_cv_prog_cc_c89" != xno; then :
3607
3608fi
3609
3610ac_ext=c
3611ac_cpp='$CPP $CPPFLAGS'
3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615
3616depcc="$CC"   am_compiler_list=
3617
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3619$as_echo_n "checking dependency style of $depcc... " >&6; }
3620if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3621  $as_echo_n "(cached) " >&6
3622else
3623  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3624  # We make a subdir and do the tests there.  Otherwise we can end up
3625  # making bogus files that we don't know about and never remove.  For
3626  # instance it was reported that on HP-UX the gcc test will end up
3627  # making a dummy file named `D' -- because `-MD' means `put the output
3628  # in D'.
3629  rm -rf conftest.dir
3630  mkdir conftest.dir
3631  # Copy depcomp to subdir because otherwise we won't find it if we're
3632  # using a relative directory.
3633  cp "$am_depcomp" conftest.dir
3634  cd conftest.dir
3635  # We will build objects and dependencies in a subdirectory because
3636  # it helps to detect inapplicable dependency modes.  For instance
3637  # both Tru64's cc and ICC support -MD to output dependencies as a
3638  # side effect of compilation, but ICC will put the dependencies in
3639  # the current directory while Tru64 will put them in the object
3640  # directory.
3641  mkdir sub
3642
3643  am_cv_CC_dependencies_compiler_type=none
3644  if test "$am_compiler_list" = ""; then
3645     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3646  fi
3647  am__universal=false
3648  case " $depcc " in #(
3649     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3650     esac
3651
3652  for depmode in $am_compiler_list; do
3653    # Setup a source with many dependencies, because some compilers
3654    # like to wrap large dependency lists on column 80 (with \), and
3655    # we should not choose a depcomp mode which is confused by this.
3656    #
3657    # We need to recreate these files for each test, as the compiler may
3658    # overwrite some of them when testing with obscure command lines.
3659    # This happens at least with the AIX C compiler.
3660    : > sub/conftest.c
3661    for i in 1 2 3 4 5 6; do
3662      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3663      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3664      # Solaris 8's {/usr,}/bin/sh.
3665      touch sub/conftst$i.h
3666    done
3667    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3668
3669    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3670    # mode.  It turns out that the SunPro C++ compiler does not properly
3671    # handle `-M -o', and we need to detect this.  Also, some Intel
3672    # versions had trouble with output in subdirs
3673    am__obj=sub/conftest.${OBJEXT-o}
3674    am__minus_obj="-o $am__obj"
3675    case $depmode in
3676    gcc)
3677      # This depmode causes a compiler race in universal mode.
3678      test "$am__universal" = false || continue
3679      ;;
3680    nosideeffect)
3681      # after this tag, mechanisms are not by side-effect, so they'll
3682      # only be used when explicitly requested
3683      if test "x$enable_dependency_tracking" = xyes; then
3684	continue
3685      else
3686	break
3687      fi
3688      ;;
3689    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3690      # This compiler won't grok `-c -o', but also, the minuso test has
3691      # not run yet.  These depmodes are late enough in the game, and
3692      # so weak that their functioning should not be impacted.
3693      am__obj=conftest.${OBJEXT-o}
3694      am__minus_obj=
3695      ;;
3696    none) break ;;
3697    esac
3698    if depmode=$depmode \
3699       source=sub/conftest.c object=$am__obj \
3700       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3701       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3702         >/dev/null 2>conftest.err &&
3703       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3704       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3705       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3706       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3707      # icc doesn't choke on unknown options, it will just issue warnings
3708      # or remarks (even with -Werror).  So we grep stderr for any message
3709      # that says an option was ignored or not supported.
3710      # When given -MP, icc 7.0 and 7.1 complain thusly:
3711      #   icc: Command line warning: ignoring option '-M'; no argument required
3712      # The diagnosis changed in icc 8.0:
3713      #   icc: Command line remark: option '-MP' not supported
3714      if (grep 'ignoring option' conftest.err ||
3715          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3716        am_cv_CC_dependencies_compiler_type=$depmode
3717        break
3718      fi
3719    fi
3720  done
3721
3722  cd ..
3723  rm -rf conftest.dir
3724else
3725  am_cv_CC_dependencies_compiler_type=none
3726fi
3727
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3730$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3731CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3732
3733 if
3734  test "x$enable_dependency_tracking" != xno \
3735  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3736  am__fastdepCC_TRUE=
3737  am__fastdepCC_FALSE='#'
3738else
3739  am__fastdepCC_TRUE='#'
3740  am__fastdepCC_FALSE=
3741fi
3742
3743
3744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3745$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3746if ${ac_cv_prog_cc_c99+:} false; then :
3747  $as_echo_n "(cached) " >&6
3748else
3749  ac_cv_prog_cc_c99=no
3750ac_save_CC=$CC
3751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753#include <stdarg.h>
3754#include <stdbool.h>
3755#include <stdlib.h>
3756#include <wchar.h>
3757#include <stdio.h>
3758
3759// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3760#define debug(...) fprintf (stderr, __VA_ARGS__)
3761#define showlist(...) puts (#__VA_ARGS__)
3762#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3763static void
3764test_varargs_macros (void)
3765{
3766  int x = 1234;
3767  int y = 5678;
3768  debug ("Flag");
3769  debug ("X = %d\n", x);
3770  showlist (The first, second, and third items.);
3771  report (x>y, "x is %d but y is %d", x, y);
3772}
3773
3774// Check long long types.
3775#define BIG64 18446744073709551615ull
3776#define BIG32 4294967295ul
3777#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3778#if !BIG_OK
3779  your preprocessor is broken;
3780#endif
3781#if BIG_OK
3782#else
3783  your preprocessor is broken;
3784#endif
3785static long long int bignum = -9223372036854775807LL;
3786static unsigned long long int ubignum = BIG64;
3787
3788struct incomplete_array
3789{
3790  int datasize;
3791  double data[];
3792};
3793
3794struct named_init {
3795  int number;
3796  const wchar_t *name;
3797  double average;
3798};
3799
3800typedef const char *ccp;
3801
3802static inline int
3803test_restrict (ccp restrict text)
3804{
3805  // See if C++-style comments work.
3806  // Iterate through items via the restricted pointer.
3807  // Also check for declarations in for loops.
3808  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3809    continue;
3810  return 0;
3811}
3812
3813// Check varargs and va_copy.
3814static void
3815test_varargs (const char *format, ...)
3816{
3817  va_list args;
3818  va_start (args, format);
3819  va_list args_copy;
3820  va_copy (args_copy, args);
3821
3822  const char *str;
3823  int number;
3824  float fnumber;
3825
3826  while (*format)
3827    {
3828      switch (*format++)
3829	{
3830	case 's': // string
3831	  str = va_arg (args_copy, const char *);
3832	  break;
3833	case 'd': // int
3834	  number = va_arg (args_copy, int);
3835	  break;
3836	case 'f': // float
3837	  fnumber = va_arg (args_copy, double);
3838	  break;
3839	default:
3840	  break;
3841	}
3842    }
3843  va_end (args_copy);
3844  va_end (args);
3845}
3846
3847int
3848main ()
3849{
3850
3851  // Check bool.
3852  _Bool success = false;
3853
3854  // Check restrict.
3855  if (test_restrict ("String literal") == 0)
3856    success = true;
3857  char *restrict newvar = "Another string";
3858
3859  // Check varargs.
3860  test_varargs ("s, d' f .", "string", 65, 34.234);
3861  test_varargs_macros ();
3862
3863  // Check flexible array members.
3864  struct incomplete_array *ia =
3865    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3866  ia->datasize = 10;
3867  for (int i = 0; i < ia->datasize; ++i)
3868    ia->data[i] = i * 1.234;
3869
3870  // Check named initializers.
3871  struct named_init ni = {
3872    .number = 34,
3873    .name = L"Test wide string",
3874    .average = 543.34343,
3875  };
3876
3877  ni.number = 58;
3878
3879  int dynamic_array[ni.number];
3880  dynamic_array[ni.number - 1] = 543;
3881
3882  // work around unused variable warnings
3883  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3884	  || dynamic_array[ni.number - 1] != 543);
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3891do
3892  CC="$ac_save_CC $ac_arg"
3893  if ac_fn_c_try_compile "$LINENO"; then :
3894  ac_cv_prog_cc_c99=$ac_arg
3895fi
3896rm -f core conftest.err conftest.$ac_objext
3897  test "x$ac_cv_prog_cc_c99" != "xno" && break
3898done
3899rm -f conftest.$ac_ext
3900CC=$ac_save_CC
3901
3902fi
3903# AC_CACHE_VAL
3904case "x$ac_cv_prog_cc_c99" in
3905  x)
3906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3907$as_echo "none needed" >&6; } ;;
3908  xno)
3909    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3910$as_echo "unsupported" >&6; } ;;
3911  *)
3912    CC="$CC $ac_cv_prog_cc_c99"
3913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3914$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3915esac
3916if test "x$ac_cv_prog_cc_c99" != xno; then :
3917
3918fi
3919
3920
3921
3922ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3928$as_echo_n "checking how to run the C preprocessor... " >&6; }
3929# On Suns, sometimes $CPP names a directory.
3930if test -n "$CPP" && test -d "$CPP"; then
3931  CPP=
3932fi
3933if test -z "$CPP"; then
3934  if ${ac_cv_prog_CPP+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937      # Double quotes because CPP needs to be expanded
3938    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3939    do
3940      ac_preproc_ok=false
3941for ac_c_preproc_warn_flag in '' yes
3942do
3943  # Use a header file that comes with gcc, so configuring glibc
3944  # with a fresh cross-compiler works.
3945  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946  # <limits.h> exists even on freestanding compilers.
3947  # On the NeXT, cc -E runs the code through the compiler's parser,
3948  # not just through cpp. "Syntax error" is here to catch this case.
3949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950/* end confdefs.h.  */
3951#ifdef __STDC__
3952# include <limits.h>
3953#else
3954# include <assert.h>
3955#endif
3956		     Syntax error
3957_ACEOF
3958if ac_fn_c_try_cpp "$LINENO"; then :
3959
3960else
3961  # Broken: fails on valid input.
3962continue
3963fi
3964rm -f conftest.err conftest.i conftest.$ac_ext
3965
3966  # OK, works on sane cases.  Now check whether nonexistent headers
3967  # can be detected and how.
3968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970#include <ac_nonexistent.h>
3971_ACEOF
3972if ac_fn_c_try_cpp "$LINENO"; then :
3973  # Broken: success on invalid input.
3974continue
3975else
3976  # Passes both tests.
3977ac_preproc_ok=:
3978break
3979fi
3980rm -f conftest.err conftest.i conftest.$ac_ext
3981
3982done
3983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984rm -f conftest.i conftest.err conftest.$ac_ext
3985if $ac_preproc_ok; then :
3986  break
3987fi
3988
3989    done
3990    ac_cv_prog_CPP=$CPP
3991
3992fi
3993  CPP=$ac_cv_prog_CPP
3994else
3995  ac_cv_prog_CPP=$CPP
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3998$as_echo "$CPP" >&6; }
3999ac_preproc_ok=false
4000for ac_c_preproc_warn_flag in '' yes
4001do
4002  # Use a header file that comes with gcc, so configuring glibc
4003  # with a fresh cross-compiler works.
4004  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005  # <limits.h> exists even on freestanding compilers.
4006  # On the NeXT, cc -E runs the code through the compiler's parser,
4007  # not just through cpp. "Syntax error" is here to catch this case.
4008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h.  */
4010#ifdef __STDC__
4011# include <limits.h>
4012#else
4013# include <assert.h>
4014#endif
4015		     Syntax error
4016_ACEOF
4017if ac_fn_c_try_cpp "$LINENO"; then :
4018
4019else
4020  # Broken: fails on valid input.
4021continue
4022fi
4023rm -f conftest.err conftest.i conftest.$ac_ext
4024
4025  # OK, works on sane cases.  Now check whether nonexistent headers
4026  # can be detected and how.
4027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h.  */
4029#include <ac_nonexistent.h>
4030_ACEOF
4031if ac_fn_c_try_cpp "$LINENO"; then :
4032  # Broken: success on invalid input.
4033continue
4034else
4035  # Passes both tests.
4036ac_preproc_ok=:
4037break
4038fi
4039rm -f conftest.err conftest.i conftest.$ac_ext
4040
4041done
4042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043rm -f conftest.i conftest.err conftest.$ac_ext
4044if $ac_preproc_ok; then :
4045
4046else
4047  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4050See \`config.log' for more details" "$LINENO" 5; }
4051fi
4052
4053ac_ext=c
4054ac_cpp='$CPP $CPPFLAGS'
4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4061$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4062if ${ac_cv_path_GREP+:} false; then :
4063  $as_echo_n "(cached) " >&6
4064else
4065  if test -z "$GREP"; then
4066  ac_path_GREP_found=false
4067  # Loop through the user's path and test for each of PROGNAME-LIST
4068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070do
4071  IFS=$as_save_IFS
4072  test -z "$as_dir" && as_dir=.
4073    for ac_prog in grep ggrep; do
4074    for ac_exec_ext in '' $ac_executable_extensions; do
4075      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4076      as_fn_executable_p "$ac_path_GREP" || continue
4077# Check for GNU ac_path_GREP and select it if it is found.
4078  # Check for GNU $ac_path_GREP
4079case `"$ac_path_GREP" --version 2>&1` in
4080*GNU*)
4081  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4082*)
4083  ac_count=0
4084  $as_echo_n 0123456789 >"conftest.in"
4085  while :
4086  do
4087    cat "conftest.in" "conftest.in" >"conftest.tmp"
4088    mv "conftest.tmp" "conftest.in"
4089    cp "conftest.in" "conftest.nl"
4090    $as_echo 'GREP' >> "conftest.nl"
4091    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093    as_fn_arith $ac_count + 1 && ac_count=$as_val
4094    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4095      # Best one so far, save it but keep looking for a better one
4096      ac_cv_path_GREP="$ac_path_GREP"
4097      ac_path_GREP_max=$ac_count
4098    fi
4099    # 10*(2^10) chars as input seems more than enough
4100    test $ac_count -gt 10 && break
4101  done
4102  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103esac
4104
4105      $ac_path_GREP_found && break 3
4106    done
4107  done
4108  done
4109IFS=$as_save_IFS
4110  if test -z "$ac_cv_path_GREP"; then
4111    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4112  fi
4113else
4114  ac_cv_path_GREP=$GREP
4115fi
4116
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4119$as_echo "$ac_cv_path_GREP" >&6; }
4120 GREP="$ac_cv_path_GREP"
4121
4122
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4124$as_echo_n "checking for egrep... " >&6; }
4125if ${ac_cv_path_EGREP+:} false; then :
4126  $as_echo_n "(cached) " >&6
4127else
4128  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4129   then ac_cv_path_EGREP="$GREP -E"
4130   else
4131     if test -z "$EGREP"; then
4132  ac_path_EGREP_found=false
4133  # Loop through the user's path and test for each of PROGNAME-LIST
4134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136do
4137  IFS=$as_save_IFS
4138  test -z "$as_dir" && as_dir=.
4139    for ac_prog in egrep; do
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4142      as_fn_executable_p "$ac_path_EGREP" || continue
4143# Check for GNU ac_path_EGREP and select it if it is found.
4144  # Check for GNU $ac_path_EGREP
4145case `"$ac_path_EGREP" --version 2>&1` in
4146*GNU*)
4147  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4148*)
4149  ac_count=0
4150  $as_echo_n 0123456789 >"conftest.in"
4151  while :
4152  do
4153    cat "conftest.in" "conftest.in" >"conftest.tmp"
4154    mv "conftest.tmp" "conftest.in"
4155    cp "conftest.in" "conftest.nl"
4156    $as_echo 'EGREP' >> "conftest.nl"
4157    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159    as_fn_arith $ac_count + 1 && ac_count=$as_val
4160    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4161      # Best one so far, save it but keep looking for a better one
4162      ac_cv_path_EGREP="$ac_path_EGREP"
4163      ac_path_EGREP_max=$ac_count
4164    fi
4165    # 10*(2^10) chars as input seems more than enough
4166    test $ac_count -gt 10 && break
4167  done
4168  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169esac
4170
4171      $ac_path_EGREP_found && break 3
4172    done
4173  done
4174  done
4175IFS=$as_save_IFS
4176  if test -z "$ac_cv_path_EGREP"; then
4177    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4178  fi
4179else
4180  ac_cv_path_EGREP=$EGREP
4181fi
4182
4183   fi
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4186$as_echo "$ac_cv_path_EGREP" >&6; }
4187 EGREP="$ac_cv_path_EGREP"
4188
4189
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4191$as_echo_n "checking for ANSI C header files... " >&6; }
4192if ${ac_cv_header_stdc+:} false; then :
4193  $as_echo_n "(cached) " >&6
4194else
4195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h.  */
4197#include <stdlib.h>
4198#include <stdarg.h>
4199#include <string.h>
4200#include <float.h>
4201
4202int
4203main ()
4204{
4205
4206  ;
4207  return 0;
4208}
4209_ACEOF
4210if ac_fn_c_try_compile "$LINENO"; then :
4211  ac_cv_header_stdc=yes
4212else
4213  ac_cv_header_stdc=no
4214fi
4215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216
4217if test $ac_cv_header_stdc = yes; then
4218  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220/* end confdefs.h.  */
4221#include <string.h>
4222
4223_ACEOF
4224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225  $EGREP "memchr" >/dev/null 2>&1; then :
4226
4227else
4228  ac_cv_header_stdc=no
4229fi
4230rm -f conftest*
4231
4232fi
4233
4234if test $ac_cv_header_stdc = yes; then
4235  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h.  */
4238#include <stdlib.h>
4239
4240_ACEOF
4241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242  $EGREP "free" >/dev/null 2>&1; then :
4243
4244else
4245  ac_cv_header_stdc=no
4246fi
4247rm -f conftest*
4248
4249fi
4250
4251if test $ac_cv_header_stdc = yes; then
4252  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4253  if test "$cross_compiling" = yes; then :
4254  :
4255else
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#include <ctype.h>
4259#include <stdlib.h>
4260#if ((' ' & 0x0FF) == 0x020)
4261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4263#else
4264# define ISLOWER(c) \
4265		   (('a' <= (c) && (c) <= 'i') \
4266		     || ('j' <= (c) && (c) <= 'r') \
4267		     || ('s' <= (c) && (c) <= 'z'))
4268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269#endif
4270
4271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4272int
4273main ()
4274{
4275  int i;
4276  for (i = 0; i < 256; i++)
4277    if (XOR (islower (i), ISLOWER (i))
4278	|| toupper (i) != TOUPPER (i))
4279      return 2;
4280  return 0;
4281}
4282_ACEOF
4283if ac_fn_c_try_run "$LINENO"; then :
4284
4285else
4286  ac_cv_header_stdc=no
4287fi
4288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4289  conftest.$ac_objext conftest.beam conftest.$ac_ext
4290fi
4291
4292fi
4293fi
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4295$as_echo "$ac_cv_header_stdc" >&6; }
4296if test $ac_cv_header_stdc = yes; then
4297
4298$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4299
4300fi
4301
4302# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4303for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4304		  inttypes.h stdint.h unistd.h
4305do :
4306  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4308"
4309if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4310  cat >>confdefs.h <<_ACEOF
4311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312_ACEOF
4313
4314fi
4315
4316done
4317
4318
4319
4320
4321
4322
4323ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4324if test "x$ac_cv_have_decl___clang__" = xyes; then :
4325  CLANGCC="yes"
4326else
4327  CLANGCC="no"
4328fi
4329
4330ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4331if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4332  INTELCC="yes"
4333else
4334  INTELCC="no"
4335fi
4336
4337ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4338if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4339  SUNCC="yes"
4340else
4341  SUNCC="no"
4342fi
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4353	if test -n "$ac_tool_prefix"; then
4354  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4355set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357$as_echo_n "checking for $ac_word... " >&6; }
4358if ${ac_cv_path_PKG_CONFIG+:} false; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361  case $PKG_CONFIG in
4362  [\\/]* | ?:[\\/]*)
4363  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4364  ;;
4365  *)
4366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369  IFS=$as_save_IFS
4370  test -z "$as_dir" && as_dir=.
4371    for ac_exec_ext in '' $ac_executable_extensions; do
4372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375    break 2
4376  fi
4377done
4378  done
4379IFS=$as_save_IFS
4380
4381  ;;
4382esac
4383fi
4384PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4385if test -n "$PKG_CONFIG"; then
4386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4387$as_echo "$PKG_CONFIG" >&6; }
4388else
4389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390$as_echo "no" >&6; }
4391fi
4392
4393
4394fi
4395if test -z "$ac_cv_path_PKG_CONFIG"; then
4396  ac_pt_PKG_CONFIG=$PKG_CONFIG
4397  # Extract the first word of "pkg-config", so it can be a program name with args.
4398set dummy pkg-config; ac_word=$2
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400$as_echo_n "checking for $ac_word... " >&6; }
4401if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  case $ac_pt_PKG_CONFIG in
4405  [\\/]* | ?:[\\/]*)
4406  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4407  ;;
4408  *)
4409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412  IFS=$as_save_IFS
4413  test -z "$as_dir" && as_dir=.
4414    for ac_exec_ext in '' $ac_executable_extensions; do
4415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418    break 2
4419  fi
4420done
4421  done
4422IFS=$as_save_IFS
4423
4424  ;;
4425esac
4426fi
4427ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4428if test -n "$ac_pt_PKG_CONFIG"; then
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4430$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4431else
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433$as_echo "no" >&6; }
4434fi
4435
4436  if test "x$ac_pt_PKG_CONFIG" = x; then
4437    PKG_CONFIG=""
4438  else
4439    case $cross_compiling:$ac_tool_warned in
4440yes:)
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4443ac_tool_warned=yes ;;
4444esac
4445    PKG_CONFIG=$ac_pt_PKG_CONFIG
4446  fi
4447else
4448  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4449fi
4450
4451fi
4452if test -n "$PKG_CONFIG"; then
4453	_pkg_min_version=0.9.0
4454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4455$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4456	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4458$as_echo "yes" >&6; }
4459	else
4460		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461$as_echo "no" >&6; }
4462		PKG_CONFIG=""
4463	fi
4464fi
4465# Make sure we can run config.sub.
4466$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4467  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4470$as_echo_n "checking build system type... " >&6; }
4471if ${ac_cv_build+:} false; then :
4472  $as_echo_n "(cached) " >&6
4473else
4474  ac_build_alias=$build_alias
4475test "x$ac_build_alias" = x &&
4476  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4477test "x$ac_build_alias" = x &&
4478  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4479ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4480  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4481
4482fi
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4484$as_echo "$ac_cv_build" >&6; }
4485case $ac_cv_build in
4486*-*-*) ;;
4487*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4488esac
4489build=$ac_cv_build
4490ac_save_IFS=$IFS; IFS='-'
4491set x $ac_cv_build
4492shift
4493build_cpu=$1
4494build_vendor=$2
4495shift; shift
4496# Remember, the first character of IFS is used to create $*,
4497# except with old shells:
4498build_os=$*
4499IFS=$ac_save_IFS
4500case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4504$as_echo_n "checking host system type... " >&6; }
4505if ${ac_cv_host+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  if test "x$host_alias" = x; then
4509  ac_cv_host=$ac_cv_build
4510else
4511  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4512    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4513fi
4514
4515fi
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4517$as_echo "$ac_cv_host" >&6; }
4518case $ac_cv_host in
4519*-*-*) ;;
4520*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4521esac
4522host=$ac_cv_host
4523ac_save_IFS=$IFS; IFS='-'
4524set x $ac_cv_host
4525shift
4526host_cpu=$1
4527host_vendor=$2
4528shift; shift
4529# Remember, the first character of IFS is used to create $*,
4530# except with old shells:
4531host_os=$*
4532IFS=$ac_save_IFS
4533case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4534
4535
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4537$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4538if ${ac_cv_path_SED+:} false; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4542     for ac_i in 1 2 3 4 5 6 7; do
4543       ac_script="$ac_script$as_nl$ac_script"
4544     done
4545     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4546     { ac_script=; unset ac_script;}
4547     if test -z "$SED"; then
4548  ac_path_SED_found=false
4549  # Loop through the user's path and test for each of PROGNAME-LIST
4550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553  IFS=$as_save_IFS
4554  test -z "$as_dir" && as_dir=.
4555    for ac_prog in sed gsed; do
4556    for ac_exec_ext in '' $ac_executable_extensions; do
4557      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4558      as_fn_executable_p "$ac_path_SED" || continue
4559# Check for GNU ac_path_SED and select it if it is found.
4560  # Check for GNU $ac_path_SED
4561case `"$ac_path_SED" --version 2>&1` in
4562*GNU*)
4563  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4564*)
4565  ac_count=0
4566  $as_echo_n 0123456789 >"conftest.in"
4567  while :
4568  do
4569    cat "conftest.in" "conftest.in" >"conftest.tmp"
4570    mv "conftest.tmp" "conftest.in"
4571    cp "conftest.in" "conftest.nl"
4572    $as_echo '' >> "conftest.nl"
4573    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575    as_fn_arith $ac_count + 1 && ac_count=$as_val
4576    if test $ac_count -gt ${ac_path_SED_max-0}; then
4577      # Best one so far, save it but keep looking for a better one
4578      ac_cv_path_SED="$ac_path_SED"
4579      ac_path_SED_max=$ac_count
4580    fi
4581    # 10*(2^10) chars as input seems more than enough
4582    test $ac_count -gt 10 && break
4583  done
4584  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585esac
4586
4587      $ac_path_SED_found && break 3
4588    done
4589  done
4590  done
4591IFS=$as_save_IFS
4592  if test -z "$ac_cv_path_SED"; then
4593    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4594  fi
4595else
4596  ac_cv_path_SED=$SED
4597fi
4598
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4601$as_echo "$ac_cv_path_SED" >&6; }
4602 SED="$ac_cv_path_SED"
4603  rm -f conftest.sed
4604
4605
4606
4607
4608
4609
4610# Check whether --enable-selective-werror was given.
4611if test "${enable_selective_werror+set}" = set; then :
4612  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4613else
4614  SELECTIVE_WERROR=yes
4615fi
4616
4617
4618
4619
4620
4621# -v is too short to test reliably with XORG_TESTSET_CFLAG
4622if test "x$SUNCC" = "xyes"; then
4623    BASE_CFLAGS="-v"
4624else
4625    BASE_CFLAGS=""
4626fi
4627
4628# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642xorg_testset_save_CFLAGS="$CFLAGS"
4643
4644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h.  */
4653int i;
4654_ACEOF
4655if ac_fn_c_try_compile "$LINENO"; then :
4656  xorg_cv_cc_flag_unknown_warning_option=yes
4657else
4658  xorg_cv_cc_flag_unknown_warning_option=no
4659fi
4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661fi
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4665	CFLAGS="$xorg_testset_save_CFLAGS"
4666fi
4667
4668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4671	fi
4672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h.  */
4680int i;
4681_ACEOF
4682if ac_fn_c_try_compile "$LINENO"; then :
4683  xorg_cv_cc_flag_unused_command_line_argument=yes
4684else
4685  xorg_cv_cc_flag_unused_command_line_argument=no
4686fi
4687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4692	CFLAGS="$xorg_testset_save_CFLAGS"
4693fi
4694
4695found="no"
4696
4697	if test $found = "no" ; then
4698		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4700		fi
4701
4702		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4704		fi
4705
4706		CFLAGS="$CFLAGS -Wall"
4707
4708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4709$as_echo_n "checking if $CC supports-Wall... " >&6; }
4710		cacheid=xorg_cv_cc_flag__Wall
4711		if eval \${$cacheid+:} false; then :
4712  $as_echo_n "(cached) " >&6
4713else
4714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h.  */
4716int i;
4717int
4718main ()
4719{
4720
4721  ;
4722  return 0;
4723}
4724_ACEOF
4725if ac_fn_c_try_link "$LINENO"; then :
4726  eval $cacheid=yes
4727else
4728  eval $cacheid=no
4729fi
4730rm -f core conftest.err conftest.$ac_objext \
4731    conftest$ac_exeext conftest.$ac_ext
4732fi
4733
4734
4735		CFLAGS="$xorg_testset_save_CFLAGS"
4736
4737		eval supported=\$$cacheid
4738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4739$as_echo "$supported" >&6; }
4740		if test "$supported" = "yes" ; then
4741			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4742			found="yes"
4743		fi
4744	fi
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760xorg_testset_save_CFLAGS="$CFLAGS"
4761
4762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4767  $as_echo_n "(cached) " >&6
4768else
4769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h.  */
4771int i;
4772_ACEOF
4773if ac_fn_c_try_compile "$LINENO"; then :
4774  xorg_cv_cc_flag_unknown_warning_option=yes
4775else
4776  xorg_cv_cc_flag_unknown_warning_option=no
4777fi
4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779fi
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4783	CFLAGS="$xorg_testset_save_CFLAGS"
4784fi
4785
4786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4789	fi
4790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4794  $as_echo_n "(cached) " >&6
4795else
4796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797/* end confdefs.h.  */
4798int i;
4799_ACEOF
4800if ac_fn_c_try_compile "$LINENO"; then :
4801  xorg_cv_cc_flag_unused_command_line_argument=yes
4802else
4803  xorg_cv_cc_flag_unused_command_line_argument=no
4804fi
4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806fi
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4810	CFLAGS="$xorg_testset_save_CFLAGS"
4811fi
4812
4813found="no"
4814
4815	if test $found = "no" ; then
4816		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4818		fi
4819
4820		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4822		fi
4823
4824		CFLAGS="$CFLAGS -Wpointer-arith"
4825
4826		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4827$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4828		cacheid=xorg_cv_cc_flag__Wpointer_arith
4829		if eval \${$cacheid+:} false; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834int i;
4835int
4836main ()
4837{
4838
4839  ;
4840  return 0;
4841}
4842_ACEOF
4843if ac_fn_c_try_link "$LINENO"; then :
4844  eval $cacheid=yes
4845else
4846  eval $cacheid=no
4847fi
4848rm -f core conftest.err conftest.$ac_objext \
4849    conftest$ac_exeext conftest.$ac_ext
4850fi
4851
4852
4853		CFLAGS="$xorg_testset_save_CFLAGS"
4854
4855		eval supported=\$$cacheid
4856		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4857$as_echo "$supported" >&6; }
4858		if test "$supported" = "yes" ; then
4859			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4860			found="yes"
4861		fi
4862	fi
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878xorg_testset_save_CFLAGS="$CFLAGS"
4879
4880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888/* end confdefs.h.  */
4889int i;
4890_ACEOF
4891if ac_fn_c_try_compile "$LINENO"; then :
4892  xorg_cv_cc_flag_unknown_warning_option=yes
4893else
4894  xorg_cv_cc_flag_unknown_warning_option=no
4895fi
4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897fi
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4901	CFLAGS="$xorg_testset_save_CFLAGS"
4902fi
4903
4904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4907	fi
4908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915/* end confdefs.h.  */
4916int i;
4917_ACEOF
4918if ac_fn_c_try_compile "$LINENO"; then :
4919  xorg_cv_cc_flag_unused_command_line_argument=yes
4920else
4921  xorg_cv_cc_flag_unused_command_line_argument=no
4922fi
4923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924fi
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4927	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4928	CFLAGS="$xorg_testset_save_CFLAGS"
4929fi
4930
4931found="no"
4932
4933	if test $found = "no" ; then
4934		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4935			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4936		fi
4937
4938		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4939			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4940		fi
4941
4942		CFLAGS="$CFLAGS -Wmissing-declarations"
4943
4944		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4945$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4946		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4947		if eval \${$cacheid+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h.  */
4952int i;
4953int
4954main ()
4955{
4956
4957  ;
4958  return 0;
4959}
4960_ACEOF
4961if ac_fn_c_try_link "$LINENO"; then :
4962  eval $cacheid=yes
4963else
4964  eval $cacheid=no
4965fi
4966rm -f core conftest.err conftest.$ac_objext \
4967    conftest$ac_exeext conftest.$ac_ext
4968fi
4969
4970
4971		CFLAGS="$xorg_testset_save_CFLAGS"
4972
4973		eval supported=\$$cacheid
4974		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4975$as_echo "$supported" >&6; }
4976		if test "$supported" = "yes" ; then
4977			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4978			found="yes"
4979		fi
4980	fi
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996xorg_testset_save_CFLAGS="$CFLAGS"
4997
4998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5003  $as_echo_n "(cached) " >&6
5004else
5005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006/* end confdefs.h.  */
5007int i;
5008_ACEOF
5009if ac_fn_c_try_compile "$LINENO"; then :
5010  xorg_cv_cc_flag_unknown_warning_option=yes
5011else
5012  xorg_cv_cc_flag_unknown_warning_option=no
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015fi
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5019	CFLAGS="$xorg_testset_save_CFLAGS"
5020fi
5021
5022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025	fi
5026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5030  $as_echo_n "(cached) " >&6
5031else
5032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h.  */
5034int i;
5035_ACEOF
5036if ac_fn_c_try_compile "$LINENO"; then :
5037  xorg_cv_cc_flag_unused_command_line_argument=yes
5038else
5039  xorg_cv_cc_flag_unused_command_line_argument=no
5040fi
5041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042fi
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5045	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5046	CFLAGS="$xorg_testset_save_CFLAGS"
5047fi
5048
5049found="no"
5050
5051	if test $found = "no" ; then
5052		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5054		fi
5055
5056		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5058		fi
5059
5060		CFLAGS="$CFLAGS -Wformat=2"
5061
5062		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5063$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5064		cacheid=xorg_cv_cc_flag__Wformat_2
5065		if eval \${$cacheid+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070int i;
5071int
5072main ()
5073{
5074
5075  ;
5076  return 0;
5077}
5078_ACEOF
5079if ac_fn_c_try_link "$LINENO"; then :
5080  eval $cacheid=yes
5081else
5082  eval $cacheid=no
5083fi
5084rm -f core conftest.err conftest.$ac_objext \
5085    conftest$ac_exeext conftest.$ac_ext
5086fi
5087
5088
5089		CFLAGS="$xorg_testset_save_CFLAGS"
5090
5091		eval supported=\$$cacheid
5092		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5093$as_echo "$supported" >&6; }
5094		if test "$supported" = "yes" ; then
5095			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5096			found="yes"
5097		fi
5098	fi
5099
5100	if test $found = "no" ; then
5101		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103		fi
5104
5105		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5107		fi
5108
5109		CFLAGS="$CFLAGS -Wformat"
5110
5111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5112$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5113		cacheid=xorg_cv_cc_flag__Wformat
5114		if eval \${$cacheid+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h.  */
5119int i;
5120int
5121main ()
5122{
5123
5124  ;
5125  return 0;
5126}
5127_ACEOF
5128if ac_fn_c_try_link "$LINENO"; then :
5129  eval $cacheid=yes
5130else
5131  eval $cacheid=no
5132fi
5133rm -f core conftest.err conftest.$ac_objext \
5134    conftest$ac_exeext conftest.$ac_ext
5135fi
5136
5137
5138		CFLAGS="$xorg_testset_save_CFLAGS"
5139
5140		eval supported=\$$cacheid
5141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5142$as_echo "$supported" >&6; }
5143		if test "$supported" = "yes" ; then
5144			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5145			found="yes"
5146		fi
5147	fi
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165xorg_testset_save_CFLAGS="$CFLAGS"
5166
5167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h.  */
5176int i;
5177_ACEOF
5178if ac_fn_c_try_compile "$LINENO"; then :
5179  xorg_cv_cc_flag_unknown_warning_option=yes
5180else
5181  xorg_cv_cc_flag_unknown_warning_option=no
5182fi
5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184fi
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5188	CFLAGS="$xorg_testset_save_CFLAGS"
5189fi
5190
5191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5194	fi
5195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5199  $as_echo_n "(cached) " >&6
5200else
5201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202/* end confdefs.h.  */
5203int i;
5204_ACEOF
5205if ac_fn_c_try_compile "$LINENO"; then :
5206  xorg_cv_cc_flag_unused_command_line_argument=yes
5207else
5208  xorg_cv_cc_flag_unused_command_line_argument=no
5209fi
5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5214	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5215	CFLAGS="$xorg_testset_save_CFLAGS"
5216fi
5217
5218found="no"
5219
5220	if test $found = "no" ; then
5221		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5223		fi
5224
5225		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5227		fi
5228
5229		CFLAGS="$CFLAGS -Wstrict-prototypes"
5230
5231		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5232$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5233		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5234		if eval \${$cacheid+:} false; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h.  */
5239int i;
5240int
5241main ()
5242{
5243
5244  ;
5245  return 0;
5246}
5247_ACEOF
5248if ac_fn_c_try_link "$LINENO"; then :
5249  eval $cacheid=yes
5250else
5251  eval $cacheid=no
5252fi
5253rm -f core conftest.err conftest.$ac_objext \
5254    conftest$ac_exeext conftest.$ac_ext
5255fi
5256
5257
5258		CFLAGS="$xorg_testset_save_CFLAGS"
5259
5260		eval supported=\$$cacheid
5261		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5262$as_echo "$supported" >&6; }
5263		if test "$supported" = "yes" ; then
5264			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5265			found="yes"
5266		fi
5267	fi
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283xorg_testset_save_CFLAGS="$CFLAGS"
5284
5285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5290  $as_echo_n "(cached) " >&6
5291else
5292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294int i;
5295_ACEOF
5296if ac_fn_c_try_compile "$LINENO"; then :
5297  xorg_cv_cc_flag_unknown_warning_option=yes
5298else
5299  xorg_cv_cc_flag_unknown_warning_option=no
5300fi
5301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302fi
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5306	CFLAGS="$xorg_testset_save_CFLAGS"
5307fi
5308
5309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312	fi
5313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5317  $as_echo_n "(cached) " >&6
5318else
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322_ACEOF
5323if ac_fn_c_try_compile "$LINENO"; then :
5324  xorg_cv_cc_flag_unused_command_line_argument=yes
5325else
5326  xorg_cv_cc_flag_unused_command_line_argument=no
5327fi
5328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5332	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5333	CFLAGS="$xorg_testset_save_CFLAGS"
5334fi
5335
5336found="no"
5337
5338	if test $found = "no" ; then
5339		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5340			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5341		fi
5342
5343		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5344			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5345		fi
5346
5347		CFLAGS="$CFLAGS -Wmissing-prototypes"
5348
5349		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5350$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5351		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5352		if eval \${$cacheid+:} false; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h.  */
5357int i;
5358int
5359main ()
5360{
5361
5362  ;
5363  return 0;
5364}
5365_ACEOF
5366if ac_fn_c_try_link "$LINENO"; then :
5367  eval $cacheid=yes
5368else
5369  eval $cacheid=no
5370fi
5371rm -f core conftest.err conftest.$ac_objext \
5372    conftest$ac_exeext conftest.$ac_ext
5373fi
5374
5375
5376		CFLAGS="$xorg_testset_save_CFLAGS"
5377
5378		eval supported=\$$cacheid
5379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5380$as_echo "$supported" >&6; }
5381		if test "$supported" = "yes" ; then
5382			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5383			found="yes"
5384		fi
5385	fi
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401xorg_testset_save_CFLAGS="$CFLAGS"
5402
5403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5404	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5408  $as_echo_n "(cached) " >&6
5409else
5410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h.  */
5412int i;
5413_ACEOF
5414if ac_fn_c_try_compile "$LINENO"; then :
5415  xorg_cv_cc_flag_unknown_warning_option=yes
5416else
5417  xorg_cv_cc_flag_unknown_warning_option=no
5418fi
5419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420fi
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5423	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5424	CFLAGS="$xorg_testset_save_CFLAGS"
5425fi
5426
5427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5428	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5429		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430	fi
5431	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h.  */
5439int i;
5440_ACEOF
5441if ac_fn_c_try_compile "$LINENO"; then :
5442  xorg_cv_cc_flag_unused_command_line_argument=yes
5443else
5444  xorg_cv_cc_flag_unused_command_line_argument=no
5445fi
5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447fi
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5451	CFLAGS="$xorg_testset_save_CFLAGS"
5452fi
5453
5454found="no"
5455
5456	if test $found = "no" ; then
5457		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5459		fi
5460
5461		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5463		fi
5464
5465		CFLAGS="$CFLAGS -Wnested-externs"
5466
5467		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5468$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5469		cacheid=xorg_cv_cc_flag__Wnested_externs
5470		if eval \${$cacheid+:} false; then :
5471  $as_echo_n "(cached) " >&6
5472else
5473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h.  */
5475int i;
5476int
5477main ()
5478{
5479
5480  ;
5481  return 0;
5482}
5483_ACEOF
5484if ac_fn_c_try_link "$LINENO"; then :
5485  eval $cacheid=yes
5486else
5487  eval $cacheid=no
5488fi
5489rm -f core conftest.err conftest.$ac_objext \
5490    conftest$ac_exeext conftest.$ac_ext
5491fi
5492
5493
5494		CFLAGS="$xorg_testset_save_CFLAGS"
5495
5496		eval supported=\$$cacheid
5497		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5498$as_echo "$supported" >&6; }
5499		if test "$supported" = "yes" ; then
5500			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5501			found="yes"
5502		fi
5503	fi
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519xorg_testset_save_CFLAGS="$CFLAGS"
5520
5521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5526  $as_echo_n "(cached) " >&6
5527else
5528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529/* end confdefs.h.  */
5530int i;
5531_ACEOF
5532if ac_fn_c_try_compile "$LINENO"; then :
5533  xorg_cv_cc_flag_unknown_warning_option=yes
5534else
5535  xorg_cv_cc_flag_unknown_warning_option=no
5536fi
5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538fi
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5541	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5542	CFLAGS="$xorg_testset_save_CFLAGS"
5543fi
5544
5545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5546	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5547		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5548	fi
5549	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5553  $as_echo_n "(cached) " >&6
5554else
5555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h.  */
5557int i;
5558_ACEOF
5559if ac_fn_c_try_compile "$LINENO"; then :
5560  xorg_cv_cc_flag_unused_command_line_argument=yes
5561else
5562  xorg_cv_cc_flag_unused_command_line_argument=no
5563fi
5564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565fi
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5568	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5569	CFLAGS="$xorg_testset_save_CFLAGS"
5570fi
5571
5572found="no"
5573
5574	if test $found = "no" ; then
5575		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5576			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5577		fi
5578
5579		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5580			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5581		fi
5582
5583		CFLAGS="$CFLAGS -Wbad-function-cast"
5584
5585		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5586$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5587		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5588		if eval \${$cacheid+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h.  */
5593int i;
5594int
5595main ()
5596{
5597
5598  ;
5599  return 0;
5600}
5601_ACEOF
5602if ac_fn_c_try_link "$LINENO"; then :
5603  eval $cacheid=yes
5604else
5605  eval $cacheid=no
5606fi
5607rm -f core conftest.err conftest.$ac_objext \
5608    conftest$ac_exeext conftest.$ac_ext
5609fi
5610
5611
5612		CFLAGS="$xorg_testset_save_CFLAGS"
5613
5614		eval supported=\$$cacheid
5615		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5616$as_echo "$supported" >&6; }
5617		if test "$supported" = "yes" ; then
5618			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5619			found="yes"
5620		fi
5621	fi
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637xorg_testset_save_CFLAGS="$CFLAGS"
5638
5639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5640	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5644  $as_echo_n "(cached) " >&6
5645else
5646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h.  */
5648int i;
5649_ACEOF
5650if ac_fn_c_try_compile "$LINENO"; then :
5651  xorg_cv_cc_flag_unknown_warning_option=yes
5652else
5653  xorg_cv_cc_flag_unknown_warning_option=no
5654fi
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656fi
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5659	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5660	CFLAGS="$xorg_testset_save_CFLAGS"
5661fi
5662
5663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5664	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5665		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5666	fi
5667	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5671  $as_echo_n "(cached) " >&6
5672else
5673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674/* end confdefs.h.  */
5675int i;
5676_ACEOF
5677if ac_fn_c_try_compile "$LINENO"; then :
5678  xorg_cv_cc_flag_unused_command_line_argument=yes
5679else
5680  xorg_cv_cc_flag_unused_command_line_argument=no
5681fi
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683fi
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5686	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5687	CFLAGS="$xorg_testset_save_CFLAGS"
5688fi
5689
5690found="no"
5691
5692	if test $found = "no" ; then
5693		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5694			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5695		fi
5696
5697		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5698			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5699		fi
5700
5701		CFLAGS="$CFLAGS -Wold-style-definition"
5702
5703		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5704$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5705		cacheid=xorg_cv_cc_flag__Wold_style_definition
5706		if eval \${$cacheid+:} false; then :
5707  $as_echo_n "(cached) " >&6
5708else
5709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711int i;
5712int
5713main ()
5714{
5715
5716  ;
5717  return 0;
5718}
5719_ACEOF
5720if ac_fn_c_try_link "$LINENO"; then :
5721  eval $cacheid=yes
5722else
5723  eval $cacheid=no
5724fi
5725rm -f core conftest.err conftest.$ac_objext \
5726    conftest$ac_exeext conftest.$ac_ext
5727fi
5728
5729
5730		CFLAGS="$xorg_testset_save_CFLAGS"
5731
5732		eval supported=\$$cacheid
5733		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5734$as_echo "$supported" >&6; }
5735		if test "$supported" = "yes" ; then
5736			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5737			found="yes"
5738		fi
5739	fi
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755xorg_testset_save_CFLAGS="$CFLAGS"
5756
5757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5758	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5760$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5761if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5762  $as_echo_n "(cached) " >&6
5763else
5764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765/* end confdefs.h.  */
5766int i;
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"; then :
5769  xorg_cv_cc_flag_unknown_warning_option=yes
5770else
5771  xorg_cv_cc_flag_unknown_warning_option=no
5772fi
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5776$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5778	CFLAGS="$xorg_testset_save_CFLAGS"
5779fi
5780
5781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5784	fi
5785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5787$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5788if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5789  $as_echo_n "(cached) " >&6
5790else
5791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792/* end confdefs.h.  */
5793int i;
5794_ACEOF
5795if ac_fn_c_try_compile "$LINENO"; then :
5796  xorg_cv_cc_flag_unused_command_line_argument=yes
5797else
5798  xorg_cv_cc_flag_unused_command_line_argument=no
5799fi
5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801fi
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5803$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5804	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5805	CFLAGS="$xorg_testset_save_CFLAGS"
5806fi
5807
5808found="no"
5809
5810	if test $found = "no" ; then
5811		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5812			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5813		fi
5814
5815		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5816			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5817		fi
5818
5819		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5820
5821		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5822$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5823		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5824		if eval \${$cacheid+:} false; then :
5825  $as_echo_n "(cached) " >&6
5826else
5827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828/* end confdefs.h.  */
5829int i;
5830int
5831main ()
5832{
5833
5834  ;
5835  return 0;
5836}
5837_ACEOF
5838if ac_fn_c_try_link "$LINENO"; then :
5839  eval $cacheid=yes
5840else
5841  eval $cacheid=no
5842fi
5843rm -f core conftest.err conftest.$ac_objext \
5844    conftest$ac_exeext conftest.$ac_ext
5845fi
5846
5847
5848		CFLAGS="$xorg_testset_save_CFLAGS"
5849
5850		eval supported=\$$cacheid
5851		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5852$as_echo "$supported" >&6; }
5853		if test "$supported" = "yes" ; then
5854			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5855			found="yes"
5856		fi
5857	fi
5858
5859
5860
5861
5862
5863# This chunk adds additional warnings that could catch undesired effects.
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877xorg_testset_save_CFLAGS="$CFLAGS"
5878
5879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5884  $as_echo_n "(cached) " >&6
5885else
5886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887/* end confdefs.h.  */
5888int i;
5889_ACEOF
5890if ac_fn_c_try_compile "$LINENO"; then :
5891  xorg_cv_cc_flag_unknown_warning_option=yes
5892else
5893  xorg_cv_cc_flag_unknown_warning_option=no
5894fi
5895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896fi
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5900	CFLAGS="$xorg_testset_save_CFLAGS"
5901fi
5902
5903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5906	fi
5907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h.  */
5915int i;
5916_ACEOF
5917if ac_fn_c_try_compile "$LINENO"; then :
5918  xorg_cv_cc_flag_unused_command_line_argument=yes
5919else
5920  xorg_cv_cc_flag_unused_command_line_argument=no
5921fi
5922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5927	CFLAGS="$xorg_testset_save_CFLAGS"
5928fi
5929
5930found="no"
5931
5932	if test $found = "no" ; then
5933		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5935		fi
5936
5937		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5939		fi
5940
5941		CFLAGS="$CFLAGS -Wunused"
5942
5943		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5944$as_echo_n "checking if $CC supports-Wunused... " >&6; }
5945		cacheid=xorg_cv_cc_flag__Wunused
5946		if eval \${$cacheid+:} false; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h.  */
5951int i;
5952int
5953main ()
5954{
5955
5956  ;
5957  return 0;
5958}
5959_ACEOF
5960if ac_fn_c_try_link "$LINENO"; then :
5961  eval $cacheid=yes
5962else
5963  eval $cacheid=no
5964fi
5965rm -f core conftest.err conftest.$ac_objext \
5966    conftest$ac_exeext conftest.$ac_ext
5967fi
5968
5969
5970		CFLAGS="$xorg_testset_save_CFLAGS"
5971
5972		eval supported=\$$cacheid
5973		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5974$as_echo "$supported" >&6; }
5975		if test "$supported" = "yes" ; then
5976			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5977			found="yes"
5978		fi
5979	fi
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995xorg_testset_save_CFLAGS="$CFLAGS"
5996
5997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6002  $as_echo_n "(cached) " >&6
6003else
6004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005/* end confdefs.h.  */
6006int i;
6007_ACEOF
6008if ac_fn_c_try_compile "$LINENO"; then :
6009  xorg_cv_cc_flag_unknown_warning_option=yes
6010else
6011  xorg_cv_cc_flag_unknown_warning_option=no
6012fi
6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014fi
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6018	CFLAGS="$xorg_testset_save_CFLAGS"
6019fi
6020
6021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6024	fi
6025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h.  */
6033int i;
6034_ACEOF
6035if ac_fn_c_try_compile "$LINENO"; then :
6036  xorg_cv_cc_flag_unused_command_line_argument=yes
6037else
6038  xorg_cv_cc_flag_unused_command_line_argument=no
6039fi
6040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041fi
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6045	CFLAGS="$xorg_testset_save_CFLAGS"
6046fi
6047
6048found="no"
6049
6050	if test $found = "no" ; then
6051		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6053		fi
6054
6055		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6057		fi
6058
6059		CFLAGS="$CFLAGS -Wuninitialized"
6060
6061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6062$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6063		cacheid=xorg_cv_cc_flag__Wuninitialized
6064		if eval \${$cacheid+:} false; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068/* end confdefs.h.  */
6069int i;
6070int
6071main ()
6072{
6073
6074  ;
6075  return 0;
6076}
6077_ACEOF
6078if ac_fn_c_try_link "$LINENO"; then :
6079  eval $cacheid=yes
6080else
6081  eval $cacheid=no
6082fi
6083rm -f core conftest.err conftest.$ac_objext \
6084    conftest$ac_exeext conftest.$ac_ext
6085fi
6086
6087
6088		CFLAGS="$xorg_testset_save_CFLAGS"
6089
6090		eval supported=\$$cacheid
6091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6092$as_echo "$supported" >&6; }
6093		if test "$supported" = "yes" ; then
6094			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6095			found="yes"
6096		fi
6097	fi
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113xorg_testset_save_CFLAGS="$CFLAGS"
6114
6115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6120  $as_echo_n "(cached) " >&6
6121else
6122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h.  */
6124int i;
6125_ACEOF
6126if ac_fn_c_try_compile "$LINENO"; then :
6127  xorg_cv_cc_flag_unknown_warning_option=yes
6128else
6129  xorg_cv_cc_flag_unknown_warning_option=no
6130fi
6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132fi
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6136	CFLAGS="$xorg_testset_save_CFLAGS"
6137fi
6138
6139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6142	fi
6143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h.  */
6151int i;
6152_ACEOF
6153if ac_fn_c_try_compile "$LINENO"; then :
6154  xorg_cv_cc_flag_unused_command_line_argument=yes
6155else
6156  xorg_cv_cc_flag_unused_command_line_argument=no
6157fi
6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159fi
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6163	CFLAGS="$xorg_testset_save_CFLAGS"
6164fi
6165
6166found="no"
6167
6168	if test $found = "no" ; then
6169		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171		fi
6172
6173		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6175		fi
6176
6177		CFLAGS="$CFLAGS -Wshadow"
6178
6179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6180$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6181		cacheid=xorg_cv_cc_flag__Wshadow
6182		if eval \${$cacheid+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h.  */
6187int i;
6188int
6189main ()
6190{
6191
6192  ;
6193  return 0;
6194}
6195_ACEOF
6196if ac_fn_c_try_link "$LINENO"; then :
6197  eval $cacheid=yes
6198else
6199  eval $cacheid=no
6200fi
6201rm -f core conftest.err conftest.$ac_objext \
6202    conftest$ac_exeext conftest.$ac_ext
6203fi
6204
6205
6206		CFLAGS="$xorg_testset_save_CFLAGS"
6207
6208		eval supported=\$$cacheid
6209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6210$as_echo "$supported" >&6; }
6211		if test "$supported" = "yes" ; then
6212			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6213			found="yes"
6214		fi
6215	fi
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231xorg_testset_save_CFLAGS="$CFLAGS"
6232
6233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6234	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6238  $as_echo_n "(cached) " >&6
6239else
6240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241/* end confdefs.h.  */
6242int i;
6243_ACEOF
6244if ac_fn_c_try_compile "$LINENO"; then :
6245  xorg_cv_cc_flag_unknown_warning_option=yes
6246else
6247  xorg_cv_cc_flag_unknown_warning_option=no
6248fi
6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250fi
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6253	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6254	CFLAGS="$xorg_testset_save_CFLAGS"
6255fi
6256
6257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6258	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6260	fi
6261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6265  $as_echo_n "(cached) " >&6
6266else
6267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268/* end confdefs.h.  */
6269int i;
6270_ACEOF
6271if ac_fn_c_try_compile "$LINENO"; then :
6272  xorg_cv_cc_flag_unused_command_line_argument=yes
6273else
6274  xorg_cv_cc_flag_unused_command_line_argument=no
6275fi
6276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6281	CFLAGS="$xorg_testset_save_CFLAGS"
6282fi
6283
6284found="no"
6285
6286	if test $found = "no" ; then
6287		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289		fi
6290
6291		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6293		fi
6294
6295		CFLAGS="$CFLAGS -Wcast-qual"
6296
6297		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6298$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6299		cacheid=xorg_cv_cc_flag__Wcast_qual
6300		if eval \${$cacheid+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h.  */
6305int i;
6306int
6307main ()
6308{
6309
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314if ac_fn_c_try_link "$LINENO"; then :
6315  eval $cacheid=yes
6316else
6317  eval $cacheid=no
6318fi
6319rm -f core conftest.err conftest.$ac_objext \
6320    conftest$ac_exeext conftest.$ac_ext
6321fi
6322
6323
6324		CFLAGS="$xorg_testset_save_CFLAGS"
6325
6326		eval supported=\$$cacheid
6327		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6328$as_echo "$supported" >&6; }
6329		if test "$supported" = "yes" ; then
6330			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6331			found="yes"
6332		fi
6333	fi
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349xorg_testset_save_CFLAGS="$CFLAGS"
6350
6351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h.  */
6360int i;
6361_ACEOF
6362if ac_fn_c_try_compile "$LINENO"; then :
6363  xorg_cv_cc_flag_unknown_warning_option=yes
6364else
6365  xorg_cv_cc_flag_unknown_warning_option=no
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368fi
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6371	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6372	CFLAGS="$xorg_testset_save_CFLAGS"
6373fi
6374
6375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6376	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6377		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378	fi
6379	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387int i;
6388_ACEOF
6389if ac_fn_c_try_compile "$LINENO"; then :
6390  xorg_cv_cc_flag_unused_command_line_argument=yes
6391else
6392  xorg_cv_cc_flag_unused_command_line_argument=no
6393fi
6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395fi
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6399	CFLAGS="$xorg_testset_save_CFLAGS"
6400fi
6401
6402found="no"
6403
6404	if test $found = "no" ; then
6405		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6407		fi
6408
6409		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6411		fi
6412
6413		CFLAGS="$CFLAGS -Wmissing-noreturn"
6414
6415		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6416$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6417		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6418		if eval \${$cacheid+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h.  */
6423int i;
6424int
6425main ()
6426{
6427
6428  ;
6429  return 0;
6430}
6431_ACEOF
6432if ac_fn_c_try_link "$LINENO"; then :
6433  eval $cacheid=yes
6434else
6435  eval $cacheid=no
6436fi
6437rm -f core conftest.err conftest.$ac_objext \
6438    conftest$ac_exeext conftest.$ac_ext
6439fi
6440
6441
6442		CFLAGS="$xorg_testset_save_CFLAGS"
6443
6444		eval supported=\$$cacheid
6445		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6446$as_echo "$supported" >&6; }
6447		if test "$supported" = "yes" ; then
6448			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6449			found="yes"
6450		fi
6451	fi
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467xorg_testset_save_CFLAGS="$CFLAGS"
6468
6469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6470	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6474  $as_echo_n "(cached) " >&6
6475else
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478int i;
6479_ACEOF
6480if ac_fn_c_try_compile "$LINENO"; then :
6481  xorg_cv_cc_flag_unknown_warning_option=yes
6482else
6483  xorg_cv_cc_flag_unknown_warning_option=no
6484fi
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6489	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6490	CFLAGS="$xorg_testset_save_CFLAGS"
6491fi
6492
6493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6494	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6495		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496	fi
6497	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6501  $as_echo_n "(cached) " >&6
6502else
6503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h.  */
6505int i;
6506_ACEOF
6507if ac_fn_c_try_compile "$LINENO"; then :
6508  xorg_cv_cc_flag_unused_command_line_argument=yes
6509else
6510  xorg_cv_cc_flag_unused_command_line_argument=no
6511fi
6512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6516	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6517	CFLAGS="$xorg_testset_save_CFLAGS"
6518fi
6519
6520found="no"
6521
6522	if test $found = "no" ; then
6523		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6524			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6525		fi
6526
6527		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6528			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6529		fi
6530
6531		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6532
6533		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6534$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6535		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6536		if eval \${$cacheid+:} false; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541int i;
6542int
6543main ()
6544{
6545
6546  ;
6547  return 0;
6548}
6549_ACEOF
6550if ac_fn_c_try_link "$LINENO"; then :
6551  eval $cacheid=yes
6552else
6553  eval $cacheid=no
6554fi
6555rm -f core conftest.err conftest.$ac_objext \
6556    conftest$ac_exeext conftest.$ac_ext
6557fi
6558
6559
6560		CFLAGS="$xorg_testset_save_CFLAGS"
6561
6562		eval supported=\$$cacheid
6563		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6564$as_echo "$supported" >&6; }
6565		if test "$supported" = "yes" ; then
6566			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6567			found="yes"
6568		fi
6569	fi
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585xorg_testset_save_CFLAGS="$CFLAGS"
6586
6587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6590$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6591if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6592  $as_echo_n "(cached) " >&6
6593else
6594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h.  */
6596int i;
6597_ACEOF
6598if ac_fn_c_try_compile "$LINENO"; then :
6599  xorg_cv_cc_flag_unknown_warning_option=yes
6600else
6601  xorg_cv_cc_flag_unknown_warning_option=no
6602fi
6603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6606$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6608	CFLAGS="$xorg_testset_save_CFLAGS"
6609fi
6610
6611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6614	fi
6615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6617$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6618if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h.  */
6623int i;
6624_ACEOF
6625if ac_fn_c_try_compile "$LINENO"; then :
6626  xorg_cv_cc_flag_unused_command_line_argument=yes
6627else
6628  xorg_cv_cc_flag_unused_command_line_argument=no
6629fi
6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6633$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6635	CFLAGS="$xorg_testset_save_CFLAGS"
6636fi
6637
6638found="no"
6639
6640	if test $found = "no" ; then
6641		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6643		fi
6644
6645		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6647		fi
6648
6649		CFLAGS="$CFLAGS -Wredundant-decls"
6650
6651		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6652$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6653		cacheid=xorg_cv_cc_flag__Wredundant_decls
6654		if eval \${$cacheid+:} false; then :
6655  $as_echo_n "(cached) " >&6
6656else
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659int i;
6660int
6661main ()
6662{
6663
6664  ;
6665  return 0;
6666}
6667_ACEOF
6668if ac_fn_c_try_link "$LINENO"; then :
6669  eval $cacheid=yes
6670else
6671  eval $cacheid=no
6672fi
6673rm -f core conftest.err conftest.$ac_objext \
6674    conftest$ac_exeext conftest.$ac_ext
6675fi
6676
6677
6678		CFLAGS="$xorg_testset_save_CFLAGS"
6679
6680		eval supported=\$$cacheid
6681		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6682$as_echo "$supported" >&6; }
6683		if test "$supported" = "yes" ; then
6684			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6685			found="yes"
6686		fi
6687	fi
6688
6689
6690
6691# These are currently disabled because they are noisy.  They will be enabled
6692# in the future once the codebase is sufficiently modernized to silence
6693# them.  For now, I don't want them to drown out the other warnings.
6694# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6695# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6696# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6697
6698# Turn some warnings into errors, so we don't accidently get successful builds
6699# when there are problems that should be fixed.
6700
6701if test "x$SELECTIVE_WERROR" = "xyes" ; then
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715xorg_testset_save_CFLAGS="$CFLAGS"
6716
6717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727_ACEOF
6728if ac_fn_c_try_compile "$LINENO"; then :
6729  xorg_cv_cc_flag_unknown_warning_option=yes
6730else
6731  xorg_cv_cc_flag_unknown_warning_option=no
6732fi
6733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734fi
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6738	CFLAGS="$xorg_testset_save_CFLAGS"
6739fi
6740
6741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6744	fi
6745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752/* end confdefs.h.  */
6753int i;
6754_ACEOF
6755if ac_fn_c_try_compile "$LINENO"; then :
6756  xorg_cv_cc_flag_unused_command_line_argument=yes
6757else
6758  xorg_cv_cc_flag_unused_command_line_argument=no
6759fi
6760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761fi
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6765	CFLAGS="$xorg_testset_save_CFLAGS"
6766fi
6767
6768found="no"
6769
6770	if test $found = "no" ; then
6771		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6773		fi
6774
6775		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6777		fi
6778
6779		CFLAGS="$CFLAGS -Werror=implicit"
6780
6781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6782$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6783		cacheid=xorg_cv_cc_flag__Werror_implicit
6784		if eval \${$cacheid+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h.  */
6789int i;
6790int
6791main ()
6792{
6793
6794  ;
6795  return 0;
6796}
6797_ACEOF
6798if ac_fn_c_try_link "$LINENO"; then :
6799  eval $cacheid=yes
6800else
6801  eval $cacheid=no
6802fi
6803rm -f core conftest.err conftest.$ac_objext \
6804    conftest$ac_exeext conftest.$ac_ext
6805fi
6806
6807
6808		CFLAGS="$xorg_testset_save_CFLAGS"
6809
6810		eval supported=\$$cacheid
6811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6812$as_echo "$supported" >&6; }
6813		if test "$supported" = "yes" ; then
6814			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6815			found="yes"
6816		fi
6817	fi
6818
6819	if test $found = "no" ; then
6820		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822		fi
6823
6824		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6826		fi
6827
6828		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6829
6830		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6831$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6832		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6833		if eval \${$cacheid+:} false; then :
6834  $as_echo_n "(cached) " >&6
6835else
6836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h.  */
6838int i;
6839int
6840main ()
6841{
6842
6843  ;
6844  return 0;
6845}
6846_ACEOF
6847if ac_fn_c_try_link "$LINENO"; then :
6848  eval $cacheid=yes
6849else
6850  eval $cacheid=no
6851fi
6852rm -f core conftest.err conftest.$ac_objext \
6853    conftest$ac_exeext conftest.$ac_ext
6854fi
6855
6856
6857		CFLAGS="$xorg_testset_save_CFLAGS"
6858
6859		eval supported=\$$cacheid
6860		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6861$as_echo "$supported" >&6; }
6862		if test "$supported" = "yes" ; then
6863			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6864			found="yes"
6865		fi
6866	fi
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882xorg_testset_save_CFLAGS="$CFLAGS"
6883
6884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6889  $as_echo_n "(cached) " >&6
6890else
6891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893int i;
6894_ACEOF
6895if ac_fn_c_try_compile "$LINENO"; then :
6896  xorg_cv_cc_flag_unknown_warning_option=yes
6897else
6898  xorg_cv_cc_flag_unknown_warning_option=no
6899fi
6900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6905	CFLAGS="$xorg_testset_save_CFLAGS"
6906fi
6907
6908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6911	fi
6912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6916  $as_echo_n "(cached) " >&6
6917else
6918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920int i;
6921_ACEOF
6922if ac_fn_c_try_compile "$LINENO"; then :
6923  xorg_cv_cc_flag_unused_command_line_argument=yes
6924else
6925  xorg_cv_cc_flag_unused_command_line_argument=no
6926fi
6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928fi
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6932	CFLAGS="$xorg_testset_save_CFLAGS"
6933fi
6934
6935found="no"
6936
6937	if test $found = "no" ; then
6938		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940		fi
6941
6942		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6944		fi
6945
6946		CFLAGS="$CFLAGS -Werror=nonnull"
6947
6948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6949$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6950		cacheid=xorg_cv_cc_flag__Werror_nonnull
6951		if eval \${$cacheid+:} false; then :
6952  $as_echo_n "(cached) " >&6
6953else
6954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955/* end confdefs.h.  */
6956int i;
6957int
6958main ()
6959{
6960
6961  ;
6962  return 0;
6963}
6964_ACEOF
6965if ac_fn_c_try_link "$LINENO"; then :
6966  eval $cacheid=yes
6967else
6968  eval $cacheid=no
6969fi
6970rm -f core conftest.err conftest.$ac_objext \
6971    conftest$ac_exeext conftest.$ac_ext
6972fi
6973
6974
6975		CFLAGS="$xorg_testset_save_CFLAGS"
6976
6977		eval supported=\$$cacheid
6978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6979$as_echo "$supported" >&6; }
6980		if test "$supported" = "yes" ; then
6981			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6982			found="yes"
6983		fi
6984	fi
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000xorg_testset_save_CFLAGS="$CFLAGS"
7001
7002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7007  $as_echo_n "(cached) " >&6
7008else
7009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h.  */
7011int i;
7012_ACEOF
7013if ac_fn_c_try_compile "$LINENO"; then :
7014  xorg_cv_cc_flag_unknown_warning_option=yes
7015else
7016  xorg_cv_cc_flag_unknown_warning_option=no
7017fi
7018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019fi
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7022	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7023	CFLAGS="$xorg_testset_save_CFLAGS"
7024fi
7025
7026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7027	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7029	fi
7030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7034  $as_echo_n "(cached) " >&6
7035else
7036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037/* end confdefs.h.  */
7038int i;
7039_ACEOF
7040if ac_fn_c_try_compile "$LINENO"; then :
7041  xorg_cv_cc_flag_unused_command_line_argument=yes
7042else
7043  xorg_cv_cc_flag_unused_command_line_argument=no
7044fi
7045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046fi
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7050	CFLAGS="$xorg_testset_save_CFLAGS"
7051fi
7052
7053found="no"
7054
7055	if test $found = "no" ; then
7056		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058		fi
7059
7060		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7062		fi
7063
7064		CFLAGS="$CFLAGS -Werror=init-self"
7065
7066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7067$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7068		cacheid=xorg_cv_cc_flag__Werror_init_self
7069		if eval \${$cacheid+:} false; then :
7070  $as_echo_n "(cached) " >&6
7071else
7072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h.  */
7074int i;
7075int
7076main ()
7077{
7078
7079  ;
7080  return 0;
7081}
7082_ACEOF
7083if ac_fn_c_try_link "$LINENO"; then :
7084  eval $cacheid=yes
7085else
7086  eval $cacheid=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext \
7089    conftest$ac_exeext conftest.$ac_ext
7090fi
7091
7092
7093		CFLAGS="$xorg_testset_save_CFLAGS"
7094
7095		eval supported=\$$cacheid
7096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7097$as_echo "$supported" >&6; }
7098		if test "$supported" = "yes" ; then
7099			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7100			found="yes"
7101		fi
7102	fi
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118xorg_testset_save_CFLAGS="$CFLAGS"
7119
7120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7125  $as_echo_n "(cached) " >&6
7126else
7127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h.  */
7129int i;
7130_ACEOF
7131if ac_fn_c_try_compile "$LINENO"; then :
7132  xorg_cv_cc_flag_unknown_warning_option=yes
7133else
7134  xorg_cv_cc_flag_unknown_warning_option=no
7135fi
7136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137fi
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7141	CFLAGS="$xorg_testset_save_CFLAGS"
7142fi
7143
7144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7147	fi
7148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h.  */
7156int i;
7157_ACEOF
7158if ac_fn_c_try_compile "$LINENO"; then :
7159  xorg_cv_cc_flag_unused_command_line_argument=yes
7160else
7161  xorg_cv_cc_flag_unused_command_line_argument=no
7162fi
7163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164fi
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7168	CFLAGS="$xorg_testset_save_CFLAGS"
7169fi
7170
7171found="no"
7172
7173	if test $found = "no" ; then
7174		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7176		fi
7177
7178		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7180		fi
7181
7182		CFLAGS="$CFLAGS -Werror=main"
7183
7184		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7185$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7186		cacheid=xorg_cv_cc_flag__Werror_main
7187		if eval \${$cacheid+:} false; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h.  */
7192int i;
7193int
7194main ()
7195{
7196
7197  ;
7198  return 0;
7199}
7200_ACEOF
7201if ac_fn_c_try_link "$LINENO"; then :
7202  eval $cacheid=yes
7203else
7204  eval $cacheid=no
7205fi
7206rm -f core conftest.err conftest.$ac_objext \
7207    conftest$ac_exeext conftest.$ac_ext
7208fi
7209
7210
7211		CFLAGS="$xorg_testset_save_CFLAGS"
7212
7213		eval supported=\$$cacheid
7214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7215$as_echo "$supported" >&6; }
7216		if test "$supported" = "yes" ; then
7217			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7218			found="yes"
7219		fi
7220	fi
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236xorg_testset_save_CFLAGS="$CFLAGS"
7237
7238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7243  $as_echo_n "(cached) " >&6
7244else
7245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247int i;
7248_ACEOF
7249if ac_fn_c_try_compile "$LINENO"; then :
7250  xorg_cv_cc_flag_unknown_warning_option=yes
7251else
7252  xorg_cv_cc_flag_unknown_warning_option=no
7253fi
7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255fi
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7258	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7259	CFLAGS="$xorg_testset_save_CFLAGS"
7260fi
7261
7262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7263	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7264		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7265	fi
7266	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7270  $as_echo_n "(cached) " >&6
7271else
7272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273/* end confdefs.h.  */
7274int i;
7275_ACEOF
7276if ac_fn_c_try_compile "$LINENO"; then :
7277  xorg_cv_cc_flag_unused_command_line_argument=yes
7278else
7279  xorg_cv_cc_flag_unused_command_line_argument=no
7280fi
7281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282fi
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7285	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7286	CFLAGS="$xorg_testset_save_CFLAGS"
7287fi
7288
7289found="no"
7290
7291	if test $found = "no" ; then
7292		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294		fi
7295
7296		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7298		fi
7299
7300		CFLAGS="$CFLAGS -Werror=missing-braces"
7301
7302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7303$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7304		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7305		if eval \${$cacheid+:} false; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h.  */
7310int i;
7311int
7312main ()
7313{
7314
7315  ;
7316  return 0;
7317}
7318_ACEOF
7319if ac_fn_c_try_link "$LINENO"; then :
7320  eval $cacheid=yes
7321else
7322  eval $cacheid=no
7323fi
7324rm -f core conftest.err conftest.$ac_objext \
7325    conftest$ac_exeext conftest.$ac_ext
7326fi
7327
7328
7329		CFLAGS="$xorg_testset_save_CFLAGS"
7330
7331		eval supported=\$$cacheid
7332		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7333$as_echo "$supported" >&6; }
7334		if test "$supported" = "yes" ; then
7335			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7336			found="yes"
7337		fi
7338	fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354xorg_testset_save_CFLAGS="$CFLAGS"
7355
7356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7361  $as_echo_n "(cached) " >&6
7362else
7363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364/* end confdefs.h.  */
7365int i;
7366_ACEOF
7367if ac_fn_c_try_compile "$LINENO"; then :
7368  xorg_cv_cc_flag_unknown_warning_option=yes
7369else
7370  xorg_cv_cc_flag_unknown_warning_option=no
7371fi
7372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373fi
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7377	CFLAGS="$xorg_testset_save_CFLAGS"
7378fi
7379
7380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7383	fi
7384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7388  $as_echo_n "(cached) " >&6
7389else
7390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391/* end confdefs.h.  */
7392int i;
7393_ACEOF
7394if ac_fn_c_try_compile "$LINENO"; then :
7395  xorg_cv_cc_flag_unused_command_line_argument=yes
7396else
7397  xorg_cv_cc_flag_unused_command_line_argument=no
7398fi
7399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400fi
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7404	CFLAGS="$xorg_testset_save_CFLAGS"
7405fi
7406
7407found="no"
7408
7409	if test $found = "no" ; then
7410		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412		fi
7413
7414		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7416		fi
7417
7418		CFLAGS="$CFLAGS -Werror=sequence-point"
7419
7420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7421$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7422		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7423		if eval \${$cacheid+:} false; then :
7424  $as_echo_n "(cached) " >&6
7425else
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428int i;
7429int
7430main ()
7431{
7432
7433  ;
7434  return 0;
7435}
7436_ACEOF
7437if ac_fn_c_try_link "$LINENO"; then :
7438  eval $cacheid=yes
7439else
7440  eval $cacheid=no
7441fi
7442rm -f core conftest.err conftest.$ac_objext \
7443    conftest$ac_exeext conftest.$ac_ext
7444fi
7445
7446
7447		CFLAGS="$xorg_testset_save_CFLAGS"
7448
7449		eval supported=\$$cacheid
7450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7451$as_echo "$supported" >&6; }
7452		if test "$supported" = "yes" ; then
7453			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7454			found="yes"
7455		fi
7456	fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472xorg_testset_save_CFLAGS="$CFLAGS"
7473
7474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7479  $as_echo_n "(cached) " >&6
7480else
7481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h.  */
7483int i;
7484_ACEOF
7485if ac_fn_c_try_compile "$LINENO"; then :
7486  xorg_cv_cc_flag_unknown_warning_option=yes
7487else
7488  xorg_cv_cc_flag_unknown_warning_option=no
7489fi
7490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491fi
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7495	CFLAGS="$xorg_testset_save_CFLAGS"
7496fi
7497
7498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501	fi
7502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h.  */
7510int i;
7511_ACEOF
7512if ac_fn_c_try_compile "$LINENO"; then :
7513  xorg_cv_cc_flag_unused_command_line_argument=yes
7514else
7515  xorg_cv_cc_flag_unused_command_line_argument=no
7516fi
7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518fi
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7522	CFLAGS="$xorg_testset_save_CFLAGS"
7523fi
7524
7525found="no"
7526
7527	if test $found = "no" ; then
7528		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7530		fi
7531
7532		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7534		fi
7535
7536		CFLAGS="$CFLAGS -Werror=return-type"
7537
7538		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7539$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7540		cacheid=xorg_cv_cc_flag__Werror_return_type
7541		if eval \${$cacheid+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h.  */
7546int i;
7547int
7548main ()
7549{
7550
7551  ;
7552  return 0;
7553}
7554_ACEOF
7555if ac_fn_c_try_link "$LINENO"; then :
7556  eval $cacheid=yes
7557else
7558  eval $cacheid=no
7559fi
7560rm -f core conftest.err conftest.$ac_objext \
7561    conftest$ac_exeext conftest.$ac_ext
7562fi
7563
7564
7565		CFLAGS="$xorg_testset_save_CFLAGS"
7566
7567		eval supported=\$$cacheid
7568		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7569$as_echo "$supported" >&6; }
7570		if test "$supported" = "yes" ; then
7571			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7572			found="yes"
7573		fi
7574	fi
7575
7576	if test $found = "no" ; then
7577		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579		fi
7580
7581		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7583		fi
7584
7585		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7586
7587		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7588$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7589		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7590		if eval \${$cacheid+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595int i;
7596int
7597main ()
7598{
7599
7600  ;
7601  return 0;
7602}
7603_ACEOF
7604if ac_fn_c_try_link "$LINENO"; then :
7605  eval $cacheid=yes
7606else
7607  eval $cacheid=no
7608fi
7609rm -f core conftest.err conftest.$ac_objext \
7610    conftest$ac_exeext conftest.$ac_ext
7611fi
7612
7613
7614		CFLAGS="$xorg_testset_save_CFLAGS"
7615
7616		eval supported=\$$cacheid
7617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7618$as_echo "$supported" >&6; }
7619		if test "$supported" = "yes" ; then
7620			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7621			found="yes"
7622		fi
7623	fi
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639xorg_testset_save_CFLAGS="$CFLAGS"
7640
7641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7646  $as_echo_n "(cached) " >&6
7647else
7648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649/* end confdefs.h.  */
7650int i;
7651_ACEOF
7652if ac_fn_c_try_compile "$LINENO"; then :
7653  xorg_cv_cc_flag_unknown_warning_option=yes
7654else
7655  xorg_cv_cc_flag_unknown_warning_option=no
7656fi
7657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658fi
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7662	CFLAGS="$xorg_testset_save_CFLAGS"
7663fi
7664
7665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7668	fi
7669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h.  */
7677int i;
7678_ACEOF
7679if ac_fn_c_try_compile "$LINENO"; then :
7680  xorg_cv_cc_flag_unused_command_line_argument=yes
7681else
7682  xorg_cv_cc_flag_unused_command_line_argument=no
7683fi
7684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7688	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7689	CFLAGS="$xorg_testset_save_CFLAGS"
7690fi
7691
7692found="no"
7693
7694	if test $found = "no" ; then
7695		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697		fi
7698
7699		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7701		fi
7702
7703		CFLAGS="$CFLAGS -Werror=trigraphs"
7704
7705		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7706$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7707		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7708		if eval \${$cacheid+:} false; then :
7709  $as_echo_n "(cached) " >&6
7710else
7711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712/* end confdefs.h.  */
7713int i;
7714int
7715main ()
7716{
7717
7718  ;
7719  return 0;
7720}
7721_ACEOF
7722if ac_fn_c_try_link "$LINENO"; then :
7723  eval $cacheid=yes
7724else
7725  eval $cacheid=no
7726fi
7727rm -f core conftest.err conftest.$ac_objext \
7728    conftest$ac_exeext conftest.$ac_ext
7729fi
7730
7731
7732		CFLAGS="$xorg_testset_save_CFLAGS"
7733
7734		eval supported=\$$cacheid
7735		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7736$as_echo "$supported" >&6; }
7737		if test "$supported" = "yes" ; then
7738			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7739			found="yes"
7740		fi
7741	fi
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757xorg_testset_save_CFLAGS="$CFLAGS"
7758
7759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7764  $as_echo_n "(cached) " >&6
7765else
7766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767/* end confdefs.h.  */
7768int i;
7769_ACEOF
7770if ac_fn_c_try_compile "$LINENO"; then :
7771  xorg_cv_cc_flag_unknown_warning_option=yes
7772else
7773  xorg_cv_cc_flag_unknown_warning_option=no
7774fi
7775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776fi
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7780	CFLAGS="$xorg_testset_save_CFLAGS"
7781fi
7782
7783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7786	fi
7787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h.  */
7795int i;
7796_ACEOF
7797if ac_fn_c_try_compile "$LINENO"; then :
7798  xorg_cv_cc_flag_unused_command_line_argument=yes
7799else
7800  xorg_cv_cc_flag_unused_command_line_argument=no
7801fi
7802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7807	CFLAGS="$xorg_testset_save_CFLAGS"
7808fi
7809
7810found="no"
7811
7812	if test $found = "no" ; then
7813		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815		fi
7816
7817		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7819		fi
7820
7821		CFLAGS="$CFLAGS -Werror=array-bounds"
7822
7823		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7824$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7825		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7826		if eval \${$cacheid+:} false; then :
7827  $as_echo_n "(cached) " >&6
7828else
7829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830/* end confdefs.h.  */
7831int i;
7832int
7833main ()
7834{
7835
7836  ;
7837  return 0;
7838}
7839_ACEOF
7840if ac_fn_c_try_link "$LINENO"; then :
7841  eval $cacheid=yes
7842else
7843  eval $cacheid=no
7844fi
7845rm -f core conftest.err conftest.$ac_objext \
7846    conftest$ac_exeext conftest.$ac_ext
7847fi
7848
7849
7850		CFLAGS="$xorg_testset_save_CFLAGS"
7851
7852		eval supported=\$$cacheid
7853		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7854$as_echo "$supported" >&6; }
7855		if test "$supported" = "yes" ; then
7856			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7857			found="yes"
7858		fi
7859	fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875xorg_testset_save_CFLAGS="$CFLAGS"
7876
7877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7880$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7881if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7882  $as_echo_n "(cached) " >&6
7883else
7884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885/* end confdefs.h.  */
7886int i;
7887_ACEOF
7888if ac_fn_c_try_compile "$LINENO"; then :
7889  xorg_cv_cc_flag_unknown_warning_option=yes
7890else
7891  xorg_cv_cc_flag_unknown_warning_option=no
7892fi
7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894fi
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7896$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7898	CFLAGS="$xorg_testset_save_CFLAGS"
7899fi
7900
7901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7904	fi
7905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7907$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7908if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7909  $as_echo_n "(cached) " >&6
7910else
7911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913int i;
7914_ACEOF
7915if ac_fn_c_try_compile "$LINENO"; then :
7916  xorg_cv_cc_flag_unused_command_line_argument=yes
7917else
7918  xorg_cv_cc_flag_unused_command_line_argument=no
7919fi
7920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921fi
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7923$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7925	CFLAGS="$xorg_testset_save_CFLAGS"
7926fi
7927
7928found="no"
7929
7930	if test $found = "no" ; then
7931		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7933		fi
7934
7935		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7937		fi
7938
7939		CFLAGS="$CFLAGS -Werror=write-strings"
7940
7941		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7942$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7943		cacheid=xorg_cv_cc_flag__Werror_write_strings
7944		if eval \${$cacheid+:} false; then :
7945  $as_echo_n "(cached) " >&6
7946else
7947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h.  */
7949int i;
7950int
7951main ()
7952{
7953
7954  ;
7955  return 0;
7956}
7957_ACEOF
7958if ac_fn_c_try_link "$LINENO"; then :
7959  eval $cacheid=yes
7960else
7961  eval $cacheid=no
7962fi
7963rm -f core conftest.err conftest.$ac_objext \
7964    conftest$ac_exeext conftest.$ac_ext
7965fi
7966
7967
7968		CFLAGS="$xorg_testset_save_CFLAGS"
7969
7970		eval supported=\$$cacheid
7971		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7972$as_echo "$supported" >&6; }
7973		if test "$supported" = "yes" ; then
7974			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7975			found="yes"
7976		fi
7977	fi
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993xorg_testset_save_CFLAGS="$CFLAGS"
7994
7995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8000  $as_echo_n "(cached) " >&6
8001else
8002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003/* end confdefs.h.  */
8004int i;
8005_ACEOF
8006if ac_fn_c_try_compile "$LINENO"; then :
8007  xorg_cv_cc_flag_unknown_warning_option=yes
8008else
8009  xorg_cv_cc_flag_unknown_warning_option=no
8010fi
8011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012fi
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8016	CFLAGS="$xorg_testset_save_CFLAGS"
8017fi
8018
8019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8022	fi
8023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030/* end confdefs.h.  */
8031int i;
8032_ACEOF
8033if ac_fn_c_try_compile "$LINENO"; then :
8034  xorg_cv_cc_flag_unused_command_line_argument=yes
8035else
8036  xorg_cv_cc_flag_unused_command_line_argument=no
8037fi
8038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039fi
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8043	CFLAGS="$xorg_testset_save_CFLAGS"
8044fi
8045
8046found="no"
8047
8048	if test $found = "no" ; then
8049		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8051		fi
8052
8053		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8055		fi
8056
8057		CFLAGS="$CFLAGS -Werror=address"
8058
8059		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8060$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8061		cacheid=xorg_cv_cc_flag__Werror_address
8062		if eval \${$cacheid+:} false; then :
8063  $as_echo_n "(cached) " >&6
8064else
8065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h.  */
8067int i;
8068int
8069main ()
8070{
8071
8072  ;
8073  return 0;
8074}
8075_ACEOF
8076if ac_fn_c_try_link "$LINENO"; then :
8077  eval $cacheid=yes
8078else
8079  eval $cacheid=no
8080fi
8081rm -f core conftest.err conftest.$ac_objext \
8082    conftest$ac_exeext conftest.$ac_ext
8083fi
8084
8085
8086		CFLAGS="$xorg_testset_save_CFLAGS"
8087
8088		eval supported=\$$cacheid
8089		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8090$as_echo "$supported" >&6; }
8091		if test "$supported" = "yes" ; then
8092			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8093			found="yes"
8094		fi
8095	fi
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111xorg_testset_save_CFLAGS="$CFLAGS"
8112
8113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8118  $as_echo_n "(cached) " >&6
8119else
8120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121/* end confdefs.h.  */
8122int i;
8123_ACEOF
8124if ac_fn_c_try_compile "$LINENO"; then :
8125  xorg_cv_cc_flag_unknown_warning_option=yes
8126else
8127  xorg_cv_cc_flag_unknown_warning_option=no
8128fi
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130fi
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8134	CFLAGS="$xorg_testset_save_CFLAGS"
8135fi
8136
8137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8140	fi
8141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8145  $as_echo_n "(cached) " >&6
8146else
8147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148/* end confdefs.h.  */
8149int i;
8150_ACEOF
8151if ac_fn_c_try_compile "$LINENO"; then :
8152  xorg_cv_cc_flag_unused_command_line_argument=yes
8153else
8154  xorg_cv_cc_flag_unused_command_line_argument=no
8155fi
8156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157fi
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8161	CFLAGS="$xorg_testset_save_CFLAGS"
8162fi
8163
8164found="no"
8165
8166	if test $found = "no" ; then
8167		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8169		fi
8170
8171		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8173		fi
8174
8175		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8176
8177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8178$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8179		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8180		if eval \${$cacheid+:} false; then :
8181  $as_echo_n "(cached) " >&6
8182else
8183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185int i;
8186int
8187main ()
8188{
8189
8190  ;
8191  return 0;
8192}
8193_ACEOF
8194if ac_fn_c_try_link "$LINENO"; then :
8195  eval $cacheid=yes
8196else
8197  eval $cacheid=no
8198fi
8199rm -f core conftest.err conftest.$ac_objext \
8200    conftest$ac_exeext conftest.$ac_ext
8201fi
8202
8203
8204		CFLAGS="$xorg_testset_save_CFLAGS"
8205
8206		eval supported=\$$cacheid
8207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8208$as_echo "$supported" >&6; }
8209		if test "$supported" = "yes" ; then
8210			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8211			found="yes"
8212		fi
8213	fi
8214
8215	if test $found = "no" ; then
8216		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8217			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8218		fi
8219
8220		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8221			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8222		fi
8223
8224		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8225
8226		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8227$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8228		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8229		if eval \${$cacheid+:} false; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234int i;
8235int
8236main ()
8237{
8238
8239  ;
8240  return 0;
8241}
8242_ACEOF
8243if ac_fn_c_try_link "$LINENO"; then :
8244  eval $cacheid=yes
8245else
8246  eval $cacheid=no
8247fi
8248rm -f core conftest.err conftest.$ac_objext \
8249    conftest$ac_exeext conftest.$ac_ext
8250fi
8251
8252
8253		CFLAGS="$xorg_testset_save_CFLAGS"
8254
8255		eval supported=\$$cacheid
8256		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8257$as_echo "$supported" >&6; }
8258		if test "$supported" = "yes" ; then
8259			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8260			found="yes"
8261		fi
8262	fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278xorg_testset_save_CFLAGS="$CFLAGS"
8279
8280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288/* end confdefs.h.  */
8289int i;
8290_ACEOF
8291if ac_fn_c_try_compile "$LINENO"; then :
8292  xorg_cv_cc_flag_unknown_warning_option=yes
8293else
8294  xorg_cv_cc_flag_unknown_warning_option=no
8295fi
8296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297fi
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8300	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8301	CFLAGS="$xorg_testset_save_CFLAGS"
8302fi
8303
8304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8305	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8306		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8307	fi
8308	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8312  $as_echo_n "(cached) " >&6
8313else
8314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h.  */
8316int i;
8317_ACEOF
8318if ac_fn_c_try_compile "$LINENO"; then :
8319  xorg_cv_cc_flag_unused_command_line_argument=yes
8320else
8321  xorg_cv_cc_flag_unused_command_line_argument=no
8322fi
8323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8328	CFLAGS="$xorg_testset_save_CFLAGS"
8329fi
8330
8331found="no"
8332
8333	if test $found = "no" ; then
8334		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336		fi
8337
8338		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8340		fi
8341
8342		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8343
8344		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8345$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8346		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8347		if eval \${$cacheid+:} false; then :
8348  $as_echo_n "(cached) " >&6
8349else
8350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351/* end confdefs.h.  */
8352int i;
8353int
8354main ()
8355{
8356
8357  ;
8358  return 0;
8359}
8360_ACEOF
8361if ac_fn_c_try_link "$LINENO"; then :
8362  eval $cacheid=yes
8363else
8364  eval $cacheid=no
8365fi
8366rm -f core conftest.err conftest.$ac_objext \
8367    conftest$ac_exeext conftest.$ac_ext
8368fi
8369
8370
8371		CFLAGS="$xorg_testset_save_CFLAGS"
8372
8373		eval supported=\$$cacheid
8374		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8375$as_echo "$supported" >&6; }
8376		if test "$supported" = "yes" ; then
8377			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8378			found="yes"
8379		fi
8380	fi
8381
8382 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8383else
8384{ $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
8385$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;}
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399xorg_testset_save_CFLAGS="$CFLAGS"
8400
8401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8406  $as_echo_n "(cached) " >&6
8407else
8408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h.  */
8410int i;
8411_ACEOF
8412if ac_fn_c_try_compile "$LINENO"; then :
8413  xorg_cv_cc_flag_unknown_warning_option=yes
8414else
8415  xorg_cv_cc_flag_unknown_warning_option=no
8416fi
8417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418fi
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8422	CFLAGS="$xorg_testset_save_CFLAGS"
8423fi
8424
8425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8428	fi
8429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8433  $as_echo_n "(cached) " >&6
8434else
8435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437int i;
8438_ACEOF
8439if ac_fn_c_try_compile "$LINENO"; then :
8440  xorg_cv_cc_flag_unused_command_line_argument=yes
8441else
8442  xorg_cv_cc_flag_unused_command_line_argument=no
8443fi
8444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445fi
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8449	CFLAGS="$xorg_testset_save_CFLAGS"
8450fi
8451
8452found="no"
8453
8454	if test $found = "no" ; then
8455		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8457		fi
8458
8459		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8461		fi
8462
8463		CFLAGS="$CFLAGS -Wimplicit"
8464
8465		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8466$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8467		cacheid=xorg_cv_cc_flag__Wimplicit
8468		if eval \${$cacheid+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h.  */
8473int i;
8474int
8475main ()
8476{
8477
8478  ;
8479  return 0;
8480}
8481_ACEOF
8482if ac_fn_c_try_link "$LINENO"; then :
8483  eval $cacheid=yes
8484else
8485  eval $cacheid=no
8486fi
8487rm -f core conftest.err conftest.$ac_objext \
8488    conftest$ac_exeext conftest.$ac_ext
8489fi
8490
8491
8492		CFLAGS="$xorg_testset_save_CFLAGS"
8493
8494		eval supported=\$$cacheid
8495		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8496$as_echo "$supported" >&6; }
8497		if test "$supported" = "yes" ; then
8498			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8499			found="yes"
8500		fi
8501	fi
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517xorg_testset_save_CFLAGS="$CFLAGS"
8518
8519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8524  $as_echo_n "(cached) " >&6
8525else
8526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527/* end confdefs.h.  */
8528int i;
8529_ACEOF
8530if ac_fn_c_try_compile "$LINENO"; then :
8531  xorg_cv_cc_flag_unknown_warning_option=yes
8532else
8533  xorg_cv_cc_flag_unknown_warning_option=no
8534fi
8535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536fi
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8539	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8540	CFLAGS="$xorg_testset_save_CFLAGS"
8541fi
8542
8543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8544	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8545		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8546	fi
8547	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8551  $as_echo_n "(cached) " >&6
8552else
8553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h.  */
8555int i;
8556_ACEOF
8557if ac_fn_c_try_compile "$LINENO"; then :
8558  xorg_cv_cc_flag_unused_command_line_argument=yes
8559else
8560  xorg_cv_cc_flag_unused_command_line_argument=no
8561fi
8562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563fi
8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8567	CFLAGS="$xorg_testset_save_CFLAGS"
8568fi
8569
8570found="no"
8571
8572	if test $found = "no" ; then
8573		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8575		fi
8576
8577		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8579		fi
8580
8581		CFLAGS="$CFLAGS -Wnonnull"
8582
8583		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8584$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8585		cacheid=xorg_cv_cc_flag__Wnonnull
8586		if eval \${$cacheid+:} false; then :
8587  $as_echo_n "(cached) " >&6
8588else
8589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590/* end confdefs.h.  */
8591int i;
8592int
8593main ()
8594{
8595
8596  ;
8597  return 0;
8598}
8599_ACEOF
8600if ac_fn_c_try_link "$LINENO"; then :
8601  eval $cacheid=yes
8602else
8603  eval $cacheid=no
8604fi
8605rm -f core conftest.err conftest.$ac_objext \
8606    conftest$ac_exeext conftest.$ac_ext
8607fi
8608
8609
8610		CFLAGS="$xorg_testset_save_CFLAGS"
8611
8612		eval supported=\$$cacheid
8613		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8614$as_echo "$supported" >&6; }
8615		if test "$supported" = "yes" ; then
8616			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8617			found="yes"
8618		fi
8619	fi
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635xorg_testset_save_CFLAGS="$CFLAGS"
8636
8637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8642  $as_echo_n "(cached) " >&6
8643else
8644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645/* end confdefs.h.  */
8646int i;
8647_ACEOF
8648if ac_fn_c_try_compile "$LINENO"; then :
8649  xorg_cv_cc_flag_unknown_warning_option=yes
8650else
8651  xorg_cv_cc_flag_unknown_warning_option=no
8652fi
8653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654fi
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8657	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8658	CFLAGS="$xorg_testset_save_CFLAGS"
8659fi
8660
8661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8662	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8663		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8664	fi
8665	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673int i;
8674_ACEOF
8675if ac_fn_c_try_compile "$LINENO"; then :
8676  xorg_cv_cc_flag_unused_command_line_argument=yes
8677else
8678  xorg_cv_cc_flag_unused_command_line_argument=no
8679fi
8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681fi
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8684	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8685	CFLAGS="$xorg_testset_save_CFLAGS"
8686fi
8687
8688found="no"
8689
8690	if test $found = "no" ; then
8691		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8692			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693		fi
8694
8695		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8696			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8697		fi
8698
8699		CFLAGS="$CFLAGS -Winit-self"
8700
8701		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8702$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8703		cacheid=xorg_cv_cc_flag__Winit_self
8704		if eval \${$cacheid+:} false; then :
8705  $as_echo_n "(cached) " >&6
8706else
8707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h.  */
8709int i;
8710int
8711main ()
8712{
8713
8714  ;
8715  return 0;
8716}
8717_ACEOF
8718if ac_fn_c_try_link "$LINENO"; then :
8719  eval $cacheid=yes
8720else
8721  eval $cacheid=no
8722fi
8723rm -f core conftest.err conftest.$ac_objext \
8724    conftest$ac_exeext conftest.$ac_ext
8725fi
8726
8727
8728		CFLAGS="$xorg_testset_save_CFLAGS"
8729
8730		eval supported=\$$cacheid
8731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8732$as_echo "$supported" >&6; }
8733		if test "$supported" = "yes" ; then
8734			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8735			found="yes"
8736		fi
8737	fi
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753xorg_testset_save_CFLAGS="$CFLAGS"
8754
8755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8760  $as_echo_n "(cached) " >&6
8761else
8762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763/* end confdefs.h.  */
8764int i;
8765_ACEOF
8766if ac_fn_c_try_compile "$LINENO"; then :
8767  xorg_cv_cc_flag_unknown_warning_option=yes
8768else
8769  xorg_cv_cc_flag_unknown_warning_option=no
8770fi
8771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772fi
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8776	CFLAGS="$xorg_testset_save_CFLAGS"
8777fi
8778
8779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8782	fi
8783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8787  $as_echo_n "(cached) " >&6
8788else
8789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791int i;
8792_ACEOF
8793if ac_fn_c_try_compile "$LINENO"; then :
8794  xorg_cv_cc_flag_unused_command_line_argument=yes
8795else
8796  xorg_cv_cc_flag_unused_command_line_argument=no
8797fi
8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8803	CFLAGS="$xorg_testset_save_CFLAGS"
8804fi
8805
8806found="no"
8807
8808	if test $found = "no" ; then
8809		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8811		fi
8812
8813		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8815		fi
8816
8817		CFLAGS="$CFLAGS -Wmain"
8818
8819		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8820$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8821		cacheid=xorg_cv_cc_flag__Wmain
8822		if eval \${$cacheid+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826/* end confdefs.h.  */
8827int i;
8828int
8829main ()
8830{
8831
8832  ;
8833  return 0;
8834}
8835_ACEOF
8836if ac_fn_c_try_link "$LINENO"; then :
8837  eval $cacheid=yes
8838else
8839  eval $cacheid=no
8840fi
8841rm -f core conftest.err conftest.$ac_objext \
8842    conftest$ac_exeext conftest.$ac_ext
8843fi
8844
8845
8846		CFLAGS="$xorg_testset_save_CFLAGS"
8847
8848		eval supported=\$$cacheid
8849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8850$as_echo "$supported" >&6; }
8851		if test "$supported" = "yes" ; then
8852			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8853			found="yes"
8854		fi
8855	fi
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871xorg_testset_save_CFLAGS="$CFLAGS"
8872
8873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8878  $as_echo_n "(cached) " >&6
8879else
8880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881/* end confdefs.h.  */
8882int i;
8883_ACEOF
8884if ac_fn_c_try_compile "$LINENO"; then :
8885  xorg_cv_cc_flag_unknown_warning_option=yes
8886else
8887  xorg_cv_cc_flag_unknown_warning_option=no
8888fi
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890fi
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8893	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8894	CFLAGS="$xorg_testset_save_CFLAGS"
8895fi
8896
8897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8898	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8899		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8900	fi
8901	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909int i;
8910_ACEOF
8911if ac_fn_c_try_compile "$LINENO"; then :
8912  xorg_cv_cc_flag_unused_command_line_argument=yes
8913else
8914  xorg_cv_cc_flag_unused_command_line_argument=no
8915fi
8916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917fi
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8920	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8921	CFLAGS="$xorg_testset_save_CFLAGS"
8922fi
8923
8924found="no"
8925
8926	if test $found = "no" ; then
8927		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8928			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8929		fi
8930
8931		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8932			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8933		fi
8934
8935		CFLAGS="$CFLAGS -Wmissing-braces"
8936
8937		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8938$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8939		cacheid=xorg_cv_cc_flag__Wmissing_braces
8940		if eval \${$cacheid+:} false; then :
8941  $as_echo_n "(cached) " >&6
8942else
8943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h.  */
8945int i;
8946int
8947main ()
8948{
8949
8950  ;
8951  return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_link "$LINENO"; then :
8955  eval $cacheid=yes
8956else
8957  eval $cacheid=no
8958fi
8959rm -f core conftest.err conftest.$ac_objext \
8960    conftest$ac_exeext conftest.$ac_ext
8961fi
8962
8963
8964		CFLAGS="$xorg_testset_save_CFLAGS"
8965
8966		eval supported=\$$cacheid
8967		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8968$as_echo "$supported" >&6; }
8969		if test "$supported" = "yes" ; then
8970			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8971			found="yes"
8972		fi
8973	fi
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989xorg_testset_save_CFLAGS="$CFLAGS"
8990
8991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h.  */
9000int i;
9001_ACEOF
9002if ac_fn_c_try_compile "$LINENO"; then :
9003  xorg_cv_cc_flag_unknown_warning_option=yes
9004else
9005  xorg_cv_cc_flag_unknown_warning_option=no
9006fi
9007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008fi
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9012	CFLAGS="$xorg_testset_save_CFLAGS"
9013fi
9014
9015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9018	fi
9019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9023  $as_echo_n "(cached) " >&6
9024else
9025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h.  */
9027int i;
9028_ACEOF
9029if ac_fn_c_try_compile "$LINENO"; then :
9030  xorg_cv_cc_flag_unused_command_line_argument=yes
9031else
9032  xorg_cv_cc_flag_unused_command_line_argument=no
9033fi
9034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9039	CFLAGS="$xorg_testset_save_CFLAGS"
9040fi
9041
9042found="no"
9043
9044	if test $found = "no" ; then
9045		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9047		fi
9048
9049		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9051		fi
9052
9053		CFLAGS="$CFLAGS -Wsequence-point"
9054
9055		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9056$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9057		cacheid=xorg_cv_cc_flag__Wsequence_point
9058		if eval \${$cacheid+:} false; then :
9059  $as_echo_n "(cached) " >&6
9060else
9061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062/* end confdefs.h.  */
9063int i;
9064int
9065main ()
9066{
9067
9068  ;
9069  return 0;
9070}
9071_ACEOF
9072if ac_fn_c_try_link "$LINENO"; then :
9073  eval $cacheid=yes
9074else
9075  eval $cacheid=no
9076fi
9077rm -f core conftest.err conftest.$ac_objext \
9078    conftest$ac_exeext conftest.$ac_ext
9079fi
9080
9081
9082		CFLAGS="$xorg_testset_save_CFLAGS"
9083
9084		eval supported=\$$cacheid
9085		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9086$as_echo "$supported" >&6; }
9087		if test "$supported" = "yes" ; then
9088			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9089			found="yes"
9090		fi
9091	fi
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107xorg_testset_save_CFLAGS="$CFLAGS"
9108
9109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9110	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9114  $as_echo_n "(cached) " >&6
9115else
9116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h.  */
9118int i;
9119_ACEOF
9120if ac_fn_c_try_compile "$LINENO"; then :
9121  xorg_cv_cc_flag_unknown_warning_option=yes
9122else
9123  xorg_cv_cc_flag_unknown_warning_option=no
9124fi
9125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126fi
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9130	CFLAGS="$xorg_testset_save_CFLAGS"
9131fi
9132
9133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9136	fi
9137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9141  $as_echo_n "(cached) " >&6
9142else
9143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h.  */
9145int i;
9146_ACEOF
9147if ac_fn_c_try_compile "$LINENO"; then :
9148  xorg_cv_cc_flag_unused_command_line_argument=yes
9149else
9150  xorg_cv_cc_flag_unused_command_line_argument=no
9151fi
9152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153fi
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9157	CFLAGS="$xorg_testset_save_CFLAGS"
9158fi
9159
9160found="no"
9161
9162	if test $found = "no" ; then
9163		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9165		fi
9166
9167		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9169		fi
9170
9171		CFLAGS="$CFLAGS -Wreturn-type"
9172
9173		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9174$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9175		cacheid=xorg_cv_cc_flag__Wreturn_type
9176		if eval \${$cacheid+:} false; then :
9177  $as_echo_n "(cached) " >&6
9178else
9179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180/* end confdefs.h.  */
9181int i;
9182int
9183main ()
9184{
9185
9186  ;
9187  return 0;
9188}
9189_ACEOF
9190if ac_fn_c_try_link "$LINENO"; then :
9191  eval $cacheid=yes
9192else
9193  eval $cacheid=no
9194fi
9195rm -f core conftest.err conftest.$ac_objext \
9196    conftest$ac_exeext conftest.$ac_ext
9197fi
9198
9199
9200		CFLAGS="$xorg_testset_save_CFLAGS"
9201
9202		eval supported=\$$cacheid
9203		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9204$as_echo "$supported" >&6; }
9205		if test "$supported" = "yes" ; then
9206			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9207			found="yes"
9208		fi
9209	fi
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225xorg_testset_save_CFLAGS="$CFLAGS"
9226
9227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9232  $as_echo_n "(cached) " >&6
9233else
9234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235/* end confdefs.h.  */
9236int i;
9237_ACEOF
9238if ac_fn_c_try_compile "$LINENO"; then :
9239  xorg_cv_cc_flag_unknown_warning_option=yes
9240else
9241  xorg_cv_cc_flag_unknown_warning_option=no
9242fi
9243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244fi
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9248	CFLAGS="$xorg_testset_save_CFLAGS"
9249fi
9250
9251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9254	fi
9255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262/* end confdefs.h.  */
9263int i;
9264_ACEOF
9265if ac_fn_c_try_compile "$LINENO"; then :
9266  xorg_cv_cc_flag_unused_command_line_argument=yes
9267else
9268  xorg_cv_cc_flag_unused_command_line_argument=no
9269fi
9270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271fi
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9275	CFLAGS="$xorg_testset_save_CFLAGS"
9276fi
9277
9278found="no"
9279
9280	if test $found = "no" ; then
9281		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9283		fi
9284
9285		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9287		fi
9288
9289		CFLAGS="$CFLAGS -Wtrigraphs"
9290
9291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9292$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9293		cacheid=xorg_cv_cc_flag__Wtrigraphs
9294		if eval \${$cacheid+:} false; then :
9295  $as_echo_n "(cached) " >&6
9296else
9297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298/* end confdefs.h.  */
9299int i;
9300int
9301main ()
9302{
9303
9304  ;
9305  return 0;
9306}
9307_ACEOF
9308if ac_fn_c_try_link "$LINENO"; then :
9309  eval $cacheid=yes
9310else
9311  eval $cacheid=no
9312fi
9313rm -f core conftest.err conftest.$ac_objext \
9314    conftest$ac_exeext conftest.$ac_ext
9315fi
9316
9317
9318		CFLAGS="$xorg_testset_save_CFLAGS"
9319
9320		eval supported=\$$cacheid
9321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9322$as_echo "$supported" >&6; }
9323		if test "$supported" = "yes" ; then
9324			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9325			found="yes"
9326		fi
9327	fi
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343xorg_testset_save_CFLAGS="$CFLAGS"
9344
9345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9350  $as_echo_n "(cached) " >&6
9351else
9352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h.  */
9354int i;
9355_ACEOF
9356if ac_fn_c_try_compile "$LINENO"; then :
9357  xorg_cv_cc_flag_unknown_warning_option=yes
9358else
9359  xorg_cv_cc_flag_unknown_warning_option=no
9360fi
9361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9362fi
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9365	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9366	CFLAGS="$xorg_testset_save_CFLAGS"
9367fi
9368
9369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9370	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9371		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9372	fi
9373	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9377  $as_echo_n "(cached) " >&6
9378else
9379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380/* end confdefs.h.  */
9381int i;
9382_ACEOF
9383if ac_fn_c_try_compile "$LINENO"; then :
9384  xorg_cv_cc_flag_unused_command_line_argument=yes
9385else
9386  xorg_cv_cc_flag_unused_command_line_argument=no
9387fi
9388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389fi
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9392	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9393	CFLAGS="$xorg_testset_save_CFLAGS"
9394fi
9395
9396found="no"
9397
9398	if test $found = "no" ; then
9399		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9400			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9401		fi
9402
9403		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9404			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9405		fi
9406
9407		CFLAGS="$CFLAGS -Warray-bounds"
9408
9409		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9410$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9411		cacheid=xorg_cv_cc_flag__Warray_bounds
9412		if eval \${$cacheid+:} false; then :
9413  $as_echo_n "(cached) " >&6
9414else
9415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416/* end confdefs.h.  */
9417int i;
9418int
9419main ()
9420{
9421
9422  ;
9423  return 0;
9424}
9425_ACEOF
9426if ac_fn_c_try_link "$LINENO"; then :
9427  eval $cacheid=yes
9428else
9429  eval $cacheid=no
9430fi
9431rm -f core conftest.err conftest.$ac_objext \
9432    conftest$ac_exeext conftest.$ac_ext
9433fi
9434
9435
9436		CFLAGS="$xorg_testset_save_CFLAGS"
9437
9438		eval supported=\$$cacheid
9439		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9440$as_echo "$supported" >&6; }
9441		if test "$supported" = "yes" ; then
9442			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9443			found="yes"
9444		fi
9445	fi
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461xorg_testset_save_CFLAGS="$CFLAGS"
9462
9463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9468  $as_echo_n "(cached) " >&6
9469else
9470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471/* end confdefs.h.  */
9472int i;
9473_ACEOF
9474if ac_fn_c_try_compile "$LINENO"; then :
9475  xorg_cv_cc_flag_unknown_warning_option=yes
9476else
9477  xorg_cv_cc_flag_unknown_warning_option=no
9478fi
9479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480fi
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9484	CFLAGS="$xorg_testset_save_CFLAGS"
9485fi
9486
9487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490	fi
9491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9495  $as_echo_n "(cached) " >&6
9496else
9497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499int i;
9500_ACEOF
9501if ac_fn_c_try_compile "$LINENO"; then :
9502  xorg_cv_cc_flag_unused_command_line_argument=yes
9503else
9504  xorg_cv_cc_flag_unused_command_line_argument=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507fi
9508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9511	CFLAGS="$xorg_testset_save_CFLAGS"
9512fi
9513
9514found="no"
9515
9516	if test $found = "no" ; then
9517		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519		fi
9520
9521		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9523		fi
9524
9525		CFLAGS="$CFLAGS -Wwrite-strings"
9526
9527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9528$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9529		cacheid=xorg_cv_cc_flag__Wwrite_strings
9530		if eval \${$cacheid+:} false; then :
9531  $as_echo_n "(cached) " >&6
9532else
9533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534/* end confdefs.h.  */
9535int i;
9536int
9537main ()
9538{
9539
9540  ;
9541  return 0;
9542}
9543_ACEOF
9544if ac_fn_c_try_link "$LINENO"; then :
9545  eval $cacheid=yes
9546else
9547  eval $cacheid=no
9548fi
9549rm -f core conftest.err conftest.$ac_objext \
9550    conftest$ac_exeext conftest.$ac_ext
9551fi
9552
9553
9554		CFLAGS="$xorg_testset_save_CFLAGS"
9555
9556		eval supported=\$$cacheid
9557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9558$as_echo "$supported" >&6; }
9559		if test "$supported" = "yes" ; then
9560			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9561			found="yes"
9562		fi
9563	fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579xorg_testset_save_CFLAGS="$CFLAGS"
9580
9581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9586  $as_echo_n "(cached) " >&6
9587else
9588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589/* end confdefs.h.  */
9590int i;
9591_ACEOF
9592if ac_fn_c_try_compile "$LINENO"; then :
9593  xorg_cv_cc_flag_unknown_warning_option=yes
9594else
9595  xorg_cv_cc_flag_unknown_warning_option=no
9596fi
9597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598fi
9599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9602	CFLAGS="$xorg_testset_save_CFLAGS"
9603fi
9604
9605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9608	fi
9609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9613  $as_echo_n "(cached) " >&6
9614else
9615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616/* end confdefs.h.  */
9617int i;
9618_ACEOF
9619if ac_fn_c_try_compile "$LINENO"; then :
9620  xorg_cv_cc_flag_unused_command_line_argument=yes
9621else
9622  xorg_cv_cc_flag_unused_command_line_argument=no
9623fi
9624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625fi
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9629	CFLAGS="$xorg_testset_save_CFLAGS"
9630fi
9631
9632found="no"
9633
9634	if test $found = "no" ; then
9635		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9637		fi
9638
9639		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9641		fi
9642
9643		CFLAGS="$CFLAGS -Waddress"
9644
9645		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9646$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9647		cacheid=xorg_cv_cc_flag__Waddress
9648		if eval \${$cacheid+:} false; then :
9649  $as_echo_n "(cached) " >&6
9650else
9651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h.  */
9653int i;
9654int
9655main ()
9656{
9657
9658  ;
9659  return 0;
9660}
9661_ACEOF
9662if ac_fn_c_try_link "$LINENO"; then :
9663  eval $cacheid=yes
9664else
9665  eval $cacheid=no
9666fi
9667rm -f core conftest.err conftest.$ac_objext \
9668    conftest$ac_exeext conftest.$ac_ext
9669fi
9670
9671
9672		CFLAGS="$xorg_testset_save_CFLAGS"
9673
9674		eval supported=\$$cacheid
9675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9676$as_echo "$supported" >&6; }
9677		if test "$supported" = "yes" ; then
9678			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9679			found="yes"
9680		fi
9681	fi
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697xorg_testset_save_CFLAGS="$CFLAGS"
9698
9699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9704  $as_echo_n "(cached) " >&6
9705else
9706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707/* end confdefs.h.  */
9708int i;
9709_ACEOF
9710if ac_fn_c_try_compile "$LINENO"; then :
9711  xorg_cv_cc_flag_unknown_warning_option=yes
9712else
9713  xorg_cv_cc_flag_unknown_warning_option=no
9714fi
9715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716fi
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9720	CFLAGS="$xorg_testset_save_CFLAGS"
9721fi
9722
9723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9726	fi
9727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9731  $as_echo_n "(cached) " >&6
9732else
9733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734/* end confdefs.h.  */
9735int i;
9736_ACEOF
9737if ac_fn_c_try_compile "$LINENO"; then :
9738  xorg_cv_cc_flag_unused_command_line_argument=yes
9739else
9740  xorg_cv_cc_flag_unused_command_line_argument=no
9741fi
9742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743fi
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9746	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9747	CFLAGS="$xorg_testset_save_CFLAGS"
9748fi
9749
9750found="no"
9751
9752	if test $found = "no" ; then
9753		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9755		fi
9756
9757		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9759		fi
9760
9761		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9762
9763		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9764$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9765		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9766		if eval \${$cacheid+:} false; then :
9767  $as_echo_n "(cached) " >&6
9768else
9769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h.  */
9771int i;
9772int
9773main ()
9774{
9775
9776  ;
9777  return 0;
9778}
9779_ACEOF
9780if ac_fn_c_try_link "$LINENO"; then :
9781  eval $cacheid=yes
9782else
9783  eval $cacheid=no
9784fi
9785rm -f core conftest.err conftest.$ac_objext \
9786    conftest$ac_exeext conftest.$ac_ext
9787fi
9788
9789
9790		CFLAGS="$xorg_testset_save_CFLAGS"
9791
9792		eval supported=\$$cacheid
9793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9794$as_echo "$supported" >&6; }
9795		if test "$supported" = "yes" ; then
9796			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9797			found="yes"
9798		fi
9799	fi
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815xorg_testset_save_CFLAGS="$CFLAGS"
9816
9817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9822  $as_echo_n "(cached) " >&6
9823else
9824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825/* end confdefs.h.  */
9826int i;
9827_ACEOF
9828if ac_fn_c_try_compile "$LINENO"; then :
9829  xorg_cv_cc_flag_unknown_warning_option=yes
9830else
9831  xorg_cv_cc_flag_unknown_warning_option=no
9832fi
9833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834fi
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9838	CFLAGS="$xorg_testset_save_CFLAGS"
9839fi
9840
9841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9844	fi
9845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9849  $as_echo_n "(cached) " >&6
9850else
9851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852/* end confdefs.h.  */
9853int i;
9854_ACEOF
9855if ac_fn_c_try_compile "$LINENO"; then :
9856  xorg_cv_cc_flag_unused_command_line_argument=yes
9857else
9858  xorg_cv_cc_flag_unused_command_line_argument=no
9859fi
9860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861fi
9862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9865	CFLAGS="$xorg_testset_save_CFLAGS"
9866fi
9867
9868found="no"
9869
9870	if test $found = "no" ; then
9871		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873		fi
9874
9875		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9877		fi
9878
9879		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9880
9881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9882$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9883		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9884		if eval \${$cacheid+:} false; then :
9885  $as_echo_n "(cached) " >&6
9886else
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889int i;
9890int
9891main ()
9892{
9893
9894  ;
9895  return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899  eval $cacheid=yes
9900else
9901  eval $cacheid=no
9902fi
9903rm -f core conftest.err conftest.$ac_objext \
9904    conftest$ac_exeext conftest.$ac_ext
9905fi
9906
9907
9908		CFLAGS="$xorg_testset_save_CFLAGS"
9909
9910		eval supported=\$$cacheid
9911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9912$as_echo "$supported" >&6; }
9913		if test "$supported" = "yes" ; then
9914			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9915			found="yes"
9916		fi
9917	fi
9918
9919
9920fi
9921
9922
9923
9924
9925
9926
9927
9928		CWARNFLAGS="$BASE_CFLAGS"
9929		if  test "x$GCC" = xyes ; then
9930		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9931		fi
9932
9933
9934
9935
9936
9937
9938
9939
9940# Check whether --enable-strict-compilation was given.
9941if test "${enable_strict_compilation+set}" = set; then :
9942  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9943else
9944  STRICT_COMPILE=no
9945fi
9946
9947
9948
9949
9950
9951
9952STRICT_CFLAGS=""
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966xorg_testset_save_CFLAGS="$CFLAGS"
9967
9968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9973  $as_echo_n "(cached) " >&6
9974else
9975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976/* end confdefs.h.  */
9977int i;
9978_ACEOF
9979if ac_fn_c_try_compile "$LINENO"; then :
9980  xorg_cv_cc_flag_unknown_warning_option=yes
9981else
9982  xorg_cv_cc_flag_unknown_warning_option=no
9983fi
9984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9985fi
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9989	CFLAGS="$xorg_testset_save_CFLAGS"
9990fi
9991
9992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9995	fi
9996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003/* end confdefs.h.  */
10004int i;
10005_ACEOF
10006if ac_fn_c_try_compile "$LINENO"; then :
10007  xorg_cv_cc_flag_unused_command_line_argument=yes
10008else
10009  xorg_cv_cc_flag_unused_command_line_argument=no
10010fi
10011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10016	CFLAGS="$xorg_testset_save_CFLAGS"
10017fi
10018
10019found="no"
10020
10021	if test $found = "no" ; then
10022		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024		fi
10025
10026		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10028		fi
10029
10030		CFLAGS="$CFLAGS -pedantic"
10031
10032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10033$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10034		cacheid=xorg_cv_cc_flag__pedantic
10035		if eval \${$cacheid+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int i;
10041int
10042main ()
10043{
10044
10045  ;
10046  return 0;
10047}
10048_ACEOF
10049if ac_fn_c_try_link "$LINENO"; then :
10050  eval $cacheid=yes
10051else
10052  eval $cacheid=no
10053fi
10054rm -f core conftest.err conftest.$ac_objext \
10055    conftest$ac_exeext conftest.$ac_ext
10056fi
10057
10058
10059		CFLAGS="$xorg_testset_save_CFLAGS"
10060
10061		eval supported=\$$cacheid
10062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10063$as_echo "$supported" >&6; }
10064		if test "$supported" = "yes" ; then
10065			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10066			found="yes"
10067		fi
10068	fi
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084xorg_testset_save_CFLAGS="$CFLAGS"
10085
10086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10091  $as_echo_n "(cached) " >&6
10092else
10093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h.  */
10095int i;
10096_ACEOF
10097if ac_fn_c_try_compile "$LINENO"; then :
10098  xorg_cv_cc_flag_unknown_warning_option=yes
10099else
10100  xorg_cv_cc_flag_unknown_warning_option=no
10101fi
10102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103fi
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10107	CFLAGS="$xorg_testset_save_CFLAGS"
10108fi
10109
10110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10113	fi
10114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122int i;
10123_ACEOF
10124if ac_fn_c_try_compile "$LINENO"; then :
10125  xorg_cv_cc_flag_unused_command_line_argument=yes
10126else
10127  xorg_cv_cc_flag_unused_command_line_argument=no
10128fi
10129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130fi
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10134	CFLAGS="$xorg_testset_save_CFLAGS"
10135fi
10136
10137found="no"
10138
10139	if test $found = "no" ; then
10140		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142		fi
10143
10144		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10146		fi
10147
10148		CFLAGS="$CFLAGS -Werror"
10149
10150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10151$as_echo_n "checking if $CC supports-Werror... " >&6; }
10152		cacheid=xorg_cv_cc_flag__Werror
10153		if eval \${$cacheid+:} false; then :
10154  $as_echo_n "(cached) " >&6
10155else
10156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157/* end confdefs.h.  */
10158int i;
10159int
10160main ()
10161{
10162
10163  ;
10164  return 0;
10165}
10166_ACEOF
10167if ac_fn_c_try_link "$LINENO"; then :
10168  eval $cacheid=yes
10169else
10170  eval $cacheid=no
10171fi
10172rm -f core conftest.err conftest.$ac_objext \
10173    conftest$ac_exeext conftest.$ac_ext
10174fi
10175
10176
10177		CFLAGS="$xorg_testset_save_CFLAGS"
10178
10179		eval supported=\$$cacheid
10180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10181$as_echo "$supported" >&6; }
10182		if test "$supported" = "yes" ; then
10183			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10184			found="yes"
10185		fi
10186	fi
10187
10188	if test $found = "no" ; then
10189		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10190			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191		fi
10192
10193		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10194			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10195		fi
10196
10197		CFLAGS="$CFLAGS -errwarn"
10198
10199		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10200$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10201		cacheid=xorg_cv_cc_flag__errwarn
10202		if eval \${$cacheid+:} false; then :
10203  $as_echo_n "(cached) " >&6
10204else
10205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h.  */
10207int i;
10208int
10209main ()
10210{
10211
10212  ;
10213  return 0;
10214}
10215_ACEOF
10216if ac_fn_c_try_link "$LINENO"; then :
10217  eval $cacheid=yes
10218else
10219  eval $cacheid=no
10220fi
10221rm -f core conftest.err conftest.$ac_objext \
10222    conftest$ac_exeext conftest.$ac_ext
10223fi
10224
10225
10226		CFLAGS="$xorg_testset_save_CFLAGS"
10227
10228		eval supported=\$$cacheid
10229		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10230$as_echo "$supported" >&6; }
10231		if test "$supported" = "yes" ; then
10232			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10233			found="yes"
10234		fi
10235	fi
10236
10237
10238
10239# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10240# activate it with -Werror, so we add it here explicitly.
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254xorg_testset_save_CFLAGS="$CFLAGS"
10255
10256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10257	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10261  $as_echo_n "(cached) " >&6
10262else
10263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264/* end confdefs.h.  */
10265int i;
10266_ACEOF
10267if ac_fn_c_try_compile "$LINENO"; then :
10268  xorg_cv_cc_flag_unknown_warning_option=yes
10269else
10270  xorg_cv_cc_flag_unknown_warning_option=no
10271fi
10272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273fi
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10276	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10277	CFLAGS="$xorg_testset_save_CFLAGS"
10278fi
10279
10280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10281	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283	fi
10284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10288  $as_echo_n "(cached) " >&6
10289else
10290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h.  */
10292int i;
10293_ACEOF
10294if ac_fn_c_try_compile "$LINENO"; then :
10295  xorg_cv_cc_flag_unused_command_line_argument=yes
10296else
10297  xorg_cv_cc_flag_unused_command_line_argument=no
10298fi
10299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300fi
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10304	CFLAGS="$xorg_testset_save_CFLAGS"
10305fi
10306
10307found="no"
10308
10309	if test $found = "no" ; then
10310		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312		fi
10313
10314		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316		fi
10317
10318		CFLAGS="$CFLAGS -Werror=attributes"
10319
10320		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10321$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10322		cacheid=xorg_cv_cc_flag__Werror_attributes
10323		if eval \${$cacheid+:} false; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h.  */
10328int i;
10329int
10330main ()
10331{
10332
10333  ;
10334  return 0;
10335}
10336_ACEOF
10337if ac_fn_c_try_link "$LINENO"; then :
10338  eval $cacheid=yes
10339else
10340  eval $cacheid=no
10341fi
10342rm -f core conftest.err conftest.$ac_objext \
10343    conftest$ac_exeext conftest.$ac_ext
10344fi
10345
10346
10347		CFLAGS="$xorg_testset_save_CFLAGS"
10348
10349		eval supported=\$$cacheid
10350		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10351$as_echo "$supported" >&6; }
10352		if test "$supported" = "yes" ; then
10353			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10354			found="yes"
10355		fi
10356	fi
10357
10358
10359
10360if test "x$STRICT_COMPILE" = "xyes"; then
10361    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10362    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10363fi
10364
10365
10366
10367
10368
10369
10370cat >>confdefs.h <<_ACEOF
10371#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10372_ACEOF
10373
10374	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10375	if test "x$PVM" = "x"; then
10376		PVM="0"
10377	fi
10378
10379cat >>confdefs.h <<_ACEOF
10380#define PACKAGE_VERSION_MINOR $PVM
10381_ACEOF
10382
10383	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10384	if test "x$PVP" = "x"; then
10385		PVP="0"
10386	fi
10387
10388cat >>confdefs.h <<_ACEOF
10389#define PACKAGE_VERSION_PATCHLEVEL $PVP
10390_ACEOF
10391
10392
10393
10394CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10395mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10396|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10397echo 'git directory not found: installing possibly empty changelog.' >&2)"
10398
10399
10400
10401
10402macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10403INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10404mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10405|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10406echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10407
10408
10409
10410
10411
10412
10413if test x$APP_MAN_SUFFIX = x    ; then
10414    APP_MAN_SUFFIX=1
10415fi
10416if test x$APP_MAN_DIR = x    ; then
10417    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10418fi
10419
10420if test x$LIB_MAN_SUFFIX = x    ; then
10421    LIB_MAN_SUFFIX=3
10422fi
10423if test x$LIB_MAN_DIR = x    ; then
10424    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10425fi
10426
10427if test x$FILE_MAN_SUFFIX = x    ; then
10428    case $host_os in
10429	solaris*)	FILE_MAN_SUFFIX=4  ;;
10430	*)		FILE_MAN_SUFFIX=5  ;;
10431    esac
10432fi
10433if test x$FILE_MAN_DIR = x    ; then
10434    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10435fi
10436
10437if test x$MISC_MAN_SUFFIX = x    ; then
10438    case $host_os in
10439	solaris*)	MISC_MAN_SUFFIX=5  ;;
10440	*)		MISC_MAN_SUFFIX=7  ;;
10441    esac
10442fi
10443if test x$MISC_MAN_DIR = x    ; then
10444    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10445fi
10446
10447if test x$DRIVER_MAN_SUFFIX = x    ; then
10448    case $host_os in
10449	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10450	*)		DRIVER_MAN_SUFFIX=4  ;;
10451    esac
10452fi
10453if test x$DRIVER_MAN_DIR = x    ; then
10454    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10455fi
10456
10457if test x$ADMIN_MAN_SUFFIX = x    ; then
10458    case $host_os in
10459	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10460	*)		ADMIN_MAN_SUFFIX=8  ;;
10461    esac
10462fi
10463if test x$ADMIN_MAN_DIR = x    ; then
10464    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10465fi
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481XORG_MAN_PAGE="X Version 11"
10482
10483MAN_SUBSTS="\
10484	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10485	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10486	-e 's|__xservername__|Xorg|g' \
10487	-e 's|__xconfigfile__|xorg.conf|g' \
10488	-e 's|__projectroot__|\$(prefix)|g' \
10489	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10490	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10491	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10492	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10493	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10494	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10495	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10496
10497
10498
10499# Check whether --enable-silent-rules was given.
10500if test "${enable_silent_rules+set}" = set; then :
10501  enableval=$enable_silent_rules;
10502fi
10503
10504case $enable_silent_rules in
10505yes) AM_DEFAULT_VERBOSITY=0;;
10506no)  AM_DEFAULT_VERBOSITY=1;;
10507*)   AM_DEFAULT_VERBOSITY=0;;
10508esac
10509am_make=${MAKE-make}
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10511$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10512if ${am_cv_make_support_nested_variables+:} false; then :
10513  $as_echo_n "(cached) " >&6
10514else
10515  if $as_echo 'TRUE=$(BAR$(V))
10516BAR0=false
10517BAR1=true
10518V=1
10519am__doit:
10520	@$(TRUE)
10521.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10522  am_cv_make_support_nested_variables=yes
10523else
10524  am_cv_make_support_nested_variables=no
10525fi
10526fi
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10528$as_echo "$am_cv_make_support_nested_variables" >&6; }
10529if test $am_cv_make_support_nested_variables = yes; then
10530    AM_V='$(V)'
10531  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10532else
10533  AM_V=$AM_DEFAULT_VERBOSITY
10534  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10535fi
10536AM_BACKSLASH='\'
10537
10538
10539
10540# Initialize libtool
10541# Check whether --enable-static was given.
10542if test "${enable_static+set}" = set; then :
10543  enableval=$enable_static; p=${PACKAGE-default}
10544    case $enableval in
10545    yes) enable_static=yes ;;
10546    no) enable_static=no ;;
10547    *)
10548     enable_static=no
10549      # Look at the argument we got.  We use all the common list separators.
10550      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10551      for pkg in $enableval; do
10552	IFS="$lt_save_ifs"
10553	if test "X$pkg" = "X$p"; then
10554	  enable_static=yes
10555	fi
10556      done
10557      IFS="$lt_save_ifs"
10558      ;;
10559    esac
10560else
10561  enable_static=no
10562fi
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572case `pwd` in
10573  *\ * | *\	*)
10574    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10575$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10576esac
10577
10578
10579
10580macro_version='2.4.2'
10581macro_revision='1.3337'
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595ltmain="$ac_aux_dir/ltmain.sh"
10596
10597# Backslashify metacharacters that are still active within
10598# double-quoted strings.
10599sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10600
10601# Same as above, but do not quote variable references.
10602double_quote_subst='s/\(["`\\]\)/\\\1/g'
10603
10604# Sed substitution to delay expansion of an escaped shell variable in a
10605# double_quote_subst'ed string.
10606delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10607
10608# Sed substitution to delay expansion of an escaped single quote.
10609delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10610
10611# Sed substitution to avoid accidental globbing in evaled expressions
10612no_glob_subst='s/\*/\\\*/g'
10613
10614ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10615ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10616ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10617
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10619$as_echo_n "checking how to print strings... " >&6; }
10620# Test print first, because it will be a builtin if present.
10621if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10622   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10623  ECHO='print -r --'
10624elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10625  ECHO='printf %s\n'
10626else
10627  # Use this function as a fallback that always works.
10628  func_fallback_echo ()
10629  {
10630    eval 'cat <<_LTECHO_EOF
10631$1
10632_LTECHO_EOF'
10633  }
10634  ECHO='func_fallback_echo'
10635fi
10636
10637# func_echo_all arg...
10638# Invoke $ECHO with all args, space-separated.
10639func_echo_all ()
10640{
10641    $ECHO ""
10642}
10643
10644case "$ECHO" in
10645  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10646$as_echo "printf" >&6; } ;;
10647  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10648$as_echo "print -r" >&6; } ;;
10649  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10650$as_echo "cat" >&6; } ;;
10651esac
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10667$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10668if ${ac_cv_path_SED+:} false; then :
10669  $as_echo_n "(cached) " >&6
10670else
10671            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10672     for ac_i in 1 2 3 4 5 6 7; do
10673       ac_script="$ac_script$as_nl$ac_script"
10674     done
10675     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10676     { ac_script=; unset ac_script;}
10677     if test -z "$SED"; then
10678  ac_path_SED_found=false
10679  # Loop through the user's path and test for each of PROGNAME-LIST
10680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681for as_dir in $PATH
10682do
10683  IFS=$as_save_IFS
10684  test -z "$as_dir" && as_dir=.
10685    for ac_prog in sed gsed; do
10686    for ac_exec_ext in '' $ac_executable_extensions; do
10687      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10688      as_fn_executable_p "$ac_path_SED" || continue
10689# Check for GNU ac_path_SED and select it if it is found.
10690  # Check for GNU $ac_path_SED
10691case `"$ac_path_SED" --version 2>&1` in
10692*GNU*)
10693  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10694*)
10695  ac_count=0
10696  $as_echo_n 0123456789 >"conftest.in"
10697  while :
10698  do
10699    cat "conftest.in" "conftest.in" >"conftest.tmp"
10700    mv "conftest.tmp" "conftest.in"
10701    cp "conftest.in" "conftest.nl"
10702    $as_echo '' >> "conftest.nl"
10703    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10704    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10705    as_fn_arith $ac_count + 1 && ac_count=$as_val
10706    if test $ac_count -gt ${ac_path_SED_max-0}; then
10707      # Best one so far, save it but keep looking for a better one
10708      ac_cv_path_SED="$ac_path_SED"
10709      ac_path_SED_max=$ac_count
10710    fi
10711    # 10*(2^10) chars as input seems more than enough
10712    test $ac_count -gt 10 && break
10713  done
10714  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10715esac
10716
10717      $ac_path_SED_found && break 3
10718    done
10719  done
10720  done
10721IFS=$as_save_IFS
10722  if test -z "$ac_cv_path_SED"; then
10723    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10724  fi
10725else
10726  ac_cv_path_SED=$SED
10727fi
10728
10729fi
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10731$as_echo "$ac_cv_path_SED" >&6; }
10732 SED="$ac_cv_path_SED"
10733  rm -f conftest.sed
10734
10735test -z "$SED" && SED=sed
10736Xsed="$SED -e 1s/^X//"
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10749$as_echo_n "checking for fgrep... " >&6; }
10750if ${ac_cv_path_FGREP+:} false; then :
10751  $as_echo_n "(cached) " >&6
10752else
10753  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10754   then ac_cv_path_FGREP="$GREP -F"
10755   else
10756     if test -z "$FGREP"; then
10757  ac_path_FGREP_found=false
10758  # Loop through the user's path and test for each of PROGNAME-LIST
10759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10761do
10762  IFS=$as_save_IFS
10763  test -z "$as_dir" && as_dir=.
10764    for ac_prog in fgrep; do
10765    for ac_exec_ext in '' $ac_executable_extensions; do
10766      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10767      as_fn_executable_p "$ac_path_FGREP" || continue
10768# Check for GNU ac_path_FGREP and select it if it is found.
10769  # Check for GNU $ac_path_FGREP
10770case `"$ac_path_FGREP" --version 2>&1` in
10771*GNU*)
10772  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10773*)
10774  ac_count=0
10775  $as_echo_n 0123456789 >"conftest.in"
10776  while :
10777  do
10778    cat "conftest.in" "conftest.in" >"conftest.tmp"
10779    mv "conftest.tmp" "conftest.in"
10780    cp "conftest.in" "conftest.nl"
10781    $as_echo 'FGREP' >> "conftest.nl"
10782    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10783    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10784    as_fn_arith $ac_count + 1 && ac_count=$as_val
10785    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10786      # Best one so far, save it but keep looking for a better one
10787      ac_cv_path_FGREP="$ac_path_FGREP"
10788      ac_path_FGREP_max=$ac_count
10789    fi
10790    # 10*(2^10) chars as input seems more than enough
10791    test $ac_count -gt 10 && break
10792  done
10793  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10794esac
10795
10796      $ac_path_FGREP_found && break 3
10797    done
10798  done
10799  done
10800IFS=$as_save_IFS
10801  if test -z "$ac_cv_path_FGREP"; then
10802    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10803  fi
10804else
10805  ac_cv_path_FGREP=$FGREP
10806fi
10807
10808   fi
10809fi
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10811$as_echo "$ac_cv_path_FGREP" >&6; }
10812 FGREP="$ac_cv_path_FGREP"
10813
10814
10815test -z "$GREP" && GREP=grep
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835# Check whether --with-gnu-ld was given.
10836if test "${with_gnu_ld+set}" = set; then :
10837  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10838else
10839  with_gnu_ld=no
10840fi
10841
10842ac_prog=ld
10843if test "$GCC" = yes; then
10844  # Check if gcc -print-prog-name=ld gives a path.
10845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10846$as_echo_n "checking for ld used by $CC... " >&6; }
10847  case $host in
10848  *-*-mingw*)
10849    # gcc leaves a trailing carriage return which upsets mingw
10850    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10851  *)
10852    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10853  esac
10854  case $ac_prog in
10855    # Accept absolute paths.
10856    [\\/]* | ?:[\\/]*)
10857      re_direlt='/[^/][^/]*/\.\./'
10858      # Canonicalize the pathname of ld
10859      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10860      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10861	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10862      done
10863      test -z "$LD" && LD="$ac_prog"
10864      ;;
10865  "")
10866    # If it fails, then pretend we aren't using GCC.
10867    ac_prog=ld
10868    ;;
10869  *)
10870    # If it is relative, then search for the first ld in PATH.
10871    with_gnu_ld=unknown
10872    ;;
10873  esac
10874elif test "$with_gnu_ld" = yes; then
10875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10876$as_echo_n "checking for GNU ld... " >&6; }
10877else
10878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10879$as_echo_n "checking for non-GNU ld... " >&6; }
10880fi
10881if ${lt_cv_path_LD+:} false; then :
10882  $as_echo_n "(cached) " >&6
10883else
10884  if test -z "$LD"; then
10885  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10886  for ac_dir in $PATH; do
10887    IFS="$lt_save_ifs"
10888    test -z "$ac_dir" && ac_dir=.
10889    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10890      lt_cv_path_LD="$ac_dir/$ac_prog"
10891      # Check to see if the program is GNU ld.  I'd rather use --version,
10892      # but apparently some variants of GNU ld only accept -v.
10893      # Break only if it was the GNU/non-GNU ld that we prefer.
10894      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10895      *GNU* | *'with BFD'*)
10896	test "$with_gnu_ld" != no && break
10897	;;
10898      *)
10899	test "$with_gnu_ld" != yes && break
10900	;;
10901      esac
10902    fi
10903  done
10904  IFS="$lt_save_ifs"
10905else
10906  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10907fi
10908fi
10909
10910LD="$lt_cv_path_LD"
10911if test -n "$LD"; then
10912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10913$as_echo "$LD" >&6; }
10914else
10915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916$as_echo "no" >&6; }
10917fi
10918test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10920$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10921if ${lt_cv_prog_gnu_ld+:} false; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10925case `$LD -v 2>&1 </dev/null` in
10926*GNU* | *'with BFD'*)
10927  lt_cv_prog_gnu_ld=yes
10928  ;;
10929*)
10930  lt_cv_prog_gnu_ld=no
10931  ;;
10932esac
10933fi
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10935$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10936with_gnu_ld=$lt_cv_prog_gnu_ld
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10947$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10948if ${lt_cv_path_NM+:} false; then :
10949  $as_echo_n "(cached) " >&6
10950else
10951  if test -n "$NM"; then
10952  # Let the user override the test.
10953  lt_cv_path_NM="$NM"
10954else
10955  lt_nm_to_check="${ac_tool_prefix}nm"
10956  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10957    lt_nm_to_check="$lt_nm_to_check nm"
10958  fi
10959  for lt_tmp_nm in $lt_nm_to_check; do
10960    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10961    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10962      IFS="$lt_save_ifs"
10963      test -z "$ac_dir" && ac_dir=.
10964      tmp_nm="$ac_dir/$lt_tmp_nm"
10965      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10966	# Check to see if the nm accepts a BSD-compat flag.
10967	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
10968	#   nm: unknown option "B" ignored
10969	# Tru64's nm complains that /dev/null is an invalid object file
10970	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10971	*/dev/null* | *'Invalid file or object type'*)
10972	  lt_cv_path_NM="$tmp_nm -B"
10973	  break
10974	  ;;
10975	*)
10976	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10977	  */dev/null*)
10978	    lt_cv_path_NM="$tmp_nm -p"
10979	    break
10980	    ;;
10981	  *)
10982	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10983	    continue # so that we can try to find one that supports BSD flags
10984	    ;;
10985	  esac
10986	  ;;
10987	esac
10988      fi
10989    done
10990    IFS="$lt_save_ifs"
10991  done
10992  : ${lt_cv_path_NM=no}
10993fi
10994fi
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10996$as_echo "$lt_cv_path_NM" >&6; }
10997if test "$lt_cv_path_NM" != "no"; then
10998  NM="$lt_cv_path_NM"
10999else
11000  # Didn't find any BSD compatible name lister, look for dumpbin.
11001  if test -n "$DUMPBIN"; then :
11002    # Let the user override the test.
11003  else
11004    if test -n "$ac_tool_prefix"; then
11005  for ac_prog in dumpbin "link -dump"
11006  do
11007    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010$as_echo_n "checking for $ac_word... " >&6; }
11011if ${ac_cv_prog_DUMPBIN+:} false; then :
11012  $as_echo_n "(cached) " >&6
11013else
11014  if test -n "$DUMPBIN"; then
11015  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11016else
11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020  IFS=$as_save_IFS
11021  test -z "$as_dir" && as_dir=.
11022    for ac_exec_ext in '' $ac_executable_extensions; do
11023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026    break 2
11027  fi
11028done
11029  done
11030IFS=$as_save_IFS
11031
11032fi
11033fi
11034DUMPBIN=$ac_cv_prog_DUMPBIN
11035if test -n "$DUMPBIN"; then
11036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11037$as_echo "$DUMPBIN" >&6; }
11038else
11039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040$as_echo "no" >&6; }
11041fi
11042
11043
11044    test -n "$DUMPBIN" && break
11045  done
11046fi
11047if test -z "$DUMPBIN"; then
11048  ac_ct_DUMPBIN=$DUMPBIN
11049  for ac_prog in dumpbin "link -dump"
11050do
11051  # Extract the first word of "$ac_prog", so it can be a program name with args.
11052set dummy $ac_prog; ac_word=$2
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11054$as_echo_n "checking for $ac_word... " >&6; }
11055if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11056  $as_echo_n "(cached) " >&6
11057else
11058  if test -n "$ac_ct_DUMPBIN"; then
11059  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11060else
11061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062for as_dir in $PATH
11063do
11064  IFS=$as_save_IFS
11065  test -z "$as_dir" && as_dir=.
11066    for ac_exec_ext in '' $ac_executable_extensions; do
11067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11068    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11070    break 2
11071  fi
11072done
11073  done
11074IFS=$as_save_IFS
11075
11076fi
11077fi
11078ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11079if test -n "$ac_ct_DUMPBIN"; then
11080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11081$as_echo "$ac_ct_DUMPBIN" >&6; }
11082else
11083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084$as_echo "no" >&6; }
11085fi
11086
11087
11088  test -n "$ac_ct_DUMPBIN" && break
11089done
11090
11091  if test "x$ac_ct_DUMPBIN" = x; then
11092    DUMPBIN=":"
11093  else
11094    case $cross_compiling:$ac_tool_warned in
11095yes:)
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11098ac_tool_warned=yes ;;
11099esac
11100    DUMPBIN=$ac_ct_DUMPBIN
11101  fi
11102fi
11103
11104    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11105    *COFF*)
11106      DUMPBIN="$DUMPBIN -symbols"
11107      ;;
11108    *)
11109      DUMPBIN=:
11110      ;;
11111    esac
11112  fi
11113
11114  if test "$DUMPBIN" != ":"; then
11115    NM="$DUMPBIN"
11116  fi
11117fi
11118test -z "$NM" && NM=nm
11119
11120
11121
11122
11123
11124
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11126$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11127if ${lt_cv_nm_interface+:} false; then :
11128  $as_echo_n "(cached) " >&6
11129else
11130  lt_cv_nm_interface="BSD nm"
11131  echo "int some_variable = 0;" > conftest.$ac_ext
11132  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11133  (eval "$ac_compile" 2>conftest.err)
11134  cat conftest.err >&5
11135  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11136  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11137  cat conftest.err >&5
11138  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11139  cat conftest.out >&5
11140  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11141    lt_cv_nm_interface="MS dumpbin"
11142  fi
11143  rm -f conftest*
11144fi
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11146$as_echo "$lt_cv_nm_interface" >&6; }
11147
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11149$as_echo_n "checking whether ln -s works... " >&6; }
11150LN_S=$as_ln_s
11151if test "$LN_S" = "ln -s"; then
11152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153$as_echo "yes" >&6; }
11154else
11155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11156$as_echo "no, using $LN_S" >&6; }
11157fi
11158
11159# find the maximum length of command line arguments
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11161$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11162if ${lt_cv_sys_max_cmd_len+:} false; then :
11163  $as_echo_n "(cached) " >&6
11164else
11165    i=0
11166  teststring="ABCD"
11167
11168  case $build_os in
11169  msdosdjgpp*)
11170    # On DJGPP, this test can blow up pretty badly due to problems in libc
11171    # (any single argument exceeding 2000 bytes causes a buffer overrun
11172    # during glob expansion).  Even if it were fixed, the result of this
11173    # check would be larger than it should be.
11174    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11175    ;;
11176
11177  gnu*)
11178    # Under GNU Hurd, this test is not required because there is
11179    # no limit to the length of command line arguments.
11180    # Libtool will interpret -1 as no limit whatsoever
11181    lt_cv_sys_max_cmd_len=-1;
11182    ;;
11183
11184  cygwin* | mingw* | cegcc*)
11185    # On Win9x/ME, this test blows up -- it succeeds, but takes
11186    # about 5 minutes as the teststring grows exponentially.
11187    # Worse, since 9x/ME are not pre-emptively multitasking,
11188    # you end up with a "frozen" computer, even though with patience
11189    # the test eventually succeeds (with a max line length of 256k).
11190    # Instead, let's just punt: use the minimum linelength reported by
11191    # all of the supported platforms: 8192 (on NT/2K/XP).
11192    lt_cv_sys_max_cmd_len=8192;
11193    ;;
11194
11195  mint*)
11196    # On MiNT this can take a long time and run out of memory.
11197    lt_cv_sys_max_cmd_len=8192;
11198    ;;
11199
11200  amigaos*)
11201    # On AmigaOS with pdksh, this test takes hours, literally.
11202    # So we just punt and use a minimum line length of 8192.
11203    lt_cv_sys_max_cmd_len=8192;
11204    ;;
11205
11206  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11207    # This has been around since 386BSD, at least.  Likely further.
11208    if test -x /sbin/sysctl; then
11209      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11210    elif test -x /usr/sbin/sysctl; then
11211      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11212    else
11213      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11214    fi
11215    # And add a safety zone
11216    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11217    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11218    ;;
11219
11220  interix*)
11221    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11222    lt_cv_sys_max_cmd_len=196608
11223    ;;
11224
11225  os2*)
11226    # The test takes a long time on OS/2.
11227    lt_cv_sys_max_cmd_len=8192
11228    ;;
11229
11230  osf*)
11231    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11232    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11233    # nice to cause kernel panics so lets avoid the loop below.
11234    # First set a reasonable default.
11235    lt_cv_sys_max_cmd_len=16384
11236    #
11237    if test -x /sbin/sysconfig; then
11238      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11239        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11240      esac
11241    fi
11242    ;;
11243  sco3.2v5*)
11244    lt_cv_sys_max_cmd_len=102400
11245    ;;
11246  sysv5* | sco5v6* | sysv4.2uw2*)
11247    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11248    if test -n "$kargmax"; then
11249      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11250    else
11251      lt_cv_sys_max_cmd_len=32768
11252    fi
11253    ;;
11254  *)
11255    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11256    if test -n "$lt_cv_sys_max_cmd_len"; then
11257      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11258      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11259    else
11260      # Make teststring a little bigger before we do anything with it.
11261      # a 1K string should be a reasonable start.
11262      for i in 1 2 3 4 5 6 7 8 ; do
11263        teststring=$teststring$teststring
11264      done
11265      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11266      # If test is not a shell built-in, we'll probably end up computing a
11267      # maximum length that is only half of the actual maximum length, but
11268      # we can't tell.
11269      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11270	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11271	      test $i != 17 # 1/2 MB should be enough
11272      do
11273        i=`expr $i + 1`
11274        teststring=$teststring$teststring
11275      done
11276      # Only check the string length outside the loop.
11277      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11278      teststring=
11279      # Add a significant safety factor because C++ compilers can tack on
11280      # massive amounts of additional arguments before passing them to the
11281      # linker.  It appears as though 1/2 is a usable value.
11282      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11283    fi
11284    ;;
11285  esac
11286
11287fi
11288
11289if test -n $lt_cv_sys_max_cmd_len ; then
11290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11291$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11292else
11293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11294$as_echo "none" >&6; }
11295fi
11296max_cmd_len=$lt_cv_sys_max_cmd_len
11297
11298
11299
11300
11301
11302
11303: ${CP="cp -f"}
11304: ${MV="mv -f"}
11305: ${RM="rm -f"}
11306
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11308$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11309# Try some XSI features
11310xsi_shell=no
11311( _lt_dummy="a/b/c"
11312  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11313      = c,a/b,b/c, \
11314    && eval 'test $(( 1 + 1 )) -eq 2 \
11315    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11316  && xsi_shell=yes
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11318$as_echo "$xsi_shell" >&6; }
11319
11320
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11322$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11323lt_shell_append=no
11324( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11325    >/dev/null 2>&1 \
11326  && lt_shell_append=yes
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11328$as_echo "$lt_shell_append" >&6; }
11329
11330
11331if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11332  lt_unset=unset
11333else
11334  lt_unset=false
11335fi
11336
11337
11338
11339
11340
11341# test EBCDIC or ASCII
11342case `echo X|tr X '\101'` in
11343 A) # ASCII based system
11344    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11345  lt_SP2NL='tr \040 \012'
11346  lt_NL2SP='tr \015\012 \040\040'
11347  ;;
11348 *) # EBCDIC based system
11349  lt_SP2NL='tr \100 \n'
11350  lt_NL2SP='tr \r\n \100\100'
11351  ;;
11352esac
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11363$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11364if ${lt_cv_to_host_file_cmd+:} false; then :
11365  $as_echo_n "(cached) " >&6
11366else
11367  case $host in
11368  *-*-mingw* )
11369    case $build in
11370      *-*-mingw* ) # actually msys
11371        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11372        ;;
11373      *-*-cygwin* )
11374        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11375        ;;
11376      * ) # otherwise, assume *nix
11377        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11378        ;;
11379    esac
11380    ;;
11381  *-*-cygwin* )
11382    case $build in
11383      *-*-mingw* ) # actually msys
11384        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11385        ;;
11386      *-*-cygwin* )
11387        lt_cv_to_host_file_cmd=func_convert_file_noop
11388        ;;
11389      * ) # otherwise, assume *nix
11390        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11391        ;;
11392    esac
11393    ;;
11394  * ) # unhandled hosts (and "normal" native builds)
11395    lt_cv_to_host_file_cmd=func_convert_file_noop
11396    ;;
11397esac
11398
11399fi
11400
11401to_host_file_cmd=$lt_cv_to_host_file_cmd
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11403$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11404
11405
11406
11407
11408
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11410$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11411if ${lt_cv_to_tool_file_cmd+:} false; then :
11412  $as_echo_n "(cached) " >&6
11413else
11414  #assume ordinary cross tools, or native build.
11415lt_cv_to_tool_file_cmd=func_convert_file_noop
11416case $host in
11417  *-*-mingw* )
11418    case $build in
11419      *-*-mingw* ) # actually msys
11420        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11421        ;;
11422    esac
11423    ;;
11424esac
11425
11426fi
11427
11428to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11430$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11431
11432
11433
11434
11435
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11437$as_echo_n "checking for $LD option to reload object files... " >&6; }
11438if ${lt_cv_ld_reload_flag+:} false; then :
11439  $as_echo_n "(cached) " >&6
11440else
11441  lt_cv_ld_reload_flag='-r'
11442fi
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11444$as_echo "$lt_cv_ld_reload_flag" >&6; }
11445reload_flag=$lt_cv_ld_reload_flag
11446case $reload_flag in
11447"" | " "*) ;;
11448*) reload_flag=" $reload_flag" ;;
11449esac
11450reload_cmds='$LD$reload_flag -o $output$reload_objs'
11451case $host_os in
11452  cygwin* | mingw* | pw32* | cegcc*)
11453    if test "$GCC" != yes; then
11454      reload_cmds=false
11455    fi
11456    ;;
11457  darwin*)
11458    if test "$GCC" = yes; then
11459      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11460    else
11461      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11462    fi
11463    ;;
11464esac
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474if test -n "$ac_tool_prefix"; then
11475  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11476set dummy ${ac_tool_prefix}objdump; ac_word=$2
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478$as_echo_n "checking for $ac_word... " >&6; }
11479if ${ac_cv_prog_OBJDUMP+:} false; then :
11480  $as_echo_n "(cached) " >&6
11481else
11482  if test -n "$OBJDUMP"; then
11483  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11484else
11485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486for as_dir in $PATH
11487do
11488  IFS=$as_save_IFS
11489  test -z "$as_dir" && as_dir=.
11490    for ac_exec_ext in '' $ac_executable_extensions; do
11491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11492    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494    break 2
11495  fi
11496done
11497  done
11498IFS=$as_save_IFS
11499
11500fi
11501fi
11502OBJDUMP=$ac_cv_prog_OBJDUMP
11503if test -n "$OBJDUMP"; then
11504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11505$as_echo "$OBJDUMP" >&6; }
11506else
11507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508$as_echo "no" >&6; }
11509fi
11510
11511
11512fi
11513if test -z "$ac_cv_prog_OBJDUMP"; then
11514  ac_ct_OBJDUMP=$OBJDUMP
11515  # Extract the first word of "objdump", so it can be a program name with args.
11516set dummy objdump; ac_word=$2
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518$as_echo_n "checking for $ac_word... " >&6; }
11519if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11520  $as_echo_n "(cached) " >&6
11521else
11522  if test -n "$ac_ct_OBJDUMP"; then
11523  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11524else
11525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526for as_dir in $PATH
11527do
11528  IFS=$as_save_IFS
11529  test -z "$as_dir" && as_dir=.
11530    for ac_exec_ext in '' $ac_executable_extensions; do
11531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534    break 2
11535  fi
11536done
11537  done
11538IFS=$as_save_IFS
11539
11540fi
11541fi
11542ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11543if test -n "$ac_ct_OBJDUMP"; then
11544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11545$as_echo "$ac_ct_OBJDUMP" >&6; }
11546else
11547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
11549fi
11550
11551  if test "x$ac_ct_OBJDUMP" = x; then
11552    OBJDUMP="false"
11553  else
11554    case $cross_compiling:$ac_tool_warned in
11555yes:)
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11558ac_tool_warned=yes ;;
11559esac
11560    OBJDUMP=$ac_ct_OBJDUMP
11561  fi
11562else
11563  OBJDUMP="$ac_cv_prog_OBJDUMP"
11564fi
11565
11566test -z "$OBJDUMP" && OBJDUMP=objdump
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11577$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11578if ${lt_cv_deplibs_check_method+:} false; then :
11579  $as_echo_n "(cached) " >&6
11580else
11581  lt_cv_file_magic_cmd='$MAGIC_CMD'
11582lt_cv_file_magic_test_file=
11583lt_cv_deplibs_check_method='unknown'
11584# Need to set the preceding variable on all platforms that support
11585# interlibrary dependencies.
11586# 'none' -- dependencies not supported.
11587# `unknown' -- same as none, but documents that we really don't know.
11588# 'pass_all' -- all dependencies passed with no checks.
11589# 'test_compile' -- check by making test program.
11590# 'file_magic [[regex]]' -- check by looking for files in library path
11591# which responds to the $file_magic_cmd with a given extended regex.
11592# If you have `file' or equivalent on your system and you're not sure
11593# whether `pass_all' will *always* work, you probably want this one.
11594
11595case $host_os in
11596aix[4-9]*)
11597  lt_cv_deplibs_check_method=pass_all
11598  ;;
11599
11600beos*)
11601  lt_cv_deplibs_check_method=pass_all
11602  ;;
11603
11604bsdi[45]*)
11605  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11606  lt_cv_file_magic_cmd='/usr/bin/file -L'
11607  lt_cv_file_magic_test_file=/shlib/libc.so
11608  ;;
11609
11610cygwin*)
11611  # func_win32_libid is a shell function defined in ltmain.sh
11612  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11613  lt_cv_file_magic_cmd='func_win32_libid'
11614  ;;
11615
11616mingw* | pw32*)
11617  # Base MSYS/MinGW do not provide the 'file' command needed by
11618  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11619  # unless we find 'file', for example because we are cross-compiling.
11620  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11621  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11622    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11623    lt_cv_file_magic_cmd='func_win32_libid'
11624  else
11625    # Keep this pattern in sync with the one in func_win32_libid.
11626    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11627    lt_cv_file_magic_cmd='$OBJDUMP -f'
11628  fi
11629  ;;
11630
11631cegcc*)
11632  # use the weaker test based on 'objdump'. See mingw*.
11633  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11634  lt_cv_file_magic_cmd='$OBJDUMP -f'
11635  ;;
11636
11637darwin* | rhapsody*)
11638  lt_cv_deplibs_check_method=pass_all
11639  ;;
11640
11641freebsd* | dragonfly*)
11642  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11643    case $host_cpu in
11644    i*86 )
11645      # Not sure whether the presence of OpenBSD here was a mistake.
11646      # Let's accept both of them until this is cleared up.
11647      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11648      lt_cv_file_magic_cmd=/usr/bin/file
11649      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11650      ;;
11651    esac
11652  else
11653    lt_cv_deplibs_check_method=pass_all
11654  fi
11655  ;;
11656
11657gnu*)
11658  lt_cv_deplibs_check_method=pass_all
11659  ;;
11660
11661haiku*)
11662  lt_cv_deplibs_check_method=pass_all
11663  ;;
11664
11665hpux10.20* | hpux11*)
11666  lt_cv_file_magic_cmd=/usr/bin/file
11667  case $host_cpu in
11668  ia64*)
11669    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11670    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11671    ;;
11672  hppa*64*)
11673    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]'
11674    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11675    ;;
11676  *)
11677    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11678    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11679    ;;
11680  esac
11681  ;;
11682
11683interix[3-9]*)
11684  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11685  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11686  ;;
11687
11688irix5* | irix6* | nonstopux*)
11689  case $LD in
11690  *-32|*"-32 ") libmagic=32-bit;;
11691  *-n32|*"-n32 ") libmagic=N32;;
11692  *-64|*"-64 ") libmagic=64-bit;;
11693  *) libmagic=never-match;;
11694  esac
11695  lt_cv_deplibs_check_method=pass_all
11696  ;;
11697
11698# This must be glibc/ELF.
11699linux* | k*bsd*-gnu | kopensolaris*-gnu)
11700  lt_cv_deplibs_check_method=pass_all
11701  ;;
11702
11703netbsd* | netbsdelf*-gnu)
11704  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11705    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11706  else
11707    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11708  fi
11709  ;;
11710
11711newos6*)
11712  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11713  lt_cv_file_magic_cmd=/usr/bin/file
11714  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11715  ;;
11716
11717*nto* | *qnx*)
11718  lt_cv_deplibs_check_method=pass_all
11719  ;;
11720
11721openbsd*)
11722  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11723    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11724  else
11725    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11726  fi
11727  ;;
11728
11729osf3* | osf4* | osf5*)
11730  lt_cv_deplibs_check_method=pass_all
11731  ;;
11732
11733rdos*)
11734  lt_cv_deplibs_check_method=pass_all
11735  ;;
11736
11737solaris*)
11738  lt_cv_deplibs_check_method=pass_all
11739  ;;
11740
11741sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11742  lt_cv_deplibs_check_method=pass_all
11743  ;;
11744
11745sysv4 | sysv4.3*)
11746  case $host_vendor in
11747  motorola)
11748    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]'
11749    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11750    ;;
11751  ncr)
11752    lt_cv_deplibs_check_method=pass_all
11753    ;;
11754  sequent)
11755    lt_cv_file_magic_cmd='/bin/file'
11756    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11757    ;;
11758  sni)
11759    lt_cv_file_magic_cmd='/bin/file'
11760    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11761    lt_cv_file_magic_test_file=/lib/libc.so
11762    ;;
11763  siemens)
11764    lt_cv_deplibs_check_method=pass_all
11765    ;;
11766  pc)
11767    lt_cv_deplibs_check_method=pass_all
11768    ;;
11769  esac
11770  ;;
11771
11772tpf*)
11773  lt_cv_deplibs_check_method=pass_all
11774  ;;
11775esac
11776
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11779$as_echo "$lt_cv_deplibs_check_method" >&6; }
11780
11781file_magic_glob=
11782want_nocaseglob=no
11783if test "$build" = "$host"; then
11784  case $host_os in
11785  mingw* | pw32*)
11786    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11787      want_nocaseglob=yes
11788    else
11789      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11790    fi
11791    ;;
11792  esac
11793fi
11794
11795file_magic_cmd=$lt_cv_file_magic_cmd
11796deplibs_check_method=$lt_cv_deplibs_check_method
11797test -z "$deplibs_check_method" && deplibs_check_method=unknown
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820if test -n "$ac_tool_prefix"; then
11821  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11822set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824$as_echo_n "checking for $ac_word... " >&6; }
11825if ${ac_cv_prog_DLLTOOL+:} false; then :
11826  $as_echo_n "(cached) " >&6
11827else
11828  if test -n "$DLLTOOL"; then
11829  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11830else
11831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832for as_dir in $PATH
11833do
11834  IFS=$as_save_IFS
11835  test -z "$as_dir" && as_dir=.
11836    for ac_exec_ext in '' $ac_executable_extensions; do
11837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11838    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840    break 2
11841  fi
11842done
11843  done
11844IFS=$as_save_IFS
11845
11846fi
11847fi
11848DLLTOOL=$ac_cv_prog_DLLTOOL
11849if test -n "$DLLTOOL"; then
11850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11851$as_echo "$DLLTOOL" >&6; }
11852else
11853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854$as_echo "no" >&6; }
11855fi
11856
11857
11858fi
11859if test -z "$ac_cv_prog_DLLTOOL"; then
11860  ac_ct_DLLTOOL=$DLLTOOL
11861  # Extract the first word of "dlltool", so it can be a program name with args.
11862set dummy dlltool; ac_word=$2
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864$as_echo_n "checking for $ac_word... " >&6; }
11865if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11866  $as_echo_n "(cached) " >&6
11867else
11868  if test -n "$ac_ct_DLLTOOL"; then
11869  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11870else
11871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872for as_dir in $PATH
11873do
11874  IFS=$as_save_IFS
11875  test -z "$as_dir" && as_dir=.
11876    for ac_exec_ext in '' $ac_executable_extensions; do
11877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11878    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880    break 2
11881  fi
11882done
11883  done
11884IFS=$as_save_IFS
11885
11886fi
11887fi
11888ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11889if test -n "$ac_ct_DLLTOOL"; then
11890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11891$as_echo "$ac_ct_DLLTOOL" >&6; }
11892else
11893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894$as_echo "no" >&6; }
11895fi
11896
11897  if test "x$ac_ct_DLLTOOL" = x; then
11898    DLLTOOL="false"
11899  else
11900    case $cross_compiling:$ac_tool_warned in
11901yes:)
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11904ac_tool_warned=yes ;;
11905esac
11906    DLLTOOL=$ac_ct_DLLTOOL
11907  fi
11908else
11909  DLLTOOL="$ac_cv_prog_DLLTOOL"
11910fi
11911
11912test -z "$DLLTOOL" && DLLTOOL=dlltool
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11924$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11925if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11926  $as_echo_n "(cached) " >&6
11927else
11928  lt_cv_sharedlib_from_linklib_cmd='unknown'
11929
11930case $host_os in
11931cygwin* | mingw* | pw32* | cegcc*)
11932  # two different shell functions defined in ltmain.sh
11933  # decide which to use based on capabilities of $DLLTOOL
11934  case `$DLLTOOL --help 2>&1` in
11935  *--identify-strict*)
11936    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11937    ;;
11938  *)
11939    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11940    ;;
11941  esac
11942  ;;
11943*)
11944  # fallback: assume linklib IS sharedlib
11945  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11946  ;;
11947esac
11948
11949fi
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11951$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11952sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11953test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11954
11955
11956
11957
11958
11959
11960
11961if test -n "$ac_tool_prefix"; then
11962  for ac_prog in ar
11963  do
11964    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967$as_echo_n "checking for $ac_word... " >&6; }
11968if ${ac_cv_prog_AR+:} false; then :
11969  $as_echo_n "(cached) " >&6
11970else
11971  if test -n "$AR"; then
11972  ac_cv_prog_AR="$AR" # Let the user override the test.
11973else
11974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975for as_dir in $PATH
11976do
11977  IFS=$as_save_IFS
11978  test -z "$as_dir" && as_dir=.
11979    for ac_exec_ext in '' $ac_executable_extensions; do
11980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11981    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983    break 2
11984  fi
11985done
11986  done
11987IFS=$as_save_IFS
11988
11989fi
11990fi
11991AR=$ac_cv_prog_AR
11992if test -n "$AR"; then
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11994$as_echo "$AR" >&6; }
11995else
11996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997$as_echo "no" >&6; }
11998fi
11999
12000
12001    test -n "$AR" && break
12002  done
12003fi
12004if test -z "$AR"; then
12005  ac_ct_AR=$AR
12006  for ac_prog in ar
12007do
12008  # Extract the first word of "$ac_prog", so it can be a program name with args.
12009set dummy $ac_prog; ac_word=$2
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011$as_echo_n "checking for $ac_word... " >&6; }
12012if ${ac_cv_prog_ac_ct_AR+:} false; then :
12013  $as_echo_n "(cached) " >&6
12014else
12015  if test -n "$ac_ct_AR"; then
12016  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12017else
12018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $PATH
12020do
12021  IFS=$as_save_IFS
12022  test -z "$as_dir" && as_dir=.
12023    for ac_exec_ext in '' $ac_executable_extensions; do
12024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025    ac_cv_prog_ac_ct_AR="$ac_prog"
12026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027    break 2
12028  fi
12029done
12030  done
12031IFS=$as_save_IFS
12032
12033fi
12034fi
12035ac_ct_AR=$ac_cv_prog_ac_ct_AR
12036if test -n "$ac_ct_AR"; then
12037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12038$as_echo "$ac_ct_AR" >&6; }
12039else
12040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; }
12042fi
12043
12044
12045  test -n "$ac_ct_AR" && break
12046done
12047
12048  if test "x$ac_ct_AR" = x; then
12049    AR="false"
12050  else
12051    case $cross_compiling:$ac_tool_warned in
12052yes:)
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12055ac_tool_warned=yes ;;
12056esac
12057    AR=$ac_ct_AR
12058  fi
12059fi
12060
12061: ${AR=ar}
12062: ${AR_FLAGS=cru}
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12075$as_echo_n "checking for archiver @FILE support... " >&6; }
12076if ${lt_cv_ar_at_file+:} false; then :
12077  $as_echo_n "(cached) " >&6
12078else
12079  lt_cv_ar_at_file=no
12080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h.  */
12082
12083int
12084main ()
12085{
12086
12087  ;
12088  return 0;
12089}
12090_ACEOF
12091if ac_fn_c_try_compile "$LINENO"; then :
12092  echo conftest.$ac_objext > conftest.lst
12093      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12094      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12095  (eval $lt_ar_try) 2>&5
12096  ac_status=$?
12097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12098  test $ac_status = 0; }
12099      if test "$ac_status" -eq 0; then
12100	# Ensure the archiver fails upon bogus file names.
12101	rm -f conftest.$ac_objext libconftest.a
12102	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12103  (eval $lt_ar_try) 2>&5
12104  ac_status=$?
12105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12106  test $ac_status = 0; }
12107	if test "$ac_status" -ne 0; then
12108          lt_cv_ar_at_file=@
12109        fi
12110      fi
12111      rm -f conftest.* libconftest.a
12112
12113fi
12114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12115
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12118$as_echo "$lt_cv_ar_at_file" >&6; }
12119
12120if test "x$lt_cv_ar_at_file" = xno; then
12121  archiver_list_spec=
12122else
12123  archiver_list_spec=$lt_cv_ar_at_file
12124fi
12125
12126
12127
12128
12129
12130
12131
12132if test -n "$ac_tool_prefix"; then
12133  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12134set dummy ${ac_tool_prefix}strip; ac_word=$2
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136$as_echo_n "checking for $ac_word... " >&6; }
12137if ${ac_cv_prog_STRIP+:} false; then :
12138  $as_echo_n "(cached) " >&6
12139else
12140  if test -n "$STRIP"; then
12141  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12142else
12143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144for as_dir in $PATH
12145do
12146  IFS=$as_save_IFS
12147  test -z "$as_dir" && as_dir=.
12148    for ac_exec_ext in '' $ac_executable_extensions; do
12149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152    break 2
12153  fi
12154done
12155  done
12156IFS=$as_save_IFS
12157
12158fi
12159fi
12160STRIP=$ac_cv_prog_STRIP
12161if test -n "$STRIP"; then
12162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12163$as_echo "$STRIP" >&6; }
12164else
12165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166$as_echo "no" >&6; }
12167fi
12168
12169
12170fi
12171if test -z "$ac_cv_prog_STRIP"; then
12172  ac_ct_STRIP=$STRIP
12173  # Extract the first word of "strip", so it can be a program name with args.
12174set dummy strip; ac_word=$2
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176$as_echo_n "checking for $ac_word... " >&6; }
12177if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12178  $as_echo_n "(cached) " >&6
12179else
12180  if test -n "$ac_ct_STRIP"; then
12181  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12182else
12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH
12185do
12186  IFS=$as_save_IFS
12187  test -z "$as_dir" && as_dir=.
12188    for ac_exec_ext in '' $ac_executable_extensions; do
12189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190    ac_cv_prog_ac_ct_STRIP="strip"
12191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12192    break 2
12193  fi
12194done
12195  done
12196IFS=$as_save_IFS
12197
12198fi
12199fi
12200ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12201if test -n "$ac_ct_STRIP"; then
12202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12203$as_echo "$ac_ct_STRIP" >&6; }
12204else
12205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206$as_echo "no" >&6; }
12207fi
12208
12209  if test "x$ac_ct_STRIP" = x; then
12210    STRIP=":"
12211  else
12212    case $cross_compiling:$ac_tool_warned in
12213yes:)
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12216ac_tool_warned=yes ;;
12217esac
12218    STRIP=$ac_ct_STRIP
12219  fi
12220else
12221  STRIP="$ac_cv_prog_STRIP"
12222fi
12223
12224test -z "$STRIP" && STRIP=:
12225
12226
12227
12228
12229
12230
12231if test -n "$ac_tool_prefix"; then
12232  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12233set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235$as_echo_n "checking for $ac_word... " >&6; }
12236if ${ac_cv_prog_RANLIB+:} false; then :
12237  $as_echo_n "(cached) " >&6
12238else
12239  if test -n "$RANLIB"; then
12240  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12241else
12242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $PATH
12244do
12245  IFS=$as_save_IFS
12246  test -z "$as_dir" && as_dir=.
12247    for ac_exec_ext in '' $ac_executable_extensions; do
12248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251    break 2
12252  fi
12253done
12254  done
12255IFS=$as_save_IFS
12256
12257fi
12258fi
12259RANLIB=$ac_cv_prog_RANLIB
12260if test -n "$RANLIB"; then
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12262$as_echo "$RANLIB" >&6; }
12263else
12264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265$as_echo "no" >&6; }
12266fi
12267
12268
12269fi
12270if test -z "$ac_cv_prog_RANLIB"; then
12271  ac_ct_RANLIB=$RANLIB
12272  # Extract the first word of "ranlib", so it can be a program name with args.
12273set dummy ranlib; ac_word=$2
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275$as_echo_n "checking for $ac_word... " >&6; }
12276if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12277  $as_echo_n "(cached) " >&6
12278else
12279  if test -n "$ac_ct_RANLIB"; then
12280  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12281else
12282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283for as_dir in $PATH
12284do
12285  IFS=$as_save_IFS
12286  test -z "$as_dir" && as_dir=.
12287    for ac_exec_ext in '' $ac_executable_extensions; do
12288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289    ac_cv_prog_ac_ct_RANLIB="ranlib"
12290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291    break 2
12292  fi
12293done
12294  done
12295IFS=$as_save_IFS
12296
12297fi
12298fi
12299ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12300if test -n "$ac_ct_RANLIB"; then
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12302$as_echo "$ac_ct_RANLIB" >&6; }
12303else
12304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305$as_echo "no" >&6; }
12306fi
12307
12308  if test "x$ac_ct_RANLIB" = x; then
12309    RANLIB=":"
12310  else
12311    case $cross_compiling:$ac_tool_warned in
12312yes:)
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12315ac_tool_warned=yes ;;
12316esac
12317    RANLIB=$ac_ct_RANLIB
12318  fi
12319else
12320  RANLIB="$ac_cv_prog_RANLIB"
12321fi
12322
12323test -z "$RANLIB" && RANLIB=:
12324
12325
12326
12327
12328
12329
12330# Determine commands to create old-style static archives.
12331old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12332old_postinstall_cmds='chmod 644 $oldlib'
12333old_postuninstall_cmds=
12334
12335if test -n "$RANLIB"; then
12336  case $host_os in
12337  openbsd*)
12338    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12339    ;;
12340  *)
12341    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12342    ;;
12343  esac
12344  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12345fi
12346
12347case $host_os in
12348  darwin*)
12349    lock_old_archive_extraction=yes ;;
12350  *)
12351    lock_old_archive_extraction=no ;;
12352esac
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392# If no C compiler was specified, use CC.
12393LTCC=${LTCC-"$CC"}
12394
12395# If no C compiler flags were specified, use CFLAGS.
12396LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12397
12398# Allow CC to be a program name with arguments.
12399compiler=$CC
12400
12401
12402# Check for command to grab the raw symbol name followed by C symbol from nm.
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12404$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12405if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12406  $as_echo_n "(cached) " >&6
12407else
12408
12409# These are sane defaults that work on at least a few old systems.
12410# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12411
12412# Character class describing NM global symbol codes.
12413symcode='[BCDEGRST]'
12414
12415# Regexp to match symbols that can be accessed directly from C.
12416sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12417
12418# Define system-specific variables.
12419case $host_os in
12420aix*)
12421  symcode='[BCDT]'
12422  ;;
12423cygwin* | mingw* | pw32* | cegcc*)
12424  symcode='[ABCDGISTW]'
12425  ;;
12426hpux*)
12427  if test "$host_cpu" = ia64; then
12428    symcode='[ABCDEGRST]'
12429  fi
12430  ;;
12431irix* | nonstopux*)
12432  symcode='[BCDEGRST]'
12433  ;;
12434osf*)
12435  symcode='[BCDEGQRST]'
12436  ;;
12437solaris*)
12438  symcode='[BDRT]'
12439  ;;
12440sco3.2v5*)
12441  symcode='[DT]'
12442  ;;
12443sysv4.2uw2*)
12444  symcode='[DT]'
12445  ;;
12446sysv5* | sco5v6* | unixware* | OpenUNIX*)
12447  symcode='[ABDT]'
12448  ;;
12449sysv4)
12450  symcode='[DFNSTU]'
12451  ;;
12452esac
12453
12454# If we're using GNU nm, then use its standard symbol codes.
12455case `$NM -V 2>&1` in
12456*GNU* | *'with BFD'*)
12457  symcode='[ABCDGIRSTW]' ;;
12458esac
12459
12460# Transform an extracted symbol line into a proper C declaration.
12461# Some systems (esp. on ia64) link data and code symbols differently,
12462# so use this general approach.
12463lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12464
12465# Transform an extracted symbol line into symbol name and symbol address
12466lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12467lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12468
12469# Handle CRLF in mingw tool chain
12470opt_cr=
12471case $build_os in
12472mingw*)
12473  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12474  ;;
12475esac
12476
12477# Try without a prefix underscore, then with it.
12478for ac_symprfx in "" "_"; do
12479
12480  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12481  symxfrm="\\1 $ac_symprfx\\2 \\2"
12482
12483  # Write the raw and C identifiers.
12484  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12485    # Fake it for dumpbin and say T for any non-static function
12486    # and D for any global variable.
12487    # Also find C++ and __fastcall symbols from MSVC++,
12488    # which start with @ or ?.
12489    lt_cv_sys_global_symbol_pipe="$AWK '"\
12490"     {last_section=section; section=\$ 3};"\
12491"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12492"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12493"     \$ 0!~/External *\|/{next};"\
12494"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12495"     {if(hide[section]) next};"\
12496"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12497"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12498"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12499"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12500"     ' prfx=^$ac_symprfx"
12501  else
12502    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12503  fi
12504  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12505
12506  # Check to see that the pipe works correctly.
12507  pipe_works=no
12508
12509  rm -f conftest*
12510  cat > conftest.$ac_ext <<_LT_EOF
12511#ifdef __cplusplus
12512extern "C" {
12513#endif
12514char nm_test_var;
12515void nm_test_func(void);
12516void nm_test_func(void){}
12517#ifdef __cplusplus
12518}
12519#endif
12520int main(){nm_test_var='a';nm_test_func();return(0);}
12521_LT_EOF
12522
12523  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12524  (eval $ac_compile) 2>&5
12525  ac_status=$?
12526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12527  test $ac_status = 0; }; then
12528    # Now try to grab the symbols.
12529    nlist=conftest.nm
12530    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12531  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12532  ac_status=$?
12533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12534  test $ac_status = 0; } && test -s "$nlist"; then
12535      # Try sorting and uniquifying the output.
12536      if sort "$nlist" | uniq > "$nlist"T; then
12537	mv -f "$nlist"T "$nlist"
12538      else
12539	rm -f "$nlist"T
12540      fi
12541
12542      # Make sure that we snagged all the symbols we need.
12543      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12544	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12545	  cat <<_LT_EOF > conftest.$ac_ext
12546/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12547#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12548/* DATA imports from DLLs on WIN32 con't be const, because runtime
12549   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12550# define LT_DLSYM_CONST
12551#elif defined(__osf__)
12552/* This system does not cope well with relocations in const data.  */
12553# define LT_DLSYM_CONST
12554#else
12555# define LT_DLSYM_CONST const
12556#endif
12557
12558#ifdef __cplusplus
12559extern "C" {
12560#endif
12561
12562_LT_EOF
12563	  # Now generate the symbol file.
12564	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12565
12566	  cat <<_LT_EOF >> conftest.$ac_ext
12567
12568/* The mapping between symbol names and symbols.  */
12569LT_DLSYM_CONST struct {
12570  const char *name;
12571  void       *address;
12572}
12573lt__PROGRAM__LTX_preloaded_symbols[] =
12574{
12575  { "@PROGRAM@", (void *) 0 },
12576_LT_EOF
12577	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12578	  cat <<\_LT_EOF >> conftest.$ac_ext
12579  {0, (void *) 0}
12580};
12581
12582/* This works around a problem in FreeBSD linker */
12583#ifdef FREEBSD_WORKAROUND
12584static const void *lt_preloaded_setup() {
12585  return lt__PROGRAM__LTX_preloaded_symbols;
12586}
12587#endif
12588
12589#ifdef __cplusplus
12590}
12591#endif
12592_LT_EOF
12593	  # Now try linking the two files.
12594	  mv conftest.$ac_objext conftstm.$ac_objext
12595	  lt_globsym_save_LIBS=$LIBS
12596	  lt_globsym_save_CFLAGS=$CFLAGS
12597	  LIBS="conftstm.$ac_objext"
12598	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12599	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12600  (eval $ac_link) 2>&5
12601  ac_status=$?
12602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12604	    pipe_works=yes
12605	  fi
12606	  LIBS=$lt_globsym_save_LIBS
12607	  CFLAGS=$lt_globsym_save_CFLAGS
12608	else
12609	  echo "cannot find nm_test_func in $nlist" >&5
12610	fi
12611      else
12612	echo "cannot find nm_test_var in $nlist" >&5
12613      fi
12614    else
12615      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12616    fi
12617  else
12618    echo "$progname: failed program was:" >&5
12619    cat conftest.$ac_ext >&5
12620  fi
12621  rm -rf conftest* conftst*
12622
12623  # Do not use the global_symbol_pipe unless it works.
12624  if test "$pipe_works" = yes; then
12625    break
12626  else
12627    lt_cv_sys_global_symbol_pipe=
12628  fi
12629done
12630
12631fi
12632
12633if test -z "$lt_cv_sys_global_symbol_pipe"; then
12634  lt_cv_sys_global_symbol_to_cdecl=
12635fi
12636if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12638$as_echo "failed" >&6; }
12639else
12640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12641$as_echo "ok" >&6; }
12642fi
12643
12644# Response file support.
12645if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12646  nm_file_list_spec='@'
12647elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12648  nm_file_list_spec='@'
12649fi
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12678$as_echo_n "checking for sysroot... " >&6; }
12679
12680# Check whether --with-sysroot was given.
12681if test "${with_sysroot+set}" = set; then :
12682  withval=$with_sysroot;
12683else
12684  with_sysroot=no
12685fi
12686
12687
12688lt_sysroot=
12689case ${with_sysroot} in #(
12690 yes)
12691   if test "$GCC" = yes; then
12692     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12693   fi
12694   ;; #(
12695 /*)
12696   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12697   ;; #(
12698 no|'')
12699   ;; #(
12700 *)
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12702$as_echo "${with_sysroot}" >&6; }
12703   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12704   ;;
12705esac
12706
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12708$as_echo "${lt_sysroot:-no}" >&6; }
12709
12710
12711
12712
12713
12714# Check whether --enable-libtool-lock was given.
12715if test "${enable_libtool_lock+set}" = set; then :
12716  enableval=$enable_libtool_lock;
12717fi
12718
12719test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12720
12721# Some flags need to be propagated to the compiler or linker for good
12722# libtool support.
12723case $host in
12724ia64-*-hpux*)
12725  # Find out which ABI we are using.
12726  echo 'int i;' > conftest.$ac_ext
12727  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12728  (eval $ac_compile) 2>&5
12729  ac_status=$?
12730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12731  test $ac_status = 0; }; then
12732    case `/usr/bin/file conftest.$ac_objext` in
12733      *ELF-32*)
12734	HPUX_IA64_MODE="32"
12735	;;
12736      *ELF-64*)
12737	HPUX_IA64_MODE="64"
12738	;;
12739    esac
12740  fi
12741  rm -rf conftest*
12742  ;;
12743*-*-irix6*)
12744  # Find out which ABI we are using.
12745  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12746  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12747  (eval $ac_compile) 2>&5
12748  ac_status=$?
12749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12750  test $ac_status = 0; }; then
12751    if test "$lt_cv_prog_gnu_ld" = yes; then
12752      case `/usr/bin/file conftest.$ac_objext` in
12753	*32-bit*)
12754	  LD="${LD-ld} -melf32bsmip"
12755	  ;;
12756	*N32*)
12757	  LD="${LD-ld} -melf32bmipn32"
12758	  ;;
12759	*64-bit*)
12760	  LD="${LD-ld} -melf64bmip"
12761	;;
12762      esac
12763    else
12764      case `/usr/bin/file conftest.$ac_objext` in
12765	*32-bit*)
12766	  LD="${LD-ld} -32"
12767	  ;;
12768	*N32*)
12769	  LD="${LD-ld} -n32"
12770	  ;;
12771	*64-bit*)
12772	  LD="${LD-ld} -64"
12773	  ;;
12774      esac
12775    fi
12776  fi
12777  rm -rf conftest*
12778  ;;
12779
12780x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12781s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12782  # Find out which ABI we are using.
12783  echo 'int i;' > conftest.$ac_ext
12784  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12785  (eval $ac_compile) 2>&5
12786  ac_status=$?
12787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12788  test $ac_status = 0; }; then
12789    case `/usr/bin/file conftest.o` in
12790      *32-bit*)
12791	case $host in
12792	  x86_64-*kfreebsd*-gnu)
12793	    LD="${LD-ld} -m elf_i386_fbsd"
12794	    ;;
12795	  x86_64-*linux*)
12796	    LD="${LD-ld} -m elf_i386"
12797	    ;;
12798	  ppc64-*linux*|powerpc64-*linux*)
12799	    LD="${LD-ld} -m elf32ppclinux"
12800	    ;;
12801	  s390x-*linux*)
12802	    LD="${LD-ld} -m elf_s390"
12803	    ;;
12804	  sparc64-*linux*)
12805	    LD="${LD-ld} -m elf32_sparc"
12806	    ;;
12807	esac
12808	;;
12809      *64-bit*)
12810	case $host in
12811	  x86_64-*kfreebsd*-gnu)
12812	    LD="${LD-ld} -m elf_x86_64_fbsd"
12813	    ;;
12814	  x86_64-*linux*)
12815	    LD="${LD-ld} -m elf_x86_64"
12816	    ;;
12817	  ppc*-*linux*|powerpc*-*linux*)
12818	    LD="${LD-ld} -m elf64ppc"
12819	    ;;
12820	  s390*-*linux*|s390*-*tpf*)
12821	    LD="${LD-ld} -m elf64_s390"
12822	    ;;
12823	  sparc*-*linux*)
12824	    LD="${LD-ld} -m elf64_sparc"
12825	    ;;
12826	esac
12827	;;
12828    esac
12829  fi
12830  rm -rf conftest*
12831  ;;
12832
12833*-*-sco3.2v5*)
12834  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12835  SAVE_CFLAGS="$CFLAGS"
12836  CFLAGS="$CFLAGS -belf"
12837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12838$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12839if ${lt_cv_cc_needs_belf+:} false; then :
12840  $as_echo_n "(cached) " >&6
12841else
12842  ac_ext=c
12843ac_cpp='$CPP $CPPFLAGS'
12844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12846ac_compiler_gnu=$ac_cv_c_compiler_gnu
12847
12848     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849/* end confdefs.h.  */
12850
12851int
12852main ()
12853{
12854
12855  ;
12856  return 0;
12857}
12858_ACEOF
12859if ac_fn_c_try_link "$LINENO"; then :
12860  lt_cv_cc_needs_belf=yes
12861else
12862  lt_cv_cc_needs_belf=no
12863fi
12864rm -f core conftest.err conftest.$ac_objext \
12865    conftest$ac_exeext conftest.$ac_ext
12866     ac_ext=c
12867ac_cpp='$CPP $CPPFLAGS'
12868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871
12872fi
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12874$as_echo "$lt_cv_cc_needs_belf" >&6; }
12875  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12876    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12877    CFLAGS="$SAVE_CFLAGS"
12878  fi
12879  ;;
12880*-*solaris*)
12881  # Find out which ABI we are using.
12882  echo 'int i;' > conftest.$ac_ext
12883  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12884  (eval $ac_compile) 2>&5
12885  ac_status=$?
12886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12887  test $ac_status = 0; }; then
12888    case `/usr/bin/file conftest.o` in
12889    *64-bit*)
12890      case $lt_cv_prog_gnu_ld in
12891      yes*)
12892        case $host in
12893        i?86-*-solaris*)
12894          LD="${LD-ld} -m elf_x86_64"
12895          ;;
12896        sparc*-*-solaris*)
12897          LD="${LD-ld} -m elf64_sparc"
12898          ;;
12899        esac
12900        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12901        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12902          LD="${LD-ld}_sol2"
12903        fi
12904        ;;
12905      *)
12906	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12907	  LD="${LD-ld} -64"
12908	fi
12909	;;
12910      esac
12911      ;;
12912    esac
12913  fi
12914  rm -rf conftest*
12915  ;;
12916esac
12917
12918need_locks="$enable_libtool_lock"
12919
12920if test -n "$ac_tool_prefix"; then
12921  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12922set dummy ${ac_tool_prefix}mt; ac_word=$2
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924$as_echo_n "checking for $ac_word... " >&6; }
12925if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12926  $as_echo_n "(cached) " >&6
12927else
12928  if test -n "$MANIFEST_TOOL"; then
12929  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12930else
12931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932for as_dir in $PATH
12933do
12934  IFS=$as_save_IFS
12935  test -z "$as_dir" && as_dir=.
12936    for ac_exec_ext in '' $ac_executable_extensions; do
12937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12938    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12940    break 2
12941  fi
12942done
12943  done
12944IFS=$as_save_IFS
12945
12946fi
12947fi
12948MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12949if test -n "$MANIFEST_TOOL"; then
12950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12951$as_echo "$MANIFEST_TOOL" >&6; }
12952else
12953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
12955fi
12956
12957
12958fi
12959if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12960  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12961  # Extract the first word of "mt", so it can be a program name with args.
12962set dummy mt; ac_word=$2
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12964$as_echo_n "checking for $ac_word... " >&6; }
12965if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12966  $as_echo_n "(cached) " >&6
12967else
12968  if test -n "$ac_ct_MANIFEST_TOOL"; then
12969  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12970else
12971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972for as_dir in $PATH
12973do
12974  IFS=$as_save_IFS
12975  test -z "$as_dir" && as_dir=.
12976    for ac_exec_ext in '' $ac_executable_extensions; do
12977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12978    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12980    break 2
12981  fi
12982done
12983  done
12984IFS=$as_save_IFS
12985
12986fi
12987fi
12988ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12989if test -n "$ac_ct_MANIFEST_TOOL"; then
12990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12991$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12992else
12993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994$as_echo "no" >&6; }
12995fi
12996
12997  if test "x$ac_ct_MANIFEST_TOOL" = x; then
12998    MANIFEST_TOOL=":"
12999  else
13000    case $cross_compiling:$ac_tool_warned in
13001yes:)
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13004ac_tool_warned=yes ;;
13005esac
13006    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13007  fi
13008else
13009  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13010fi
13011
13012test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13014$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13015if ${lt_cv_path_mainfest_tool+:} false; then :
13016  $as_echo_n "(cached) " >&6
13017else
13018  lt_cv_path_mainfest_tool=no
13019  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13020  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13021  cat conftest.err >&5
13022  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13023    lt_cv_path_mainfest_tool=yes
13024  fi
13025  rm -f conftest*
13026fi
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13028$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13029if test "x$lt_cv_path_mainfest_tool" != xyes; then
13030  MANIFEST_TOOL=:
13031fi
13032
13033
13034
13035
13036
13037
13038  case $host_os in
13039    rhapsody* | darwin*)
13040    if test -n "$ac_tool_prefix"; then
13041  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13042set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044$as_echo_n "checking for $ac_word... " >&6; }
13045if ${ac_cv_prog_DSYMUTIL+:} false; then :
13046  $as_echo_n "(cached) " >&6
13047else
13048  if test -n "$DSYMUTIL"; then
13049  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13050else
13051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052for as_dir in $PATH
13053do
13054  IFS=$as_save_IFS
13055  test -z "$as_dir" && as_dir=.
13056    for ac_exec_ext in '' $ac_executable_extensions; do
13057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13058    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060    break 2
13061  fi
13062done
13063  done
13064IFS=$as_save_IFS
13065
13066fi
13067fi
13068DSYMUTIL=$ac_cv_prog_DSYMUTIL
13069if test -n "$DSYMUTIL"; then
13070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13071$as_echo "$DSYMUTIL" >&6; }
13072else
13073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074$as_echo "no" >&6; }
13075fi
13076
13077
13078fi
13079if test -z "$ac_cv_prog_DSYMUTIL"; then
13080  ac_ct_DSYMUTIL=$DSYMUTIL
13081  # Extract the first word of "dsymutil", so it can be a program name with args.
13082set dummy dsymutil; ac_word=$2
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084$as_echo_n "checking for $ac_word... " >&6; }
13085if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13086  $as_echo_n "(cached) " >&6
13087else
13088  if test -n "$ac_ct_DSYMUTIL"; then
13089  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13090else
13091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092for as_dir in $PATH
13093do
13094  IFS=$as_save_IFS
13095  test -z "$as_dir" && as_dir=.
13096    for ac_exec_ext in '' $ac_executable_extensions; do
13097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13098    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100    break 2
13101  fi
13102done
13103  done
13104IFS=$as_save_IFS
13105
13106fi
13107fi
13108ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13109if test -n "$ac_ct_DSYMUTIL"; then
13110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13111$as_echo "$ac_ct_DSYMUTIL" >&6; }
13112else
13113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114$as_echo "no" >&6; }
13115fi
13116
13117  if test "x$ac_ct_DSYMUTIL" = x; then
13118    DSYMUTIL=":"
13119  else
13120    case $cross_compiling:$ac_tool_warned in
13121yes:)
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13124ac_tool_warned=yes ;;
13125esac
13126    DSYMUTIL=$ac_ct_DSYMUTIL
13127  fi
13128else
13129  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13130fi
13131
13132    if test -n "$ac_tool_prefix"; then
13133  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13134set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136$as_echo_n "checking for $ac_word... " >&6; }
13137if ${ac_cv_prog_NMEDIT+:} false; then :
13138  $as_echo_n "(cached) " >&6
13139else
13140  if test -n "$NMEDIT"; then
13141  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13142else
13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146  IFS=$as_save_IFS
13147  test -z "$as_dir" && as_dir=.
13148    for ac_exec_ext in '' $ac_executable_extensions; do
13149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13152    break 2
13153  fi
13154done
13155  done
13156IFS=$as_save_IFS
13157
13158fi
13159fi
13160NMEDIT=$ac_cv_prog_NMEDIT
13161if test -n "$NMEDIT"; then
13162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13163$as_echo "$NMEDIT" >&6; }
13164else
13165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166$as_echo "no" >&6; }
13167fi
13168
13169
13170fi
13171if test -z "$ac_cv_prog_NMEDIT"; then
13172  ac_ct_NMEDIT=$NMEDIT
13173  # Extract the first word of "nmedit", so it can be a program name with args.
13174set dummy nmedit; ac_word=$2
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176$as_echo_n "checking for $ac_word... " >&6; }
13177if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13178  $as_echo_n "(cached) " >&6
13179else
13180  if test -n "$ac_ct_NMEDIT"; then
13181  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13182else
13183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184for as_dir in $PATH
13185do
13186  IFS=$as_save_IFS
13187  test -z "$as_dir" && as_dir=.
13188    for ac_exec_ext in '' $ac_executable_extensions; do
13189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192    break 2
13193  fi
13194done
13195  done
13196IFS=$as_save_IFS
13197
13198fi
13199fi
13200ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13201if test -n "$ac_ct_NMEDIT"; then
13202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13203$as_echo "$ac_ct_NMEDIT" >&6; }
13204else
13205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206$as_echo "no" >&6; }
13207fi
13208
13209  if test "x$ac_ct_NMEDIT" = x; then
13210    NMEDIT=":"
13211  else
13212    case $cross_compiling:$ac_tool_warned in
13213yes:)
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13216ac_tool_warned=yes ;;
13217esac
13218    NMEDIT=$ac_ct_NMEDIT
13219  fi
13220else
13221  NMEDIT="$ac_cv_prog_NMEDIT"
13222fi
13223
13224    if test -n "$ac_tool_prefix"; then
13225  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13226set dummy ${ac_tool_prefix}lipo; ac_word=$2
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228$as_echo_n "checking for $ac_word... " >&6; }
13229if ${ac_cv_prog_LIPO+:} false; then :
13230  $as_echo_n "(cached) " >&6
13231else
13232  if test -n "$LIPO"; then
13233  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13234else
13235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236for as_dir in $PATH
13237do
13238  IFS=$as_save_IFS
13239  test -z "$as_dir" && as_dir=.
13240    for ac_exec_ext in '' $ac_executable_extensions; do
13241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13242    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13244    break 2
13245  fi
13246done
13247  done
13248IFS=$as_save_IFS
13249
13250fi
13251fi
13252LIPO=$ac_cv_prog_LIPO
13253if test -n "$LIPO"; then
13254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13255$as_echo "$LIPO" >&6; }
13256else
13257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258$as_echo "no" >&6; }
13259fi
13260
13261
13262fi
13263if test -z "$ac_cv_prog_LIPO"; then
13264  ac_ct_LIPO=$LIPO
13265  # Extract the first word of "lipo", so it can be a program name with args.
13266set dummy lipo; ac_word=$2
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268$as_echo_n "checking for $ac_word... " >&6; }
13269if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13270  $as_echo_n "(cached) " >&6
13271else
13272  if test -n "$ac_ct_LIPO"; then
13273  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13274else
13275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276for as_dir in $PATH
13277do
13278  IFS=$as_save_IFS
13279  test -z "$as_dir" && as_dir=.
13280    for ac_exec_ext in '' $ac_executable_extensions; do
13281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282    ac_cv_prog_ac_ct_LIPO="lipo"
13283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284    break 2
13285  fi
13286done
13287  done
13288IFS=$as_save_IFS
13289
13290fi
13291fi
13292ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13293if test -n "$ac_ct_LIPO"; then
13294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13295$as_echo "$ac_ct_LIPO" >&6; }
13296else
13297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
13299fi
13300
13301  if test "x$ac_ct_LIPO" = x; then
13302    LIPO=":"
13303  else
13304    case $cross_compiling:$ac_tool_warned in
13305yes:)
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13308ac_tool_warned=yes ;;
13309esac
13310    LIPO=$ac_ct_LIPO
13311  fi
13312else
13313  LIPO="$ac_cv_prog_LIPO"
13314fi
13315
13316    if test -n "$ac_tool_prefix"; then
13317  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13318set dummy ${ac_tool_prefix}otool; ac_word=$2
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320$as_echo_n "checking for $ac_word... " >&6; }
13321if ${ac_cv_prog_OTOOL+:} false; then :
13322  $as_echo_n "(cached) " >&6
13323else
13324  if test -n "$OTOOL"; then
13325  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13326else
13327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328for as_dir in $PATH
13329do
13330  IFS=$as_save_IFS
13331  test -z "$as_dir" && as_dir=.
13332    for ac_exec_ext in '' $ac_executable_extensions; do
13333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13334    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13336    break 2
13337  fi
13338done
13339  done
13340IFS=$as_save_IFS
13341
13342fi
13343fi
13344OTOOL=$ac_cv_prog_OTOOL
13345if test -n "$OTOOL"; then
13346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13347$as_echo "$OTOOL" >&6; }
13348else
13349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350$as_echo "no" >&6; }
13351fi
13352
13353
13354fi
13355if test -z "$ac_cv_prog_OTOOL"; then
13356  ac_ct_OTOOL=$OTOOL
13357  # Extract the first word of "otool", so it can be a program name with args.
13358set dummy otool; ac_word=$2
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360$as_echo_n "checking for $ac_word... " >&6; }
13361if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13362  $as_echo_n "(cached) " >&6
13363else
13364  if test -n "$ac_ct_OTOOL"; then
13365  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13366else
13367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368for as_dir in $PATH
13369do
13370  IFS=$as_save_IFS
13371  test -z "$as_dir" && as_dir=.
13372    for ac_exec_ext in '' $ac_executable_extensions; do
13373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13374    ac_cv_prog_ac_ct_OTOOL="otool"
13375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13376    break 2
13377  fi
13378done
13379  done
13380IFS=$as_save_IFS
13381
13382fi
13383fi
13384ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13385if test -n "$ac_ct_OTOOL"; then
13386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13387$as_echo "$ac_ct_OTOOL" >&6; }
13388else
13389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390$as_echo "no" >&6; }
13391fi
13392
13393  if test "x$ac_ct_OTOOL" = x; then
13394    OTOOL=":"
13395  else
13396    case $cross_compiling:$ac_tool_warned in
13397yes:)
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13400ac_tool_warned=yes ;;
13401esac
13402    OTOOL=$ac_ct_OTOOL
13403  fi
13404else
13405  OTOOL="$ac_cv_prog_OTOOL"
13406fi
13407
13408    if test -n "$ac_tool_prefix"; then
13409  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13410set dummy ${ac_tool_prefix}otool64; ac_word=$2
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412$as_echo_n "checking for $ac_word... " >&6; }
13413if ${ac_cv_prog_OTOOL64+:} false; then :
13414  $as_echo_n "(cached) " >&6
13415else
13416  if test -n "$OTOOL64"; then
13417  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13418else
13419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420for as_dir in $PATH
13421do
13422  IFS=$as_save_IFS
13423  test -z "$as_dir" && as_dir=.
13424    for ac_exec_ext in '' $ac_executable_extensions; do
13425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13426    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13428    break 2
13429  fi
13430done
13431  done
13432IFS=$as_save_IFS
13433
13434fi
13435fi
13436OTOOL64=$ac_cv_prog_OTOOL64
13437if test -n "$OTOOL64"; then
13438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13439$as_echo "$OTOOL64" >&6; }
13440else
13441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442$as_echo "no" >&6; }
13443fi
13444
13445
13446fi
13447if test -z "$ac_cv_prog_OTOOL64"; then
13448  ac_ct_OTOOL64=$OTOOL64
13449  # Extract the first word of "otool64", so it can be a program name with args.
13450set dummy otool64; ac_word=$2
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452$as_echo_n "checking for $ac_word... " >&6; }
13453if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13454  $as_echo_n "(cached) " >&6
13455else
13456  if test -n "$ac_ct_OTOOL64"; then
13457  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13458else
13459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460for as_dir in $PATH
13461do
13462  IFS=$as_save_IFS
13463  test -z "$as_dir" && as_dir=.
13464    for ac_exec_ext in '' $ac_executable_extensions; do
13465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13466    ac_cv_prog_ac_ct_OTOOL64="otool64"
13467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468    break 2
13469  fi
13470done
13471  done
13472IFS=$as_save_IFS
13473
13474fi
13475fi
13476ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13477if test -n "$ac_ct_OTOOL64"; then
13478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13479$as_echo "$ac_ct_OTOOL64" >&6; }
13480else
13481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482$as_echo "no" >&6; }
13483fi
13484
13485  if test "x$ac_ct_OTOOL64" = x; then
13486    OTOOL64=":"
13487  else
13488    case $cross_compiling:$ac_tool_warned in
13489yes:)
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13492ac_tool_warned=yes ;;
13493esac
13494    OTOOL64=$ac_ct_OTOOL64
13495  fi
13496else
13497  OTOOL64="$ac_cv_prog_OTOOL64"
13498fi
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13527$as_echo_n "checking for -single_module linker flag... " >&6; }
13528if ${lt_cv_apple_cc_single_mod+:} false; then :
13529  $as_echo_n "(cached) " >&6
13530else
13531  lt_cv_apple_cc_single_mod=no
13532      if test -z "${LT_MULTI_MODULE}"; then
13533	# By default we will add the -single_module flag. You can override
13534	# by either setting the environment variable LT_MULTI_MODULE
13535	# non-empty at configure time, or by adding -multi_module to the
13536	# link flags.
13537	rm -rf libconftest.dylib*
13538	echo "int foo(void){return 1;}" > conftest.c
13539	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13540-dynamiclib -Wl,-single_module conftest.c" >&5
13541	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13542	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13543        _lt_result=$?
13544	# If there is a non-empty error log, and "single_module"
13545	# appears in it, assume the flag caused a linker warning
13546        if test -s conftest.err && $GREP single_module conftest.err; then
13547	  cat conftest.err >&5
13548	# Otherwise, if the output was created with a 0 exit code from
13549	# the compiler, it worked.
13550	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13551	  lt_cv_apple_cc_single_mod=yes
13552	else
13553	  cat conftest.err >&5
13554	fi
13555	rm -rf libconftest.dylib*
13556	rm -f conftest.*
13557      fi
13558fi
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13560$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13561
13562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13563$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13564if ${lt_cv_ld_exported_symbols_list+:} false; then :
13565  $as_echo_n "(cached) " >&6
13566else
13567  lt_cv_ld_exported_symbols_list=no
13568      save_LDFLAGS=$LDFLAGS
13569      echo "_main" > conftest.sym
13570      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13571      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572/* end confdefs.h.  */
13573
13574int
13575main ()
13576{
13577
13578  ;
13579  return 0;
13580}
13581_ACEOF
13582if ac_fn_c_try_link "$LINENO"; then :
13583  lt_cv_ld_exported_symbols_list=yes
13584else
13585  lt_cv_ld_exported_symbols_list=no
13586fi
13587rm -f core conftest.err conftest.$ac_objext \
13588    conftest$ac_exeext conftest.$ac_ext
13589	LDFLAGS="$save_LDFLAGS"
13590
13591fi
13592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13593$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13594
13595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13596$as_echo_n "checking for -force_load linker flag... " >&6; }
13597if ${lt_cv_ld_force_load+:} false; then :
13598  $as_echo_n "(cached) " >&6
13599else
13600  lt_cv_ld_force_load=no
13601      cat > conftest.c << _LT_EOF
13602int forced_loaded() { return 2;}
13603_LT_EOF
13604      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13605      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13606      echo "$AR cru libconftest.a conftest.o" >&5
13607      $AR cru libconftest.a conftest.o 2>&5
13608      echo "$RANLIB libconftest.a" >&5
13609      $RANLIB libconftest.a 2>&5
13610      cat > conftest.c << _LT_EOF
13611int main() { return 0;}
13612_LT_EOF
13613      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13614      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13615      _lt_result=$?
13616      if test -s conftest.err && $GREP force_load conftest.err; then
13617	cat conftest.err >&5
13618      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13619	lt_cv_ld_force_load=yes
13620      else
13621	cat conftest.err >&5
13622      fi
13623        rm -f conftest.err libconftest.a conftest conftest.c
13624        rm -rf conftest.dSYM
13625
13626fi
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13628$as_echo "$lt_cv_ld_force_load" >&6; }
13629    case $host_os in
13630    rhapsody* | darwin1.[012])
13631      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13632    darwin1.*)
13633      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13634    darwin*) # darwin 5.x on
13635      # if running on 10.5 or later, the deployment target defaults
13636      # to the OS version, if on x86, and 10.4, the deployment
13637      # target defaults to 10.4. Don't you love it?
13638      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13639	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13640	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13641	10.[012]*)
13642	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13643	10.*)
13644	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13645      esac
13646    ;;
13647  esac
13648    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13649      _lt_dar_single_mod='$single_module'
13650    fi
13651    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13652      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13653    else
13654      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13655    fi
13656    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13657      _lt_dsymutil='~$DSYMUTIL $lib || :'
13658    else
13659      _lt_dsymutil=
13660    fi
13661    ;;
13662  esac
13663
13664for ac_header in dlfcn.h
13665do :
13666  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13667"
13668if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13669  cat >>confdefs.h <<_ACEOF
13670#define HAVE_DLFCN_H 1
13671_ACEOF
13672
13673fi
13674
13675done
13676
13677
13678
13679
13680
13681# Set options
13682
13683
13684
13685        enable_dlopen=no
13686
13687
13688  enable_win32_dll=no
13689
13690
13691            # Check whether --enable-shared was given.
13692if test "${enable_shared+set}" = set; then :
13693  enableval=$enable_shared; p=${PACKAGE-default}
13694    case $enableval in
13695    yes) enable_shared=yes ;;
13696    no) enable_shared=no ;;
13697    *)
13698      enable_shared=no
13699      # Look at the argument we got.  We use all the common list separators.
13700      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13701      for pkg in $enableval; do
13702	IFS="$lt_save_ifs"
13703	if test "X$pkg" = "X$p"; then
13704	  enable_shared=yes
13705	fi
13706      done
13707      IFS="$lt_save_ifs"
13708      ;;
13709    esac
13710else
13711  enable_shared=yes
13712fi
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724# Check whether --with-pic was given.
13725if test "${with_pic+set}" = set; then :
13726  withval=$with_pic; lt_p=${PACKAGE-default}
13727    case $withval in
13728    yes|no) pic_mode=$withval ;;
13729    *)
13730      pic_mode=default
13731      # Look at the argument we got.  We use all the common list separators.
13732      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13733      for lt_pkg in $withval; do
13734	IFS="$lt_save_ifs"
13735	if test "X$lt_pkg" = "X$lt_p"; then
13736	  pic_mode=yes
13737	fi
13738      done
13739      IFS="$lt_save_ifs"
13740      ;;
13741    esac
13742else
13743  pic_mode=default
13744fi
13745
13746
13747test -z "$pic_mode" && pic_mode=default
13748
13749
13750
13751
13752
13753
13754
13755  # Check whether --enable-fast-install was given.
13756if test "${enable_fast_install+set}" = set; then :
13757  enableval=$enable_fast_install; p=${PACKAGE-default}
13758    case $enableval in
13759    yes) enable_fast_install=yes ;;
13760    no) enable_fast_install=no ;;
13761    *)
13762      enable_fast_install=no
13763      # Look at the argument we got.  We use all the common list separators.
13764      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13765      for pkg in $enableval; do
13766	IFS="$lt_save_ifs"
13767	if test "X$pkg" = "X$p"; then
13768	  enable_fast_install=yes
13769	fi
13770      done
13771      IFS="$lt_save_ifs"
13772      ;;
13773    esac
13774else
13775  enable_fast_install=yes
13776fi
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788# This can be used to rebuild libtool when needed
13789LIBTOOL_DEPS="$ltmain"
13790
13791# Always use our own libtool.
13792LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823test -z "$LN_S" && LN_S="ln -s"
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838if test -n "${ZSH_VERSION+set}" ; then
13839   setopt NO_GLOB_SUBST
13840fi
13841
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13843$as_echo_n "checking for objdir... " >&6; }
13844if ${lt_cv_objdir+:} false; then :
13845  $as_echo_n "(cached) " >&6
13846else
13847  rm -f .libs 2>/dev/null
13848mkdir .libs 2>/dev/null
13849if test -d .libs; then
13850  lt_cv_objdir=.libs
13851else
13852  # MS-DOS does not allow filenames that begin with a dot.
13853  lt_cv_objdir=_libs
13854fi
13855rmdir .libs 2>/dev/null
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13858$as_echo "$lt_cv_objdir" >&6; }
13859objdir=$lt_cv_objdir
13860
13861
13862
13863
13864
13865cat >>confdefs.h <<_ACEOF
13866#define LT_OBJDIR "$lt_cv_objdir/"
13867_ACEOF
13868
13869
13870
13871
13872case $host_os in
13873aix3*)
13874  # AIX sometimes has problems with the GCC collect2 program.  For some
13875  # reason, if we set the COLLECT_NAMES environment variable, the problems
13876  # vanish in a puff of smoke.
13877  if test "X${COLLECT_NAMES+set}" != Xset; then
13878    COLLECT_NAMES=
13879    export COLLECT_NAMES
13880  fi
13881  ;;
13882esac
13883
13884# Global variables:
13885ofile=libtool
13886can_build_shared=yes
13887
13888# All known linkers require a `.a' archive for static linking (except MSVC,
13889# which needs '.lib').
13890libext=a
13891
13892with_gnu_ld="$lt_cv_prog_gnu_ld"
13893
13894old_CC="$CC"
13895old_CFLAGS="$CFLAGS"
13896
13897# Set sane defaults for various variables
13898test -z "$CC" && CC=cc
13899test -z "$LTCC" && LTCC=$CC
13900test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13901test -z "$LD" && LD=ld
13902test -z "$ac_objext" && ac_objext=o
13903
13904for cc_temp in $compiler""; do
13905  case $cc_temp in
13906    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13907    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13908    \-*) ;;
13909    *) break;;
13910  esac
13911done
13912cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13913
13914
13915# Only perform the check for file, if the check method requires it
13916test -z "$MAGIC_CMD" && MAGIC_CMD=file
13917case $deplibs_check_method in
13918file_magic*)
13919  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13920    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13921$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13922if ${lt_cv_path_MAGIC_CMD+:} false; then :
13923  $as_echo_n "(cached) " >&6
13924else
13925  case $MAGIC_CMD in
13926[\\/*] |  ?:[\\/]*)
13927  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13928  ;;
13929*)
13930  lt_save_MAGIC_CMD="$MAGIC_CMD"
13931  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13932  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13933  for ac_dir in $ac_dummy; do
13934    IFS="$lt_save_ifs"
13935    test -z "$ac_dir" && ac_dir=.
13936    if test -f $ac_dir/${ac_tool_prefix}file; then
13937      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13938      if test -n "$file_magic_test_file"; then
13939	case $deplibs_check_method in
13940	"file_magic "*)
13941	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13942	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13943	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13944	    $EGREP "$file_magic_regex" > /dev/null; then
13945	    :
13946	  else
13947	    cat <<_LT_EOF 1>&2
13948
13949*** Warning: the command libtool uses to detect shared libraries,
13950*** $file_magic_cmd, produces output that libtool cannot recognize.
13951*** The result is that libtool may fail to recognize shared libraries
13952*** as such.  This will affect the creation of libtool libraries that
13953*** depend on shared libraries, but programs linked with such libtool
13954*** libraries will work regardless of this problem.  Nevertheless, you
13955*** may want to report the problem to your system manager and/or to
13956*** bug-libtool@gnu.org
13957
13958_LT_EOF
13959	  fi ;;
13960	esac
13961      fi
13962      break
13963    fi
13964  done
13965  IFS="$lt_save_ifs"
13966  MAGIC_CMD="$lt_save_MAGIC_CMD"
13967  ;;
13968esac
13969fi
13970
13971MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13972if test -n "$MAGIC_CMD"; then
13973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13974$as_echo "$MAGIC_CMD" >&6; }
13975else
13976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977$as_echo "no" >&6; }
13978fi
13979
13980
13981
13982
13983
13984if test -z "$lt_cv_path_MAGIC_CMD"; then
13985  if test -n "$ac_tool_prefix"; then
13986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13987$as_echo_n "checking for file... " >&6; }
13988if ${lt_cv_path_MAGIC_CMD+:} false; then :
13989  $as_echo_n "(cached) " >&6
13990else
13991  case $MAGIC_CMD in
13992[\\/*] |  ?:[\\/]*)
13993  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13994  ;;
13995*)
13996  lt_save_MAGIC_CMD="$MAGIC_CMD"
13997  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13998  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13999  for ac_dir in $ac_dummy; do
14000    IFS="$lt_save_ifs"
14001    test -z "$ac_dir" && ac_dir=.
14002    if test -f $ac_dir/file; then
14003      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14004      if test -n "$file_magic_test_file"; then
14005	case $deplibs_check_method in
14006	"file_magic "*)
14007	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14008	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14009	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14010	    $EGREP "$file_magic_regex" > /dev/null; then
14011	    :
14012	  else
14013	    cat <<_LT_EOF 1>&2
14014
14015*** Warning: the command libtool uses to detect shared libraries,
14016*** $file_magic_cmd, produces output that libtool cannot recognize.
14017*** The result is that libtool may fail to recognize shared libraries
14018*** as such.  This will affect the creation of libtool libraries that
14019*** depend on shared libraries, but programs linked with such libtool
14020*** libraries will work regardless of this problem.  Nevertheless, you
14021*** may want to report the problem to your system manager and/or to
14022*** bug-libtool@gnu.org
14023
14024_LT_EOF
14025	  fi ;;
14026	esac
14027      fi
14028      break
14029    fi
14030  done
14031  IFS="$lt_save_ifs"
14032  MAGIC_CMD="$lt_save_MAGIC_CMD"
14033  ;;
14034esac
14035fi
14036
14037MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14038if test -n "$MAGIC_CMD"; then
14039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14040$as_echo "$MAGIC_CMD" >&6; }
14041else
14042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043$as_echo "no" >&6; }
14044fi
14045
14046
14047  else
14048    MAGIC_CMD=:
14049  fi
14050fi
14051
14052  fi
14053  ;;
14054esac
14055
14056# Use C for the default configuration in the libtool script
14057
14058lt_save_CC="$CC"
14059ac_ext=c
14060ac_cpp='$CPP $CPPFLAGS'
14061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14063ac_compiler_gnu=$ac_cv_c_compiler_gnu
14064
14065
14066# Source file extension for C test sources.
14067ac_ext=c
14068
14069# Object file extension for compiled C test sources.
14070objext=o
14071objext=$objext
14072
14073# Code to be used in simple compile tests
14074lt_simple_compile_test_code="int some_variable = 0;"
14075
14076# Code to be used in simple link tests
14077lt_simple_link_test_code='int main(){return(0);}'
14078
14079
14080
14081
14082
14083
14084
14085# If no C compiler was specified, use CC.
14086LTCC=${LTCC-"$CC"}
14087
14088# If no C compiler flags were specified, use CFLAGS.
14089LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14090
14091# Allow CC to be a program name with arguments.
14092compiler=$CC
14093
14094# Save the default compiler, since it gets overwritten when the other
14095# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14096compiler_DEFAULT=$CC
14097
14098# save warnings/boilerplate of simple test code
14099ac_outfile=conftest.$ac_objext
14100echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14101eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14102_lt_compiler_boilerplate=`cat conftest.err`
14103$RM conftest*
14104
14105ac_outfile=conftest.$ac_objext
14106echo "$lt_simple_link_test_code" >conftest.$ac_ext
14107eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14108_lt_linker_boilerplate=`cat conftest.err`
14109$RM -r conftest*
14110
14111
14112if test -n "$compiler"; then
14113
14114lt_prog_compiler_no_builtin_flag=
14115
14116if test "$GCC" = yes; then
14117  case $cc_basename in
14118  nvcc*)
14119    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14120  *)
14121    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14122  esac
14123
14124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14125$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14126if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14127  $as_echo_n "(cached) " >&6
14128else
14129  lt_cv_prog_compiler_rtti_exceptions=no
14130   ac_outfile=conftest.$ac_objext
14131   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14132   lt_compiler_flag="-fno-rtti -fno-exceptions"
14133   # Insert the option either (1) after the last *FLAGS variable, or
14134   # (2) before a word containing "conftest.", or (3) at the end.
14135   # Note that $ac_compile itself does not contain backslashes and begins
14136   # with a dollar sign (not a hyphen), so the echo should work correctly.
14137   # The option is referenced via a variable to avoid confusing sed.
14138   lt_compile=`echo "$ac_compile" | $SED \
14139   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14140   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14141   -e 's:$: $lt_compiler_flag:'`
14142   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14143   (eval "$lt_compile" 2>conftest.err)
14144   ac_status=$?
14145   cat conftest.err >&5
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   if (exit $ac_status) && test -s "$ac_outfile"; then
14148     # The compiler can only warn and ignore the option if not recognized
14149     # So say no if there are warnings other than the usual output.
14150     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14151     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14152     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14153       lt_cv_prog_compiler_rtti_exceptions=yes
14154     fi
14155   fi
14156   $RM conftest*
14157
14158fi
14159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14160$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14161
14162if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14163    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14164else
14165    :
14166fi
14167
14168fi
14169
14170
14171
14172
14173
14174
14175  lt_prog_compiler_wl=
14176lt_prog_compiler_pic=
14177lt_prog_compiler_static=
14178
14179
14180  if test "$GCC" = yes; then
14181    lt_prog_compiler_wl='-Wl,'
14182    lt_prog_compiler_static='-static'
14183
14184    case $host_os in
14185      aix*)
14186      # All AIX code is PIC.
14187      if test "$host_cpu" = ia64; then
14188	# AIX 5 now supports IA64 processor
14189	lt_prog_compiler_static='-Bstatic'
14190      fi
14191      ;;
14192
14193    amigaos*)
14194      case $host_cpu in
14195      powerpc)
14196            # see comment about AmigaOS4 .so support
14197            lt_prog_compiler_pic='-fPIC'
14198        ;;
14199      m68k)
14200            # FIXME: we need at least 68020 code to build shared libraries, but
14201            # adding the `-m68020' flag to GCC prevents building anything better,
14202            # like `-m68040'.
14203            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14204        ;;
14205      esac
14206      ;;
14207
14208    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14209      # PIC is the default for these OSes.
14210      ;;
14211
14212    mingw* | cygwin* | pw32* | os2* | cegcc*)
14213      # This hack is so that the source file can tell whether it is being
14214      # built for inclusion in a dll (and should export symbols for example).
14215      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14216      # (--disable-auto-import) libraries
14217      lt_prog_compiler_pic='-DDLL_EXPORT'
14218      ;;
14219
14220    darwin* | rhapsody*)
14221      # PIC is the default on this platform
14222      # Common symbols not allowed in MH_DYLIB files
14223      lt_prog_compiler_pic='-fno-common'
14224      ;;
14225
14226    haiku*)
14227      # PIC is the default for Haiku.
14228      # The "-static" flag exists, but is broken.
14229      lt_prog_compiler_static=
14230      ;;
14231
14232    hpux*)
14233      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14234      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14235      # sets the default TLS model and affects inlining.
14236      case $host_cpu in
14237      hppa*64*)
14238	# +Z the default
14239	;;
14240      *)
14241	lt_prog_compiler_pic='-fPIC'
14242	;;
14243      esac
14244      ;;
14245
14246    interix[3-9]*)
14247      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14248      # Instead, we relocate shared libraries at runtime.
14249      ;;
14250
14251    msdosdjgpp*)
14252      # Just because we use GCC doesn't mean we suddenly get shared libraries
14253      # on systems that don't support them.
14254      lt_prog_compiler_can_build_shared=no
14255      enable_shared=no
14256      ;;
14257
14258    *nto* | *qnx*)
14259      # QNX uses GNU C++, but need to define -shared option too, otherwise
14260      # it will coredump.
14261      lt_prog_compiler_pic='-fPIC -shared'
14262      ;;
14263
14264    sysv4*MP*)
14265      if test -d /usr/nec; then
14266	lt_prog_compiler_pic=-Kconform_pic
14267      fi
14268      ;;
14269
14270    *)
14271      lt_prog_compiler_pic='-fPIC'
14272      ;;
14273    esac
14274
14275    case $cc_basename in
14276    nvcc*) # Cuda Compiler Driver 2.2
14277      lt_prog_compiler_wl='-Xlinker '
14278      if test -n "$lt_prog_compiler_pic"; then
14279        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14280      fi
14281      ;;
14282    esac
14283  else
14284    # PORTME Check for flag to pass linker flags through the system compiler.
14285    case $host_os in
14286    aix*)
14287      lt_prog_compiler_wl='-Wl,'
14288      if test "$host_cpu" = ia64; then
14289	# AIX 5 now supports IA64 processor
14290	lt_prog_compiler_static='-Bstatic'
14291      else
14292	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14293      fi
14294      ;;
14295
14296    mingw* | cygwin* | pw32* | os2* | cegcc*)
14297      # This hack is so that the source file can tell whether it is being
14298      # built for inclusion in a dll (and should export symbols for example).
14299      lt_prog_compiler_pic='-DDLL_EXPORT'
14300      ;;
14301
14302    hpux9* | hpux10* | hpux11*)
14303      lt_prog_compiler_wl='-Wl,'
14304      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14305      # not for PA HP-UX.
14306      case $host_cpu in
14307      hppa*64*|ia64*)
14308	# +Z the default
14309	;;
14310      *)
14311	lt_prog_compiler_pic='+Z'
14312	;;
14313      esac
14314      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14315      lt_prog_compiler_static='${wl}-a ${wl}archive'
14316      ;;
14317
14318    irix5* | irix6* | nonstopux*)
14319      lt_prog_compiler_wl='-Wl,'
14320      # PIC (with -KPIC) is the default.
14321      lt_prog_compiler_static='-non_shared'
14322      ;;
14323
14324    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14325      case $cc_basename in
14326      # old Intel for x86_64 which still supported -KPIC.
14327      ecc*)
14328	lt_prog_compiler_wl='-Wl,'
14329	lt_prog_compiler_pic='-KPIC'
14330	lt_prog_compiler_static='-static'
14331        ;;
14332      # icc used to be incompatible with GCC.
14333      # ICC 10 doesn't accept -KPIC any more.
14334      icc* | ifort*)
14335	lt_prog_compiler_wl='-Wl,'
14336	lt_prog_compiler_pic='-fPIC'
14337	lt_prog_compiler_static='-static'
14338        ;;
14339      # Lahey Fortran 8.1.
14340      lf95*)
14341	lt_prog_compiler_wl='-Wl,'
14342	lt_prog_compiler_pic='--shared'
14343	lt_prog_compiler_static='--static'
14344	;;
14345      nagfor*)
14346	# NAG Fortran compiler
14347	lt_prog_compiler_wl='-Wl,-Wl,,'
14348	lt_prog_compiler_pic='-PIC'
14349	lt_prog_compiler_static='-Bstatic'
14350	;;
14351      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14352        # Portland Group compilers (*not* the Pentium gcc compiler,
14353	# which looks to be a dead project)
14354	lt_prog_compiler_wl='-Wl,'
14355	lt_prog_compiler_pic='-fpic'
14356	lt_prog_compiler_static='-Bstatic'
14357        ;;
14358      ccc*)
14359        lt_prog_compiler_wl='-Wl,'
14360        # All Alpha code is PIC.
14361        lt_prog_compiler_static='-non_shared'
14362        ;;
14363      xl* | bgxl* | bgf* | mpixl*)
14364	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14365	lt_prog_compiler_wl='-Wl,'
14366	lt_prog_compiler_pic='-qpic'
14367	lt_prog_compiler_static='-qstaticlink'
14368	;;
14369      *)
14370	case `$CC -V 2>&1 | sed 5q` in
14371	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14372	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14373	  lt_prog_compiler_pic='-KPIC'
14374	  lt_prog_compiler_static='-Bstatic'
14375	  lt_prog_compiler_wl=''
14376	  ;;
14377	*Sun\ F* | *Sun*Fortran*)
14378	  lt_prog_compiler_pic='-KPIC'
14379	  lt_prog_compiler_static='-Bstatic'
14380	  lt_prog_compiler_wl='-Qoption ld '
14381	  ;;
14382	*Sun\ C*)
14383	  # Sun C 5.9
14384	  lt_prog_compiler_pic='-KPIC'
14385	  lt_prog_compiler_static='-Bstatic'
14386	  lt_prog_compiler_wl='-Wl,'
14387	  ;;
14388        *Intel*\ [CF]*Compiler*)
14389	  lt_prog_compiler_wl='-Wl,'
14390	  lt_prog_compiler_pic='-fPIC'
14391	  lt_prog_compiler_static='-static'
14392	  ;;
14393	*Portland\ Group*)
14394	  lt_prog_compiler_wl='-Wl,'
14395	  lt_prog_compiler_pic='-fpic'
14396	  lt_prog_compiler_static='-Bstatic'
14397	  ;;
14398	esac
14399	;;
14400      esac
14401      ;;
14402
14403    newsos6)
14404      lt_prog_compiler_pic='-KPIC'
14405      lt_prog_compiler_static='-Bstatic'
14406      ;;
14407
14408    *nto* | *qnx*)
14409      # QNX uses GNU C++, but need to define -shared option too, otherwise
14410      # it will coredump.
14411      lt_prog_compiler_pic='-fPIC -shared'
14412      ;;
14413
14414    osf3* | osf4* | osf5*)
14415      lt_prog_compiler_wl='-Wl,'
14416      # All OSF/1 code is PIC.
14417      lt_prog_compiler_static='-non_shared'
14418      ;;
14419
14420    rdos*)
14421      lt_prog_compiler_static='-non_shared'
14422      ;;
14423
14424    solaris*)
14425      lt_prog_compiler_pic='-KPIC'
14426      lt_prog_compiler_static='-Bstatic'
14427      case $cc_basename in
14428      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14429	lt_prog_compiler_wl='-Qoption ld ';;
14430      *)
14431	lt_prog_compiler_wl='-Wl,';;
14432      esac
14433      ;;
14434
14435    sunos4*)
14436      lt_prog_compiler_wl='-Qoption ld '
14437      lt_prog_compiler_pic='-PIC'
14438      lt_prog_compiler_static='-Bstatic'
14439      ;;
14440
14441    sysv4 | sysv4.2uw2* | sysv4.3*)
14442      lt_prog_compiler_wl='-Wl,'
14443      lt_prog_compiler_pic='-KPIC'
14444      lt_prog_compiler_static='-Bstatic'
14445      ;;
14446
14447    sysv4*MP*)
14448      if test -d /usr/nec ;then
14449	lt_prog_compiler_pic='-Kconform_pic'
14450	lt_prog_compiler_static='-Bstatic'
14451      fi
14452      ;;
14453
14454    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14455      lt_prog_compiler_wl='-Wl,'
14456      lt_prog_compiler_pic='-KPIC'
14457      lt_prog_compiler_static='-Bstatic'
14458      ;;
14459
14460    unicos*)
14461      lt_prog_compiler_wl='-Wl,'
14462      lt_prog_compiler_can_build_shared=no
14463      ;;
14464
14465    uts4*)
14466      lt_prog_compiler_pic='-pic'
14467      lt_prog_compiler_static='-Bstatic'
14468      ;;
14469
14470    *)
14471      lt_prog_compiler_can_build_shared=no
14472      ;;
14473    esac
14474  fi
14475
14476case $host_os in
14477  # For platforms which do not support PIC, -DPIC is meaningless:
14478  *djgpp*)
14479    lt_prog_compiler_pic=
14480    ;;
14481  *)
14482    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14483    ;;
14484esac
14485
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14487$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14488if ${lt_cv_prog_compiler_pic+:} false; then :
14489  $as_echo_n "(cached) " >&6
14490else
14491  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14492fi
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14494$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14495lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14496
14497#
14498# Check to make sure the PIC flag actually works.
14499#
14500if test -n "$lt_prog_compiler_pic"; then
14501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14502$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14503if ${lt_cv_prog_compiler_pic_works+:} false; then :
14504  $as_echo_n "(cached) " >&6
14505else
14506  lt_cv_prog_compiler_pic_works=no
14507   ac_outfile=conftest.$ac_objext
14508   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14509   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14510   # Insert the option either (1) after the last *FLAGS variable, or
14511   # (2) before a word containing "conftest.", or (3) at the end.
14512   # Note that $ac_compile itself does not contain backslashes and begins
14513   # with a dollar sign (not a hyphen), so the echo should work correctly.
14514   # The option is referenced via a variable to avoid confusing sed.
14515   lt_compile=`echo "$ac_compile" | $SED \
14516   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14517   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14518   -e 's:$: $lt_compiler_flag:'`
14519   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14520   (eval "$lt_compile" 2>conftest.err)
14521   ac_status=$?
14522   cat conftest.err >&5
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   if (exit $ac_status) && test -s "$ac_outfile"; then
14525     # The compiler can only warn and ignore the option if not recognized
14526     # So say no if there are warnings other than the usual output.
14527     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14528     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14529     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14530       lt_cv_prog_compiler_pic_works=yes
14531     fi
14532   fi
14533   $RM conftest*
14534
14535fi
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14537$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14538
14539if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14540    case $lt_prog_compiler_pic in
14541     "" | " "*) ;;
14542     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14543     esac
14544else
14545    lt_prog_compiler_pic=
14546     lt_prog_compiler_can_build_shared=no
14547fi
14548
14549fi
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561#
14562# Check to make sure the static flag actually works.
14563#
14564wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14566$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14567if ${lt_cv_prog_compiler_static_works+:} false; then :
14568  $as_echo_n "(cached) " >&6
14569else
14570  lt_cv_prog_compiler_static_works=no
14571   save_LDFLAGS="$LDFLAGS"
14572   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14573   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14574   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14575     # The linker can only warn and ignore the option if not recognized
14576     # So say no if there are warnings
14577     if test -s conftest.err; then
14578       # Append any errors to the config.log.
14579       cat conftest.err 1>&5
14580       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14581       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14582       if diff conftest.exp conftest.er2 >/dev/null; then
14583         lt_cv_prog_compiler_static_works=yes
14584       fi
14585     else
14586       lt_cv_prog_compiler_static_works=yes
14587     fi
14588   fi
14589   $RM -r conftest*
14590   LDFLAGS="$save_LDFLAGS"
14591
14592fi
14593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14594$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14595
14596if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14597    :
14598else
14599    lt_prog_compiler_static=
14600fi
14601
14602
14603
14604
14605
14606
14607
14608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14609$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14610if ${lt_cv_prog_compiler_c_o+:} false; then :
14611  $as_echo_n "(cached) " >&6
14612else
14613  lt_cv_prog_compiler_c_o=no
14614   $RM -r conftest 2>/dev/null
14615   mkdir conftest
14616   cd conftest
14617   mkdir out
14618   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14619
14620   lt_compiler_flag="-o out/conftest2.$ac_objext"
14621   # Insert the option either (1) after the last *FLAGS variable, or
14622   # (2) before a word containing "conftest.", or (3) at the end.
14623   # Note that $ac_compile itself does not contain backslashes and begins
14624   # with a dollar sign (not a hyphen), so the echo should work correctly.
14625   lt_compile=`echo "$ac_compile" | $SED \
14626   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14627   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14628   -e 's:$: $lt_compiler_flag:'`
14629   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14630   (eval "$lt_compile" 2>out/conftest.err)
14631   ac_status=$?
14632   cat out/conftest.err >&5
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14635   then
14636     # The compiler can only warn and ignore the option if not recognized
14637     # So say no if there are warnings
14638     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14639     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14640     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14641       lt_cv_prog_compiler_c_o=yes
14642     fi
14643   fi
14644   chmod u+w . 2>&5
14645   $RM conftest*
14646   # SGI C++ compiler will create directory out/ii_files/ for
14647   # template instantiation
14648   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14649   $RM out/* && rmdir out
14650   cd ..
14651   $RM -r conftest
14652   $RM conftest*
14653
14654fi
14655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14656$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14657
14658
14659
14660
14661
14662
14663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14664$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14665if ${lt_cv_prog_compiler_c_o+:} false; then :
14666  $as_echo_n "(cached) " >&6
14667else
14668  lt_cv_prog_compiler_c_o=no
14669   $RM -r conftest 2>/dev/null
14670   mkdir conftest
14671   cd conftest
14672   mkdir out
14673   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14674
14675   lt_compiler_flag="-o out/conftest2.$ac_objext"
14676   # Insert the option either (1) after the last *FLAGS variable, or
14677   # (2) before a word containing "conftest.", or (3) at the end.
14678   # Note that $ac_compile itself does not contain backslashes and begins
14679   # with a dollar sign (not a hyphen), so the echo should work correctly.
14680   lt_compile=`echo "$ac_compile" | $SED \
14681   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14682   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14683   -e 's:$: $lt_compiler_flag:'`
14684   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14685   (eval "$lt_compile" 2>out/conftest.err)
14686   ac_status=$?
14687   cat out/conftest.err >&5
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14690   then
14691     # The compiler can only warn and ignore the option if not recognized
14692     # So say no if there are warnings
14693     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14694     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14695     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14696       lt_cv_prog_compiler_c_o=yes
14697     fi
14698   fi
14699   chmod u+w . 2>&5
14700   $RM conftest*
14701   # SGI C++ compiler will create directory out/ii_files/ for
14702   # template instantiation
14703   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14704   $RM out/* && rmdir out
14705   cd ..
14706   $RM -r conftest
14707   $RM conftest*
14708
14709fi
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14711$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14712
14713
14714
14715
14716hard_links="nottested"
14717if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14718  # do not overwrite the value of need_locks provided by the user
14719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14720$as_echo_n "checking if we can lock with hard links... " >&6; }
14721  hard_links=yes
14722  $RM conftest*
14723  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14724  touch conftest.a
14725  ln conftest.a conftest.b 2>&5 || hard_links=no
14726  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14728$as_echo "$hard_links" >&6; }
14729  if test "$hard_links" = no; then
14730    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14731$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14732    need_locks=warn
14733  fi
14734else
14735  need_locks=no
14736fi
14737
14738
14739
14740
14741
14742
14743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14744$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14745
14746  runpath_var=
14747  allow_undefined_flag=
14748  always_export_symbols=no
14749  archive_cmds=
14750  archive_expsym_cmds=
14751  compiler_needs_object=no
14752  enable_shared_with_static_runtimes=no
14753  export_dynamic_flag_spec=
14754  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14755  hardcode_automatic=no
14756  hardcode_direct=no
14757  hardcode_direct_absolute=no
14758  hardcode_libdir_flag_spec=
14759  hardcode_libdir_separator=
14760  hardcode_minus_L=no
14761  hardcode_shlibpath_var=unsupported
14762  inherit_rpath=no
14763  link_all_deplibs=unknown
14764  module_cmds=
14765  module_expsym_cmds=
14766  old_archive_from_new_cmds=
14767  old_archive_from_expsyms_cmds=
14768  thread_safe_flag_spec=
14769  whole_archive_flag_spec=
14770  # include_expsyms should be a list of space-separated symbols to be *always*
14771  # included in the symbol list
14772  include_expsyms=
14773  # exclude_expsyms can be an extended regexp of symbols to exclude
14774  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14775  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14776  # as well as any symbol that contains `d'.
14777  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14778  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14779  # platforms (ab)use it in PIC code, but their linkers get confused if
14780  # the symbol is explicitly referenced.  Since portable code cannot
14781  # rely on this symbol name, it's probably fine to never include it in
14782  # preloaded symbol tables.
14783  # Exclude shared library initialization/finalization symbols.
14784  extract_expsyms_cmds=
14785
14786  case $host_os in
14787  cygwin* | mingw* | pw32* | cegcc*)
14788    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14789    # When not using gcc, we currently assume that we are using
14790    # Microsoft Visual C++.
14791    if test "$GCC" != yes; then
14792      with_gnu_ld=no
14793    fi
14794    ;;
14795  interix*)
14796    # we just hope/assume this is gcc and not c89 (= MSVC++)
14797    with_gnu_ld=yes
14798    ;;
14799  openbsd*)
14800    with_gnu_ld=no
14801    ;;
14802  linux* | k*bsd*-gnu | gnu*)
14803    link_all_deplibs=no
14804    ;;
14805  esac
14806
14807  ld_shlibs=yes
14808
14809  # On some targets, GNU ld is compatible enough with the native linker
14810  # that we're better off using the native interface for both.
14811  lt_use_gnu_ld_interface=no
14812  if test "$with_gnu_ld" = yes; then
14813    case $host_os in
14814      aix*)
14815	# The AIX port of GNU ld has always aspired to compatibility
14816	# with the native linker.  However, as the warning in the GNU ld
14817	# block says, versions before 2.19.5* couldn't really create working
14818	# shared libraries, regardless of the interface used.
14819	case `$LD -v 2>&1` in
14820	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14821	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14822	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14823	  *)
14824	    lt_use_gnu_ld_interface=yes
14825	    ;;
14826	esac
14827	;;
14828      *)
14829	lt_use_gnu_ld_interface=yes
14830	;;
14831    esac
14832  fi
14833
14834  if test "$lt_use_gnu_ld_interface" = yes; then
14835    # If archive_cmds runs LD, not CC, wlarc should be empty
14836    wlarc='${wl}'
14837
14838    # Set some defaults for GNU ld with shared library support. These
14839    # are reset later if shared libraries are not supported. Putting them
14840    # here allows them to be overridden if necessary.
14841    runpath_var=LD_RUN_PATH
14842    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14843    export_dynamic_flag_spec='${wl}--export-dynamic'
14844    # ancient GNU ld didn't support --whole-archive et. al.
14845    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14846      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14847    else
14848      whole_archive_flag_spec=
14849    fi
14850    supports_anon_versioning=no
14851    case `$LD -v 2>&1` in
14852      *GNU\ gold*) supports_anon_versioning=yes ;;
14853      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14854      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14855      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14856      *\ 2.11.*) ;; # other 2.11 versions
14857      *) supports_anon_versioning=yes ;;
14858    esac
14859
14860    # See if GNU ld supports shared libraries.
14861    case $host_os in
14862    aix[3-9]*)
14863      # On AIX/PPC, the GNU linker is very broken
14864      if test "$host_cpu" != ia64; then
14865	ld_shlibs=no
14866	cat <<_LT_EOF 1>&2
14867
14868*** Warning: the GNU linker, at least up to release 2.19, is reported
14869*** to be unable to reliably create shared libraries on AIX.
14870*** Therefore, libtool is disabling shared libraries support.  If you
14871*** really care for shared libraries, you may want to install binutils
14872*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14873*** You will then need to restart the configuration process.
14874
14875_LT_EOF
14876      fi
14877      ;;
14878
14879    amigaos*)
14880      case $host_cpu in
14881      powerpc)
14882            # see comment about AmigaOS4 .so support
14883            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14884            archive_expsym_cmds=''
14885        ;;
14886      m68k)
14887            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)'
14888            hardcode_libdir_flag_spec='-L$libdir'
14889            hardcode_minus_L=yes
14890        ;;
14891      esac
14892      ;;
14893
14894    beos*)
14895      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14896	allow_undefined_flag=unsupported
14897	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14898	# support --undefined.  This deserves some investigation.  FIXME
14899	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14900      else
14901	ld_shlibs=no
14902      fi
14903      ;;
14904
14905    cygwin* | mingw* | pw32* | cegcc*)
14906      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14907      # as there is no search path for DLLs.
14908      hardcode_libdir_flag_spec='-L$libdir'
14909      export_dynamic_flag_spec='${wl}--export-all-symbols'
14910      allow_undefined_flag=unsupported
14911      always_export_symbols=no
14912      enable_shared_with_static_runtimes=yes
14913      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'
14914      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14915
14916      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14917        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14918	# If the export-symbols file already is a .def file (1st line
14919	# is EXPORTS), use it as is; otherwise, prepend...
14920	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14921	  cp $export_symbols $output_objdir/$soname.def;
14922	else
14923	  echo EXPORTS > $output_objdir/$soname.def;
14924	  cat $export_symbols >> $output_objdir/$soname.def;
14925	fi~
14926	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14927      else
14928	ld_shlibs=no
14929      fi
14930      ;;
14931
14932    haiku*)
14933      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14934      link_all_deplibs=yes
14935      ;;
14936
14937    interix[3-9]*)
14938      hardcode_direct=no
14939      hardcode_shlibpath_var=no
14940      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14941      export_dynamic_flag_spec='${wl}-E'
14942      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14943      # Instead, shared libraries are loaded at an image base (0x10000000 by
14944      # default) and relocated if they conflict, which is a slow very memory
14945      # consuming and fragmenting process.  To avoid this, we pick a random,
14946      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14947      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14948      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14949      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'
14950      ;;
14951
14952    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14953      tmp_diet=no
14954      if test "$host_os" = linux-dietlibc; then
14955	case $cc_basename in
14956	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14957	esac
14958      fi
14959      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14960	 && test "$tmp_diet" = no
14961      then
14962	tmp_addflag=' $pic_flag'
14963	tmp_sharedflag='-shared'
14964	case $cc_basename,$host_cpu in
14965        pgcc*)				# Portland Group C compiler
14966	  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'
14967	  tmp_addflag=' $pic_flag'
14968	  ;;
14969	pgf77* | pgf90* | pgf95* | pgfortran*)
14970					# Portland Group f77 and f90 compilers
14971	  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'
14972	  tmp_addflag=' $pic_flag -Mnomain' ;;
14973	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14974	  tmp_addflag=' -i_dynamic' ;;
14975	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14976	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14977	ifc* | ifort*)			# Intel Fortran compiler
14978	  tmp_addflag=' -nofor_main' ;;
14979	lf95*)				# Lahey Fortran 8.1
14980	  whole_archive_flag_spec=
14981	  tmp_sharedflag='--shared' ;;
14982	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14983	  tmp_sharedflag='-qmkshrobj'
14984	  tmp_addflag= ;;
14985	nvcc*)	# Cuda Compiler Driver 2.2
14986	  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'
14987	  compiler_needs_object=yes
14988	  ;;
14989	esac
14990	case `$CC -V 2>&1 | sed 5q` in
14991	*Sun\ C*)			# Sun C 5.9
14992	  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'
14993	  compiler_needs_object=yes
14994	  tmp_sharedflag='-G' ;;
14995	*Sun\ F*)			# Sun Fortran 8.3
14996	  tmp_sharedflag='-G' ;;
14997	esac
14998	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14999
15000        if test "x$supports_anon_versioning" = xyes; then
15001          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15002	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15003	    echo "local: *; };" >> $output_objdir/$libname.ver~
15004	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15005        fi
15006
15007	case $cc_basename in
15008	xlf* | bgf* | bgxlf* | mpixlf*)
15009	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15010	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15011	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15012	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15013	  if test "x$supports_anon_versioning" = xyes; then
15014	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15015	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15016	      echo "local: *; };" >> $output_objdir/$libname.ver~
15017	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15018	  fi
15019	  ;;
15020	esac
15021      else
15022        ld_shlibs=no
15023      fi
15024      ;;
15025
15026    netbsd* | netbsdelf*-gnu)
15027      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15028	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15029	wlarc=
15030      else
15031	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15032	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15033      fi
15034      ;;
15035
15036    solaris*)
15037      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15038	ld_shlibs=no
15039	cat <<_LT_EOF 1>&2
15040
15041*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15042*** create shared libraries on Solaris systems.  Therefore, libtool
15043*** is disabling shared libraries support.  We urge you to upgrade GNU
15044*** binutils to release 2.9.1 or newer.  Another option is to modify
15045*** your PATH or compiler configuration so that the native linker is
15046*** used, and then restart.
15047
15048_LT_EOF
15049      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15050	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15051	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15052      else
15053	ld_shlibs=no
15054      fi
15055      ;;
15056
15057    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15058      case `$LD -v 2>&1` in
15059        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15060	ld_shlibs=no
15061	cat <<_LT_EOF 1>&2
15062
15063*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15064*** reliably create shared libraries on SCO systems.  Therefore, libtool
15065*** is disabling shared libraries support.  We urge you to upgrade GNU
15066*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15067*** your PATH or compiler configuration so that the native linker is
15068*** used, and then restart.
15069
15070_LT_EOF
15071	;;
15072	*)
15073	  # For security reasons, it is highly recommended that you always
15074	  # use absolute paths for naming shared libraries, and exclude the
15075	  # DT_RUNPATH tag from executables and libraries.  But doing so
15076	  # requires that you compile everything twice, which is a pain.
15077	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15078	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15079	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15081	  else
15082	    ld_shlibs=no
15083	  fi
15084	;;
15085      esac
15086      ;;
15087
15088    sunos4*)
15089      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090      wlarc=
15091      hardcode_direct=yes
15092      hardcode_shlibpath_var=no
15093      ;;
15094
15095    *)
15096      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15097	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15098	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15099      else
15100	ld_shlibs=no
15101      fi
15102      ;;
15103    esac
15104
15105    if test "$ld_shlibs" = no; then
15106      runpath_var=
15107      hardcode_libdir_flag_spec=
15108      export_dynamic_flag_spec=
15109      whole_archive_flag_spec=
15110    fi
15111  else
15112    # PORTME fill in a description of your system's linker (not GNU ld)
15113    case $host_os in
15114    aix3*)
15115      allow_undefined_flag=unsupported
15116      always_export_symbols=yes
15117      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'
15118      # Note: this linker hardcodes the directories in LIBPATH if there
15119      # are no directories specified by -L.
15120      hardcode_minus_L=yes
15121      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15122	# Neither direct hardcoding nor static linking is supported with a
15123	# broken collect2.
15124	hardcode_direct=unsupported
15125      fi
15126      ;;
15127
15128    aix[4-9]*)
15129      if test "$host_cpu" = ia64; then
15130	# On IA64, the linker does run time linking by default, so we don't
15131	# have to do anything special.
15132	aix_use_runtimelinking=no
15133	exp_sym_flag='-Bexport'
15134	no_entry_flag=""
15135      else
15136	# If we're using GNU nm, then we don't want the "-C" option.
15137	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15138	# Also, AIX nm treats weak defined symbols like other global
15139	# defined symbols, whereas GNU nm marks them as "W".
15140	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15141	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15142	else
15143	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15144	fi
15145	aix_use_runtimelinking=no
15146
15147	# Test if we are trying to use run time linking or normal
15148	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15149	# need to do runtime linking.
15150	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15151	  for ld_flag in $LDFLAGS; do
15152	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15153	    aix_use_runtimelinking=yes
15154	    break
15155	  fi
15156	  done
15157	  ;;
15158	esac
15159
15160	exp_sym_flag='-bexport'
15161	no_entry_flag='-bnoentry'
15162      fi
15163
15164      # When large executables or shared objects are built, AIX ld can
15165      # have problems creating the table of contents.  If linking a library
15166      # or program results in "error TOC overflow" add -mminimal-toc to
15167      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15168      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15169
15170      archive_cmds=''
15171      hardcode_direct=yes
15172      hardcode_direct_absolute=yes
15173      hardcode_libdir_separator=':'
15174      link_all_deplibs=yes
15175      file_list_spec='${wl}-f,'
15176
15177      if test "$GCC" = yes; then
15178	case $host_os in aix4.[012]|aix4.[012].*)
15179	# We only want to do this on AIX 4.2 and lower, the check
15180	# below for broken collect2 doesn't work under 4.3+
15181	  collect2name=`${CC} -print-prog-name=collect2`
15182	  if test -f "$collect2name" &&
15183	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15184	  then
15185	  # We have reworked collect2
15186	  :
15187	  else
15188	  # We have old collect2
15189	  hardcode_direct=unsupported
15190	  # It fails to find uninstalled libraries when the uninstalled
15191	  # path is not listed in the libpath.  Setting hardcode_minus_L
15192	  # to unsupported forces relinking
15193	  hardcode_minus_L=yes
15194	  hardcode_libdir_flag_spec='-L$libdir'
15195	  hardcode_libdir_separator=
15196	  fi
15197	  ;;
15198	esac
15199	shared_flag='-shared'
15200	if test "$aix_use_runtimelinking" = yes; then
15201	  shared_flag="$shared_flag "'${wl}-G'
15202	fi
15203	link_all_deplibs=no
15204      else
15205	# not using gcc
15206	if test "$host_cpu" = ia64; then
15207	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15208	# chokes on -Wl,-G. The following line is correct:
15209	  shared_flag='-G'
15210	else
15211	  if test "$aix_use_runtimelinking" = yes; then
15212	    shared_flag='${wl}-G'
15213	  else
15214	    shared_flag='${wl}-bM:SRE'
15215	  fi
15216	fi
15217      fi
15218
15219      export_dynamic_flag_spec='${wl}-bexpall'
15220      # It seems that -bexpall does not export symbols beginning with
15221      # underscore (_), so it is better to generate a list of symbols to export.
15222      always_export_symbols=yes
15223      if test "$aix_use_runtimelinking" = yes; then
15224	# Warning - without using the other runtime loading flags (-brtl),
15225	# -berok will link without error, but may produce a broken library.
15226	allow_undefined_flag='-berok'
15227        # Determine the default libpath from the value encoded in an
15228        # empty executable.
15229        if test "${lt_cv_aix_libpath+set}" = set; then
15230  aix_libpath=$lt_cv_aix_libpath
15231else
15232  if ${lt_cv_aix_libpath_+:} false; then :
15233  $as_echo_n "(cached) " >&6
15234else
15235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236/* end confdefs.h.  */
15237
15238int
15239main ()
15240{
15241
15242  ;
15243  return 0;
15244}
15245_ACEOF
15246if ac_fn_c_try_link "$LINENO"; then :
15247
15248  lt_aix_libpath_sed='
15249      /Import File Strings/,/^$/ {
15250	  /^0/ {
15251	      s/^0  *\([^ ]*\) *$/\1/
15252	      p
15253	  }
15254      }'
15255  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15256  # Check for a 64-bit object if we didn't find anything.
15257  if test -z "$lt_cv_aix_libpath_"; then
15258    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15259  fi
15260fi
15261rm -f core conftest.err conftest.$ac_objext \
15262    conftest$ac_exeext conftest.$ac_ext
15263  if test -z "$lt_cv_aix_libpath_"; then
15264    lt_cv_aix_libpath_="/usr/lib:/lib"
15265  fi
15266
15267fi
15268
15269  aix_libpath=$lt_cv_aix_libpath_
15270fi
15271
15272        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15273        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15274      else
15275	if test "$host_cpu" = ia64; then
15276	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15277	  allow_undefined_flag="-z nodefs"
15278	  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"
15279	else
15280	 # Determine the default libpath from the value encoded in an
15281	 # empty executable.
15282	 if test "${lt_cv_aix_libpath+set}" = set; then
15283  aix_libpath=$lt_cv_aix_libpath
15284else
15285  if ${lt_cv_aix_libpath_+:} false; then :
15286  $as_echo_n "(cached) " >&6
15287else
15288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289/* end confdefs.h.  */
15290
15291int
15292main ()
15293{
15294
15295  ;
15296  return 0;
15297}
15298_ACEOF
15299if ac_fn_c_try_link "$LINENO"; then :
15300
15301  lt_aix_libpath_sed='
15302      /Import File Strings/,/^$/ {
15303	  /^0/ {
15304	      s/^0  *\([^ ]*\) *$/\1/
15305	      p
15306	  }
15307      }'
15308  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15309  # Check for a 64-bit object if we didn't find anything.
15310  if test -z "$lt_cv_aix_libpath_"; then
15311    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15312  fi
15313fi
15314rm -f core conftest.err conftest.$ac_objext \
15315    conftest$ac_exeext conftest.$ac_ext
15316  if test -z "$lt_cv_aix_libpath_"; then
15317    lt_cv_aix_libpath_="/usr/lib:/lib"
15318  fi
15319
15320fi
15321
15322  aix_libpath=$lt_cv_aix_libpath_
15323fi
15324
15325	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15326	  # Warning - without using the other run time loading flags,
15327	  # -berok will link without error, but may produce a broken library.
15328	  no_undefined_flag=' ${wl}-bernotok'
15329	  allow_undefined_flag=' ${wl}-berok'
15330	  if test "$with_gnu_ld" = yes; then
15331	    # We only use this code for GNU lds that support --whole-archive.
15332	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15333	  else
15334	    # Exported symbols can be pulled into shared objects from archives
15335	    whole_archive_flag_spec='$convenience'
15336	  fi
15337	  archive_cmds_need_lc=yes
15338	  # This is similar to how AIX traditionally builds its shared libraries.
15339	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15340	fi
15341      fi
15342      ;;
15343
15344    amigaos*)
15345      case $host_cpu in
15346      powerpc)
15347            # see comment about AmigaOS4 .so support
15348            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15349            archive_expsym_cmds=''
15350        ;;
15351      m68k)
15352            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)'
15353            hardcode_libdir_flag_spec='-L$libdir'
15354            hardcode_minus_L=yes
15355        ;;
15356      esac
15357      ;;
15358
15359    bsdi[45]*)
15360      export_dynamic_flag_spec=-rdynamic
15361      ;;
15362
15363    cygwin* | mingw* | pw32* | cegcc*)
15364      # When not using gcc, we currently assume that we are using
15365      # Microsoft Visual C++.
15366      # hardcode_libdir_flag_spec is actually meaningless, as there is
15367      # no search path for DLLs.
15368      case $cc_basename in
15369      cl*)
15370	# Native MSVC
15371	hardcode_libdir_flag_spec=' '
15372	allow_undefined_flag=unsupported
15373	always_export_symbols=yes
15374	file_list_spec='@'
15375	# Tell ltmain to make .lib files, not .a files.
15376	libext=lib
15377	# Tell ltmain to make .dll files, not .so files.
15378	shrext_cmds=".dll"
15379	# FIXME: Setting linknames here is a bad hack.
15380	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15381	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15382	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15383	  else
15384	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15385	  fi~
15386	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15387	  linknames='
15388	# The linker will not automatically build a static lib if we build a DLL.
15389	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15390	enable_shared_with_static_runtimes=yes
15391	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15392	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15393	# Don't use ranlib
15394	old_postinstall_cmds='chmod 644 $oldlib'
15395	postlink_cmds='lt_outputfile="@OUTPUT@"~
15396	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15397	  case $lt_outputfile in
15398	    *.exe|*.EXE) ;;
15399	    *)
15400	      lt_outputfile="$lt_outputfile.exe"
15401	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15402	      ;;
15403	  esac~
15404	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15405	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15406	    $RM "$lt_outputfile.manifest";
15407	  fi'
15408	;;
15409      *)
15410	# Assume MSVC wrapper
15411	hardcode_libdir_flag_spec=' '
15412	allow_undefined_flag=unsupported
15413	# Tell ltmain to make .lib files, not .a files.
15414	libext=lib
15415	# Tell ltmain to make .dll files, not .so files.
15416	shrext_cmds=".dll"
15417	# FIXME: Setting linknames here is a bad hack.
15418	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15419	# The linker will automatically build a .lib file if we build a DLL.
15420	old_archive_from_new_cmds='true'
15421	# FIXME: Should let the user specify the lib program.
15422	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15423	enable_shared_with_static_runtimes=yes
15424	;;
15425      esac
15426      ;;
15427
15428    darwin* | rhapsody*)
15429
15430
15431  archive_cmds_need_lc=no
15432  hardcode_direct=no
15433  hardcode_automatic=yes
15434  hardcode_shlibpath_var=unsupported
15435  if test "$lt_cv_ld_force_load" = "yes"; then
15436    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\"`'
15437
15438  else
15439    whole_archive_flag_spec=''
15440  fi
15441  link_all_deplibs=yes
15442  allow_undefined_flag="$_lt_dar_allow_undefined"
15443  case $cc_basename in
15444     ifort*) _lt_dar_can_shared=yes ;;
15445     *) _lt_dar_can_shared=$GCC ;;
15446  esac
15447  if test "$_lt_dar_can_shared" = "yes"; then
15448    output_verbose_link_cmd=func_echo_all
15449    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15450    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15451    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}"
15452    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}"
15453
15454  else
15455  ld_shlibs=no
15456  fi
15457
15458      ;;
15459
15460    dgux*)
15461      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462      hardcode_libdir_flag_spec='-L$libdir'
15463      hardcode_shlibpath_var=no
15464      ;;
15465
15466    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15467    # support.  Future versions do this automatically, but an explicit c++rt0.o
15468    # does not break anything, and helps significantly (at the cost of a little
15469    # extra space).
15470    freebsd2.2*)
15471      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15472      hardcode_libdir_flag_spec='-R$libdir'
15473      hardcode_direct=yes
15474      hardcode_shlibpath_var=no
15475      ;;
15476
15477    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15478    freebsd2.*)
15479      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15480      hardcode_direct=yes
15481      hardcode_minus_L=yes
15482      hardcode_shlibpath_var=no
15483      ;;
15484
15485    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15486    freebsd* | dragonfly*)
15487      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15488      hardcode_libdir_flag_spec='-R$libdir'
15489      hardcode_direct=yes
15490      hardcode_shlibpath_var=no
15491      ;;
15492
15493    hpux9*)
15494      if test "$GCC" = yes; then
15495	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15496      else
15497	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15498      fi
15499      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15500      hardcode_libdir_separator=:
15501      hardcode_direct=yes
15502
15503      # hardcode_minus_L: Not really in the search PATH,
15504      # but as the default location of the library.
15505      hardcode_minus_L=yes
15506      export_dynamic_flag_spec='${wl}-E'
15507      ;;
15508
15509    hpux10*)
15510      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15511	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15512      else
15513	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15514      fi
15515      if test "$with_gnu_ld" = no; then
15516	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15517	hardcode_libdir_separator=:
15518	hardcode_direct=yes
15519	hardcode_direct_absolute=yes
15520	export_dynamic_flag_spec='${wl}-E'
15521	# hardcode_minus_L: Not really in the search PATH,
15522	# but as the default location of the library.
15523	hardcode_minus_L=yes
15524      fi
15525      ;;
15526
15527    hpux11*)
15528      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15529	case $host_cpu in
15530	hppa*64*)
15531	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15532	  ;;
15533	ia64*)
15534	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15535	  ;;
15536	*)
15537	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15538	  ;;
15539	esac
15540      else
15541	case $host_cpu in
15542	hppa*64*)
15543	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15544	  ;;
15545	ia64*)
15546	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15547	  ;;
15548	*)
15549
15550	  # Older versions of the 11.00 compiler do not understand -b yet
15551	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15552	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15553$as_echo_n "checking if $CC understands -b... " >&6; }
15554if ${lt_cv_prog_compiler__b+:} false; then :
15555  $as_echo_n "(cached) " >&6
15556else
15557  lt_cv_prog_compiler__b=no
15558   save_LDFLAGS="$LDFLAGS"
15559   LDFLAGS="$LDFLAGS -b"
15560   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15561   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15562     # The linker can only warn and ignore the option if not recognized
15563     # So say no if there are warnings
15564     if test -s conftest.err; then
15565       # Append any errors to the config.log.
15566       cat conftest.err 1>&5
15567       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15568       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15569       if diff conftest.exp conftest.er2 >/dev/null; then
15570         lt_cv_prog_compiler__b=yes
15571       fi
15572     else
15573       lt_cv_prog_compiler__b=yes
15574     fi
15575   fi
15576   $RM -r conftest*
15577   LDFLAGS="$save_LDFLAGS"
15578
15579fi
15580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15581$as_echo "$lt_cv_prog_compiler__b" >&6; }
15582
15583if test x"$lt_cv_prog_compiler__b" = xyes; then
15584    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15585else
15586    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15587fi
15588
15589	  ;;
15590	esac
15591      fi
15592      if test "$with_gnu_ld" = no; then
15593	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15594	hardcode_libdir_separator=:
15595
15596	case $host_cpu in
15597	hppa*64*|ia64*)
15598	  hardcode_direct=no
15599	  hardcode_shlibpath_var=no
15600	  ;;
15601	*)
15602	  hardcode_direct=yes
15603	  hardcode_direct_absolute=yes
15604	  export_dynamic_flag_spec='${wl}-E'
15605
15606	  # hardcode_minus_L: Not really in the search PATH,
15607	  # but as the default location of the library.
15608	  hardcode_minus_L=yes
15609	  ;;
15610	esac
15611      fi
15612      ;;
15613
15614    irix5* | irix6* | nonstopux*)
15615      if test "$GCC" = yes; then
15616	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'
15617	# Try to use the -exported_symbol ld option, if it does not
15618	# work, assume that -exports_file does not work either and
15619	# implicitly export all symbols.
15620	# This should be the same for all languages, so no per-tag cache variable.
15621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15622$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15623if ${lt_cv_irix_exported_symbol+:} false; then :
15624  $as_echo_n "(cached) " >&6
15625else
15626  save_LDFLAGS="$LDFLAGS"
15627	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15628	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h.  */
15630int foo (void) { return 0; }
15631_ACEOF
15632if ac_fn_c_try_link "$LINENO"; then :
15633  lt_cv_irix_exported_symbol=yes
15634else
15635  lt_cv_irix_exported_symbol=no
15636fi
15637rm -f core conftest.err conftest.$ac_objext \
15638    conftest$ac_exeext conftest.$ac_ext
15639           LDFLAGS="$save_LDFLAGS"
15640fi
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15642$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15643	if test "$lt_cv_irix_exported_symbol" = yes; then
15644          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'
15645	fi
15646      else
15647	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'
15648	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'
15649      fi
15650      archive_cmds_need_lc='no'
15651      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15652      hardcode_libdir_separator=:
15653      inherit_rpath=yes
15654      link_all_deplibs=yes
15655      ;;
15656
15657    netbsd* | netbsdelf*-gnu)
15658      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15659	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15660      else
15661	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15662      fi
15663      hardcode_libdir_flag_spec='-R$libdir'
15664      hardcode_direct=yes
15665      hardcode_shlibpath_var=no
15666      ;;
15667
15668    newsos6)
15669      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15670      hardcode_direct=yes
15671      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15672      hardcode_libdir_separator=:
15673      hardcode_shlibpath_var=no
15674      ;;
15675
15676    *nto* | *qnx*)
15677      ;;
15678
15679    openbsd*)
15680      if test -f /usr/libexec/ld.so; then
15681	hardcode_direct=yes
15682	hardcode_shlibpath_var=no
15683	hardcode_direct_absolute=yes
15684	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15685	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15686	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15687	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15688	  export_dynamic_flag_spec='${wl}-E'
15689	else
15690	  case $host_os in
15691	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15692	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15693	     hardcode_libdir_flag_spec='-R$libdir'
15694	     ;;
15695	   *)
15696	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15697	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15698	     ;;
15699	  esac
15700	fi
15701      else
15702	ld_shlibs=no
15703      fi
15704      ;;
15705
15706    os2*)
15707      hardcode_libdir_flag_spec='-L$libdir'
15708      hardcode_minus_L=yes
15709      allow_undefined_flag=unsupported
15710      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15711      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15712      ;;
15713
15714    osf3*)
15715      if test "$GCC" = yes; then
15716	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15717	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'
15718      else
15719	allow_undefined_flag=' -expect_unresolved \*'
15720	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'
15721      fi
15722      archive_cmds_need_lc='no'
15723      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15724      hardcode_libdir_separator=:
15725      ;;
15726
15727    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15728      if test "$GCC" = yes; then
15729	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15730	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'
15731	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15732      else
15733	allow_undefined_flag=' -expect_unresolved \*'
15734	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'
15735	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~
15736	$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'
15737
15738	# Both c and cxx compiler support -rpath directly
15739	hardcode_libdir_flag_spec='-rpath $libdir'
15740      fi
15741      archive_cmds_need_lc='no'
15742      hardcode_libdir_separator=:
15743      ;;
15744
15745    solaris*)
15746      no_undefined_flag=' -z defs'
15747      if test "$GCC" = yes; then
15748	wlarc='${wl}'
15749	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15751	  $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'
15752      else
15753	case `$CC -V 2>&1` in
15754	*"Compilers 5.0"*)
15755	  wlarc=''
15756	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15758	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15759	  ;;
15760	*)
15761	  wlarc='${wl}'
15762	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15763	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15764	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15765	  ;;
15766	esac
15767      fi
15768      hardcode_libdir_flag_spec='-R$libdir'
15769      hardcode_shlibpath_var=no
15770      case $host_os in
15771      solaris2.[0-5] | solaris2.[0-5].*) ;;
15772      *)
15773	# The compiler driver will combine and reorder linker options,
15774	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15775	# but is careful enough not to reorder.
15776	# Supported since Solaris 2.6 (maybe 2.5.1?)
15777	if test "$GCC" = yes; then
15778	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15779	else
15780	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15781	fi
15782	;;
15783      esac
15784      link_all_deplibs=yes
15785      ;;
15786
15787    sunos4*)
15788      if test "x$host_vendor" = xsequent; then
15789	# Use $CC to link under sequent, because it throws in some extra .o
15790	# files that make .init and .fini sections work.
15791	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15792      else
15793	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15794      fi
15795      hardcode_libdir_flag_spec='-L$libdir'
15796      hardcode_direct=yes
15797      hardcode_minus_L=yes
15798      hardcode_shlibpath_var=no
15799      ;;
15800
15801    sysv4)
15802      case $host_vendor in
15803	sni)
15804	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15805	  hardcode_direct=yes # is this really true???
15806	;;
15807	siemens)
15808	  ## LD is ld it makes a PLAMLIB
15809	  ## CC just makes a GrossModule.
15810	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15811	  reload_cmds='$CC -r -o $output$reload_objs'
15812	  hardcode_direct=no
15813        ;;
15814	motorola)
15815	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15817	;;
15818      esac
15819      runpath_var='LD_RUN_PATH'
15820      hardcode_shlibpath_var=no
15821      ;;
15822
15823    sysv4.3*)
15824      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825      hardcode_shlibpath_var=no
15826      export_dynamic_flag_spec='-Bexport'
15827      ;;
15828
15829    sysv4*MP*)
15830      if test -d /usr/nec; then
15831	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832	hardcode_shlibpath_var=no
15833	runpath_var=LD_RUN_PATH
15834	hardcode_runpath_var=yes
15835	ld_shlibs=yes
15836      fi
15837      ;;
15838
15839    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15840      no_undefined_flag='${wl}-z,text'
15841      archive_cmds_need_lc=no
15842      hardcode_shlibpath_var=no
15843      runpath_var='LD_RUN_PATH'
15844
15845      if test "$GCC" = yes; then
15846	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15847	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15848      else
15849	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15850	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15851      fi
15852      ;;
15853
15854    sysv5* | sco3.2v5* | sco5v6*)
15855      # Note: We can NOT use -z defs as we might desire, because we do not
15856      # link with -lc, and that would cause any symbols used from libc to
15857      # always be unresolved, which means just about no library would
15858      # ever link correctly.  If we're not using GNU ld we use -z text
15859      # though, which does catch some bad symbols but isn't as heavy-handed
15860      # as -z defs.
15861      no_undefined_flag='${wl}-z,text'
15862      allow_undefined_flag='${wl}-z,nodefs'
15863      archive_cmds_need_lc=no
15864      hardcode_shlibpath_var=no
15865      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15866      hardcode_libdir_separator=':'
15867      link_all_deplibs=yes
15868      export_dynamic_flag_spec='${wl}-Bexport'
15869      runpath_var='LD_RUN_PATH'
15870
15871      if test "$GCC" = yes; then
15872	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15873	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874      else
15875	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15876	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877      fi
15878      ;;
15879
15880    uts4*)
15881      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15882      hardcode_libdir_flag_spec='-L$libdir'
15883      hardcode_shlibpath_var=no
15884      ;;
15885
15886    *)
15887      ld_shlibs=no
15888      ;;
15889    esac
15890
15891    if test x$host_vendor = xsni; then
15892      case $host in
15893      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15894	export_dynamic_flag_spec='${wl}-Blargedynsym'
15895	;;
15896      esac
15897    fi
15898  fi
15899
15900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15901$as_echo "$ld_shlibs" >&6; }
15902test "$ld_shlibs" = no && can_build_shared=no
15903
15904with_gnu_ld=$with_gnu_ld
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920#
15921# Do we need to explicitly link libc?
15922#
15923case "x$archive_cmds_need_lc" in
15924x|xyes)
15925  # Assume -lc should be added
15926  archive_cmds_need_lc=yes
15927
15928  if test "$enable_shared" = yes && test "$GCC" = yes; then
15929    case $archive_cmds in
15930    *'~'*)
15931      # FIXME: we may have to deal with multi-command sequences.
15932      ;;
15933    '$CC '*)
15934      # Test whether the compiler implicitly links with -lc since on some
15935      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15936      # to ld, don't add -lc before -lgcc.
15937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15938$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15939if ${lt_cv_archive_cmds_need_lc+:} false; then :
15940  $as_echo_n "(cached) " >&6
15941else
15942  $RM conftest*
15943	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15944
15945	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15946  (eval $ac_compile) 2>&5
15947  ac_status=$?
15948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15949  test $ac_status = 0; } 2>conftest.err; then
15950	  soname=conftest
15951	  lib=conftest
15952	  libobjs=conftest.$ac_objext
15953	  deplibs=
15954	  wl=$lt_prog_compiler_wl
15955	  pic_flag=$lt_prog_compiler_pic
15956	  compiler_flags=-v
15957	  linker_flags=-v
15958	  verstring=
15959	  output_objdir=.
15960	  libname=conftest
15961	  lt_save_allow_undefined_flag=$allow_undefined_flag
15962	  allow_undefined_flag=
15963	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15964  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15965  ac_status=$?
15966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15967  test $ac_status = 0; }
15968	  then
15969	    lt_cv_archive_cmds_need_lc=no
15970	  else
15971	    lt_cv_archive_cmds_need_lc=yes
15972	  fi
15973	  allow_undefined_flag=$lt_save_allow_undefined_flag
15974	else
15975	  cat conftest.err 1>&5
15976	fi
15977	$RM conftest*
15978
15979fi
15980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15981$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15982      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15983      ;;
15984    esac
15985  fi
15986  ;;
15987esac
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16141$as_echo_n "checking dynamic linker characteristics... " >&6; }
16142
16143if test "$GCC" = yes; then
16144  case $host_os in
16145    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16146    *) lt_awk_arg="/^libraries:/" ;;
16147  esac
16148  case $host_os in
16149    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16150    *) lt_sed_strip_eq="s,=/,/,g" ;;
16151  esac
16152  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16153  case $lt_search_path_spec in
16154  *\;*)
16155    # if the path contains ";" then we assume it to be the separator
16156    # otherwise default to the standard path separator (i.e. ":") - it is
16157    # assumed that no part of a normal pathname contains ";" but that should
16158    # okay in the real world where ";" in dirpaths is itself problematic.
16159    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16160    ;;
16161  *)
16162    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16163    ;;
16164  esac
16165  # Ok, now we have the path, separated by spaces, we can step through it
16166  # and add multilib dir if necessary.
16167  lt_tmp_lt_search_path_spec=
16168  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16169  for lt_sys_path in $lt_search_path_spec; do
16170    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16171      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16172    else
16173      test -d "$lt_sys_path" && \
16174	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16175    fi
16176  done
16177  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16178BEGIN {RS=" "; FS="/|\n";} {
16179  lt_foo="";
16180  lt_count=0;
16181  for (lt_i = NF; lt_i > 0; lt_i--) {
16182    if ($lt_i != "" && $lt_i != ".") {
16183      if ($lt_i == "..") {
16184        lt_count++;
16185      } else {
16186        if (lt_count == 0) {
16187          lt_foo="/" $lt_i lt_foo;
16188        } else {
16189          lt_count--;
16190        }
16191      }
16192    }
16193  }
16194  if (lt_foo != "") { lt_freq[lt_foo]++; }
16195  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16196}'`
16197  # AWK program above erroneously prepends '/' to C:/dos/paths
16198  # for these hosts.
16199  case $host_os in
16200    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16201      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16202  esac
16203  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16204else
16205  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16206fi
16207library_names_spec=
16208libname_spec='lib$name'
16209soname_spec=
16210shrext_cmds=".so"
16211postinstall_cmds=
16212postuninstall_cmds=
16213finish_cmds=
16214finish_eval=
16215shlibpath_var=
16216shlibpath_overrides_runpath=unknown
16217version_type=none
16218dynamic_linker="$host_os ld.so"
16219sys_lib_dlsearch_path_spec="/lib /usr/lib"
16220need_lib_prefix=unknown
16221hardcode_into_libs=no
16222
16223# when you set need_version to no, make sure it does not cause -set_version
16224# flags to be left without arguments
16225need_version=unknown
16226
16227case $host_os in
16228aix3*)
16229  version_type=linux # correct to gnu/linux during the next big refactor
16230  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16231  shlibpath_var=LIBPATH
16232
16233  # AIX 3 has no versioning support, so we append a major version to the name.
16234  soname_spec='${libname}${release}${shared_ext}$major'
16235  ;;
16236
16237aix[4-9]*)
16238  version_type=linux # correct to gnu/linux during the next big refactor
16239  need_lib_prefix=no
16240  need_version=no
16241  hardcode_into_libs=yes
16242  if test "$host_cpu" = ia64; then
16243    # AIX 5 supports IA64
16244    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16245    shlibpath_var=LD_LIBRARY_PATH
16246  else
16247    # With GCC up to 2.95.x, collect2 would create an import file
16248    # for dependence libraries.  The import file would start with
16249    # the line `#! .'.  This would cause the generated library to
16250    # depend on `.', always an invalid library.  This was fixed in
16251    # development snapshots of GCC prior to 3.0.
16252    case $host_os in
16253      aix4 | aix4.[01] | aix4.[01].*)
16254      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16255	   echo ' yes '
16256	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16257	:
16258      else
16259	can_build_shared=no
16260      fi
16261      ;;
16262    esac
16263    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16264    # soname into executable. Probably we can add versioning support to
16265    # collect2, so additional links can be useful in future.
16266    if test "$aix_use_runtimelinking" = yes; then
16267      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16268      # instead of lib<name>.a to let people know that these are not
16269      # typical AIX shared libraries.
16270      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16271    else
16272      # We preserve .a as extension for shared libraries through AIX4.2
16273      # and later when we are not doing run time linking.
16274      library_names_spec='${libname}${release}.a $libname.a'
16275      soname_spec='${libname}${release}${shared_ext}$major'
16276    fi
16277    shlibpath_var=LIBPATH
16278  fi
16279  ;;
16280
16281amigaos*)
16282  case $host_cpu in
16283  powerpc)
16284    # Since July 2007 AmigaOS4 officially supports .so libraries.
16285    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16286    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287    ;;
16288  m68k)
16289    library_names_spec='$libname.ixlibrary $libname.a'
16290    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16291    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16292    ;;
16293  esac
16294  ;;
16295
16296beos*)
16297  library_names_spec='${libname}${shared_ext}'
16298  dynamic_linker="$host_os ld.so"
16299  shlibpath_var=LIBRARY_PATH
16300  ;;
16301
16302bsdi[45]*)
16303  version_type=linux # correct to gnu/linux during the next big refactor
16304  need_version=no
16305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306  soname_spec='${libname}${release}${shared_ext}$major'
16307  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16308  shlibpath_var=LD_LIBRARY_PATH
16309  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16310  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16311  # the default ld.so.conf also contains /usr/contrib/lib and
16312  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16313  # libtool to hard-code these into programs
16314  ;;
16315
16316cygwin* | mingw* | pw32* | cegcc*)
16317  version_type=windows
16318  shrext_cmds=".dll"
16319  need_version=no
16320  need_lib_prefix=no
16321
16322  case $GCC,$cc_basename in
16323  yes,*)
16324    # gcc
16325    library_names_spec='$libname.dll.a'
16326    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16327    postinstall_cmds='base_file=`basename \${file}`~
16328      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16329      dldir=$destdir/`dirname \$dlpath`~
16330      test -d \$dldir || mkdir -p \$dldir~
16331      $install_prog $dir/$dlname \$dldir/$dlname~
16332      chmod a+x \$dldir/$dlname~
16333      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16334        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16335      fi'
16336    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16337      dlpath=$dir/\$dldll~
16338       $RM \$dlpath'
16339    shlibpath_overrides_runpath=yes
16340
16341    case $host_os in
16342    cygwin*)
16343      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16344      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16345
16346      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16347      ;;
16348    mingw* | cegcc*)
16349      # MinGW DLLs use traditional 'lib' prefix
16350      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16351      ;;
16352    pw32*)
16353      # pw32 DLLs use 'pw' prefix rather than 'lib'
16354      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16355      ;;
16356    esac
16357    dynamic_linker='Win32 ld.exe'
16358    ;;
16359
16360  *,cl*)
16361    # Native MSVC
16362    libname_spec='$name'
16363    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16364    library_names_spec='${libname}.dll.lib'
16365
16366    case $build_os in
16367    mingw*)
16368      sys_lib_search_path_spec=
16369      lt_save_ifs=$IFS
16370      IFS=';'
16371      for lt_path in $LIB
16372      do
16373        IFS=$lt_save_ifs
16374        # Let DOS variable expansion print the short 8.3 style file name.
16375        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16376        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16377      done
16378      IFS=$lt_save_ifs
16379      # Convert to MSYS style.
16380      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16381      ;;
16382    cygwin*)
16383      # Convert to unix form, then to dos form, then back to unix form
16384      # but this time dos style (no spaces!) so that the unix form looks
16385      # like /cygdrive/c/PROGRA~1:/cygdr...
16386      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16387      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16388      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16389      ;;
16390    *)
16391      sys_lib_search_path_spec="$LIB"
16392      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16393        # It is most probably a Windows format PATH.
16394        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16395      else
16396        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16397      fi
16398      # FIXME: find the short name or the path components, as spaces are
16399      # common. (e.g. "Program Files" -> "PROGRA~1")
16400      ;;
16401    esac
16402
16403    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16404    postinstall_cmds='base_file=`basename \${file}`~
16405      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16406      dldir=$destdir/`dirname \$dlpath`~
16407      test -d \$dldir || mkdir -p \$dldir~
16408      $install_prog $dir/$dlname \$dldir/$dlname'
16409    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16410      dlpath=$dir/\$dldll~
16411       $RM \$dlpath'
16412    shlibpath_overrides_runpath=yes
16413    dynamic_linker='Win32 link.exe'
16414    ;;
16415
16416  *)
16417    # Assume MSVC wrapper
16418    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16419    dynamic_linker='Win32 ld.exe'
16420    ;;
16421  esac
16422  # FIXME: first we should search . and the directory the executable is in
16423  shlibpath_var=PATH
16424  ;;
16425
16426darwin* | rhapsody*)
16427  dynamic_linker="$host_os dyld"
16428  version_type=darwin
16429  need_lib_prefix=no
16430  need_version=no
16431  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16432  soname_spec='${libname}${release}${major}$shared_ext'
16433  shlibpath_overrides_runpath=yes
16434  shlibpath_var=DYLD_LIBRARY_PATH
16435  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16436
16437  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16438  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16439  ;;
16440
16441dgux*)
16442  version_type=linux # correct to gnu/linux during the next big refactor
16443  need_lib_prefix=no
16444  need_version=no
16445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16446  soname_spec='${libname}${release}${shared_ext}$major'
16447  shlibpath_var=LD_LIBRARY_PATH
16448  ;;
16449
16450freebsd* | dragonfly*)
16451  # DragonFly does not have aout.  When/if they implement a new
16452  # versioning mechanism, adjust this.
16453  if test -x /usr/bin/objformat; then
16454    objformat=`/usr/bin/objformat`
16455  else
16456    case $host_os in
16457    freebsd[23].*) objformat=aout ;;
16458    *) objformat=elf ;;
16459    esac
16460  fi
16461  version_type=freebsd-$objformat
16462  case $version_type in
16463    freebsd-elf*)
16464      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16465      need_version=no
16466      need_lib_prefix=no
16467      ;;
16468    freebsd-*)
16469      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16470      need_version=yes
16471      ;;
16472  esac
16473  shlibpath_var=LD_LIBRARY_PATH
16474  case $host_os in
16475  freebsd2.*)
16476    shlibpath_overrides_runpath=yes
16477    ;;
16478  freebsd3.[01]* | freebsdelf3.[01]*)
16479    shlibpath_overrides_runpath=yes
16480    hardcode_into_libs=yes
16481    ;;
16482  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16483  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16484    shlibpath_overrides_runpath=no
16485    hardcode_into_libs=yes
16486    ;;
16487  *) # from 4.6 on, and DragonFly
16488    shlibpath_overrides_runpath=yes
16489    hardcode_into_libs=yes
16490    ;;
16491  esac
16492  ;;
16493
16494gnu*)
16495  version_type=linux # correct to gnu/linux during the next big refactor
16496  need_lib_prefix=no
16497  need_version=no
16498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16499  soname_spec='${libname}${release}${shared_ext}$major'
16500  shlibpath_var=LD_LIBRARY_PATH
16501  shlibpath_overrides_runpath=no
16502  hardcode_into_libs=yes
16503  ;;
16504
16505haiku*)
16506  version_type=linux # correct to gnu/linux during the next big refactor
16507  need_lib_prefix=no
16508  need_version=no
16509  dynamic_linker="$host_os runtime_loader"
16510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16511  soname_spec='${libname}${release}${shared_ext}$major'
16512  shlibpath_var=LIBRARY_PATH
16513  shlibpath_overrides_runpath=yes
16514  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16515  hardcode_into_libs=yes
16516  ;;
16517
16518hpux9* | hpux10* | hpux11*)
16519  # Give a soname corresponding to the major version so that dld.sl refuses to
16520  # link against other versions.
16521  version_type=sunos
16522  need_lib_prefix=no
16523  need_version=no
16524  case $host_cpu in
16525  ia64*)
16526    shrext_cmds='.so'
16527    hardcode_into_libs=yes
16528    dynamic_linker="$host_os dld.so"
16529    shlibpath_var=LD_LIBRARY_PATH
16530    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16531    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16532    soname_spec='${libname}${release}${shared_ext}$major'
16533    if test "X$HPUX_IA64_MODE" = X32; then
16534      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16535    else
16536      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16537    fi
16538    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16539    ;;
16540  hppa*64*)
16541    shrext_cmds='.sl'
16542    hardcode_into_libs=yes
16543    dynamic_linker="$host_os dld.sl"
16544    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16545    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16546    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547    soname_spec='${libname}${release}${shared_ext}$major'
16548    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16549    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16550    ;;
16551  *)
16552    shrext_cmds='.sl'
16553    dynamic_linker="$host_os dld.sl"
16554    shlibpath_var=SHLIB_PATH
16555    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16556    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16557    soname_spec='${libname}${release}${shared_ext}$major'
16558    ;;
16559  esac
16560  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16561  postinstall_cmds='chmod 555 $lib'
16562  # or fails outright, so override atomically:
16563  install_override_mode=555
16564  ;;
16565
16566interix[3-9]*)
16567  version_type=linux # correct to gnu/linux during the next big refactor
16568  need_lib_prefix=no
16569  need_version=no
16570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16571  soname_spec='${libname}${release}${shared_ext}$major'
16572  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16573  shlibpath_var=LD_LIBRARY_PATH
16574  shlibpath_overrides_runpath=no
16575  hardcode_into_libs=yes
16576  ;;
16577
16578irix5* | irix6* | nonstopux*)
16579  case $host_os in
16580    nonstopux*) version_type=nonstopux ;;
16581    *)
16582	if test "$lt_cv_prog_gnu_ld" = yes; then
16583		version_type=linux # correct to gnu/linux during the next big refactor
16584	else
16585		version_type=irix
16586	fi ;;
16587  esac
16588  need_lib_prefix=no
16589  need_version=no
16590  soname_spec='${libname}${release}${shared_ext}$major'
16591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16592  case $host_os in
16593  irix5* | nonstopux*)
16594    libsuff= shlibsuff=
16595    ;;
16596  *)
16597    case $LD in # libtool.m4 will add one of these switches to LD
16598    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16599      libsuff= shlibsuff= libmagic=32-bit;;
16600    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16601      libsuff=32 shlibsuff=N32 libmagic=N32;;
16602    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16603      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16604    *) libsuff= shlibsuff= libmagic=never-match;;
16605    esac
16606    ;;
16607  esac
16608  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16609  shlibpath_overrides_runpath=no
16610  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16611  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16612  hardcode_into_libs=yes
16613  ;;
16614
16615# No shared lib support for Linux oldld, aout, or coff.
16616linux*oldld* | linux*aout* | linux*coff*)
16617  dynamic_linker=no
16618  ;;
16619
16620# This must be glibc/ELF.
16621linux* | k*bsd*-gnu | kopensolaris*-gnu)
16622  version_type=linux # correct to gnu/linux during the next big refactor
16623  need_lib_prefix=no
16624  need_version=no
16625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626  soname_spec='${libname}${release}${shared_ext}$major'
16627  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16628  shlibpath_var=LD_LIBRARY_PATH
16629  shlibpath_overrides_runpath=no
16630
16631  # Some binutils ld are patched to set DT_RUNPATH
16632  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16633  $as_echo_n "(cached) " >&6
16634else
16635  lt_cv_shlibpath_overrides_runpath=no
16636    save_LDFLAGS=$LDFLAGS
16637    save_libdir=$libdir
16638    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16639	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16640    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641/* end confdefs.h.  */
16642
16643int
16644main ()
16645{
16646
16647  ;
16648  return 0;
16649}
16650_ACEOF
16651if ac_fn_c_try_link "$LINENO"; then :
16652  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16653  lt_cv_shlibpath_overrides_runpath=yes
16654fi
16655fi
16656rm -f core conftest.err conftest.$ac_objext \
16657    conftest$ac_exeext conftest.$ac_ext
16658    LDFLAGS=$save_LDFLAGS
16659    libdir=$save_libdir
16660
16661fi
16662
16663  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16664
16665  # This implies no fast_install, which is unacceptable.
16666  # Some rework will be needed to allow for fast_install
16667  # before this can be enabled.
16668  hardcode_into_libs=yes
16669
16670  # Append ld.so.conf contents to the search path
16671  if test -f /etc/ld.so.conf; then
16672    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' ' '`
16673    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16674  fi
16675
16676  # We used to test for /lib/ld.so.1 and disable shared libraries on
16677  # powerpc, because MkLinux only supported shared libraries with the
16678  # GNU dynamic linker.  Since this was broken with cross compilers,
16679  # most powerpc-linux boxes support dynamic linking these days and
16680  # people can always --disable-shared, the test was removed, and we
16681  # assume the GNU/Linux dynamic linker is in use.
16682  dynamic_linker='GNU/Linux ld.so'
16683  ;;
16684
16685netbsdelf*-gnu)
16686  version_type=linux
16687  need_lib_prefix=no
16688  need_version=no
16689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16690  soname_spec='${libname}${release}${shared_ext}$major'
16691  shlibpath_var=LD_LIBRARY_PATH
16692  shlibpath_overrides_runpath=no
16693  hardcode_into_libs=yes
16694  dynamic_linker='NetBSD ld.elf_so'
16695  ;;
16696
16697netbsd*)
16698  version_type=sunos
16699  need_lib_prefix=no
16700  need_version=no
16701  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16702    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16703    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16704    dynamic_linker='NetBSD (a.out) ld.so'
16705  else
16706    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16707    soname_spec='${libname}${release}${shared_ext}$major'
16708    dynamic_linker='NetBSD ld.elf_so'
16709  fi
16710  shlibpath_var=LD_LIBRARY_PATH
16711  shlibpath_overrides_runpath=yes
16712  hardcode_into_libs=yes
16713  ;;
16714
16715newsos6)
16716  version_type=linux # correct to gnu/linux during the next big refactor
16717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718  shlibpath_var=LD_LIBRARY_PATH
16719  shlibpath_overrides_runpath=yes
16720  ;;
16721
16722*nto* | *qnx*)
16723  version_type=qnx
16724  need_lib_prefix=no
16725  need_version=no
16726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727  soname_spec='${libname}${release}${shared_ext}$major'
16728  shlibpath_var=LD_LIBRARY_PATH
16729  shlibpath_overrides_runpath=no
16730  hardcode_into_libs=yes
16731  dynamic_linker='ldqnx.so'
16732  ;;
16733
16734openbsd*)
16735  version_type=sunos
16736  sys_lib_dlsearch_path_spec="/usr/lib"
16737  need_lib_prefix=no
16738  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16739  case $host_os in
16740    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16741    *)				need_version=no  ;;
16742  esac
16743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16744  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16745  shlibpath_var=LD_LIBRARY_PATH
16746  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16747    case $host_os in
16748      openbsd2.[89] | openbsd2.[89].*)
16749	shlibpath_overrides_runpath=no
16750	;;
16751      *)
16752	shlibpath_overrides_runpath=yes
16753	;;
16754      esac
16755  else
16756    shlibpath_overrides_runpath=yes
16757  fi
16758  ;;
16759
16760os2*)
16761  libname_spec='$name'
16762  shrext_cmds=".dll"
16763  need_lib_prefix=no
16764  library_names_spec='$libname${shared_ext} $libname.a'
16765  dynamic_linker='OS/2 ld.exe'
16766  shlibpath_var=LIBPATH
16767  ;;
16768
16769osf3* | osf4* | osf5*)
16770  version_type=osf
16771  need_lib_prefix=no
16772  need_version=no
16773  soname_spec='${libname}${release}${shared_ext}$major'
16774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775  shlibpath_var=LD_LIBRARY_PATH
16776  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16777  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16778  ;;
16779
16780rdos*)
16781  dynamic_linker=no
16782  ;;
16783
16784solaris*)
16785  version_type=linux # correct to gnu/linux during the next big refactor
16786  need_lib_prefix=no
16787  need_version=no
16788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789  soname_spec='${libname}${release}${shared_ext}$major'
16790  shlibpath_var=LD_LIBRARY_PATH
16791  shlibpath_overrides_runpath=yes
16792  hardcode_into_libs=yes
16793  # ldd complains unless libraries are executable
16794  postinstall_cmds='chmod +x $lib'
16795  ;;
16796
16797sunos4*)
16798  version_type=sunos
16799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16800  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16801  shlibpath_var=LD_LIBRARY_PATH
16802  shlibpath_overrides_runpath=yes
16803  if test "$with_gnu_ld" = yes; then
16804    need_lib_prefix=no
16805  fi
16806  need_version=yes
16807  ;;
16808
16809sysv4 | sysv4.3*)
16810  version_type=linux # correct to gnu/linux during the next big refactor
16811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812  soname_spec='${libname}${release}${shared_ext}$major'
16813  shlibpath_var=LD_LIBRARY_PATH
16814  case $host_vendor in
16815    sni)
16816      shlibpath_overrides_runpath=no
16817      need_lib_prefix=no
16818      runpath_var=LD_RUN_PATH
16819      ;;
16820    siemens)
16821      need_lib_prefix=no
16822      ;;
16823    motorola)
16824      need_lib_prefix=no
16825      need_version=no
16826      shlibpath_overrides_runpath=no
16827      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16828      ;;
16829  esac
16830  ;;
16831
16832sysv4*MP*)
16833  if test -d /usr/nec ;then
16834    version_type=linux # correct to gnu/linux during the next big refactor
16835    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16836    soname_spec='$libname${shared_ext}.$major'
16837    shlibpath_var=LD_LIBRARY_PATH
16838  fi
16839  ;;
16840
16841sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16842  version_type=freebsd-elf
16843  need_lib_prefix=no
16844  need_version=no
16845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16846  soname_spec='${libname}${release}${shared_ext}$major'
16847  shlibpath_var=LD_LIBRARY_PATH
16848  shlibpath_overrides_runpath=yes
16849  hardcode_into_libs=yes
16850  if test "$with_gnu_ld" = yes; then
16851    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16852  else
16853    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16854    case $host_os in
16855      sco3.2v5*)
16856        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16857	;;
16858    esac
16859  fi
16860  sys_lib_dlsearch_path_spec='/usr/lib'
16861  ;;
16862
16863tpf*)
16864  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16865  version_type=linux # correct to gnu/linux during the next big refactor
16866  need_lib_prefix=no
16867  need_version=no
16868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869  shlibpath_var=LD_LIBRARY_PATH
16870  shlibpath_overrides_runpath=no
16871  hardcode_into_libs=yes
16872  ;;
16873
16874uts4*)
16875  version_type=linux # correct to gnu/linux during the next big refactor
16876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877  soname_spec='${libname}${release}${shared_ext}$major'
16878  shlibpath_var=LD_LIBRARY_PATH
16879  ;;
16880
16881*)
16882  dynamic_linker=no
16883  ;;
16884esac
16885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16886$as_echo "$dynamic_linker" >&6; }
16887test "$dynamic_linker" = no && can_build_shared=no
16888
16889variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16890if test "$GCC" = yes; then
16891  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16892fi
16893
16894if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16895  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16896fi
16897if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16898  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16899fi
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16993$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16994hardcode_action=
16995if test -n "$hardcode_libdir_flag_spec" ||
16996   test -n "$runpath_var" ||
16997   test "X$hardcode_automatic" = "Xyes" ; then
16998
16999  # We can hardcode non-existent directories.
17000  if test "$hardcode_direct" != no &&
17001     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17002     # have to relink, otherwise we might link with an installed library
17003     # when we should be linking with a yet-to-be-installed one
17004     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17005     test "$hardcode_minus_L" != no; then
17006    # Linking always hardcodes the temporary library directory.
17007    hardcode_action=relink
17008  else
17009    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17010    hardcode_action=immediate
17011  fi
17012else
17013  # We cannot hardcode anything, or else we can only hardcode existing
17014  # directories.
17015  hardcode_action=unsupported
17016fi
17017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17018$as_echo "$hardcode_action" >&6; }
17019
17020if test "$hardcode_action" = relink ||
17021   test "$inherit_rpath" = yes; then
17022  # Fast installation is not supported
17023  enable_fast_install=no
17024elif test "$shlibpath_overrides_runpath" = yes ||
17025     test "$enable_shared" = no; then
17026  # Fast installation is not necessary
17027  enable_fast_install=needless
17028fi
17029
17030
17031
17032
17033
17034
17035  if test "x$enable_dlopen" != xyes; then
17036  enable_dlopen=unknown
17037  enable_dlopen_self=unknown
17038  enable_dlopen_self_static=unknown
17039else
17040  lt_cv_dlopen=no
17041  lt_cv_dlopen_libs=
17042
17043  case $host_os in
17044  beos*)
17045    lt_cv_dlopen="load_add_on"
17046    lt_cv_dlopen_libs=
17047    lt_cv_dlopen_self=yes
17048    ;;
17049
17050  mingw* | pw32* | cegcc*)
17051    lt_cv_dlopen="LoadLibrary"
17052    lt_cv_dlopen_libs=
17053    ;;
17054
17055  cygwin*)
17056    lt_cv_dlopen="dlopen"
17057    lt_cv_dlopen_libs=
17058    ;;
17059
17060  darwin*)
17061  # if libdl is installed we need to link against it
17062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17063$as_echo_n "checking for dlopen in -ldl... " >&6; }
17064if ${ac_cv_lib_dl_dlopen+:} false; then :
17065  $as_echo_n "(cached) " >&6
17066else
17067  ac_check_lib_save_LIBS=$LIBS
17068LIBS="-ldl  $LIBS"
17069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070/* end confdefs.h.  */
17071
17072/* Override any GCC internal prototype to avoid an error.
17073   Use char because int might match the return type of a GCC
17074   builtin and then its argument prototype would still apply.  */
17075#ifdef __cplusplus
17076extern "C"
17077#endif
17078char dlopen ();
17079int
17080main ()
17081{
17082return dlopen ();
17083  ;
17084  return 0;
17085}
17086_ACEOF
17087if ac_fn_c_try_link "$LINENO"; then :
17088  ac_cv_lib_dl_dlopen=yes
17089else
17090  ac_cv_lib_dl_dlopen=no
17091fi
17092rm -f core conftest.err conftest.$ac_objext \
17093    conftest$ac_exeext conftest.$ac_ext
17094LIBS=$ac_check_lib_save_LIBS
17095fi
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17097$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17098if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17099  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17100else
17101
17102    lt_cv_dlopen="dyld"
17103    lt_cv_dlopen_libs=
17104    lt_cv_dlopen_self=yes
17105
17106fi
17107
17108    ;;
17109
17110  *)
17111    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17112if test "x$ac_cv_func_shl_load" = xyes; then :
17113  lt_cv_dlopen="shl_load"
17114else
17115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17116$as_echo_n "checking for shl_load in -ldld... " >&6; }
17117if ${ac_cv_lib_dld_shl_load+:} false; then :
17118  $as_echo_n "(cached) " >&6
17119else
17120  ac_check_lib_save_LIBS=$LIBS
17121LIBS="-ldld  $LIBS"
17122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123/* end confdefs.h.  */
17124
17125/* Override any GCC internal prototype to avoid an error.
17126   Use char because int might match the return type of a GCC
17127   builtin and then its argument prototype would still apply.  */
17128#ifdef __cplusplus
17129extern "C"
17130#endif
17131char shl_load ();
17132int
17133main ()
17134{
17135return shl_load ();
17136  ;
17137  return 0;
17138}
17139_ACEOF
17140if ac_fn_c_try_link "$LINENO"; then :
17141  ac_cv_lib_dld_shl_load=yes
17142else
17143  ac_cv_lib_dld_shl_load=no
17144fi
17145rm -f core conftest.err conftest.$ac_objext \
17146    conftest$ac_exeext conftest.$ac_ext
17147LIBS=$ac_check_lib_save_LIBS
17148fi
17149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17150$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17151if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17152  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17153else
17154  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17155if test "x$ac_cv_func_dlopen" = xyes; then :
17156  lt_cv_dlopen="dlopen"
17157else
17158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17159$as_echo_n "checking for dlopen in -ldl... " >&6; }
17160if ${ac_cv_lib_dl_dlopen+:} false; then :
17161  $as_echo_n "(cached) " >&6
17162else
17163  ac_check_lib_save_LIBS=$LIBS
17164LIBS="-ldl  $LIBS"
17165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166/* end confdefs.h.  */
17167
17168/* Override any GCC internal prototype to avoid an error.
17169   Use char because int might match the return type of a GCC
17170   builtin and then its argument prototype would still apply.  */
17171#ifdef __cplusplus
17172extern "C"
17173#endif
17174char dlopen ();
17175int
17176main ()
17177{
17178return dlopen ();
17179  ;
17180  return 0;
17181}
17182_ACEOF
17183if ac_fn_c_try_link "$LINENO"; then :
17184  ac_cv_lib_dl_dlopen=yes
17185else
17186  ac_cv_lib_dl_dlopen=no
17187fi
17188rm -f core conftest.err conftest.$ac_objext \
17189    conftest$ac_exeext conftest.$ac_ext
17190LIBS=$ac_check_lib_save_LIBS
17191fi
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17193$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17194if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17195  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17196else
17197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17198$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17199if ${ac_cv_lib_svld_dlopen+:} false; then :
17200  $as_echo_n "(cached) " >&6
17201else
17202  ac_check_lib_save_LIBS=$LIBS
17203LIBS="-lsvld  $LIBS"
17204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205/* end confdefs.h.  */
17206
17207/* Override any GCC internal prototype to avoid an error.
17208   Use char because int might match the return type of a GCC
17209   builtin and then its argument prototype would still apply.  */
17210#ifdef __cplusplus
17211extern "C"
17212#endif
17213char dlopen ();
17214int
17215main ()
17216{
17217return dlopen ();
17218  ;
17219  return 0;
17220}
17221_ACEOF
17222if ac_fn_c_try_link "$LINENO"; then :
17223  ac_cv_lib_svld_dlopen=yes
17224else
17225  ac_cv_lib_svld_dlopen=no
17226fi
17227rm -f core conftest.err conftest.$ac_objext \
17228    conftest$ac_exeext conftest.$ac_ext
17229LIBS=$ac_check_lib_save_LIBS
17230fi
17231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17232$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17233if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17234  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17235else
17236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17237$as_echo_n "checking for dld_link in -ldld... " >&6; }
17238if ${ac_cv_lib_dld_dld_link+:} false; then :
17239  $as_echo_n "(cached) " >&6
17240else
17241  ac_check_lib_save_LIBS=$LIBS
17242LIBS="-ldld  $LIBS"
17243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244/* end confdefs.h.  */
17245
17246/* Override any GCC internal prototype to avoid an error.
17247   Use char because int might match the return type of a GCC
17248   builtin and then its argument prototype would still apply.  */
17249#ifdef __cplusplus
17250extern "C"
17251#endif
17252char dld_link ();
17253int
17254main ()
17255{
17256return dld_link ();
17257  ;
17258  return 0;
17259}
17260_ACEOF
17261if ac_fn_c_try_link "$LINENO"; then :
17262  ac_cv_lib_dld_dld_link=yes
17263else
17264  ac_cv_lib_dld_dld_link=no
17265fi
17266rm -f core conftest.err conftest.$ac_objext \
17267    conftest$ac_exeext conftest.$ac_ext
17268LIBS=$ac_check_lib_save_LIBS
17269fi
17270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17271$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17272if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17273  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17274fi
17275
17276
17277fi
17278
17279
17280fi
17281
17282
17283fi
17284
17285
17286fi
17287
17288
17289fi
17290
17291    ;;
17292  esac
17293
17294  if test "x$lt_cv_dlopen" != xno; then
17295    enable_dlopen=yes
17296  else
17297    enable_dlopen=no
17298  fi
17299
17300  case $lt_cv_dlopen in
17301  dlopen)
17302    save_CPPFLAGS="$CPPFLAGS"
17303    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17304
17305    save_LDFLAGS="$LDFLAGS"
17306    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17307
17308    save_LIBS="$LIBS"
17309    LIBS="$lt_cv_dlopen_libs $LIBS"
17310
17311    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17312$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17313if ${lt_cv_dlopen_self+:} false; then :
17314  $as_echo_n "(cached) " >&6
17315else
17316  	  if test "$cross_compiling" = yes; then :
17317  lt_cv_dlopen_self=cross
17318else
17319  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17320  lt_status=$lt_dlunknown
17321  cat > conftest.$ac_ext <<_LT_EOF
17322#line $LINENO "configure"
17323#include "confdefs.h"
17324
17325#if HAVE_DLFCN_H
17326#include <dlfcn.h>
17327#endif
17328
17329#include <stdio.h>
17330
17331#ifdef RTLD_GLOBAL
17332#  define LT_DLGLOBAL		RTLD_GLOBAL
17333#else
17334#  ifdef DL_GLOBAL
17335#    define LT_DLGLOBAL		DL_GLOBAL
17336#  else
17337#    define LT_DLGLOBAL		0
17338#  endif
17339#endif
17340
17341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17342   find out it does not work in some platform. */
17343#ifndef LT_DLLAZY_OR_NOW
17344#  ifdef RTLD_LAZY
17345#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17346#  else
17347#    ifdef DL_LAZY
17348#      define LT_DLLAZY_OR_NOW		DL_LAZY
17349#    else
17350#      ifdef RTLD_NOW
17351#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17352#      else
17353#        ifdef DL_NOW
17354#          define LT_DLLAZY_OR_NOW	DL_NOW
17355#        else
17356#          define LT_DLLAZY_OR_NOW	0
17357#        endif
17358#      endif
17359#    endif
17360#  endif
17361#endif
17362
17363/* When -fvisbility=hidden is used, assume the code has been annotated
17364   correspondingly for the symbols needed.  */
17365#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17366int fnord () __attribute__((visibility("default")));
17367#endif
17368
17369int fnord () { return 42; }
17370int main ()
17371{
17372  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17373  int status = $lt_dlunknown;
17374
17375  if (self)
17376    {
17377      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17378      else
17379        {
17380	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17381          else puts (dlerror ());
17382	}
17383      /* dlclose (self); */
17384    }
17385  else
17386    puts (dlerror ());
17387
17388  return status;
17389}
17390_LT_EOF
17391  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17392  (eval $ac_link) 2>&5
17393  ac_status=$?
17394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17395  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17396    (./conftest; exit; ) >&5 2>/dev/null
17397    lt_status=$?
17398    case x$lt_status in
17399      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17400      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17401      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17402    esac
17403  else :
17404    # compilation failed
17405    lt_cv_dlopen_self=no
17406  fi
17407fi
17408rm -fr conftest*
17409
17410
17411fi
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17413$as_echo "$lt_cv_dlopen_self" >&6; }
17414
17415    if test "x$lt_cv_dlopen_self" = xyes; then
17416      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17417      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17418$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17419if ${lt_cv_dlopen_self_static+:} false; then :
17420  $as_echo_n "(cached) " >&6
17421else
17422  	  if test "$cross_compiling" = yes; then :
17423  lt_cv_dlopen_self_static=cross
17424else
17425  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17426  lt_status=$lt_dlunknown
17427  cat > conftest.$ac_ext <<_LT_EOF
17428#line $LINENO "configure"
17429#include "confdefs.h"
17430
17431#if HAVE_DLFCN_H
17432#include <dlfcn.h>
17433#endif
17434
17435#include <stdio.h>
17436
17437#ifdef RTLD_GLOBAL
17438#  define LT_DLGLOBAL		RTLD_GLOBAL
17439#else
17440#  ifdef DL_GLOBAL
17441#    define LT_DLGLOBAL		DL_GLOBAL
17442#  else
17443#    define LT_DLGLOBAL		0
17444#  endif
17445#endif
17446
17447/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17448   find out it does not work in some platform. */
17449#ifndef LT_DLLAZY_OR_NOW
17450#  ifdef RTLD_LAZY
17451#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17452#  else
17453#    ifdef DL_LAZY
17454#      define LT_DLLAZY_OR_NOW		DL_LAZY
17455#    else
17456#      ifdef RTLD_NOW
17457#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17458#      else
17459#        ifdef DL_NOW
17460#          define LT_DLLAZY_OR_NOW	DL_NOW
17461#        else
17462#          define LT_DLLAZY_OR_NOW	0
17463#        endif
17464#      endif
17465#    endif
17466#  endif
17467#endif
17468
17469/* When -fvisbility=hidden is used, assume the code has been annotated
17470   correspondingly for the symbols needed.  */
17471#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17472int fnord () __attribute__((visibility("default")));
17473#endif
17474
17475int fnord () { return 42; }
17476int main ()
17477{
17478  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17479  int status = $lt_dlunknown;
17480
17481  if (self)
17482    {
17483      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17484      else
17485        {
17486	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17487          else puts (dlerror ());
17488	}
17489      /* dlclose (self); */
17490    }
17491  else
17492    puts (dlerror ());
17493
17494  return status;
17495}
17496_LT_EOF
17497  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17498  (eval $ac_link) 2>&5
17499  ac_status=$?
17500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17501  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17502    (./conftest; exit; ) >&5 2>/dev/null
17503    lt_status=$?
17504    case x$lt_status in
17505      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17506      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17507      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17508    esac
17509  else :
17510    # compilation failed
17511    lt_cv_dlopen_self_static=no
17512  fi
17513fi
17514rm -fr conftest*
17515
17516
17517fi
17518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17519$as_echo "$lt_cv_dlopen_self_static" >&6; }
17520    fi
17521
17522    CPPFLAGS="$save_CPPFLAGS"
17523    LDFLAGS="$save_LDFLAGS"
17524    LIBS="$save_LIBS"
17525    ;;
17526  esac
17527
17528  case $lt_cv_dlopen_self in
17529  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17530  *) enable_dlopen_self=unknown ;;
17531  esac
17532
17533  case $lt_cv_dlopen_self_static in
17534  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17535  *) enable_dlopen_self_static=unknown ;;
17536  esac
17537fi
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555striplib=
17556old_striplib=
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17558$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17559if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17560  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17561  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17563$as_echo "yes" >&6; }
17564else
17565# FIXME - insert some real tests, host_os isn't really good enough
17566  case $host_os in
17567  darwin*)
17568    if test -n "$STRIP" ; then
17569      striplib="$STRIP -x"
17570      old_striplib="$STRIP -S"
17571      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17572$as_echo "yes" >&6; }
17573    else
17574      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17575$as_echo "no" >&6; }
17576    fi
17577    ;;
17578  *)
17579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580$as_echo "no" >&6; }
17581    ;;
17582  esac
17583fi
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596  # Report which library types will actually be built
17597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17598$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17600$as_echo "$can_build_shared" >&6; }
17601
17602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17603$as_echo_n "checking whether to build shared libraries... " >&6; }
17604  test "$can_build_shared" = "no" && enable_shared=no
17605
17606  # On AIX, shared libraries and static libraries use the same namespace, and
17607  # are all built from PIC.
17608  case $host_os in
17609  aix3*)
17610    test "$enable_shared" = yes && enable_static=no
17611    if test -n "$RANLIB"; then
17612      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17613      postinstall_cmds='$RANLIB $lib'
17614    fi
17615    ;;
17616
17617  aix[4-9]*)
17618    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17619      test "$enable_shared" = yes && enable_static=no
17620    fi
17621    ;;
17622  esac
17623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17624$as_echo "$enable_shared" >&6; }
17625
17626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17627$as_echo_n "checking whether to build static libraries... " >&6; }
17628  # Make sure either enable_shared or enable_static is yes.
17629  test "$enable_shared" = yes || enable_static=yes
17630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17631$as_echo "$enable_static" >&6; }
17632
17633
17634
17635
17636fi
17637ac_ext=c
17638ac_cpp='$CPP $CPPFLAGS'
17639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642
17643CC="$lt_save_CC"
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659        ac_config_commands="$ac_config_commands libtool"
17660
17661
17662
17663
17664# Only expand once:
17665
17666
17667
17668
17669
17670# Define a configure option for an alternate module directory
17671
17672# Check whether --with-xorg-module-dir was given.
17673if test "${with_xorg_module_dir+set}" = set; then :
17674  withval=$with_xorg_module_dir; moduledir="$withval"
17675else
17676  moduledir="$libdir/xorg/modules"
17677fi
17678
17679
17680# Store the list of server defined optional extensions in REQUIRED_MODULES
17681
17682
17683	SAVE_CFLAGS="$CFLAGS"
17684	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17685	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686/* end confdefs.h.  */
17687
17688#include "xorg-server.h"
17689#if !defined RANDR
17690#error RANDR not defined
17691#endif
17692
17693int
17694main ()
17695{
17696
17697  ;
17698  return 0;
17699}
17700_ACEOF
17701if ac_fn_c_try_compile "$LINENO"; then :
17702  _EXT_CHECK=yes
17703else
17704  _EXT_CHECK=no
17705fi
17706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707	CFLAGS="$SAVE_CFLAGS"
17708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17709$as_echo_n "checking if RANDR is defined... " >&6; }
17710	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17711$as_echo "$_EXT_CHECK" >&6; }
17712	if test "$_EXT_CHECK" != no; then
17713		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17714	fi
17715
17716
17717
17718	SAVE_CFLAGS="$CFLAGS"
17719	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17720	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721/* end confdefs.h.  */
17722
17723#include "xorg-server.h"
17724#if !defined RENDER
17725#error RENDER not defined
17726#endif
17727
17728int
17729main ()
17730{
17731
17732  ;
17733  return 0;
17734}
17735_ACEOF
17736if ac_fn_c_try_compile "$LINENO"; then :
17737  _EXT_CHECK=yes
17738else
17739  _EXT_CHECK=no
17740fi
17741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742	CFLAGS="$SAVE_CFLAGS"
17743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17744$as_echo_n "checking if RENDER is defined... " >&6; }
17745	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17746$as_echo "$_EXT_CHECK" >&6; }
17747	if test "$_EXT_CHECK" != no; then
17748		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17749	fi
17750
17751
17752
17753	SAVE_CFLAGS="$CFLAGS"
17754	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17755	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756/* end confdefs.h.  */
17757
17758#include "xorg-server.h"
17759#if !defined XV
17760#error XV not defined
17761#endif
17762
17763int
17764main ()
17765{
17766
17767  ;
17768  return 0;
17769}
17770_ACEOF
17771if ac_fn_c_try_compile "$LINENO"; then :
17772  _EXT_CHECK=yes
17773else
17774  _EXT_CHECK=no
17775fi
17776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777	CFLAGS="$SAVE_CFLAGS"
17778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17779$as_echo_n "checking if XV is defined... " >&6; }
17780	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17781$as_echo "$_EXT_CHECK" >&6; }
17782	if test "$_EXT_CHECK" != no; then
17783		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17784	fi
17785
17786
17787# Obtain compiler/linker options for the driver dependencies
17788
17789pkg_failed=no
17790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17791$as_echo_n "checking for XORG... " >&6; }
17792
17793if test -n "$XORG_CFLAGS"; then
17794    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17795 elif test -n "$PKG_CONFIG"; then
17796    if test -n "$PKG_CONFIG" && \
17797    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17798  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17799  ac_status=$?
17800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17801  test $ac_status = 0; }; then
17802  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17803		      test "x$?" != "x0" && pkg_failed=yes
17804else
17805  pkg_failed=yes
17806fi
17807 else
17808    pkg_failed=untried
17809fi
17810if test -n "$XORG_LIBS"; then
17811    pkg_cv_XORG_LIBS="$XORG_LIBS"
17812 elif test -n "$PKG_CONFIG"; then
17813    if test -n "$PKG_CONFIG" && \
17814    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17815  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17816  ac_status=$?
17817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17818  test $ac_status = 0; }; then
17819  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17820		      test "x$?" != "x0" && pkg_failed=yes
17821else
17822  pkg_failed=yes
17823fi
17824 else
17825    pkg_failed=untried
17826fi
17827
17828
17829
17830if test $pkg_failed = yes; then
17831   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832$as_echo "no" >&6; }
17833
17834if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17835        _pkg_short_errors_supported=yes
17836else
17837        _pkg_short_errors_supported=no
17838fi
17839        if test $_pkg_short_errors_supported = yes; then
17840	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17841        else
17842	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17843        fi
17844	# Put the nasty error message in config.log where it belongs
17845	echo "$XORG_PKG_ERRORS" >&5
17846
17847	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17848
17849$XORG_PKG_ERRORS
17850
17851Consider adjusting the PKG_CONFIG_PATH environment variable if you
17852installed software in a non-standard prefix.
17853
17854Alternatively, you may set the environment variables XORG_CFLAGS
17855and XORG_LIBS to avoid the need to call pkg-config.
17856See the pkg-config man page for more details." "$LINENO" 5
17857elif test $pkg_failed = untried; then
17858     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17859$as_echo "no" >&6; }
17860	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17862as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17863is in your PATH or set the PKG_CONFIG environment variable to the full
17864path to pkg-config.
17865
17866Alternatively, you may set the environment variables XORG_CFLAGS
17867and XORG_LIBS to avoid the need to call pkg-config.
17868See the pkg-config man page for more details.
17869
17870To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17871See \`config.log' for more details" "$LINENO" 5; }
17872else
17873	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17874	XORG_LIBS=$pkg_cv_XORG_LIBS
17875        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17876$as_echo "yes" >&6; }
17877
17878fi
17879
17880# Checks for libraries.
17881
17882
17883
17884DRIVER_NAME=newport
17885
17886
17887ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
17888
17889cat >confcache <<\_ACEOF
17890# This file is a shell script that caches the results of configure
17891# tests run on this system so they can be shared between configure
17892# scripts and configure runs, see configure's option --config-cache.
17893# It is not useful on other systems.  If it contains results you don't
17894# want to keep, you may remove or edit it.
17895#
17896# config.status only pays attention to the cache file if you give it
17897# the --recheck option to rerun configure.
17898#
17899# `ac_cv_env_foo' variables (set or unset) will be overridden when
17900# loading this file, other *unset* `ac_cv_foo' will be assigned the
17901# following values.
17902
17903_ACEOF
17904
17905# The following way of writing the cache mishandles newlines in values,
17906# but we know of no workaround that is simple, portable, and efficient.
17907# So, we kill variables containing newlines.
17908# Ultrix sh set writes to stderr and can't be redirected directly,
17909# and sets the high bit in the cache file unless we assign to the vars.
17910(
17911  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17912    eval ac_val=\$$ac_var
17913    case $ac_val in #(
17914    *${as_nl}*)
17915      case $ac_var in #(
17916      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17917$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17918      esac
17919      case $ac_var in #(
17920      _ | IFS | as_nl) ;; #(
17921      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17922      *) { eval $ac_var=; unset $ac_var;} ;;
17923      esac ;;
17924    esac
17925  done
17926
17927  (set) 2>&1 |
17928    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17929    *${as_nl}ac_space=\ *)
17930      # `set' does not quote correctly, so add quotes: double-quote
17931      # substitution turns \\\\ into \\, and sed turns \\ into \.
17932      sed -n \
17933	"s/'/'\\\\''/g;
17934	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17935      ;; #(
17936    *)
17937      # `set' quotes correctly as required by POSIX, so do not add quotes.
17938      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17939      ;;
17940    esac |
17941    sort
17942) |
17943  sed '
17944     /^ac_cv_env_/b end
17945     t clear
17946     :clear
17947     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17948     t end
17949     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17950     :end' >>confcache
17951if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17952  if test -w "$cache_file"; then
17953    if test "x$cache_file" != "x/dev/null"; then
17954      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17955$as_echo "$as_me: updating cache $cache_file" >&6;}
17956      if test ! -f "$cache_file" || test -h "$cache_file"; then
17957	cat confcache >"$cache_file"
17958      else
17959        case $cache_file in #(
17960        */* | ?:*)
17961	  mv -f confcache "$cache_file"$$ &&
17962	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17963        *)
17964	  mv -f confcache "$cache_file" ;;
17965	esac
17966      fi
17967    fi
17968  else
17969    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17970$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17971  fi
17972fi
17973rm -f confcache
17974
17975test "x$prefix" = xNONE && prefix=$ac_default_prefix
17976# Let make expand exec_prefix.
17977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17978
17979DEFS=-DHAVE_CONFIG_H
17980
17981ac_libobjs=
17982ac_ltlibobjs=
17983U=
17984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17985  # 1. Remove the extension, and $U if already installed.
17986  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17987  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17988  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17989  #    will be set to the directory where LIBOBJS objects are built.
17990  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17991  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17992done
17993LIBOBJS=$ac_libobjs
17994
17995LTLIBOBJS=$ac_ltlibobjs
17996
17997
17998 if test -n "$EXEEXT"; then
17999  am__EXEEXT_TRUE=
18000  am__EXEEXT_FALSE='#'
18001else
18002  am__EXEEXT_TRUE='#'
18003  am__EXEEXT_FALSE=
18004fi
18005
18006if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18007  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18008Usually this means the macro was only invoked conditionally." "$LINENO" 5
18009fi
18010if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18011  as_fn_error $? "conditional \"AMDEP\" was never defined.
18012Usually this means the macro was only invoked conditionally." "$LINENO" 5
18013fi
18014if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18015  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18016Usually this means the macro was only invoked conditionally." "$LINENO" 5
18017fi
18018
18019: "${CONFIG_STATUS=./config.status}"
18020ac_write_fail=0
18021ac_clean_files_save=$ac_clean_files
18022ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18023{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18024$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18025as_write_fail=0
18026cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18027#! $SHELL
18028# Generated by $as_me.
18029# Run this file to recreate the current configuration.
18030# Compiler output produced by configure, useful for debugging
18031# configure, is in config.log if it exists.
18032
18033debug=false
18034ac_cs_recheck=false
18035ac_cs_silent=false
18036
18037SHELL=\${CONFIG_SHELL-$SHELL}
18038export SHELL
18039_ASEOF
18040cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18041## -------------------- ##
18042## M4sh Initialization. ##
18043## -------------------- ##
18044
18045# Be more Bourne compatible
18046DUALCASE=1; export DUALCASE # for MKS sh
18047if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18048  emulate sh
18049  NULLCMD=:
18050  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18051  # is contrary to our usage.  Disable this feature.
18052  alias -g '${1+"$@"}'='"$@"'
18053  setopt NO_GLOB_SUBST
18054else
18055  case `(set -o) 2>/dev/null` in #(
18056  *posix*) :
18057    set -o posix ;; #(
18058  *) :
18059     ;;
18060esac
18061fi
18062
18063
18064as_nl='
18065'
18066export as_nl
18067# Printing a long string crashes Solaris 7 /usr/bin/printf.
18068as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18069as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18071# Prefer a ksh shell builtin over an external printf program on Solaris,
18072# but without wasting forks for bash or zsh.
18073if test -z "$BASH_VERSION$ZSH_VERSION" \
18074    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18075  as_echo='print -r --'
18076  as_echo_n='print -rn --'
18077elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18078  as_echo='printf %s\n'
18079  as_echo_n='printf %s'
18080else
18081  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18082    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18083    as_echo_n='/usr/ucb/echo -n'
18084  else
18085    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18086    as_echo_n_body='eval
18087      arg=$1;
18088      case $arg in #(
18089      *"$as_nl"*)
18090	expr "X$arg" : "X\\(.*\\)$as_nl";
18091	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18092      esac;
18093      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18094    '
18095    export as_echo_n_body
18096    as_echo_n='sh -c $as_echo_n_body as_echo'
18097  fi
18098  export as_echo_body
18099  as_echo='sh -c $as_echo_body as_echo'
18100fi
18101
18102# The user is always right.
18103if test "${PATH_SEPARATOR+set}" != set; then
18104  PATH_SEPARATOR=:
18105  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18106    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18107      PATH_SEPARATOR=';'
18108  }
18109fi
18110
18111
18112# IFS
18113# We need space, tab and new line, in precisely that order.  Quoting is
18114# there to prevent editors from complaining about space-tab.
18115# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18116# splitting by setting IFS to empty value.)
18117IFS=" ""	$as_nl"
18118
18119# Find who we are.  Look in the path if we contain no directory separator.
18120as_myself=
18121case $0 in #((
18122  *[\\/]* ) as_myself=$0 ;;
18123  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18124for as_dir in $PATH
18125do
18126  IFS=$as_save_IFS
18127  test -z "$as_dir" && as_dir=.
18128    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18129  done
18130IFS=$as_save_IFS
18131
18132     ;;
18133esac
18134# We did not find ourselves, most probably we were run as `sh COMMAND'
18135# in which case we are not to be found in the path.
18136if test "x$as_myself" = x; then
18137  as_myself=$0
18138fi
18139if test ! -f "$as_myself"; then
18140  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18141  exit 1
18142fi
18143
18144# Unset variables that we do not need and which cause bugs (e.g. in
18145# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18146# suppresses any "Segmentation fault" message there.  '((' could
18147# trigger a bug in pdksh 5.2.14.
18148for as_var in BASH_ENV ENV MAIL MAILPATH
18149do eval test x\${$as_var+set} = xset \
18150  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18151done
18152PS1='$ '
18153PS2='> '
18154PS4='+ '
18155
18156# NLS nuisances.
18157LC_ALL=C
18158export LC_ALL
18159LANGUAGE=C
18160export LANGUAGE
18161
18162# CDPATH.
18163(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18164
18165
18166# as_fn_error STATUS ERROR [LINENO LOG_FD]
18167# ----------------------------------------
18168# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18169# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18170# script with STATUS, using 1 if that was 0.
18171as_fn_error ()
18172{
18173  as_status=$1; test $as_status -eq 0 && as_status=1
18174  if test "$4"; then
18175    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18176    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18177  fi
18178  $as_echo "$as_me: error: $2" >&2
18179  as_fn_exit $as_status
18180} # as_fn_error
18181
18182
18183# as_fn_set_status STATUS
18184# -----------------------
18185# Set $? to STATUS, without forking.
18186as_fn_set_status ()
18187{
18188  return $1
18189} # as_fn_set_status
18190
18191# as_fn_exit STATUS
18192# -----------------
18193# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18194as_fn_exit ()
18195{
18196  set +e
18197  as_fn_set_status $1
18198  exit $1
18199} # as_fn_exit
18200
18201# as_fn_unset VAR
18202# ---------------
18203# Portably unset VAR.
18204as_fn_unset ()
18205{
18206  { eval $1=; unset $1;}
18207}
18208as_unset=as_fn_unset
18209# as_fn_append VAR VALUE
18210# ----------------------
18211# Append the text in VALUE to the end of the definition contained in VAR. Take
18212# advantage of any shell optimizations that allow amortized linear growth over
18213# repeated appends, instead of the typical quadratic growth present in naive
18214# implementations.
18215if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18216  eval 'as_fn_append ()
18217  {
18218    eval $1+=\$2
18219  }'
18220else
18221  as_fn_append ()
18222  {
18223    eval $1=\$$1\$2
18224  }
18225fi # as_fn_append
18226
18227# as_fn_arith ARG...
18228# ------------------
18229# Perform arithmetic evaluation on the ARGs, and store the result in the
18230# global $as_val. Take advantage of shells that can avoid forks. The arguments
18231# must be portable across $(()) and expr.
18232if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18233  eval 'as_fn_arith ()
18234  {
18235    as_val=$(( $* ))
18236  }'
18237else
18238  as_fn_arith ()
18239  {
18240    as_val=`expr "$@" || test $? -eq 1`
18241  }
18242fi # as_fn_arith
18243
18244
18245if expr a : '\(a\)' >/dev/null 2>&1 &&
18246   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18247  as_expr=expr
18248else
18249  as_expr=false
18250fi
18251
18252if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18253  as_basename=basename
18254else
18255  as_basename=false
18256fi
18257
18258if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18259  as_dirname=dirname
18260else
18261  as_dirname=false
18262fi
18263
18264as_me=`$as_basename -- "$0" ||
18265$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18266	 X"$0" : 'X\(//\)$' \| \
18267	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18268$as_echo X/"$0" |
18269    sed '/^.*\/\([^/][^/]*\)\/*$/{
18270	    s//\1/
18271	    q
18272	  }
18273	  /^X\/\(\/\/\)$/{
18274	    s//\1/
18275	    q
18276	  }
18277	  /^X\/\(\/\).*/{
18278	    s//\1/
18279	    q
18280	  }
18281	  s/.*/./; q'`
18282
18283# Avoid depending upon Character Ranges.
18284as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18285as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18286as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18287as_cr_digits='0123456789'
18288as_cr_alnum=$as_cr_Letters$as_cr_digits
18289
18290ECHO_C= ECHO_N= ECHO_T=
18291case `echo -n x` in #(((((
18292-n*)
18293  case `echo 'xy\c'` in
18294  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18295  xy)  ECHO_C='\c';;
18296  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18297       ECHO_T='	';;
18298  esac;;
18299*)
18300  ECHO_N='-n';;
18301esac
18302
18303rm -f conf$$ conf$$.exe conf$$.file
18304if test -d conf$$.dir; then
18305  rm -f conf$$.dir/conf$$.file
18306else
18307  rm -f conf$$.dir
18308  mkdir conf$$.dir 2>/dev/null
18309fi
18310if (echo >conf$$.file) 2>/dev/null; then
18311  if ln -s conf$$.file conf$$ 2>/dev/null; then
18312    as_ln_s='ln -s'
18313    # ... but there are two gotchas:
18314    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18315    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18316    # In both cases, we have to default to `cp -pR'.
18317    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18318      as_ln_s='cp -pR'
18319  elif ln conf$$.file conf$$ 2>/dev/null; then
18320    as_ln_s=ln
18321  else
18322    as_ln_s='cp -pR'
18323  fi
18324else
18325  as_ln_s='cp -pR'
18326fi
18327rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18328rmdir conf$$.dir 2>/dev/null
18329
18330
18331# as_fn_mkdir_p
18332# -------------
18333# Create "$as_dir" as a directory, including parents if necessary.
18334as_fn_mkdir_p ()
18335{
18336
18337  case $as_dir in #(
18338  -*) as_dir=./$as_dir;;
18339  esac
18340  test -d "$as_dir" || eval $as_mkdir_p || {
18341    as_dirs=
18342    while :; do
18343      case $as_dir in #(
18344      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18345      *) as_qdir=$as_dir;;
18346      esac
18347      as_dirs="'$as_qdir' $as_dirs"
18348      as_dir=`$as_dirname -- "$as_dir" ||
18349$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18350	 X"$as_dir" : 'X\(//\)[^/]' \| \
18351	 X"$as_dir" : 'X\(//\)$' \| \
18352	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18353$as_echo X"$as_dir" |
18354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18355	    s//\1/
18356	    q
18357	  }
18358	  /^X\(\/\/\)[^/].*/{
18359	    s//\1/
18360	    q
18361	  }
18362	  /^X\(\/\/\)$/{
18363	    s//\1/
18364	    q
18365	  }
18366	  /^X\(\/\).*/{
18367	    s//\1/
18368	    q
18369	  }
18370	  s/.*/./; q'`
18371      test -d "$as_dir" && break
18372    done
18373    test -z "$as_dirs" || eval "mkdir $as_dirs"
18374  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18375
18376
18377} # as_fn_mkdir_p
18378if mkdir -p . 2>/dev/null; then
18379  as_mkdir_p='mkdir -p "$as_dir"'
18380else
18381  test -d ./-p && rmdir ./-p
18382  as_mkdir_p=false
18383fi
18384
18385
18386# as_fn_executable_p FILE
18387# -----------------------
18388# Test if FILE is an executable regular file.
18389as_fn_executable_p ()
18390{
18391  test -f "$1" && test -x "$1"
18392} # as_fn_executable_p
18393as_test_x='test -x'
18394as_executable_p=as_fn_executable_p
18395
18396# Sed expression to map a string onto a valid CPP name.
18397as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18398
18399# Sed expression to map a string onto a valid variable name.
18400as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18401
18402
18403exec 6>&1
18404## ----------------------------------- ##
18405## Main body of $CONFIG_STATUS script. ##
18406## ----------------------------------- ##
18407_ASEOF
18408test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18409
18410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18411# Save the log message, to keep $0 and so on meaningful, and to
18412# report actual input values of CONFIG_FILES etc. instead of their
18413# values after options handling.
18414ac_log="
18415This file was extended by xf86-video-newport $as_me 0.2.4, which was
18416generated by GNU Autoconf 2.69.  Invocation command line was
18417
18418  CONFIG_FILES    = $CONFIG_FILES
18419  CONFIG_HEADERS  = $CONFIG_HEADERS
18420  CONFIG_LINKS    = $CONFIG_LINKS
18421  CONFIG_COMMANDS = $CONFIG_COMMANDS
18422  $ $0 $@
18423
18424on `(hostname || uname -n) 2>/dev/null | sed 1q`
18425"
18426
18427_ACEOF
18428
18429case $ac_config_files in *"
18430"*) set x $ac_config_files; shift; ac_config_files=$*;;
18431esac
18432
18433case $ac_config_headers in *"
18434"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18435esac
18436
18437
18438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18439# Files that config.status was made for.
18440config_files="$ac_config_files"
18441config_headers="$ac_config_headers"
18442config_commands="$ac_config_commands"
18443
18444_ACEOF
18445
18446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18447ac_cs_usage="\
18448\`$as_me' instantiates files and other configuration actions
18449from templates according to the current configuration.  Unless the files
18450and actions are specified as TAGs, all are instantiated by default.
18451
18452Usage: $0 [OPTION]... [TAG]...
18453
18454  -h, --help       print this help, then exit
18455  -V, --version    print version number and configuration settings, then exit
18456      --config     print configuration, then exit
18457  -q, --quiet, --silent
18458                   do not print progress messages
18459  -d, --debug      don't remove temporary files
18460      --recheck    update $as_me by reconfiguring in the same conditions
18461      --file=FILE[:TEMPLATE]
18462                   instantiate the configuration file FILE
18463      --header=FILE[:TEMPLATE]
18464                   instantiate the configuration header FILE
18465
18466Configuration files:
18467$config_files
18468
18469Configuration headers:
18470$config_headers
18471
18472Configuration commands:
18473$config_commands
18474
18475Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18476
18477_ACEOF
18478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18479ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18480ac_cs_version="\\
18481xf86-video-newport config.status 0.2.4
18482configured by $0, generated by GNU Autoconf 2.69,
18483  with options \\"\$ac_cs_config\\"
18484
18485Copyright (C) 2012 Free Software Foundation, Inc.
18486This config.status script is free software; the Free Software Foundation
18487gives unlimited permission to copy, distribute and modify it."
18488
18489ac_pwd='$ac_pwd'
18490srcdir='$srcdir'
18491INSTALL='$INSTALL'
18492MKDIR_P='$MKDIR_P'
18493AWK='$AWK'
18494test -n "\$AWK" || AWK=awk
18495_ACEOF
18496
18497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18498# The default lists apply if the user does not specify any file.
18499ac_need_defaults=:
18500while test $# != 0
18501do
18502  case $1 in
18503  --*=?*)
18504    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18505    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18506    ac_shift=:
18507    ;;
18508  --*=)
18509    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18510    ac_optarg=
18511    ac_shift=:
18512    ;;
18513  *)
18514    ac_option=$1
18515    ac_optarg=$2
18516    ac_shift=shift
18517    ;;
18518  esac
18519
18520  case $ac_option in
18521  # Handling of the options.
18522  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18523    ac_cs_recheck=: ;;
18524  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18525    $as_echo "$ac_cs_version"; exit ;;
18526  --config | --confi | --conf | --con | --co | --c )
18527    $as_echo "$ac_cs_config"; exit ;;
18528  --debug | --debu | --deb | --de | --d | -d )
18529    debug=: ;;
18530  --file | --fil | --fi | --f )
18531    $ac_shift
18532    case $ac_optarg in
18533    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18534    '') as_fn_error $? "missing file argument" ;;
18535    esac
18536    as_fn_append CONFIG_FILES " '$ac_optarg'"
18537    ac_need_defaults=false;;
18538  --header | --heade | --head | --hea )
18539    $ac_shift
18540    case $ac_optarg in
18541    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18542    esac
18543    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18544    ac_need_defaults=false;;
18545  --he | --h)
18546    # Conflict between --help and --header
18547    as_fn_error $? "ambiguous option: \`$1'
18548Try \`$0 --help' for more information.";;
18549  --help | --hel | -h )
18550    $as_echo "$ac_cs_usage"; exit ;;
18551  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18552  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18553    ac_cs_silent=: ;;
18554
18555  # This is an error.
18556  -*) as_fn_error $? "unrecognized option: \`$1'
18557Try \`$0 --help' for more information." ;;
18558
18559  *) as_fn_append ac_config_targets " $1"
18560     ac_need_defaults=false ;;
18561
18562  esac
18563  shift
18564done
18565
18566ac_configure_extra_args=
18567
18568if $ac_cs_silent; then
18569  exec 6>/dev/null
18570  ac_configure_extra_args="$ac_configure_extra_args --silent"
18571fi
18572
18573_ACEOF
18574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18575if \$ac_cs_recheck; then
18576  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18577  shift
18578  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18579  CONFIG_SHELL='$SHELL'
18580  export CONFIG_SHELL
18581  exec "\$@"
18582fi
18583
18584_ACEOF
18585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18586exec 5>>config.log
18587{
18588  echo
18589  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18590## Running $as_me. ##
18591_ASBOX
18592  $as_echo "$ac_log"
18593} >&5
18594
18595_ACEOF
18596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18597#
18598# INIT-COMMANDS
18599#
18600AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18601
18602
18603# The HP-UX ksh and POSIX shell print the target directory to stdout
18604# if CDPATH is set.
18605(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18606
18607sed_quote_subst='$sed_quote_subst'
18608double_quote_subst='$double_quote_subst'
18609delay_variable_subst='$delay_variable_subst'
18610enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18611macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18612macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18613enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18614pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18615enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18616SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18617ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18618PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18619host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18620host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18621host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18622build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18623build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18624build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18625SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18626Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18627GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18628EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18629FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18630LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18631NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18632LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18633max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18634ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18635exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18636lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18637lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18638lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18639lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18640lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18641reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18642reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18643OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18644deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18645file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18646file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18647want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18648DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18649sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18650AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18651AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18652archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18653STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18654RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18655old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18656old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18657old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18658lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18659CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18660CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18661compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18662GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18663lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18664lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18665lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18666lt_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"`'
18667nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18668lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18669objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18670MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18671lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18672lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18673lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18674lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18675lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18676need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18677MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18678DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18679NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18680LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18681OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18682OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18683libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18684shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18685extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18686archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18687enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18688export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18689whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18690compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18691old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18692old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18693archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18694archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18695module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18696module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18697with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18698allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18699no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18700hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18701hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18702hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18703hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18704hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18705hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18706hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18707inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18708link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18709always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18710export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18711exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18712include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18713prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18714postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18715file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18716variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18717need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18718need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18719version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18720runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18721shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18722shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18723libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18724library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18725soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18726install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18727postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18728postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18729finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18730finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18731hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18732sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18733sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18734hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18735enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18736enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18737enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18738old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18739striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18740
18741LTCC='$LTCC'
18742LTCFLAGS='$LTCFLAGS'
18743compiler='$compiler_DEFAULT'
18744
18745# A function that is used when there is no print builtin or printf.
18746func_fallback_echo ()
18747{
18748  eval 'cat <<_LTECHO_EOF
18749\$1
18750_LTECHO_EOF'
18751}
18752
18753# Quote evaled strings.
18754for var in SHELL \
18755ECHO \
18756PATH_SEPARATOR \
18757SED \
18758GREP \
18759EGREP \
18760FGREP \
18761LD \
18762NM \
18763LN_S \
18764lt_SP2NL \
18765lt_NL2SP \
18766reload_flag \
18767OBJDUMP \
18768deplibs_check_method \
18769file_magic_cmd \
18770file_magic_glob \
18771want_nocaseglob \
18772DLLTOOL \
18773sharedlib_from_linklib_cmd \
18774AR \
18775AR_FLAGS \
18776archiver_list_spec \
18777STRIP \
18778RANLIB \
18779CC \
18780CFLAGS \
18781compiler \
18782lt_cv_sys_global_symbol_pipe \
18783lt_cv_sys_global_symbol_to_cdecl \
18784lt_cv_sys_global_symbol_to_c_name_address \
18785lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18786nm_file_list_spec \
18787lt_prog_compiler_no_builtin_flag \
18788lt_prog_compiler_pic \
18789lt_prog_compiler_wl \
18790lt_prog_compiler_static \
18791lt_cv_prog_compiler_c_o \
18792need_locks \
18793MANIFEST_TOOL \
18794DSYMUTIL \
18795NMEDIT \
18796LIPO \
18797OTOOL \
18798OTOOL64 \
18799shrext_cmds \
18800export_dynamic_flag_spec \
18801whole_archive_flag_spec \
18802compiler_needs_object \
18803with_gnu_ld \
18804allow_undefined_flag \
18805no_undefined_flag \
18806hardcode_libdir_flag_spec \
18807hardcode_libdir_separator \
18808exclude_expsyms \
18809include_expsyms \
18810file_list_spec \
18811variables_saved_for_relink \
18812libname_spec \
18813library_names_spec \
18814soname_spec \
18815install_override_mode \
18816finish_eval \
18817old_striplib \
18818striplib; do
18819    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18820    *[\\\\\\\`\\"\\\$]*)
18821      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18822      ;;
18823    *)
18824      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18825      ;;
18826    esac
18827done
18828
18829# Double-quote double-evaled strings.
18830for var in reload_cmds \
18831old_postinstall_cmds \
18832old_postuninstall_cmds \
18833old_archive_cmds \
18834extract_expsyms_cmds \
18835old_archive_from_new_cmds \
18836old_archive_from_expsyms_cmds \
18837archive_cmds \
18838archive_expsym_cmds \
18839module_cmds \
18840module_expsym_cmds \
18841export_symbols_cmds \
18842prelink_cmds \
18843postlink_cmds \
18844postinstall_cmds \
18845postuninstall_cmds \
18846finish_cmds \
18847sys_lib_search_path_spec \
18848sys_lib_dlsearch_path_spec; do
18849    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18850    *[\\\\\\\`\\"\\\$]*)
18851      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18852      ;;
18853    *)
18854      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18855      ;;
18856    esac
18857done
18858
18859ac_aux_dir='$ac_aux_dir'
18860xsi_shell='$xsi_shell'
18861lt_shell_append='$lt_shell_append'
18862
18863# See if we are running on zsh, and set the options which allow our
18864# commands through without removal of \ escapes INIT.
18865if test -n "\${ZSH_VERSION+set}" ; then
18866   setopt NO_GLOB_SUBST
18867fi
18868
18869
18870    PACKAGE='$PACKAGE'
18871    VERSION='$VERSION'
18872    TIMESTAMP='$TIMESTAMP'
18873    RM='$RM'
18874    ofile='$ofile'
18875
18876
18877
18878
18879_ACEOF
18880
18881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18882
18883# Handling of arguments.
18884for ac_config_target in $ac_config_targets
18885do
18886  case $ac_config_target in
18887    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18888    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18889    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18890    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18891    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18892    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18893
18894  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18895  esac
18896done
18897
18898
18899# If the user did not use the arguments to specify the items to instantiate,
18900# then the envvar interface is used.  Set only those that are not.
18901# We use the long form for the default assignment because of an extremely
18902# bizarre bug on SunOS 4.1.3.
18903if $ac_need_defaults; then
18904  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18905  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18906  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18907fi
18908
18909# Have a temporary directory for convenience.  Make it in the build tree
18910# simply because there is no reason against having it here, and in addition,
18911# creating and moving files from /tmp can sometimes cause problems.
18912# Hook for its removal unless debugging.
18913# Note that there is a small window in which the directory will not be cleaned:
18914# after its creation but before its name has been assigned to `$tmp'.
18915$debug ||
18916{
18917  tmp= ac_tmp=
18918  trap 'exit_status=$?
18919  : "${ac_tmp:=$tmp}"
18920  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18921' 0
18922  trap 'as_fn_exit 1' 1 2 13 15
18923}
18924# Create a (secure) tmp directory for tmp files.
18925
18926{
18927  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18928  test -d "$tmp"
18929}  ||
18930{
18931  tmp=./conf$$-$RANDOM
18932  (umask 077 && mkdir "$tmp")
18933} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18934ac_tmp=$tmp
18935
18936# Set up the scripts for CONFIG_FILES section.
18937# No need to generate them if there are no CONFIG_FILES.
18938# This happens for instance with `./config.status config.h'.
18939if test -n "$CONFIG_FILES"; then
18940
18941
18942ac_cr=`echo X | tr X '\015'`
18943# On cygwin, bash can eat \r inside `` if the user requested igncr.
18944# But we know of no other shell where ac_cr would be empty at this
18945# point, so we can use a bashism as a fallback.
18946if test "x$ac_cr" = x; then
18947  eval ac_cr=\$\'\\r\'
18948fi
18949ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18950if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18951  ac_cs_awk_cr='\\r'
18952else
18953  ac_cs_awk_cr=$ac_cr
18954fi
18955
18956echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18957_ACEOF
18958
18959
18960{
18961  echo "cat >conf$$subs.awk <<_ACEOF" &&
18962  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18963  echo "_ACEOF"
18964} >conf$$subs.sh ||
18965  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18966ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18967ac_delim='%!_!# '
18968for ac_last_try in false false false false false :; do
18969  . ./conf$$subs.sh ||
18970    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18971
18972  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18973  if test $ac_delim_n = $ac_delim_num; then
18974    break
18975  elif $ac_last_try; then
18976    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18977  else
18978    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18979  fi
18980done
18981rm -f conf$$subs.sh
18982
18983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18984cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18985_ACEOF
18986sed -n '
18987h
18988s/^/S["/; s/!.*/"]=/
18989p
18990g
18991s/^[^!]*!//
18992:repl
18993t repl
18994s/'"$ac_delim"'$//
18995t delim
18996:nl
18997h
18998s/\(.\{148\}\)..*/\1/
18999t more1
19000s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19001p
19002n
19003b repl
19004:more1
19005s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19006p
19007g
19008s/.\{148\}//
19009t nl
19010:delim
19011h
19012s/\(.\{148\}\)..*/\1/
19013t more2
19014s/["\\]/\\&/g; s/^/"/; s/$/"/
19015p
19016b
19017:more2
19018s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19019p
19020g
19021s/.\{148\}//
19022t delim
19023' <conf$$subs.awk | sed '
19024/^[^""]/{
19025  N
19026  s/\n//
19027}
19028' >>$CONFIG_STATUS || ac_write_fail=1
19029rm -f conf$$subs.awk
19030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19031_ACAWK
19032cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19033  for (key in S) S_is_set[key] = 1
19034  FS = ""
19035
19036}
19037{
19038  line = $ 0
19039  nfields = split(line, field, "@")
19040  substed = 0
19041  len = length(field[1])
19042  for (i = 2; i < nfields; i++) {
19043    key = field[i]
19044    keylen = length(key)
19045    if (S_is_set[key]) {
19046      value = S[key]
19047      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19048      len += length(value) + length(field[++i])
19049      substed = 1
19050    } else
19051      len += 1 + keylen
19052  }
19053
19054  print line
19055}
19056
19057_ACAWK
19058_ACEOF
19059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19060if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19061  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19062else
19063  cat
19064fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19065  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19066_ACEOF
19067
19068# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19069# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19070# trailing colons and then remove the whole line if VPATH becomes empty
19071# (actually we leave an empty line to preserve line numbers).
19072if test "x$srcdir" = x.; then
19073  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19074h
19075s///
19076s/^/:/
19077s/[	 ]*$/:/
19078s/:\$(srcdir):/:/g
19079s/:\${srcdir}:/:/g
19080s/:@srcdir@:/:/g
19081s/^:*//
19082s/:*$//
19083x
19084s/\(=[	 ]*\).*/\1/
19085G
19086s/\n//
19087s/^[^=]*=[	 ]*$//
19088}'
19089fi
19090
19091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19092fi # test -n "$CONFIG_FILES"
19093
19094# Set up the scripts for CONFIG_HEADERS section.
19095# No need to generate them if there are no CONFIG_HEADERS.
19096# This happens for instance with `./config.status Makefile'.
19097if test -n "$CONFIG_HEADERS"; then
19098cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19099BEGIN {
19100_ACEOF
19101
19102# Transform confdefs.h into an awk script `defines.awk', embedded as
19103# here-document in config.status, that substitutes the proper values into
19104# config.h.in to produce config.h.
19105
19106# Create a delimiter string that does not exist in confdefs.h, to ease
19107# handling of long lines.
19108ac_delim='%!_!# '
19109for ac_last_try in false false :; do
19110  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19111  if test -z "$ac_tt"; then
19112    break
19113  elif $ac_last_try; then
19114    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19115  else
19116    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19117  fi
19118done
19119
19120# For the awk script, D is an array of macro values keyed by name,
19121# likewise P contains macro parameters if any.  Preserve backslash
19122# newline sequences.
19123
19124ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19125sed -n '
19126s/.\{148\}/&'"$ac_delim"'/g
19127t rset
19128:rset
19129s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19130t def
19131d
19132:def
19133s/\\$//
19134t bsnl
19135s/["\\]/\\&/g
19136s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19137D["\1"]=" \3"/p
19138s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19139d
19140:bsnl
19141s/["\\]/\\&/g
19142s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19143D["\1"]=" \3\\\\\\n"\\/p
19144t cont
19145s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19146t cont
19147d
19148:cont
19149n
19150s/.\{148\}/&'"$ac_delim"'/g
19151t clear
19152:clear
19153s/\\$//
19154t bsnlc
19155s/["\\]/\\&/g; s/^/"/; s/$/"/p
19156d
19157:bsnlc
19158s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19159b cont
19160' <confdefs.h | sed '
19161s/'"$ac_delim"'/"\\\
19162"/g' >>$CONFIG_STATUS || ac_write_fail=1
19163
19164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19165  for (key in D) D_is_set[key] = 1
19166  FS = ""
19167}
19168/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19169  line = \$ 0
19170  split(line, arg, " ")
19171  if (arg[1] == "#") {
19172    defundef = arg[2]
19173    mac1 = arg[3]
19174  } else {
19175    defundef = substr(arg[1], 2)
19176    mac1 = arg[2]
19177  }
19178  split(mac1, mac2, "(") #)
19179  macro = mac2[1]
19180  prefix = substr(line, 1, index(line, defundef) - 1)
19181  if (D_is_set[macro]) {
19182    # Preserve the white space surrounding the "#".
19183    print prefix "define", macro P[macro] D[macro]
19184    next
19185  } else {
19186    # Replace #undef with comments.  This is necessary, for example,
19187    # in the case of _POSIX_SOURCE, which is predefined and required
19188    # on some systems where configure will not decide to define it.
19189    if (defundef == "undef") {
19190      print "/*", prefix defundef, macro, "*/"
19191      next
19192    }
19193  }
19194}
19195{ print }
19196_ACAWK
19197_ACEOF
19198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19199  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19200fi # test -n "$CONFIG_HEADERS"
19201
19202
19203eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19204shift
19205for ac_tag
19206do
19207  case $ac_tag in
19208  :[FHLC]) ac_mode=$ac_tag; continue;;
19209  esac
19210  case $ac_mode$ac_tag in
19211  :[FHL]*:*);;
19212  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19213  :[FH]-) ac_tag=-:-;;
19214  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19215  esac
19216  ac_save_IFS=$IFS
19217  IFS=:
19218  set x $ac_tag
19219  IFS=$ac_save_IFS
19220  shift
19221  ac_file=$1
19222  shift
19223
19224  case $ac_mode in
19225  :L) ac_source=$1;;
19226  :[FH])
19227    ac_file_inputs=
19228    for ac_f
19229    do
19230      case $ac_f in
19231      -) ac_f="$ac_tmp/stdin";;
19232      *) # Look for the file first in the build tree, then in the source tree
19233	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19234	 # because $ac_f cannot contain `:'.
19235	 test -f "$ac_f" ||
19236	   case $ac_f in
19237	   [\\/$]*) false;;
19238	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19239	   esac ||
19240	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19241      esac
19242      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19243      as_fn_append ac_file_inputs " '$ac_f'"
19244    done
19245
19246    # Let's still pretend it is `configure' which instantiates (i.e., don't
19247    # use $as_me), people would be surprised to read:
19248    #    /* config.h.  Generated by config.status.  */
19249    configure_input='Generated from '`
19250	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19251	`' by configure.'
19252    if test x"$ac_file" != x-; then
19253      configure_input="$ac_file.  $configure_input"
19254      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19255$as_echo "$as_me: creating $ac_file" >&6;}
19256    fi
19257    # Neutralize special characters interpreted by sed in replacement strings.
19258    case $configure_input in #(
19259    *\&* | *\|* | *\\* )
19260       ac_sed_conf_input=`$as_echo "$configure_input" |
19261       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19262    *) ac_sed_conf_input=$configure_input;;
19263    esac
19264
19265    case $ac_tag in
19266    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19267      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19268    esac
19269    ;;
19270  esac
19271
19272  ac_dir=`$as_dirname -- "$ac_file" ||
19273$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19274	 X"$ac_file" : 'X\(//\)[^/]' \| \
19275	 X"$ac_file" : 'X\(//\)$' \| \
19276	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19277$as_echo X"$ac_file" |
19278    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19279	    s//\1/
19280	    q
19281	  }
19282	  /^X\(\/\/\)[^/].*/{
19283	    s//\1/
19284	    q
19285	  }
19286	  /^X\(\/\/\)$/{
19287	    s//\1/
19288	    q
19289	  }
19290	  /^X\(\/\).*/{
19291	    s//\1/
19292	    q
19293	  }
19294	  s/.*/./; q'`
19295  as_dir="$ac_dir"; as_fn_mkdir_p
19296  ac_builddir=.
19297
19298case "$ac_dir" in
19299.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19300*)
19301  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19302  # A ".." for each directory in $ac_dir_suffix.
19303  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19304  case $ac_top_builddir_sub in
19305  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19306  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19307  esac ;;
19308esac
19309ac_abs_top_builddir=$ac_pwd
19310ac_abs_builddir=$ac_pwd$ac_dir_suffix
19311# for backward compatibility:
19312ac_top_builddir=$ac_top_build_prefix
19313
19314case $srcdir in
19315  .)  # We are building in place.
19316    ac_srcdir=.
19317    ac_top_srcdir=$ac_top_builddir_sub
19318    ac_abs_top_srcdir=$ac_pwd ;;
19319  [\\/]* | ?:[\\/]* )  # Absolute name.
19320    ac_srcdir=$srcdir$ac_dir_suffix;
19321    ac_top_srcdir=$srcdir
19322    ac_abs_top_srcdir=$srcdir ;;
19323  *) # Relative name.
19324    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19325    ac_top_srcdir=$ac_top_build_prefix$srcdir
19326    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19327esac
19328ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19329
19330
19331  case $ac_mode in
19332  :F)
19333  #
19334  # CONFIG_FILE
19335  #
19336
19337  case $INSTALL in
19338  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19339  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19340  esac
19341  ac_MKDIR_P=$MKDIR_P
19342  case $MKDIR_P in
19343  [\\/$]* | ?:[\\/]* ) ;;
19344  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19345  esac
19346_ACEOF
19347
19348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19349# If the template does not know about datarootdir, expand it.
19350# FIXME: This hack should be removed a few years after 2.60.
19351ac_datarootdir_hack=; ac_datarootdir_seen=
19352ac_sed_dataroot='
19353/datarootdir/ {
19354  p
19355  q
19356}
19357/@datadir@/p
19358/@docdir@/p
19359/@infodir@/p
19360/@localedir@/p
19361/@mandir@/p'
19362case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19363*datarootdir*) ac_datarootdir_seen=yes;;
19364*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19365  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19366$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19367_ACEOF
19368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19369  ac_datarootdir_hack='
19370  s&@datadir@&$datadir&g
19371  s&@docdir@&$docdir&g
19372  s&@infodir@&$infodir&g
19373  s&@localedir@&$localedir&g
19374  s&@mandir@&$mandir&g
19375  s&\\\${datarootdir}&$datarootdir&g' ;;
19376esac
19377_ACEOF
19378
19379# Neutralize VPATH when `$srcdir' = `.'.
19380# Shell code in configure.ac might set extrasub.
19381# FIXME: do we really want to maintain this feature?
19382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19383ac_sed_extra="$ac_vpsub
19384$extrasub
19385_ACEOF
19386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19387:t
19388/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19389s|@configure_input@|$ac_sed_conf_input|;t t
19390s&@top_builddir@&$ac_top_builddir_sub&;t t
19391s&@top_build_prefix@&$ac_top_build_prefix&;t t
19392s&@srcdir@&$ac_srcdir&;t t
19393s&@abs_srcdir@&$ac_abs_srcdir&;t t
19394s&@top_srcdir@&$ac_top_srcdir&;t t
19395s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19396s&@builddir@&$ac_builddir&;t t
19397s&@abs_builddir@&$ac_abs_builddir&;t t
19398s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19399s&@INSTALL@&$ac_INSTALL&;t t
19400s&@MKDIR_P@&$ac_MKDIR_P&;t t
19401$ac_datarootdir_hack
19402"
19403eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19404  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19405
19406test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19407  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19408  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19409      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19410  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19411which seems to be undefined.  Please make sure it is defined" >&5
19412$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19413which seems to be undefined.  Please make sure it is defined" >&2;}
19414
19415  rm -f "$ac_tmp/stdin"
19416  case $ac_file in
19417  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19418  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19419  esac \
19420  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19421 ;;
19422  :H)
19423  #
19424  # CONFIG_HEADER
19425  #
19426  if test x"$ac_file" != x-; then
19427    {
19428      $as_echo "/* $configure_input  */" \
19429      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19430    } >"$ac_tmp/config.h" \
19431      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19432    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19433      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19434$as_echo "$as_me: $ac_file is unchanged" >&6;}
19435    else
19436      rm -f "$ac_file"
19437      mv "$ac_tmp/config.h" "$ac_file" \
19438	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19439    fi
19440  else
19441    $as_echo "/* $configure_input  */" \
19442      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19443      || as_fn_error $? "could not create -" "$LINENO" 5
19444  fi
19445# Compute "$ac_file"'s index in $config_headers.
19446_am_arg="$ac_file"
19447_am_stamp_count=1
19448for _am_header in $config_headers :; do
19449  case $_am_header in
19450    $_am_arg | $_am_arg:* )
19451      break ;;
19452    * )
19453      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19454  esac
19455done
19456echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19457$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19458	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19459	 X"$_am_arg" : 'X\(//\)$' \| \
19460	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19461$as_echo X"$_am_arg" |
19462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19463	    s//\1/
19464	    q
19465	  }
19466	  /^X\(\/\/\)[^/].*/{
19467	    s//\1/
19468	    q
19469	  }
19470	  /^X\(\/\/\)$/{
19471	    s//\1/
19472	    q
19473	  }
19474	  /^X\(\/\).*/{
19475	    s//\1/
19476	    q
19477	  }
19478	  s/.*/./; q'`/stamp-h$_am_stamp_count
19479 ;;
19480
19481  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19482$as_echo "$as_me: executing $ac_file commands" >&6;}
19483 ;;
19484  esac
19485
19486
19487  case $ac_file$ac_mode in
19488    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19489  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19490  # are listed without --file.  Let's play safe and only enable the eval
19491  # if we detect the quoting.
19492  case $CONFIG_FILES in
19493  *\'*) eval set x "$CONFIG_FILES" ;;
19494  *)   set x $CONFIG_FILES ;;
19495  esac
19496  shift
19497  for mf
19498  do
19499    # Strip MF so we end up with the name of the file.
19500    mf=`echo "$mf" | sed -e 's/:.*$//'`
19501    # Check whether this is an Automake generated Makefile or not.
19502    # We used to match only the files named `Makefile.in', but
19503    # some people rename them; so instead we look at the file content.
19504    # Grep'ing the first line is not enough: some people post-process
19505    # each Makefile.in and add a new line on top of each file to say so.
19506    # Grep'ing the whole file is not good either: AIX grep has a line
19507    # limit of 2048, but all sed's we know have understand at least 4000.
19508    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19509      dirpart=`$as_dirname -- "$mf" ||
19510$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19511	 X"$mf" : 'X\(//\)[^/]' \| \
19512	 X"$mf" : 'X\(//\)$' \| \
19513	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19514$as_echo X"$mf" |
19515    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19516	    s//\1/
19517	    q
19518	  }
19519	  /^X\(\/\/\)[^/].*/{
19520	    s//\1/
19521	    q
19522	  }
19523	  /^X\(\/\/\)$/{
19524	    s//\1/
19525	    q
19526	  }
19527	  /^X\(\/\).*/{
19528	    s//\1/
19529	    q
19530	  }
19531	  s/.*/./; q'`
19532    else
19533      continue
19534    fi
19535    # Extract the definition of DEPDIR, am__include, and am__quote
19536    # from the Makefile without running `make'.
19537    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19538    test -z "$DEPDIR" && continue
19539    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19540    test -z "am__include" && continue
19541    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19542    # When using ansi2knr, U may be empty or an underscore; expand it
19543    U=`sed -n 's/^U = //p' < "$mf"`
19544    # Find all dependency output files, they are included files with
19545    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19546    # simplest approach to changing $(DEPDIR) to its actual value in the
19547    # expansion.
19548    for file in `sed -n "
19549      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19550	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19551      # Make sure the directory exists.
19552      test -f "$dirpart/$file" && continue
19553      fdir=`$as_dirname -- "$file" ||
19554$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19555	 X"$file" : 'X\(//\)[^/]' \| \
19556	 X"$file" : 'X\(//\)$' \| \
19557	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19558$as_echo X"$file" |
19559    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19560	    s//\1/
19561	    q
19562	  }
19563	  /^X\(\/\/\)[^/].*/{
19564	    s//\1/
19565	    q
19566	  }
19567	  /^X\(\/\/\)$/{
19568	    s//\1/
19569	    q
19570	  }
19571	  /^X\(\/\).*/{
19572	    s//\1/
19573	    q
19574	  }
19575	  s/.*/./; q'`
19576      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19577      # echo "creating $dirpart/$file"
19578      echo '# dummy' > "$dirpart/$file"
19579    done
19580  done
19581}
19582 ;;
19583    "libtool":C)
19584
19585    # See if we are running on zsh, and set the options which allow our
19586    # commands through without removal of \ escapes.
19587    if test -n "${ZSH_VERSION+set}" ; then
19588      setopt NO_GLOB_SUBST
19589    fi
19590
19591    cfgfile="${ofile}T"
19592    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19593    $RM "$cfgfile"
19594
19595    cat <<_LT_EOF >> "$cfgfile"
19596#! $SHELL
19597
19598# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19599# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19600# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19601# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19602#
19603#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19604#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19605#                 Foundation, Inc.
19606#   Written by Gordon Matzigkeit, 1996
19607#
19608#   This file is part of GNU Libtool.
19609#
19610# GNU Libtool is free software; you can redistribute it and/or
19611# modify it under the terms of the GNU General Public License as
19612# published by the Free Software Foundation; either version 2 of
19613# the License, or (at your option) any later version.
19614#
19615# As a special exception to the GNU General Public License,
19616# if you distribute this file as part of a program or library that
19617# is built using GNU Libtool, you may include this file under the
19618# same distribution terms that you use for the rest of that program.
19619#
19620# GNU Libtool is distributed in the hope that it will be useful,
19621# but WITHOUT ANY WARRANTY; without even the implied warranty of
19622# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19623# GNU General Public License for more details.
19624#
19625# You should have received a copy of the GNU General Public License
19626# along with GNU Libtool; see the file COPYING.  If not, a copy
19627# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19628# obtained by writing to the Free Software Foundation, Inc.,
19629# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19630
19631
19632# The names of the tagged configurations supported by this script.
19633available_tags=""
19634
19635# ### BEGIN LIBTOOL CONFIG
19636
19637# Whether or not to build static libraries.
19638build_old_libs=$enable_static
19639
19640# Which release of libtool.m4 was used?
19641macro_version=$macro_version
19642macro_revision=$macro_revision
19643
19644# Whether or not to build shared libraries.
19645build_libtool_libs=$enable_shared
19646
19647# What type of objects to build.
19648pic_mode=$pic_mode
19649
19650# Whether or not to optimize for fast installation.
19651fast_install=$enable_fast_install
19652
19653# Shell to use when invoking shell scripts.
19654SHELL=$lt_SHELL
19655
19656# An echo program that protects backslashes.
19657ECHO=$lt_ECHO
19658
19659# The PATH separator for the build system.
19660PATH_SEPARATOR=$lt_PATH_SEPARATOR
19661
19662# The host system.
19663host_alias=$host_alias
19664host=$host
19665host_os=$host_os
19666
19667# The build system.
19668build_alias=$build_alias
19669build=$build
19670build_os=$build_os
19671
19672# A sed program that does not truncate output.
19673SED=$lt_SED
19674
19675# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19676Xsed="\$SED -e 1s/^X//"
19677
19678# A grep program that handles long lines.
19679GREP=$lt_GREP
19680
19681# An ERE matcher.
19682EGREP=$lt_EGREP
19683
19684# A literal string matcher.
19685FGREP=$lt_FGREP
19686
19687# A BSD- or MS-compatible name lister.
19688NM=$lt_NM
19689
19690# Whether we need soft or hard links.
19691LN_S=$lt_LN_S
19692
19693# What is the maximum length of a command?
19694max_cmd_len=$max_cmd_len
19695
19696# Object file suffix (normally "o").
19697objext=$ac_objext
19698
19699# Executable file suffix (normally "").
19700exeext=$exeext
19701
19702# whether the shell understands "unset".
19703lt_unset=$lt_unset
19704
19705# turn spaces into newlines.
19706SP2NL=$lt_lt_SP2NL
19707
19708# turn newlines into spaces.
19709NL2SP=$lt_lt_NL2SP
19710
19711# convert \$build file names to \$host format.
19712to_host_file_cmd=$lt_cv_to_host_file_cmd
19713
19714# convert \$build files to toolchain format.
19715to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19716
19717# An object symbol dumper.
19718OBJDUMP=$lt_OBJDUMP
19719
19720# Method to check whether dependent libraries are shared objects.
19721deplibs_check_method=$lt_deplibs_check_method
19722
19723# Command to use when deplibs_check_method = "file_magic".
19724file_magic_cmd=$lt_file_magic_cmd
19725
19726# How to find potential files when deplibs_check_method = "file_magic".
19727file_magic_glob=$lt_file_magic_glob
19728
19729# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19730want_nocaseglob=$lt_want_nocaseglob
19731
19732# DLL creation program.
19733DLLTOOL=$lt_DLLTOOL
19734
19735# Command to associate shared and link libraries.
19736sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19737
19738# The archiver.
19739AR=$lt_AR
19740
19741# Flags to create an archive.
19742AR_FLAGS=$lt_AR_FLAGS
19743
19744# How to feed a file listing to the archiver.
19745archiver_list_spec=$lt_archiver_list_spec
19746
19747# A symbol stripping program.
19748STRIP=$lt_STRIP
19749
19750# Commands used to install an old-style archive.
19751RANLIB=$lt_RANLIB
19752old_postinstall_cmds=$lt_old_postinstall_cmds
19753old_postuninstall_cmds=$lt_old_postuninstall_cmds
19754
19755# Whether to use a lock for old archive extraction.
19756lock_old_archive_extraction=$lock_old_archive_extraction
19757
19758# A C compiler.
19759LTCC=$lt_CC
19760
19761# LTCC compiler flags.
19762LTCFLAGS=$lt_CFLAGS
19763
19764# Take the output of nm and produce a listing of raw symbols and C names.
19765global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19766
19767# Transform the output of nm in a proper C declaration.
19768global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19769
19770# Transform the output of nm in a C name address pair.
19771global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19772
19773# Transform the output of nm in a C name address pair when lib prefix is needed.
19774global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19775
19776# Specify filename containing input files for \$NM.
19777nm_file_list_spec=$lt_nm_file_list_spec
19778
19779# The root where to search for dependent libraries,and in which our libraries should be installed.
19780lt_sysroot=$lt_sysroot
19781
19782# The name of the directory that contains temporary libtool files.
19783objdir=$objdir
19784
19785# Used to examine libraries when file_magic_cmd begins with "file".
19786MAGIC_CMD=$MAGIC_CMD
19787
19788# Must we lock files when doing compilation?
19789need_locks=$lt_need_locks
19790
19791# Manifest tool.
19792MANIFEST_TOOL=$lt_MANIFEST_TOOL
19793
19794# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19795DSYMUTIL=$lt_DSYMUTIL
19796
19797# Tool to change global to local symbols on Mac OS X.
19798NMEDIT=$lt_NMEDIT
19799
19800# Tool to manipulate fat objects and archives on Mac OS X.
19801LIPO=$lt_LIPO
19802
19803# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19804OTOOL=$lt_OTOOL
19805
19806# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19807OTOOL64=$lt_OTOOL64
19808
19809# Old archive suffix (normally "a").
19810libext=$libext
19811
19812# Shared library suffix (normally ".so").
19813shrext_cmds=$lt_shrext_cmds
19814
19815# The commands to extract the exported symbol list from a shared archive.
19816extract_expsyms_cmds=$lt_extract_expsyms_cmds
19817
19818# Variables whose values should be saved in libtool wrapper scripts and
19819# restored at link time.
19820variables_saved_for_relink=$lt_variables_saved_for_relink
19821
19822# Do we need the "lib" prefix for modules?
19823need_lib_prefix=$need_lib_prefix
19824
19825# Do we need a version for libraries?
19826need_version=$need_version
19827
19828# Library versioning type.
19829version_type=$version_type
19830
19831# Shared library runtime path variable.
19832runpath_var=$runpath_var
19833
19834# Shared library path variable.
19835shlibpath_var=$shlibpath_var
19836
19837# Is shlibpath searched before the hard-coded library search path?
19838shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19839
19840# Format of library name prefix.
19841libname_spec=$lt_libname_spec
19842
19843# List of archive names.  First name is the real one, the rest are links.
19844# The last name is the one that the linker finds with -lNAME
19845library_names_spec=$lt_library_names_spec
19846
19847# The coded name of the library, if different from the real name.
19848soname_spec=$lt_soname_spec
19849
19850# Permission mode override for installation of shared libraries.
19851install_override_mode=$lt_install_override_mode
19852
19853# Command to use after installation of a shared archive.
19854postinstall_cmds=$lt_postinstall_cmds
19855
19856# Command to use after uninstallation of a shared archive.
19857postuninstall_cmds=$lt_postuninstall_cmds
19858
19859# Commands used to finish a libtool library installation in a directory.
19860finish_cmds=$lt_finish_cmds
19861
19862# As "finish_cmds", except a single script fragment to be evaled but
19863# not shown.
19864finish_eval=$lt_finish_eval
19865
19866# Whether we should hardcode library paths into libraries.
19867hardcode_into_libs=$hardcode_into_libs
19868
19869# Compile-time system search path for libraries.
19870sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19871
19872# Run-time system search path for libraries.
19873sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19874
19875# Whether dlopen is supported.
19876dlopen_support=$enable_dlopen
19877
19878# Whether dlopen of programs is supported.
19879dlopen_self=$enable_dlopen_self
19880
19881# Whether dlopen of statically linked programs is supported.
19882dlopen_self_static=$enable_dlopen_self_static
19883
19884# Commands to strip libraries.
19885old_striplib=$lt_old_striplib
19886striplib=$lt_striplib
19887
19888
19889# The linker used to build libraries.
19890LD=$lt_LD
19891
19892# How to create reloadable object files.
19893reload_flag=$lt_reload_flag
19894reload_cmds=$lt_reload_cmds
19895
19896# Commands used to build an old-style archive.
19897old_archive_cmds=$lt_old_archive_cmds
19898
19899# A language specific compiler.
19900CC=$lt_compiler
19901
19902# Is the compiler the GNU compiler?
19903with_gcc=$GCC
19904
19905# Compiler flag to turn off builtin functions.
19906no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19907
19908# Additional compiler flags for building library objects.
19909pic_flag=$lt_lt_prog_compiler_pic
19910
19911# How to pass a linker flag through the compiler.
19912wl=$lt_lt_prog_compiler_wl
19913
19914# Compiler flag to prevent dynamic linking.
19915link_static_flag=$lt_lt_prog_compiler_static
19916
19917# Does compiler simultaneously support -c and -o options?
19918compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19919
19920# Whether or not to add -lc for building shared libraries.
19921build_libtool_need_lc=$archive_cmds_need_lc
19922
19923# Whether or not to disallow shared libs when runtime libs are static.
19924allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19925
19926# Compiler flag to allow reflexive dlopens.
19927export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19928
19929# Compiler flag to generate shared objects directly from archives.
19930whole_archive_flag_spec=$lt_whole_archive_flag_spec
19931
19932# Whether the compiler copes with passing no objects directly.
19933compiler_needs_object=$lt_compiler_needs_object
19934
19935# Create an old-style archive from a shared archive.
19936old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19937
19938# Create a temporary old-style archive to link instead of a shared archive.
19939old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19940
19941# Commands used to build a shared archive.
19942archive_cmds=$lt_archive_cmds
19943archive_expsym_cmds=$lt_archive_expsym_cmds
19944
19945# Commands used to build a loadable module if different from building
19946# a shared archive.
19947module_cmds=$lt_module_cmds
19948module_expsym_cmds=$lt_module_expsym_cmds
19949
19950# Whether we are building with GNU ld or not.
19951with_gnu_ld=$lt_with_gnu_ld
19952
19953# Flag that allows shared libraries with undefined symbols to be built.
19954allow_undefined_flag=$lt_allow_undefined_flag
19955
19956# Flag that enforces no undefined symbols.
19957no_undefined_flag=$lt_no_undefined_flag
19958
19959# Flag to hardcode \$libdir into a binary during linking.
19960# This must work even if \$libdir does not exist
19961hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19962
19963# Whether we need a single "-rpath" flag with a separated argument.
19964hardcode_libdir_separator=$lt_hardcode_libdir_separator
19965
19966# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19967# DIR into the resulting binary.
19968hardcode_direct=$hardcode_direct
19969
19970# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19971# DIR into the resulting binary and the resulting library dependency is
19972# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19973# library is relocated.
19974hardcode_direct_absolute=$hardcode_direct_absolute
19975
19976# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19977# into the resulting binary.
19978hardcode_minus_L=$hardcode_minus_L
19979
19980# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19981# into the resulting binary.
19982hardcode_shlibpath_var=$hardcode_shlibpath_var
19983
19984# Set to "yes" if building a shared library automatically hardcodes DIR
19985# into the library and all subsequent libraries and executables linked
19986# against it.
19987hardcode_automatic=$hardcode_automatic
19988
19989# Set to yes if linker adds runtime paths of dependent libraries
19990# to runtime path list.
19991inherit_rpath=$inherit_rpath
19992
19993# Whether libtool must link a program against all its dependency libraries.
19994link_all_deplibs=$link_all_deplibs
19995
19996# Set to "yes" if exported symbols are required.
19997always_export_symbols=$always_export_symbols
19998
19999# The commands to list exported symbols.
20000export_symbols_cmds=$lt_export_symbols_cmds
20001
20002# Symbols that should not be listed in the preloaded symbols.
20003exclude_expsyms=$lt_exclude_expsyms
20004
20005# Symbols that must always be exported.
20006include_expsyms=$lt_include_expsyms
20007
20008# Commands necessary for linking programs (against libraries) with templates.
20009prelink_cmds=$lt_prelink_cmds
20010
20011# Commands necessary for finishing linking programs.
20012postlink_cmds=$lt_postlink_cmds
20013
20014# Specify filename containing input files.
20015file_list_spec=$lt_file_list_spec
20016
20017# How to hardcode a shared library path into an executable.
20018hardcode_action=$hardcode_action
20019
20020# ### END LIBTOOL CONFIG
20021
20022_LT_EOF
20023
20024  case $host_os in
20025  aix3*)
20026    cat <<\_LT_EOF >> "$cfgfile"
20027# AIX sometimes has problems with the GCC collect2 program.  For some
20028# reason, if we set the COLLECT_NAMES environment variable, the problems
20029# vanish in a puff of smoke.
20030if test "X${COLLECT_NAMES+set}" != Xset; then
20031  COLLECT_NAMES=
20032  export COLLECT_NAMES
20033fi
20034_LT_EOF
20035    ;;
20036  esac
20037
20038
20039ltmain="$ac_aux_dir/ltmain.sh"
20040
20041
20042  # We use sed instead of cat because bash on DJGPP gets confused if
20043  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20044  # text mode, it properly converts lines to CR/LF.  This bash problem
20045  # is reportedly fixed, but why not run on old versions too?
20046  sed '$q' "$ltmain" >> "$cfgfile" \
20047     || (rm -f "$cfgfile"; exit 1)
20048
20049  if test x"$xsi_shell" = xyes; then
20050  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20051func_dirname ()\
20052{\
20053\    case ${1} in\
20054\      */*) func_dirname_result="${1%/*}${2}" ;;\
20055\      *  ) func_dirname_result="${3}" ;;\
20056\    esac\
20057} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20058  && mv -f "$cfgfile.tmp" "$cfgfile" \
20059    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20060test 0 -eq $? || _lt_function_replace_fail=:
20061
20062
20063  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20064func_basename ()\
20065{\
20066\    func_basename_result="${1##*/}"\
20067} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20068  && mv -f "$cfgfile.tmp" "$cfgfile" \
20069    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20070test 0 -eq $? || _lt_function_replace_fail=:
20071
20072
20073  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20074func_dirname_and_basename ()\
20075{\
20076\    case ${1} in\
20077\      */*) func_dirname_result="${1%/*}${2}" ;;\
20078\      *  ) func_dirname_result="${3}" ;;\
20079\    esac\
20080\    func_basename_result="${1##*/}"\
20081} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20082  && mv -f "$cfgfile.tmp" "$cfgfile" \
20083    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20084test 0 -eq $? || _lt_function_replace_fail=:
20085
20086
20087  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20088func_stripname ()\
20089{\
20090\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20091\    # positional parameters, so assign one to ordinary parameter first.\
20092\    func_stripname_result=${3}\
20093\    func_stripname_result=${func_stripname_result#"${1}"}\
20094\    func_stripname_result=${func_stripname_result%"${2}"}\
20095} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20096  && mv -f "$cfgfile.tmp" "$cfgfile" \
20097    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20098test 0 -eq $? || _lt_function_replace_fail=:
20099
20100
20101  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20102func_split_long_opt ()\
20103{\
20104\    func_split_long_opt_name=${1%%=*}\
20105\    func_split_long_opt_arg=${1#*=}\
20106} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20107  && mv -f "$cfgfile.tmp" "$cfgfile" \
20108    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20109test 0 -eq $? || _lt_function_replace_fail=:
20110
20111
20112  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20113func_split_short_opt ()\
20114{\
20115\    func_split_short_opt_arg=${1#??}\
20116\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20117} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20118  && mv -f "$cfgfile.tmp" "$cfgfile" \
20119    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20120test 0 -eq $? || _lt_function_replace_fail=:
20121
20122
20123  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20124func_lo2o ()\
20125{\
20126\    case ${1} in\
20127\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20128\      *)    func_lo2o_result=${1} ;;\
20129\    esac\
20130} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20131  && mv -f "$cfgfile.tmp" "$cfgfile" \
20132    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20133test 0 -eq $? || _lt_function_replace_fail=:
20134
20135
20136  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20137func_xform ()\
20138{\
20139    func_xform_result=${1%.*}.lo\
20140} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20141  && mv -f "$cfgfile.tmp" "$cfgfile" \
20142    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20143test 0 -eq $? || _lt_function_replace_fail=:
20144
20145
20146  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20147func_arith ()\
20148{\
20149    func_arith_result=$(( $* ))\
20150} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20151  && mv -f "$cfgfile.tmp" "$cfgfile" \
20152    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20153test 0 -eq $? || _lt_function_replace_fail=:
20154
20155
20156  sed -e '/^func_len ()$/,/^} # func_len /c\
20157func_len ()\
20158{\
20159    func_len_result=${#1}\
20160} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20161  && mv -f "$cfgfile.tmp" "$cfgfile" \
20162    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20163test 0 -eq $? || _lt_function_replace_fail=:
20164
20165fi
20166
20167if test x"$lt_shell_append" = xyes; then
20168  sed -e '/^func_append ()$/,/^} # func_append /c\
20169func_append ()\
20170{\
20171    eval "${1}+=\\${2}"\
20172} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20173  && mv -f "$cfgfile.tmp" "$cfgfile" \
20174    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20175test 0 -eq $? || _lt_function_replace_fail=:
20176
20177
20178  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20179func_append_quoted ()\
20180{\
20181\    func_quote_for_eval "${2}"\
20182\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20183} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20184  && mv -f "$cfgfile.tmp" "$cfgfile" \
20185    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20186test 0 -eq $? || _lt_function_replace_fail=:
20187
20188
20189  # Save a `func_append' function call where possible by direct use of '+='
20190  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20191    && mv -f "$cfgfile.tmp" "$cfgfile" \
20192      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20193  test 0 -eq $? || _lt_function_replace_fail=:
20194else
20195  # Save a `func_append' function call even when '+=' is not available
20196  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20197    && mv -f "$cfgfile.tmp" "$cfgfile" \
20198      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20199  test 0 -eq $? || _lt_function_replace_fail=:
20200fi
20201
20202if test x"$_lt_function_replace_fail" = x":"; then
20203  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20204$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20205fi
20206
20207
20208   mv -f "$cfgfile" "$ofile" ||
20209    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20210  chmod +x "$ofile"
20211
20212 ;;
20213
20214  esac
20215done # for ac_tag
20216
20217
20218as_fn_exit 0
20219_ACEOF
20220ac_clean_files=$ac_clean_files_save
20221
20222test $ac_write_fail = 0 ||
20223  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20224
20225
20226# configure is writing to config.log, and then calls config.status.
20227# config.status does its own redirection, appending to config.log.
20228# Unfortunately, on DOS this fails, as config.log is still kept open
20229# by configure, so config.status won't be able to write to it; its
20230# output is simply discarded.  So we exec the FD to /dev/null,
20231# effectively closing config.log, so it can be properly (re)opened and
20232# appended to by config.status.  When coming back to configure, we
20233# need to make the FD available again.
20234if test "$no_create" != yes; then
20235  ac_cs_success=:
20236  ac_config_status_args=
20237  test "$silent" = yes &&
20238    ac_config_status_args="$ac_config_status_args --quiet"
20239  exec 5>/dev/null
20240  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20241  exec 5>>config.log
20242  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20243  # would make configure fail if this is the last instruction.
20244  $ac_cs_success || as_fn_exit 1
20245fi
20246if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20247  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20248$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20249fi
20250
20251