configure revision 3fb97780
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libSM 1.2.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libsm/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libsm/-/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601as_awk_strverscmp='
602  # Use only awk features that work with 7th edition Unix awk (1978).
603  # My, what an old awk you have, Mr. Solaris!
604  END {
605    while (length(v1) && length(v2)) {
606      # Set d1 to be the next thing to compare from v1, and likewise for d2.
607      # Normally this is a single character, but if v1 and v2 contain digits,
608      # compare them as integers and fractions as strverscmp does.
609      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
610	# Split v1 and v2 into their leading digit string components d1 and d2,
611	# and advance v1 and v2 past the leading digit strings.
612	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
613	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
614	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
615	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
616	if (d1 ~ /^0/) {
617	  if (d2 ~ /^0/) {
618	    # Compare two fractions.
619	    while (d1 ~ /^0/ && d2 ~ /^0/) {
620	      d1 = substr(d1, 2); len1--
621	      d2 = substr(d2, 2); len2--
622	    }
623	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
624	      # The two components differ in length, and the common prefix
625	      # contains only leading zeros.  Consider the longer to be less.
626	      d1 = -len1
627	      d2 = -len2
628	    } else {
629	      # Otherwise, compare as strings.
630	      d1 = "x" d1
631	      d2 = "x" d2
632	    }
633	  } else {
634	    # A fraction is less than an integer.
635	    exit 1
636	  }
637	} else {
638	  if (d2 ~ /^0/) {
639	    # An integer is greater than a fraction.
640	    exit 2
641	  } else {
642	    # Compare two integers.
643	    d1 += 0
644	    d2 += 0
645	  }
646	}
647      } else {
648	# The normal case, without worrying about digits.
649	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
650	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
651      }
652      if (d1 < d2) exit 1
653      if (d1 > d2) exit 2
654    }
655    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
656    # which mishandles some comparisons of empty strings to integers.
657    if (length(v2)) exit 1
658    if (length(v1)) exit 2
659  }
660'
661
662test -n "$DJDIR" || exec 7<&0 </dev/null
663exec 6>&1
664
665# Name of the host.
666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
667# so uname gets run too.
668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
669
670#
671# Initializations.
672#
673ac_default_prefix=/usr/local
674ac_clean_files=
675ac_config_libobj_dir=.
676LIBOBJS=
677cross_compiling=no
678subdirs=
679MFLAGS=
680MAKEFLAGS=
681
682# Identity of this package.
683PACKAGE_NAME='libSM'
684PACKAGE_TARNAME='libSM'
685PACKAGE_VERSION='1.2.4'
686PACKAGE_STRING='libSM 1.2.4'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libsm/-/issues'
688PACKAGE_URL=''
689
690ac_unique_file="Makefile.am"
691# Factoring default headers for most tests.
692ac_includes_default="\
693#include <stddef.h>
694#ifdef HAVE_STDIO_H
695# include <stdio.h>
696#endif
697#ifdef HAVE_STDLIB_H
698# include <stdlib.h>
699#endif
700#ifdef HAVE_STRING_H
701# include <string.h>
702#endif
703#ifdef HAVE_INTTYPES_H
704# include <inttypes.h>
705#endif
706#ifdef HAVE_STDINT_H
707# include <stdint.h>
708#endif
709#ifdef HAVE_STRINGS_H
710# include <strings.h>
711#endif
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef HAVE_UNISTD_H
719# include <unistd.h>
720#endif"
721
722ac_header_c_list=
723ac_subst_vars='am__EXEEXT_FALSE
724am__EXEEXT_TRUE
725LTLIBOBJS
726LIBOBJS
727WITH_LIBUUID_FALSE
728WITH_LIBUUID_TRUE
729UUID_PC
730UUID_LIB_PRIVATE
731LIBUUID_LIBS
732LIBUUID_CFLAGS
733SM_LIBS
734SM_CFLAGS
735HAVE_STYLESHEETS_FALSE
736HAVE_STYLESHEETS_TRUE
737XSL_STYLESHEET
738STYLESHEET_SRCDIR
739XORG_SGML_PATH
740HAVE_XSLTPROC_FALSE
741HAVE_XSLTPROC_TRUE
742XSLTPROC
743HAVE_FOP_FALSE
744HAVE_FOP_TRUE
745FOP
746HAVE_XMLTO_FALSE
747HAVE_XMLTO_TRUE
748HAVE_XMLTO_TEXT_FALSE
749HAVE_XMLTO_TEXT_TRUE
750XMLTO
751ENABLE_DOCS_FALSE
752ENABLE_DOCS_TRUE
753MAN_SUBSTS
754XORG_MAN_PAGE
755ADMIN_MAN_DIR
756DRIVER_MAN_DIR
757MISC_MAN_DIR
758FILE_MAN_DIR
759LIB_MAN_DIR
760APP_MAN_DIR
761ADMIN_MAN_SUFFIX
762DRIVER_MAN_SUFFIX
763MISC_MAN_SUFFIX
764FILE_MAN_SUFFIX
765LIB_MAN_SUFFIX
766APP_MAN_SUFFIX
767INSTALL_CMD
768PKG_CONFIG_LIBDIR
769PKG_CONFIG_PATH
770PKG_CONFIG
771CHANGELOG_CMD
772STRICT_CFLAGS
773CWARNFLAGS
774BASE_CFLAGS
775LT_SYS_LIBRARY_PATH
776OTOOL64
777OTOOL
778LIPO
779NMEDIT
780DSYMUTIL
781MANIFEST_TOOL
782RANLIB
783ac_ct_AR
784AR
785DLLTOOL
786OBJDUMP
787FILECMD
788LN_S
789NM
790ac_ct_DUMPBIN
791DUMPBIN
792LD
793FGREP
794EGREP
795GREP
796SED
797am__fastdepCC_FALSE
798am__fastdepCC_TRUE
799CCDEPMODE
800am__nodep
801AMDEPBACKSLASH
802AMDEP_FALSE
803AMDEP_TRUE
804am__include
805DEPDIR
806OBJEXT
807EXEEXT
808ac_ct_CC
809CPPFLAGS
810LDFLAGS
811CFLAGS
812CC
813host_os
814host_vendor
815host_cpu
816host
817build_os
818build_vendor
819build_cpu
820build
821LIBTOOL
822AM_BACKSLASH
823AM_DEFAULT_VERBOSITY
824AM_DEFAULT_V
825AM_V
826CSCOPE
827ETAGS
828CTAGS
829am__untar
830am__tar
831AMTAR
832am__leading_dot
833SET_MAKE
834AWK
835mkdir_p
836MKDIR_P
837INSTALL_STRIP_PROGRAM
838STRIP
839install_sh
840MAKEINFO
841AUTOHEADER
842AUTOMAKE
843AUTOCONF
844ACLOCAL
845VERSION
846PACKAGE
847CYGPATH_W
848am__isrc
849INSTALL_DATA
850INSTALL_SCRIPT
851INSTALL_PROGRAM
852target_alias
853host_alias
854build_alias
855LIBS
856ECHO_T
857ECHO_N
858ECHO_C
859DEFS
860mandir
861localedir
862libdir
863psdir
864pdfdir
865dvidir
866htmldir
867infodir
868docdir
869oldincludedir
870includedir
871runstatedir
872localstatedir
873sharedstatedir
874sysconfdir
875datadir
876datarootdir
877libexecdir
878sbindir
879bindir
880program_transform_name
881prefix
882exec_prefix
883PACKAGE_URL
884PACKAGE_BUGREPORT
885PACKAGE_STRING
886PACKAGE_VERSION
887PACKAGE_TARNAME
888PACKAGE_NAME
889PATH_SEPARATOR
890SHELL
891am__quote'
892ac_subst_files=''
893ac_user_opts='
894enable_option_checking
895enable_silent_rules
896enable_shared
897enable_static
898with_pic
899enable_fast_install
900with_aix_soname
901enable_dependency_tracking
902with_gnu_ld
903with_sysroot
904enable_libtool_lock
905enable_selective_werror
906enable_strict_compilation
907enable_docs
908with_xmlto
909with_fop
910with_xsltproc
911enable_unix_transport
912enable_tcp_transport
913enable_ipv6
914enable_local_transport
915with_libuuid
916'
917      ac_precious_vars='build_alias
918host_alias
919target_alias
920CC
921CFLAGS
922LDFLAGS
923LIBS
924CPPFLAGS
925LT_SYS_LIBRARY_PATH
926PKG_CONFIG
927PKG_CONFIG_PATH
928PKG_CONFIG_LIBDIR
929XMLTO
930FOP
931XSLTPROC
932SM_CFLAGS
933SM_LIBS
934LIBUUID_CFLAGS
935LIBUUID_LIBS'
936
937
938# Initialize some variables set by options.
939ac_init_help=
940ac_init_version=false
941ac_unrecognized_opts=
942ac_unrecognized_sep=
943# The variables have the same names as the options, with
944# dashes changed to underlines.
945cache_file=/dev/null
946exec_prefix=NONE
947no_create=
948no_recursion=
949prefix=NONE
950program_prefix=NONE
951program_suffix=NONE
952program_transform_name=s,x,x,
953silent=
954site=
955srcdir=
956verbose=
957x_includes=NONE
958x_libraries=NONE
959
960# Installation directory options.
961# These are left unexpanded so users can "make install exec_prefix=/foo"
962# and all the variables that are supposed to be based on exec_prefix
963# by default will actually change.
964# Use braces instead of parens because sh, perl, etc. also accept them.
965# (The list follows the same order as the GNU Coding Standards.)
966bindir='${exec_prefix}/bin'
967sbindir='${exec_prefix}/sbin'
968libexecdir='${exec_prefix}/libexec'
969datarootdir='${prefix}/share'
970datadir='${datarootdir}'
971sysconfdir='${prefix}/etc'
972sharedstatedir='${prefix}/com'
973localstatedir='${prefix}/var'
974runstatedir='${localstatedir}/run'
975includedir='${prefix}/include'
976oldincludedir='/usr/include'
977docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978infodir='${datarootdir}/info'
979htmldir='${docdir}'
980dvidir='${docdir}'
981pdfdir='${docdir}'
982psdir='${docdir}'
983libdir='${exec_prefix}/lib'
984localedir='${datarootdir}/locale'
985mandir='${datarootdir}/man'
986
987ac_prev=
988ac_dashdash=
989for ac_option
990do
991  # If the previous option needs an argument, assign it.
992  if test -n "$ac_prev"; then
993    eval $ac_prev=\$ac_option
994    ac_prev=
995    continue
996  fi
997
998  case $ac_option in
999  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000  *=)   ac_optarg= ;;
1001  *)    ac_optarg=yes ;;
1002  esac
1003
1004  case $ac_dashdash$ac_option in
1005  --)
1006    ac_dashdash=yes ;;
1007
1008  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009    ac_prev=bindir ;;
1010  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011    bindir=$ac_optarg ;;
1012
1013  -build | --build | --buil | --bui | --bu)
1014    ac_prev=build_alias ;;
1015  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016    build_alias=$ac_optarg ;;
1017
1018  -cache-file | --cache-file | --cache-fil | --cache-fi \
1019  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020    ac_prev=cache_file ;;
1021  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023    cache_file=$ac_optarg ;;
1024
1025  --config-cache | -C)
1026    cache_file=config.cache ;;
1027
1028  -datadir | --datadir | --datadi | --datad)
1029    ac_prev=datadir ;;
1030  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031    datadir=$ac_optarg ;;
1032
1033  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034  | --dataroo | --dataro | --datar)
1035    ac_prev=datarootdir ;;
1036  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038    datarootdir=$ac_optarg ;;
1039
1040  -disable-* | --disable-*)
1041    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1045    ac_useropt_orig=$ac_useropt
1046    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1047    case $ac_user_opts in
1048      *"
1049"enable_$ac_useropt"
1050"*) ;;
1051      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052	 ac_unrecognized_sep=', ';;
1053    esac
1054    eval enable_$ac_useropt=no ;;
1055
1056  -docdir | --docdir | --docdi | --doc | --do)
1057    ac_prev=docdir ;;
1058  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059    docdir=$ac_optarg ;;
1060
1061  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062    ac_prev=dvidir ;;
1063  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064    dvidir=$ac_optarg ;;
1065
1066  -enable-* | --enable-*)
1067    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1071    ac_useropt_orig=$ac_useropt
1072    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1073    case $ac_user_opts in
1074      *"
1075"enable_$ac_useropt"
1076"*) ;;
1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078	 ac_unrecognized_sep=', ';;
1079    esac
1080    eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084  | --exec | --exe | --ex)
1085    ac_prev=exec_prefix ;;
1086  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088  | --exec=* | --exe=* | --ex=*)
1089    exec_prefix=$ac_optarg ;;
1090
1091  -gas | --gas | --ga | --g)
1092    # Obsolete; use --with-gas.
1093    with_gas=yes ;;
1094
1095  -help | --help | --hel | --he | -h)
1096    ac_init_help=long ;;
1097  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098    ac_init_help=recursive ;;
1099  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100    ac_init_help=short ;;
1101
1102  -host | --host | --hos | --ho)
1103    ac_prev=host_alias ;;
1104  -host=* | --host=* | --hos=* | --ho=*)
1105    host_alias=$ac_optarg ;;
1106
1107  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108    ac_prev=htmldir ;;
1109  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110  | --ht=*)
1111    htmldir=$ac_optarg ;;
1112
1113  -includedir | --includedir | --includedi | --included | --include \
1114  | --includ | --inclu | --incl | --inc)
1115    ac_prev=includedir ;;
1116  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117  | --includ=* | --inclu=* | --incl=* | --inc=*)
1118    includedir=$ac_optarg ;;
1119
1120  -infodir | --infodir | --infodi | --infod | --info | --inf)
1121    ac_prev=infodir ;;
1122  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123    infodir=$ac_optarg ;;
1124
1125  -libdir | --libdir | --libdi | --libd)
1126    ac_prev=libdir ;;
1127  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128    libdir=$ac_optarg ;;
1129
1130  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131  | --libexe | --libex | --libe)
1132    ac_prev=libexecdir ;;
1133  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134  | --libexe=* | --libex=* | --libe=*)
1135    libexecdir=$ac_optarg ;;
1136
1137  -localedir | --localedir | --localedi | --localed | --locale)
1138    ac_prev=localedir ;;
1139  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140    localedir=$ac_optarg ;;
1141
1142  -localstatedir | --localstatedir | --localstatedi | --localstated \
1143  | --localstate | --localstat | --localsta | --localst | --locals)
1144    ac_prev=localstatedir ;;
1145  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147    localstatedir=$ac_optarg ;;
1148
1149  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150    ac_prev=mandir ;;
1151  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152    mandir=$ac_optarg ;;
1153
1154  -nfp | --nfp | --nf)
1155    # Obsolete; use --without-fp.
1156    with_fp=no ;;
1157
1158  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159  | --no-cr | --no-c | -n)
1160    no_create=yes ;;
1161
1162  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164    no_recursion=yes ;;
1165
1166  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168  | --oldin | --oldi | --old | --ol | --o)
1169    ac_prev=oldincludedir ;;
1170  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173    oldincludedir=$ac_optarg ;;
1174
1175  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176    ac_prev=prefix ;;
1177  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178    prefix=$ac_optarg ;;
1179
1180  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181  | --program-pre | --program-pr | --program-p)
1182    ac_prev=program_prefix ;;
1183  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185    program_prefix=$ac_optarg ;;
1186
1187  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188  | --program-suf | --program-su | --program-s)
1189    ac_prev=program_suffix ;;
1190  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192    program_suffix=$ac_optarg ;;
1193
1194  -program-transform-name | --program-transform-name \
1195  | --program-transform-nam | --program-transform-na \
1196  | --program-transform-n | --program-transform- \
1197  | --program-transform | --program-transfor \
1198  | --program-transfo | --program-transf \
1199  | --program-trans | --program-tran \
1200  | --progr-tra | --program-tr | --program-t)
1201    ac_prev=program_transform_name ;;
1202  -program-transform-name=* | --program-transform-name=* \
1203  | --program-transform-nam=* | --program-transform-na=* \
1204  | --program-transform-n=* | --program-transform-=* \
1205  | --program-transform=* | --program-transfor=* \
1206  | --program-transfo=* | --program-transf=* \
1207  | --program-trans=* | --program-tran=* \
1208  | --progr-tra=* | --program-tr=* | --program-t=*)
1209    program_transform_name=$ac_optarg ;;
1210
1211  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212    ac_prev=pdfdir ;;
1213  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214    pdfdir=$ac_optarg ;;
1215
1216  -psdir | --psdir | --psdi | --psd | --ps)
1217    ac_prev=psdir ;;
1218  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219    psdir=$ac_optarg ;;
1220
1221  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222  | -silent | --silent | --silen | --sile | --sil)
1223    silent=yes ;;
1224
1225  -runstatedir | --runstatedir | --runstatedi | --runstated \
1226  | --runstate | --runstat | --runsta | --runst | --runs \
1227  | --run | --ru | --r)
1228    ac_prev=runstatedir ;;
1229  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1230  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1231  | --run=* | --ru=* | --r=*)
1232    runstatedir=$ac_optarg ;;
1233
1234  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235    ac_prev=sbindir ;;
1236  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237  | --sbi=* | --sb=*)
1238    sbindir=$ac_optarg ;;
1239
1240  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242  | --sharedst | --shareds | --shared | --share | --shar \
1243  | --sha | --sh)
1244    ac_prev=sharedstatedir ;;
1245  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248  | --sha=* | --sh=*)
1249    sharedstatedir=$ac_optarg ;;
1250
1251  -site | --site | --sit)
1252    ac_prev=site ;;
1253  -site=* | --site=* | --sit=*)
1254    site=$ac_optarg ;;
1255
1256  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257    ac_prev=srcdir ;;
1258  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259    srcdir=$ac_optarg ;;
1260
1261  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262  | --syscon | --sysco | --sysc | --sys | --sy)
1263    ac_prev=sysconfdir ;;
1264  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266    sysconfdir=$ac_optarg ;;
1267
1268  -target | --target | --targe | --targ | --tar | --ta | --t)
1269    ac_prev=target_alias ;;
1270  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271    target_alias=$ac_optarg ;;
1272
1273  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274    verbose=yes ;;
1275
1276  -version | --version | --versio | --versi | --vers | -V)
1277    ac_init_version=: ;;
1278
1279  -with-* | --with-*)
1280    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281    # Reject names that are not valid shell variable names.
1282    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283      as_fn_error $? "invalid package name: \`$ac_useropt'"
1284    ac_useropt_orig=$ac_useropt
1285    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1286    case $ac_user_opts in
1287      *"
1288"with_$ac_useropt"
1289"*) ;;
1290      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291	 ac_unrecognized_sep=', ';;
1292    esac
1293    eval with_$ac_useropt=\$ac_optarg ;;
1294
1295  -without-* | --without-*)
1296    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297    # Reject names that are not valid shell variable names.
1298    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299      as_fn_error $? "invalid package name: \`$ac_useropt'"
1300    ac_useropt_orig=$ac_useropt
1301    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1302    case $ac_user_opts in
1303      *"
1304"with_$ac_useropt"
1305"*) ;;
1306      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307	 ac_unrecognized_sep=', ';;
1308    esac
1309    eval with_$ac_useropt=no ;;
1310
1311  --x)
1312    # Obsolete; use --with-x.
1313    with_x=yes ;;
1314
1315  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316  | --x-incl | --x-inc | --x-in | --x-i)
1317    ac_prev=x_includes ;;
1318  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320    x_includes=$ac_optarg ;;
1321
1322  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324    ac_prev=x_libraries ;;
1325  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327    x_libraries=$ac_optarg ;;
1328
1329  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1330Try \`$0 --help' for more information"
1331    ;;
1332
1333  *=*)
1334    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335    # Reject names that are not valid shell variable names.
1336    case $ac_envvar in #(
1337      '' | [0-9]* | *[!_$as_cr_alnum]* )
1338      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1339    esac
1340    eval $ac_envvar=\$ac_optarg
1341    export $ac_envvar ;;
1342
1343  *)
1344    # FIXME: should be removed in autoconf 3.0.
1345    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1346    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1348    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1349    ;;
1350
1351  esac
1352done
1353
1354if test -n "$ac_prev"; then
1355  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356  as_fn_error $? "missing argument to $ac_option"
1357fi
1358
1359if test -n "$ac_unrecognized_opts"; then
1360  case $enable_option_checking in
1361    no) ;;
1362    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1363    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364  esac
1365fi
1366
1367# Check all directory arguments for consistency.
1368for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369		datadir sysconfdir sharedstatedir localstatedir includedir \
1370		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371		libdir localedir mandir runstatedir
1372do
1373  eval ac_val=\$$ac_var
1374  # Remove trailing slashes.
1375  case $ac_val in
1376    */ )
1377      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378      eval $ac_var=\$ac_val;;
1379  esac
1380  # Be sure to have absolute directory names.
1381  case $ac_val in
1382    [\\/$]* | ?:[\\/]* )  continue;;
1383    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384  esac
1385  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1386done
1387
1388# There might be people who depend on the old broken behavior: `$host'
1389# used to hold the argument of --host etc.
1390# FIXME: To remove some day.
1391build=$build_alias
1392host=$host_alias
1393target=$target_alias
1394
1395# FIXME: To remove some day.
1396if test "x$host_alias" != x; then
1397  if test "x$build_alias" = x; then
1398    cross_compiling=maybe
1399  elif test "x$build_alias" != "x$host_alias"; then
1400    cross_compiling=yes
1401  fi
1402fi
1403
1404ac_tool_prefix=
1405test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407test "$silent" = yes && exec 6>/dev/null
1408
1409
1410ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411ac_ls_di=`ls -di .` &&
1412ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413  as_fn_error $? "working directory cannot be determined"
1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415  as_fn_error $? "pwd does not report name of working directory"
1416
1417
1418# Find the source files, if location was not specified.
1419if test -z "$srcdir"; then
1420  ac_srcdir_defaulted=yes
1421  # Try the directory containing this script, then the parent directory.
1422  ac_confdir=`$as_dirname -- "$as_myself" ||
1423$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424	 X"$as_myself" : 'X\(//\)[^/]' \| \
1425	 X"$as_myself" : 'X\(//\)$' \| \
1426	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427printf "%s\n" X"$as_myself" |
1428    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429	    s//\1/
1430	    q
1431	  }
1432	  /^X\(\/\/\)[^/].*/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\/\)$/{
1437	    s//\1/
1438	    q
1439	  }
1440	  /^X\(\/\).*/{
1441	    s//\1/
1442	    q
1443	  }
1444	  s/.*/./; q'`
1445  srcdir=$ac_confdir
1446  if test ! -r "$srcdir/$ac_unique_file"; then
1447    srcdir=..
1448  fi
1449else
1450  ac_srcdir_defaulted=no
1451fi
1452if test ! -r "$srcdir/$ac_unique_file"; then
1453  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455fi
1456ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457ac_abs_confdir=`(
1458	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459	pwd)`
1460# When building in place, set srcdir=.
1461if test "$ac_abs_confdir" = "$ac_pwd"; then
1462  srcdir=.
1463fi
1464# Remove unnecessary trailing slashes from srcdir.
1465# Double slashes in file names in object file debugging info
1466# mess up M-x gdb in Emacs.
1467case $srcdir in
1468*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469esac
1470for ac_var in $ac_precious_vars; do
1471  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472  eval ac_env_${ac_var}_value=\$${ac_var}
1473  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475done
1476
1477#
1478# Report the --help message.
1479#
1480if test "$ac_init_help" = "long"; then
1481  # Omit some internal or obsolete options to make the list less imposing.
1482  # This message is too long to be a string in the A/UX 3.1 sh.
1483  cat <<_ACEOF
1484\`configure' configures libSM 1.2.4 to adapt to many kinds of systems.
1485
1486Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489VAR=VALUE.  See below for descriptions of some of the useful variables.
1490
1491Defaults for the options are specified in brackets.
1492
1493Configuration:
1494  -h, --help              display this help and exit
1495      --help=short        display options specific to this package
1496      --help=recursive    display the short help of all the included packages
1497  -V, --version           display version information and exit
1498  -q, --quiet, --silent   do not print \`checking ...' messages
1499      --cache-file=FILE   cache test results in FILE [disabled]
1500  -C, --config-cache      alias for \`--cache-file=config.cache'
1501  -n, --no-create         do not create output files
1502      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1503
1504Installation directories:
1505  --prefix=PREFIX         install architecture-independent files in PREFIX
1506                          [$ac_default_prefix]
1507  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1508                          [PREFIX]
1509
1510By default, \`make install' will install all the files in
1511\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1512an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513for instance \`--prefix=\$HOME'.
1514
1515For better control, use the options below.
1516
1517Fine tuning of the installation directories:
1518  --bindir=DIR            user executables [EPREFIX/bin]
1519  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1520  --libexecdir=DIR        program executables [EPREFIX/libexec]
1521  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1522  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1523  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1524  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1525  --libdir=DIR            object code libraries [EPREFIX/lib]
1526  --includedir=DIR        C header files [PREFIX/include]
1527  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530  --infodir=DIR           info documentation [DATAROOTDIR/info]
1531  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532  --mandir=DIR            man documentation [DATAROOTDIR/man]
1533  --docdir=DIR            documentation root [DATAROOTDIR/doc/libSM]
1534  --htmldir=DIR           html documentation [DOCDIR]
1535  --dvidir=DIR            dvi documentation [DOCDIR]
1536  --pdfdir=DIR            pdf documentation [DOCDIR]
1537  --psdir=DIR             ps documentation [DOCDIR]
1538_ACEOF
1539
1540  cat <<\_ACEOF
1541
1542Program names:
1543  --program-prefix=PREFIX            prepend PREFIX to installed program names
1544  --program-suffix=SUFFIX            append SUFFIX to installed program names
1545  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1546
1547System types:
1548  --build=BUILD     configure for building on BUILD [guessed]
1549  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
1551fi
1552
1553if test -n "$ac_init_help"; then
1554  case $ac_init_help in
1555     short | recursive ) echo "Configuration of libSM 1.2.4:";;
1556   esac
1557  cat <<\_ACEOF
1558
1559Optional Features:
1560  --disable-option-checking  ignore unrecognized --enable/--with options
1561  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1562  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1563  --enable-silent-rules   less verbose build output (undo: "make V=1")
1564  --disable-silent-rules  verbose build output (undo: "make V=0")
1565  --enable-shared[=PKGS]  build shared libraries [default=yes]
1566  --enable-static[=PKGS]  build static libraries [default=yes]
1567  --enable-fast-install[=PKGS]
1568                          optimize for fast installation [default=yes]
1569  --enable-dependency-tracking
1570                          do not reject slow dependency extractors
1571  --disable-dependency-tracking
1572                          speeds up one-time build
1573  --disable-libtool-lock  avoid locking (might break parallel builds)
1574  --disable-selective-werror
1575                          Turn off selective compiler errors. (default:
1576                          enabled)
1577  --enable-strict-compilation
1578                          Enable all warnings from compiler and make them
1579                          errors (default: disabled)
1580  --enable-docs           Enable building the documentation (default: yes)
1581  --enable-unix-transport Enable UNIX domain socket transport
1582  --enable-tcp-transport  Enable TCP socket transport
1583  --enable-ipv6           Enable IPv6 support
1584  --enable-local-transport
1585                          Enable os-specific local transport
1586
1587Optional Packages:
1588  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1589  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1590  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1591                          both]
1592  --with-aix-soname=aix|svr4|both
1593                          shared library versioning (aka "SONAME") variant to
1594                          provide on AIX, [default=aix].
1595  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1596  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1597                          compiler's sysroot if not specified).
1598  --with-xmlto            Use xmlto to regenerate documentation (default:
1599                          auto)
1600  --with-fop              Use fop to regenerate documentation (default: auto)
1601  --with-xsltproc         Use xsltproc for the transformation of XML documents
1602                          (default: auto)
1603  --with-libuuid          Build with libuuid support for client IDs
1604
1605Some influential environment variables:
1606  CC          C compiler command
1607  CFLAGS      C compiler flags
1608  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1609              nonstandard directory <lib dir>
1610  LIBS        libraries to pass to the linker, e.g. -l<library>
1611  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1612              you have headers in a nonstandard directory <include dir>
1613  LT_SYS_LIBRARY_PATH
1614              User-defined run-time library search path.
1615  PKG_CONFIG  path to pkg-config utility
1616  PKG_CONFIG_PATH
1617              directories to add to pkg-config's search path
1618  PKG_CONFIG_LIBDIR
1619              path overriding pkg-config's built-in search path
1620  XMLTO       Path to xmlto command
1621  FOP         Path to fop command
1622  XSLTPROC    Path to xsltproc command
1623  SM_CFLAGS   C compiler flags for SM, overriding pkg-config
1624  SM_LIBS     linker flags for SM, overriding pkg-config
1625  LIBUUID_CFLAGS
1626              C compiler flags for LIBUUID, overriding pkg-config
1627  LIBUUID_LIBS
1628              linker flags for LIBUUID, overriding pkg-config
1629
1630Use these variables to override the choices made by `configure' or to help
1631it to find libraries and programs with nonstandard names/locations.
1632
1633Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libsm/-/issues>.
1634_ACEOF
1635ac_status=$?
1636fi
1637
1638if test "$ac_init_help" = "recursive"; then
1639  # If there are subdirs, report their specific --help.
1640  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641    test -d "$ac_dir" ||
1642      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643      continue
1644    ac_builddir=.
1645
1646case "$ac_dir" in
1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648*)
1649  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1650  # A ".." for each directory in $ac_dir_suffix.
1651  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652  case $ac_top_builddir_sub in
1653  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655  esac ;;
1656esac
1657ac_abs_top_builddir=$ac_pwd
1658ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659# for backward compatibility:
1660ac_top_builddir=$ac_top_build_prefix
1661
1662case $srcdir in
1663  .)  # We are building in place.
1664    ac_srcdir=.
1665    ac_top_srcdir=$ac_top_builddir_sub
1666    ac_abs_top_srcdir=$ac_pwd ;;
1667  [\\/]* | ?:[\\/]* )  # Absolute name.
1668    ac_srcdir=$srcdir$ac_dir_suffix;
1669    ac_top_srcdir=$srcdir
1670    ac_abs_top_srcdir=$srcdir ;;
1671  *) # Relative name.
1672    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673    ac_top_srcdir=$ac_top_build_prefix$srcdir
1674    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675esac
1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678    cd "$ac_dir" || { ac_status=$?; continue; }
1679    # Check for configure.gnu first; this name is used for a wrapper for
1680    # Metaconfig's "Configure" on case-insensitive file systems.
1681    if test -f "$ac_srcdir/configure.gnu"; then
1682      echo &&
1683      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684    elif test -f "$ac_srcdir/configure"; then
1685      echo &&
1686      $SHELL "$ac_srcdir/configure" --help=recursive
1687    else
1688      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689    fi || ac_status=$?
1690    cd "$ac_pwd" || { ac_status=$?; break; }
1691  done
1692fi
1693
1694test -n "$ac_init_help" && exit $ac_status
1695if $ac_init_version; then
1696  cat <<\_ACEOF
1697libSM configure 1.2.4
1698generated by GNU Autoconf 2.71
1699
1700Copyright (C) 2021 Free Software Foundation, Inc.
1701This configure script is free software; the Free Software Foundation
1702gives unlimited permission to copy, distribute and modify it.
1703_ACEOF
1704  exit
1705fi
1706
1707## ------------------------ ##
1708## Autoconf initialization. ##
1709## ------------------------ ##
1710
1711# ac_fn_c_try_compile LINENO
1712# --------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_compile ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  rm -f conftest.$ac_objext conftest.beam
1718  if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724printf "%s\n" "$ac_try_echo"; } >&5
1725  (eval "$ac_compile") 2>conftest.err
1726  ac_status=$?
1727  if test -s conftest.err; then
1728    grep -v '^ *+' conftest.err >conftest.er1
1729    cat conftest.er1 >&5
1730    mv -f conftest.er1 conftest.err
1731  fi
1732  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733  test $ac_status = 0; } && {
1734	 test -z "$ac_c_werror_flag" ||
1735	 test ! -s conftest.err
1736       } && test -s conftest.$ac_objext
1737then :
1738  ac_retval=0
1739else $as_nop
1740  printf "%s\n" "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743	ac_retval=1
1744fi
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_compile
1749
1750# ac_fn_c_try_link LINENO
1751# -----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_link ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1757  if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763printf "%s\n" "$ac_try_echo"; } >&5
1764  (eval "$ac_link") 2>conftest.err
1765  ac_status=$?
1766  if test -s conftest.err; then
1767    grep -v '^ *+' conftest.err >conftest.er1
1768    cat conftest.er1 >&5
1769    mv -f conftest.er1 conftest.err
1770  fi
1771  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772  test $ac_status = 0; } && {
1773	 test -z "$ac_c_werror_flag" ||
1774	 test ! -s conftest.err
1775       } && test -s conftest$ac_exeext && {
1776	 test "$cross_compiling" = yes ||
1777	 test -x conftest$ac_exeext
1778       }
1779then :
1780  ac_retval=0
1781else $as_nop
1782  printf "%s\n" "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785	ac_retval=1
1786fi
1787  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789  # interfere with the next link command; also delete a directory that is
1790  # left behind by Apple's compiler.  We do this before executing the actions.
1791  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793  as_fn_set_status $ac_retval
1794
1795} # ac_fn_c_try_link
1796
1797# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798# -------------------------------------------------------
1799# Tests whether HEADER exists and can be compiled using the include files in
1800# INCLUDES, setting the cache variable VAR accordingly.
1801ac_fn_c_check_header_compile ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805printf %s "checking for $2... " >&6; }
1806if eval test \${$3+y}
1807then :
1808  printf %s "(cached) " >&6
1809else $as_nop
1810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"
1816then :
1817  eval "$3=yes"
1818else $as_nop
1819  eval "$3=no"
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825printf "%s\n" "$ac_res" >&6; }
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828} # ac_fn_c_check_header_compile
1829
1830# ac_fn_c_check_func LINENO FUNC VAR
1831# ----------------------------------
1832# Tests whether FUNC exists, setting the cache variable VAR accordingly
1833ac_fn_c_check_func ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837printf %s "checking for $2... " >&6; }
1838if eval test \${$3+y}
1839then :
1840  printf %s "(cached) " >&6
1841else $as_nop
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1846#define $2 innocuous_$2
1847
1848/* System header to define __stub macros and hopefully few prototypes,
1849   which can conflict with char $2 (); below.  */
1850
1851#include <limits.h>
1852#undef $2
1853
1854/* Override any GCC internal prototype to avoid an error.
1855   Use char because int might match the return type of a GCC
1856   builtin and then its argument prototype would still apply.  */
1857#ifdef __cplusplus
1858extern "C"
1859#endif
1860char $2 ();
1861/* The GNU C library defines this for functions which it implements
1862    to always fail with ENOSYS.  Some functions are actually named
1863    something starting with __ and the normal name is an alias.  */
1864#if defined __stub_$2 || defined __stub___$2
1865choke me
1866#endif
1867
1868int
1869main (void)
1870{
1871return $2 ();
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_link "$LINENO"
1877then :
1878  eval "$3=yes"
1879else $as_nop
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.beam \
1883    conftest$ac_exeext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887printf "%s\n" "$ac_res" >&6; }
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_func
1891
1892# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1893# ------------------------------------------------------------------
1894# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1895# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1896ac_fn_check_decl ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  as_decl_name=`echo $2|sed 's/ *(.*//'`
1900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1901printf %s "checking whether $as_decl_name is declared... " >&6; }
1902if eval test \${$3+y}
1903then :
1904  printf %s "(cached) " >&6
1905else $as_nop
1906  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1907  eval ac_save_FLAGS=\$$6
1908  as_fn_append $6 " $5"
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$4
1912int
1913main (void)
1914{
1915#ifndef $as_decl_name
1916#ifdef __cplusplus
1917  (void) $as_decl_use;
1918#else
1919  (void) $as_decl_name;
1920#endif
1921#endif
1922
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"
1928then :
1929  eval "$3=yes"
1930else $as_nop
1931  eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1934  eval $6=\$ac_save_FLAGS
1935
1936fi
1937eval ac_res=\$$3
1938	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939printf "%s\n" "$ac_res" >&6; }
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_check_decl
1943
1944# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1945# ----------------------------------------------------
1946# Tries to find if the field MEMBER exists in type AGGR, after including
1947# INCLUDES, setting cache variable VAR accordingly.
1948ac_fn_c_check_member ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1952printf %s "checking for $2.$3... " >&6; }
1953if eval test \${$4+y}
1954then :
1955  printf %s "(cached) " >&6
1956else $as_nop
1957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h.  */
1959$5
1960int
1961main (void)
1962{
1963static $2 ac_aggr;
1964if (ac_aggr.$3)
1965return 0;
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"
1971then :
1972  eval "$4=yes"
1973else $as_nop
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$5
1977int
1978main (void)
1979{
1980static $2 ac_aggr;
1981if (sizeof ac_aggr.$3)
1982return 0;
1983  ;
1984  return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_compile "$LINENO"
1988then :
1989  eval "$4=yes"
1990else $as_nop
1991  eval "$4=no"
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1996fi
1997eval ac_res=\$$4
1998	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999printf "%s\n" "$ac_res" >&6; }
2000  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_c_check_member
2003
2004# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2005# -------------------------------------------
2006# Tests whether TYPE exists after having included INCLUDES, setting cache
2007# variable VAR accordingly.
2008ac_fn_c_check_type ()
2009{
2010  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012printf %s "checking for $2... " >&6; }
2013if eval test \${$3+y}
2014then :
2015  printf %s "(cached) " >&6
2016else $as_nop
2017  eval "$3=no"
2018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020$4
2021int
2022main (void)
2023{
2024if (sizeof ($2))
2025	 return 0;
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"
2031then :
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$4
2035int
2036main (void)
2037{
2038if (sizeof (($2)))
2039	    return 0;
2040  ;
2041  return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"
2045then :
2046
2047else $as_nop
2048  eval "$3=yes"
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2053fi
2054eval ac_res=\$$3
2055	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056printf "%s\n" "$ac_res" >&6; }
2057  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059} # ac_fn_c_check_type
2060ac_configure_args_raw=
2061for ac_arg
2062do
2063  case $ac_arg in
2064  *\'*)
2065    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066  esac
2067  as_fn_append ac_configure_args_raw " '$ac_arg'"
2068done
2069
2070case $ac_configure_args_raw in
2071  *$as_nl*)
2072    ac_safe_unquote= ;;
2073  *)
2074    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2075    ac_unsafe_a="$ac_unsafe_z#~"
2076    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2077    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2078esac
2079
2080cat >config.log <<_ACEOF
2081This file contains any messages produced by compilers while
2082running configure, to aid debugging if configure makes a mistake.
2083
2084It was created by libSM $as_me 1.2.4, which was
2085generated by GNU Autoconf 2.71.  Invocation command line was
2086
2087  $ $0$ac_configure_args_raw
2088
2089_ACEOF
2090exec 5>>config.log
2091{
2092cat <<_ASUNAME
2093## --------- ##
2094## Platform. ##
2095## --------- ##
2096
2097hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102
2103/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2105
2106/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2107/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2108/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2110/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2111/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2112/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2113
2114_ASUNAME
2115
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119  IFS=$as_save_IFS
2120  case $as_dir in #(((
2121    '') as_dir=./ ;;
2122    */) ;;
2123    *) as_dir=$as_dir/ ;;
2124  esac
2125    printf "%s\n" "PATH: $as_dir"
2126  done
2127IFS=$as_save_IFS
2128
2129} >&5
2130
2131cat >&5 <<_ACEOF
2132
2133
2134## ----------- ##
2135## Core tests. ##
2136## ----------- ##
2137
2138_ACEOF
2139
2140
2141# Keep a trace of the command line.
2142# Strip out --no-create and --no-recursion so they do not pile up.
2143# Strip out --silent because we don't want to record it for future runs.
2144# Also quote any args containing shell meta-characters.
2145# Make two passes to allow for proper duplicate-argument suppression.
2146ac_configure_args=
2147ac_configure_args0=
2148ac_configure_args1=
2149ac_must_keep_next=false
2150for ac_pass in 1 2
2151do
2152  for ac_arg
2153  do
2154    case $ac_arg in
2155    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2156    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2157    | -silent | --silent | --silen | --sile | --sil)
2158      continue ;;
2159    *\'*)
2160      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2161    esac
2162    case $ac_pass in
2163    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164    2)
2165      as_fn_append ac_configure_args1 " '$ac_arg'"
2166      if test $ac_must_keep_next = true; then
2167	ac_must_keep_next=false # Got value, back to normal.
2168      else
2169	case $ac_arg in
2170	  *=* | --config-cache | -C | -disable-* | --disable-* \
2171	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2172	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2173	  | -with-* | --with-* | -without-* | --without-* | --x)
2174	    case "$ac_configure_args0 " in
2175	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2176	    esac
2177	    ;;
2178	  -* ) ac_must_keep_next=true ;;
2179	esac
2180      fi
2181      as_fn_append ac_configure_args " '$ac_arg'"
2182      ;;
2183    esac
2184  done
2185done
2186{ ac_configure_args0=; unset ac_configure_args0;}
2187{ ac_configure_args1=; unset ac_configure_args1;}
2188
2189# When interrupted or exit'd, cleanup temporary files, and complete
2190# config.log.  We remove comments because anyway the quotes in there
2191# would cause problems or look ugly.
2192# WARNING: Use '\'' to represent an apostrophe within the trap.
2193# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2194trap 'exit_status=$?
2195  # Sanitize IFS.
2196  IFS=" ""	$as_nl"
2197  # Save into config.log some information that might help in debugging.
2198  {
2199    echo
2200
2201    printf "%s\n" "## ---------------- ##
2202## Cache variables. ##
2203## ---------------- ##"
2204    echo
2205    # The following way of writing the cache mishandles newlines in values,
2206(
2207  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208    eval ac_val=\$$ac_var
2209    case $ac_val in #(
2210    *${as_nl}*)
2211      case $ac_var in #(
2212      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2214      esac
2215      case $ac_var in #(
2216      _ | IFS | as_nl) ;; #(
2217      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2218      *) { eval $ac_var=; unset $ac_var;} ;;
2219      esac ;;
2220    esac
2221  done
2222  (set) 2>&1 |
2223    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224    *${as_nl}ac_space=\ *)
2225      sed -n \
2226	"s/'\''/'\''\\\\'\'''\''/g;
2227	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2228      ;; #(
2229    *)
2230      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231      ;;
2232    esac |
2233    sort
2234)
2235    echo
2236
2237    printf "%s\n" "## ----------------- ##
2238## Output variables. ##
2239## ----------------- ##"
2240    echo
2241    for ac_var in $ac_subst_vars
2242    do
2243      eval ac_val=\$$ac_var
2244      case $ac_val in
2245      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246      esac
2247      printf "%s\n" "$ac_var='\''$ac_val'\''"
2248    done | sort
2249    echo
2250
2251    if test -n "$ac_subst_files"; then
2252      printf "%s\n" "## ------------------- ##
2253## File substitutions. ##
2254## ------------------- ##"
2255      echo
2256      for ac_var in $ac_subst_files
2257      do
2258	eval ac_val=\$$ac_var
2259	case $ac_val in
2260	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261	esac
2262	printf "%s\n" "$ac_var='\''$ac_val'\''"
2263      done | sort
2264      echo
2265    fi
2266
2267    if test -s confdefs.h; then
2268      printf "%s\n" "## ----------- ##
2269## confdefs.h. ##
2270## ----------- ##"
2271      echo
2272      cat confdefs.h
2273      echo
2274    fi
2275    test "$ac_signal" != 0 &&
2276      printf "%s\n" "$as_me: caught signal $ac_signal"
2277    printf "%s\n" "$as_me: exit $exit_status"
2278  } >&5
2279  rm -f core *.core core.conftest.* &&
2280    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2281    exit $exit_status
2282' 0
2283for ac_signal in 1 2 13 15; do
2284  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285done
2286ac_signal=0
2287
2288# confdefs.h avoids OS command line length limits that DEFS can exceed.
2289rm -f -r conftest* confdefs.h
2290
2291printf "%s\n" "/* confdefs.h */" > confdefs.h
2292
2293# Predefined preprocessor variables.
2294
2295printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2296
2297printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2298
2299printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2300
2301printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2302
2303printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2304
2305printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2306
2307
2308# Let the site file select an alternate cache file if it wants to.
2309# Prefer an explicitly selected file to automatically selected ones.
2310if test -n "$CONFIG_SITE"; then
2311  ac_site_files="$CONFIG_SITE"
2312elif test "x$prefix" != xNONE; then
2313  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2314else
2315  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2316fi
2317
2318for ac_site_file in $ac_site_files
2319do
2320  case $ac_site_file in #(
2321  */*) :
2322     ;; #(
2323  *) :
2324    ac_site_file=./$ac_site_file ;;
2325esac
2326  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2327    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2328printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2329    sed 's/^/| /' "$ac_site_file" >&5
2330    . "$ac_site_file" \
2331      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2333as_fn_error $? "failed to load site script $ac_site_file
2334See \`config.log' for more details" "$LINENO" 5; }
2335  fi
2336done
2337
2338if test -r "$cache_file"; then
2339  # Some versions of bash will fail to source /dev/null (special files
2340  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2341  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2342    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2343printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2344    case $cache_file in
2345      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2346      *)                      . "./$cache_file";;
2347    esac
2348  fi
2349else
2350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2351printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2352  >$cache_file
2353fi
2354
2355# Test code for whether the C compiler supports C89 (global declarations)
2356ac_c_conftest_c89_globals='
2357/* Does the compiler advertise C89 conformance?
2358   Do not test the value of __STDC__, because some compilers set it to 0
2359   while being otherwise adequately conformant. */
2360#if !defined __STDC__
2361# error "Compiler does not advertise C89 conformance"
2362#endif
2363
2364#include <stddef.h>
2365#include <stdarg.h>
2366struct stat;
2367/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2368struct buf { int x; };
2369struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2370static char *e (p, i)
2371     char **p;
2372     int i;
2373{
2374  return p[i];
2375}
2376static char *f (char * (*g) (char **, int), char **p, ...)
2377{
2378  char *s;
2379  va_list v;
2380  va_start (v,p);
2381  s = g (p, va_arg (v,int));
2382  va_end (v);
2383  return s;
2384}
2385
2386/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2387   function prototypes and stuff, but not \xHH hex character constants.
2388   These do not provoke an error unfortunately, instead are silently treated
2389   as an "x".  The following induces an error, until -std is added to get
2390   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2391   array size at least.  It is necessary to write \x00 == 0 to get something
2392   that is true only with -std.  */
2393int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2394
2395/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2396   inside strings and character constants.  */
2397#define FOO(x) '\''x'\''
2398int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2399
2400int test (int i, double x);
2401struct s1 {int (*f) (int a);};
2402struct s2 {int (*f) (double a);};
2403int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2404               int, int);'
2405
2406# Test code for whether the C compiler supports C89 (body of main).
2407ac_c_conftest_c89_main='
2408ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2409'
2410
2411# Test code for whether the C compiler supports C99 (global declarations)
2412ac_c_conftest_c99_globals='
2413// Does the compiler advertise C99 conformance?
2414#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2415# error "Compiler does not advertise C99 conformance"
2416#endif
2417
2418#include <stdbool.h>
2419extern int puts (const char *);
2420extern int printf (const char *, ...);
2421extern int dprintf (int, const char *, ...);
2422extern void *malloc (size_t);
2423
2424// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2425// dprintf is used instead of fprintf to avoid needing to declare
2426// FILE and stderr.
2427#define debug(...) dprintf (2, __VA_ARGS__)
2428#define showlist(...) puts (#__VA_ARGS__)
2429#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2430static void
2431test_varargs_macros (void)
2432{
2433  int x = 1234;
2434  int y = 5678;
2435  debug ("Flag");
2436  debug ("X = %d\n", x);
2437  showlist (The first, second, and third items.);
2438  report (x>y, "x is %d but y is %d", x, y);
2439}
2440
2441// Check long long types.
2442#define BIG64 18446744073709551615ull
2443#define BIG32 4294967295ul
2444#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2445#if !BIG_OK
2446  #error "your preprocessor is broken"
2447#endif
2448#if BIG_OK
2449#else
2450  #error "your preprocessor is broken"
2451#endif
2452static long long int bignum = -9223372036854775807LL;
2453static unsigned long long int ubignum = BIG64;
2454
2455struct incomplete_array
2456{
2457  int datasize;
2458  double data[];
2459};
2460
2461struct named_init {
2462  int number;
2463  const wchar_t *name;
2464  double average;
2465};
2466
2467typedef const char *ccp;
2468
2469static inline int
2470test_restrict (ccp restrict text)
2471{
2472  // See if C++-style comments work.
2473  // Iterate through items via the restricted pointer.
2474  // Also check for declarations in for loops.
2475  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2476    continue;
2477  return 0;
2478}
2479
2480// Check varargs and va_copy.
2481static bool
2482test_varargs (const char *format, ...)
2483{
2484  va_list args;
2485  va_start (args, format);
2486  va_list args_copy;
2487  va_copy (args_copy, args);
2488
2489  const char *str = "";
2490  int number = 0;
2491  float fnumber = 0;
2492
2493  while (*format)
2494    {
2495      switch (*format++)
2496	{
2497	case '\''s'\'': // string
2498	  str = va_arg (args_copy, const char *);
2499	  break;
2500	case '\''d'\'': // int
2501	  number = va_arg (args_copy, int);
2502	  break;
2503	case '\''f'\'': // float
2504	  fnumber = va_arg (args_copy, double);
2505	  break;
2506	default:
2507	  break;
2508	}
2509    }
2510  va_end (args_copy);
2511  va_end (args);
2512
2513  return *str && number && fnumber;
2514}
2515'
2516
2517# Test code for whether the C compiler supports C99 (body of main).
2518ac_c_conftest_c99_main='
2519  // Check bool.
2520  _Bool success = false;
2521  success |= (argc != 0);
2522
2523  // Check restrict.
2524  if (test_restrict ("String literal") == 0)
2525    success = true;
2526  char *restrict newvar = "Another string";
2527
2528  // Check varargs.
2529  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2530  test_varargs_macros ();
2531
2532  // Check flexible array members.
2533  struct incomplete_array *ia =
2534    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2535  ia->datasize = 10;
2536  for (int i = 0; i < ia->datasize; ++i)
2537    ia->data[i] = i * 1.234;
2538
2539  // Check named initializers.
2540  struct named_init ni = {
2541    .number = 34,
2542    .name = L"Test wide string",
2543    .average = 543.34343,
2544  };
2545
2546  ni.number = 58;
2547
2548  int dynamic_array[ni.number];
2549  dynamic_array[0] = argv[0][0];
2550  dynamic_array[ni.number - 1] = 543;
2551
2552  // work around unused variable warnings
2553  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2554	 || dynamic_array[ni.number - 1] != 543);
2555'
2556
2557# Test code for whether the C compiler supports C11 (global declarations)
2558ac_c_conftest_c11_globals='
2559// Does the compiler advertise C11 conformance?
2560#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2561# error "Compiler does not advertise C11 conformance"
2562#endif
2563
2564// Check _Alignas.
2565char _Alignas (double) aligned_as_double;
2566char _Alignas (0) no_special_alignment;
2567extern char aligned_as_int;
2568char _Alignas (0) _Alignas (int) aligned_as_int;
2569
2570// Check _Alignof.
2571enum
2572{
2573  int_alignment = _Alignof (int),
2574  int_array_alignment = _Alignof (int[100]),
2575  char_alignment = _Alignof (char)
2576};
2577_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2578
2579// Check _Noreturn.
2580int _Noreturn does_not_return (void) { for (;;) continue; }
2581
2582// Check _Static_assert.
2583struct test_static_assert
2584{
2585  int x;
2586  _Static_assert (sizeof (int) <= sizeof (long int),
2587                  "_Static_assert does not work in struct");
2588  long int y;
2589};
2590
2591// Check UTF-8 literals.
2592#define u8 syntax error!
2593char const utf8_literal[] = u8"happens to be ASCII" "another string";
2594
2595// Check duplicate typedefs.
2596typedef long *long_ptr;
2597typedef long int *long_ptr;
2598typedef long_ptr long_ptr;
2599
2600// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2601struct anonymous
2602{
2603  union {
2604    struct { int i; int j; };
2605    struct { int k; long int l; } w;
2606  };
2607  int m;
2608} v1;
2609'
2610
2611# Test code for whether the C compiler supports C11 (body of main).
2612ac_c_conftest_c11_main='
2613  _Static_assert ((offsetof (struct anonymous, i)
2614		   == offsetof (struct anonymous, w.k)),
2615		  "Anonymous union alignment botch");
2616  v1.i = 2;
2617  v1.w.k = 5;
2618  ok |= v1.i != 5;
2619'
2620
2621# Test code for whether the C compiler supports C11 (complete).
2622ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2623${ac_c_conftest_c99_globals}
2624${ac_c_conftest_c11_globals}
2625
2626int
2627main (int argc, char **argv)
2628{
2629  int ok = 0;
2630  ${ac_c_conftest_c89_main}
2631  ${ac_c_conftest_c99_main}
2632  ${ac_c_conftest_c11_main}
2633  return ok;
2634}
2635"
2636
2637# Test code for whether the C compiler supports C99 (complete).
2638ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2639${ac_c_conftest_c99_globals}
2640
2641int
2642main (int argc, char **argv)
2643{
2644  int ok = 0;
2645  ${ac_c_conftest_c89_main}
2646  ${ac_c_conftest_c99_main}
2647  return ok;
2648}
2649"
2650
2651# Test code for whether the C compiler supports C89 (complete).
2652ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2653
2654int
2655main (int argc, char **argv)
2656{
2657  int ok = 0;
2658  ${ac_c_conftest_c89_main}
2659  return ok;
2660}
2661"
2662
2663as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2664as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2665as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2666as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2667as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2668as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2669as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2670as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2671as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2672
2673# Auxiliary files required by this configure script.
2674ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2675
2676# Locations in which to look for auxiliary files.
2677ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2678
2679# Search for a directory containing all of the required auxiliary files,
2680# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2681# If we don't find one directory that contains all the files we need,
2682# we report the set of missing files from the *first* directory in
2683# $ac_aux_dir_candidates and give up.
2684ac_missing_aux_files=""
2685ac_first_candidate=:
2686printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688as_found=false
2689for as_dir in $ac_aux_dir_candidates
2690do
2691  IFS=$as_save_IFS
2692  case $as_dir in #(((
2693    '') as_dir=./ ;;
2694    */) ;;
2695    *) as_dir=$as_dir/ ;;
2696  esac
2697  as_found=:
2698
2699  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2700  ac_aux_dir_found=yes
2701  ac_install_sh=
2702  for ac_aux in $ac_aux_files
2703  do
2704    # As a special case, if "install-sh" is required, that requirement
2705    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2706    # and $ac_install_sh is set appropriately for whichever one is found.
2707    if test x"$ac_aux" = x"install-sh"
2708    then
2709      if test -f "${as_dir}install-sh"; then
2710        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2711        ac_install_sh="${as_dir}install-sh -c"
2712      elif test -f "${as_dir}install.sh"; then
2713        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2714        ac_install_sh="${as_dir}install.sh -c"
2715      elif test -f "${as_dir}shtool"; then
2716        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2717        ac_install_sh="${as_dir}shtool install -c"
2718      else
2719        ac_aux_dir_found=no
2720        if $ac_first_candidate; then
2721          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2722        else
2723          break
2724        fi
2725      fi
2726    else
2727      if test -f "${as_dir}${ac_aux}"; then
2728        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2729      else
2730        ac_aux_dir_found=no
2731        if $ac_first_candidate; then
2732          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2733        else
2734          break
2735        fi
2736      fi
2737    fi
2738  done
2739  if test "$ac_aux_dir_found" = yes; then
2740    ac_aux_dir="$as_dir"
2741    break
2742  fi
2743  ac_first_candidate=false
2744
2745  as_found=false
2746done
2747IFS=$as_save_IFS
2748if $as_found
2749then :
2750
2751else $as_nop
2752  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2753fi
2754
2755
2756# These three variables are undocumented and unsupported,
2757# and are intended to be withdrawn in a future Autoconf release.
2758# They can cause serious problems if a builder's source tree is in a directory
2759# whose full name contains unusual characters.
2760if test -f "${ac_aux_dir}config.guess"; then
2761  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2762fi
2763if test -f "${ac_aux_dir}config.sub"; then
2764  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2765fi
2766if test -f "$ac_aux_dir/configure"; then
2767  ac_configure="$SHELL ${ac_aux_dir}configure"
2768fi
2769
2770# Check that the precious variables saved in the cache have kept the same
2771# value.
2772ac_cache_corrupted=false
2773for ac_var in $ac_precious_vars; do
2774  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2775  eval ac_new_set=\$ac_env_${ac_var}_set
2776  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2777  eval ac_new_val=\$ac_env_${ac_var}_value
2778  case $ac_old_set,$ac_new_set in
2779    set,)
2780      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2781printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2782      ac_cache_corrupted=: ;;
2783    ,set)
2784      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2785printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2786      ac_cache_corrupted=: ;;
2787    ,);;
2788    *)
2789      if test "x$ac_old_val" != "x$ac_new_val"; then
2790	# differences in whitespace do not lead to failure.
2791	ac_old_val_w=`echo x $ac_old_val`
2792	ac_new_val_w=`echo x $ac_new_val`
2793	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2794	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2795printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2796	  ac_cache_corrupted=:
2797	else
2798	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2799printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2800	  eval $ac_var=\$ac_old_val
2801	fi
2802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2803printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2805printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2806      fi;;
2807  esac
2808  # Pass precious variables to config.status.
2809  if test "$ac_new_set" = set; then
2810    case $ac_new_val in
2811    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2812    *) ac_arg=$ac_var=$ac_new_val ;;
2813    esac
2814    case " $ac_configure_args " in
2815      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2816      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2817    esac
2818  fi
2819done
2820if $ac_cache_corrupted; then
2821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2824printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2825  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2826	    and start over" "$LINENO" 5
2827fi
2828## -------------------- ##
2829## Main body of script. ##
2830## -------------------- ##
2831
2832ac_ext=c
2833ac_cpp='$CPP $CPPFLAGS'
2834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837
2838
2839
2840ac_config_headers="$ac_config_headers config.h"
2841
2842
2843# Initialize Automake
2844am__api_version='1.16'
2845
2846
2847
2848  # Find a good install program.  We prefer a C program (faster),
2849# so one script is as good as another.  But avoid the broken or
2850# incompatible versions:
2851# SysV /etc/install, /usr/sbin/install
2852# SunOS /usr/etc/install
2853# IRIX /sbin/install
2854# AIX /bin/install
2855# AmigaOS /C/install, which installs bootblocks on floppy discs
2856# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2857# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2858# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2859# OS/2's system install, which has a completely different semantic
2860# ./install, which can be erroneously created by make from ./install.sh.
2861# Reject install programs that cannot install multiple files.
2862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2863printf %s "checking for a BSD-compatible install... " >&6; }
2864if test -z "$INSTALL"; then
2865if test ${ac_cv_path_install+y}
2866then :
2867  printf %s "(cached) " >&6
2868else $as_nop
2869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872  IFS=$as_save_IFS
2873  case $as_dir in #(((
2874    '') as_dir=./ ;;
2875    */) ;;
2876    *) as_dir=$as_dir/ ;;
2877  esac
2878    # Account for fact that we put trailing slashes in our PATH walk.
2879case $as_dir in #((
2880  ./ | /[cC]/* | \
2881  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2882  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2883  /usr/ucb/* ) ;;
2884  *)
2885    # OSF1 and SCO ODT 3.0 have their own names for install.
2886    # Don't use installbsd from OSF since it installs stuff as root
2887    # by default.
2888    for ac_prog in ginstall scoinst install; do
2889      for ac_exec_ext in '' $ac_executable_extensions; do
2890	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2891	  if test $ac_prog = install &&
2892	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2893	    # AIX install.  It has an incompatible calling convention.
2894	    :
2895	  elif test $ac_prog = install &&
2896	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897	    # program-specific install script used by HP pwplus--don't use.
2898	    :
2899	  else
2900	    rm -rf conftest.one conftest.two conftest.dir
2901	    echo one > conftest.one
2902	    echo two > conftest.two
2903	    mkdir conftest.dir
2904	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2905	      test -s conftest.one && test -s conftest.two &&
2906	      test -s conftest.dir/conftest.one &&
2907	      test -s conftest.dir/conftest.two
2908	    then
2909	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2910	      break 3
2911	    fi
2912	  fi
2913	fi
2914      done
2915    done
2916    ;;
2917esac
2918
2919  done
2920IFS=$as_save_IFS
2921
2922rm -rf conftest.one conftest.two conftest.dir
2923
2924fi
2925  if test ${ac_cv_path_install+y}; then
2926    INSTALL=$ac_cv_path_install
2927  else
2928    # As a last resort, use the slow shell script.  Don't cache a
2929    # value for INSTALL within a source directory, because that will
2930    # break other packages using the cache if that directory is
2931    # removed, or if the value is a relative name.
2932    INSTALL=$ac_install_sh
2933  fi
2934fi
2935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2936printf "%s\n" "$INSTALL" >&6; }
2937
2938# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2939# It thinks the first close brace ends the variable substitution.
2940test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2941
2942test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2943
2944test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2945
2946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2947printf %s "checking whether build environment is sane... " >&6; }
2948# Reject unsafe characters in $srcdir or the absolute working directory
2949# name.  Accept space and tab only in the latter.
2950am_lf='
2951'
2952case `pwd` in
2953  *[\\\"\#\$\&\'\`$am_lf]*)
2954    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2955esac
2956case $srcdir in
2957  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2958    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2959esac
2960
2961# Do 'set' in a subshell so we don't clobber the current shell's
2962# arguments.  Must try -L first in case configure is actually a
2963# symlink; some systems play weird games with the mod time of symlinks
2964# (eg FreeBSD returns the mod time of the symlink's containing
2965# directory).
2966if (
2967   am_has_slept=no
2968   for am_try in 1 2; do
2969     echo "timestamp, slept: $am_has_slept" > conftest.file
2970     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2971     if test "$*" = "X"; then
2972	# -L didn't work.
2973	set X `ls -t "$srcdir/configure" conftest.file`
2974     fi
2975     if test "$*" != "X $srcdir/configure conftest.file" \
2976	&& test "$*" != "X conftest.file $srcdir/configure"; then
2977
2978	# If neither matched, then we have a broken ls.  This can happen
2979	# if, for instance, CONFIG_SHELL is bash and it inherits a
2980	# broken ls alias from the environment.  This has actually
2981	# happened.  Such a system could not be considered "sane".
2982	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2983  alias in your environment" "$LINENO" 5
2984     fi
2985     if test "$2" = conftest.file || test $am_try -eq 2; then
2986       break
2987     fi
2988     # Just in case.
2989     sleep 1
2990     am_has_slept=yes
2991   done
2992   test "$2" = conftest.file
2993   )
2994then
2995   # Ok.
2996   :
2997else
2998   as_fn_error $? "newly created file is older than distributed files!
2999Check your system clock" "$LINENO" 5
3000fi
3001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002printf "%s\n" "yes" >&6; }
3003# If we didn't sleep, we still need to ensure time stamps of config.status and
3004# generated files are strictly newer.
3005am_sleep_pid=
3006if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3007  ( sleep 1 ) &
3008  am_sleep_pid=$!
3009fi
3010
3011rm -f conftest.file
3012
3013test "$program_prefix" != NONE &&
3014  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3015# Use a double $ so make ignores it.
3016test "$program_suffix" != NONE &&
3017  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3018# Double any \ or $.
3019# By default was `s,x,x', remove it if useless.
3020ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3021program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3022
3023
3024# Expand $ac_aux_dir to an absolute path.
3025am_aux_dir=`cd "$ac_aux_dir" && pwd`
3026
3027
3028  if test x"${MISSING+set}" != xset; then
3029  MISSING="\${SHELL} '$am_aux_dir/missing'"
3030fi
3031# Use eval to expand $SHELL
3032if eval "$MISSING --is-lightweight"; then
3033  am_missing_run="$MISSING "
3034else
3035  am_missing_run=
3036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3037printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3038fi
3039
3040if test x"${install_sh+set}" != xset; then
3041  case $am_aux_dir in
3042  *\ * | *\	*)
3043    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3044  *)
3045    install_sh="\${SHELL} $am_aux_dir/install-sh"
3046  esac
3047fi
3048
3049# Installed binaries are usually stripped using 'strip' when the user
3050# run "make install-strip".  However 'strip' might not be the right
3051# tool to use in cross-compilation environments, therefore Automake
3052# will honor the 'STRIP' environment variable to overrule this program.
3053if test "$cross_compiling" != no; then
3054  if test -n "$ac_tool_prefix"; then
3055  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3056set dummy ${ac_tool_prefix}strip; ac_word=$2
3057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058printf %s "checking for $ac_word... " >&6; }
3059if test ${ac_cv_prog_STRIP+y}
3060then :
3061  printf %s "(cached) " >&6
3062else $as_nop
3063  if test -n "$STRIP"; then
3064  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  case $as_dir in #(((
3071    '') as_dir=./ ;;
3072    */) ;;
3073    *) as_dir=$as_dir/ ;;
3074  esac
3075    for ac_exec_ext in '' $ac_executable_extensions; do
3076  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3077    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3078    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3079    break 2
3080  fi
3081done
3082  done
3083IFS=$as_save_IFS
3084
3085fi
3086fi
3087STRIP=$ac_cv_prog_STRIP
3088if test -n "$STRIP"; then
3089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3090printf "%s\n" "$STRIP" >&6; }
3091else
3092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093printf "%s\n" "no" >&6; }
3094fi
3095
3096
3097fi
3098if test -z "$ac_cv_prog_STRIP"; then
3099  ac_ct_STRIP=$STRIP
3100  # Extract the first word of "strip", so it can be a program name with args.
3101set dummy strip; ac_word=$2
3102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103printf %s "checking for $ac_word... " >&6; }
3104if test ${ac_cv_prog_ac_ct_STRIP+y}
3105then :
3106  printf %s "(cached) " >&6
3107else $as_nop
3108  if test -n "$ac_ct_STRIP"; then
3109  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114  IFS=$as_save_IFS
3115  case $as_dir in #(((
3116    '') as_dir=./ ;;
3117    */) ;;
3118    *) as_dir=$as_dir/ ;;
3119  esac
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3122    ac_cv_prog_ac_ct_STRIP="strip"
3123    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127  done
3128IFS=$as_save_IFS
3129
3130fi
3131fi
3132ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3133if test -n "$ac_ct_STRIP"; then
3134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3135printf "%s\n" "$ac_ct_STRIP" >&6; }
3136else
3137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138printf "%s\n" "no" >&6; }
3139fi
3140
3141  if test "x$ac_ct_STRIP" = x; then
3142    STRIP=":"
3143  else
3144    case $cross_compiling:$ac_tool_warned in
3145yes:)
3146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3147printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3148ac_tool_warned=yes ;;
3149esac
3150    STRIP=$ac_ct_STRIP
3151  fi
3152else
3153  STRIP="$ac_cv_prog_STRIP"
3154fi
3155
3156fi
3157INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3158
3159
3160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3161printf %s "checking for a race-free mkdir -p... " >&6; }
3162if test -z "$MKDIR_P"; then
3163  if test ${ac_cv_path_mkdir+y}
3164then :
3165  printf %s "(cached) " >&6
3166else $as_nop
3167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3169do
3170  IFS=$as_save_IFS
3171  case $as_dir in #(((
3172    '') as_dir=./ ;;
3173    */) ;;
3174    *) as_dir=$as_dir/ ;;
3175  esac
3176    for ac_prog in mkdir gmkdir; do
3177	 for ac_exec_ext in '' $ac_executable_extensions; do
3178	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3179	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3180	     'mkdir ('*'coreutils) '* | \
3181	     'BusyBox '* | \
3182	     'mkdir (fileutils) '4.1*)
3183	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3184	       break 3;;
3185	   esac
3186	 done
3187       done
3188  done
3189IFS=$as_save_IFS
3190
3191fi
3192
3193  test -d ./--version && rmdir ./--version
3194  if test ${ac_cv_path_mkdir+y}; then
3195    MKDIR_P="$ac_cv_path_mkdir -p"
3196  else
3197    # As a last resort, use the slow shell script.  Don't cache a
3198    # value for MKDIR_P within a source directory, because that will
3199    # break other packages using the cache if that directory is
3200    # removed, or if the value is a relative name.
3201    MKDIR_P="$ac_install_sh -d"
3202  fi
3203fi
3204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3205printf "%s\n" "$MKDIR_P" >&6; }
3206
3207for ac_prog in gawk mawk nawk awk
3208do
3209  # Extract the first word of "$ac_prog", so it can be a program name with args.
3210set dummy $ac_prog; ac_word=$2
3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212printf %s "checking for $ac_word... " >&6; }
3213if test ${ac_cv_prog_AWK+y}
3214then :
3215  printf %s "(cached) " >&6
3216else $as_nop
3217  if test -n "$AWK"; then
3218  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3219else
3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223  IFS=$as_save_IFS
3224  case $as_dir in #(((
3225    '') as_dir=./ ;;
3226    */) ;;
3227    *) as_dir=$as_dir/ ;;
3228  esac
3229    for ac_exec_ext in '' $ac_executable_extensions; do
3230  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3231    ac_cv_prog_AWK="$ac_prog"
3232    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3233    break 2
3234  fi
3235done
3236  done
3237IFS=$as_save_IFS
3238
3239fi
3240fi
3241AWK=$ac_cv_prog_AWK
3242if test -n "$AWK"; then
3243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3244printf "%s\n" "$AWK" >&6; }
3245else
3246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247printf "%s\n" "no" >&6; }
3248fi
3249
3250
3251  test -n "$AWK" && break
3252done
3253
3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3255printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3256set x ${MAKE-make}
3257ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3258if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3259then :
3260  printf %s "(cached) " >&6
3261else $as_nop
3262  cat >conftest.make <<\_ACEOF
3263SHELL = /bin/sh
3264all:
3265	@echo '@@@%%%=$(MAKE)=@@@%%%'
3266_ACEOF
3267# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3268case `${MAKE-make} -f conftest.make 2>/dev/null` in
3269  *@@@%%%=?*=@@@%%%*)
3270    eval ac_cv_prog_make_${ac_make}_set=yes;;
3271  *)
3272    eval ac_cv_prog_make_${ac_make}_set=no;;
3273esac
3274rm -f conftest.make
3275fi
3276if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278printf "%s\n" "yes" >&6; }
3279  SET_MAKE=
3280else
3281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282printf "%s\n" "no" >&6; }
3283  SET_MAKE="MAKE=${MAKE-make}"
3284fi
3285
3286rm -rf .tst 2>/dev/null
3287mkdir .tst 2>/dev/null
3288if test -d .tst; then
3289  am__leading_dot=.
3290else
3291  am__leading_dot=_
3292fi
3293rmdir .tst 2>/dev/null
3294
3295# Check whether --enable-silent-rules was given.
3296if test ${enable_silent_rules+y}
3297then :
3298  enableval=$enable_silent_rules;
3299fi
3300
3301case $enable_silent_rules in # (((
3302  yes) AM_DEFAULT_VERBOSITY=0;;
3303   no) AM_DEFAULT_VERBOSITY=1;;
3304    *) AM_DEFAULT_VERBOSITY=1;;
3305esac
3306am_make=${MAKE-make}
3307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3308printf %s "checking whether $am_make supports nested variables... " >&6; }
3309if test ${am_cv_make_support_nested_variables+y}
3310then :
3311  printf %s "(cached) " >&6
3312else $as_nop
3313  if printf "%s\n" 'TRUE=$(BAR$(V))
3314BAR0=false
3315BAR1=true
3316V=1
3317am__doit:
3318	@$(TRUE)
3319.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3320  am_cv_make_support_nested_variables=yes
3321else
3322  am_cv_make_support_nested_variables=no
3323fi
3324fi
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3326printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3327if test $am_cv_make_support_nested_variables = yes; then
3328    AM_V='$(V)'
3329  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3330else
3331  AM_V=$AM_DEFAULT_VERBOSITY
3332  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3333fi
3334AM_BACKSLASH='\'
3335
3336if test "`cd $srcdir && pwd`" != "`pwd`"; then
3337  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3338  # is not polluted with repeated "-I."
3339  am__isrc=' -I$(srcdir)'
3340  # test to see if srcdir already configured
3341  if test -f $srcdir/config.status; then
3342    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3343  fi
3344fi
3345
3346# test whether we have cygpath
3347if test -z "$CYGPATH_W"; then
3348  if (cygpath --version) >/dev/null 2>/dev/null; then
3349    CYGPATH_W='cygpath -w'
3350  else
3351    CYGPATH_W=echo
3352  fi
3353fi
3354
3355
3356# Define the identity of the package.
3357 PACKAGE='libSM'
3358 VERSION='1.2.4'
3359
3360
3361printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3362
3363
3364printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3365
3366# Some tools Automake needs.
3367
3368ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3369
3370
3371AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3372
3373
3374AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3375
3376
3377AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3378
3379
3380MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3381
3382# For better backward compatibility.  To be removed once Automake 1.9.x
3383# dies out for good.  For more background, see:
3384# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3385# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3386mkdir_p='$(MKDIR_P)'
3387
3388# We need awk for the "check" target (and possibly the TAP driver).  The
3389# system "awk" is bad on some platforms.
3390# Always define AMTAR for backward compatibility.  Yes, it's still used
3391# in the wild :-(  We should find a proper way to deprecate it ...
3392AMTAR='$${TAR-tar}'
3393
3394
3395# We'll loop over all known methods to create a tar archive until one works.
3396_am_tools='gnutar  pax cpio none'
3397
3398am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3399
3400
3401
3402
3403
3404# Variables for tags utilities; see am/tags.am
3405if test -z "$CTAGS"; then
3406  CTAGS=ctags
3407fi
3408
3409if test -z "$ETAGS"; then
3410  ETAGS=etags
3411fi
3412
3413if test -z "$CSCOPE"; then
3414  CSCOPE=cscope
3415fi
3416
3417
3418
3419# POSIX will say in a future version that running "rm -f" with no argument
3420# is OK; and we want to be able to make that assumption in our Makefile
3421# recipes.  So use an aggressive probe to check that the usage we want is
3422# actually supported "in the wild" to an acceptable degree.
3423# See automake bug#10828.
3424# To make any issue more visible, cause the running configure to be aborted
3425# by default if the 'rm' program in use doesn't match our expectations; the
3426# user can still override this though.
3427if rm -f && rm -fr && rm -rf; then : OK; else
3428  cat >&2 <<'END'
3429Oops!
3430
3431Your 'rm' program seems unable to run without file operands specified
3432on the command line, even when the '-f' option is present.  This is contrary
3433to the behaviour of most rm programs out there, and not conforming with
3434the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3435
3436Please tell bug-automake@gnu.org about your system, including the value
3437of your $PATH and any error possibly output before this message.  This
3438can help us improve future automake versions.
3439
3440END
3441  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3442    echo 'Configuration will proceed anyway, since you have set the' >&2
3443    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3444    echo >&2
3445  else
3446    cat >&2 <<'END'
3447Aborting the configuration process, to ensure you take notice of the issue.
3448
3449You can download and install GNU coreutils to get an 'rm' implementation
3450that behaves properly: <https://www.gnu.org/software/coreutils/>.
3451
3452If you want to complete the configuration process using your problematic
3453'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3454to "yes", and re-run configure.
3455
3456END
3457    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3458  fi
3459fi
3460
3461
3462# Initialize libtool
3463case `pwd` in
3464  *\ * | *\	*)
3465    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3466printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3467esac
3468
3469
3470
3471macro_version='2.4.7'
3472macro_revision='2.4.7'
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487ltmain=$ac_aux_dir/ltmain.sh
3488
3489
3490
3491  # Make sure we can run config.sub.
3492$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3493  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3494
3495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3496printf %s "checking build system type... " >&6; }
3497if test ${ac_cv_build+y}
3498then :
3499  printf %s "(cached) " >&6
3500else $as_nop
3501  ac_build_alias=$build_alias
3502test "x$ac_build_alias" = x &&
3503  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3504test "x$ac_build_alias" = x &&
3505  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3506ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3507  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3508
3509fi
3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3511printf "%s\n" "$ac_cv_build" >&6; }
3512case $ac_cv_build in
3513*-*-*) ;;
3514*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3515esac
3516build=$ac_cv_build
3517ac_save_IFS=$IFS; IFS='-'
3518set x $ac_cv_build
3519shift
3520build_cpu=$1
3521build_vendor=$2
3522shift; shift
3523# Remember, the first character of IFS is used to create $*,
3524# except with old shells:
3525build_os=$*
3526IFS=$ac_save_IFS
3527case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3528
3529
3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3531printf %s "checking host system type... " >&6; }
3532if test ${ac_cv_host+y}
3533then :
3534  printf %s "(cached) " >&6
3535else $as_nop
3536  if test "x$host_alias" = x; then
3537  ac_cv_host=$ac_cv_build
3538else
3539  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3540    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3541fi
3542
3543fi
3544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3545printf "%s\n" "$ac_cv_host" >&6; }
3546case $ac_cv_host in
3547*-*-*) ;;
3548*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3549esac
3550host=$ac_cv_host
3551ac_save_IFS=$IFS; IFS='-'
3552set x $ac_cv_host
3553shift
3554host_cpu=$1
3555host_vendor=$2
3556shift; shift
3557# Remember, the first character of IFS is used to create $*,
3558# except with old shells:
3559host_os=$*
3560IFS=$ac_save_IFS
3561case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3562
3563
3564# Backslashify metacharacters that are still active within
3565# double-quoted strings.
3566sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3567
3568# Same as above, but do not quote variable references.
3569double_quote_subst='s/\(["`\\]\)/\\\1/g'
3570
3571# Sed substitution to delay expansion of an escaped shell variable in a
3572# double_quote_subst'ed string.
3573delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3574
3575# Sed substitution to delay expansion of an escaped single quote.
3576delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3577
3578# Sed substitution to avoid accidental globbing in evaled expressions
3579no_glob_subst='s/\*/\\\*/g'
3580
3581ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3582ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3583ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3584
3585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3586printf %s "checking how to print strings... " >&6; }
3587# Test print first, because it will be a builtin if present.
3588if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3589   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3590  ECHO='print -r --'
3591elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3592  ECHO='printf %s\n'
3593else
3594  # Use this function as a fallback that always works.
3595  func_fallback_echo ()
3596  {
3597    eval 'cat <<_LTECHO_EOF
3598$1
3599_LTECHO_EOF'
3600  }
3601  ECHO='func_fallback_echo'
3602fi
3603
3604# func_echo_all arg...
3605# Invoke $ECHO with all args, space-separated.
3606func_echo_all ()
3607{
3608    $ECHO ""
3609}
3610
3611case $ECHO in
3612  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3613printf "%s\n" "printf" >&6; } ;;
3614  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3615printf "%s\n" "print -r" >&6; } ;;
3616  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3617printf "%s\n" "cat" >&6; } ;;
3618esac
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642DEPDIR="${am__leading_dot}deps"
3643
3644ac_config_commands="$ac_config_commands depfiles"
3645
3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3647printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3648cat > confinc.mk << 'END'
3649am__doit:
3650	@echo this is the am__doit target >confinc.out
3651.PHONY: am__doit
3652END
3653am__include="#"
3654am__quote=
3655# BSD make does it like this.
3656echo '.include "confinc.mk" # ignored' > confmf.BSD
3657# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3658echo 'include confinc.mk # ignored' > confmf.GNU
3659_am_result=no
3660for s in GNU BSD; do
3661  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3662   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }
3666  case $?:`cat confinc.out 2>/dev/null` in #(
3667  '0:this is the am__doit target') :
3668    case $s in #(
3669  BSD) :
3670    am__include='.include' am__quote='"' ;; #(
3671  *) :
3672    am__include='include' am__quote='' ;;
3673esac ;; #(
3674  *) :
3675     ;;
3676esac
3677  if test "$am__include" != "#"; then
3678    _am_result="yes ($s style)"
3679    break
3680  fi
3681done
3682rm -f confinc.* confmf.*
3683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3684printf "%s\n" "${_am_result}" >&6; }
3685
3686# Check whether --enable-dependency-tracking was given.
3687if test ${enable_dependency_tracking+y}
3688then :
3689  enableval=$enable_dependency_tracking;
3690fi
3691
3692if test "x$enable_dependency_tracking" != xno; then
3693  am_depcomp="$ac_aux_dir/depcomp"
3694  AMDEPBACKSLASH='\'
3695  am__nodep='_no'
3696fi
3697 if test "x$enable_dependency_tracking" != xno; then
3698  AMDEP_TRUE=
3699  AMDEP_FALSE='#'
3700else
3701  AMDEP_TRUE='#'
3702  AMDEP_FALSE=
3703fi
3704
3705
3706ac_ext=c
3707ac_cpp='$CPP $CPPFLAGS'
3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711if test -n "$ac_tool_prefix"; then
3712  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3713set dummy ${ac_tool_prefix}gcc; ac_word=$2
3714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715printf %s "checking for $ac_word... " >&6; }
3716if test ${ac_cv_prog_CC+y}
3717then :
3718  printf %s "(cached) " >&6
3719else $as_nop
3720  if test -n "$CC"; then
3721  ac_cv_prog_CC="$CC" # Let the user override the test.
3722else
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH
3725do
3726  IFS=$as_save_IFS
3727  case $as_dir in #(((
3728    '') as_dir=./ ;;
3729    */) ;;
3730    *) as_dir=$as_dir/ ;;
3731  esac
3732    for ac_exec_ext in '' $ac_executable_extensions; do
3733  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3734    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3735    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3736    break 2
3737  fi
3738done
3739  done
3740IFS=$as_save_IFS
3741
3742fi
3743fi
3744CC=$ac_cv_prog_CC
3745if test -n "$CC"; then
3746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747printf "%s\n" "$CC" >&6; }
3748else
3749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750printf "%s\n" "no" >&6; }
3751fi
3752
3753
3754fi
3755if test -z "$ac_cv_prog_CC"; then
3756  ac_ct_CC=$CC
3757  # Extract the first word of "gcc", so it can be a program name with args.
3758set dummy gcc; ac_word=$2
3759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760printf %s "checking for $ac_word... " >&6; }
3761if test ${ac_cv_prog_ac_ct_CC+y}
3762then :
3763  printf %s "(cached) " >&6
3764else $as_nop
3765  if test -n "$ac_ct_CC"; then
3766  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771  IFS=$as_save_IFS
3772  case $as_dir in #(((
3773    '') as_dir=./ ;;
3774    */) ;;
3775    *) as_dir=$as_dir/ ;;
3776  esac
3777    for ac_exec_ext in '' $ac_executable_extensions; do
3778  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3779    ac_cv_prog_ac_ct_CC="gcc"
3780    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3781    break 2
3782  fi
3783done
3784  done
3785IFS=$as_save_IFS
3786
3787fi
3788fi
3789ac_ct_CC=$ac_cv_prog_ac_ct_CC
3790if test -n "$ac_ct_CC"; then
3791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3792printf "%s\n" "$ac_ct_CC" >&6; }
3793else
3794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795printf "%s\n" "no" >&6; }
3796fi
3797
3798  if test "x$ac_ct_CC" = x; then
3799    CC=""
3800  else
3801    case $cross_compiling:$ac_tool_warned in
3802yes:)
3803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805ac_tool_warned=yes ;;
3806esac
3807    CC=$ac_ct_CC
3808  fi
3809else
3810  CC="$ac_cv_prog_CC"
3811fi
3812
3813if test -z "$CC"; then
3814          if test -n "$ac_tool_prefix"; then
3815    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3816set dummy ${ac_tool_prefix}cc; ac_word=$2
3817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818printf %s "checking for $ac_word... " >&6; }
3819if test ${ac_cv_prog_CC+y}
3820then :
3821  printf %s "(cached) " >&6
3822else $as_nop
3823  if test -n "$CC"; then
3824  ac_cv_prog_CC="$CC" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829  IFS=$as_save_IFS
3830  case $as_dir in #(((
3831    '') as_dir=./ ;;
3832    */) ;;
3833    *) as_dir=$as_dir/ ;;
3834  esac
3835    for ac_exec_ext in '' $ac_executable_extensions; do
3836  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3837    ac_cv_prog_CC="${ac_tool_prefix}cc"
3838    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3839    break 2
3840  fi
3841done
3842  done
3843IFS=$as_save_IFS
3844
3845fi
3846fi
3847CC=$ac_cv_prog_CC
3848if test -n "$CC"; then
3849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3850printf "%s\n" "$CC" >&6; }
3851else
3852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853printf "%s\n" "no" >&6; }
3854fi
3855
3856
3857  fi
3858fi
3859if test -z "$CC"; then
3860  # Extract the first word of "cc", so it can be a program name with args.
3861set dummy cc; ac_word=$2
3862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863printf %s "checking for $ac_word... " >&6; }
3864if test ${ac_cv_prog_CC+y}
3865then :
3866  printf %s "(cached) " >&6
3867else $as_nop
3868  if test -n "$CC"; then
3869  ac_cv_prog_CC="$CC" # Let the user override the test.
3870else
3871  ac_prog_rejected=no
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875  IFS=$as_save_IFS
3876  case $as_dir in #(((
3877    '') as_dir=./ ;;
3878    */) ;;
3879    *) as_dir=$as_dir/ ;;
3880  esac
3881    for ac_exec_ext in '' $ac_executable_extensions; do
3882  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3883    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3884       ac_prog_rejected=yes
3885       continue
3886     fi
3887    ac_cv_prog_CC="cc"
3888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3889    break 2
3890  fi
3891done
3892  done
3893IFS=$as_save_IFS
3894
3895if test $ac_prog_rejected = yes; then
3896  # We found a bogon in the path, so make sure we never use it.
3897  set dummy $ac_cv_prog_CC
3898  shift
3899  if test $# != 0; then
3900    # We chose a different compiler from the bogus one.
3901    # However, it has the same basename, so the bogon will be chosen
3902    # first if we set CC to just the basename; use the full file name.
3903    shift
3904    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3905  fi
3906fi
3907fi
3908fi
3909CC=$ac_cv_prog_CC
3910if test -n "$CC"; then
3911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912printf "%s\n" "$CC" >&6; }
3913else
3914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915printf "%s\n" "no" >&6; }
3916fi
3917
3918
3919fi
3920if test -z "$CC"; then
3921  if test -n "$ac_tool_prefix"; then
3922  for ac_prog in cl.exe
3923  do
3924    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927printf %s "checking for $ac_word... " >&6; }
3928if test ${ac_cv_prog_CC+y}
3929then :
3930  printf %s "(cached) " >&6
3931else $as_nop
3932  if test -n "$CC"; then
3933  ac_cv_prog_CC="$CC" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938  IFS=$as_save_IFS
3939  case $as_dir in #(((
3940    '') as_dir=./ ;;
3941    */) ;;
3942    *) as_dir=$as_dir/ ;;
3943  esac
3944    for ac_exec_ext in '' $ac_executable_extensions; do
3945  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3946    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3947    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3948    break 2
3949  fi
3950done
3951  done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956CC=$ac_cv_prog_CC
3957if test -n "$CC"; then
3958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959printf "%s\n" "$CC" >&6; }
3960else
3961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962printf "%s\n" "no" >&6; }
3963fi
3964
3965
3966    test -n "$CC" && break
3967  done
3968fi
3969if test -z "$CC"; then
3970  ac_ct_CC=$CC
3971  for ac_prog in cl.exe
3972do
3973  # Extract the first word of "$ac_prog", so it can be a program name with args.
3974set dummy $ac_prog; ac_word=$2
3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976printf %s "checking for $ac_word... " >&6; }
3977if test ${ac_cv_prog_ac_ct_CC+y}
3978then :
3979  printf %s "(cached) " >&6
3980else $as_nop
3981  if test -n "$ac_ct_CC"; then
3982  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987  IFS=$as_save_IFS
3988  case $as_dir in #(((
3989    '') as_dir=./ ;;
3990    */) ;;
3991    *) as_dir=$as_dir/ ;;
3992  esac
3993    for ac_exec_ext in '' $ac_executable_extensions; do
3994  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3995    ac_cv_prog_ac_ct_CC="$ac_prog"
3996    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3997    break 2
3998  fi
3999done
4000  done
4001IFS=$as_save_IFS
4002
4003fi
4004fi
4005ac_ct_CC=$ac_cv_prog_ac_ct_CC
4006if test -n "$ac_ct_CC"; then
4007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4008printf "%s\n" "$ac_ct_CC" >&6; }
4009else
4010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011printf "%s\n" "no" >&6; }
4012fi
4013
4014
4015  test -n "$ac_ct_CC" && break
4016done
4017
4018  if test "x$ac_ct_CC" = x; then
4019    CC=""
4020  else
4021    case $cross_compiling:$ac_tool_warned in
4022yes:)
4023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025ac_tool_warned=yes ;;
4026esac
4027    CC=$ac_ct_CC
4028  fi
4029fi
4030
4031fi
4032if test -z "$CC"; then
4033  if test -n "$ac_tool_prefix"; then
4034  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4035set dummy ${ac_tool_prefix}clang; ac_word=$2
4036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037printf %s "checking for $ac_word... " >&6; }
4038if test ${ac_cv_prog_CC+y}
4039then :
4040  printf %s "(cached) " >&6
4041else $as_nop
4042  if test -n "$CC"; then
4043  ac_cv_prog_CC="$CC" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048  IFS=$as_save_IFS
4049  case $as_dir in #(((
4050    '') as_dir=./ ;;
4051    */) ;;
4052    *) as_dir=$as_dir/ ;;
4053  esac
4054    for ac_exec_ext in '' $ac_executable_extensions; do
4055  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4056    ac_cv_prog_CC="${ac_tool_prefix}clang"
4057    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061  done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066CC=$ac_cv_prog_CC
4067if test -n "$CC"; then
4068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4069printf "%s\n" "$CC" >&6; }
4070else
4071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072printf "%s\n" "no" >&6; }
4073fi
4074
4075
4076fi
4077if test -z "$ac_cv_prog_CC"; then
4078  ac_ct_CC=$CC
4079  # Extract the first word of "clang", so it can be a program name with args.
4080set dummy clang; ac_word=$2
4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082printf %s "checking for $ac_word... " >&6; }
4083if test ${ac_cv_prog_ac_ct_CC+y}
4084then :
4085  printf %s "(cached) " >&6
4086else $as_nop
4087  if test -n "$ac_ct_CC"; then
4088  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4089else
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093  IFS=$as_save_IFS
4094  case $as_dir in #(((
4095    '') as_dir=./ ;;
4096    */) ;;
4097    *) as_dir=$as_dir/ ;;
4098  esac
4099    for ac_exec_ext in '' $ac_executable_extensions; do
4100  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4101    ac_cv_prog_ac_ct_CC="clang"
4102    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4103    break 2
4104  fi
4105done
4106  done
4107IFS=$as_save_IFS
4108
4109fi
4110fi
4111ac_ct_CC=$ac_cv_prog_ac_ct_CC
4112if test -n "$ac_ct_CC"; then
4113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4114printf "%s\n" "$ac_ct_CC" >&6; }
4115else
4116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117printf "%s\n" "no" >&6; }
4118fi
4119
4120  if test "x$ac_ct_CC" = x; then
4121    CC=""
4122  else
4123    case $cross_compiling:$ac_tool_warned in
4124yes:)
4125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4126printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4127ac_tool_warned=yes ;;
4128esac
4129    CC=$ac_ct_CC
4130  fi
4131else
4132  CC="$ac_cv_prog_CC"
4133fi
4134
4135fi
4136
4137
4138test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4140as_fn_error $? "no acceptable C compiler found in \$PATH
4141See \`config.log' for more details" "$LINENO" 5; }
4142
4143# Provide some information about the compiler.
4144printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4145set X $ac_compile
4146ac_compiler=$2
4147for ac_option in --version -v -V -qversion -version; do
4148  { { ac_try="$ac_compiler $ac_option >&5"
4149case "(($ac_try" in
4150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151  *) ac_try_echo=$ac_try;;
4152esac
4153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154printf "%s\n" "$ac_try_echo"; } >&5
4155  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4156  ac_status=$?
4157  if test -s conftest.err; then
4158    sed '10a\
4159... rest of stderr output deleted ...
4160         10q' conftest.err >conftest.er1
4161    cat conftest.er1 >&5
4162  fi
4163  rm -f conftest.er1 conftest.err
4164  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4165  test $ac_status = 0; }
4166done
4167
4168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170
4171int
4172main (void)
4173{
4174
4175  ;
4176  return 0;
4177}
4178_ACEOF
4179ac_clean_files_save=$ac_clean_files
4180ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4181# Try to create an executable without -o first, disregard a.out.
4182# It will help us diagnose broken compilers, and finding out an intuition
4183# of exeext.
4184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4185printf %s "checking whether the C compiler works... " >&6; }
4186ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4187
4188# The possible output files:
4189ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4190
4191ac_rmfiles=
4192for ac_file in $ac_files
4193do
4194  case $ac_file in
4195    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4196    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4197  esac
4198done
4199rm -f $ac_rmfiles
4200
4201if { { ac_try="$ac_link_default"
4202case "(($ac_try" in
4203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204  *) ac_try_echo=$ac_try;;
4205esac
4206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207printf "%s\n" "$ac_try_echo"; } >&5
4208  (eval "$ac_link_default") 2>&5
4209  ac_status=$?
4210  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211  test $ac_status = 0; }
4212then :
4213  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4214# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4215# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4216# so that the user can short-circuit this test for compilers unknown to
4217# Autoconf.
4218for ac_file in $ac_files ''
4219do
4220  test -f "$ac_file" || continue
4221  case $ac_file in
4222    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4223	;;
4224    [ab].out )
4225	# We found the default executable, but exeext='' is most
4226	# certainly right.
4227	break;;
4228    *.* )
4229	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4230	then :; else
4231	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4232	fi
4233	# We set ac_cv_exeext here because the later test for it is not
4234	# safe: cross compilers may not add the suffix if given an `-o'
4235	# argument, so we may need to know it at that point already.
4236	# Even if this section looks crufty: it has the advantage of
4237	# actually working.
4238	break;;
4239    * )
4240	break;;
4241  esac
4242done
4243test "$ac_cv_exeext" = no && ac_cv_exeext=
4244
4245else $as_nop
4246  ac_file=''
4247fi
4248if test -z "$ac_file"
4249then :
4250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251printf "%s\n" "no" >&6; }
4252printf "%s\n" "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
4254
4255{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4257as_fn_error 77 "C compiler cannot create executables
4258See \`config.log' for more details" "$LINENO" 5; }
4259else $as_nop
4260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4261printf "%s\n" "yes" >&6; }
4262fi
4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4264printf %s "checking for C compiler default output file name... " >&6; }
4265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4266printf "%s\n" "$ac_file" >&6; }
4267ac_exeext=$ac_cv_exeext
4268
4269rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4270ac_clean_files=$ac_clean_files_save
4271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4272printf %s "checking for suffix of executables... " >&6; }
4273if { { ac_try="$ac_link"
4274case "(($ac_try" in
4275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276  *) ac_try_echo=$ac_try;;
4277esac
4278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279printf "%s\n" "$ac_try_echo"; } >&5
4280  (eval "$ac_link") 2>&5
4281  ac_status=$?
4282  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283  test $ac_status = 0; }
4284then :
4285  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4286# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4287# work properly (i.e., refer to `conftest.exe'), while it won't with
4288# `rm'.
4289for ac_file in conftest.exe conftest conftest.*; do
4290  test -f "$ac_file" || continue
4291  case $ac_file in
4292    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4293    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4294	  break;;
4295    * ) break;;
4296  esac
4297done
4298else $as_nop
4299  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4301as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4302See \`config.log' for more details" "$LINENO" 5; }
4303fi
4304rm -f conftest conftest$ac_cv_exeext
4305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4306printf "%s\n" "$ac_cv_exeext" >&6; }
4307
4308rm -f conftest.$ac_ext
4309EXEEXT=$ac_cv_exeext
4310ac_exeext=$EXEEXT
4311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h.  */
4313#include <stdio.h>
4314int
4315main (void)
4316{
4317FILE *f = fopen ("conftest.out", "w");
4318 return ferror (f) || fclose (f) != 0;
4319
4320  ;
4321  return 0;
4322}
4323_ACEOF
4324ac_clean_files="$ac_clean_files conftest.out"
4325# Check that the compiler produces executables we can run.  If not, either
4326# the compiler is broken, or we cross compile.
4327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4328printf %s "checking whether we are cross compiling... " >&6; }
4329if test "$cross_compiling" != yes; then
4330  { { ac_try="$ac_link"
4331case "(($ac_try" in
4332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333  *) ac_try_echo=$ac_try;;
4334esac
4335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336printf "%s\n" "$ac_try_echo"; } >&5
4337  (eval "$ac_link") 2>&5
4338  ac_status=$?
4339  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340  test $ac_status = 0; }
4341  if { ac_try='./conftest$ac_cv_exeext'
4342  { { case "(($ac_try" in
4343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344  *) ac_try_echo=$ac_try;;
4345esac
4346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347printf "%s\n" "$ac_try_echo"; } >&5
4348  (eval "$ac_try") 2>&5
4349  ac_status=$?
4350  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351  test $ac_status = 0; }; }; then
4352    cross_compiling=no
4353  else
4354    if test "$cross_compiling" = maybe; then
4355	cross_compiling=yes
4356    else
4357	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4358printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4359as_fn_error 77 "cannot run C compiled programs.
4360If you meant to cross compile, use \`--host'.
4361See \`config.log' for more details" "$LINENO" 5; }
4362    fi
4363  fi
4364fi
4365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4366printf "%s\n" "$cross_compiling" >&6; }
4367
4368rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4369ac_clean_files=$ac_clean_files_save
4370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4371printf %s "checking for suffix of object files... " >&6; }
4372if test ${ac_cv_objext+y}
4373then :
4374  printf %s "(cached) " >&6
4375else $as_nop
4376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h.  */
4378
4379int
4380main (void)
4381{
4382
4383  ;
4384  return 0;
4385}
4386_ACEOF
4387rm -f conftest.o conftest.obj
4388if { { ac_try="$ac_compile"
4389case "(($ac_try" in
4390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391  *) ac_try_echo=$ac_try;;
4392esac
4393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394printf "%s\n" "$ac_try_echo"; } >&5
4395  (eval "$ac_compile") 2>&5
4396  ac_status=$?
4397  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398  test $ac_status = 0; }
4399then :
4400  for ac_file in conftest.o conftest.obj conftest.*; do
4401  test -f "$ac_file" || continue;
4402  case $ac_file in
4403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4404    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4405       break;;
4406  esac
4407done
4408else $as_nop
4409  printf "%s\n" "$as_me: failed program was:" >&5
4410sed 's/^/| /' conftest.$ac_ext >&5
4411
4412{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4413printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4414as_fn_error $? "cannot compute suffix of object files: cannot compile
4415See \`config.log' for more details" "$LINENO" 5; }
4416fi
4417rm -f conftest.$ac_cv_objext conftest.$ac_ext
4418fi
4419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4420printf "%s\n" "$ac_cv_objext" >&6; }
4421OBJEXT=$ac_cv_objext
4422ac_objext=$OBJEXT
4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4424printf %s "checking whether the compiler supports GNU C... " >&6; }
4425if test ${ac_cv_c_compiler_gnu+y}
4426then :
4427  printf %s "(cached) " >&6
4428else $as_nop
4429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h.  */
4431
4432int
4433main (void)
4434{
4435#ifndef __GNUC__
4436       choke me
4437#endif
4438
4439  ;
4440  return 0;
4441}
4442_ACEOF
4443if ac_fn_c_try_compile "$LINENO"
4444then :
4445  ac_compiler_gnu=yes
4446else $as_nop
4447  ac_compiler_gnu=no
4448fi
4449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4450ac_cv_c_compiler_gnu=$ac_compiler_gnu
4451
4452fi
4453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4454printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4455ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456
4457if test $ac_compiler_gnu = yes; then
4458  GCC=yes
4459else
4460  GCC=
4461fi
4462ac_test_CFLAGS=${CFLAGS+y}
4463ac_save_CFLAGS=$CFLAGS
4464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4465printf %s "checking whether $CC accepts -g... " >&6; }
4466if test ${ac_cv_prog_cc_g+y}
4467then :
4468  printf %s "(cached) " >&6
4469else $as_nop
4470  ac_save_c_werror_flag=$ac_c_werror_flag
4471   ac_c_werror_flag=yes
4472   ac_cv_prog_cc_g=no
4473   CFLAGS="-g"
4474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h.  */
4476
4477int
4478main (void)
4479{
4480
4481  ;
4482  return 0;
4483}
4484_ACEOF
4485if ac_fn_c_try_compile "$LINENO"
4486then :
4487  ac_cv_prog_cc_g=yes
4488else $as_nop
4489  CFLAGS=""
4490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h.  */
4492
4493int
4494main (void)
4495{
4496
4497  ;
4498  return 0;
4499}
4500_ACEOF
4501if ac_fn_c_try_compile "$LINENO"
4502then :
4503
4504else $as_nop
4505  ac_c_werror_flag=$ac_save_c_werror_flag
4506	 CFLAGS="-g"
4507	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509
4510int
4511main (void)
4512{
4513
4514  ;
4515  return 0;
4516}
4517_ACEOF
4518if ac_fn_c_try_compile "$LINENO"
4519then :
4520  ac_cv_prog_cc_g=yes
4521fi
4522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4523fi
4524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4525fi
4526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4527   ac_c_werror_flag=$ac_save_c_werror_flag
4528fi
4529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4530printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4531if test $ac_test_CFLAGS; then
4532  CFLAGS=$ac_save_CFLAGS
4533elif test $ac_cv_prog_cc_g = yes; then
4534  if test "$GCC" = yes; then
4535    CFLAGS="-g -O2"
4536  else
4537    CFLAGS="-g"
4538  fi
4539else
4540  if test "$GCC" = yes; then
4541    CFLAGS="-O2"
4542  else
4543    CFLAGS=
4544  fi
4545fi
4546ac_prog_cc_stdc=no
4547if test x$ac_prog_cc_stdc = xno
4548then :
4549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4550printf %s "checking for $CC option to enable C11 features... " >&6; }
4551if test ${ac_cv_prog_cc_c11+y}
4552then :
4553  printf %s "(cached) " >&6
4554else $as_nop
4555  ac_cv_prog_cc_c11=no
4556ac_save_CC=$CC
4557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h.  */
4559$ac_c_conftest_c11_program
4560_ACEOF
4561for ac_arg in '' -std=gnu11
4562do
4563  CC="$ac_save_CC $ac_arg"
4564  if ac_fn_c_try_compile "$LINENO"
4565then :
4566  ac_cv_prog_cc_c11=$ac_arg
4567fi
4568rm -f core conftest.err conftest.$ac_objext conftest.beam
4569  test "x$ac_cv_prog_cc_c11" != "xno" && break
4570done
4571rm -f conftest.$ac_ext
4572CC=$ac_save_CC
4573fi
4574
4575if test "x$ac_cv_prog_cc_c11" = xno
4576then :
4577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4578printf "%s\n" "unsupported" >&6; }
4579else $as_nop
4580  if test "x$ac_cv_prog_cc_c11" = x
4581then :
4582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4583printf "%s\n" "none needed" >&6; }
4584else $as_nop
4585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4586printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4587     CC="$CC $ac_cv_prog_cc_c11"
4588fi
4589  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4590  ac_prog_cc_stdc=c11
4591fi
4592fi
4593if test x$ac_prog_cc_stdc = xno
4594then :
4595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4596printf %s "checking for $CC option to enable C99 features... " >&6; }
4597if test ${ac_cv_prog_cc_c99+y}
4598then :
4599  printf %s "(cached) " >&6
4600else $as_nop
4601  ac_cv_prog_cc_c99=no
4602ac_save_CC=$CC
4603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h.  */
4605$ac_c_conftest_c99_program
4606_ACEOF
4607for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4608do
4609  CC="$ac_save_CC $ac_arg"
4610  if ac_fn_c_try_compile "$LINENO"
4611then :
4612  ac_cv_prog_cc_c99=$ac_arg
4613fi
4614rm -f core conftest.err conftest.$ac_objext conftest.beam
4615  test "x$ac_cv_prog_cc_c99" != "xno" && break
4616done
4617rm -f conftest.$ac_ext
4618CC=$ac_save_CC
4619fi
4620
4621if test "x$ac_cv_prog_cc_c99" = xno
4622then :
4623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4624printf "%s\n" "unsupported" >&6; }
4625else $as_nop
4626  if test "x$ac_cv_prog_cc_c99" = x
4627then :
4628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4629printf "%s\n" "none needed" >&6; }
4630else $as_nop
4631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4632printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4633     CC="$CC $ac_cv_prog_cc_c99"
4634fi
4635  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4636  ac_prog_cc_stdc=c99
4637fi
4638fi
4639if test x$ac_prog_cc_stdc = xno
4640then :
4641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4642printf %s "checking for $CC option to enable C89 features... " >&6; }
4643if test ${ac_cv_prog_cc_c89+y}
4644then :
4645  printf %s "(cached) " >&6
4646else $as_nop
4647  ac_cv_prog_cc_c89=no
4648ac_save_CC=$CC
4649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h.  */
4651$ac_c_conftest_c89_program
4652_ACEOF
4653for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4654do
4655  CC="$ac_save_CC $ac_arg"
4656  if ac_fn_c_try_compile "$LINENO"
4657then :
4658  ac_cv_prog_cc_c89=$ac_arg
4659fi
4660rm -f core conftest.err conftest.$ac_objext conftest.beam
4661  test "x$ac_cv_prog_cc_c89" != "xno" && break
4662done
4663rm -f conftest.$ac_ext
4664CC=$ac_save_CC
4665fi
4666
4667if test "x$ac_cv_prog_cc_c89" = xno
4668then :
4669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4670printf "%s\n" "unsupported" >&6; }
4671else $as_nop
4672  if test "x$ac_cv_prog_cc_c89" = x
4673then :
4674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4675printf "%s\n" "none needed" >&6; }
4676else $as_nop
4677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4678printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4679     CC="$CC $ac_cv_prog_cc_c89"
4680fi
4681  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4682  ac_prog_cc_stdc=c89
4683fi
4684fi
4685
4686ac_ext=c
4687ac_cpp='$CPP $CPPFLAGS'
4688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692
4693  ac_ext=c
4694ac_cpp='$CPP $CPPFLAGS'
4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4699printf %s "checking whether $CC understands -c and -o together... " >&6; }
4700if test ${am_cv_prog_cc_c_o+y}
4701then :
4702  printf %s "(cached) " >&6
4703else $as_nop
4704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h.  */
4706
4707int
4708main (void)
4709{
4710
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715  # Make sure it works both with $CC and with simple cc.
4716  # Following AC_PROG_CC_C_O, we do the test twice because some
4717  # compilers refuse to overwrite an existing .o file with -o,
4718  # though they will create one.
4719  am_cv_prog_cc_c_o=yes
4720  for am_i in 1 2; do
4721    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4722   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } \
4726         && test -f conftest2.$ac_objext; then
4727      : OK
4728    else
4729      am_cv_prog_cc_c_o=no
4730      break
4731    fi
4732  done
4733  rm -f core conftest*
4734  unset am_i
4735fi
4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4737printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4738if test "$am_cv_prog_cc_c_o" != yes; then
4739   # Losing compiler, so override with the script.
4740   # FIXME: It is wrong to rewrite CC.
4741   # But if we don't then we get into trouble of one sort or another.
4742   # A longer-term fix would be to have automake use am__CC in this case,
4743   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4744   CC="$am_aux_dir/compile $CC"
4745fi
4746ac_ext=c
4747ac_cpp='$CPP $CPPFLAGS'
4748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752
4753depcc="$CC"   am_compiler_list=
4754
4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4756printf %s "checking dependency style of $depcc... " >&6; }
4757if test ${am_cv_CC_dependencies_compiler_type+y}
4758then :
4759  printf %s "(cached) " >&6
4760else $as_nop
4761  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4762  # We make a subdir and do the tests there.  Otherwise we can end up
4763  # making bogus files that we don't know about and never remove.  For
4764  # instance it was reported that on HP-UX the gcc test will end up
4765  # making a dummy file named 'D' -- because '-MD' means "put the output
4766  # in D".
4767  rm -rf conftest.dir
4768  mkdir conftest.dir
4769  # Copy depcomp to subdir because otherwise we won't find it if we're
4770  # using a relative directory.
4771  cp "$am_depcomp" conftest.dir
4772  cd conftest.dir
4773  # We will build objects and dependencies in a subdirectory because
4774  # it helps to detect inapplicable dependency modes.  For instance
4775  # both Tru64's cc and ICC support -MD to output dependencies as a
4776  # side effect of compilation, but ICC will put the dependencies in
4777  # the current directory while Tru64 will put them in the object
4778  # directory.
4779  mkdir sub
4780
4781  am_cv_CC_dependencies_compiler_type=none
4782  if test "$am_compiler_list" = ""; then
4783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4784  fi
4785  am__universal=false
4786  case " $depcc " in #(
4787     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4788     esac
4789
4790  for depmode in $am_compiler_list; do
4791    # Setup a source with many dependencies, because some compilers
4792    # like to wrap large dependency lists on column 80 (with \), and
4793    # we should not choose a depcomp mode which is confused by this.
4794    #
4795    # We need to recreate these files for each test, as the compiler may
4796    # overwrite some of them when testing with obscure command lines.
4797    # This happens at least with the AIX C compiler.
4798    : > sub/conftest.c
4799    for i in 1 2 3 4 5 6; do
4800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4801      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4802      # Solaris 10 /bin/sh.
4803      echo '/* dummy */' > sub/conftst$i.h
4804    done
4805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4806
4807    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4808    # mode.  It turns out that the SunPro C++ compiler does not properly
4809    # handle '-M -o', and we need to detect this.  Also, some Intel
4810    # versions had trouble with output in subdirs.
4811    am__obj=sub/conftest.${OBJEXT-o}
4812    am__minus_obj="-o $am__obj"
4813    case $depmode in
4814    gcc)
4815      # This depmode causes a compiler race in universal mode.
4816      test "$am__universal" = false || continue
4817      ;;
4818    nosideeffect)
4819      # After this tag, mechanisms are not by side-effect, so they'll
4820      # only be used when explicitly requested.
4821      if test "x$enable_dependency_tracking" = xyes; then
4822	continue
4823      else
4824	break
4825      fi
4826      ;;
4827    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4828      # This compiler won't grok '-c -o', but also, the minuso test has
4829      # not run yet.  These depmodes are late enough in the game, and
4830      # so weak that their functioning should not be impacted.
4831      am__obj=conftest.${OBJEXT-o}
4832      am__minus_obj=
4833      ;;
4834    none) break ;;
4835    esac
4836    if depmode=$depmode \
4837       source=sub/conftest.c object=$am__obj \
4838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4839       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4840         >/dev/null 2>conftest.err &&
4841       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4843       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4845      # icc doesn't choke on unknown options, it will just issue warnings
4846      # or remarks (even with -Werror).  So we grep stderr for any message
4847      # that says an option was ignored or not supported.
4848      # When given -MP, icc 7.0 and 7.1 complain thusly:
4849      #   icc: Command line warning: ignoring option '-M'; no argument required
4850      # The diagnosis changed in icc 8.0:
4851      #   icc: Command line remark: option '-MP' not supported
4852      if (grep 'ignoring option' conftest.err ||
4853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4854        am_cv_CC_dependencies_compiler_type=$depmode
4855        break
4856      fi
4857    fi
4858  done
4859
4860  cd ..
4861  rm -rf conftest.dir
4862else
4863  am_cv_CC_dependencies_compiler_type=none
4864fi
4865
4866fi
4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4868printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4870
4871 if
4872  test "x$enable_dependency_tracking" != xno \
4873  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4874  am__fastdepCC_TRUE=
4875  am__fastdepCC_FALSE='#'
4876else
4877  am__fastdepCC_TRUE='#'
4878  am__fastdepCC_FALSE=
4879fi
4880
4881
4882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4883printf %s "checking for a sed that does not truncate output... " >&6; }
4884if test ${ac_cv_path_SED+y}
4885then :
4886  printf %s "(cached) " >&6
4887else $as_nop
4888            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4889     for ac_i in 1 2 3 4 5 6 7; do
4890       ac_script="$ac_script$as_nl$ac_script"
4891     done
4892     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4893     { ac_script=; unset ac_script;}
4894     if test -z "$SED"; then
4895  ac_path_SED_found=false
4896  # Loop through the user's path and test for each of PROGNAME-LIST
4897  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900  IFS=$as_save_IFS
4901  case $as_dir in #(((
4902    '') as_dir=./ ;;
4903    */) ;;
4904    *) as_dir=$as_dir/ ;;
4905  esac
4906    for ac_prog in sed gsed
4907   do
4908    for ac_exec_ext in '' $ac_executable_extensions; do
4909      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4910      as_fn_executable_p "$ac_path_SED" || continue
4911# Check for GNU ac_path_SED and select it if it is found.
4912  # Check for GNU $ac_path_SED
4913case `"$ac_path_SED" --version 2>&1` in
4914*GNU*)
4915  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4916*)
4917  ac_count=0
4918  printf %s 0123456789 >"conftest.in"
4919  while :
4920  do
4921    cat "conftest.in" "conftest.in" >"conftest.tmp"
4922    mv "conftest.tmp" "conftest.in"
4923    cp "conftest.in" "conftest.nl"
4924    printf "%s\n" '' >> "conftest.nl"
4925    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4926    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4927    as_fn_arith $ac_count + 1 && ac_count=$as_val
4928    if test $ac_count -gt ${ac_path_SED_max-0}; then
4929      # Best one so far, save it but keep looking for a better one
4930      ac_cv_path_SED="$ac_path_SED"
4931      ac_path_SED_max=$ac_count
4932    fi
4933    # 10*(2^10) chars as input seems more than enough
4934    test $ac_count -gt 10 && break
4935  done
4936  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937esac
4938
4939      $ac_path_SED_found && break 3
4940    done
4941  done
4942  done
4943IFS=$as_save_IFS
4944  if test -z "$ac_cv_path_SED"; then
4945    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4946  fi
4947else
4948  ac_cv_path_SED=$SED
4949fi
4950
4951fi
4952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4953printf "%s\n" "$ac_cv_path_SED" >&6; }
4954 SED="$ac_cv_path_SED"
4955  rm -f conftest.sed
4956
4957test -z "$SED" && SED=sed
4958Xsed="$SED -e 1s/^X//"
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4971printf %s "checking for grep that handles long lines and -e... " >&6; }
4972if test ${ac_cv_path_GREP+y}
4973then :
4974  printf %s "(cached) " >&6
4975else $as_nop
4976  if test -z "$GREP"; then
4977  ac_path_GREP_found=false
4978  # Loop through the user's path and test for each of PROGNAME-LIST
4979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4981do
4982  IFS=$as_save_IFS
4983  case $as_dir in #(((
4984    '') as_dir=./ ;;
4985    */) ;;
4986    *) as_dir=$as_dir/ ;;
4987  esac
4988    for ac_prog in grep ggrep
4989   do
4990    for ac_exec_ext in '' $ac_executable_extensions; do
4991      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4992      as_fn_executable_p "$ac_path_GREP" || continue
4993# Check for GNU ac_path_GREP and select it if it is found.
4994  # Check for GNU $ac_path_GREP
4995case `"$ac_path_GREP" --version 2>&1` in
4996*GNU*)
4997  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4998*)
4999  ac_count=0
5000  printf %s 0123456789 >"conftest.in"
5001  while :
5002  do
5003    cat "conftest.in" "conftest.in" >"conftest.tmp"
5004    mv "conftest.tmp" "conftest.in"
5005    cp "conftest.in" "conftest.nl"
5006    printf "%s\n" 'GREP' >> "conftest.nl"
5007    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5008    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5009    as_fn_arith $ac_count + 1 && ac_count=$as_val
5010    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5011      # Best one so far, save it but keep looking for a better one
5012      ac_cv_path_GREP="$ac_path_GREP"
5013      ac_path_GREP_max=$ac_count
5014    fi
5015    # 10*(2^10) chars as input seems more than enough
5016    test $ac_count -gt 10 && break
5017  done
5018  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5019esac
5020
5021      $ac_path_GREP_found && break 3
5022    done
5023  done
5024  done
5025IFS=$as_save_IFS
5026  if test -z "$ac_cv_path_GREP"; then
5027    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5028  fi
5029else
5030  ac_cv_path_GREP=$GREP
5031fi
5032
5033fi
5034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5035printf "%s\n" "$ac_cv_path_GREP" >&6; }
5036 GREP="$ac_cv_path_GREP"
5037
5038
5039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5040printf %s "checking for egrep... " >&6; }
5041if test ${ac_cv_path_EGREP+y}
5042then :
5043  printf %s "(cached) " >&6
5044else $as_nop
5045  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5046   then ac_cv_path_EGREP="$GREP -E"
5047   else
5048     if test -z "$EGREP"; then
5049  ac_path_EGREP_found=false
5050  # Loop through the user's path and test for each of PROGNAME-LIST
5051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5053do
5054  IFS=$as_save_IFS
5055  case $as_dir in #(((
5056    '') as_dir=./ ;;
5057    */) ;;
5058    *) as_dir=$as_dir/ ;;
5059  esac
5060    for ac_prog in egrep
5061   do
5062    for ac_exec_ext in '' $ac_executable_extensions; do
5063      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5064      as_fn_executable_p "$ac_path_EGREP" || continue
5065# Check for GNU ac_path_EGREP and select it if it is found.
5066  # Check for GNU $ac_path_EGREP
5067case `"$ac_path_EGREP" --version 2>&1` in
5068*GNU*)
5069  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5070*)
5071  ac_count=0
5072  printf %s 0123456789 >"conftest.in"
5073  while :
5074  do
5075    cat "conftest.in" "conftest.in" >"conftest.tmp"
5076    mv "conftest.tmp" "conftest.in"
5077    cp "conftest.in" "conftest.nl"
5078    printf "%s\n" 'EGREP' >> "conftest.nl"
5079    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5080    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5081    as_fn_arith $ac_count + 1 && ac_count=$as_val
5082    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5083      # Best one so far, save it but keep looking for a better one
5084      ac_cv_path_EGREP="$ac_path_EGREP"
5085      ac_path_EGREP_max=$ac_count
5086    fi
5087    # 10*(2^10) chars as input seems more than enough
5088    test $ac_count -gt 10 && break
5089  done
5090  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5091esac
5092
5093      $ac_path_EGREP_found && break 3
5094    done
5095  done
5096  done
5097IFS=$as_save_IFS
5098  if test -z "$ac_cv_path_EGREP"; then
5099    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100  fi
5101else
5102  ac_cv_path_EGREP=$EGREP
5103fi
5104
5105   fi
5106fi
5107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5108printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5109 EGREP="$ac_cv_path_EGREP"
5110
5111
5112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5113printf %s "checking for fgrep... " >&6; }
5114if test ${ac_cv_path_FGREP+y}
5115then :
5116  printf %s "(cached) " >&6
5117else $as_nop
5118  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5119   then ac_cv_path_FGREP="$GREP -F"
5120   else
5121     if test -z "$FGREP"; then
5122  ac_path_FGREP_found=false
5123  # Loop through the user's path and test for each of PROGNAME-LIST
5124  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5126do
5127  IFS=$as_save_IFS
5128  case $as_dir in #(((
5129    '') as_dir=./ ;;
5130    */) ;;
5131    *) as_dir=$as_dir/ ;;
5132  esac
5133    for ac_prog in fgrep
5134   do
5135    for ac_exec_ext in '' $ac_executable_extensions; do
5136      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5137      as_fn_executable_p "$ac_path_FGREP" || continue
5138# Check for GNU ac_path_FGREP and select it if it is found.
5139  # Check for GNU $ac_path_FGREP
5140case `"$ac_path_FGREP" --version 2>&1` in
5141*GNU*)
5142  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5143*)
5144  ac_count=0
5145  printf %s 0123456789 >"conftest.in"
5146  while :
5147  do
5148    cat "conftest.in" "conftest.in" >"conftest.tmp"
5149    mv "conftest.tmp" "conftest.in"
5150    cp "conftest.in" "conftest.nl"
5151    printf "%s\n" 'FGREP' >> "conftest.nl"
5152    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5153    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5154    as_fn_arith $ac_count + 1 && ac_count=$as_val
5155    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5156      # Best one so far, save it but keep looking for a better one
5157      ac_cv_path_FGREP="$ac_path_FGREP"
5158      ac_path_FGREP_max=$ac_count
5159    fi
5160    # 10*(2^10) chars as input seems more than enough
5161    test $ac_count -gt 10 && break
5162  done
5163  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5164esac
5165
5166      $ac_path_FGREP_found && break 3
5167    done
5168  done
5169  done
5170IFS=$as_save_IFS
5171  if test -z "$ac_cv_path_FGREP"; then
5172    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5173  fi
5174else
5175  ac_cv_path_FGREP=$FGREP
5176fi
5177
5178   fi
5179fi
5180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5181printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5182 FGREP="$ac_cv_path_FGREP"
5183
5184
5185test -z "$GREP" && GREP=grep
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205# Check whether --with-gnu-ld was given.
5206if test ${with_gnu_ld+y}
5207then :
5208  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5209else $as_nop
5210  with_gnu_ld=no
5211fi
5212
5213ac_prog=ld
5214if test yes = "$GCC"; then
5215  # Check if gcc -print-prog-name=ld gives a path.
5216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5217printf %s "checking for ld used by $CC... " >&6; }
5218  case $host in
5219  *-*-mingw*)
5220    # gcc leaves a trailing carriage return, which upsets mingw
5221    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5222  *)
5223    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5224  esac
5225  case $ac_prog in
5226    # Accept absolute paths.
5227    [\\/]* | ?:[\\/]*)
5228      re_direlt='/[^/][^/]*/\.\./'
5229      # Canonicalize the pathname of ld
5230      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5231      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5232	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5233      done
5234      test -z "$LD" && LD=$ac_prog
5235      ;;
5236  "")
5237    # If it fails, then pretend we aren't using GCC.
5238    ac_prog=ld
5239    ;;
5240  *)
5241    # If it is relative, then search for the first ld in PATH.
5242    with_gnu_ld=unknown
5243    ;;
5244  esac
5245elif test yes = "$with_gnu_ld"; then
5246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5247printf %s "checking for GNU ld... " >&6; }
5248else
5249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5250printf %s "checking for non-GNU ld... " >&6; }
5251fi
5252if test ${lt_cv_path_LD+y}
5253then :
5254  printf %s "(cached) " >&6
5255else $as_nop
5256  if test -z "$LD"; then
5257  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5258  for ac_dir in $PATH; do
5259    IFS=$lt_save_ifs
5260    test -z "$ac_dir" && ac_dir=.
5261    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5262      lt_cv_path_LD=$ac_dir/$ac_prog
5263      # Check to see if the program is GNU ld.  I'd rather use --version,
5264      # but apparently some variants of GNU ld only accept -v.
5265      # Break only if it was the GNU/non-GNU ld that we prefer.
5266      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5267      *GNU* | *'with BFD'*)
5268	test no != "$with_gnu_ld" && break
5269	;;
5270      *)
5271	test yes != "$with_gnu_ld" && break
5272	;;
5273      esac
5274    fi
5275  done
5276  IFS=$lt_save_ifs
5277else
5278  lt_cv_path_LD=$LD # Let the user override the test with a path.
5279fi
5280fi
5281
5282LD=$lt_cv_path_LD
5283if test -n "$LD"; then
5284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5285printf "%s\n" "$LD" >&6; }
5286else
5287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288printf "%s\n" "no" >&6; }
5289fi
5290test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5292printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5293if test ${lt_cv_prog_gnu_ld+y}
5294then :
5295  printf %s "(cached) " >&6
5296else $as_nop
5297  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5298case `$LD -v 2>&1 </dev/null` in
5299*GNU* | *'with BFD'*)
5300  lt_cv_prog_gnu_ld=yes
5301  ;;
5302*)
5303  lt_cv_prog_gnu_ld=no
5304  ;;
5305esac
5306fi
5307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5308printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5309with_gnu_ld=$lt_cv_prog_gnu_ld
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5320printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5321if test ${lt_cv_path_NM+y}
5322then :
5323  printf %s "(cached) " >&6
5324else $as_nop
5325  if test -n "$NM"; then
5326  # Let the user override the test.
5327  lt_cv_path_NM=$NM
5328else
5329  lt_nm_to_check=${ac_tool_prefix}nm
5330  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5331    lt_nm_to_check="$lt_nm_to_check nm"
5332  fi
5333  for lt_tmp_nm in $lt_nm_to_check; do
5334    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5335    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5336      IFS=$lt_save_ifs
5337      test -z "$ac_dir" && ac_dir=.
5338      tmp_nm=$ac_dir/$lt_tmp_nm
5339      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5340	# Check to see if the nm accepts a BSD-compat flag.
5341	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5342	#   nm: unknown option "B" ignored
5343	# Tru64's nm complains that /dev/null is an invalid object file
5344	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5345	case $build_os in
5346	mingw*) lt_bad_file=conftest.nm/nofile ;;
5347	*) lt_bad_file=/dev/null ;;
5348	esac
5349	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5350	*$lt_bad_file* | *'Invalid file or object type'*)
5351	  lt_cv_path_NM="$tmp_nm -B"
5352	  break 2
5353	  ;;
5354	*)
5355	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5356	  */dev/null*)
5357	    lt_cv_path_NM="$tmp_nm -p"
5358	    break 2
5359	    ;;
5360	  *)
5361	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5362	    continue # so that we can try to find one that supports BSD flags
5363	    ;;
5364	  esac
5365	  ;;
5366	esac
5367      fi
5368    done
5369    IFS=$lt_save_ifs
5370  done
5371  : ${lt_cv_path_NM=no}
5372fi
5373fi
5374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5375printf "%s\n" "$lt_cv_path_NM" >&6; }
5376if test no != "$lt_cv_path_NM"; then
5377  NM=$lt_cv_path_NM
5378else
5379  # Didn't find any BSD compatible name lister, look for dumpbin.
5380  if test -n "$DUMPBIN"; then :
5381    # Let the user override the test.
5382  else
5383    if test -n "$ac_tool_prefix"; then
5384  for ac_prog in dumpbin "link -dump"
5385  do
5386    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5387set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389printf %s "checking for $ac_word... " >&6; }
5390if test ${ac_cv_prog_DUMPBIN+y}
5391then :
5392  printf %s "(cached) " >&6
5393else $as_nop
5394  if test -n "$DUMPBIN"; then
5395  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5396else
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400  IFS=$as_save_IFS
5401  case $as_dir in #(((
5402    '') as_dir=./ ;;
5403    */) ;;
5404    *) as_dir=$as_dir/ ;;
5405  esac
5406    for ac_exec_ext in '' $ac_executable_extensions; do
5407  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5408    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5409    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5410    break 2
5411  fi
5412done
5413  done
5414IFS=$as_save_IFS
5415
5416fi
5417fi
5418DUMPBIN=$ac_cv_prog_DUMPBIN
5419if test -n "$DUMPBIN"; then
5420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5421printf "%s\n" "$DUMPBIN" >&6; }
5422else
5423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424printf "%s\n" "no" >&6; }
5425fi
5426
5427
5428    test -n "$DUMPBIN" && break
5429  done
5430fi
5431if test -z "$DUMPBIN"; then
5432  ac_ct_DUMPBIN=$DUMPBIN
5433  for ac_prog in dumpbin "link -dump"
5434do
5435  # Extract the first word of "$ac_prog", so it can be a program name with args.
5436set dummy $ac_prog; ac_word=$2
5437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438printf %s "checking for $ac_word... " >&6; }
5439if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5440then :
5441  printf %s "(cached) " >&6
5442else $as_nop
5443  if test -n "$ac_ct_DUMPBIN"; then
5444  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5445else
5446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449  IFS=$as_save_IFS
5450  case $as_dir in #(((
5451    '') as_dir=./ ;;
5452    */) ;;
5453    *) as_dir=$as_dir/ ;;
5454  esac
5455    for ac_exec_ext in '' $ac_executable_extensions; do
5456  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5457    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5458    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5459    break 2
5460  fi
5461done
5462  done
5463IFS=$as_save_IFS
5464
5465fi
5466fi
5467ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5468if test -n "$ac_ct_DUMPBIN"; then
5469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5470printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5471else
5472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473printf "%s\n" "no" >&6; }
5474fi
5475
5476
5477  test -n "$ac_ct_DUMPBIN" && break
5478done
5479
5480  if test "x$ac_ct_DUMPBIN" = x; then
5481    DUMPBIN=":"
5482  else
5483    case $cross_compiling:$ac_tool_warned in
5484yes:)
5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5486printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487ac_tool_warned=yes ;;
5488esac
5489    DUMPBIN=$ac_ct_DUMPBIN
5490  fi
5491fi
5492
5493    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5494    *COFF*)
5495      DUMPBIN="$DUMPBIN -symbols -headers"
5496      ;;
5497    *)
5498      DUMPBIN=:
5499      ;;
5500    esac
5501  fi
5502
5503  if test : != "$DUMPBIN"; then
5504    NM=$DUMPBIN
5505  fi
5506fi
5507test -z "$NM" && NM=nm
5508
5509
5510
5511
5512
5513
5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5515printf %s "checking the name lister ($NM) interface... " >&6; }
5516if test ${lt_cv_nm_interface+y}
5517then :
5518  printf %s "(cached) " >&6
5519else $as_nop
5520  lt_cv_nm_interface="BSD nm"
5521  echo "int some_variable = 0;" > conftest.$ac_ext
5522  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5523  (eval "$ac_compile" 2>conftest.err)
5524  cat conftest.err >&5
5525  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5526  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5527  cat conftest.err >&5
5528  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5529  cat conftest.out >&5
5530  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5531    lt_cv_nm_interface="MS dumpbin"
5532  fi
5533  rm -f conftest*
5534fi
5535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5536printf "%s\n" "$lt_cv_nm_interface" >&6; }
5537
5538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5539printf %s "checking whether ln -s works... " >&6; }
5540LN_S=$as_ln_s
5541if test "$LN_S" = "ln -s"; then
5542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543printf "%s\n" "yes" >&6; }
5544else
5545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5546printf "%s\n" "no, using $LN_S" >&6; }
5547fi
5548
5549# find the maximum length of command line arguments
5550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5551printf %s "checking the maximum length of command line arguments... " >&6; }
5552if test ${lt_cv_sys_max_cmd_len+y}
5553then :
5554  printf %s "(cached) " >&6
5555else $as_nop
5556    i=0
5557  teststring=ABCD
5558
5559  case $build_os in
5560  msdosdjgpp*)
5561    # On DJGPP, this test can blow up pretty badly due to problems in libc
5562    # (any single argument exceeding 2000 bytes causes a buffer overrun
5563    # during glob expansion).  Even if it were fixed, the result of this
5564    # check would be larger than it should be.
5565    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5566    ;;
5567
5568  gnu*)
5569    # Under GNU Hurd, this test is not required because there is
5570    # no limit to the length of command line arguments.
5571    # Libtool will interpret -1 as no limit whatsoever
5572    lt_cv_sys_max_cmd_len=-1;
5573    ;;
5574
5575  cygwin* | mingw* | cegcc*)
5576    # On Win9x/ME, this test blows up -- it succeeds, but takes
5577    # about 5 minutes as the teststring grows exponentially.
5578    # Worse, since 9x/ME are not pre-emptively multitasking,
5579    # you end up with a "frozen" computer, even though with patience
5580    # the test eventually succeeds (with a max line length of 256k).
5581    # Instead, let's just punt: use the minimum linelength reported by
5582    # all of the supported platforms: 8192 (on NT/2K/XP).
5583    lt_cv_sys_max_cmd_len=8192;
5584    ;;
5585
5586  mint*)
5587    # On MiNT this can take a long time and run out of memory.
5588    lt_cv_sys_max_cmd_len=8192;
5589    ;;
5590
5591  amigaos*)
5592    # On AmigaOS with pdksh, this test takes hours, literally.
5593    # So we just punt and use a minimum line length of 8192.
5594    lt_cv_sys_max_cmd_len=8192;
5595    ;;
5596
5597  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5598    # This has been around since 386BSD, at least.  Likely further.
5599    if test -x /sbin/sysctl; then
5600      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5601    elif test -x /usr/sbin/sysctl; then
5602      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5603    else
5604      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5605    fi
5606    # And add a safety zone
5607    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5608    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5609    ;;
5610
5611  interix*)
5612    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5613    lt_cv_sys_max_cmd_len=196608
5614    ;;
5615
5616  os2*)
5617    # The test takes a long time on OS/2.
5618    lt_cv_sys_max_cmd_len=8192
5619    ;;
5620
5621  osf*)
5622    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5623    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5624    # nice to cause kernel panics so lets avoid the loop below.
5625    # First set a reasonable default.
5626    lt_cv_sys_max_cmd_len=16384
5627    #
5628    if test -x /sbin/sysconfig; then
5629      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5630        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5631      esac
5632    fi
5633    ;;
5634  sco3.2v5*)
5635    lt_cv_sys_max_cmd_len=102400
5636    ;;
5637  sysv5* | sco5v6* | sysv4.2uw2*)
5638    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5639    if test -n "$kargmax"; then
5640      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5641    else
5642      lt_cv_sys_max_cmd_len=32768
5643    fi
5644    ;;
5645  *)
5646    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5647    if test -n "$lt_cv_sys_max_cmd_len" && \
5648       test undefined != "$lt_cv_sys_max_cmd_len"; then
5649      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5650      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5651    else
5652      # Make teststring a little bigger before we do anything with it.
5653      # a 1K string should be a reasonable start.
5654      for i in 1 2 3 4 5 6 7 8; do
5655        teststring=$teststring$teststring
5656      done
5657      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5658      # If test is not a shell built-in, we'll probably end up computing a
5659      # maximum length that is only half of the actual maximum length, but
5660      # we can't tell.
5661      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5662	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5663	      test 17 != "$i" # 1/2 MB should be enough
5664      do
5665        i=`expr $i + 1`
5666        teststring=$teststring$teststring
5667      done
5668      # Only check the string length outside the loop.
5669      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5670      teststring=
5671      # Add a significant safety factor because C++ compilers can tack on
5672      # massive amounts of additional arguments before passing them to the
5673      # linker.  It appears as though 1/2 is a usable value.
5674      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5675    fi
5676    ;;
5677  esac
5678
5679fi
5680
5681if test -n "$lt_cv_sys_max_cmd_len"; then
5682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5683printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5684else
5685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5686printf "%s\n" "none" >&6; }
5687fi
5688max_cmd_len=$lt_cv_sys_max_cmd_len
5689
5690
5691
5692
5693
5694
5695: ${CP="cp -f"}
5696: ${MV="mv -f"}
5697: ${RM="rm -f"}
5698
5699if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5700  lt_unset=unset
5701else
5702  lt_unset=false
5703fi
5704
5705
5706
5707
5708
5709# test EBCDIC or ASCII
5710case `echo X|tr X '\101'` in
5711 A) # ASCII based system
5712    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5713  lt_SP2NL='tr \040 \012'
5714  lt_NL2SP='tr \015\012 \040\040'
5715  ;;
5716 *) # EBCDIC based system
5717  lt_SP2NL='tr \100 \n'
5718  lt_NL2SP='tr \r\n \100\100'
5719  ;;
5720esac
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5731printf %s "checking how to convert $build file names to $host format... " >&6; }
5732if test ${lt_cv_to_host_file_cmd+y}
5733then :
5734  printf %s "(cached) " >&6
5735else $as_nop
5736  case $host in
5737  *-*-mingw* )
5738    case $build in
5739      *-*-mingw* ) # actually msys
5740        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5741        ;;
5742      *-*-cygwin* )
5743        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5744        ;;
5745      * ) # otherwise, assume *nix
5746        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5747        ;;
5748    esac
5749    ;;
5750  *-*-cygwin* )
5751    case $build in
5752      *-*-mingw* ) # actually msys
5753        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5754        ;;
5755      *-*-cygwin* )
5756        lt_cv_to_host_file_cmd=func_convert_file_noop
5757        ;;
5758      * ) # otherwise, assume *nix
5759        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5760        ;;
5761    esac
5762    ;;
5763  * ) # unhandled hosts (and "normal" native builds)
5764    lt_cv_to_host_file_cmd=func_convert_file_noop
5765    ;;
5766esac
5767
5768fi
5769
5770to_host_file_cmd=$lt_cv_to_host_file_cmd
5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5772printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5773
5774
5775
5776
5777
5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5779printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5780if test ${lt_cv_to_tool_file_cmd+y}
5781then :
5782  printf %s "(cached) " >&6
5783else $as_nop
5784  #assume ordinary cross tools, or native build.
5785lt_cv_to_tool_file_cmd=func_convert_file_noop
5786case $host in
5787  *-*-mingw* )
5788    case $build in
5789      *-*-mingw* ) # actually msys
5790        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5791        ;;
5792    esac
5793    ;;
5794esac
5795
5796fi
5797
5798to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5800printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5801
5802
5803
5804
5805
5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5807printf %s "checking for $LD option to reload object files... " >&6; }
5808if test ${lt_cv_ld_reload_flag+y}
5809then :
5810  printf %s "(cached) " >&6
5811else $as_nop
5812  lt_cv_ld_reload_flag='-r'
5813fi
5814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5815printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5816reload_flag=$lt_cv_ld_reload_flag
5817case $reload_flag in
5818"" | " "*) ;;
5819*) reload_flag=" $reload_flag" ;;
5820esac
5821reload_cmds='$LD$reload_flag -o $output$reload_objs'
5822case $host_os in
5823  cygwin* | mingw* | pw32* | cegcc*)
5824    if test yes != "$GCC"; then
5825      reload_cmds=false
5826    fi
5827    ;;
5828  darwin*)
5829    if test yes = "$GCC"; then
5830      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5831    else
5832      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5833    fi
5834    ;;
5835esac
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845if test -n "$ac_tool_prefix"; then
5846  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5847set dummy ${ac_tool_prefix}file; ac_word=$2
5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849printf %s "checking for $ac_word... " >&6; }
5850if test ${ac_cv_prog_FILECMD+y}
5851then :
5852  printf %s "(cached) " >&6
5853else $as_nop
5854  if test -n "$FILECMD"; then
5855  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860  IFS=$as_save_IFS
5861  case $as_dir in #(((
5862    '') as_dir=./ ;;
5863    */) ;;
5864    *) as_dir=$as_dir/ ;;
5865  esac
5866    for ac_exec_ext in '' $ac_executable_extensions; do
5867  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5868    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5869    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5870    break 2
5871  fi
5872done
5873  done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878FILECMD=$ac_cv_prog_FILECMD
5879if test -n "$FILECMD"; then
5880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5881printf "%s\n" "$FILECMD" >&6; }
5882else
5883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884printf "%s\n" "no" >&6; }
5885fi
5886
5887
5888fi
5889if test -z "$ac_cv_prog_FILECMD"; then
5890  ac_ct_FILECMD=$FILECMD
5891  # Extract the first word of "file", so it can be a program name with args.
5892set dummy file; ac_word=$2
5893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894printf %s "checking for $ac_word... " >&6; }
5895if test ${ac_cv_prog_ac_ct_FILECMD+y}
5896then :
5897  printf %s "(cached) " >&6
5898else $as_nop
5899  if test -n "$ac_ct_FILECMD"; then
5900  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5901else
5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903for as_dir in $PATH
5904do
5905  IFS=$as_save_IFS
5906  case $as_dir in #(((
5907    '') as_dir=./ ;;
5908    */) ;;
5909    *) as_dir=$as_dir/ ;;
5910  esac
5911    for ac_exec_ext in '' $ac_executable_extensions; do
5912  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5913    ac_cv_prog_ac_ct_FILECMD="file"
5914    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918  done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5924if test -n "$ac_ct_FILECMD"; then
5925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5926printf "%s\n" "$ac_ct_FILECMD" >&6; }
5927else
5928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929printf "%s\n" "no" >&6; }
5930fi
5931
5932  if test "x$ac_ct_FILECMD" = x; then
5933    FILECMD=":"
5934  else
5935    case $cross_compiling:$ac_tool_warned in
5936yes:)
5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5938printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5939ac_tool_warned=yes ;;
5940esac
5941    FILECMD=$ac_ct_FILECMD
5942  fi
5943else
5944  FILECMD="$ac_cv_prog_FILECMD"
5945fi
5946
5947
5948
5949
5950
5951
5952
5953if test -n "$ac_tool_prefix"; then
5954  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5955set dummy ${ac_tool_prefix}objdump; ac_word=$2
5956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957printf %s "checking for $ac_word... " >&6; }
5958if test ${ac_cv_prog_OBJDUMP+y}
5959then :
5960  printf %s "(cached) " >&6
5961else $as_nop
5962  if test -n "$OBJDUMP"; then
5963  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968  IFS=$as_save_IFS
5969  case $as_dir in #(((
5970    '') as_dir=./ ;;
5971    */) ;;
5972    *) as_dir=$as_dir/ ;;
5973  esac
5974    for ac_exec_ext in '' $ac_executable_extensions; do
5975  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5976    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5977    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5978    break 2
5979  fi
5980done
5981  done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986OBJDUMP=$ac_cv_prog_OBJDUMP
5987if test -n "$OBJDUMP"; then
5988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5989printf "%s\n" "$OBJDUMP" >&6; }
5990else
5991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992printf "%s\n" "no" >&6; }
5993fi
5994
5995
5996fi
5997if test -z "$ac_cv_prog_OBJDUMP"; then
5998  ac_ct_OBJDUMP=$OBJDUMP
5999  # Extract the first word of "objdump", so it can be a program name with args.
6000set dummy objdump; ac_word=$2
6001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002printf %s "checking for $ac_word... " >&6; }
6003if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6004then :
6005  printf %s "(cached) " >&6
6006else $as_nop
6007  if test -n "$ac_ct_OBJDUMP"; then
6008  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013  IFS=$as_save_IFS
6014  case $as_dir in #(((
6015    '') as_dir=./ ;;
6016    */) ;;
6017    *) as_dir=$as_dir/ ;;
6018  esac
6019    for ac_exec_ext in '' $ac_executable_extensions; do
6020  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6021    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6022    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6023    break 2
6024  fi
6025done
6026  done
6027IFS=$as_save_IFS
6028
6029fi
6030fi
6031ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6032if test -n "$ac_ct_OBJDUMP"; then
6033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6034printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6035else
6036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037printf "%s\n" "no" >&6; }
6038fi
6039
6040  if test "x$ac_ct_OBJDUMP" = x; then
6041    OBJDUMP="false"
6042  else
6043    case $cross_compiling:$ac_tool_warned in
6044yes:)
6045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6046printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6047ac_tool_warned=yes ;;
6048esac
6049    OBJDUMP=$ac_ct_OBJDUMP
6050  fi
6051else
6052  OBJDUMP="$ac_cv_prog_OBJDUMP"
6053fi
6054
6055test -z "$OBJDUMP" && OBJDUMP=objdump
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6066printf %s "checking how to recognize dependent libraries... " >&6; }
6067if test ${lt_cv_deplibs_check_method+y}
6068then :
6069  printf %s "(cached) " >&6
6070else $as_nop
6071  lt_cv_file_magic_cmd='$MAGIC_CMD'
6072lt_cv_file_magic_test_file=
6073lt_cv_deplibs_check_method='unknown'
6074# Need to set the preceding variable on all platforms that support
6075# interlibrary dependencies.
6076# 'none' -- dependencies not supported.
6077# 'unknown' -- same as none, but documents that we really don't know.
6078# 'pass_all' -- all dependencies passed with no checks.
6079# 'test_compile' -- check by making test program.
6080# 'file_magic [[regex]]' -- check by looking for files in library path
6081# that responds to the $file_magic_cmd with a given extended regex.
6082# If you have 'file' or equivalent on your system and you're not sure
6083# whether 'pass_all' will *always* work, you probably want this one.
6084
6085case $host_os in
6086aix[4-9]*)
6087  lt_cv_deplibs_check_method=pass_all
6088  ;;
6089
6090beos*)
6091  lt_cv_deplibs_check_method=pass_all
6092  ;;
6093
6094bsdi[45]*)
6095  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6096  lt_cv_file_magic_cmd='$FILECMD -L'
6097  lt_cv_file_magic_test_file=/shlib/libc.so
6098  ;;
6099
6100cygwin*)
6101  # func_win32_libid is a shell function defined in ltmain.sh
6102  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6103  lt_cv_file_magic_cmd='func_win32_libid'
6104  ;;
6105
6106mingw* | pw32*)
6107  # Base MSYS/MinGW do not provide the 'file' command needed by
6108  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6109  # unless we find 'file', for example because we are cross-compiling.
6110  if ( file / ) >/dev/null 2>&1; then
6111    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6112    lt_cv_file_magic_cmd='func_win32_libid'
6113  else
6114    # Keep this pattern in sync with the one in func_win32_libid.
6115    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6116    lt_cv_file_magic_cmd='$OBJDUMP -f'
6117  fi
6118  ;;
6119
6120cegcc*)
6121  # use the weaker test based on 'objdump'. See mingw*.
6122  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6123  lt_cv_file_magic_cmd='$OBJDUMP -f'
6124  ;;
6125
6126darwin* | rhapsody*)
6127  lt_cv_deplibs_check_method=pass_all
6128  ;;
6129
6130freebsd* | dragonfly* | midnightbsd*)
6131  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6132    case $host_cpu in
6133    i*86 )
6134      # Not sure whether the presence of OpenBSD here was a mistake.
6135      # Let's accept both of them until this is cleared up.
6136      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6137      lt_cv_file_magic_cmd=$FILECMD
6138      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6139      ;;
6140    esac
6141  else
6142    lt_cv_deplibs_check_method=pass_all
6143  fi
6144  ;;
6145
6146haiku*)
6147  lt_cv_deplibs_check_method=pass_all
6148  ;;
6149
6150hpux10.20* | hpux11*)
6151  lt_cv_file_magic_cmd=$FILECMD
6152  case $host_cpu in
6153  ia64*)
6154    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6155    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6156    ;;
6157  hppa*64*)
6158    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]'
6159    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6160    ;;
6161  *)
6162    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6163    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6164    ;;
6165  esac
6166  ;;
6167
6168interix[3-9]*)
6169  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6170  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6171  ;;
6172
6173irix5* | irix6* | nonstopux*)
6174  case $LD in
6175  *-32|*"-32 ") libmagic=32-bit;;
6176  *-n32|*"-n32 ") libmagic=N32;;
6177  *-64|*"-64 ") libmagic=64-bit;;
6178  *) libmagic=never-match;;
6179  esac
6180  lt_cv_deplibs_check_method=pass_all
6181  ;;
6182
6183# This must be glibc/ELF.
6184linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6185  lt_cv_deplibs_check_method=pass_all
6186  ;;
6187
6188netbsd*)
6189  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6190    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6191  else
6192    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6193  fi
6194  ;;
6195
6196newos6*)
6197  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6198  lt_cv_file_magic_cmd=$FILECMD
6199  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6200  ;;
6201
6202*nto* | *qnx*)
6203  lt_cv_deplibs_check_method=pass_all
6204  ;;
6205
6206openbsd* | bitrig*)
6207  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6208    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6209  else
6210    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6211  fi
6212  ;;
6213
6214osf3* | osf4* | osf5*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218rdos*)
6219  lt_cv_deplibs_check_method=pass_all
6220  ;;
6221
6222solaris*)
6223  lt_cv_deplibs_check_method=pass_all
6224  ;;
6225
6226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6227  lt_cv_deplibs_check_method=pass_all
6228  ;;
6229
6230sysv4 | sysv4.3*)
6231  case $host_vendor in
6232  motorola)
6233    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]'
6234    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6235    ;;
6236  ncr)
6237    lt_cv_deplibs_check_method=pass_all
6238    ;;
6239  sequent)
6240    lt_cv_file_magic_cmd='/bin/file'
6241    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6242    ;;
6243  sni)
6244    lt_cv_file_magic_cmd='/bin/file'
6245    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6246    lt_cv_file_magic_test_file=/lib/libc.so
6247    ;;
6248  siemens)
6249    lt_cv_deplibs_check_method=pass_all
6250    ;;
6251  pc)
6252    lt_cv_deplibs_check_method=pass_all
6253    ;;
6254  esac
6255  ;;
6256
6257tpf*)
6258  lt_cv_deplibs_check_method=pass_all
6259  ;;
6260os2*)
6261  lt_cv_deplibs_check_method=pass_all
6262  ;;
6263esac
6264
6265fi
6266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6267printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6268
6269file_magic_glob=
6270want_nocaseglob=no
6271if test "$build" = "$host"; then
6272  case $host_os in
6273  mingw* | pw32*)
6274    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6275      want_nocaseglob=yes
6276    else
6277      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6278    fi
6279    ;;
6280  esac
6281fi
6282
6283file_magic_cmd=$lt_cv_file_magic_cmd
6284deplibs_check_method=$lt_cv_deplibs_check_method
6285test -z "$deplibs_check_method" && deplibs_check_method=unknown
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308if test -n "$ac_tool_prefix"; then
6309  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6310set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312printf %s "checking for $ac_word... " >&6; }
6313if test ${ac_cv_prog_DLLTOOL+y}
6314then :
6315  printf %s "(cached) " >&6
6316else $as_nop
6317  if test -n "$DLLTOOL"; then
6318  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323  IFS=$as_save_IFS
6324  case $as_dir in #(((
6325    '') as_dir=./ ;;
6326    */) ;;
6327    *) as_dir=$as_dir/ ;;
6328  esac
6329    for ac_exec_ext in '' $ac_executable_extensions; do
6330  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6331    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6332    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6333    break 2
6334  fi
6335done
6336  done
6337IFS=$as_save_IFS
6338
6339fi
6340fi
6341DLLTOOL=$ac_cv_prog_DLLTOOL
6342if test -n "$DLLTOOL"; then
6343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6344printf "%s\n" "$DLLTOOL" >&6; }
6345else
6346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347printf "%s\n" "no" >&6; }
6348fi
6349
6350
6351fi
6352if test -z "$ac_cv_prog_DLLTOOL"; then
6353  ac_ct_DLLTOOL=$DLLTOOL
6354  # Extract the first word of "dlltool", so it can be a program name with args.
6355set dummy dlltool; ac_word=$2
6356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357printf %s "checking for $ac_word... " >&6; }
6358if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6359then :
6360  printf %s "(cached) " >&6
6361else $as_nop
6362  if test -n "$ac_ct_DLLTOOL"; then
6363  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6364else
6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368  IFS=$as_save_IFS
6369  case $as_dir in #(((
6370    '') as_dir=./ ;;
6371    */) ;;
6372    *) as_dir=$as_dir/ ;;
6373  esac
6374    for ac_exec_ext in '' $ac_executable_extensions; do
6375  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6376    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6377    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6378    break 2
6379  fi
6380done
6381  done
6382IFS=$as_save_IFS
6383
6384fi
6385fi
6386ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6387if test -n "$ac_ct_DLLTOOL"; then
6388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6389printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6390else
6391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392printf "%s\n" "no" >&6; }
6393fi
6394
6395  if test "x$ac_ct_DLLTOOL" = x; then
6396    DLLTOOL="false"
6397  else
6398    case $cross_compiling:$ac_tool_warned in
6399yes:)
6400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402ac_tool_warned=yes ;;
6403esac
6404    DLLTOOL=$ac_ct_DLLTOOL
6405  fi
6406else
6407  DLLTOOL="$ac_cv_prog_DLLTOOL"
6408fi
6409
6410test -z "$DLLTOOL" && DLLTOOL=dlltool
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6422printf %s "checking how to associate runtime and link libraries... " >&6; }
6423if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6424then :
6425  printf %s "(cached) " >&6
6426else $as_nop
6427  lt_cv_sharedlib_from_linklib_cmd='unknown'
6428
6429case $host_os in
6430cygwin* | mingw* | pw32* | cegcc*)
6431  # two different shell functions defined in ltmain.sh;
6432  # decide which one to use based on capabilities of $DLLTOOL
6433  case `$DLLTOOL --help 2>&1` in
6434  *--identify-strict*)
6435    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6436    ;;
6437  *)
6438    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6439    ;;
6440  esac
6441  ;;
6442*)
6443  # fallback: assume linklib IS sharedlib
6444  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6445  ;;
6446esac
6447
6448fi
6449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6450printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6451sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6452test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6453
6454
6455
6456
6457
6458
6459
6460
6461if test -n "$ac_tool_prefix"; then
6462  for ac_prog in ar
6463  do
6464    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467printf %s "checking for $ac_word... " >&6; }
6468if test ${ac_cv_prog_AR+y}
6469then :
6470  printf %s "(cached) " >&6
6471else $as_nop
6472  if test -n "$AR"; then
6473  ac_cv_prog_AR="$AR" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478  IFS=$as_save_IFS
6479  case $as_dir in #(((
6480    '') as_dir=./ ;;
6481    */) ;;
6482    *) as_dir=$as_dir/ ;;
6483  esac
6484    for ac_exec_ext in '' $ac_executable_extensions; do
6485  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6486    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6487    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6488    break 2
6489  fi
6490done
6491  done
6492IFS=$as_save_IFS
6493
6494fi
6495fi
6496AR=$ac_cv_prog_AR
6497if test -n "$AR"; then
6498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6499printf "%s\n" "$AR" >&6; }
6500else
6501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502printf "%s\n" "no" >&6; }
6503fi
6504
6505
6506    test -n "$AR" && break
6507  done
6508fi
6509if test -z "$AR"; then
6510  ac_ct_AR=$AR
6511  for ac_prog in ar
6512do
6513  # Extract the first word of "$ac_prog", so it can be a program name with args.
6514set dummy $ac_prog; ac_word=$2
6515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516printf %s "checking for $ac_word... " >&6; }
6517if test ${ac_cv_prog_ac_ct_AR+y}
6518then :
6519  printf %s "(cached) " >&6
6520else $as_nop
6521  if test -n "$ac_ct_AR"; then
6522  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6523else
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527  IFS=$as_save_IFS
6528  case $as_dir in #(((
6529    '') as_dir=./ ;;
6530    */) ;;
6531    *) as_dir=$as_dir/ ;;
6532  esac
6533    for ac_exec_ext in '' $ac_executable_extensions; do
6534  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6535    ac_cv_prog_ac_ct_AR="$ac_prog"
6536    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6537    break 2
6538  fi
6539done
6540  done
6541IFS=$as_save_IFS
6542
6543fi
6544fi
6545ac_ct_AR=$ac_cv_prog_ac_ct_AR
6546if test -n "$ac_ct_AR"; then
6547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6548printf "%s\n" "$ac_ct_AR" >&6; }
6549else
6550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551printf "%s\n" "no" >&6; }
6552fi
6553
6554
6555  test -n "$ac_ct_AR" && break
6556done
6557
6558  if test "x$ac_ct_AR" = x; then
6559    AR="false"
6560  else
6561    case $cross_compiling:$ac_tool_warned in
6562yes:)
6563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565ac_tool_warned=yes ;;
6566esac
6567    AR=$ac_ct_AR
6568  fi
6569fi
6570
6571: ${AR=ar}
6572
6573
6574
6575
6576
6577
6578# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6579# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6580# higher priority because thats what people were doing historically (setting
6581# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6582# variable obsoleted/removed.
6583
6584test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6585lt_ar_flags=$AR_FLAGS
6586
6587
6588
6589
6590
6591
6592# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6593# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6594
6595
6596
6597
6598
6599
6600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6601printf %s "checking for archiver @FILE support... " >&6; }
6602if test ${lt_cv_ar_at_file+y}
6603then :
6604  printf %s "(cached) " >&6
6605else $as_nop
6606  lt_cv_ar_at_file=no
6607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608/* end confdefs.h.  */
6609
6610int
6611main (void)
6612{
6613
6614  ;
6615  return 0;
6616}
6617_ACEOF
6618if ac_fn_c_try_compile "$LINENO"
6619then :
6620  echo conftest.$ac_objext > conftest.lst
6621      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6622      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6623  (eval $lt_ar_try) 2>&5
6624  ac_status=$?
6625  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626  test $ac_status = 0; }
6627      if test 0 -eq "$ac_status"; then
6628	# Ensure the archiver fails upon bogus file names.
6629	rm -f conftest.$ac_objext libconftest.a
6630	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6631  (eval $lt_ar_try) 2>&5
6632  ac_status=$?
6633  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634  test $ac_status = 0; }
6635	if test 0 -ne "$ac_status"; then
6636          lt_cv_ar_at_file=@
6637        fi
6638      fi
6639      rm -f conftest.* libconftest.a
6640
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6643
6644fi
6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6646printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6647
6648if test no = "$lt_cv_ar_at_file"; then
6649  archiver_list_spec=
6650else
6651  archiver_list_spec=$lt_cv_ar_at_file
6652fi
6653
6654
6655
6656
6657
6658
6659
6660if test -n "$ac_tool_prefix"; then
6661  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6662set dummy ${ac_tool_prefix}strip; ac_word=$2
6663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664printf %s "checking for $ac_word... " >&6; }
6665if test ${ac_cv_prog_STRIP+y}
6666then :
6667  printf %s "(cached) " >&6
6668else $as_nop
6669  if test -n "$STRIP"; then
6670  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6671else
6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675  IFS=$as_save_IFS
6676  case $as_dir in #(((
6677    '') as_dir=./ ;;
6678    */) ;;
6679    *) as_dir=$as_dir/ ;;
6680  esac
6681    for ac_exec_ext in '' $ac_executable_extensions; do
6682  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6683    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6684    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688  done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693STRIP=$ac_cv_prog_STRIP
6694if test -n "$STRIP"; then
6695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6696printf "%s\n" "$STRIP" >&6; }
6697else
6698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699printf "%s\n" "no" >&6; }
6700fi
6701
6702
6703fi
6704if test -z "$ac_cv_prog_STRIP"; then
6705  ac_ct_STRIP=$STRIP
6706  # Extract the first word of "strip", so it can be a program name with args.
6707set dummy strip; ac_word=$2
6708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709printf %s "checking for $ac_word... " >&6; }
6710if test ${ac_cv_prog_ac_ct_STRIP+y}
6711then :
6712  printf %s "(cached) " >&6
6713else $as_nop
6714  if test -n "$ac_ct_STRIP"; then
6715  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720  IFS=$as_save_IFS
6721  case $as_dir in #(((
6722    '') as_dir=./ ;;
6723    */) ;;
6724    *) as_dir=$as_dir/ ;;
6725  esac
6726    for ac_exec_ext in '' $ac_executable_extensions; do
6727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6728    ac_cv_prog_ac_ct_STRIP="strip"
6729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6730    break 2
6731  fi
6732done
6733  done
6734IFS=$as_save_IFS
6735
6736fi
6737fi
6738ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6739if test -n "$ac_ct_STRIP"; then
6740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6741printf "%s\n" "$ac_ct_STRIP" >&6; }
6742else
6743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744printf "%s\n" "no" >&6; }
6745fi
6746
6747  if test "x$ac_ct_STRIP" = x; then
6748    STRIP=":"
6749  else
6750    case $cross_compiling:$ac_tool_warned in
6751yes:)
6752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6753printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754ac_tool_warned=yes ;;
6755esac
6756    STRIP=$ac_ct_STRIP
6757  fi
6758else
6759  STRIP="$ac_cv_prog_STRIP"
6760fi
6761
6762test -z "$STRIP" && STRIP=:
6763
6764
6765
6766
6767
6768
6769if test -n "$ac_tool_prefix"; then
6770  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6771set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773printf %s "checking for $ac_word... " >&6; }
6774if test ${ac_cv_prog_RANLIB+y}
6775then :
6776  printf %s "(cached) " >&6
6777else $as_nop
6778  if test -n "$RANLIB"; then
6779  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6780else
6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782for as_dir in $PATH
6783do
6784  IFS=$as_save_IFS
6785  case $as_dir in #(((
6786    '') as_dir=./ ;;
6787    */) ;;
6788    *) as_dir=$as_dir/ ;;
6789  esac
6790    for ac_exec_ext in '' $ac_executable_extensions; do
6791  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6792    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6793    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6794    break 2
6795  fi
6796done
6797  done
6798IFS=$as_save_IFS
6799
6800fi
6801fi
6802RANLIB=$ac_cv_prog_RANLIB
6803if test -n "$RANLIB"; then
6804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6805printf "%s\n" "$RANLIB" >&6; }
6806else
6807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808printf "%s\n" "no" >&6; }
6809fi
6810
6811
6812fi
6813if test -z "$ac_cv_prog_RANLIB"; then
6814  ac_ct_RANLIB=$RANLIB
6815  # Extract the first word of "ranlib", so it can be a program name with args.
6816set dummy ranlib; ac_word=$2
6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818printf %s "checking for $ac_word... " >&6; }
6819if test ${ac_cv_prog_ac_ct_RANLIB+y}
6820then :
6821  printf %s "(cached) " >&6
6822else $as_nop
6823  if test -n "$ac_ct_RANLIB"; then
6824  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829  IFS=$as_save_IFS
6830  case $as_dir in #(((
6831    '') as_dir=./ ;;
6832    */) ;;
6833    *) as_dir=$as_dir/ ;;
6834  esac
6835    for ac_exec_ext in '' $ac_executable_extensions; do
6836  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6837    ac_cv_prog_ac_ct_RANLIB="ranlib"
6838    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6839    break 2
6840  fi
6841done
6842  done
6843IFS=$as_save_IFS
6844
6845fi
6846fi
6847ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6848if test -n "$ac_ct_RANLIB"; then
6849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6850printf "%s\n" "$ac_ct_RANLIB" >&6; }
6851else
6852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853printf "%s\n" "no" >&6; }
6854fi
6855
6856  if test "x$ac_ct_RANLIB" = x; then
6857    RANLIB=":"
6858  else
6859    case $cross_compiling:$ac_tool_warned in
6860yes:)
6861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863ac_tool_warned=yes ;;
6864esac
6865    RANLIB=$ac_ct_RANLIB
6866  fi
6867else
6868  RANLIB="$ac_cv_prog_RANLIB"
6869fi
6870
6871test -z "$RANLIB" && RANLIB=:
6872
6873
6874
6875
6876
6877
6878# Determine commands to create old-style static archives.
6879old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6880old_postinstall_cmds='chmod 644 $oldlib'
6881old_postuninstall_cmds=
6882
6883if test -n "$RANLIB"; then
6884  case $host_os in
6885  bitrig* | openbsd*)
6886    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6887    ;;
6888  *)
6889    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6890    ;;
6891  esac
6892  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6893fi
6894
6895case $host_os in
6896  darwin*)
6897    lock_old_archive_extraction=yes ;;
6898  *)
6899    lock_old_archive_extraction=no ;;
6900esac
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940# If no C compiler was specified, use CC.
6941LTCC=${LTCC-"$CC"}
6942
6943# If no C compiler flags were specified, use CFLAGS.
6944LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6945
6946# Allow CC to be a program name with arguments.
6947compiler=$CC
6948
6949
6950# Check for command to grab the raw symbol name followed by C symbol from nm.
6951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6952printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6953if test ${lt_cv_sys_global_symbol_pipe+y}
6954then :
6955  printf %s "(cached) " >&6
6956else $as_nop
6957
6958# These are sane defaults that work on at least a few old systems.
6959# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6960
6961# Character class describing NM global symbol codes.
6962symcode='[BCDEGRST]'
6963
6964# Regexp to match symbols that can be accessed directly from C.
6965sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6966
6967# Define system-specific variables.
6968case $host_os in
6969aix*)
6970  symcode='[BCDT]'
6971  ;;
6972cygwin* | mingw* | pw32* | cegcc*)
6973  symcode='[ABCDGISTW]'
6974  ;;
6975hpux*)
6976  if test ia64 = "$host_cpu"; then
6977    symcode='[ABCDEGRST]'
6978  fi
6979  ;;
6980irix* | nonstopux*)
6981  symcode='[BCDEGRST]'
6982  ;;
6983osf*)
6984  symcode='[BCDEGQRST]'
6985  ;;
6986solaris*)
6987  symcode='[BDRT]'
6988  ;;
6989sco3.2v5*)
6990  symcode='[DT]'
6991  ;;
6992sysv4.2uw2*)
6993  symcode='[DT]'
6994  ;;
6995sysv5* | sco5v6* | unixware* | OpenUNIX*)
6996  symcode='[ABDT]'
6997  ;;
6998sysv4)
6999  symcode='[DFNSTU]'
7000  ;;
7001esac
7002
7003# If we're using GNU nm, then use its standard symbol codes.
7004case `$NM -V 2>&1` in
7005*GNU* | *'with BFD'*)
7006  symcode='[ABCDGIRSTW]' ;;
7007esac
7008
7009if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7010  # Gets list of data symbols to import.
7011  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7012  # Adjust the below global symbol transforms to fixup imported variables.
7013  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7014  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7015  lt_c_name_lib_hook="\
7016  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7017  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7018else
7019  # Disable hooks by default.
7020  lt_cv_sys_global_symbol_to_import=
7021  lt_cdecl_hook=
7022  lt_c_name_hook=
7023  lt_c_name_lib_hook=
7024fi
7025
7026# Transform an extracted symbol line into a proper C declaration.
7027# Some systems (esp. on ia64) link data and code symbols differently,
7028# so use this general approach.
7029lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7030$lt_cdecl_hook\
7031" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7032" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7033
7034# Transform an extracted symbol line into symbol name and symbol address
7035lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7036$lt_c_name_hook\
7037" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7038" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7039
7040# Transform an extracted symbol line into symbol name with lib prefix and
7041# symbol address.
7042lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7043$lt_c_name_lib_hook\
7044" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7045" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7046" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7047
7048# Handle CRLF in mingw tool chain
7049opt_cr=
7050case $build_os in
7051mingw*)
7052  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7053  ;;
7054esac
7055
7056# Try without a prefix underscore, then with it.
7057for ac_symprfx in "" "_"; do
7058
7059  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7060  symxfrm="\\1 $ac_symprfx\\2 \\2"
7061
7062  # Write the raw and C identifiers.
7063  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7064    # Fake it for dumpbin and say T for any non-static function,
7065    # D for any global variable and I for any imported variable.
7066    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7067    # which start with @ or ?.
7068    lt_cv_sys_global_symbol_pipe="$AWK '"\
7069"     {last_section=section; section=\$ 3};"\
7070"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7071"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7072"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7073"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7074"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7075"     \$ 0!~/External *\|/{next};"\
7076"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7077"     {if(hide[section]) next};"\
7078"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7079"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7080"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7081"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7082"     ' prfx=^$ac_symprfx"
7083  else
7084    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7085  fi
7086  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7087
7088  # Check to see that the pipe works correctly.
7089  pipe_works=no
7090
7091  rm -f conftest*
7092  cat > conftest.$ac_ext <<_LT_EOF
7093#ifdef __cplusplus
7094extern "C" {
7095#endif
7096char nm_test_var;
7097void nm_test_func(void);
7098void nm_test_func(void){}
7099#ifdef __cplusplus
7100}
7101#endif
7102int main(){nm_test_var='a';nm_test_func();return(0);}
7103_LT_EOF
7104
7105  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7106  (eval $ac_compile) 2>&5
7107  ac_status=$?
7108  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7109  test $ac_status = 0; }; then
7110    # Now try to grab the symbols.
7111    nlist=conftest.nm
7112    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7113  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7114  ac_status=$?
7115  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116  test $ac_status = 0; } && test -s "$nlist"; then
7117      # Try sorting and uniquifying the output.
7118      if sort "$nlist" | uniq > "$nlist"T; then
7119	mv -f "$nlist"T "$nlist"
7120      else
7121	rm -f "$nlist"T
7122      fi
7123
7124      # Make sure that we snagged all the symbols we need.
7125      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7126	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7127	  cat <<_LT_EOF > conftest.$ac_ext
7128/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7129#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7130/* DATA imports from DLLs on WIN32 can't be const, because runtime
7131   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7132# define LT_DLSYM_CONST
7133#elif defined __osf__
7134/* This system does not cope well with relocations in const data.  */
7135# define LT_DLSYM_CONST
7136#else
7137# define LT_DLSYM_CONST const
7138#endif
7139
7140#ifdef __cplusplus
7141extern "C" {
7142#endif
7143
7144_LT_EOF
7145	  # Now generate the symbol file.
7146	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7147
7148	  cat <<_LT_EOF >> conftest.$ac_ext
7149
7150/* The mapping between symbol names and symbols.  */
7151LT_DLSYM_CONST struct {
7152  const char *name;
7153  void       *address;
7154}
7155lt__PROGRAM__LTX_preloaded_symbols[] =
7156{
7157  { "@PROGRAM@", (void *) 0 },
7158_LT_EOF
7159	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7160	  cat <<\_LT_EOF >> conftest.$ac_ext
7161  {0, (void *) 0}
7162};
7163
7164/* This works around a problem in FreeBSD linker */
7165#ifdef FREEBSD_WORKAROUND
7166static const void *lt_preloaded_setup() {
7167  return lt__PROGRAM__LTX_preloaded_symbols;
7168}
7169#endif
7170
7171#ifdef __cplusplus
7172}
7173#endif
7174_LT_EOF
7175	  # Now try linking the two files.
7176	  mv conftest.$ac_objext conftstm.$ac_objext
7177	  lt_globsym_save_LIBS=$LIBS
7178	  lt_globsym_save_CFLAGS=$CFLAGS
7179	  LIBS=conftstm.$ac_objext
7180	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7181	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7182  (eval $ac_link) 2>&5
7183  ac_status=$?
7184  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7186	    pipe_works=yes
7187	  fi
7188	  LIBS=$lt_globsym_save_LIBS
7189	  CFLAGS=$lt_globsym_save_CFLAGS
7190	else
7191	  echo "cannot find nm_test_func in $nlist" >&5
7192	fi
7193      else
7194	echo "cannot find nm_test_var in $nlist" >&5
7195      fi
7196    else
7197      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7198    fi
7199  else
7200    echo "$progname: failed program was:" >&5
7201    cat conftest.$ac_ext >&5
7202  fi
7203  rm -rf conftest* conftst*
7204
7205  # Do not use the global_symbol_pipe unless it works.
7206  if test yes = "$pipe_works"; then
7207    break
7208  else
7209    lt_cv_sys_global_symbol_pipe=
7210  fi
7211done
7212
7213fi
7214
7215if test -z "$lt_cv_sys_global_symbol_pipe"; then
7216  lt_cv_sys_global_symbol_to_cdecl=
7217fi
7218if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7220printf "%s\n" "failed" >&6; }
7221else
7222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7223printf "%s\n" "ok" >&6; }
7224fi
7225
7226# Response file support.
7227if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7228  nm_file_list_spec='@'
7229elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7230  nm_file_list_spec='@'
7231fi
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7270printf %s "checking for sysroot... " >&6; }
7271
7272# Check whether --with-sysroot was given.
7273if test ${with_sysroot+y}
7274then :
7275  withval=$with_sysroot;
7276else $as_nop
7277  with_sysroot=no
7278fi
7279
7280
7281lt_sysroot=
7282case $with_sysroot in #(
7283 yes)
7284   if test yes = "$GCC"; then
7285     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7286   fi
7287   ;; #(
7288 /*)
7289   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7290   ;; #(
7291 no|'')
7292   ;; #(
7293 *)
7294   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7295printf "%s\n" "$with_sysroot" >&6; }
7296   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7297   ;;
7298esac
7299
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7301printf "%s\n" "${lt_sysroot:-no}" >&6; }
7302
7303
7304
7305
7306
7307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7308printf %s "checking for a working dd... " >&6; }
7309if test ${ac_cv_path_lt_DD+y}
7310then :
7311  printf %s "(cached) " >&6
7312else $as_nop
7313  printf 0123456789abcdef0123456789abcdef >conftest.i
7314cat conftest.i conftest.i >conftest2.i
7315: ${lt_DD:=$DD}
7316if test -z "$lt_DD"; then
7317  ac_path_lt_DD_found=false
7318  # Loop through the user's path and test for each of PROGNAME-LIST
7319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  case $as_dir in #(((
7324    '') as_dir=./ ;;
7325    */) ;;
7326    *) as_dir=$as_dir/ ;;
7327  esac
7328    for ac_prog in dd
7329   do
7330    for ac_exec_ext in '' $ac_executable_extensions; do
7331      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7332      as_fn_executable_p "$ac_path_lt_DD" || continue
7333if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7334  cmp -s conftest.i conftest.out \
7335  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7336fi
7337      $ac_path_lt_DD_found && break 3
7338    done
7339  done
7340  done
7341IFS=$as_save_IFS
7342  if test -z "$ac_cv_path_lt_DD"; then
7343    :
7344  fi
7345else
7346  ac_cv_path_lt_DD=$lt_DD
7347fi
7348
7349rm -f conftest.i conftest2.i conftest.out
7350fi
7351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7352printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7353
7354
7355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7356printf %s "checking how to truncate binary pipes... " >&6; }
7357if test ${lt_cv_truncate_bin+y}
7358then :
7359  printf %s "(cached) " >&6
7360else $as_nop
7361  printf 0123456789abcdef0123456789abcdef >conftest.i
7362cat conftest.i conftest.i >conftest2.i
7363lt_cv_truncate_bin=
7364if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7365  cmp -s conftest.i conftest.out \
7366  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7367fi
7368rm -f conftest.i conftest2.i conftest.out
7369test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7370fi
7371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7372printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7373
7374
7375
7376
7377
7378
7379
7380# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7381func_cc_basename ()
7382{
7383    for cc_temp in $*""; do
7384      case $cc_temp in
7385        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7386        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7387        \-*) ;;
7388        *) break;;
7389      esac
7390    done
7391    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7392}
7393
7394# Check whether --enable-libtool-lock was given.
7395if test ${enable_libtool_lock+y}
7396then :
7397  enableval=$enable_libtool_lock;
7398fi
7399
7400test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7401
7402# Some flags need to be propagated to the compiler or linker for good
7403# libtool support.
7404case $host in
7405ia64-*-hpux*)
7406  # Find out what ABI is being produced by ac_compile, and set mode
7407  # options accordingly.
7408  echo 'int i;' > conftest.$ac_ext
7409  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7410  (eval $ac_compile) 2>&5
7411  ac_status=$?
7412  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7413  test $ac_status = 0; }; then
7414    case `$FILECMD conftest.$ac_objext` in
7415      *ELF-32*)
7416	HPUX_IA64_MODE=32
7417	;;
7418      *ELF-64*)
7419	HPUX_IA64_MODE=64
7420	;;
7421    esac
7422  fi
7423  rm -rf conftest*
7424  ;;
7425*-*-irix6*)
7426  # Find out what ABI is being produced by ac_compile, and set linker
7427  # options accordingly.
7428  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7429  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7430  (eval $ac_compile) 2>&5
7431  ac_status=$?
7432  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7433  test $ac_status = 0; }; then
7434    if test yes = "$lt_cv_prog_gnu_ld"; then
7435      case `$FILECMD conftest.$ac_objext` in
7436	*32-bit*)
7437	  LD="${LD-ld} -melf32bsmip"
7438	  ;;
7439	*N32*)
7440	  LD="${LD-ld} -melf32bmipn32"
7441	  ;;
7442	*64-bit*)
7443	  LD="${LD-ld} -melf64bmip"
7444	;;
7445      esac
7446    else
7447      case `$FILECMD conftest.$ac_objext` in
7448	*32-bit*)
7449	  LD="${LD-ld} -32"
7450	  ;;
7451	*N32*)
7452	  LD="${LD-ld} -n32"
7453	  ;;
7454	*64-bit*)
7455	  LD="${LD-ld} -64"
7456	  ;;
7457      esac
7458    fi
7459  fi
7460  rm -rf conftest*
7461  ;;
7462
7463mips64*-*linux*)
7464  # Find out what ABI is being produced by ac_compile, and set linker
7465  # options accordingly.
7466  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7467  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7468  (eval $ac_compile) 2>&5
7469  ac_status=$?
7470  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7471  test $ac_status = 0; }; then
7472    emul=elf
7473    case `$FILECMD conftest.$ac_objext` in
7474      *32-bit*)
7475	emul="${emul}32"
7476	;;
7477      *64-bit*)
7478	emul="${emul}64"
7479	;;
7480    esac
7481    case `$FILECMD conftest.$ac_objext` in
7482      *MSB*)
7483	emul="${emul}btsmip"
7484	;;
7485      *LSB*)
7486	emul="${emul}ltsmip"
7487	;;
7488    esac
7489    case `$FILECMD conftest.$ac_objext` in
7490      *N32*)
7491	emul="${emul}n32"
7492	;;
7493    esac
7494    LD="${LD-ld} -m $emul"
7495  fi
7496  rm -rf conftest*
7497  ;;
7498
7499x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7500s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7501  # Find out what ABI is being produced by ac_compile, and set linker
7502  # options accordingly.  Note that the listed cases only cover the
7503  # situations where additional linker options are needed (such as when
7504  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7505  # vice versa); the common cases where no linker options are needed do
7506  # not appear in the list.
7507  echo 'int i;' > conftest.$ac_ext
7508  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7509  (eval $ac_compile) 2>&5
7510  ac_status=$?
7511  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7512  test $ac_status = 0; }; then
7513    case `$FILECMD conftest.o` in
7514      *32-bit*)
7515	case $host in
7516	  x86_64-*kfreebsd*-gnu)
7517	    LD="${LD-ld} -m elf_i386_fbsd"
7518	    ;;
7519	  x86_64-*linux*)
7520	    case `$FILECMD conftest.o` in
7521	      *x86-64*)
7522		LD="${LD-ld} -m elf32_x86_64"
7523		;;
7524	      *)
7525		LD="${LD-ld} -m elf_i386"
7526		;;
7527	    esac
7528	    ;;
7529	  powerpc64le-*linux*)
7530	    LD="${LD-ld} -m elf32lppclinux"
7531	    ;;
7532	  powerpc64-*linux*)
7533	    LD="${LD-ld} -m elf32ppclinux"
7534	    ;;
7535	  s390x-*linux*)
7536	    LD="${LD-ld} -m elf_s390"
7537	    ;;
7538	  sparc64-*linux*)
7539	    LD="${LD-ld} -m elf32_sparc"
7540	    ;;
7541	esac
7542	;;
7543      *64-bit*)
7544	case $host in
7545	  x86_64-*kfreebsd*-gnu)
7546	    LD="${LD-ld} -m elf_x86_64_fbsd"
7547	    ;;
7548	  x86_64-*linux*)
7549	    LD="${LD-ld} -m elf_x86_64"
7550	    ;;
7551	  powerpcle-*linux*)
7552	    LD="${LD-ld} -m elf64lppc"
7553	    ;;
7554	  powerpc-*linux*)
7555	    LD="${LD-ld} -m elf64ppc"
7556	    ;;
7557	  s390*-*linux*|s390*-*tpf*)
7558	    LD="${LD-ld} -m elf64_s390"
7559	    ;;
7560	  sparc*-*linux*)
7561	    LD="${LD-ld} -m elf64_sparc"
7562	    ;;
7563	esac
7564	;;
7565    esac
7566  fi
7567  rm -rf conftest*
7568  ;;
7569
7570*-*-sco3.2v5*)
7571  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7572  SAVE_CFLAGS=$CFLAGS
7573  CFLAGS="$CFLAGS -belf"
7574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7575printf %s "checking whether the C compiler needs -belf... " >&6; }
7576if test ${lt_cv_cc_needs_belf+y}
7577then :
7578  printf %s "(cached) " >&6
7579else $as_nop
7580  ac_ext=c
7581ac_cpp='$CPP $CPPFLAGS'
7582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585
7586     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587/* end confdefs.h.  */
7588
7589int
7590main (void)
7591{
7592
7593  ;
7594  return 0;
7595}
7596_ACEOF
7597if ac_fn_c_try_link "$LINENO"
7598then :
7599  lt_cv_cc_needs_belf=yes
7600else $as_nop
7601  lt_cv_cc_needs_belf=no
7602fi
7603rm -f core conftest.err conftest.$ac_objext conftest.beam \
7604    conftest$ac_exeext conftest.$ac_ext
7605     ac_ext=c
7606ac_cpp='$CPP $CPPFLAGS'
7607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7609ac_compiler_gnu=$ac_cv_c_compiler_gnu
7610
7611fi
7612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7613printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7614  if test yes != "$lt_cv_cc_needs_belf"; then
7615    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7616    CFLAGS=$SAVE_CFLAGS
7617  fi
7618  ;;
7619*-*solaris*)
7620  # Find out what ABI is being produced by ac_compile, and set linker
7621  # options accordingly.
7622  echo 'int i;' > conftest.$ac_ext
7623  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7624  (eval $ac_compile) 2>&5
7625  ac_status=$?
7626  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7627  test $ac_status = 0; }; then
7628    case `$FILECMD conftest.o` in
7629    *64-bit*)
7630      case $lt_cv_prog_gnu_ld in
7631      yes*)
7632        case $host in
7633        i?86-*-solaris*|x86_64-*-solaris*)
7634          LD="${LD-ld} -m elf_x86_64"
7635          ;;
7636        sparc*-*-solaris*)
7637          LD="${LD-ld} -m elf64_sparc"
7638          ;;
7639        esac
7640        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7641        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7642          LD=${LD-ld}_sol2
7643        fi
7644        ;;
7645      *)
7646	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7647	  LD="${LD-ld} -64"
7648	fi
7649	;;
7650      esac
7651      ;;
7652    esac
7653  fi
7654  rm -rf conftest*
7655  ;;
7656esac
7657
7658need_locks=$enable_libtool_lock
7659
7660if test -n "$ac_tool_prefix"; then
7661  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7662set dummy ${ac_tool_prefix}mt; ac_word=$2
7663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664printf %s "checking for $ac_word... " >&6; }
7665if test ${ac_cv_prog_MANIFEST_TOOL+y}
7666then :
7667  printf %s "(cached) " >&6
7668else $as_nop
7669  if test -n "$MANIFEST_TOOL"; then
7670  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7671else
7672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675  IFS=$as_save_IFS
7676  case $as_dir in #(((
7677    '') as_dir=./ ;;
7678    */) ;;
7679    *) as_dir=$as_dir/ ;;
7680  esac
7681    for ac_exec_ext in '' $ac_executable_extensions; do
7682  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7683    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7684    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7685    break 2
7686  fi
7687done
7688  done
7689IFS=$as_save_IFS
7690
7691fi
7692fi
7693MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7694if test -n "$MANIFEST_TOOL"; then
7695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7696printf "%s\n" "$MANIFEST_TOOL" >&6; }
7697else
7698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699printf "%s\n" "no" >&6; }
7700fi
7701
7702
7703fi
7704if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7705  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7706  # Extract the first word of "mt", so it can be a program name with args.
7707set dummy mt; ac_word=$2
7708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709printf %s "checking for $ac_word... " >&6; }
7710if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7711then :
7712  printf %s "(cached) " >&6
7713else $as_nop
7714  if test -n "$ac_ct_MANIFEST_TOOL"; then
7715  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7716else
7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720  IFS=$as_save_IFS
7721  case $as_dir in #(((
7722    '') as_dir=./ ;;
7723    */) ;;
7724    *) as_dir=$as_dir/ ;;
7725  esac
7726    for ac_exec_ext in '' $ac_executable_extensions; do
7727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7728    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7730    break 2
7731  fi
7732done
7733  done
7734IFS=$as_save_IFS
7735
7736fi
7737fi
7738ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7739if test -n "$ac_ct_MANIFEST_TOOL"; then
7740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7741printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7742else
7743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744printf "%s\n" "no" >&6; }
7745fi
7746
7747  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7748    MANIFEST_TOOL=":"
7749  else
7750    case $cross_compiling:$ac_tool_warned in
7751yes:)
7752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7753printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7754ac_tool_warned=yes ;;
7755esac
7756    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7757  fi
7758else
7759  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7760fi
7761
7762test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7764printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7765if test ${lt_cv_path_mainfest_tool+y}
7766then :
7767  printf %s "(cached) " >&6
7768else $as_nop
7769  lt_cv_path_mainfest_tool=no
7770  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7771  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7772  cat conftest.err >&5
7773  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7774    lt_cv_path_mainfest_tool=yes
7775  fi
7776  rm -f conftest*
7777fi
7778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7779printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7780if test yes != "$lt_cv_path_mainfest_tool"; then
7781  MANIFEST_TOOL=:
7782fi
7783
7784
7785
7786
7787
7788
7789  case $host_os in
7790    rhapsody* | darwin*)
7791    if test -n "$ac_tool_prefix"; then
7792  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7793set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795printf %s "checking for $ac_word... " >&6; }
7796if test ${ac_cv_prog_DSYMUTIL+y}
7797then :
7798  printf %s "(cached) " >&6
7799else $as_nop
7800  if test -n "$DSYMUTIL"; then
7801  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7802else
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806  IFS=$as_save_IFS
7807  case $as_dir in #(((
7808    '') as_dir=./ ;;
7809    */) ;;
7810    *) as_dir=$as_dir/ ;;
7811  esac
7812    for ac_exec_ext in '' $ac_executable_extensions; do
7813  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7814    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7815    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7816    break 2
7817  fi
7818done
7819  done
7820IFS=$as_save_IFS
7821
7822fi
7823fi
7824DSYMUTIL=$ac_cv_prog_DSYMUTIL
7825if test -n "$DSYMUTIL"; then
7826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7827printf "%s\n" "$DSYMUTIL" >&6; }
7828else
7829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830printf "%s\n" "no" >&6; }
7831fi
7832
7833
7834fi
7835if test -z "$ac_cv_prog_DSYMUTIL"; then
7836  ac_ct_DSYMUTIL=$DSYMUTIL
7837  # Extract the first word of "dsymutil", so it can be a program name with args.
7838set dummy dsymutil; ac_word=$2
7839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840printf %s "checking for $ac_word... " >&6; }
7841if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7842then :
7843  printf %s "(cached) " >&6
7844else $as_nop
7845  if test -n "$ac_ct_DSYMUTIL"; then
7846  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  case $as_dir in #(((
7853    '') as_dir=./ ;;
7854    */) ;;
7855    *) as_dir=$as_dir/ ;;
7856  esac
7857    for ac_exec_ext in '' $ac_executable_extensions; do
7858  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7859    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7860    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7861    break 2
7862  fi
7863done
7864  done
7865IFS=$as_save_IFS
7866
7867fi
7868fi
7869ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7870if test -n "$ac_ct_DSYMUTIL"; then
7871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7872printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7873else
7874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875printf "%s\n" "no" >&6; }
7876fi
7877
7878  if test "x$ac_ct_DSYMUTIL" = x; then
7879    DSYMUTIL=":"
7880  else
7881    case $cross_compiling:$ac_tool_warned in
7882yes:)
7883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7884printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7885ac_tool_warned=yes ;;
7886esac
7887    DSYMUTIL=$ac_ct_DSYMUTIL
7888  fi
7889else
7890  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7891fi
7892
7893    if test -n "$ac_tool_prefix"; then
7894  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7895set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897printf %s "checking for $ac_word... " >&6; }
7898if test ${ac_cv_prog_NMEDIT+y}
7899then :
7900  printf %s "(cached) " >&6
7901else $as_nop
7902  if test -n "$NMEDIT"; then
7903  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7904else
7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908  IFS=$as_save_IFS
7909  case $as_dir in #(((
7910    '') as_dir=./ ;;
7911    */) ;;
7912    *) as_dir=$as_dir/ ;;
7913  esac
7914    for ac_exec_ext in '' $ac_executable_extensions; do
7915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7916    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7918    break 2
7919  fi
7920done
7921  done
7922IFS=$as_save_IFS
7923
7924fi
7925fi
7926NMEDIT=$ac_cv_prog_NMEDIT
7927if test -n "$NMEDIT"; then
7928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7929printf "%s\n" "$NMEDIT" >&6; }
7930else
7931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932printf "%s\n" "no" >&6; }
7933fi
7934
7935
7936fi
7937if test -z "$ac_cv_prog_NMEDIT"; then
7938  ac_ct_NMEDIT=$NMEDIT
7939  # Extract the first word of "nmedit", so it can be a program name with args.
7940set dummy nmedit; ac_word=$2
7941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942printf %s "checking for $ac_word... " >&6; }
7943if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7944then :
7945  printf %s "(cached) " >&6
7946else $as_nop
7947  if test -n "$ac_ct_NMEDIT"; then
7948  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7949else
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953  IFS=$as_save_IFS
7954  case $as_dir in #(((
7955    '') as_dir=./ ;;
7956    */) ;;
7957    *) as_dir=$as_dir/ ;;
7958  esac
7959    for ac_exec_ext in '' $ac_executable_extensions; do
7960  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7961    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7962    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7963    break 2
7964  fi
7965done
7966  done
7967IFS=$as_save_IFS
7968
7969fi
7970fi
7971ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7972if test -n "$ac_ct_NMEDIT"; then
7973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7974printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7975else
7976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977printf "%s\n" "no" >&6; }
7978fi
7979
7980  if test "x$ac_ct_NMEDIT" = x; then
7981    NMEDIT=":"
7982  else
7983    case $cross_compiling:$ac_tool_warned in
7984yes:)
7985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7986printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7987ac_tool_warned=yes ;;
7988esac
7989    NMEDIT=$ac_ct_NMEDIT
7990  fi
7991else
7992  NMEDIT="$ac_cv_prog_NMEDIT"
7993fi
7994
7995    if test -n "$ac_tool_prefix"; then
7996  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7997set dummy ${ac_tool_prefix}lipo; ac_word=$2
7998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999printf %s "checking for $ac_word... " >&6; }
8000if test ${ac_cv_prog_LIPO+y}
8001then :
8002  printf %s "(cached) " >&6
8003else $as_nop
8004  if test -n "$LIPO"; then
8005  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8006else
8007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008for as_dir in $PATH
8009do
8010  IFS=$as_save_IFS
8011  case $as_dir in #(((
8012    '') as_dir=./ ;;
8013    */) ;;
8014    *) as_dir=$as_dir/ ;;
8015  esac
8016    for ac_exec_ext in '' $ac_executable_extensions; do
8017  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8018    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8019    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8020    break 2
8021  fi
8022done
8023  done
8024IFS=$as_save_IFS
8025
8026fi
8027fi
8028LIPO=$ac_cv_prog_LIPO
8029if test -n "$LIPO"; then
8030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8031printf "%s\n" "$LIPO" >&6; }
8032else
8033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034printf "%s\n" "no" >&6; }
8035fi
8036
8037
8038fi
8039if test -z "$ac_cv_prog_LIPO"; then
8040  ac_ct_LIPO=$LIPO
8041  # Extract the first word of "lipo", so it can be a program name with args.
8042set dummy lipo; ac_word=$2
8043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044printf %s "checking for $ac_word... " >&6; }
8045if test ${ac_cv_prog_ac_ct_LIPO+y}
8046then :
8047  printf %s "(cached) " >&6
8048else $as_nop
8049  if test -n "$ac_ct_LIPO"; then
8050  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8051else
8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055  IFS=$as_save_IFS
8056  case $as_dir in #(((
8057    '') as_dir=./ ;;
8058    */) ;;
8059    *) as_dir=$as_dir/ ;;
8060  esac
8061    for ac_exec_ext in '' $ac_executable_extensions; do
8062  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8063    ac_cv_prog_ac_ct_LIPO="lipo"
8064    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8065    break 2
8066  fi
8067done
8068  done
8069IFS=$as_save_IFS
8070
8071fi
8072fi
8073ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8074if test -n "$ac_ct_LIPO"; then
8075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8076printf "%s\n" "$ac_ct_LIPO" >&6; }
8077else
8078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079printf "%s\n" "no" >&6; }
8080fi
8081
8082  if test "x$ac_ct_LIPO" = x; then
8083    LIPO=":"
8084  else
8085    case $cross_compiling:$ac_tool_warned in
8086yes:)
8087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089ac_tool_warned=yes ;;
8090esac
8091    LIPO=$ac_ct_LIPO
8092  fi
8093else
8094  LIPO="$ac_cv_prog_LIPO"
8095fi
8096
8097    if test -n "$ac_tool_prefix"; then
8098  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8099set dummy ${ac_tool_prefix}otool; ac_word=$2
8100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101printf %s "checking for $ac_word... " >&6; }
8102if test ${ac_cv_prog_OTOOL+y}
8103then :
8104  printf %s "(cached) " >&6
8105else $as_nop
8106  if test -n "$OTOOL"; then
8107  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8108else
8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112  IFS=$as_save_IFS
8113  case $as_dir in #(((
8114    '') as_dir=./ ;;
8115    */) ;;
8116    *) as_dir=$as_dir/ ;;
8117  esac
8118    for ac_exec_ext in '' $ac_executable_extensions; do
8119  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8120    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8121    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8122    break 2
8123  fi
8124done
8125  done
8126IFS=$as_save_IFS
8127
8128fi
8129fi
8130OTOOL=$ac_cv_prog_OTOOL
8131if test -n "$OTOOL"; then
8132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8133printf "%s\n" "$OTOOL" >&6; }
8134else
8135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136printf "%s\n" "no" >&6; }
8137fi
8138
8139
8140fi
8141if test -z "$ac_cv_prog_OTOOL"; then
8142  ac_ct_OTOOL=$OTOOL
8143  # Extract the first word of "otool", so it can be a program name with args.
8144set dummy otool; ac_word=$2
8145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146printf %s "checking for $ac_word... " >&6; }
8147if test ${ac_cv_prog_ac_ct_OTOOL+y}
8148then :
8149  printf %s "(cached) " >&6
8150else $as_nop
8151  if test -n "$ac_ct_OTOOL"; then
8152  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8153else
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157  IFS=$as_save_IFS
8158  case $as_dir in #(((
8159    '') as_dir=./ ;;
8160    */) ;;
8161    *) as_dir=$as_dir/ ;;
8162  esac
8163    for ac_exec_ext in '' $ac_executable_extensions; do
8164  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8165    ac_cv_prog_ac_ct_OTOOL="otool"
8166    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8167    break 2
8168  fi
8169done
8170  done
8171IFS=$as_save_IFS
8172
8173fi
8174fi
8175ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8176if test -n "$ac_ct_OTOOL"; then
8177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8178printf "%s\n" "$ac_ct_OTOOL" >&6; }
8179else
8180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181printf "%s\n" "no" >&6; }
8182fi
8183
8184  if test "x$ac_ct_OTOOL" = x; then
8185    OTOOL=":"
8186  else
8187    case $cross_compiling:$ac_tool_warned in
8188yes:)
8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8190printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8191ac_tool_warned=yes ;;
8192esac
8193    OTOOL=$ac_ct_OTOOL
8194  fi
8195else
8196  OTOOL="$ac_cv_prog_OTOOL"
8197fi
8198
8199    if test -n "$ac_tool_prefix"; then
8200  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8201set dummy ${ac_tool_prefix}otool64; ac_word=$2
8202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203printf %s "checking for $ac_word... " >&6; }
8204if test ${ac_cv_prog_OTOOL64+y}
8205then :
8206  printf %s "(cached) " >&6
8207else $as_nop
8208  if test -n "$OTOOL64"; then
8209  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8210else
8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212for as_dir in $PATH
8213do
8214  IFS=$as_save_IFS
8215  case $as_dir in #(((
8216    '') as_dir=./ ;;
8217    */) ;;
8218    *) as_dir=$as_dir/ ;;
8219  esac
8220    for ac_exec_ext in '' $ac_executable_extensions; do
8221  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8222    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8223    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8224    break 2
8225  fi
8226done
8227  done
8228IFS=$as_save_IFS
8229
8230fi
8231fi
8232OTOOL64=$ac_cv_prog_OTOOL64
8233if test -n "$OTOOL64"; then
8234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8235printf "%s\n" "$OTOOL64" >&6; }
8236else
8237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238printf "%s\n" "no" >&6; }
8239fi
8240
8241
8242fi
8243if test -z "$ac_cv_prog_OTOOL64"; then
8244  ac_ct_OTOOL64=$OTOOL64
8245  # Extract the first word of "otool64", so it can be a program name with args.
8246set dummy otool64; ac_word=$2
8247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248printf %s "checking for $ac_word... " >&6; }
8249if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8250then :
8251  printf %s "(cached) " >&6
8252else $as_nop
8253  if test -n "$ac_ct_OTOOL64"; then
8254  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8255else
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259  IFS=$as_save_IFS
8260  case $as_dir in #(((
8261    '') as_dir=./ ;;
8262    */) ;;
8263    *) as_dir=$as_dir/ ;;
8264  esac
8265    for ac_exec_ext in '' $ac_executable_extensions; do
8266  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8267    ac_cv_prog_ac_ct_OTOOL64="otool64"
8268    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8269    break 2
8270  fi
8271done
8272  done
8273IFS=$as_save_IFS
8274
8275fi
8276fi
8277ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8278if test -n "$ac_ct_OTOOL64"; then
8279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8280printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8281else
8282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283printf "%s\n" "no" >&6; }
8284fi
8285
8286  if test "x$ac_ct_OTOOL64" = x; then
8287    OTOOL64=":"
8288  else
8289    case $cross_compiling:$ac_tool_warned in
8290yes:)
8291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8292printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293ac_tool_warned=yes ;;
8294esac
8295    OTOOL64=$ac_ct_OTOOL64
8296  fi
8297else
8298  OTOOL64="$ac_cv_prog_OTOOL64"
8299fi
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8328printf %s "checking for -single_module linker flag... " >&6; }
8329if test ${lt_cv_apple_cc_single_mod+y}
8330then :
8331  printf %s "(cached) " >&6
8332else $as_nop
8333  lt_cv_apple_cc_single_mod=no
8334      if test -z "$LT_MULTI_MODULE"; then
8335	# By default we will add the -single_module flag. You can override
8336	# by either setting the environment variable LT_MULTI_MODULE
8337	# non-empty at configure time, or by adding -multi_module to the
8338	# link flags.
8339	rm -rf libconftest.dylib*
8340	echo "int foo(void){return 1;}" > conftest.c
8341	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8342-dynamiclib -Wl,-single_module conftest.c" >&5
8343	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8344	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8345        _lt_result=$?
8346	# If there is a non-empty error log, and "single_module"
8347	# appears in it, assume the flag caused a linker warning
8348        if test -s conftest.err && $GREP single_module conftest.err; then
8349	  cat conftest.err >&5
8350	# Otherwise, if the output was created with a 0 exit code from
8351	# the compiler, it worked.
8352	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8353	  lt_cv_apple_cc_single_mod=yes
8354	else
8355	  cat conftest.err >&5
8356	fi
8357	rm -rf libconftest.dylib*
8358	rm -f conftest.*
8359      fi
8360fi
8361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8362printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8363
8364    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8365printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8366if test ${lt_cv_ld_exported_symbols_list+y}
8367then :
8368  printf %s "(cached) " >&6
8369else $as_nop
8370  lt_cv_ld_exported_symbols_list=no
8371      save_LDFLAGS=$LDFLAGS
8372      echo "_main" > conftest.sym
8373      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8374      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376
8377int
8378main (void)
8379{
8380
8381  ;
8382  return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_link "$LINENO"
8386then :
8387  lt_cv_ld_exported_symbols_list=yes
8388else $as_nop
8389  lt_cv_ld_exported_symbols_list=no
8390fi
8391rm -f core conftest.err conftest.$ac_objext conftest.beam \
8392    conftest$ac_exeext conftest.$ac_ext
8393	LDFLAGS=$save_LDFLAGS
8394
8395fi
8396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8397printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8398
8399    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8400printf %s "checking for -force_load linker flag... " >&6; }
8401if test ${lt_cv_ld_force_load+y}
8402then :
8403  printf %s "(cached) " >&6
8404else $as_nop
8405  lt_cv_ld_force_load=no
8406      cat > conftest.c << _LT_EOF
8407int forced_loaded() { return 2;}
8408_LT_EOF
8409      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8410      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8411      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8412      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8413      echo "$RANLIB libconftest.a" >&5
8414      $RANLIB libconftest.a 2>&5
8415      cat > conftest.c << _LT_EOF
8416int main() { return 0;}
8417_LT_EOF
8418      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8419      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8420      _lt_result=$?
8421      if test -s conftest.err && $GREP force_load conftest.err; then
8422	cat conftest.err >&5
8423      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8424	lt_cv_ld_force_load=yes
8425      else
8426	cat conftest.err >&5
8427      fi
8428        rm -f conftest.err libconftest.a conftest conftest.c
8429        rm -rf conftest.dSYM
8430
8431fi
8432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8433printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8434    case $host_os in
8435    rhapsody* | darwin1.[012])
8436      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8437    darwin1.*)
8438      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8439    darwin*)
8440      case $MACOSX_DEPLOYMENT_TARGET,$host in
8441        10.[012],*|,*powerpc*-darwin[5-8]*)
8442          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8443        *)
8444          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8445      esac
8446    ;;
8447  esac
8448    if test yes = "$lt_cv_apple_cc_single_mod"; then
8449      _lt_dar_single_mod='$single_module'
8450    fi
8451    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8452      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8453    else
8454      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8455    fi
8456    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8457      _lt_dsymutil='~$DSYMUTIL $lib || :'
8458    else
8459      _lt_dsymutil=
8460    fi
8461    ;;
8462  esac
8463
8464# func_munge_path_list VARIABLE PATH
8465# -----------------------------------
8466# VARIABLE is name of variable containing _space_ separated list of
8467# directories to be munged by the contents of PATH, which is string
8468# having a format:
8469# "DIR[:DIR]:"
8470#       string "DIR[ DIR]" will be prepended to VARIABLE
8471# ":DIR[:DIR]"
8472#       string "DIR[ DIR]" will be appended to VARIABLE
8473# "DIRP[:DIRP]::[DIRA:]DIRA"
8474#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8475#       "DIRA[ DIRA]" will be appended to VARIABLE
8476# "DIR[:DIR]"
8477#       VARIABLE will be replaced by "DIR[ DIR]"
8478func_munge_path_list ()
8479{
8480    case x$2 in
8481    x)
8482        ;;
8483    *:)
8484        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8485        ;;
8486    x:*)
8487        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8488        ;;
8489    *::*)
8490        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8491        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8492        ;;
8493    *)
8494        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8495        ;;
8496    esac
8497}
8498
8499ac_header= ac_cache=
8500for ac_item in $ac_header_c_list
8501do
8502  if test $ac_cache; then
8503    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8504    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8505      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8506    fi
8507    ac_header= ac_cache=
8508  elif test $ac_header; then
8509    ac_cache=$ac_item
8510  else
8511    ac_header=$ac_item
8512  fi
8513done
8514
8515
8516
8517
8518
8519
8520
8521
8522if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8523then :
8524
8525printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8526
8527fi
8528ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8529"
8530if test "x$ac_cv_header_dlfcn_h" = xyes
8531then :
8532  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8533
8534fi
8535
8536
8537
8538
8539
8540# Set options
8541
8542
8543
8544        enable_dlopen=no
8545
8546
8547  enable_win32_dll=no
8548
8549
8550            # Check whether --enable-shared was given.
8551if test ${enable_shared+y}
8552then :
8553  enableval=$enable_shared; p=${PACKAGE-default}
8554    case $enableval in
8555    yes) enable_shared=yes ;;
8556    no) enable_shared=no ;;
8557    *)
8558      enable_shared=no
8559      # Look at the argument we got.  We use all the common list separators.
8560      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8561      for pkg in $enableval; do
8562	IFS=$lt_save_ifs
8563	if test "X$pkg" = "X$p"; then
8564	  enable_shared=yes
8565	fi
8566      done
8567      IFS=$lt_save_ifs
8568      ;;
8569    esac
8570else $as_nop
8571  enable_shared=yes
8572fi
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582  # Check whether --enable-static was given.
8583if test ${enable_static+y}
8584then :
8585  enableval=$enable_static; p=${PACKAGE-default}
8586    case $enableval in
8587    yes) enable_static=yes ;;
8588    no) enable_static=no ;;
8589    *)
8590     enable_static=no
8591      # Look at the argument we got.  We use all the common list separators.
8592      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8593      for pkg in $enableval; do
8594	IFS=$lt_save_ifs
8595	if test "X$pkg" = "X$p"; then
8596	  enable_static=yes
8597	fi
8598      done
8599      IFS=$lt_save_ifs
8600      ;;
8601    esac
8602else $as_nop
8603  enable_static=yes
8604fi
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615# Check whether --with-pic was given.
8616if test ${with_pic+y}
8617then :
8618  withval=$with_pic; lt_p=${PACKAGE-default}
8619    case $withval in
8620    yes|no) pic_mode=$withval ;;
8621    *)
8622      pic_mode=default
8623      # Look at the argument we got.  We use all the common list separators.
8624      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8625      for lt_pkg in $withval; do
8626	IFS=$lt_save_ifs
8627	if test "X$lt_pkg" = "X$lt_p"; then
8628	  pic_mode=yes
8629	fi
8630      done
8631      IFS=$lt_save_ifs
8632      ;;
8633    esac
8634else $as_nop
8635  pic_mode=default
8636fi
8637
8638
8639
8640
8641
8642
8643
8644
8645  # Check whether --enable-fast-install was given.
8646if test ${enable_fast_install+y}
8647then :
8648  enableval=$enable_fast_install; p=${PACKAGE-default}
8649    case $enableval in
8650    yes) enable_fast_install=yes ;;
8651    no) enable_fast_install=no ;;
8652    *)
8653      enable_fast_install=no
8654      # Look at the argument we got.  We use all the common list separators.
8655      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8656      for pkg in $enableval; do
8657	IFS=$lt_save_ifs
8658	if test "X$pkg" = "X$p"; then
8659	  enable_fast_install=yes
8660	fi
8661      done
8662      IFS=$lt_save_ifs
8663      ;;
8664    esac
8665else $as_nop
8666  enable_fast_install=yes
8667fi
8668
8669
8670
8671
8672
8673
8674
8675
8676  shared_archive_member_spec=
8677case $host,$enable_shared in
8678power*-*-aix[5-9]*,yes)
8679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8680printf %s "checking which variant of shared library versioning to provide... " >&6; }
8681
8682# Check whether --with-aix-soname was given.
8683if test ${with_aix_soname+y}
8684then :
8685  withval=$with_aix_soname; case $withval in
8686    aix|svr4|both)
8687      ;;
8688    *)
8689      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8690      ;;
8691    esac
8692    lt_cv_with_aix_soname=$with_aix_soname
8693else $as_nop
8694  if test ${lt_cv_with_aix_soname+y}
8695then :
8696  printf %s "(cached) " >&6
8697else $as_nop
8698  lt_cv_with_aix_soname=aix
8699fi
8700
8701    with_aix_soname=$lt_cv_with_aix_soname
8702fi
8703
8704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8705printf "%s\n" "$with_aix_soname" >&6; }
8706  if test aix != "$with_aix_soname"; then
8707    # For the AIX way of multilib, we name the shared archive member
8708    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8709    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8710    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8711    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8712    if test 64 = "${OBJECT_MODE-32}"; then
8713      shared_archive_member_spec=shr_64
8714    else
8715      shared_archive_member_spec=shr
8716    fi
8717  fi
8718  ;;
8719*)
8720  with_aix_soname=aix
8721  ;;
8722esac
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733# This can be used to rebuild libtool when needed
8734LIBTOOL_DEPS=$ltmain
8735
8736# Always use our own libtool.
8737LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768test -z "$LN_S" && LN_S="ln -s"
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783if test -n "${ZSH_VERSION+set}"; then
8784   setopt NO_GLOB_SUBST
8785fi
8786
8787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8788printf %s "checking for objdir... " >&6; }
8789if test ${lt_cv_objdir+y}
8790then :
8791  printf %s "(cached) " >&6
8792else $as_nop
8793  rm -f .libs 2>/dev/null
8794mkdir .libs 2>/dev/null
8795if test -d .libs; then
8796  lt_cv_objdir=.libs
8797else
8798  # MS-DOS does not allow filenames that begin with a dot.
8799  lt_cv_objdir=_libs
8800fi
8801rmdir .libs 2>/dev/null
8802fi
8803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8804printf "%s\n" "$lt_cv_objdir" >&6; }
8805objdir=$lt_cv_objdir
8806
8807
8808
8809
8810
8811printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8812
8813
8814
8815
8816case $host_os in
8817aix3*)
8818  # AIX sometimes has problems with the GCC collect2 program.  For some
8819  # reason, if we set the COLLECT_NAMES environment variable, the problems
8820  # vanish in a puff of smoke.
8821  if test set != "${COLLECT_NAMES+set}"; then
8822    COLLECT_NAMES=
8823    export COLLECT_NAMES
8824  fi
8825  ;;
8826esac
8827
8828# Global variables:
8829ofile=libtool
8830can_build_shared=yes
8831
8832# All known linkers require a '.a' archive for static linking (except MSVC and
8833# ICC, which need '.lib').
8834libext=a
8835
8836with_gnu_ld=$lt_cv_prog_gnu_ld
8837
8838old_CC=$CC
8839old_CFLAGS=$CFLAGS
8840
8841# Set sane defaults for various variables
8842test -z "$CC" && CC=cc
8843test -z "$LTCC" && LTCC=$CC
8844test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8845test -z "$LD" && LD=ld
8846test -z "$ac_objext" && ac_objext=o
8847
8848func_cc_basename $compiler
8849cc_basename=$func_cc_basename_result
8850
8851
8852# Only perform the check for file, if the check method requires it
8853test -z "$MAGIC_CMD" && MAGIC_CMD=file
8854case $deplibs_check_method in
8855file_magic*)
8856  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8857    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8858printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8859if test ${lt_cv_path_MAGIC_CMD+y}
8860then :
8861  printf %s "(cached) " >&6
8862else $as_nop
8863  case $MAGIC_CMD in
8864[\\/*] |  ?:[\\/]*)
8865  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8866  ;;
8867*)
8868  lt_save_MAGIC_CMD=$MAGIC_CMD
8869  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8870  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8871  for ac_dir in $ac_dummy; do
8872    IFS=$lt_save_ifs
8873    test -z "$ac_dir" && ac_dir=.
8874    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8875      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8876      if test -n "$file_magic_test_file"; then
8877	case $deplibs_check_method in
8878	"file_magic "*)
8879	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8880	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8881	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8882	    $EGREP "$file_magic_regex" > /dev/null; then
8883	    :
8884	  else
8885	    cat <<_LT_EOF 1>&2
8886
8887*** Warning: the command libtool uses to detect shared libraries,
8888*** $file_magic_cmd, produces output that libtool cannot recognize.
8889*** The result is that libtool may fail to recognize shared libraries
8890*** as such.  This will affect the creation of libtool libraries that
8891*** depend on shared libraries, but programs linked with such libtool
8892*** libraries will work regardless of this problem.  Nevertheless, you
8893*** may want to report the problem to your system manager and/or to
8894*** bug-libtool@gnu.org
8895
8896_LT_EOF
8897	  fi ;;
8898	esac
8899      fi
8900      break
8901    fi
8902  done
8903  IFS=$lt_save_ifs
8904  MAGIC_CMD=$lt_save_MAGIC_CMD
8905  ;;
8906esac
8907fi
8908
8909MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8910if test -n "$MAGIC_CMD"; then
8911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8912printf "%s\n" "$MAGIC_CMD" >&6; }
8913else
8914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915printf "%s\n" "no" >&6; }
8916fi
8917
8918
8919
8920
8921
8922if test -z "$lt_cv_path_MAGIC_CMD"; then
8923  if test -n "$ac_tool_prefix"; then
8924    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8925printf %s "checking for file... " >&6; }
8926if test ${lt_cv_path_MAGIC_CMD+y}
8927then :
8928  printf %s "(cached) " >&6
8929else $as_nop
8930  case $MAGIC_CMD in
8931[\\/*] |  ?:[\\/]*)
8932  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8933  ;;
8934*)
8935  lt_save_MAGIC_CMD=$MAGIC_CMD
8936  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8937  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8938  for ac_dir in $ac_dummy; do
8939    IFS=$lt_save_ifs
8940    test -z "$ac_dir" && ac_dir=.
8941    if test -f "$ac_dir/file"; then
8942      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8943      if test -n "$file_magic_test_file"; then
8944	case $deplibs_check_method in
8945	"file_magic "*)
8946	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8947	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8948	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8949	    $EGREP "$file_magic_regex" > /dev/null; then
8950	    :
8951	  else
8952	    cat <<_LT_EOF 1>&2
8953
8954*** Warning: the command libtool uses to detect shared libraries,
8955*** $file_magic_cmd, produces output that libtool cannot recognize.
8956*** The result is that libtool may fail to recognize shared libraries
8957*** as such.  This will affect the creation of libtool libraries that
8958*** depend on shared libraries, but programs linked with such libtool
8959*** libraries will work regardless of this problem.  Nevertheless, you
8960*** may want to report the problem to your system manager and/or to
8961*** bug-libtool@gnu.org
8962
8963_LT_EOF
8964	  fi ;;
8965	esac
8966      fi
8967      break
8968    fi
8969  done
8970  IFS=$lt_save_ifs
8971  MAGIC_CMD=$lt_save_MAGIC_CMD
8972  ;;
8973esac
8974fi
8975
8976MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8977if test -n "$MAGIC_CMD"; then
8978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8979printf "%s\n" "$MAGIC_CMD" >&6; }
8980else
8981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982printf "%s\n" "no" >&6; }
8983fi
8984
8985
8986  else
8987    MAGIC_CMD=:
8988  fi
8989fi
8990
8991  fi
8992  ;;
8993esac
8994
8995# Use C for the default configuration in the libtool script
8996
8997lt_save_CC=$CC
8998ac_ext=c
8999ac_cpp='$CPP $CPPFLAGS'
9000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002ac_compiler_gnu=$ac_cv_c_compiler_gnu
9003
9004
9005# Source file extension for C test sources.
9006ac_ext=c
9007
9008# Object file extension for compiled C test sources.
9009objext=o
9010objext=$objext
9011
9012# Code to be used in simple compile tests
9013lt_simple_compile_test_code="int some_variable = 0;"
9014
9015# Code to be used in simple link tests
9016lt_simple_link_test_code='int main(){return(0);}'
9017
9018
9019
9020
9021
9022
9023
9024# If no C compiler was specified, use CC.
9025LTCC=${LTCC-"$CC"}
9026
9027# If no C compiler flags were specified, use CFLAGS.
9028LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9029
9030# Allow CC to be a program name with arguments.
9031compiler=$CC
9032
9033# Save the default compiler, since it gets overwritten when the other
9034# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9035compiler_DEFAULT=$CC
9036
9037# save warnings/boilerplate of simple test code
9038ac_outfile=conftest.$ac_objext
9039echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9040eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9041_lt_compiler_boilerplate=`cat conftest.err`
9042$RM conftest*
9043
9044ac_outfile=conftest.$ac_objext
9045echo "$lt_simple_link_test_code" >conftest.$ac_ext
9046eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9047_lt_linker_boilerplate=`cat conftest.err`
9048$RM -r conftest*
9049
9050
9051if test -n "$compiler"; then
9052
9053lt_prog_compiler_no_builtin_flag=
9054
9055if test yes = "$GCC"; then
9056  case $cc_basename in
9057  nvcc*)
9058    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9059  *)
9060    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9061  esac
9062
9063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9064printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9065if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9066then :
9067  printf %s "(cached) " >&6
9068else $as_nop
9069  lt_cv_prog_compiler_rtti_exceptions=no
9070   ac_outfile=conftest.$ac_objext
9071   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9073   # Insert the option either (1) after the last *FLAGS variable, or
9074   # (2) before a word containing "conftest.", or (3) at the end.
9075   # Note that $ac_compile itself does not contain backslashes and begins
9076   # with a dollar sign (not a hyphen), so the echo should work correctly.
9077   # The option is referenced via a variable to avoid confusing sed.
9078   lt_compile=`echo "$ac_compile" | $SED \
9079   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081   -e 's:$: $lt_compiler_flag:'`
9082   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083   (eval "$lt_compile" 2>conftest.err)
9084   ac_status=$?
9085   cat conftest.err >&5
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   if (exit $ac_status) && test -s "$ac_outfile"; then
9088     # The compiler can only warn and ignore the option if not recognized
9089     # So say no if there are warnings other than the usual output.
9090     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9091     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9092     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9093       lt_cv_prog_compiler_rtti_exceptions=yes
9094     fi
9095   fi
9096   $RM conftest*
9097
9098fi
9099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9100printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9101
9102if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9103    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9104else
9105    :
9106fi
9107
9108fi
9109
9110
9111
9112
9113
9114
9115  lt_prog_compiler_wl=
9116lt_prog_compiler_pic=
9117lt_prog_compiler_static=
9118
9119
9120  if test yes = "$GCC"; then
9121    lt_prog_compiler_wl='-Wl,'
9122    lt_prog_compiler_static='-static'
9123
9124    case $host_os in
9125      aix*)
9126      # All AIX code is PIC.
9127      if test ia64 = "$host_cpu"; then
9128	# AIX 5 now supports IA64 processor
9129	lt_prog_compiler_static='-Bstatic'
9130      fi
9131      lt_prog_compiler_pic='-fPIC'
9132      ;;
9133
9134    amigaos*)
9135      case $host_cpu in
9136      powerpc)
9137            # see comment about AmigaOS4 .so support
9138            lt_prog_compiler_pic='-fPIC'
9139        ;;
9140      m68k)
9141            # FIXME: we need at least 68020 code to build shared libraries, but
9142            # adding the '-m68020' flag to GCC prevents building anything better,
9143            # like '-m68040'.
9144            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9145        ;;
9146      esac
9147      ;;
9148
9149    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9150      # PIC is the default for these OSes.
9151      ;;
9152
9153    mingw* | cygwin* | pw32* | os2* | cegcc*)
9154      # This hack is so that the source file can tell whether it is being
9155      # built for inclusion in a dll (and should export symbols for example).
9156      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9157      # (--disable-auto-import) libraries
9158      lt_prog_compiler_pic='-DDLL_EXPORT'
9159      case $host_os in
9160      os2*)
9161	lt_prog_compiler_static='$wl-static'
9162	;;
9163      esac
9164      ;;
9165
9166    darwin* | rhapsody*)
9167      # PIC is the default on this platform
9168      # Common symbols not allowed in MH_DYLIB files
9169      lt_prog_compiler_pic='-fno-common'
9170      ;;
9171
9172    haiku*)
9173      # PIC is the default for Haiku.
9174      # The "-static" flag exists, but is broken.
9175      lt_prog_compiler_static=
9176      ;;
9177
9178    hpux*)
9179      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9180      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9181      # sets the default TLS model and affects inlining.
9182      case $host_cpu in
9183      hppa*64*)
9184	# +Z the default
9185	;;
9186      *)
9187	lt_prog_compiler_pic='-fPIC'
9188	;;
9189      esac
9190      ;;
9191
9192    interix[3-9]*)
9193      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9194      # Instead, we relocate shared libraries at runtime.
9195      ;;
9196
9197    msdosdjgpp*)
9198      # Just because we use GCC doesn't mean we suddenly get shared libraries
9199      # on systems that don't support them.
9200      lt_prog_compiler_can_build_shared=no
9201      enable_shared=no
9202      ;;
9203
9204    *nto* | *qnx*)
9205      # QNX uses GNU C++, but need to define -shared option too, otherwise
9206      # it will coredump.
9207      lt_prog_compiler_pic='-fPIC -shared'
9208      ;;
9209
9210    sysv4*MP*)
9211      if test -d /usr/nec; then
9212	lt_prog_compiler_pic=-Kconform_pic
9213      fi
9214      ;;
9215
9216    *)
9217      lt_prog_compiler_pic='-fPIC'
9218      ;;
9219    esac
9220
9221    case $cc_basename in
9222    nvcc*) # Cuda Compiler Driver 2.2
9223      lt_prog_compiler_wl='-Xlinker '
9224      if test -n "$lt_prog_compiler_pic"; then
9225        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9226      fi
9227      ;;
9228    esac
9229  else
9230    # PORTME Check for flag to pass linker flags through the system compiler.
9231    case $host_os in
9232    aix*)
9233      lt_prog_compiler_wl='-Wl,'
9234      if test ia64 = "$host_cpu"; then
9235	# AIX 5 now supports IA64 processor
9236	lt_prog_compiler_static='-Bstatic'
9237      else
9238	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9239      fi
9240      ;;
9241
9242    darwin* | rhapsody*)
9243      # PIC is the default on this platform
9244      # Common symbols not allowed in MH_DYLIB files
9245      lt_prog_compiler_pic='-fno-common'
9246      case $cc_basename in
9247      nagfor*)
9248        # NAG Fortran compiler
9249        lt_prog_compiler_wl='-Wl,-Wl,,'
9250        lt_prog_compiler_pic='-PIC'
9251        lt_prog_compiler_static='-Bstatic'
9252        ;;
9253      esac
9254      ;;
9255
9256    mingw* | cygwin* | pw32* | os2* | cegcc*)
9257      # This hack is so that the source file can tell whether it is being
9258      # built for inclusion in a dll (and should export symbols for example).
9259      lt_prog_compiler_pic='-DDLL_EXPORT'
9260      case $host_os in
9261      os2*)
9262	lt_prog_compiler_static='$wl-static'
9263	;;
9264      esac
9265      ;;
9266
9267    hpux9* | hpux10* | hpux11*)
9268      lt_prog_compiler_wl='-Wl,'
9269      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9270      # not for PA HP-UX.
9271      case $host_cpu in
9272      hppa*64*|ia64*)
9273	# +Z the default
9274	;;
9275      *)
9276	lt_prog_compiler_pic='+Z'
9277	;;
9278      esac
9279      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9280      lt_prog_compiler_static='$wl-a ${wl}archive'
9281      ;;
9282
9283    irix5* | irix6* | nonstopux*)
9284      lt_prog_compiler_wl='-Wl,'
9285      # PIC (with -KPIC) is the default.
9286      lt_prog_compiler_static='-non_shared'
9287      ;;
9288
9289    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9290      case $cc_basename in
9291      # old Intel for x86_64, which still supported -KPIC.
9292      ecc*)
9293	lt_prog_compiler_wl='-Wl,'
9294	lt_prog_compiler_pic='-KPIC'
9295	lt_prog_compiler_static='-static'
9296        ;;
9297      # icc used to be incompatible with GCC.
9298      # ICC 10 doesn't accept -KPIC any more.
9299      icc* | ifort*)
9300	lt_prog_compiler_wl='-Wl,'
9301	lt_prog_compiler_pic='-fPIC'
9302	lt_prog_compiler_static='-static'
9303        ;;
9304      # Lahey Fortran 8.1.
9305      lf95*)
9306	lt_prog_compiler_wl='-Wl,'
9307	lt_prog_compiler_pic='--shared'
9308	lt_prog_compiler_static='--static'
9309	;;
9310      nagfor*)
9311	# NAG Fortran compiler
9312	lt_prog_compiler_wl='-Wl,-Wl,,'
9313	lt_prog_compiler_pic='-PIC'
9314	lt_prog_compiler_static='-Bstatic'
9315	;;
9316      tcc*)
9317	# Fabrice Bellard et al's Tiny C Compiler
9318	lt_prog_compiler_wl='-Wl,'
9319	lt_prog_compiler_pic='-fPIC'
9320	lt_prog_compiler_static='-static'
9321	;;
9322      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9323        # Portland Group compilers (*not* the Pentium gcc compiler,
9324	# which looks to be a dead project)
9325	lt_prog_compiler_wl='-Wl,'
9326	lt_prog_compiler_pic='-fpic'
9327	lt_prog_compiler_static='-Bstatic'
9328        ;;
9329      ccc*)
9330        lt_prog_compiler_wl='-Wl,'
9331        # All Alpha code is PIC.
9332        lt_prog_compiler_static='-non_shared'
9333        ;;
9334      xl* | bgxl* | bgf* | mpixl*)
9335	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9336	lt_prog_compiler_wl='-Wl,'
9337	lt_prog_compiler_pic='-qpic'
9338	lt_prog_compiler_static='-qstaticlink'
9339	;;
9340      *)
9341	case `$CC -V 2>&1 | $SED 5q` in
9342	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9343	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9344	  lt_prog_compiler_pic='-KPIC'
9345	  lt_prog_compiler_static='-Bstatic'
9346	  lt_prog_compiler_wl=''
9347	  ;;
9348	*Sun\ F* | *Sun*Fortran*)
9349	  lt_prog_compiler_pic='-KPIC'
9350	  lt_prog_compiler_static='-Bstatic'
9351	  lt_prog_compiler_wl='-Qoption ld '
9352	  ;;
9353	*Sun\ C*)
9354	  # Sun C 5.9
9355	  lt_prog_compiler_pic='-KPIC'
9356	  lt_prog_compiler_static='-Bstatic'
9357	  lt_prog_compiler_wl='-Wl,'
9358	  ;;
9359        *Intel*\ [CF]*Compiler*)
9360	  lt_prog_compiler_wl='-Wl,'
9361	  lt_prog_compiler_pic='-fPIC'
9362	  lt_prog_compiler_static='-static'
9363	  ;;
9364	*Portland\ Group*)
9365	  lt_prog_compiler_wl='-Wl,'
9366	  lt_prog_compiler_pic='-fpic'
9367	  lt_prog_compiler_static='-Bstatic'
9368	  ;;
9369	esac
9370	;;
9371      esac
9372      ;;
9373
9374    newsos6)
9375      lt_prog_compiler_pic='-KPIC'
9376      lt_prog_compiler_static='-Bstatic'
9377      ;;
9378
9379    *nto* | *qnx*)
9380      # QNX uses GNU C++, but need to define -shared option too, otherwise
9381      # it will coredump.
9382      lt_prog_compiler_pic='-fPIC -shared'
9383      ;;
9384
9385    osf3* | osf4* | osf5*)
9386      lt_prog_compiler_wl='-Wl,'
9387      # All OSF/1 code is PIC.
9388      lt_prog_compiler_static='-non_shared'
9389      ;;
9390
9391    rdos*)
9392      lt_prog_compiler_static='-non_shared'
9393      ;;
9394
9395    solaris*)
9396      lt_prog_compiler_pic='-KPIC'
9397      lt_prog_compiler_static='-Bstatic'
9398      case $cc_basename in
9399      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9400	lt_prog_compiler_wl='-Qoption ld ';;
9401      *)
9402	lt_prog_compiler_wl='-Wl,';;
9403      esac
9404      ;;
9405
9406    sunos4*)
9407      lt_prog_compiler_wl='-Qoption ld '
9408      lt_prog_compiler_pic='-PIC'
9409      lt_prog_compiler_static='-Bstatic'
9410      ;;
9411
9412    sysv4 | sysv4.2uw2* | sysv4.3*)
9413      lt_prog_compiler_wl='-Wl,'
9414      lt_prog_compiler_pic='-KPIC'
9415      lt_prog_compiler_static='-Bstatic'
9416      ;;
9417
9418    sysv4*MP*)
9419      if test -d /usr/nec; then
9420	lt_prog_compiler_pic='-Kconform_pic'
9421	lt_prog_compiler_static='-Bstatic'
9422      fi
9423      ;;
9424
9425    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9426      lt_prog_compiler_wl='-Wl,'
9427      lt_prog_compiler_pic='-KPIC'
9428      lt_prog_compiler_static='-Bstatic'
9429      ;;
9430
9431    unicos*)
9432      lt_prog_compiler_wl='-Wl,'
9433      lt_prog_compiler_can_build_shared=no
9434      ;;
9435
9436    uts4*)
9437      lt_prog_compiler_pic='-pic'
9438      lt_prog_compiler_static='-Bstatic'
9439      ;;
9440
9441    *)
9442      lt_prog_compiler_can_build_shared=no
9443      ;;
9444    esac
9445  fi
9446
9447case $host_os in
9448  # For platforms that do not support PIC, -DPIC is meaningless:
9449  *djgpp*)
9450    lt_prog_compiler_pic=
9451    ;;
9452  *)
9453    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9454    ;;
9455esac
9456
9457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9458printf %s "checking for $compiler option to produce PIC... " >&6; }
9459if test ${lt_cv_prog_compiler_pic+y}
9460then :
9461  printf %s "(cached) " >&6
9462else $as_nop
9463  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9464fi
9465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9466printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9467lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9468
9469#
9470# Check to make sure the PIC flag actually works.
9471#
9472if test -n "$lt_prog_compiler_pic"; then
9473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9474printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9475if test ${lt_cv_prog_compiler_pic_works+y}
9476then :
9477  printf %s "(cached) " >&6
9478else $as_nop
9479  lt_cv_prog_compiler_pic_works=no
9480   ac_outfile=conftest.$ac_objext
9481   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9482   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9483   # Insert the option either (1) after the last *FLAGS variable, or
9484   # (2) before a word containing "conftest.", or (3) at the end.
9485   # Note that $ac_compile itself does not contain backslashes and begins
9486   # with a dollar sign (not a hyphen), so the echo should work correctly.
9487   # The option is referenced via a variable to avoid confusing sed.
9488   lt_compile=`echo "$ac_compile" | $SED \
9489   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9490   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9491   -e 's:$: $lt_compiler_flag:'`
9492   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9493   (eval "$lt_compile" 2>conftest.err)
9494   ac_status=$?
9495   cat conftest.err >&5
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   if (exit $ac_status) && test -s "$ac_outfile"; then
9498     # The compiler can only warn and ignore the option if not recognized
9499     # So say no if there are warnings other than the usual output.
9500     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9501     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9502     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9503       lt_cv_prog_compiler_pic_works=yes
9504     fi
9505   fi
9506   $RM conftest*
9507
9508fi
9509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9510printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9511
9512if test yes = "$lt_cv_prog_compiler_pic_works"; then
9513    case $lt_prog_compiler_pic in
9514     "" | " "*) ;;
9515     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9516     esac
9517else
9518    lt_prog_compiler_pic=
9519     lt_prog_compiler_can_build_shared=no
9520fi
9521
9522fi
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534#
9535# Check to make sure the static flag actually works.
9536#
9537wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9539printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9540if test ${lt_cv_prog_compiler_static_works+y}
9541then :
9542  printf %s "(cached) " >&6
9543else $as_nop
9544  lt_cv_prog_compiler_static_works=no
9545   save_LDFLAGS=$LDFLAGS
9546   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9547   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9548   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9549     # The linker can only warn and ignore the option if not recognized
9550     # So say no if there are warnings
9551     if test -s conftest.err; then
9552       # Append any errors to the config.log.
9553       cat conftest.err 1>&5
9554       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9555       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9556       if diff conftest.exp conftest.er2 >/dev/null; then
9557         lt_cv_prog_compiler_static_works=yes
9558       fi
9559     else
9560       lt_cv_prog_compiler_static_works=yes
9561     fi
9562   fi
9563   $RM -r conftest*
9564   LDFLAGS=$save_LDFLAGS
9565
9566fi
9567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9568printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9569
9570if test yes = "$lt_cv_prog_compiler_static_works"; then
9571    :
9572else
9573    lt_prog_compiler_static=
9574fi
9575
9576
9577
9578
9579
9580
9581
9582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9583printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9584if test ${lt_cv_prog_compiler_c_o+y}
9585then :
9586  printf %s "(cached) " >&6
9587else $as_nop
9588  lt_cv_prog_compiler_c_o=no
9589   $RM -r conftest 2>/dev/null
9590   mkdir conftest
9591   cd conftest
9592   mkdir out
9593   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9594
9595   lt_compiler_flag="-o out/conftest2.$ac_objext"
9596   # Insert the option either (1) after the last *FLAGS variable, or
9597   # (2) before a word containing "conftest.", or (3) at the end.
9598   # Note that $ac_compile itself does not contain backslashes and begins
9599   # with a dollar sign (not a hyphen), so the echo should work correctly.
9600   lt_compile=`echo "$ac_compile" | $SED \
9601   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603   -e 's:$: $lt_compiler_flag:'`
9604   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9605   (eval "$lt_compile" 2>out/conftest.err)
9606   ac_status=$?
9607   cat out/conftest.err >&5
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9610   then
9611     # The compiler can only warn and ignore the option if not recognized
9612     # So say no if there are warnings
9613     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9614     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9615     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9616       lt_cv_prog_compiler_c_o=yes
9617     fi
9618   fi
9619   chmod u+w . 2>&5
9620   $RM conftest*
9621   # SGI C++ compiler will create directory out/ii_files/ for
9622   # template instantiation
9623   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9624   $RM out/* && rmdir out
9625   cd ..
9626   $RM -r conftest
9627   $RM conftest*
9628
9629fi
9630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9631printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9632
9633
9634
9635
9636
9637
9638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9639printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9640if test ${lt_cv_prog_compiler_c_o+y}
9641then :
9642  printf %s "(cached) " >&6
9643else $as_nop
9644  lt_cv_prog_compiler_c_o=no
9645   $RM -r conftest 2>/dev/null
9646   mkdir conftest
9647   cd conftest
9648   mkdir out
9649   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9650
9651   lt_compiler_flag="-o out/conftest2.$ac_objext"
9652   # Insert the option either (1) after the last *FLAGS variable, or
9653   # (2) before a word containing "conftest.", or (3) at the end.
9654   # Note that $ac_compile itself does not contain backslashes and begins
9655   # with a dollar sign (not a hyphen), so the echo should work correctly.
9656   lt_compile=`echo "$ac_compile" | $SED \
9657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9659   -e 's:$: $lt_compiler_flag:'`
9660   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9661   (eval "$lt_compile" 2>out/conftest.err)
9662   ac_status=$?
9663   cat out/conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9666   then
9667     # The compiler can only warn and ignore the option if not recognized
9668     # So say no if there are warnings
9669     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9670     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9671     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9672       lt_cv_prog_compiler_c_o=yes
9673     fi
9674   fi
9675   chmod u+w . 2>&5
9676   $RM conftest*
9677   # SGI C++ compiler will create directory out/ii_files/ for
9678   # template instantiation
9679   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9680   $RM out/* && rmdir out
9681   cd ..
9682   $RM -r conftest
9683   $RM conftest*
9684
9685fi
9686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9687printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9688
9689
9690
9691
9692hard_links=nottested
9693if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9694  # do not overwrite the value of need_locks provided by the user
9695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9696printf %s "checking if we can lock with hard links... " >&6; }
9697  hard_links=yes
9698  $RM conftest*
9699  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9700  touch conftest.a
9701  ln conftest.a conftest.b 2>&5 || hard_links=no
9702  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9704printf "%s\n" "$hard_links" >&6; }
9705  if test no = "$hard_links"; then
9706    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9707printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9708    need_locks=warn
9709  fi
9710else
9711  need_locks=no
9712fi
9713
9714
9715
9716
9717
9718
9719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9720printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9721
9722  runpath_var=
9723  allow_undefined_flag=
9724  always_export_symbols=no
9725  archive_cmds=
9726  archive_expsym_cmds=
9727  compiler_needs_object=no
9728  enable_shared_with_static_runtimes=no
9729  export_dynamic_flag_spec=
9730  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9731  hardcode_automatic=no
9732  hardcode_direct=no
9733  hardcode_direct_absolute=no
9734  hardcode_libdir_flag_spec=
9735  hardcode_libdir_separator=
9736  hardcode_minus_L=no
9737  hardcode_shlibpath_var=unsupported
9738  inherit_rpath=no
9739  link_all_deplibs=unknown
9740  module_cmds=
9741  module_expsym_cmds=
9742  old_archive_from_new_cmds=
9743  old_archive_from_expsyms_cmds=
9744  thread_safe_flag_spec=
9745  whole_archive_flag_spec=
9746  # include_expsyms should be a list of space-separated symbols to be *always*
9747  # included in the symbol list
9748  include_expsyms=
9749  # exclude_expsyms can be an extended regexp of symbols to exclude
9750  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9751  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9752  # as well as any symbol that contains 'd'.
9753  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9754  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9755  # platforms (ab)use it in PIC code, but their linkers get confused if
9756  # the symbol is explicitly referenced.  Since portable code cannot
9757  # rely on this symbol name, it's probably fine to never include it in
9758  # preloaded symbol tables.
9759  # Exclude shared library initialization/finalization symbols.
9760  extract_expsyms_cmds=
9761
9762  case $host_os in
9763  cygwin* | mingw* | pw32* | cegcc*)
9764    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9765    # When not using gcc, we currently assume that we are using
9766    # Microsoft Visual C++ or Intel C++ Compiler.
9767    if test yes != "$GCC"; then
9768      with_gnu_ld=no
9769    fi
9770    ;;
9771  interix*)
9772    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9773    with_gnu_ld=yes
9774    ;;
9775  openbsd* | bitrig*)
9776    with_gnu_ld=no
9777    ;;
9778  esac
9779
9780  ld_shlibs=yes
9781
9782  # On some targets, GNU ld is compatible enough with the native linker
9783  # that we're better off using the native interface for both.
9784  lt_use_gnu_ld_interface=no
9785  if test yes = "$with_gnu_ld"; then
9786    case $host_os in
9787      aix*)
9788	# The AIX port of GNU ld has always aspired to compatibility
9789	# with the native linker.  However, as the warning in the GNU ld
9790	# block says, versions before 2.19.5* couldn't really create working
9791	# shared libraries, regardless of the interface used.
9792	case `$LD -v 2>&1` in
9793	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9794	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9795	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9796	  *)
9797	    lt_use_gnu_ld_interface=yes
9798	    ;;
9799	esac
9800	;;
9801      *)
9802	lt_use_gnu_ld_interface=yes
9803	;;
9804    esac
9805  fi
9806
9807  if test yes = "$lt_use_gnu_ld_interface"; then
9808    # If archive_cmds runs LD, not CC, wlarc should be empty
9809    wlarc='$wl'
9810
9811    # Set some defaults for GNU ld with shared library support. These
9812    # are reset later if shared libraries are not supported. Putting them
9813    # here allows them to be overridden if necessary.
9814    runpath_var=LD_RUN_PATH
9815    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9816    export_dynamic_flag_spec='$wl--export-dynamic'
9817    # ancient GNU ld didn't support --whole-archive et. al.
9818    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9819      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9820    else
9821      whole_archive_flag_spec=
9822    fi
9823    supports_anon_versioning=no
9824    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9825      *GNU\ gold*) supports_anon_versioning=yes ;;
9826      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9827      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9828      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9829      *\ 2.11.*) ;; # other 2.11 versions
9830      *) supports_anon_versioning=yes ;;
9831    esac
9832
9833    # See if GNU ld supports shared libraries.
9834    case $host_os in
9835    aix[3-9]*)
9836      # On AIX/PPC, the GNU linker is very broken
9837      if test ia64 != "$host_cpu"; then
9838	ld_shlibs=no
9839	cat <<_LT_EOF 1>&2
9840
9841*** Warning: the GNU linker, at least up to release 2.19, is reported
9842*** to be unable to reliably create shared libraries on AIX.
9843*** Therefore, libtool is disabling shared libraries support.  If you
9844*** really care for shared libraries, you may want to install binutils
9845*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9846*** You will then need to restart the configuration process.
9847
9848_LT_EOF
9849      fi
9850      ;;
9851
9852    amigaos*)
9853      case $host_cpu in
9854      powerpc)
9855            # see comment about AmigaOS4 .so support
9856            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9857            archive_expsym_cmds=''
9858        ;;
9859      m68k)
9860            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)'
9861            hardcode_libdir_flag_spec='-L$libdir'
9862            hardcode_minus_L=yes
9863        ;;
9864      esac
9865      ;;
9866
9867    beos*)
9868      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9869	allow_undefined_flag=unsupported
9870	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9871	# support --undefined.  This deserves some investigation.  FIXME
9872	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9873      else
9874	ld_shlibs=no
9875      fi
9876      ;;
9877
9878    cygwin* | mingw* | pw32* | cegcc*)
9879      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9880      # as there is no search path for DLLs.
9881      hardcode_libdir_flag_spec='-L$libdir'
9882      export_dynamic_flag_spec='$wl--export-all-symbols'
9883      allow_undefined_flag=unsupported
9884      always_export_symbols=no
9885      enable_shared_with_static_runtimes=yes
9886      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'
9887      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9888
9889      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9890        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9891	# If the export-symbols file already is a .def file, use it as
9892	# is; otherwise, prepend EXPORTS...
9893	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9894          cp $export_symbols $output_objdir/$soname.def;
9895        else
9896          echo EXPORTS > $output_objdir/$soname.def;
9897          cat $export_symbols >> $output_objdir/$soname.def;
9898        fi~
9899        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9900      else
9901	ld_shlibs=no
9902      fi
9903      ;;
9904
9905    haiku*)
9906      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9907      link_all_deplibs=yes
9908      ;;
9909
9910    os2*)
9911      hardcode_libdir_flag_spec='-L$libdir'
9912      hardcode_minus_L=yes
9913      allow_undefined_flag=unsupported
9914      shrext_cmds=.dll
9915      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9916	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9917	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9918	$ECHO EXPORTS >> $output_objdir/$libname.def~
9919	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9920	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9921	emximp -o $lib $output_objdir/$libname.def'
9922      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9923	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9924	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9925	$ECHO EXPORTS >> $output_objdir/$libname.def~
9926	prefix_cmds="$SED"~
9927	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9928	  prefix_cmds="$prefix_cmds -e 1d";
9929	fi~
9930	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9931	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9932	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9933	emximp -o $lib $output_objdir/$libname.def'
9934      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9935      enable_shared_with_static_runtimes=yes
9936      file_list_spec='@'
9937      ;;
9938
9939    interix[3-9]*)
9940      hardcode_direct=no
9941      hardcode_shlibpath_var=no
9942      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9943      export_dynamic_flag_spec='$wl-E'
9944      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9945      # Instead, shared libraries are loaded at an image base (0x10000000 by
9946      # default) and relocated if they conflict, which is a slow very memory
9947      # consuming and fragmenting process.  To avoid this, we pick a random,
9948      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9949      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9950      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9951      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'
9952      ;;
9953
9954    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9955      tmp_diet=no
9956      if test linux-dietlibc = "$host_os"; then
9957	case $cc_basename in
9958	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9959	esac
9960      fi
9961      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9962	 && test no = "$tmp_diet"
9963      then
9964	tmp_addflag=' $pic_flag'
9965	tmp_sharedflag='-shared'
9966	case $cc_basename,$host_cpu in
9967        pgcc*)				# Portland Group C compiler
9968	  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'
9969	  tmp_addflag=' $pic_flag'
9970	  ;;
9971	pgf77* | pgf90* | pgf95* | pgfortran*)
9972					# Portland Group f77 and f90 compilers
9973	  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'
9974	  tmp_addflag=' $pic_flag -Mnomain' ;;
9975	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9976	  tmp_addflag=' -i_dynamic' ;;
9977	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9978	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9979	ifc* | ifort*)			# Intel Fortran compiler
9980	  tmp_addflag=' -nofor_main' ;;
9981	lf95*)				# Lahey Fortran 8.1
9982	  whole_archive_flag_spec=
9983	  tmp_sharedflag='--shared' ;;
9984        nagfor*)                        # NAGFOR 5.3
9985          tmp_sharedflag='-Wl,-shared' ;;
9986	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9987	  tmp_sharedflag='-qmkshrobj'
9988	  tmp_addflag= ;;
9989	nvcc*)	# Cuda Compiler Driver 2.2
9990	  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'
9991	  compiler_needs_object=yes
9992	  ;;
9993	esac
9994	case `$CC -V 2>&1 | $SED 5q` in
9995	*Sun\ C*)			# Sun C 5.9
9996	  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'
9997	  compiler_needs_object=yes
9998	  tmp_sharedflag='-G' ;;
9999	*Sun\ F*)			# Sun Fortran 8.3
10000	  tmp_sharedflag='-G' ;;
10001	esac
10002	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10003
10004        if test yes = "$supports_anon_versioning"; then
10005          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10006            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10007            echo "local: *; };" >> $output_objdir/$libname.ver~
10008            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10009        fi
10010
10011	case $cc_basename in
10012	tcc*)
10013	  export_dynamic_flag_spec='-rdynamic'
10014	  ;;
10015	xlf* | bgf* | bgxlf* | mpixlf*)
10016	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10017	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10018	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10019	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10020	  if test yes = "$supports_anon_versioning"; then
10021	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10022              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10023              echo "local: *; };" >> $output_objdir/$libname.ver~
10024              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10025	  fi
10026	  ;;
10027	esac
10028      else
10029        ld_shlibs=no
10030      fi
10031      ;;
10032
10033    netbsd*)
10034      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10035	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10036	wlarc=
10037      else
10038	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10039	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10040      fi
10041      ;;
10042
10043    solaris*)
10044      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10045	ld_shlibs=no
10046	cat <<_LT_EOF 1>&2
10047
10048*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10049*** create shared libraries on Solaris systems.  Therefore, libtool
10050*** is disabling shared libraries support.  We urge you to upgrade GNU
10051*** binutils to release 2.9.1 or newer.  Another option is to modify
10052*** your PATH or compiler configuration so that the native linker is
10053*** used, and then restart.
10054
10055_LT_EOF
10056      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10058	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10059      else
10060	ld_shlibs=no
10061      fi
10062      ;;
10063
10064    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10065      case `$LD -v 2>&1` in
10066        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10067	ld_shlibs=no
10068	cat <<_LT_EOF 1>&2
10069
10070*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10071*** reliably create shared libraries on SCO systems.  Therefore, libtool
10072*** is disabling shared libraries support.  We urge you to upgrade GNU
10073*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10074*** your PATH or compiler configuration so that the native linker is
10075*** used, and then restart.
10076
10077_LT_EOF
10078	;;
10079	*)
10080	  # For security reasons, it is highly recommended that you always
10081	  # use absolute paths for naming shared libraries, and exclude the
10082	  # DT_RUNPATH tag from executables and libraries.  But doing so
10083	  # requires that you compile everything twice, which is a pain.
10084	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10085	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10086	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10087	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10088	  else
10089	    ld_shlibs=no
10090	  fi
10091	;;
10092      esac
10093      ;;
10094
10095    sunos4*)
10096      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10097      wlarc=
10098      hardcode_direct=yes
10099      hardcode_shlibpath_var=no
10100      ;;
10101
10102    *)
10103      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10104	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10105	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10106      else
10107	ld_shlibs=no
10108      fi
10109      ;;
10110    esac
10111
10112    if test no = "$ld_shlibs"; then
10113      runpath_var=
10114      hardcode_libdir_flag_spec=
10115      export_dynamic_flag_spec=
10116      whole_archive_flag_spec=
10117    fi
10118  else
10119    # PORTME fill in a description of your system's linker (not GNU ld)
10120    case $host_os in
10121    aix3*)
10122      allow_undefined_flag=unsupported
10123      always_export_symbols=yes
10124      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'
10125      # Note: this linker hardcodes the directories in LIBPATH if there
10126      # are no directories specified by -L.
10127      hardcode_minus_L=yes
10128      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10129	# Neither direct hardcoding nor static linking is supported with a
10130	# broken collect2.
10131	hardcode_direct=unsupported
10132      fi
10133      ;;
10134
10135    aix[4-9]*)
10136      if test ia64 = "$host_cpu"; then
10137	# On IA64, the linker does run time linking by default, so we don't
10138	# have to do anything special.
10139	aix_use_runtimelinking=no
10140	exp_sym_flag='-Bexport'
10141	no_entry_flag=
10142      else
10143	# If we're using GNU nm, then we don't want the "-C" option.
10144	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10145	# Without the "-l" option, or with the "-B" option, AIX nm treats
10146	# weak defined symbols like other global defined symbols, whereas
10147	# GNU nm marks them as "W".
10148	# While the 'weak' keyword is ignored in the Export File, we need
10149	# it in the Import File for the 'aix-soname' feature, so we have
10150	# to replace the "-B" option with "-P" for AIX nm.
10151	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10152	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10153	else
10154	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10155	fi
10156	aix_use_runtimelinking=no
10157
10158	# Test if we are trying to use run time linking or normal
10159	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10160	# have runtime linking enabled, and use it for executables.
10161	# For shared libraries, we enable/disable runtime linking
10162	# depending on the kind of the shared library created -
10163	# when "with_aix_soname,aix_use_runtimelinking" is:
10164	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10165	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10166	#            lib.a           static archive
10167	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10168	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10169	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10170	#            lib.a(lib.so.V) shared, rtl:no
10171	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10172	#            lib.a           static archive
10173	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10174	  for ld_flag in $LDFLAGS; do
10175	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10176	    aix_use_runtimelinking=yes
10177	    break
10178	  fi
10179	  done
10180	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10181	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10182	    # so we don't have lib.a shared libs to link our executables.
10183	    # We have to force runtime linking in this case.
10184	    aix_use_runtimelinking=yes
10185	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10186	  fi
10187	  ;;
10188	esac
10189
10190	exp_sym_flag='-bexport'
10191	no_entry_flag='-bnoentry'
10192      fi
10193
10194      # When large executables or shared objects are built, AIX ld can
10195      # have problems creating the table of contents.  If linking a library
10196      # or program results in "error TOC overflow" add -mminimal-toc to
10197      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10198      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10199
10200      archive_cmds=''
10201      hardcode_direct=yes
10202      hardcode_direct_absolute=yes
10203      hardcode_libdir_separator=':'
10204      link_all_deplibs=yes
10205      file_list_spec='$wl-f,'
10206      case $with_aix_soname,$aix_use_runtimelinking in
10207      aix,*) ;; # traditional, no import file
10208      svr4,* | *,yes) # use import file
10209	# The Import File defines what to hardcode.
10210	hardcode_direct=no
10211	hardcode_direct_absolute=no
10212	;;
10213      esac
10214
10215      if test yes = "$GCC"; then
10216	case $host_os in aix4.[012]|aix4.[012].*)
10217	# We only want to do this on AIX 4.2 and lower, the check
10218	# below for broken collect2 doesn't work under 4.3+
10219	  collect2name=`$CC -print-prog-name=collect2`
10220	  if test -f "$collect2name" &&
10221	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10222	  then
10223	  # We have reworked collect2
10224	  :
10225	  else
10226	  # We have old collect2
10227	  hardcode_direct=unsupported
10228	  # It fails to find uninstalled libraries when the uninstalled
10229	  # path is not listed in the libpath.  Setting hardcode_minus_L
10230	  # to unsupported forces relinking
10231	  hardcode_minus_L=yes
10232	  hardcode_libdir_flag_spec='-L$libdir'
10233	  hardcode_libdir_separator=
10234	  fi
10235	  ;;
10236	esac
10237	shared_flag='-shared'
10238	if test yes = "$aix_use_runtimelinking"; then
10239	  shared_flag="$shared_flag "'$wl-G'
10240	fi
10241	# Need to ensure runtime linking is disabled for the traditional
10242	# shared library, or the linker may eventually find shared libraries
10243	# /with/ Import File - we do not want to mix them.
10244	shared_flag_aix='-shared'
10245	shared_flag_svr4='-shared $wl-G'
10246      else
10247	# not using gcc
10248	if test ia64 = "$host_cpu"; then
10249	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10250	# chokes on -Wl,-G. The following line is correct:
10251	  shared_flag='-G'
10252	else
10253	  if test yes = "$aix_use_runtimelinking"; then
10254	    shared_flag='$wl-G'
10255	  else
10256	    shared_flag='$wl-bM:SRE'
10257	  fi
10258	  shared_flag_aix='$wl-bM:SRE'
10259	  shared_flag_svr4='$wl-G'
10260	fi
10261      fi
10262
10263      export_dynamic_flag_spec='$wl-bexpall'
10264      # It seems that -bexpall does not export symbols beginning with
10265      # underscore (_), so it is better to generate a list of symbols to export.
10266      always_export_symbols=yes
10267      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10268	# Warning - without using the other runtime loading flags (-brtl),
10269	# -berok will link without error, but may produce a broken library.
10270	allow_undefined_flag='-berok'
10271        # Determine the default libpath from the value encoded in an
10272        # empty executable.
10273        if test set = "${lt_cv_aix_libpath+set}"; then
10274  aix_libpath=$lt_cv_aix_libpath
10275else
10276  if test ${lt_cv_aix_libpath_+y}
10277then :
10278  printf %s "(cached) " >&6
10279else $as_nop
10280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282
10283int
10284main (void)
10285{
10286
10287  ;
10288  return 0;
10289}
10290_ACEOF
10291if ac_fn_c_try_link "$LINENO"
10292then :
10293
10294  lt_aix_libpath_sed='
10295      /Import File Strings/,/^$/ {
10296	  /^0/ {
10297	      s/^0  *\([^ ]*\) *$/\1/
10298	      p
10299	  }
10300      }'
10301  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10302  # Check for a 64-bit object if we didn't find anything.
10303  if test -z "$lt_cv_aix_libpath_"; then
10304    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10305  fi
10306fi
10307rm -f core conftest.err conftest.$ac_objext conftest.beam \
10308    conftest$ac_exeext conftest.$ac_ext
10309  if test -z "$lt_cv_aix_libpath_"; then
10310    lt_cv_aix_libpath_=/usr/lib:/lib
10311  fi
10312
10313fi
10314
10315  aix_libpath=$lt_cv_aix_libpath_
10316fi
10317
10318        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10319        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10320      else
10321	if test ia64 = "$host_cpu"; then
10322	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10323	  allow_undefined_flag="-z nodefs"
10324	  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"
10325	else
10326	 # Determine the default libpath from the value encoded in an
10327	 # empty executable.
10328	 if test set = "${lt_cv_aix_libpath+set}"; then
10329  aix_libpath=$lt_cv_aix_libpath
10330else
10331  if test ${lt_cv_aix_libpath_+y}
10332then :
10333  printf %s "(cached) " >&6
10334else $as_nop
10335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336/* end confdefs.h.  */
10337
10338int
10339main (void)
10340{
10341
10342  ;
10343  return 0;
10344}
10345_ACEOF
10346if ac_fn_c_try_link "$LINENO"
10347then :
10348
10349  lt_aix_libpath_sed='
10350      /Import File Strings/,/^$/ {
10351	  /^0/ {
10352	      s/^0  *\([^ ]*\) *$/\1/
10353	      p
10354	  }
10355      }'
10356  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10357  # Check for a 64-bit object if we didn't find anything.
10358  if test -z "$lt_cv_aix_libpath_"; then
10359    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10360  fi
10361fi
10362rm -f core conftest.err conftest.$ac_objext conftest.beam \
10363    conftest$ac_exeext conftest.$ac_ext
10364  if test -z "$lt_cv_aix_libpath_"; then
10365    lt_cv_aix_libpath_=/usr/lib:/lib
10366  fi
10367
10368fi
10369
10370  aix_libpath=$lt_cv_aix_libpath_
10371fi
10372
10373	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10374	  # Warning - without using the other run time loading flags,
10375	  # -berok will link without error, but may produce a broken library.
10376	  no_undefined_flag=' $wl-bernotok'
10377	  allow_undefined_flag=' $wl-berok'
10378	  if test yes = "$with_gnu_ld"; then
10379	    # We only use this code for GNU lds that support --whole-archive.
10380	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10381	  else
10382	    # Exported symbols can be pulled into shared objects from archives
10383	    whole_archive_flag_spec='$convenience'
10384	  fi
10385	  archive_cmds_need_lc=yes
10386	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10387	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10388	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10389	  if test svr4 != "$with_aix_soname"; then
10390	    # This is similar to how AIX traditionally builds its shared libraries.
10391	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10392	  fi
10393	  if test aix != "$with_aix_soname"; then
10394	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10395	  else
10396	    # used by -dlpreopen to get the symbols
10397	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10398	  fi
10399	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10400	fi
10401      fi
10402      ;;
10403
10404    amigaos*)
10405      case $host_cpu in
10406      powerpc)
10407            # see comment about AmigaOS4 .so support
10408            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10409            archive_expsym_cmds=''
10410        ;;
10411      m68k)
10412            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)'
10413            hardcode_libdir_flag_spec='-L$libdir'
10414            hardcode_minus_L=yes
10415        ;;
10416      esac
10417      ;;
10418
10419    bsdi[45]*)
10420      export_dynamic_flag_spec=-rdynamic
10421      ;;
10422
10423    cygwin* | mingw* | pw32* | cegcc*)
10424      # When not using gcc, we currently assume that we are using
10425      # Microsoft Visual C++ or Intel C++ Compiler.
10426      # hardcode_libdir_flag_spec is actually meaningless, as there is
10427      # no search path for DLLs.
10428      case $cc_basename in
10429      cl* | icl*)
10430	# Native MSVC or ICC
10431	hardcode_libdir_flag_spec=' '
10432	allow_undefined_flag=unsupported
10433	always_export_symbols=yes
10434	file_list_spec='@'
10435	# Tell ltmain to make .lib files, not .a files.
10436	libext=lib
10437	# Tell ltmain to make .dll files, not .so files.
10438	shrext_cmds=.dll
10439	# FIXME: Setting linknames here is a bad hack.
10440	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10441	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10442            cp "$export_symbols" "$output_objdir/$soname.def";
10443            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10444          else
10445            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10446          fi~
10447          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10448          linknames='
10449	# The linker will not automatically build a static lib if we build a DLL.
10450	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10451	enable_shared_with_static_runtimes=yes
10452	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10453	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10454	# Don't use ranlib
10455	old_postinstall_cmds='chmod 644 $oldlib'
10456	postlink_cmds='lt_outputfile="@OUTPUT@"~
10457          lt_tool_outputfile="@TOOL_OUTPUT@"~
10458          case $lt_outputfile in
10459            *.exe|*.EXE) ;;
10460            *)
10461              lt_outputfile=$lt_outputfile.exe
10462              lt_tool_outputfile=$lt_tool_outputfile.exe
10463              ;;
10464          esac~
10465          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10466            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10467            $RM "$lt_outputfile.manifest";
10468          fi'
10469	;;
10470      *)
10471	# Assume MSVC and ICC wrapper
10472	hardcode_libdir_flag_spec=' '
10473	allow_undefined_flag=unsupported
10474	# Tell ltmain to make .lib files, not .a files.
10475	libext=lib
10476	# Tell ltmain to make .dll files, not .so files.
10477	shrext_cmds=.dll
10478	# FIXME: Setting linknames here is a bad hack.
10479	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10480	# The linker will automatically build a .lib file if we build a DLL.
10481	old_archive_from_new_cmds='true'
10482	# FIXME: Should let the user specify the lib program.
10483	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10484	enable_shared_with_static_runtimes=yes
10485	;;
10486      esac
10487      ;;
10488
10489    darwin* | rhapsody*)
10490
10491
10492  archive_cmds_need_lc=no
10493  hardcode_direct=no
10494  hardcode_automatic=yes
10495  hardcode_shlibpath_var=unsupported
10496  if test yes = "$lt_cv_ld_force_load"; then
10497    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\"`'
10498
10499  else
10500    whole_archive_flag_spec=''
10501  fi
10502  link_all_deplibs=yes
10503  allow_undefined_flag=$_lt_dar_allow_undefined
10504  case $cc_basename in
10505     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10506     *) _lt_dar_can_shared=$GCC ;;
10507  esac
10508  if test yes = "$_lt_dar_can_shared"; then
10509    output_verbose_link_cmd=func_echo_all
10510    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10511    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10512    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"
10513    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"
10514
10515  else
10516  ld_shlibs=no
10517  fi
10518
10519      ;;
10520
10521    dgux*)
10522      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10523      hardcode_libdir_flag_spec='-L$libdir'
10524      hardcode_shlibpath_var=no
10525      ;;
10526
10527    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10528    # support.  Future versions do this automatically, but an explicit c++rt0.o
10529    # does not break anything, and helps significantly (at the cost of a little
10530    # extra space).
10531    freebsd2.2*)
10532      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10533      hardcode_libdir_flag_spec='-R$libdir'
10534      hardcode_direct=yes
10535      hardcode_shlibpath_var=no
10536      ;;
10537
10538    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10539    freebsd2.*)
10540      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10541      hardcode_direct=yes
10542      hardcode_minus_L=yes
10543      hardcode_shlibpath_var=no
10544      ;;
10545
10546    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10547    freebsd* | dragonfly* | midnightbsd*)
10548      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10549      hardcode_libdir_flag_spec='-R$libdir'
10550      hardcode_direct=yes
10551      hardcode_shlibpath_var=no
10552      ;;
10553
10554    hpux9*)
10555      if test yes = "$GCC"; then
10556	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10557      else
10558	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10559      fi
10560      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10561      hardcode_libdir_separator=:
10562      hardcode_direct=yes
10563
10564      # hardcode_minus_L: Not really in the search PATH,
10565      # but as the default location of the library.
10566      hardcode_minus_L=yes
10567      export_dynamic_flag_spec='$wl-E'
10568      ;;
10569
10570    hpux10*)
10571      if test yes,no = "$GCC,$with_gnu_ld"; then
10572	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10573      else
10574	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10575      fi
10576      if test no = "$with_gnu_ld"; then
10577	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10578	hardcode_libdir_separator=:
10579	hardcode_direct=yes
10580	hardcode_direct_absolute=yes
10581	export_dynamic_flag_spec='$wl-E'
10582	# hardcode_minus_L: Not really in the search PATH,
10583	# but as the default location of the library.
10584	hardcode_minus_L=yes
10585      fi
10586      ;;
10587
10588    hpux11*)
10589      if test yes,no = "$GCC,$with_gnu_ld"; then
10590	case $host_cpu in
10591	hppa*64*)
10592	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10593	  ;;
10594	ia64*)
10595	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10596	  ;;
10597	*)
10598	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10599	  ;;
10600	esac
10601      else
10602	case $host_cpu in
10603	hppa*64*)
10604	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10605	  ;;
10606	ia64*)
10607	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10608	  ;;
10609	*)
10610
10611	  # Older versions of the 11.00 compiler do not understand -b yet
10612	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10613	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10614printf %s "checking if $CC understands -b... " >&6; }
10615if test ${lt_cv_prog_compiler__b+y}
10616then :
10617  printf %s "(cached) " >&6
10618else $as_nop
10619  lt_cv_prog_compiler__b=no
10620   save_LDFLAGS=$LDFLAGS
10621   LDFLAGS="$LDFLAGS -b"
10622   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10623   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10624     # The linker can only warn and ignore the option if not recognized
10625     # So say no if there are warnings
10626     if test -s conftest.err; then
10627       # Append any errors to the config.log.
10628       cat conftest.err 1>&5
10629       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10630       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10631       if diff conftest.exp conftest.er2 >/dev/null; then
10632         lt_cv_prog_compiler__b=yes
10633       fi
10634     else
10635       lt_cv_prog_compiler__b=yes
10636     fi
10637   fi
10638   $RM -r conftest*
10639   LDFLAGS=$save_LDFLAGS
10640
10641fi
10642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10643printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10644
10645if test yes = "$lt_cv_prog_compiler__b"; then
10646    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10647else
10648    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10649fi
10650
10651	  ;;
10652	esac
10653      fi
10654      if test no = "$with_gnu_ld"; then
10655	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10656	hardcode_libdir_separator=:
10657
10658	case $host_cpu in
10659	hppa*64*|ia64*)
10660	  hardcode_direct=no
10661	  hardcode_shlibpath_var=no
10662	  ;;
10663	*)
10664	  hardcode_direct=yes
10665	  hardcode_direct_absolute=yes
10666	  export_dynamic_flag_spec='$wl-E'
10667
10668	  # hardcode_minus_L: Not really in the search PATH,
10669	  # but as the default location of the library.
10670	  hardcode_minus_L=yes
10671	  ;;
10672	esac
10673      fi
10674      ;;
10675
10676    irix5* | irix6* | nonstopux*)
10677      if test yes = "$GCC"; then
10678	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'
10679	# Try to use the -exported_symbol ld option, if it does not
10680	# work, assume that -exports_file does not work either and
10681	# implicitly export all symbols.
10682	# This should be the same for all languages, so no per-tag cache variable.
10683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10684printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10685if test ${lt_cv_irix_exported_symbol+y}
10686then :
10687  printf %s "(cached) " >&6
10688else $as_nop
10689  save_LDFLAGS=$LDFLAGS
10690	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10691	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692/* end confdefs.h.  */
10693int foo (void) { return 0; }
10694_ACEOF
10695if ac_fn_c_try_link "$LINENO"
10696then :
10697  lt_cv_irix_exported_symbol=yes
10698else $as_nop
10699  lt_cv_irix_exported_symbol=no
10700fi
10701rm -f core conftest.err conftest.$ac_objext conftest.beam \
10702    conftest$ac_exeext conftest.$ac_ext
10703           LDFLAGS=$save_LDFLAGS
10704fi
10705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10706printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10707	if test yes = "$lt_cv_irix_exported_symbol"; then
10708          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'
10709	fi
10710      else
10711	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'
10712	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'
10713      fi
10714      archive_cmds_need_lc='no'
10715      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10716      hardcode_libdir_separator=:
10717      inherit_rpath=yes
10718      link_all_deplibs=yes
10719      ;;
10720
10721    linux*)
10722      case $cc_basename in
10723      tcc*)
10724	# Fabrice Bellard et al's Tiny C Compiler
10725	ld_shlibs=yes
10726	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10727	;;
10728      esac
10729      ;;
10730
10731    netbsd*)
10732      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10733	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10734      else
10735	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10736      fi
10737      hardcode_libdir_flag_spec='-R$libdir'
10738      hardcode_direct=yes
10739      hardcode_shlibpath_var=no
10740      ;;
10741
10742    newsos6)
10743      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10744      hardcode_direct=yes
10745      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10746      hardcode_libdir_separator=:
10747      hardcode_shlibpath_var=no
10748      ;;
10749
10750    *nto* | *qnx*)
10751      ;;
10752
10753    openbsd* | bitrig*)
10754      if test -f /usr/libexec/ld.so; then
10755	hardcode_direct=yes
10756	hardcode_shlibpath_var=no
10757	hardcode_direct_absolute=yes
10758	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10759	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10760	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10761	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10762	  export_dynamic_flag_spec='$wl-E'
10763	else
10764	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10765	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10766	fi
10767      else
10768	ld_shlibs=no
10769      fi
10770      ;;
10771
10772    os2*)
10773      hardcode_libdir_flag_spec='-L$libdir'
10774      hardcode_minus_L=yes
10775      allow_undefined_flag=unsupported
10776      shrext_cmds=.dll
10777      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10778	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10779	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10780	$ECHO EXPORTS >> $output_objdir/$libname.def~
10781	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10782	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10783	emximp -o $lib $output_objdir/$libname.def'
10784      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10785	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10786	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10787	$ECHO EXPORTS >> $output_objdir/$libname.def~
10788	prefix_cmds="$SED"~
10789	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10790	  prefix_cmds="$prefix_cmds -e 1d";
10791	fi~
10792	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10793	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10794	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10795	emximp -o $lib $output_objdir/$libname.def'
10796      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10797      enable_shared_with_static_runtimes=yes
10798      file_list_spec='@'
10799      ;;
10800
10801    osf3*)
10802      if test yes = "$GCC"; then
10803	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10804	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'
10805      else
10806	allow_undefined_flag=' -expect_unresolved \*'
10807	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'
10808      fi
10809      archive_cmds_need_lc='no'
10810      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10811      hardcode_libdir_separator=:
10812      ;;
10813
10814    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10815      if test yes = "$GCC"; then
10816	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10817	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'
10818	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10819      else
10820	allow_undefined_flag=' -expect_unresolved \*'
10821	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'
10822	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~
10823          $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'
10824
10825	# Both c and cxx compiler support -rpath directly
10826	hardcode_libdir_flag_spec='-rpath $libdir'
10827      fi
10828      archive_cmds_need_lc='no'
10829      hardcode_libdir_separator=:
10830      ;;
10831
10832    solaris*)
10833      no_undefined_flag=' -z defs'
10834      if test yes = "$GCC"; then
10835	wlarc='$wl'
10836	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10837	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838          $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'
10839      else
10840	case `$CC -V 2>&1` in
10841	*"Compilers 5.0"*)
10842	  wlarc=''
10843	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10845            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10846	  ;;
10847	*)
10848	  wlarc='$wl'
10849	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10850	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10851            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10852	  ;;
10853	esac
10854      fi
10855      hardcode_libdir_flag_spec='-R$libdir'
10856      hardcode_shlibpath_var=no
10857      case $host_os in
10858      solaris2.[0-5] | solaris2.[0-5].*) ;;
10859      *)
10860	# The compiler driver will combine and reorder linker options,
10861	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10862	# but is careful enough not to reorder.
10863	# Supported since Solaris 2.6 (maybe 2.5.1?)
10864	if test yes = "$GCC"; then
10865	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10866	else
10867	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10868	fi
10869	;;
10870      esac
10871      link_all_deplibs=yes
10872      ;;
10873
10874    sunos4*)
10875      if test sequent = "$host_vendor"; then
10876	# Use $CC to link under sequent, because it throws in some extra .o
10877	# files that make .init and .fini sections work.
10878	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10879      else
10880	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10881      fi
10882      hardcode_libdir_flag_spec='-L$libdir'
10883      hardcode_direct=yes
10884      hardcode_minus_L=yes
10885      hardcode_shlibpath_var=no
10886      ;;
10887
10888    sysv4)
10889      case $host_vendor in
10890	sni)
10891	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892	  hardcode_direct=yes # is this really true???
10893	;;
10894	siemens)
10895	  ## LD is ld it makes a PLAMLIB
10896	  ## CC just makes a GrossModule.
10897	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10898	  reload_cmds='$CC -r -o $output$reload_objs'
10899	  hardcode_direct=no
10900        ;;
10901	motorola)
10902	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10904	;;
10905      esac
10906      runpath_var='LD_RUN_PATH'
10907      hardcode_shlibpath_var=no
10908      ;;
10909
10910    sysv4.3*)
10911      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912      hardcode_shlibpath_var=no
10913      export_dynamic_flag_spec='-Bexport'
10914      ;;
10915
10916    sysv4*MP*)
10917      if test -d /usr/nec; then
10918	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919	hardcode_shlibpath_var=no
10920	runpath_var=LD_RUN_PATH
10921	hardcode_runpath_var=yes
10922	ld_shlibs=yes
10923      fi
10924      ;;
10925
10926    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10927      no_undefined_flag='$wl-z,text'
10928      archive_cmds_need_lc=no
10929      hardcode_shlibpath_var=no
10930      runpath_var='LD_RUN_PATH'
10931
10932      if test yes = "$GCC"; then
10933	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935      else
10936	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938      fi
10939      ;;
10940
10941    sysv5* | sco3.2v5* | sco5v6*)
10942      # Note: We CANNOT use -z defs as we might desire, because we do not
10943      # link with -lc, and that would cause any symbols used from libc to
10944      # always be unresolved, which means just about no library would
10945      # ever link correctly.  If we're not using GNU ld we use -z text
10946      # though, which does catch some bad symbols but isn't as heavy-handed
10947      # as -z defs.
10948      no_undefined_flag='$wl-z,text'
10949      allow_undefined_flag='$wl-z,nodefs'
10950      archive_cmds_need_lc=no
10951      hardcode_shlibpath_var=no
10952      hardcode_libdir_flag_spec='$wl-R,$libdir'
10953      hardcode_libdir_separator=':'
10954      link_all_deplibs=yes
10955      export_dynamic_flag_spec='$wl-Bexport'
10956      runpath_var='LD_RUN_PATH'
10957
10958      if test yes = "$GCC"; then
10959	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961      else
10962	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964      fi
10965      ;;
10966
10967    uts4*)
10968      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969      hardcode_libdir_flag_spec='-L$libdir'
10970      hardcode_shlibpath_var=no
10971      ;;
10972
10973    *)
10974      ld_shlibs=no
10975      ;;
10976    esac
10977
10978    if test sni = "$host_vendor"; then
10979      case $host in
10980      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10981	export_dynamic_flag_spec='$wl-Blargedynsym'
10982	;;
10983      esac
10984    fi
10985  fi
10986
10987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10988printf "%s\n" "$ld_shlibs" >&6; }
10989test no = "$ld_shlibs" && can_build_shared=no
10990
10991with_gnu_ld=$with_gnu_ld
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007#
11008# Do we need to explicitly link libc?
11009#
11010case "x$archive_cmds_need_lc" in
11011x|xyes)
11012  # Assume -lc should be added
11013  archive_cmds_need_lc=yes
11014
11015  if test yes,yes = "$GCC,$enable_shared"; then
11016    case $archive_cmds in
11017    *'~'*)
11018      # FIXME: we may have to deal with multi-command sequences.
11019      ;;
11020    '$CC '*)
11021      # Test whether the compiler implicitly links with -lc since on some
11022      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11023      # to ld, don't add -lc before -lgcc.
11024      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11025printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11026if test ${lt_cv_archive_cmds_need_lc+y}
11027then :
11028  printf %s "(cached) " >&6
11029else $as_nop
11030  $RM conftest*
11031	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11032
11033	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11034  (eval $ac_compile) 2>&5
11035  ac_status=$?
11036  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11037  test $ac_status = 0; } 2>conftest.err; then
11038	  soname=conftest
11039	  lib=conftest
11040	  libobjs=conftest.$ac_objext
11041	  deplibs=
11042	  wl=$lt_prog_compiler_wl
11043	  pic_flag=$lt_prog_compiler_pic
11044	  compiler_flags=-v
11045	  linker_flags=-v
11046	  verstring=
11047	  output_objdir=.
11048	  libname=conftest
11049	  lt_save_allow_undefined_flag=$allow_undefined_flag
11050	  allow_undefined_flag=
11051	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11052  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11053  ac_status=$?
11054  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11055  test $ac_status = 0; }
11056	  then
11057	    lt_cv_archive_cmds_need_lc=no
11058	  else
11059	    lt_cv_archive_cmds_need_lc=yes
11060	  fi
11061	  allow_undefined_flag=$lt_save_allow_undefined_flag
11062	else
11063	  cat conftest.err 1>&5
11064	fi
11065	$RM conftest*
11066
11067fi
11068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11069printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11070      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11071      ;;
11072    esac
11073  fi
11074  ;;
11075esac
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11229printf %s "checking dynamic linker characteristics... " >&6; }
11230
11231if test yes = "$GCC"; then
11232  case $host_os in
11233    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11234    *) lt_awk_arg='/^libraries:/' ;;
11235  esac
11236  case $host_os in
11237    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11238    *) lt_sed_strip_eq='s|=/|/|g' ;;
11239  esac
11240  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11241  case $lt_search_path_spec in
11242  *\;*)
11243    # if the path contains ";" then we assume it to be the separator
11244    # otherwise default to the standard path separator (i.e. ":") - it is
11245    # assumed that no part of a normal pathname contains ";" but that should
11246    # okay in the real world where ";" in dirpaths is itself problematic.
11247    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11248    ;;
11249  *)
11250    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11251    ;;
11252  esac
11253  # Ok, now we have the path, separated by spaces, we can step through it
11254  # and add multilib dir if necessary...
11255  lt_tmp_lt_search_path_spec=
11256  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11257  # ...but if some path component already ends with the multilib dir we assume
11258  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11259  case "$lt_multi_os_dir; $lt_search_path_spec " in
11260  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11261    lt_multi_os_dir=
11262    ;;
11263  esac
11264  for lt_sys_path in $lt_search_path_spec; do
11265    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11266      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11267    elif test -n "$lt_multi_os_dir"; then
11268      test -d "$lt_sys_path" && \
11269	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11270    fi
11271  done
11272  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11273BEGIN {RS = " "; FS = "/|\n";} {
11274  lt_foo = "";
11275  lt_count = 0;
11276  for (lt_i = NF; lt_i > 0; lt_i--) {
11277    if ($lt_i != "" && $lt_i != ".") {
11278      if ($lt_i == "..") {
11279        lt_count++;
11280      } else {
11281        if (lt_count == 0) {
11282          lt_foo = "/" $lt_i lt_foo;
11283        } else {
11284          lt_count--;
11285        }
11286      }
11287    }
11288  }
11289  if (lt_foo != "") { lt_freq[lt_foo]++; }
11290  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11291}'`
11292  # AWK program above erroneously prepends '/' to C:/dos/paths
11293  # for these hosts.
11294  case $host_os in
11295    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11296      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11297  esac
11298  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11299else
11300  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11301fi
11302library_names_spec=
11303libname_spec='lib$name'
11304soname_spec=
11305shrext_cmds=.so
11306postinstall_cmds=
11307postuninstall_cmds=
11308finish_cmds=
11309finish_eval=
11310shlibpath_var=
11311shlibpath_overrides_runpath=unknown
11312version_type=none
11313dynamic_linker="$host_os ld.so"
11314sys_lib_dlsearch_path_spec="/lib /usr/lib"
11315need_lib_prefix=unknown
11316hardcode_into_libs=no
11317
11318# when you set need_version to no, make sure it does not cause -set_version
11319# flags to be left without arguments
11320need_version=unknown
11321
11322
11323
11324case $host_os in
11325aix3*)
11326  version_type=linux # correct to gnu/linux during the next big refactor
11327  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11328  shlibpath_var=LIBPATH
11329
11330  # AIX 3 has no versioning support, so we append a major version to the name.
11331  soname_spec='$libname$release$shared_ext$major'
11332  ;;
11333
11334aix[4-9]*)
11335  version_type=linux # correct to gnu/linux during the next big refactor
11336  need_lib_prefix=no
11337  need_version=no
11338  hardcode_into_libs=yes
11339  if test ia64 = "$host_cpu"; then
11340    # AIX 5 supports IA64
11341    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11342    shlibpath_var=LD_LIBRARY_PATH
11343  else
11344    # With GCC up to 2.95.x, collect2 would create an import file
11345    # for dependence libraries.  The import file would start with
11346    # the line '#! .'.  This would cause the generated library to
11347    # depend on '.', always an invalid library.  This was fixed in
11348    # development snapshots of GCC prior to 3.0.
11349    case $host_os in
11350      aix4 | aix4.[01] | aix4.[01].*)
11351      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11352	   echo ' yes '
11353	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11354	:
11355      else
11356	can_build_shared=no
11357      fi
11358      ;;
11359    esac
11360    # Using Import Files as archive members, it is possible to support
11361    # filename-based versioning of shared library archives on AIX. While
11362    # this would work for both with and without runtime linking, it will
11363    # prevent static linking of such archives. So we do filename-based
11364    # shared library versioning with .so extension only, which is used
11365    # when both runtime linking and shared linking is enabled.
11366    # Unfortunately, runtime linking may impact performance, so we do
11367    # not want this to be the default eventually. Also, we use the
11368    # versioned .so libs for executables only if there is the -brtl
11369    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11370    # To allow for filename-based versioning support, we need to create
11371    # libNAME.so.V as an archive file, containing:
11372    # *) an Import File, referring to the versioned filename of the
11373    #    archive as well as the shared archive member, telling the
11374    #    bitwidth (32 or 64) of that shared object, and providing the
11375    #    list of exported symbols of that shared object, eventually
11376    #    decorated with the 'weak' keyword
11377    # *) the shared object with the F_LOADONLY flag set, to really avoid
11378    #    it being seen by the linker.
11379    # At run time we better use the real file rather than another symlink,
11380    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11381
11382    case $with_aix_soname,$aix_use_runtimelinking in
11383    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11384    # soname into executable. Probably we can add versioning support to
11385    # collect2, so additional links can be useful in future.
11386    aix,yes) # traditional libtool
11387      dynamic_linker='AIX unversionable lib.so'
11388      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11389      # instead of lib<name>.a to let people know that these are not
11390      # typical AIX shared libraries.
11391      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11392      ;;
11393    aix,no) # traditional AIX only
11394      dynamic_linker='AIX lib.a(lib.so.V)'
11395      # We preserve .a as extension for shared libraries through AIX4.2
11396      # and later when we are not doing run time linking.
11397      library_names_spec='$libname$release.a $libname.a'
11398      soname_spec='$libname$release$shared_ext$major'
11399      ;;
11400    svr4,*) # full svr4 only
11401      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11402      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11403      # We do not specify a path in Import Files, so LIBPATH fires.
11404      shlibpath_overrides_runpath=yes
11405      ;;
11406    *,yes) # both, prefer svr4
11407      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11408      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11409      # unpreferred sharedlib libNAME.a needs extra handling
11410      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11411      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11412      # We do not specify a path in Import Files, so LIBPATH fires.
11413      shlibpath_overrides_runpath=yes
11414      ;;
11415    *,no) # both, prefer aix
11416      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11417      library_names_spec='$libname$release.a $libname.a'
11418      soname_spec='$libname$release$shared_ext$major'
11419      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11420      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11421      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11422      ;;
11423    esac
11424    shlibpath_var=LIBPATH
11425  fi
11426  ;;
11427
11428amigaos*)
11429  case $host_cpu in
11430  powerpc)
11431    # Since July 2007 AmigaOS4 officially supports .so libraries.
11432    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11433    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11434    ;;
11435  m68k)
11436    library_names_spec='$libname.ixlibrary $libname.a'
11437    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11438    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11439    ;;
11440  esac
11441  ;;
11442
11443beos*)
11444  library_names_spec='$libname$shared_ext'
11445  dynamic_linker="$host_os ld.so"
11446  shlibpath_var=LIBRARY_PATH
11447  ;;
11448
11449bsdi[45]*)
11450  version_type=linux # correct to gnu/linux during the next big refactor
11451  need_version=no
11452  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11453  soname_spec='$libname$release$shared_ext$major'
11454  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11455  shlibpath_var=LD_LIBRARY_PATH
11456  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11457  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11458  # the default ld.so.conf also contains /usr/contrib/lib and
11459  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11460  # libtool to hard-code these into programs
11461  ;;
11462
11463cygwin* | mingw* | pw32* | cegcc*)
11464  version_type=windows
11465  shrext_cmds=.dll
11466  need_version=no
11467  need_lib_prefix=no
11468
11469  case $GCC,$cc_basename in
11470  yes,*)
11471    # gcc
11472    library_names_spec='$libname.dll.a'
11473    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11474    postinstall_cmds='base_file=`basename \$file`~
11475      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11476      dldir=$destdir/`dirname \$dlpath`~
11477      test -d \$dldir || mkdir -p \$dldir~
11478      $install_prog $dir/$dlname \$dldir/$dlname~
11479      chmod a+x \$dldir/$dlname~
11480      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11481        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11482      fi'
11483    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11484      dlpath=$dir/\$dldll~
11485       $RM \$dlpath'
11486    shlibpath_overrides_runpath=yes
11487
11488    case $host_os in
11489    cygwin*)
11490      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11491      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11492
11493      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11494      ;;
11495    mingw* | cegcc*)
11496      # MinGW DLLs use traditional 'lib' prefix
11497      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11498      ;;
11499    pw32*)
11500      # pw32 DLLs use 'pw' prefix rather than 'lib'
11501      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11502      ;;
11503    esac
11504    dynamic_linker='Win32 ld.exe'
11505    ;;
11506
11507  *,cl* | *,icl*)
11508    # Native MSVC or ICC
11509    libname_spec='$name'
11510    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11511    library_names_spec='$libname.dll.lib'
11512
11513    case $build_os in
11514    mingw*)
11515      sys_lib_search_path_spec=
11516      lt_save_ifs=$IFS
11517      IFS=';'
11518      for lt_path in $LIB
11519      do
11520        IFS=$lt_save_ifs
11521        # Let DOS variable expansion print the short 8.3 style file name.
11522        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11523        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11524      done
11525      IFS=$lt_save_ifs
11526      # Convert to MSYS style.
11527      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11528      ;;
11529    cygwin*)
11530      # Convert to unix form, then to dos form, then back to unix form
11531      # but this time dos style (no spaces!) so that the unix form looks
11532      # like /cygdrive/c/PROGRA~1:/cygdr...
11533      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11534      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11535      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11536      ;;
11537    *)
11538      sys_lib_search_path_spec=$LIB
11539      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11540        # It is most probably a Windows format PATH.
11541        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11542      else
11543        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11544      fi
11545      # FIXME: find the short name or the path components, as spaces are
11546      # common. (e.g. "Program Files" -> "PROGRA~1")
11547      ;;
11548    esac
11549
11550    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11551    postinstall_cmds='base_file=`basename \$file`~
11552      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11553      dldir=$destdir/`dirname \$dlpath`~
11554      test -d \$dldir || mkdir -p \$dldir~
11555      $install_prog $dir/$dlname \$dldir/$dlname'
11556    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11557      dlpath=$dir/\$dldll~
11558       $RM \$dlpath'
11559    shlibpath_overrides_runpath=yes
11560    dynamic_linker='Win32 link.exe'
11561    ;;
11562
11563  *)
11564    # Assume MSVC and ICC wrapper
11565    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11566    dynamic_linker='Win32 ld.exe'
11567    ;;
11568  esac
11569  # FIXME: first we should search . and the directory the executable is in
11570  shlibpath_var=PATH
11571  ;;
11572
11573darwin* | rhapsody*)
11574  dynamic_linker="$host_os dyld"
11575  version_type=darwin
11576  need_lib_prefix=no
11577  need_version=no
11578  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11579  soname_spec='$libname$release$major$shared_ext'
11580  shlibpath_overrides_runpath=yes
11581  shlibpath_var=DYLD_LIBRARY_PATH
11582  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11583
11584  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11585  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11586  ;;
11587
11588dgux*)
11589  version_type=linux # correct to gnu/linux during the next big refactor
11590  need_lib_prefix=no
11591  need_version=no
11592  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11593  soname_spec='$libname$release$shared_ext$major'
11594  shlibpath_var=LD_LIBRARY_PATH
11595  ;;
11596
11597freebsd* | dragonfly* | midnightbsd*)
11598  # DragonFly does not have aout.  When/if they implement a new
11599  # versioning mechanism, adjust this.
11600  if test -x /usr/bin/objformat; then
11601    objformat=`/usr/bin/objformat`
11602  else
11603    case $host_os in
11604    freebsd[23].*) objformat=aout ;;
11605    *) objformat=elf ;;
11606    esac
11607  fi
11608  version_type=freebsd-$objformat
11609  case $version_type in
11610    freebsd-elf*)
11611      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11612      soname_spec='$libname$release$shared_ext$major'
11613      need_version=no
11614      need_lib_prefix=no
11615      ;;
11616    freebsd-*)
11617      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11618      need_version=yes
11619      ;;
11620  esac
11621  shlibpath_var=LD_LIBRARY_PATH
11622  case $host_os in
11623  freebsd2.*)
11624    shlibpath_overrides_runpath=yes
11625    ;;
11626  freebsd3.[01]* | freebsdelf3.[01]*)
11627    shlibpath_overrides_runpath=yes
11628    hardcode_into_libs=yes
11629    ;;
11630  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11631  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11632    shlibpath_overrides_runpath=no
11633    hardcode_into_libs=yes
11634    ;;
11635  *) # from 4.6 on, and DragonFly
11636    shlibpath_overrides_runpath=yes
11637    hardcode_into_libs=yes
11638    ;;
11639  esac
11640  ;;
11641
11642haiku*)
11643  version_type=linux # correct to gnu/linux during the next big refactor
11644  need_lib_prefix=no
11645  need_version=no
11646  dynamic_linker="$host_os runtime_loader"
11647  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11648  soname_spec='$libname$release$shared_ext$major'
11649  shlibpath_var=LIBRARY_PATH
11650  shlibpath_overrides_runpath=no
11651  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11652  hardcode_into_libs=yes
11653  ;;
11654
11655hpux9* | hpux10* | hpux11*)
11656  # Give a soname corresponding to the major version so that dld.sl refuses to
11657  # link against other versions.
11658  version_type=sunos
11659  need_lib_prefix=no
11660  need_version=no
11661  case $host_cpu in
11662  ia64*)
11663    shrext_cmds='.so'
11664    hardcode_into_libs=yes
11665    dynamic_linker="$host_os dld.so"
11666    shlibpath_var=LD_LIBRARY_PATH
11667    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11668    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11669    soname_spec='$libname$release$shared_ext$major'
11670    if test 32 = "$HPUX_IA64_MODE"; then
11671      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11672      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11673    else
11674      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11675      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11676    fi
11677    ;;
11678  hppa*64*)
11679    shrext_cmds='.sl'
11680    hardcode_into_libs=yes
11681    dynamic_linker="$host_os dld.sl"
11682    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11683    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11684    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11685    soname_spec='$libname$release$shared_ext$major'
11686    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11687    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11688    ;;
11689  *)
11690    shrext_cmds='.sl'
11691    dynamic_linker="$host_os dld.sl"
11692    shlibpath_var=SHLIB_PATH
11693    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11694    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695    soname_spec='$libname$release$shared_ext$major'
11696    ;;
11697  esac
11698  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11699  postinstall_cmds='chmod 555 $lib'
11700  # or fails outright, so override atomically:
11701  install_override_mode=555
11702  ;;
11703
11704interix[3-9]*)
11705  version_type=linux # correct to gnu/linux during the next big refactor
11706  need_lib_prefix=no
11707  need_version=no
11708  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11709  soname_spec='$libname$release$shared_ext$major'
11710  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11711  shlibpath_var=LD_LIBRARY_PATH
11712  shlibpath_overrides_runpath=no
11713  hardcode_into_libs=yes
11714  ;;
11715
11716irix5* | irix6* | nonstopux*)
11717  case $host_os in
11718    nonstopux*) version_type=nonstopux ;;
11719    *)
11720	if test yes = "$lt_cv_prog_gnu_ld"; then
11721		version_type=linux # correct to gnu/linux during the next big refactor
11722	else
11723		version_type=irix
11724	fi ;;
11725  esac
11726  need_lib_prefix=no
11727  need_version=no
11728  soname_spec='$libname$release$shared_ext$major'
11729  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11730  case $host_os in
11731  irix5* | nonstopux*)
11732    libsuff= shlibsuff=
11733    ;;
11734  *)
11735    case $LD in # libtool.m4 will add one of these switches to LD
11736    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11737      libsuff= shlibsuff= libmagic=32-bit;;
11738    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11739      libsuff=32 shlibsuff=N32 libmagic=N32;;
11740    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11741      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11742    *) libsuff= shlibsuff= libmagic=never-match;;
11743    esac
11744    ;;
11745  esac
11746  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11747  shlibpath_overrides_runpath=no
11748  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11749  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11750  hardcode_into_libs=yes
11751  ;;
11752
11753# No shared lib support for Linux oldld, aout, or coff.
11754linux*oldld* | linux*aout* | linux*coff*)
11755  dynamic_linker=no
11756  ;;
11757
11758linux*android*)
11759  version_type=none # Android doesn't support versioned libraries.
11760  need_lib_prefix=no
11761  need_version=no
11762  library_names_spec='$libname$release$shared_ext'
11763  soname_spec='$libname$release$shared_ext'
11764  finish_cmds=
11765  shlibpath_var=LD_LIBRARY_PATH
11766  shlibpath_overrides_runpath=yes
11767
11768  # This implies no fast_install, which is unacceptable.
11769  # Some rework will be needed to allow for fast_install
11770  # before this can be enabled.
11771  hardcode_into_libs=yes
11772
11773  dynamic_linker='Android linker'
11774  # Don't embed -rpath directories since the linker doesn't support them.
11775  hardcode_libdir_flag_spec='-L$libdir'
11776  ;;
11777
11778# This must be glibc/ELF.
11779linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11780  version_type=linux # correct to gnu/linux during the next big refactor
11781  need_lib_prefix=no
11782  need_version=no
11783  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11784  soname_spec='$libname$release$shared_ext$major'
11785  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11786  shlibpath_var=LD_LIBRARY_PATH
11787  shlibpath_overrides_runpath=no
11788
11789  # Some binutils ld are patched to set DT_RUNPATH
11790  if test ${lt_cv_shlibpath_overrides_runpath+y}
11791then :
11792  printf %s "(cached) " >&6
11793else $as_nop
11794  lt_cv_shlibpath_overrides_runpath=no
11795    save_LDFLAGS=$LDFLAGS
11796    save_libdir=$libdir
11797    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11798	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11799    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801
11802int
11803main (void)
11804{
11805
11806  ;
11807  return 0;
11808}
11809_ACEOF
11810if ac_fn_c_try_link "$LINENO"
11811then :
11812  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11813then :
11814  lt_cv_shlibpath_overrides_runpath=yes
11815fi
11816fi
11817rm -f core conftest.err conftest.$ac_objext conftest.beam \
11818    conftest$ac_exeext conftest.$ac_ext
11819    LDFLAGS=$save_LDFLAGS
11820    libdir=$save_libdir
11821
11822fi
11823
11824  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11825
11826  # This implies no fast_install, which is unacceptable.
11827  # Some rework will be needed to allow for fast_install
11828  # before this can be enabled.
11829  hardcode_into_libs=yes
11830
11831  # Ideally, we could use ldconfig to report *all* directores which are
11832  # searched for libraries, however this is still not possible.  Aside from not
11833  # being certain /sbin/ldconfig is available, command
11834  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11835  # even though it is searched at run-time.  Try to do the best guess by
11836  # appending ld.so.conf contents (and includes) to the search path.
11837  if test -f /etc/ld.so.conf; then
11838    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' ' '`
11839    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11840  fi
11841
11842  # We used to test for /lib/ld.so.1 and disable shared libraries on
11843  # powerpc, because MkLinux only supported shared libraries with the
11844  # GNU dynamic linker.  Since this was broken with cross compilers,
11845  # most powerpc-linux boxes support dynamic linking these days and
11846  # people can always --disable-shared, the test was removed, and we
11847  # assume the GNU/Linux dynamic linker is in use.
11848  dynamic_linker='GNU/Linux ld.so'
11849  ;;
11850
11851netbsd*)
11852  version_type=sunos
11853  need_lib_prefix=no
11854  need_version=no
11855  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11856    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11857    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11858    dynamic_linker='NetBSD (a.out) ld.so'
11859  else
11860    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861    soname_spec='$libname$release$shared_ext$major'
11862    dynamic_linker='NetBSD ld.elf_so'
11863  fi
11864  shlibpath_var=LD_LIBRARY_PATH
11865  shlibpath_overrides_runpath=yes
11866  hardcode_into_libs=yes
11867  ;;
11868
11869newsos6)
11870  version_type=linux # correct to gnu/linux during the next big refactor
11871  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872  shlibpath_var=LD_LIBRARY_PATH
11873  shlibpath_overrides_runpath=yes
11874  ;;
11875
11876*nto* | *qnx*)
11877  version_type=qnx
11878  need_lib_prefix=no
11879  need_version=no
11880  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11881  soname_spec='$libname$release$shared_ext$major'
11882  shlibpath_var=LD_LIBRARY_PATH
11883  shlibpath_overrides_runpath=no
11884  hardcode_into_libs=yes
11885  dynamic_linker='ldqnx.so'
11886  ;;
11887
11888openbsd* | bitrig*)
11889  version_type=sunos
11890  sys_lib_dlsearch_path_spec=/usr/lib
11891  need_lib_prefix=no
11892  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11893    need_version=no
11894  else
11895    need_version=yes
11896  fi
11897  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11898  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11899  shlibpath_var=LD_LIBRARY_PATH
11900  shlibpath_overrides_runpath=yes
11901  ;;
11902
11903os2*)
11904  libname_spec='$name'
11905  version_type=windows
11906  shrext_cmds=.dll
11907  need_version=no
11908  need_lib_prefix=no
11909  # OS/2 can only load a DLL with a base name of 8 characters or less.
11910  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11911    v=$($ECHO $release$versuffix | tr -d .-);
11912    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11913    $ECHO $n$v`$shared_ext'
11914  library_names_spec='${libname}_dll.$libext'
11915  dynamic_linker='OS/2 ld.exe'
11916  shlibpath_var=BEGINLIBPATH
11917  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11918  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11919  postinstall_cmds='base_file=`basename \$file`~
11920    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11921    dldir=$destdir/`dirname \$dlpath`~
11922    test -d \$dldir || mkdir -p \$dldir~
11923    $install_prog $dir/$dlname \$dldir/$dlname~
11924    chmod a+x \$dldir/$dlname~
11925    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11926      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11927    fi'
11928  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11929    dlpath=$dir/\$dldll~
11930    $RM \$dlpath'
11931  ;;
11932
11933osf3* | osf4* | osf5*)
11934  version_type=osf
11935  need_lib_prefix=no
11936  need_version=no
11937  soname_spec='$libname$release$shared_ext$major'
11938  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11939  shlibpath_var=LD_LIBRARY_PATH
11940  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11941  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11942  ;;
11943
11944rdos*)
11945  dynamic_linker=no
11946  ;;
11947
11948solaris*)
11949  version_type=linux # correct to gnu/linux during the next big refactor
11950  need_lib_prefix=no
11951  need_version=no
11952  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11953  soname_spec='$libname$release$shared_ext$major'
11954  shlibpath_var=LD_LIBRARY_PATH
11955  shlibpath_overrides_runpath=yes
11956  hardcode_into_libs=yes
11957  # ldd complains unless libraries are executable
11958  postinstall_cmds='chmod +x $lib'
11959  ;;
11960
11961sunos4*)
11962  version_type=sunos
11963  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11964  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11965  shlibpath_var=LD_LIBRARY_PATH
11966  shlibpath_overrides_runpath=yes
11967  if test yes = "$with_gnu_ld"; then
11968    need_lib_prefix=no
11969  fi
11970  need_version=yes
11971  ;;
11972
11973sysv4 | sysv4.3*)
11974  version_type=linux # correct to gnu/linux during the next big refactor
11975  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11976  soname_spec='$libname$release$shared_ext$major'
11977  shlibpath_var=LD_LIBRARY_PATH
11978  case $host_vendor in
11979    sni)
11980      shlibpath_overrides_runpath=no
11981      need_lib_prefix=no
11982      runpath_var=LD_RUN_PATH
11983      ;;
11984    siemens)
11985      need_lib_prefix=no
11986      ;;
11987    motorola)
11988      need_lib_prefix=no
11989      need_version=no
11990      shlibpath_overrides_runpath=no
11991      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11992      ;;
11993  esac
11994  ;;
11995
11996sysv4*MP*)
11997  if test -d /usr/nec; then
11998    version_type=linux # correct to gnu/linux during the next big refactor
11999    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12000    soname_spec='$libname$shared_ext.$major'
12001    shlibpath_var=LD_LIBRARY_PATH
12002  fi
12003  ;;
12004
12005sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12006  version_type=sco
12007  need_lib_prefix=no
12008  need_version=no
12009  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12010  soname_spec='$libname$release$shared_ext$major'
12011  shlibpath_var=LD_LIBRARY_PATH
12012  shlibpath_overrides_runpath=yes
12013  hardcode_into_libs=yes
12014  if test yes = "$with_gnu_ld"; then
12015    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12016  else
12017    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12018    case $host_os in
12019      sco3.2v5*)
12020        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12021	;;
12022    esac
12023  fi
12024  sys_lib_dlsearch_path_spec='/usr/lib'
12025  ;;
12026
12027tpf*)
12028  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12029  version_type=linux # correct to gnu/linux during the next big refactor
12030  need_lib_prefix=no
12031  need_version=no
12032  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12033  shlibpath_var=LD_LIBRARY_PATH
12034  shlibpath_overrides_runpath=no
12035  hardcode_into_libs=yes
12036  ;;
12037
12038uts4*)
12039  version_type=linux # correct to gnu/linux during the next big refactor
12040  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041  soname_spec='$libname$release$shared_ext$major'
12042  shlibpath_var=LD_LIBRARY_PATH
12043  ;;
12044
12045*)
12046  dynamic_linker=no
12047  ;;
12048esac
12049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12050printf "%s\n" "$dynamic_linker" >&6; }
12051test no = "$dynamic_linker" && can_build_shared=no
12052
12053variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12054if test yes = "$GCC"; then
12055  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12056fi
12057
12058if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12059  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12060fi
12061
12062if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12063  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12064fi
12065
12066# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12067configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12068
12069# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12070func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12071
12072# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12073configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12172printf %s "checking how to hardcode library paths into programs... " >&6; }
12173hardcode_action=
12174if test -n "$hardcode_libdir_flag_spec" ||
12175   test -n "$runpath_var" ||
12176   test yes = "$hardcode_automatic"; then
12177
12178  # We can hardcode non-existent directories.
12179  if test no != "$hardcode_direct" &&
12180     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12181     # have to relink, otherwise we might link with an installed library
12182     # when we should be linking with a yet-to-be-installed one
12183     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12184     test no != "$hardcode_minus_L"; then
12185    # Linking always hardcodes the temporary library directory.
12186    hardcode_action=relink
12187  else
12188    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12189    hardcode_action=immediate
12190  fi
12191else
12192  # We cannot hardcode anything, or else we can only hardcode existing
12193  # directories.
12194  hardcode_action=unsupported
12195fi
12196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12197printf "%s\n" "$hardcode_action" >&6; }
12198
12199if test relink = "$hardcode_action" ||
12200   test yes = "$inherit_rpath"; then
12201  # Fast installation is not supported
12202  enable_fast_install=no
12203elif test yes = "$shlibpath_overrides_runpath" ||
12204     test no = "$enable_shared"; then
12205  # Fast installation is not necessary
12206  enable_fast_install=needless
12207fi
12208
12209
12210
12211
12212
12213
12214  if test yes != "$enable_dlopen"; then
12215  enable_dlopen=unknown
12216  enable_dlopen_self=unknown
12217  enable_dlopen_self_static=unknown
12218else
12219  lt_cv_dlopen=no
12220  lt_cv_dlopen_libs=
12221
12222  case $host_os in
12223  beos*)
12224    lt_cv_dlopen=load_add_on
12225    lt_cv_dlopen_libs=
12226    lt_cv_dlopen_self=yes
12227    ;;
12228
12229  mingw* | pw32* | cegcc*)
12230    lt_cv_dlopen=LoadLibrary
12231    lt_cv_dlopen_libs=
12232    ;;
12233
12234  cygwin*)
12235    lt_cv_dlopen=dlopen
12236    lt_cv_dlopen_libs=
12237    ;;
12238
12239  darwin*)
12240    # if libdl is installed we need to link against it
12241    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12242printf %s "checking for dlopen in -ldl... " >&6; }
12243if test ${ac_cv_lib_dl_dlopen+y}
12244then :
12245  printf %s "(cached) " >&6
12246else $as_nop
12247  ac_check_lib_save_LIBS=$LIBS
12248LIBS="-ldl  $LIBS"
12249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250/* end confdefs.h.  */
12251
12252/* Override any GCC internal prototype to avoid an error.
12253   Use char because int might match the return type of a GCC
12254   builtin and then its argument prototype would still apply.  */
12255char dlopen ();
12256int
12257main (void)
12258{
12259return dlopen ();
12260  ;
12261  return 0;
12262}
12263_ACEOF
12264if ac_fn_c_try_link "$LINENO"
12265then :
12266  ac_cv_lib_dl_dlopen=yes
12267else $as_nop
12268  ac_cv_lib_dl_dlopen=no
12269fi
12270rm -f core conftest.err conftest.$ac_objext conftest.beam \
12271    conftest$ac_exeext conftest.$ac_ext
12272LIBS=$ac_check_lib_save_LIBS
12273fi
12274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12275printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12276if test "x$ac_cv_lib_dl_dlopen" = xyes
12277then :
12278  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12279else $as_nop
12280
12281    lt_cv_dlopen=dyld
12282    lt_cv_dlopen_libs=
12283    lt_cv_dlopen_self=yes
12284
12285fi
12286
12287    ;;
12288
12289  tpf*)
12290    # Don't try to run any link tests for TPF.  We know it's impossible
12291    # because TPF is a cross-compiler, and we know how we open DSOs.
12292    lt_cv_dlopen=dlopen
12293    lt_cv_dlopen_libs=
12294    lt_cv_dlopen_self=no
12295    ;;
12296
12297  *)
12298    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12299if test "x$ac_cv_func_shl_load" = xyes
12300then :
12301  lt_cv_dlopen=shl_load
12302else $as_nop
12303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12304printf %s "checking for shl_load in -ldld... " >&6; }
12305if test ${ac_cv_lib_dld_shl_load+y}
12306then :
12307  printf %s "(cached) " >&6
12308else $as_nop
12309  ac_check_lib_save_LIBS=$LIBS
12310LIBS="-ldld  $LIBS"
12311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312/* end confdefs.h.  */
12313
12314/* Override any GCC internal prototype to avoid an error.
12315   Use char because int might match the return type of a GCC
12316   builtin and then its argument prototype would still apply.  */
12317char shl_load ();
12318int
12319main (void)
12320{
12321return shl_load ();
12322  ;
12323  return 0;
12324}
12325_ACEOF
12326if ac_fn_c_try_link "$LINENO"
12327then :
12328  ac_cv_lib_dld_shl_load=yes
12329else $as_nop
12330  ac_cv_lib_dld_shl_load=no
12331fi
12332rm -f core conftest.err conftest.$ac_objext conftest.beam \
12333    conftest$ac_exeext conftest.$ac_ext
12334LIBS=$ac_check_lib_save_LIBS
12335fi
12336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12337printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12338if test "x$ac_cv_lib_dld_shl_load" = xyes
12339then :
12340  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12341else $as_nop
12342  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12343if test "x$ac_cv_func_dlopen" = xyes
12344then :
12345  lt_cv_dlopen=dlopen
12346else $as_nop
12347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12348printf %s "checking for dlopen in -ldl... " >&6; }
12349if test ${ac_cv_lib_dl_dlopen+y}
12350then :
12351  printf %s "(cached) " >&6
12352else $as_nop
12353  ac_check_lib_save_LIBS=$LIBS
12354LIBS="-ldl  $LIBS"
12355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356/* end confdefs.h.  */
12357
12358/* Override any GCC internal prototype to avoid an error.
12359   Use char because int might match the return type of a GCC
12360   builtin and then its argument prototype would still apply.  */
12361char dlopen ();
12362int
12363main (void)
12364{
12365return dlopen ();
12366  ;
12367  return 0;
12368}
12369_ACEOF
12370if ac_fn_c_try_link "$LINENO"
12371then :
12372  ac_cv_lib_dl_dlopen=yes
12373else $as_nop
12374  ac_cv_lib_dl_dlopen=no
12375fi
12376rm -f core conftest.err conftest.$ac_objext conftest.beam \
12377    conftest$ac_exeext conftest.$ac_ext
12378LIBS=$ac_check_lib_save_LIBS
12379fi
12380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12381printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12382if test "x$ac_cv_lib_dl_dlopen" = xyes
12383then :
12384  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12385else $as_nop
12386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12387printf %s "checking for dlopen in -lsvld... " >&6; }
12388if test ${ac_cv_lib_svld_dlopen+y}
12389then :
12390  printf %s "(cached) " >&6
12391else $as_nop
12392  ac_check_lib_save_LIBS=$LIBS
12393LIBS="-lsvld  $LIBS"
12394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395/* end confdefs.h.  */
12396
12397/* Override any GCC internal prototype to avoid an error.
12398   Use char because int might match the return type of a GCC
12399   builtin and then its argument prototype would still apply.  */
12400char dlopen ();
12401int
12402main (void)
12403{
12404return dlopen ();
12405  ;
12406  return 0;
12407}
12408_ACEOF
12409if ac_fn_c_try_link "$LINENO"
12410then :
12411  ac_cv_lib_svld_dlopen=yes
12412else $as_nop
12413  ac_cv_lib_svld_dlopen=no
12414fi
12415rm -f core conftest.err conftest.$ac_objext conftest.beam \
12416    conftest$ac_exeext conftest.$ac_ext
12417LIBS=$ac_check_lib_save_LIBS
12418fi
12419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12420printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12421if test "x$ac_cv_lib_svld_dlopen" = xyes
12422then :
12423  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12424else $as_nop
12425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12426printf %s "checking for dld_link in -ldld... " >&6; }
12427if test ${ac_cv_lib_dld_dld_link+y}
12428then :
12429  printf %s "(cached) " >&6
12430else $as_nop
12431  ac_check_lib_save_LIBS=$LIBS
12432LIBS="-ldld  $LIBS"
12433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434/* end confdefs.h.  */
12435
12436/* Override any GCC internal prototype to avoid an error.
12437   Use char because int might match the return type of a GCC
12438   builtin and then its argument prototype would still apply.  */
12439char dld_link ();
12440int
12441main (void)
12442{
12443return dld_link ();
12444  ;
12445  return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_link "$LINENO"
12449then :
12450  ac_cv_lib_dld_dld_link=yes
12451else $as_nop
12452  ac_cv_lib_dld_dld_link=no
12453fi
12454rm -f core conftest.err conftest.$ac_objext conftest.beam \
12455    conftest$ac_exeext conftest.$ac_ext
12456LIBS=$ac_check_lib_save_LIBS
12457fi
12458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12459printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12460if test "x$ac_cv_lib_dld_dld_link" = xyes
12461then :
12462  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12463fi
12464
12465
12466fi
12467
12468
12469fi
12470
12471
12472fi
12473
12474
12475fi
12476
12477
12478fi
12479
12480    ;;
12481  esac
12482
12483  if test no = "$lt_cv_dlopen"; then
12484    enable_dlopen=no
12485  else
12486    enable_dlopen=yes
12487  fi
12488
12489  case $lt_cv_dlopen in
12490  dlopen)
12491    save_CPPFLAGS=$CPPFLAGS
12492    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12493
12494    save_LDFLAGS=$LDFLAGS
12495    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12496
12497    save_LIBS=$LIBS
12498    LIBS="$lt_cv_dlopen_libs $LIBS"
12499
12500    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12501printf %s "checking whether a program can dlopen itself... " >&6; }
12502if test ${lt_cv_dlopen_self+y}
12503then :
12504  printf %s "(cached) " >&6
12505else $as_nop
12506  	  if test yes = "$cross_compiling"; then :
12507  lt_cv_dlopen_self=cross
12508else
12509  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12510  lt_status=$lt_dlunknown
12511  cat > conftest.$ac_ext <<_LT_EOF
12512#line $LINENO "configure"
12513#include "confdefs.h"
12514
12515#if HAVE_DLFCN_H
12516#include <dlfcn.h>
12517#endif
12518
12519#include <stdio.h>
12520
12521#ifdef RTLD_GLOBAL
12522#  define LT_DLGLOBAL		RTLD_GLOBAL
12523#else
12524#  ifdef DL_GLOBAL
12525#    define LT_DLGLOBAL		DL_GLOBAL
12526#  else
12527#    define LT_DLGLOBAL		0
12528#  endif
12529#endif
12530
12531/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12532   find out it does not work in some platform. */
12533#ifndef LT_DLLAZY_OR_NOW
12534#  ifdef RTLD_LAZY
12535#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12536#  else
12537#    ifdef DL_LAZY
12538#      define LT_DLLAZY_OR_NOW		DL_LAZY
12539#    else
12540#      ifdef RTLD_NOW
12541#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12542#      else
12543#        ifdef DL_NOW
12544#          define LT_DLLAZY_OR_NOW	DL_NOW
12545#        else
12546#          define LT_DLLAZY_OR_NOW	0
12547#        endif
12548#      endif
12549#    endif
12550#  endif
12551#endif
12552
12553/* When -fvisibility=hidden is used, assume the code has been annotated
12554   correspondingly for the symbols needed.  */
12555#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12556int fnord () __attribute__((visibility("default")));
12557#endif
12558
12559int fnord () { return 42; }
12560int main ()
12561{
12562  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12563  int status = $lt_dlunknown;
12564
12565  if (self)
12566    {
12567      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12568      else
12569        {
12570	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12571          else puts (dlerror ());
12572	}
12573      /* dlclose (self); */
12574    }
12575  else
12576    puts (dlerror ());
12577
12578  return status;
12579}
12580_LT_EOF
12581  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12582  (eval $ac_link) 2>&5
12583  ac_status=$?
12584  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12585  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12586    (./conftest; exit; ) >&5 2>/dev/null
12587    lt_status=$?
12588    case x$lt_status in
12589      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12590      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12591      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12592    esac
12593  else :
12594    # compilation failed
12595    lt_cv_dlopen_self=no
12596  fi
12597fi
12598rm -fr conftest*
12599
12600
12601fi
12602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12603printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12604
12605    if test yes = "$lt_cv_dlopen_self"; then
12606      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12607      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12608printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12609if test ${lt_cv_dlopen_self_static+y}
12610then :
12611  printf %s "(cached) " >&6
12612else $as_nop
12613  	  if test yes = "$cross_compiling"; then :
12614  lt_cv_dlopen_self_static=cross
12615else
12616  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12617  lt_status=$lt_dlunknown
12618  cat > conftest.$ac_ext <<_LT_EOF
12619#line $LINENO "configure"
12620#include "confdefs.h"
12621
12622#if HAVE_DLFCN_H
12623#include <dlfcn.h>
12624#endif
12625
12626#include <stdio.h>
12627
12628#ifdef RTLD_GLOBAL
12629#  define LT_DLGLOBAL		RTLD_GLOBAL
12630#else
12631#  ifdef DL_GLOBAL
12632#    define LT_DLGLOBAL		DL_GLOBAL
12633#  else
12634#    define LT_DLGLOBAL		0
12635#  endif
12636#endif
12637
12638/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12639   find out it does not work in some platform. */
12640#ifndef LT_DLLAZY_OR_NOW
12641#  ifdef RTLD_LAZY
12642#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12643#  else
12644#    ifdef DL_LAZY
12645#      define LT_DLLAZY_OR_NOW		DL_LAZY
12646#    else
12647#      ifdef RTLD_NOW
12648#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12649#      else
12650#        ifdef DL_NOW
12651#          define LT_DLLAZY_OR_NOW	DL_NOW
12652#        else
12653#          define LT_DLLAZY_OR_NOW	0
12654#        endif
12655#      endif
12656#    endif
12657#  endif
12658#endif
12659
12660/* When -fvisibility=hidden is used, assume the code has been annotated
12661   correspondingly for the symbols needed.  */
12662#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12663int fnord () __attribute__((visibility("default")));
12664#endif
12665
12666int fnord () { return 42; }
12667int main ()
12668{
12669  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12670  int status = $lt_dlunknown;
12671
12672  if (self)
12673    {
12674      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12675      else
12676        {
12677	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12678          else puts (dlerror ());
12679	}
12680      /* dlclose (self); */
12681    }
12682  else
12683    puts (dlerror ());
12684
12685  return status;
12686}
12687_LT_EOF
12688  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12689  (eval $ac_link) 2>&5
12690  ac_status=$?
12691  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12692  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12693    (./conftest; exit; ) >&5 2>/dev/null
12694    lt_status=$?
12695    case x$lt_status in
12696      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12697      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12698      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12699    esac
12700  else :
12701    # compilation failed
12702    lt_cv_dlopen_self_static=no
12703  fi
12704fi
12705rm -fr conftest*
12706
12707
12708fi
12709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12710printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12711    fi
12712
12713    CPPFLAGS=$save_CPPFLAGS
12714    LDFLAGS=$save_LDFLAGS
12715    LIBS=$save_LIBS
12716    ;;
12717  esac
12718
12719  case $lt_cv_dlopen_self in
12720  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12721  *) enable_dlopen_self=unknown ;;
12722  esac
12723
12724  case $lt_cv_dlopen_self_static in
12725  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12726  *) enable_dlopen_self_static=unknown ;;
12727  esac
12728fi
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746striplib=
12747old_striplib=
12748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12749printf %s "checking whether stripping libraries is possible... " >&6; }
12750if test -z "$STRIP"; then
12751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752printf "%s\n" "no" >&6; }
12753else
12754  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12755    old_striplib="$STRIP --strip-debug"
12756    striplib="$STRIP --strip-unneeded"
12757    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12758printf "%s\n" "yes" >&6; }
12759  else
12760    case $host_os in
12761    darwin*)
12762      # FIXME - insert some real tests, host_os isn't really good enough
12763      striplib="$STRIP -x"
12764      old_striplib="$STRIP -S"
12765      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12766printf "%s\n" "yes" >&6; }
12767      ;;
12768    freebsd*)
12769      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12770        old_striplib="$STRIP --strip-debug"
12771        striplib="$STRIP --strip-unneeded"
12772        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12773printf "%s\n" "yes" >&6; }
12774      else
12775        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776printf "%s\n" "no" >&6; }
12777      fi
12778      ;;
12779    *)
12780      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781printf "%s\n" "no" >&6; }
12782      ;;
12783    esac
12784  fi
12785fi
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798  # Report what library types will actually be built
12799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12800printf %s "checking if libtool supports shared libraries... " >&6; }
12801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12802printf "%s\n" "$can_build_shared" >&6; }
12803
12804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12805printf %s "checking whether to build shared libraries... " >&6; }
12806  test no = "$can_build_shared" && enable_shared=no
12807
12808  # On AIX, shared libraries and static libraries use the same namespace, and
12809  # are all built from PIC.
12810  case $host_os in
12811  aix3*)
12812    test yes = "$enable_shared" && enable_static=no
12813    if test -n "$RANLIB"; then
12814      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12815      postinstall_cmds='$RANLIB $lib'
12816    fi
12817    ;;
12818
12819  aix[4-9]*)
12820    if test ia64 != "$host_cpu"; then
12821      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12822      yes,aix,yes) ;;			# shared object as lib.so file only
12823      yes,svr4,*) ;;			# shared object as lib.so archive member only
12824      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12825      esac
12826    fi
12827    ;;
12828  esac
12829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12830printf "%s\n" "$enable_shared" >&6; }
12831
12832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12833printf %s "checking whether to build static libraries... " >&6; }
12834  # Make sure either enable_shared or enable_static is yes.
12835  test yes = "$enable_shared" || enable_static=yes
12836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12837printf "%s\n" "$enable_static" >&6; }
12838
12839
12840
12841
12842fi
12843ac_ext=c
12844ac_cpp='$CPP $CPPFLAGS'
12845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12847ac_compiler_gnu=$ac_cv_c_compiler_gnu
12848
12849CC=$lt_save_CC
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865        ac_config_commands="$ac_config_commands libtool"
12866
12867
12868
12869
12870# Only expand once:
12871
12872
12873
12874# Require xorg-macros minimum of 1.12 for DocBook external references
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12888printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12889if test ${ac_cv_c_undeclared_builtin_options+y}
12890then :
12891  printf %s "(cached) " >&6
12892else $as_nop
12893  ac_save_CFLAGS=$CFLAGS
12894   ac_cv_c_undeclared_builtin_options='cannot detect'
12895   for ac_arg in '' -fno-builtin; do
12896     CFLAGS="$ac_save_CFLAGS $ac_arg"
12897     # This test program should *not* compile successfully.
12898     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899/* end confdefs.h.  */
12900
12901int
12902main (void)
12903{
12904(void) strchr;
12905  ;
12906  return 0;
12907}
12908_ACEOF
12909if ac_fn_c_try_compile "$LINENO"
12910then :
12911
12912else $as_nop
12913  # This test program should compile successfully.
12914        # No library function is consistently available on
12915        # freestanding implementations, so test against a dummy
12916        # declaration.  Include always-available headers on the
12917        # off chance that they somehow elicit warnings.
12918        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919/* end confdefs.h.  */
12920#include <float.h>
12921#include <limits.h>
12922#include <stdarg.h>
12923#include <stddef.h>
12924extern void ac_decl (int, char *);
12925
12926int
12927main (void)
12928{
12929(void) ac_decl (0, (char *) 0);
12930  (void) ac_decl;
12931
12932  ;
12933  return 0;
12934}
12935_ACEOF
12936if ac_fn_c_try_compile "$LINENO"
12937then :
12938  if test x"$ac_arg" = x
12939then :
12940  ac_cv_c_undeclared_builtin_options='none needed'
12941else $as_nop
12942  ac_cv_c_undeclared_builtin_options=$ac_arg
12943fi
12944          break
12945fi
12946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12947fi
12948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12949    done
12950    CFLAGS=$ac_save_CFLAGS
12951
12952fi
12953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12954printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12955  case $ac_cv_c_undeclared_builtin_options in #(
12956  'cannot detect') :
12957    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12958printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12959as_fn_error $? "cannot make $CC report undeclared builtins
12960See \`config.log' for more details" "$LINENO" 5; } ;; #(
12961  'none needed') :
12962    ac_c_undeclared_builtin_options='' ;; #(
12963  *) :
12964    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12965esac
12966
12967
12968
12969
12970
12971ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12972if test "x$ac_cv_have_decl___clang__" = xyes
12973then :
12974  CLANGCC="yes"
12975else $as_nop
12976  CLANGCC="no"
12977fi
12978ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12979if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12980then :
12981  INTELCC="yes"
12982else $as_nop
12983  INTELCC="no"
12984fi
12985ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12986if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12987then :
12988  SUNCC="yes"
12989else $as_nop
12990  SUNCC="no"
12991fi
12992
12993
12994
12995
12996
12997
12998
12999
13000if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13001	if test -n "$ac_tool_prefix"; then
13002  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13003set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005printf %s "checking for $ac_word... " >&6; }
13006if test ${ac_cv_path_PKG_CONFIG+y}
13007then :
13008  printf %s "(cached) " >&6
13009else $as_nop
13010  case $PKG_CONFIG in
13011  [\\/]* | ?:[\\/]*)
13012  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13013  ;;
13014  *)
13015  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016for as_dir in $PATH
13017do
13018  IFS=$as_save_IFS
13019  case $as_dir in #(((
13020    '') as_dir=./ ;;
13021    */) ;;
13022    *) as_dir=$as_dir/ ;;
13023  esac
13024    for ac_exec_ext in '' $ac_executable_extensions; do
13025  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13026    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13027    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13028    break 2
13029  fi
13030done
13031  done
13032IFS=$as_save_IFS
13033
13034  ;;
13035esac
13036fi
13037PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13038if test -n "$PKG_CONFIG"; then
13039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13040printf "%s\n" "$PKG_CONFIG" >&6; }
13041else
13042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043printf "%s\n" "no" >&6; }
13044fi
13045
13046
13047fi
13048if test -z "$ac_cv_path_PKG_CONFIG"; then
13049  ac_pt_PKG_CONFIG=$PKG_CONFIG
13050  # Extract the first word of "pkg-config", so it can be a program name with args.
13051set dummy pkg-config; ac_word=$2
13052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053printf %s "checking for $ac_word... " >&6; }
13054if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13055then :
13056  printf %s "(cached) " >&6
13057else $as_nop
13058  case $ac_pt_PKG_CONFIG in
13059  [\\/]* | ?:[\\/]*)
13060  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13061  ;;
13062  *)
13063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064for as_dir in $PATH
13065do
13066  IFS=$as_save_IFS
13067  case $as_dir in #(((
13068    '') as_dir=./ ;;
13069    */) ;;
13070    *) as_dir=$as_dir/ ;;
13071  esac
13072    for ac_exec_ext in '' $ac_executable_extensions; do
13073  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13074    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13075    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13076    break 2
13077  fi
13078done
13079  done
13080IFS=$as_save_IFS
13081
13082  ;;
13083esac
13084fi
13085ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13086if test -n "$ac_pt_PKG_CONFIG"; then
13087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13088printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13089else
13090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091printf "%s\n" "no" >&6; }
13092fi
13093
13094  if test "x$ac_pt_PKG_CONFIG" = x; then
13095    PKG_CONFIG=""
13096  else
13097    case $cross_compiling:$ac_tool_warned in
13098yes:)
13099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13100printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13101ac_tool_warned=yes ;;
13102esac
13103    PKG_CONFIG=$ac_pt_PKG_CONFIG
13104  fi
13105else
13106  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13107fi
13108
13109fi
13110if test -n "$PKG_CONFIG"; then
13111	_pkg_min_version=0.9.0
13112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13113printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13114	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13116printf "%s\n" "yes" >&6; }
13117	else
13118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119printf "%s\n" "no" >&6; }
13120		PKG_CONFIG=""
13121	fi
13122fi
13123
13124
13125
13126
13127
13128# Check whether --enable-selective-werror was given.
13129if test ${enable_selective_werror+y}
13130then :
13131  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13132else $as_nop
13133  SELECTIVE_WERROR=yes
13134fi
13135
13136
13137
13138
13139
13140# -v is too short to test reliably with XORG_TESTSET_CFLAG
13141if test "x$SUNCC" = "xyes"; then
13142    BASE_CFLAGS="-v"
13143else
13144    BASE_CFLAGS=""
13145fi
13146
13147# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161xorg_testset_save_CFLAGS="$CFLAGS"
13162
13163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13164	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13165	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13167if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13168then :
13169  printf %s "(cached) " >&6
13170else $as_nop
13171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172/* end confdefs.h.  */
13173int i;
13174_ACEOF
13175if ac_fn_c_try_compile "$LINENO"
13176then :
13177  xorg_cv_cc_flag_unknown_warning_option=yes
13178else $as_nop
13179  xorg_cv_cc_flag_unknown_warning_option=no
13180fi
13181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13182fi
13183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13184printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13186	CFLAGS="$xorg_testset_save_CFLAGS"
13187fi
13188
13189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13192	fi
13193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13195printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13196if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13197then :
13198  printf %s "(cached) " >&6
13199else $as_nop
13200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201/* end confdefs.h.  */
13202int i;
13203_ACEOF
13204if ac_fn_c_try_compile "$LINENO"
13205then :
13206  xorg_cv_cc_flag_unused_command_line_argument=yes
13207else $as_nop
13208  xorg_cv_cc_flag_unused_command_line_argument=no
13209fi
13210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13211fi
13212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13214	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13215	CFLAGS="$xorg_testset_save_CFLAGS"
13216fi
13217
13218found="no"
13219
13220	if test $found = "no" ; then
13221		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13223		fi
13224
13225		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13227		fi
13228
13229		CFLAGS="$CFLAGS -Wall"
13230
13231		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13232printf %s "checking if $CC supports -Wall... " >&6; }
13233		cacheid=xorg_cv_cc_flag__Wall
13234		if eval test \${$cacheid+y}
13235then :
13236  printf %s "(cached) " >&6
13237else $as_nop
13238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239/* end confdefs.h.  */
13240int i;
13241int
13242main (void)
13243{
13244
13245  ;
13246  return 0;
13247}
13248_ACEOF
13249if ac_fn_c_try_link "$LINENO"
13250then :
13251  eval $cacheid=yes
13252else $as_nop
13253  eval $cacheid=no
13254fi
13255rm -f core conftest.err conftest.$ac_objext conftest.beam \
13256    conftest$ac_exeext conftest.$ac_ext
13257fi
13258
13259
13260		CFLAGS="$xorg_testset_save_CFLAGS"
13261
13262		eval supported=\$$cacheid
13263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13264printf "%s\n" "$supported" >&6; }
13265		if test "$supported" = "yes" ; then
13266			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13267			found="yes"
13268		fi
13269	fi
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285xorg_testset_save_CFLAGS="$CFLAGS"
13286
13287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13289	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13290printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13291if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13292then :
13293  printf %s "(cached) " >&6
13294else $as_nop
13295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296/* end confdefs.h.  */
13297int i;
13298_ACEOF
13299if ac_fn_c_try_compile "$LINENO"
13300then :
13301  xorg_cv_cc_flag_unknown_warning_option=yes
13302else $as_nop
13303  xorg_cv_cc_flag_unknown_warning_option=no
13304fi
13305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13306fi
13307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13308printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13310	CFLAGS="$xorg_testset_save_CFLAGS"
13311fi
13312
13313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13316	fi
13317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13319printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13320if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13321then :
13322  printf %s "(cached) " >&6
13323else $as_nop
13324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325/* end confdefs.h.  */
13326int i;
13327_ACEOF
13328if ac_fn_c_try_compile "$LINENO"
13329then :
13330  xorg_cv_cc_flag_unused_command_line_argument=yes
13331else $as_nop
13332  xorg_cv_cc_flag_unused_command_line_argument=no
13333fi
13334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13335fi
13336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13337printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13338	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13339	CFLAGS="$xorg_testset_save_CFLAGS"
13340fi
13341
13342found="no"
13343
13344	if test $found = "no" ; then
13345		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13346			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13347		fi
13348
13349		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13350			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13351		fi
13352
13353		CFLAGS="$CFLAGS -Wpointer-arith"
13354
13355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13356printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13357		cacheid=xorg_cv_cc_flag__Wpointer_arith
13358		if eval test \${$cacheid+y}
13359then :
13360  printf %s "(cached) " >&6
13361else $as_nop
13362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363/* end confdefs.h.  */
13364int i;
13365int
13366main (void)
13367{
13368
13369  ;
13370  return 0;
13371}
13372_ACEOF
13373if ac_fn_c_try_link "$LINENO"
13374then :
13375  eval $cacheid=yes
13376else $as_nop
13377  eval $cacheid=no
13378fi
13379rm -f core conftest.err conftest.$ac_objext conftest.beam \
13380    conftest$ac_exeext conftest.$ac_ext
13381fi
13382
13383
13384		CFLAGS="$xorg_testset_save_CFLAGS"
13385
13386		eval supported=\$$cacheid
13387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13388printf "%s\n" "$supported" >&6; }
13389		if test "$supported" = "yes" ; then
13390			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13391			found="yes"
13392		fi
13393	fi
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409xorg_testset_save_CFLAGS="$CFLAGS"
13410
13411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13413	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13415if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13416then :
13417  printf %s "(cached) " >&6
13418else $as_nop
13419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420/* end confdefs.h.  */
13421int i;
13422_ACEOF
13423if ac_fn_c_try_compile "$LINENO"
13424then :
13425  xorg_cv_cc_flag_unknown_warning_option=yes
13426else $as_nop
13427  xorg_cv_cc_flag_unknown_warning_option=no
13428fi
13429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13430fi
13431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13432printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13434	CFLAGS="$xorg_testset_save_CFLAGS"
13435fi
13436
13437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13440	fi
13441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13442	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13443printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13444if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13445then :
13446  printf %s "(cached) " >&6
13447else $as_nop
13448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449/* end confdefs.h.  */
13450int i;
13451_ACEOF
13452if ac_fn_c_try_compile "$LINENO"
13453then :
13454  xorg_cv_cc_flag_unused_command_line_argument=yes
13455else $as_nop
13456  xorg_cv_cc_flag_unused_command_line_argument=no
13457fi
13458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13459fi
13460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13461printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13463	CFLAGS="$xorg_testset_save_CFLAGS"
13464fi
13465
13466found="no"
13467
13468	if test $found = "no" ; then
13469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13471		fi
13472
13473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13475		fi
13476
13477		CFLAGS="$CFLAGS -Wmissing-declarations"
13478
13479		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13480printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13481		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13482		if eval test \${$cacheid+y}
13483then :
13484  printf %s "(cached) " >&6
13485else $as_nop
13486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h.  */
13488int i;
13489int
13490main (void)
13491{
13492
13493  ;
13494  return 0;
13495}
13496_ACEOF
13497if ac_fn_c_try_link "$LINENO"
13498then :
13499  eval $cacheid=yes
13500else $as_nop
13501  eval $cacheid=no
13502fi
13503rm -f core conftest.err conftest.$ac_objext conftest.beam \
13504    conftest$ac_exeext conftest.$ac_ext
13505fi
13506
13507
13508		CFLAGS="$xorg_testset_save_CFLAGS"
13509
13510		eval supported=\$$cacheid
13511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13512printf "%s\n" "$supported" >&6; }
13513		if test "$supported" = "yes" ; then
13514			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13515			found="yes"
13516		fi
13517	fi
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533xorg_testset_save_CFLAGS="$CFLAGS"
13534
13535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13537	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13539if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13540then :
13541  printf %s "(cached) " >&6
13542else $as_nop
13543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544/* end confdefs.h.  */
13545int i;
13546_ACEOF
13547if ac_fn_c_try_compile "$LINENO"
13548then :
13549  xorg_cv_cc_flag_unknown_warning_option=yes
13550else $as_nop
13551  xorg_cv_cc_flag_unknown_warning_option=no
13552fi
13553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13554fi
13555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13558	CFLAGS="$xorg_testset_save_CFLAGS"
13559fi
13560
13561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13564	fi
13565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13568if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13569then :
13570  printf %s "(cached) " >&6
13571else $as_nop
13572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573/* end confdefs.h.  */
13574int i;
13575_ACEOF
13576if ac_fn_c_try_compile "$LINENO"
13577then :
13578  xorg_cv_cc_flag_unused_command_line_argument=yes
13579else $as_nop
13580  xorg_cv_cc_flag_unused_command_line_argument=no
13581fi
13582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13583fi
13584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13587	CFLAGS="$xorg_testset_save_CFLAGS"
13588fi
13589
13590found="no"
13591
13592	if test $found = "no" ; then
13593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13595		fi
13596
13597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13599		fi
13600
13601		CFLAGS="$CFLAGS -Wformat=2"
13602
13603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13604printf %s "checking if $CC supports -Wformat=2... " >&6; }
13605		cacheid=xorg_cv_cc_flag__Wformat_2
13606		if eval test \${$cacheid+y}
13607then :
13608  printf %s "(cached) " >&6
13609else $as_nop
13610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612int i;
13613int
13614main (void)
13615{
13616
13617  ;
13618  return 0;
13619}
13620_ACEOF
13621if ac_fn_c_try_link "$LINENO"
13622then :
13623  eval $cacheid=yes
13624else $as_nop
13625  eval $cacheid=no
13626fi
13627rm -f core conftest.err conftest.$ac_objext conftest.beam \
13628    conftest$ac_exeext conftest.$ac_ext
13629fi
13630
13631
13632		CFLAGS="$xorg_testset_save_CFLAGS"
13633
13634		eval supported=\$$cacheid
13635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13636printf "%s\n" "$supported" >&6; }
13637		if test "$supported" = "yes" ; then
13638			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13639			found="yes"
13640		fi
13641	fi
13642
13643	if test $found = "no" ; then
13644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13646		fi
13647
13648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13650		fi
13651
13652		CFLAGS="$CFLAGS -Wformat"
13653
13654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13655printf %s "checking if $CC supports -Wformat... " >&6; }
13656		cacheid=xorg_cv_cc_flag__Wformat
13657		if eval test \${$cacheid+y}
13658then :
13659  printf %s "(cached) " >&6
13660else $as_nop
13661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662/* end confdefs.h.  */
13663int i;
13664int
13665main (void)
13666{
13667
13668  ;
13669  return 0;
13670}
13671_ACEOF
13672if ac_fn_c_try_link "$LINENO"
13673then :
13674  eval $cacheid=yes
13675else $as_nop
13676  eval $cacheid=no
13677fi
13678rm -f core conftest.err conftest.$ac_objext conftest.beam \
13679    conftest$ac_exeext conftest.$ac_ext
13680fi
13681
13682
13683		CFLAGS="$xorg_testset_save_CFLAGS"
13684
13685		eval supported=\$$cacheid
13686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13687printf "%s\n" "$supported" >&6; }
13688		if test "$supported" = "yes" ; then
13689			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13690			found="yes"
13691		fi
13692	fi
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710xorg_testset_save_CFLAGS="$CFLAGS"
13711
13712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13714	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13715printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13716if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13717then :
13718  printf %s "(cached) " >&6
13719else $as_nop
13720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721/* end confdefs.h.  */
13722int i;
13723_ACEOF
13724if ac_fn_c_try_compile "$LINENO"
13725then :
13726  xorg_cv_cc_flag_unknown_warning_option=yes
13727else $as_nop
13728  xorg_cv_cc_flag_unknown_warning_option=no
13729fi
13730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13731fi
13732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13734	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13735	CFLAGS="$xorg_testset_save_CFLAGS"
13736fi
13737
13738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13739	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13740		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13741	fi
13742	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13745if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13746then :
13747  printf %s "(cached) " >&6
13748else $as_nop
13749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750/* end confdefs.h.  */
13751int i;
13752_ACEOF
13753if ac_fn_c_try_compile "$LINENO"
13754then :
13755  xorg_cv_cc_flag_unused_command_line_argument=yes
13756else $as_nop
13757  xorg_cv_cc_flag_unused_command_line_argument=no
13758fi
13759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13760fi
13761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13762printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13763	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13764	CFLAGS="$xorg_testset_save_CFLAGS"
13765fi
13766
13767found="no"
13768
13769	if test $found = "no" ; then
13770		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13772		fi
13773
13774		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13776		fi
13777
13778		CFLAGS="$CFLAGS -Wstrict-prototypes"
13779
13780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13781printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13782		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13783		if eval test \${$cacheid+y}
13784then :
13785  printf %s "(cached) " >&6
13786else $as_nop
13787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788/* end confdefs.h.  */
13789int i;
13790int
13791main (void)
13792{
13793
13794  ;
13795  return 0;
13796}
13797_ACEOF
13798if ac_fn_c_try_link "$LINENO"
13799then :
13800  eval $cacheid=yes
13801else $as_nop
13802  eval $cacheid=no
13803fi
13804rm -f core conftest.err conftest.$ac_objext conftest.beam \
13805    conftest$ac_exeext conftest.$ac_ext
13806fi
13807
13808
13809		CFLAGS="$xorg_testset_save_CFLAGS"
13810
13811		eval supported=\$$cacheid
13812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13813printf "%s\n" "$supported" >&6; }
13814		if test "$supported" = "yes" ; then
13815			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13816			found="yes"
13817		fi
13818	fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834xorg_testset_save_CFLAGS="$CFLAGS"
13835
13836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13838	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13840if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13841then :
13842  printf %s "(cached) " >&6
13843else $as_nop
13844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845/* end confdefs.h.  */
13846int i;
13847_ACEOF
13848if ac_fn_c_try_compile "$LINENO"
13849then :
13850  xorg_cv_cc_flag_unknown_warning_option=yes
13851else $as_nop
13852  xorg_cv_cc_flag_unknown_warning_option=no
13853fi
13854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13855fi
13856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13857printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13858	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13859	CFLAGS="$xorg_testset_save_CFLAGS"
13860fi
13861
13862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13863	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13864		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13865	fi
13866	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13868printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13869if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13870then :
13871  printf %s "(cached) " >&6
13872else $as_nop
13873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874/* end confdefs.h.  */
13875int i;
13876_ACEOF
13877if ac_fn_c_try_compile "$LINENO"
13878then :
13879  xorg_cv_cc_flag_unused_command_line_argument=yes
13880else $as_nop
13881  xorg_cv_cc_flag_unused_command_line_argument=no
13882fi
13883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13884fi
13885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13888	CFLAGS="$xorg_testset_save_CFLAGS"
13889fi
13890
13891found="no"
13892
13893	if test $found = "no" ; then
13894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13896		fi
13897
13898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13900		fi
13901
13902		CFLAGS="$CFLAGS -Wmissing-prototypes"
13903
13904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13905printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13906		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13907		if eval test \${$cacheid+y}
13908then :
13909  printf %s "(cached) " >&6
13910else $as_nop
13911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912/* end confdefs.h.  */
13913int i;
13914int
13915main (void)
13916{
13917
13918  ;
13919  return 0;
13920}
13921_ACEOF
13922if ac_fn_c_try_link "$LINENO"
13923then :
13924  eval $cacheid=yes
13925else $as_nop
13926  eval $cacheid=no
13927fi
13928rm -f core conftest.err conftest.$ac_objext conftest.beam \
13929    conftest$ac_exeext conftest.$ac_ext
13930fi
13931
13932
13933		CFLAGS="$xorg_testset_save_CFLAGS"
13934
13935		eval supported=\$$cacheid
13936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13937printf "%s\n" "$supported" >&6; }
13938		if test "$supported" = "yes" ; then
13939			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13940			found="yes"
13941		fi
13942	fi
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958xorg_testset_save_CFLAGS="$CFLAGS"
13959
13960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13962	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13963printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13964if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13965then :
13966  printf %s "(cached) " >&6
13967else $as_nop
13968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969/* end confdefs.h.  */
13970int i;
13971_ACEOF
13972if ac_fn_c_try_compile "$LINENO"
13973then :
13974  xorg_cv_cc_flag_unknown_warning_option=yes
13975else $as_nop
13976  xorg_cv_cc_flag_unknown_warning_option=no
13977fi
13978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13979fi
13980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13983	CFLAGS="$xorg_testset_save_CFLAGS"
13984fi
13985
13986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13989	fi
13990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13991	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13993if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13994then :
13995  printf %s "(cached) " >&6
13996else $as_nop
13997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998/* end confdefs.h.  */
13999int i;
14000_ACEOF
14001if ac_fn_c_try_compile "$LINENO"
14002then :
14003  xorg_cv_cc_flag_unused_command_line_argument=yes
14004else $as_nop
14005  xorg_cv_cc_flag_unused_command_line_argument=no
14006fi
14007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14008fi
14009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14012	CFLAGS="$xorg_testset_save_CFLAGS"
14013fi
14014
14015found="no"
14016
14017	if test $found = "no" ; then
14018		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14020		fi
14021
14022		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14024		fi
14025
14026		CFLAGS="$CFLAGS -Wnested-externs"
14027
14028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14029printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14030		cacheid=xorg_cv_cc_flag__Wnested_externs
14031		if eval test \${$cacheid+y}
14032then :
14033  printf %s "(cached) " >&6
14034else $as_nop
14035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036/* end confdefs.h.  */
14037int i;
14038int
14039main (void)
14040{
14041
14042  ;
14043  return 0;
14044}
14045_ACEOF
14046if ac_fn_c_try_link "$LINENO"
14047then :
14048  eval $cacheid=yes
14049else $as_nop
14050  eval $cacheid=no
14051fi
14052rm -f core conftest.err conftest.$ac_objext conftest.beam \
14053    conftest$ac_exeext conftest.$ac_ext
14054fi
14055
14056
14057		CFLAGS="$xorg_testset_save_CFLAGS"
14058
14059		eval supported=\$$cacheid
14060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14061printf "%s\n" "$supported" >&6; }
14062		if test "$supported" = "yes" ; then
14063			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14064			found="yes"
14065		fi
14066	fi
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082xorg_testset_save_CFLAGS="$CFLAGS"
14083
14084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14088if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14089then :
14090  printf %s "(cached) " >&6
14091else $as_nop
14092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14093/* end confdefs.h.  */
14094int i;
14095_ACEOF
14096if ac_fn_c_try_compile "$LINENO"
14097then :
14098  xorg_cv_cc_flag_unknown_warning_option=yes
14099else $as_nop
14100  xorg_cv_cc_flag_unknown_warning_option=no
14101fi
14102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14103fi
14104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14105printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14107	CFLAGS="$xorg_testset_save_CFLAGS"
14108fi
14109
14110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14113	fi
14114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14115	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14116printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14117if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14118then :
14119  printf %s "(cached) " >&6
14120else $as_nop
14121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122/* end confdefs.h.  */
14123int i;
14124_ACEOF
14125if ac_fn_c_try_compile "$LINENO"
14126then :
14127  xorg_cv_cc_flag_unused_command_line_argument=yes
14128else $as_nop
14129  xorg_cv_cc_flag_unused_command_line_argument=no
14130fi
14131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14132fi
14133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14134printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14135	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14136	CFLAGS="$xorg_testset_save_CFLAGS"
14137fi
14138
14139found="no"
14140
14141	if test $found = "no" ; then
14142		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14144		fi
14145
14146		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14148		fi
14149
14150		CFLAGS="$CFLAGS -Wbad-function-cast"
14151
14152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14153printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14154		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14155		if eval test \${$cacheid+y}
14156then :
14157  printf %s "(cached) " >&6
14158else $as_nop
14159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160/* end confdefs.h.  */
14161int i;
14162int
14163main (void)
14164{
14165
14166  ;
14167  return 0;
14168}
14169_ACEOF
14170if ac_fn_c_try_link "$LINENO"
14171then :
14172  eval $cacheid=yes
14173else $as_nop
14174  eval $cacheid=no
14175fi
14176rm -f core conftest.err conftest.$ac_objext conftest.beam \
14177    conftest$ac_exeext conftest.$ac_ext
14178fi
14179
14180
14181		CFLAGS="$xorg_testset_save_CFLAGS"
14182
14183		eval supported=\$$cacheid
14184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14185printf "%s\n" "$supported" >&6; }
14186		if test "$supported" = "yes" ; then
14187			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14188			found="yes"
14189		fi
14190	fi
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206xorg_testset_save_CFLAGS="$CFLAGS"
14207
14208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14212if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14213then :
14214  printf %s "(cached) " >&6
14215else $as_nop
14216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217/* end confdefs.h.  */
14218int i;
14219_ACEOF
14220if ac_fn_c_try_compile "$LINENO"
14221then :
14222  xorg_cv_cc_flag_unknown_warning_option=yes
14223else $as_nop
14224  xorg_cv_cc_flag_unknown_warning_option=no
14225fi
14226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14227fi
14228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14231	CFLAGS="$xorg_testset_save_CFLAGS"
14232fi
14233
14234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14237	fi
14238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14241if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14242then :
14243  printf %s "(cached) " >&6
14244else $as_nop
14245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246/* end confdefs.h.  */
14247int i;
14248_ACEOF
14249if ac_fn_c_try_compile "$LINENO"
14250then :
14251  xorg_cv_cc_flag_unused_command_line_argument=yes
14252else $as_nop
14253  xorg_cv_cc_flag_unused_command_line_argument=no
14254fi
14255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14256fi
14257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14260	CFLAGS="$xorg_testset_save_CFLAGS"
14261fi
14262
14263found="no"
14264
14265	if test $found = "no" ; then
14266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14268		fi
14269
14270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14272		fi
14273
14274		CFLAGS="$CFLAGS -Wold-style-definition"
14275
14276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14277printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14278		cacheid=xorg_cv_cc_flag__Wold_style_definition
14279		if eval test \${$cacheid+y}
14280then :
14281  printf %s "(cached) " >&6
14282else $as_nop
14283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284/* end confdefs.h.  */
14285int i;
14286int
14287main (void)
14288{
14289
14290  ;
14291  return 0;
14292}
14293_ACEOF
14294if ac_fn_c_try_link "$LINENO"
14295then :
14296  eval $cacheid=yes
14297else $as_nop
14298  eval $cacheid=no
14299fi
14300rm -f core conftest.err conftest.$ac_objext conftest.beam \
14301    conftest$ac_exeext conftest.$ac_ext
14302fi
14303
14304
14305		CFLAGS="$xorg_testset_save_CFLAGS"
14306
14307		eval supported=\$$cacheid
14308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14309printf "%s\n" "$supported" >&6; }
14310		if test "$supported" = "yes" ; then
14311			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14312			found="yes"
14313		fi
14314	fi
14315
14316	if test $found = "no" ; then
14317		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14319		fi
14320
14321		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14323		fi
14324
14325		CFLAGS="$CFLAGS -fd"
14326
14327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14328printf %s "checking if $CC supports -fd... " >&6; }
14329		cacheid=xorg_cv_cc_flag__fd
14330		if eval test \${$cacheid+y}
14331then :
14332  printf %s "(cached) " >&6
14333else $as_nop
14334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335/* end confdefs.h.  */
14336int i;
14337int
14338main (void)
14339{
14340
14341  ;
14342  return 0;
14343}
14344_ACEOF
14345if ac_fn_c_try_link "$LINENO"
14346then :
14347  eval $cacheid=yes
14348else $as_nop
14349  eval $cacheid=no
14350fi
14351rm -f core conftest.err conftest.$ac_objext conftest.beam \
14352    conftest$ac_exeext conftest.$ac_ext
14353fi
14354
14355
14356		CFLAGS="$xorg_testset_save_CFLAGS"
14357
14358		eval supported=\$$cacheid
14359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14360printf "%s\n" "$supported" >&6; }
14361		if test "$supported" = "yes" ; then
14362			BASE_CFLAGS="$BASE_CFLAGS -fd"
14363			found="yes"
14364		fi
14365	fi
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381xorg_testset_save_CFLAGS="$CFLAGS"
14382
14383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14387if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14388then :
14389  printf %s "(cached) " >&6
14390else $as_nop
14391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392/* end confdefs.h.  */
14393int i;
14394_ACEOF
14395if ac_fn_c_try_compile "$LINENO"
14396then :
14397  xorg_cv_cc_flag_unknown_warning_option=yes
14398else $as_nop
14399  xorg_cv_cc_flag_unknown_warning_option=no
14400fi
14401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14402fi
14403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14406	CFLAGS="$xorg_testset_save_CFLAGS"
14407fi
14408
14409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14412	fi
14413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14416if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14417then :
14418  printf %s "(cached) " >&6
14419else $as_nop
14420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421/* end confdefs.h.  */
14422int i;
14423_ACEOF
14424if ac_fn_c_try_compile "$LINENO"
14425then :
14426  xorg_cv_cc_flag_unused_command_line_argument=yes
14427else $as_nop
14428  xorg_cv_cc_flag_unused_command_line_argument=no
14429fi
14430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14431fi
14432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14433printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14435	CFLAGS="$xorg_testset_save_CFLAGS"
14436fi
14437
14438found="no"
14439
14440	if test $found = "no" ; then
14441		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14443		fi
14444
14445		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14447		fi
14448
14449		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14450
14451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14452printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14453		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14454		if eval test \${$cacheid+y}
14455then :
14456  printf %s "(cached) " >&6
14457else $as_nop
14458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459/* end confdefs.h.  */
14460int i;
14461int
14462main (void)
14463{
14464
14465  ;
14466  return 0;
14467}
14468_ACEOF
14469if ac_fn_c_try_link "$LINENO"
14470then :
14471  eval $cacheid=yes
14472else $as_nop
14473  eval $cacheid=no
14474fi
14475rm -f core conftest.err conftest.$ac_objext conftest.beam \
14476    conftest$ac_exeext conftest.$ac_ext
14477fi
14478
14479
14480		CFLAGS="$xorg_testset_save_CFLAGS"
14481
14482		eval supported=\$$cacheid
14483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14484printf "%s\n" "$supported" >&6; }
14485		if test "$supported" = "yes" ; then
14486			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14487			found="yes"
14488		fi
14489	fi
14490
14491
14492
14493
14494
14495# This chunk adds additional warnings that could catch undesired effects.
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509xorg_testset_save_CFLAGS="$CFLAGS"
14510
14511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14512	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14513	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14514printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14515if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14516then :
14517  printf %s "(cached) " >&6
14518else $as_nop
14519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520/* end confdefs.h.  */
14521int i;
14522_ACEOF
14523if ac_fn_c_try_compile "$LINENO"
14524then :
14525  xorg_cv_cc_flag_unknown_warning_option=yes
14526else $as_nop
14527  xorg_cv_cc_flag_unknown_warning_option=no
14528fi
14529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14530fi
14531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14534	CFLAGS="$xorg_testset_save_CFLAGS"
14535fi
14536
14537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14540	fi
14541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14544if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14545then :
14546  printf %s "(cached) " >&6
14547else $as_nop
14548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549/* end confdefs.h.  */
14550int i;
14551_ACEOF
14552if ac_fn_c_try_compile "$LINENO"
14553then :
14554  xorg_cv_cc_flag_unused_command_line_argument=yes
14555else $as_nop
14556  xorg_cv_cc_flag_unused_command_line_argument=no
14557fi
14558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14559fi
14560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14563	CFLAGS="$xorg_testset_save_CFLAGS"
14564fi
14565
14566found="no"
14567
14568	if test $found = "no" ; then
14569		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14571		fi
14572
14573		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14575		fi
14576
14577		CFLAGS="$CFLAGS -Wunused"
14578
14579		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14580printf %s "checking if $CC supports -Wunused... " >&6; }
14581		cacheid=xorg_cv_cc_flag__Wunused
14582		if eval test \${$cacheid+y}
14583then :
14584  printf %s "(cached) " >&6
14585else $as_nop
14586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587/* end confdefs.h.  */
14588int i;
14589int
14590main (void)
14591{
14592
14593  ;
14594  return 0;
14595}
14596_ACEOF
14597if ac_fn_c_try_link "$LINENO"
14598then :
14599  eval $cacheid=yes
14600else $as_nop
14601  eval $cacheid=no
14602fi
14603rm -f core conftest.err conftest.$ac_objext conftest.beam \
14604    conftest$ac_exeext conftest.$ac_ext
14605fi
14606
14607
14608		CFLAGS="$xorg_testset_save_CFLAGS"
14609
14610		eval supported=\$$cacheid
14611		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14612printf "%s\n" "$supported" >&6; }
14613		if test "$supported" = "yes" ; then
14614			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14615			found="yes"
14616		fi
14617	fi
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633xorg_testset_save_CFLAGS="$CFLAGS"
14634
14635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14636	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14638printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14639if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14640then :
14641  printf %s "(cached) " >&6
14642else $as_nop
14643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644/* end confdefs.h.  */
14645int i;
14646_ACEOF
14647if ac_fn_c_try_compile "$LINENO"
14648then :
14649  xorg_cv_cc_flag_unknown_warning_option=yes
14650else $as_nop
14651  xorg_cv_cc_flag_unknown_warning_option=no
14652fi
14653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14654fi
14655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14656printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14657	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14658	CFLAGS="$xorg_testset_save_CFLAGS"
14659fi
14660
14661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14662	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14663		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664	fi
14665	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14667printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14668if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14669then :
14670  printf %s "(cached) " >&6
14671else $as_nop
14672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673/* end confdefs.h.  */
14674int i;
14675_ACEOF
14676if ac_fn_c_try_compile "$LINENO"
14677then :
14678  xorg_cv_cc_flag_unused_command_line_argument=yes
14679else $as_nop
14680  xorg_cv_cc_flag_unused_command_line_argument=no
14681fi
14682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14683fi
14684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14686	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14687	CFLAGS="$xorg_testset_save_CFLAGS"
14688fi
14689
14690found="no"
14691
14692	if test $found = "no" ; then
14693		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14694			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14695		fi
14696
14697		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14698			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14699		fi
14700
14701		CFLAGS="$CFLAGS -Wuninitialized"
14702
14703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14704printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14705		cacheid=xorg_cv_cc_flag__Wuninitialized
14706		if eval test \${$cacheid+y}
14707then :
14708  printf %s "(cached) " >&6
14709else $as_nop
14710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711/* end confdefs.h.  */
14712int i;
14713int
14714main (void)
14715{
14716
14717  ;
14718  return 0;
14719}
14720_ACEOF
14721if ac_fn_c_try_link "$LINENO"
14722then :
14723  eval $cacheid=yes
14724else $as_nop
14725  eval $cacheid=no
14726fi
14727rm -f core conftest.err conftest.$ac_objext conftest.beam \
14728    conftest$ac_exeext conftest.$ac_ext
14729fi
14730
14731
14732		CFLAGS="$xorg_testset_save_CFLAGS"
14733
14734		eval supported=\$$cacheid
14735		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14736printf "%s\n" "$supported" >&6; }
14737		if test "$supported" = "yes" ; then
14738			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14739			found="yes"
14740		fi
14741	fi
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757xorg_testset_save_CFLAGS="$CFLAGS"
14758
14759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14761	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14762printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14763if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14764then :
14765  printf %s "(cached) " >&6
14766else $as_nop
14767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768/* end confdefs.h.  */
14769int i;
14770_ACEOF
14771if ac_fn_c_try_compile "$LINENO"
14772then :
14773  xorg_cv_cc_flag_unknown_warning_option=yes
14774else $as_nop
14775  xorg_cv_cc_flag_unknown_warning_option=no
14776fi
14777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14778fi
14779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14782	CFLAGS="$xorg_testset_save_CFLAGS"
14783fi
14784
14785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14788	fi
14789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14792if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14793then :
14794  printf %s "(cached) " >&6
14795else $as_nop
14796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797/* end confdefs.h.  */
14798int i;
14799_ACEOF
14800if ac_fn_c_try_compile "$LINENO"
14801then :
14802  xorg_cv_cc_flag_unused_command_line_argument=yes
14803else $as_nop
14804  xorg_cv_cc_flag_unused_command_line_argument=no
14805fi
14806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14807fi
14808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14810	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14811	CFLAGS="$xorg_testset_save_CFLAGS"
14812fi
14813
14814found="no"
14815
14816	if test $found = "no" ; then
14817		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14819		fi
14820
14821		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14823		fi
14824
14825		CFLAGS="$CFLAGS -Wshadow"
14826
14827		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14828printf %s "checking if $CC supports -Wshadow... " >&6; }
14829		cacheid=xorg_cv_cc_flag__Wshadow
14830		if eval test \${$cacheid+y}
14831then :
14832  printf %s "(cached) " >&6
14833else $as_nop
14834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835/* end confdefs.h.  */
14836int i;
14837int
14838main (void)
14839{
14840
14841  ;
14842  return 0;
14843}
14844_ACEOF
14845if ac_fn_c_try_link "$LINENO"
14846then :
14847  eval $cacheid=yes
14848else $as_nop
14849  eval $cacheid=no
14850fi
14851rm -f core conftest.err conftest.$ac_objext conftest.beam \
14852    conftest$ac_exeext conftest.$ac_ext
14853fi
14854
14855
14856		CFLAGS="$xorg_testset_save_CFLAGS"
14857
14858		eval supported=\$$cacheid
14859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14860printf "%s\n" "$supported" >&6; }
14861		if test "$supported" = "yes" ; then
14862			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14863			found="yes"
14864		fi
14865	fi
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881xorg_testset_save_CFLAGS="$CFLAGS"
14882
14883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14885	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14887if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14888then :
14889  printf %s "(cached) " >&6
14890else $as_nop
14891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892/* end confdefs.h.  */
14893int i;
14894_ACEOF
14895if ac_fn_c_try_compile "$LINENO"
14896then :
14897  xorg_cv_cc_flag_unknown_warning_option=yes
14898else $as_nop
14899  xorg_cv_cc_flag_unknown_warning_option=no
14900fi
14901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14902fi
14903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14906	CFLAGS="$xorg_testset_save_CFLAGS"
14907fi
14908
14909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14912	fi
14913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14916if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14917then :
14918  printf %s "(cached) " >&6
14919else $as_nop
14920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921/* end confdefs.h.  */
14922int i;
14923_ACEOF
14924if ac_fn_c_try_compile "$LINENO"
14925then :
14926  xorg_cv_cc_flag_unused_command_line_argument=yes
14927else $as_nop
14928  xorg_cv_cc_flag_unused_command_line_argument=no
14929fi
14930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14931fi
14932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14935	CFLAGS="$xorg_testset_save_CFLAGS"
14936fi
14937
14938found="no"
14939
14940	if test $found = "no" ; then
14941		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14943		fi
14944
14945		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14947		fi
14948
14949		CFLAGS="$CFLAGS -Wmissing-noreturn"
14950
14951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14952printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14953		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14954		if eval test \${$cacheid+y}
14955then :
14956  printf %s "(cached) " >&6
14957else $as_nop
14958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959/* end confdefs.h.  */
14960int i;
14961int
14962main (void)
14963{
14964
14965  ;
14966  return 0;
14967}
14968_ACEOF
14969if ac_fn_c_try_link "$LINENO"
14970then :
14971  eval $cacheid=yes
14972else $as_nop
14973  eval $cacheid=no
14974fi
14975rm -f core conftest.err conftest.$ac_objext conftest.beam \
14976    conftest$ac_exeext conftest.$ac_ext
14977fi
14978
14979
14980		CFLAGS="$xorg_testset_save_CFLAGS"
14981
14982		eval supported=\$$cacheid
14983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14984printf "%s\n" "$supported" >&6; }
14985		if test "$supported" = "yes" ; then
14986			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14987			found="yes"
14988		fi
14989	fi
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005xorg_testset_save_CFLAGS="$CFLAGS"
15006
15007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15011if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15012then :
15013  printf %s "(cached) " >&6
15014else $as_nop
15015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016/* end confdefs.h.  */
15017int i;
15018_ACEOF
15019if ac_fn_c_try_compile "$LINENO"
15020then :
15021  xorg_cv_cc_flag_unknown_warning_option=yes
15022else $as_nop
15023  xorg_cv_cc_flag_unknown_warning_option=no
15024fi
15025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15026fi
15027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15030	CFLAGS="$xorg_testset_save_CFLAGS"
15031fi
15032
15033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15036	fi
15037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15040if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15041then :
15042  printf %s "(cached) " >&6
15043else $as_nop
15044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045/* end confdefs.h.  */
15046int i;
15047_ACEOF
15048if ac_fn_c_try_compile "$LINENO"
15049then :
15050  xorg_cv_cc_flag_unused_command_line_argument=yes
15051else $as_nop
15052  xorg_cv_cc_flag_unused_command_line_argument=no
15053fi
15054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15055fi
15056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15059	CFLAGS="$xorg_testset_save_CFLAGS"
15060fi
15061
15062found="no"
15063
15064	if test $found = "no" ; then
15065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15067		fi
15068
15069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15071		fi
15072
15073		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15074
15075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15076printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15077		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15078		if eval test \${$cacheid+y}
15079then :
15080  printf %s "(cached) " >&6
15081else $as_nop
15082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083/* end confdefs.h.  */
15084int i;
15085int
15086main (void)
15087{
15088
15089  ;
15090  return 0;
15091}
15092_ACEOF
15093if ac_fn_c_try_link "$LINENO"
15094then :
15095  eval $cacheid=yes
15096else $as_nop
15097  eval $cacheid=no
15098fi
15099rm -f core conftest.err conftest.$ac_objext conftest.beam \
15100    conftest$ac_exeext conftest.$ac_ext
15101fi
15102
15103
15104		CFLAGS="$xorg_testset_save_CFLAGS"
15105
15106		eval supported=\$$cacheid
15107		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15108printf "%s\n" "$supported" >&6; }
15109		if test "$supported" = "yes" ; then
15110			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15111			found="yes"
15112		fi
15113	fi
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129xorg_testset_save_CFLAGS="$CFLAGS"
15130
15131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15133	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15135if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15136then :
15137  printf %s "(cached) " >&6
15138else $as_nop
15139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140/* end confdefs.h.  */
15141int i;
15142_ACEOF
15143if ac_fn_c_try_compile "$LINENO"
15144then :
15145  xorg_cv_cc_flag_unknown_warning_option=yes
15146else $as_nop
15147  xorg_cv_cc_flag_unknown_warning_option=no
15148fi
15149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15150fi
15151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15154	CFLAGS="$xorg_testset_save_CFLAGS"
15155fi
15156
15157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15160	fi
15161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15162	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15164if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15165then :
15166  printf %s "(cached) " >&6
15167else $as_nop
15168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169/* end confdefs.h.  */
15170int i;
15171_ACEOF
15172if ac_fn_c_try_compile "$LINENO"
15173then :
15174  xorg_cv_cc_flag_unused_command_line_argument=yes
15175else $as_nop
15176  xorg_cv_cc_flag_unused_command_line_argument=no
15177fi
15178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15179fi
15180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15181printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15182	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15183	CFLAGS="$xorg_testset_save_CFLAGS"
15184fi
15185
15186found="no"
15187
15188	if test $found = "no" ; then
15189		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15190			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15191		fi
15192
15193		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15194			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15195		fi
15196
15197		CFLAGS="$CFLAGS -Wredundant-decls"
15198
15199		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15200printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15201		cacheid=xorg_cv_cc_flag__Wredundant_decls
15202		if eval test \${$cacheid+y}
15203then :
15204  printf %s "(cached) " >&6
15205else $as_nop
15206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207/* end confdefs.h.  */
15208int i;
15209int
15210main (void)
15211{
15212
15213  ;
15214  return 0;
15215}
15216_ACEOF
15217if ac_fn_c_try_link "$LINENO"
15218then :
15219  eval $cacheid=yes
15220else $as_nop
15221  eval $cacheid=no
15222fi
15223rm -f core conftest.err conftest.$ac_objext conftest.beam \
15224    conftest$ac_exeext conftest.$ac_ext
15225fi
15226
15227
15228		CFLAGS="$xorg_testset_save_CFLAGS"
15229
15230		eval supported=\$$cacheid
15231		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15232printf "%s\n" "$supported" >&6; }
15233		if test "$supported" = "yes" ; then
15234			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15235			found="yes"
15236		fi
15237	fi
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253xorg_testset_save_CFLAGS="$CFLAGS"
15254
15255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15256	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15257	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15259if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15260then :
15261  printf %s "(cached) " >&6
15262else $as_nop
15263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264/* end confdefs.h.  */
15265int i;
15266_ACEOF
15267if ac_fn_c_try_compile "$LINENO"
15268then :
15269  xorg_cv_cc_flag_unknown_warning_option=yes
15270else $as_nop
15271  xorg_cv_cc_flag_unknown_warning_option=no
15272fi
15273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15274fi
15275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15277	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15278	CFLAGS="$xorg_testset_save_CFLAGS"
15279fi
15280
15281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15282	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15283		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15284	fi
15285	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15286	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15288if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15289then :
15290  printf %s "(cached) " >&6
15291else $as_nop
15292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293/* end confdefs.h.  */
15294int i;
15295_ACEOF
15296if ac_fn_c_try_compile "$LINENO"
15297then :
15298  xorg_cv_cc_flag_unused_command_line_argument=yes
15299else $as_nop
15300  xorg_cv_cc_flag_unused_command_line_argument=no
15301fi
15302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15303fi
15304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15306	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15307	CFLAGS="$xorg_testset_save_CFLAGS"
15308fi
15309
15310found="no"
15311
15312	if test $found = "no" ; then
15313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15315		fi
15316
15317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15319		fi
15320
15321		CFLAGS="$CFLAGS -Wlogical-op"
15322
15323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15324printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15325		cacheid=xorg_cv_cc_flag__Wlogical_op
15326		if eval test \${$cacheid+y}
15327then :
15328  printf %s "(cached) " >&6
15329else $as_nop
15330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331/* end confdefs.h.  */
15332int i;
15333int
15334main (void)
15335{
15336
15337  ;
15338  return 0;
15339}
15340_ACEOF
15341if ac_fn_c_try_link "$LINENO"
15342then :
15343  eval $cacheid=yes
15344else $as_nop
15345  eval $cacheid=no
15346fi
15347rm -f core conftest.err conftest.$ac_objext conftest.beam \
15348    conftest$ac_exeext conftest.$ac_ext
15349fi
15350
15351
15352		CFLAGS="$xorg_testset_save_CFLAGS"
15353
15354		eval supported=\$$cacheid
15355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15356printf "%s\n" "$supported" >&6; }
15357		if test "$supported" = "yes" ; then
15358			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15359			found="yes"
15360		fi
15361	fi
15362
15363
15364
15365# These are currently disabled because they are noisy.  They will be enabled
15366# in the future once the codebase is sufficiently modernized to silence
15367# them.  For now, I don't want them to drown out the other warnings.
15368# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15369# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15370# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15371
15372# Turn some warnings into errors, so we don't accidentally get successful builds
15373# when there are problems that should be fixed.
15374
15375if test "x$SELECTIVE_WERROR" = "xyes" ; then
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389xorg_testset_save_CFLAGS="$CFLAGS"
15390
15391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15395if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15396then :
15397  printf %s "(cached) " >&6
15398else $as_nop
15399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400/* end confdefs.h.  */
15401int i;
15402_ACEOF
15403if ac_fn_c_try_compile "$LINENO"
15404then :
15405  xorg_cv_cc_flag_unknown_warning_option=yes
15406else $as_nop
15407  xorg_cv_cc_flag_unknown_warning_option=no
15408fi
15409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15410fi
15411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15414	CFLAGS="$xorg_testset_save_CFLAGS"
15415fi
15416
15417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15420	fi
15421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15424if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15425then :
15426  printf %s "(cached) " >&6
15427else $as_nop
15428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429/* end confdefs.h.  */
15430int i;
15431_ACEOF
15432if ac_fn_c_try_compile "$LINENO"
15433then :
15434  xorg_cv_cc_flag_unused_command_line_argument=yes
15435else $as_nop
15436  xorg_cv_cc_flag_unused_command_line_argument=no
15437fi
15438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15439fi
15440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15443	CFLAGS="$xorg_testset_save_CFLAGS"
15444fi
15445
15446found="no"
15447
15448	if test $found = "no" ; then
15449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15451		fi
15452
15453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15455		fi
15456
15457		CFLAGS="$CFLAGS -Werror=implicit"
15458
15459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15460printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15461		cacheid=xorg_cv_cc_flag__Werror_implicit
15462		if eval test \${$cacheid+y}
15463then :
15464  printf %s "(cached) " >&6
15465else $as_nop
15466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467/* end confdefs.h.  */
15468int i;
15469int
15470main (void)
15471{
15472
15473  ;
15474  return 0;
15475}
15476_ACEOF
15477if ac_fn_c_try_link "$LINENO"
15478then :
15479  eval $cacheid=yes
15480else $as_nop
15481  eval $cacheid=no
15482fi
15483rm -f core conftest.err conftest.$ac_objext conftest.beam \
15484    conftest$ac_exeext conftest.$ac_ext
15485fi
15486
15487
15488		CFLAGS="$xorg_testset_save_CFLAGS"
15489
15490		eval supported=\$$cacheid
15491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15492printf "%s\n" "$supported" >&6; }
15493		if test "$supported" = "yes" ; then
15494			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15495			found="yes"
15496		fi
15497	fi
15498
15499	if test $found = "no" ; then
15500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15502		fi
15503
15504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15506		fi
15507
15508		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15509
15510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15511printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15512		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15513		if eval test \${$cacheid+y}
15514then :
15515  printf %s "(cached) " >&6
15516else $as_nop
15517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518/* end confdefs.h.  */
15519int i;
15520int
15521main (void)
15522{
15523
15524  ;
15525  return 0;
15526}
15527_ACEOF
15528if ac_fn_c_try_link "$LINENO"
15529then :
15530  eval $cacheid=yes
15531else $as_nop
15532  eval $cacheid=no
15533fi
15534rm -f core conftest.err conftest.$ac_objext conftest.beam \
15535    conftest$ac_exeext conftest.$ac_ext
15536fi
15537
15538
15539		CFLAGS="$xorg_testset_save_CFLAGS"
15540
15541		eval supported=\$$cacheid
15542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15543printf "%s\n" "$supported" >&6; }
15544		if test "$supported" = "yes" ; then
15545			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15546			found="yes"
15547		fi
15548	fi
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564xorg_testset_save_CFLAGS="$CFLAGS"
15565
15566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15570if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15571then :
15572  printf %s "(cached) " >&6
15573else $as_nop
15574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575/* end confdefs.h.  */
15576int i;
15577_ACEOF
15578if ac_fn_c_try_compile "$LINENO"
15579then :
15580  xorg_cv_cc_flag_unknown_warning_option=yes
15581else $as_nop
15582  xorg_cv_cc_flag_unknown_warning_option=no
15583fi
15584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15585fi
15586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15589	CFLAGS="$xorg_testset_save_CFLAGS"
15590fi
15591
15592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15595	fi
15596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15600then :
15601  printf %s "(cached) " >&6
15602else $as_nop
15603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604/* end confdefs.h.  */
15605int i;
15606_ACEOF
15607if ac_fn_c_try_compile "$LINENO"
15608then :
15609  xorg_cv_cc_flag_unused_command_line_argument=yes
15610else $as_nop
15611  xorg_cv_cc_flag_unused_command_line_argument=no
15612fi
15613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15614fi
15615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15618	CFLAGS="$xorg_testset_save_CFLAGS"
15619fi
15620
15621found="no"
15622
15623	if test $found = "no" ; then
15624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15626		fi
15627
15628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15630		fi
15631
15632		CFLAGS="$CFLAGS -Werror=nonnull"
15633
15634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15635printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15636		cacheid=xorg_cv_cc_flag__Werror_nonnull
15637		if eval test \${$cacheid+y}
15638then :
15639  printf %s "(cached) " >&6
15640else $as_nop
15641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642/* end confdefs.h.  */
15643int i;
15644int
15645main (void)
15646{
15647
15648  ;
15649  return 0;
15650}
15651_ACEOF
15652if ac_fn_c_try_link "$LINENO"
15653then :
15654  eval $cacheid=yes
15655else $as_nop
15656  eval $cacheid=no
15657fi
15658rm -f core conftest.err conftest.$ac_objext conftest.beam \
15659    conftest$ac_exeext conftest.$ac_ext
15660fi
15661
15662
15663		CFLAGS="$xorg_testset_save_CFLAGS"
15664
15665		eval supported=\$$cacheid
15666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15667printf "%s\n" "$supported" >&6; }
15668		if test "$supported" = "yes" ; then
15669			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15670			found="yes"
15671		fi
15672	fi
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688xorg_testset_save_CFLAGS="$CFLAGS"
15689
15690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15694if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15695then :
15696  printf %s "(cached) " >&6
15697else $as_nop
15698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699/* end confdefs.h.  */
15700int i;
15701_ACEOF
15702if ac_fn_c_try_compile "$LINENO"
15703then :
15704  xorg_cv_cc_flag_unknown_warning_option=yes
15705else $as_nop
15706  xorg_cv_cc_flag_unknown_warning_option=no
15707fi
15708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15709fi
15710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15713	CFLAGS="$xorg_testset_save_CFLAGS"
15714fi
15715
15716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15719	fi
15720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15723if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15724then :
15725  printf %s "(cached) " >&6
15726else $as_nop
15727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728/* end confdefs.h.  */
15729int i;
15730_ACEOF
15731if ac_fn_c_try_compile "$LINENO"
15732then :
15733  xorg_cv_cc_flag_unused_command_line_argument=yes
15734else $as_nop
15735  xorg_cv_cc_flag_unused_command_line_argument=no
15736fi
15737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15738fi
15739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15742	CFLAGS="$xorg_testset_save_CFLAGS"
15743fi
15744
15745found="no"
15746
15747	if test $found = "no" ; then
15748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15750		fi
15751
15752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15754		fi
15755
15756		CFLAGS="$CFLAGS -Werror=init-self"
15757
15758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15759printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15760		cacheid=xorg_cv_cc_flag__Werror_init_self
15761		if eval test \${$cacheid+y}
15762then :
15763  printf %s "(cached) " >&6
15764else $as_nop
15765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766/* end confdefs.h.  */
15767int i;
15768int
15769main (void)
15770{
15771
15772  ;
15773  return 0;
15774}
15775_ACEOF
15776if ac_fn_c_try_link "$LINENO"
15777then :
15778  eval $cacheid=yes
15779else $as_nop
15780  eval $cacheid=no
15781fi
15782rm -f core conftest.err conftest.$ac_objext conftest.beam \
15783    conftest$ac_exeext conftest.$ac_ext
15784fi
15785
15786
15787		CFLAGS="$xorg_testset_save_CFLAGS"
15788
15789		eval supported=\$$cacheid
15790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15791printf "%s\n" "$supported" >&6; }
15792		if test "$supported" = "yes" ; then
15793			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15794			found="yes"
15795		fi
15796	fi
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812xorg_testset_save_CFLAGS="$CFLAGS"
15813
15814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15819then :
15820  printf %s "(cached) " >&6
15821else $as_nop
15822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823/* end confdefs.h.  */
15824int i;
15825_ACEOF
15826if ac_fn_c_try_compile "$LINENO"
15827then :
15828  xorg_cv_cc_flag_unknown_warning_option=yes
15829else $as_nop
15830  xorg_cv_cc_flag_unknown_warning_option=no
15831fi
15832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15833fi
15834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15837	CFLAGS="$xorg_testset_save_CFLAGS"
15838fi
15839
15840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15843	fi
15844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15847if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15848then :
15849  printf %s "(cached) " >&6
15850else $as_nop
15851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852/* end confdefs.h.  */
15853int i;
15854_ACEOF
15855if ac_fn_c_try_compile "$LINENO"
15856then :
15857  xorg_cv_cc_flag_unused_command_line_argument=yes
15858else $as_nop
15859  xorg_cv_cc_flag_unused_command_line_argument=no
15860fi
15861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15862fi
15863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15866	CFLAGS="$xorg_testset_save_CFLAGS"
15867fi
15868
15869found="no"
15870
15871	if test $found = "no" ; then
15872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15874		fi
15875
15876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15878		fi
15879
15880		CFLAGS="$CFLAGS -Werror=main"
15881
15882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15883printf %s "checking if $CC supports -Werror=main... " >&6; }
15884		cacheid=xorg_cv_cc_flag__Werror_main
15885		if eval test \${$cacheid+y}
15886then :
15887  printf %s "(cached) " >&6
15888else $as_nop
15889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890/* end confdefs.h.  */
15891int i;
15892int
15893main (void)
15894{
15895
15896  ;
15897  return 0;
15898}
15899_ACEOF
15900if ac_fn_c_try_link "$LINENO"
15901then :
15902  eval $cacheid=yes
15903else $as_nop
15904  eval $cacheid=no
15905fi
15906rm -f core conftest.err conftest.$ac_objext conftest.beam \
15907    conftest$ac_exeext conftest.$ac_ext
15908fi
15909
15910
15911		CFLAGS="$xorg_testset_save_CFLAGS"
15912
15913		eval supported=\$$cacheid
15914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15915printf "%s\n" "$supported" >&6; }
15916		if test "$supported" = "yes" ; then
15917			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15918			found="yes"
15919		fi
15920	fi
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936xorg_testset_save_CFLAGS="$CFLAGS"
15937
15938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15942if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15943then :
15944  printf %s "(cached) " >&6
15945else $as_nop
15946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947/* end confdefs.h.  */
15948int i;
15949_ACEOF
15950if ac_fn_c_try_compile "$LINENO"
15951then :
15952  xorg_cv_cc_flag_unknown_warning_option=yes
15953else $as_nop
15954  xorg_cv_cc_flag_unknown_warning_option=no
15955fi
15956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15957fi
15958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15961	CFLAGS="$xorg_testset_save_CFLAGS"
15962fi
15963
15964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15967	fi
15968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15971if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15972then :
15973  printf %s "(cached) " >&6
15974else $as_nop
15975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976/* end confdefs.h.  */
15977int i;
15978_ACEOF
15979if ac_fn_c_try_compile "$LINENO"
15980then :
15981  xorg_cv_cc_flag_unused_command_line_argument=yes
15982else $as_nop
15983  xorg_cv_cc_flag_unused_command_line_argument=no
15984fi
15985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15986fi
15987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15990	CFLAGS="$xorg_testset_save_CFLAGS"
15991fi
15992
15993found="no"
15994
15995	if test $found = "no" ; then
15996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15998		fi
15999
16000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16002		fi
16003
16004		CFLAGS="$CFLAGS -Werror=missing-braces"
16005
16006		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16007printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16008		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16009		if eval test \${$cacheid+y}
16010then :
16011  printf %s "(cached) " >&6
16012else $as_nop
16013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014/* end confdefs.h.  */
16015int i;
16016int
16017main (void)
16018{
16019
16020  ;
16021  return 0;
16022}
16023_ACEOF
16024if ac_fn_c_try_link "$LINENO"
16025then :
16026  eval $cacheid=yes
16027else $as_nop
16028  eval $cacheid=no
16029fi
16030rm -f core conftest.err conftest.$ac_objext conftest.beam \
16031    conftest$ac_exeext conftest.$ac_ext
16032fi
16033
16034
16035		CFLAGS="$xorg_testset_save_CFLAGS"
16036
16037		eval supported=\$$cacheid
16038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16039printf "%s\n" "$supported" >&6; }
16040		if test "$supported" = "yes" ; then
16041			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16042			found="yes"
16043		fi
16044	fi
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060xorg_testset_save_CFLAGS="$CFLAGS"
16061
16062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16066if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16067then :
16068  printf %s "(cached) " >&6
16069else $as_nop
16070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071/* end confdefs.h.  */
16072int i;
16073_ACEOF
16074if ac_fn_c_try_compile "$LINENO"
16075then :
16076  xorg_cv_cc_flag_unknown_warning_option=yes
16077else $as_nop
16078  xorg_cv_cc_flag_unknown_warning_option=no
16079fi
16080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16081fi
16082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16085	CFLAGS="$xorg_testset_save_CFLAGS"
16086fi
16087
16088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16091	fi
16092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16095if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16096then :
16097  printf %s "(cached) " >&6
16098else $as_nop
16099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100/* end confdefs.h.  */
16101int i;
16102_ACEOF
16103if ac_fn_c_try_compile "$LINENO"
16104then :
16105  xorg_cv_cc_flag_unused_command_line_argument=yes
16106else $as_nop
16107  xorg_cv_cc_flag_unused_command_line_argument=no
16108fi
16109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16110fi
16111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16114	CFLAGS="$xorg_testset_save_CFLAGS"
16115fi
16116
16117found="no"
16118
16119	if test $found = "no" ; then
16120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16122		fi
16123
16124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16126		fi
16127
16128		CFLAGS="$CFLAGS -Werror=sequence-point"
16129
16130		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16131printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16132		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16133		if eval test \${$cacheid+y}
16134then :
16135  printf %s "(cached) " >&6
16136else $as_nop
16137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138/* end confdefs.h.  */
16139int i;
16140int
16141main (void)
16142{
16143
16144  ;
16145  return 0;
16146}
16147_ACEOF
16148if ac_fn_c_try_link "$LINENO"
16149then :
16150  eval $cacheid=yes
16151else $as_nop
16152  eval $cacheid=no
16153fi
16154rm -f core conftest.err conftest.$ac_objext conftest.beam \
16155    conftest$ac_exeext conftest.$ac_ext
16156fi
16157
16158
16159		CFLAGS="$xorg_testset_save_CFLAGS"
16160
16161		eval supported=\$$cacheid
16162		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16163printf "%s\n" "$supported" >&6; }
16164		if test "$supported" = "yes" ; then
16165			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16166			found="yes"
16167		fi
16168	fi
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184xorg_testset_save_CFLAGS="$CFLAGS"
16185
16186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16187	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16188	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16189printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16190if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16191then :
16192  printf %s "(cached) " >&6
16193else $as_nop
16194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195/* end confdefs.h.  */
16196int i;
16197_ACEOF
16198if ac_fn_c_try_compile "$LINENO"
16199then :
16200  xorg_cv_cc_flag_unknown_warning_option=yes
16201else $as_nop
16202  xorg_cv_cc_flag_unknown_warning_option=no
16203fi
16204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16205fi
16206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16208	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16209	CFLAGS="$xorg_testset_save_CFLAGS"
16210fi
16211
16212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16213	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16214		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16215	fi
16216	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16219if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16220then :
16221  printf %s "(cached) " >&6
16222else $as_nop
16223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h.  */
16225int i;
16226_ACEOF
16227if ac_fn_c_try_compile "$LINENO"
16228then :
16229  xorg_cv_cc_flag_unused_command_line_argument=yes
16230else $as_nop
16231  xorg_cv_cc_flag_unused_command_line_argument=no
16232fi
16233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16234fi
16235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16237	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16238	CFLAGS="$xorg_testset_save_CFLAGS"
16239fi
16240
16241found="no"
16242
16243	if test $found = "no" ; then
16244		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16246		fi
16247
16248		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16250		fi
16251
16252		CFLAGS="$CFLAGS -Werror=return-type"
16253
16254		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16255printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16256		cacheid=xorg_cv_cc_flag__Werror_return_type
16257		if eval test \${$cacheid+y}
16258then :
16259  printf %s "(cached) " >&6
16260else $as_nop
16261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262/* end confdefs.h.  */
16263int i;
16264int
16265main (void)
16266{
16267
16268  ;
16269  return 0;
16270}
16271_ACEOF
16272if ac_fn_c_try_link "$LINENO"
16273then :
16274  eval $cacheid=yes
16275else $as_nop
16276  eval $cacheid=no
16277fi
16278rm -f core conftest.err conftest.$ac_objext conftest.beam \
16279    conftest$ac_exeext conftest.$ac_ext
16280fi
16281
16282
16283		CFLAGS="$xorg_testset_save_CFLAGS"
16284
16285		eval supported=\$$cacheid
16286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16287printf "%s\n" "$supported" >&6; }
16288		if test "$supported" = "yes" ; then
16289			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16290			found="yes"
16291		fi
16292	fi
16293
16294	if test $found = "no" ; then
16295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16297		fi
16298
16299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16301		fi
16302
16303		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16304
16305		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16306printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16307		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16308		if eval test \${$cacheid+y}
16309then :
16310  printf %s "(cached) " >&6
16311else $as_nop
16312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313/* end confdefs.h.  */
16314int i;
16315int
16316main (void)
16317{
16318
16319  ;
16320  return 0;
16321}
16322_ACEOF
16323if ac_fn_c_try_link "$LINENO"
16324then :
16325  eval $cacheid=yes
16326else $as_nop
16327  eval $cacheid=no
16328fi
16329rm -f core conftest.err conftest.$ac_objext conftest.beam \
16330    conftest$ac_exeext conftest.$ac_ext
16331fi
16332
16333
16334		CFLAGS="$xorg_testset_save_CFLAGS"
16335
16336		eval supported=\$$cacheid
16337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16338printf "%s\n" "$supported" >&6; }
16339		if test "$supported" = "yes" ; then
16340			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16341			found="yes"
16342		fi
16343	fi
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359xorg_testset_save_CFLAGS="$CFLAGS"
16360
16361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16365if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16366then :
16367  printf %s "(cached) " >&6
16368else $as_nop
16369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370/* end confdefs.h.  */
16371int i;
16372_ACEOF
16373if ac_fn_c_try_compile "$LINENO"
16374then :
16375  xorg_cv_cc_flag_unknown_warning_option=yes
16376else $as_nop
16377  xorg_cv_cc_flag_unknown_warning_option=no
16378fi
16379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16380fi
16381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16382printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16384	CFLAGS="$xorg_testset_save_CFLAGS"
16385fi
16386
16387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16390	fi
16391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16393printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16394if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16395then :
16396  printf %s "(cached) " >&6
16397else $as_nop
16398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399/* end confdefs.h.  */
16400int i;
16401_ACEOF
16402if ac_fn_c_try_compile "$LINENO"
16403then :
16404  xorg_cv_cc_flag_unused_command_line_argument=yes
16405else $as_nop
16406  xorg_cv_cc_flag_unused_command_line_argument=no
16407fi
16408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16409fi
16410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16411printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16413	CFLAGS="$xorg_testset_save_CFLAGS"
16414fi
16415
16416found="no"
16417
16418	if test $found = "no" ; then
16419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16421		fi
16422
16423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16425		fi
16426
16427		CFLAGS="$CFLAGS -Werror=trigraphs"
16428
16429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16430printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16431		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16432		if eval test \${$cacheid+y}
16433then :
16434  printf %s "(cached) " >&6
16435else $as_nop
16436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437/* end confdefs.h.  */
16438int i;
16439int
16440main (void)
16441{
16442
16443  ;
16444  return 0;
16445}
16446_ACEOF
16447if ac_fn_c_try_link "$LINENO"
16448then :
16449  eval $cacheid=yes
16450else $as_nop
16451  eval $cacheid=no
16452fi
16453rm -f core conftest.err conftest.$ac_objext conftest.beam \
16454    conftest$ac_exeext conftest.$ac_ext
16455fi
16456
16457
16458		CFLAGS="$xorg_testset_save_CFLAGS"
16459
16460		eval supported=\$$cacheid
16461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16462printf "%s\n" "$supported" >&6; }
16463		if test "$supported" = "yes" ; then
16464			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16465			found="yes"
16466		fi
16467	fi
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483xorg_testset_save_CFLAGS="$CFLAGS"
16484
16485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16489if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16490then :
16491  printf %s "(cached) " >&6
16492else $as_nop
16493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494/* end confdefs.h.  */
16495int i;
16496_ACEOF
16497if ac_fn_c_try_compile "$LINENO"
16498then :
16499  xorg_cv_cc_flag_unknown_warning_option=yes
16500else $as_nop
16501  xorg_cv_cc_flag_unknown_warning_option=no
16502fi
16503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16504fi
16505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16508	CFLAGS="$xorg_testset_save_CFLAGS"
16509fi
16510
16511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16514	fi
16515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16518if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16519then :
16520  printf %s "(cached) " >&6
16521else $as_nop
16522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523/* end confdefs.h.  */
16524int i;
16525_ACEOF
16526if ac_fn_c_try_compile "$LINENO"
16527then :
16528  xorg_cv_cc_flag_unused_command_line_argument=yes
16529else $as_nop
16530  xorg_cv_cc_flag_unused_command_line_argument=no
16531fi
16532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16533fi
16534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16536	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16537	CFLAGS="$xorg_testset_save_CFLAGS"
16538fi
16539
16540found="no"
16541
16542	if test $found = "no" ; then
16543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16545		fi
16546
16547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16549		fi
16550
16551		CFLAGS="$CFLAGS -Werror=array-bounds"
16552
16553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16554printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16555		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16556		if eval test \${$cacheid+y}
16557then :
16558  printf %s "(cached) " >&6
16559else $as_nop
16560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561/* end confdefs.h.  */
16562int i;
16563int
16564main (void)
16565{
16566
16567  ;
16568  return 0;
16569}
16570_ACEOF
16571if ac_fn_c_try_link "$LINENO"
16572then :
16573  eval $cacheid=yes
16574else $as_nop
16575  eval $cacheid=no
16576fi
16577rm -f core conftest.err conftest.$ac_objext conftest.beam \
16578    conftest$ac_exeext conftest.$ac_ext
16579fi
16580
16581
16582		CFLAGS="$xorg_testset_save_CFLAGS"
16583
16584		eval supported=\$$cacheid
16585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16586printf "%s\n" "$supported" >&6; }
16587		if test "$supported" = "yes" ; then
16588			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16589			found="yes"
16590		fi
16591	fi
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607xorg_testset_save_CFLAGS="$CFLAGS"
16608
16609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16613if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16614then :
16615  printf %s "(cached) " >&6
16616else $as_nop
16617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618/* end confdefs.h.  */
16619int i;
16620_ACEOF
16621if ac_fn_c_try_compile "$LINENO"
16622then :
16623  xorg_cv_cc_flag_unknown_warning_option=yes
16624else $as_nop
16625  xorg_cv_cc_flag_unknown_warning_option=no
16626fi
16627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16628fi
16629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16631	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16632	CFLAGS="$xorg_testset_save_CFLAGS"
16633fi
16634
16635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16636	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16637		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16638	fi
16639	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16642if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16643then :
16644  printf %s "(cached) " >&6
16645else $as_nop
16646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647/* end confdefs.h.  */
16648int i;
16649_ACEOF
16650if ac_fn_c_try_compile "$LINENO"
16651then :
16652  xorg_cv_cc_flag_unused_command_line_argument=yes
16653else $as_nop
16654  xorg_cv_cc_flag_unused_command_line_argument=no
16655fi
16656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16657fi
16658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16661	CFLAGS="$xorg_testset_save_CFLAGS"
16662fi
16663
16664found="no"
16665
16666	if test $found = "no" ; then
16667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16669		fi
16670
16671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16673		fi
16674
16675		CFLAGS="$CFLAGS -Werror=write-strings"
16676
16677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16678printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16679		cacheid=xorg_cv_cc_flag__Werror_write_strings
16680		if eval test \${$cacheid+y}
16681then :
16682  printf %s "(cached) " >&6
16683else $as_nop
16684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685/* end confdefs.h.  */
16686int i;
16687int
16688main (void)
16689{
16690
16691  ;
16692  return 0;
16693}
16694_ACEOF
16695if ac_fn_c_try_link "$LINENO"
16696then :
16697  eval $cacheid=yes
16698else $as_nop
16699  eval $cacheid=no
16700fi
16701rm -f core conftest.err conftest.$ac_objext conftest.beam \
16702    conftest$ac_exeext conftest.$ac_ext
16703fi
16704
16705
16706		CFLAGS="$xorg_testset_save_CFLAGS"
16707
16708		eval supported=\$$cacheid
16709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16710printf "%s\n" "$supported" >&6; }
16711		if test "$supported" = "yes" ; then
16712			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16713			found="yes"
16714		fi
16715	fi
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731xorg_testset_save_CFLAGS="$CFLAGS"
16732
16733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16737if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16738then :
16739  printf %s "(cached) " >&6
16740else $as_nop
16741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742/* end confdefs.h.  */
16743int i;
16744_ACEOF
16745if ac_fn_c_try_compile "$LINENO"
16746then :
16747  xorg_cv_cc_flag_unknown_warning_option=yes
16748else $as_nop
16749  xorg_cv_cc_flag_unknown_warning_option=no
16750fi
16751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16752fi
16753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16754printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16756	CFLAGS="$xorg_testset_save_CFLAGS"
16757fi
16758
16759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16762	fi
16763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16765printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16766if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16767then :
16768  printf %s "(cached) " >&6
16769else $as_nop
16770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771/* end confdefs.h.  */
16772int i;
16773_ACEOF
16774if ac_fn_c_try_compile "$LINENO"
16775then :
16776  xorg_cv_cc_flag_unused_command_line_argument=yes
16777else $as_nop
16778  xorg_cv_cc_flag_unused_command_line_argument=no
16779fi
16780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16781fi
16782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16783printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16784	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16785	CFLAGS="$xorg_testset_save_CFLAGS"
16786fi
16787
16788found="no"
16789
16790	if test $found = "no" ; then
16791		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16793		fi
16794
16795		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16797		fi
16798
16799		CFLAGS="$CFLAGS -Werror=address"
16800
16801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16802printf %s "checking if $CC supports -Werror=address... " >&6; }
16803		cacheid=xorg_cv_cc_flag__Werror_address
16804		if eval test \${$cacheid+y}
16805then :
16806  printf %s "(cached) " >&6
16807else $as_nop
16808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809/* end confdefs.h.  */
16810int i;
16811int
16812main (void)
16813{
16814
16815  ;
16816  return 0;
16817}
16818_ACEOF
16819if ac_fn_c_try_link "$LINENO"
16820then :
16821  eval $cacheid=yes
16822else $as_nop
16823  eval $cacheid=no
16824fi
16825rm -f core conftest.err conftest.$ac_objext conftest.beam \
16826    conftest$ac_exeext conftest.$ac_ext
16827fi
16828
16829
16830		CFLAGS="$xorg_testset_save_CFLAGS"
16831
16832		eval supported=\$$cacheid
16833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16834printf "%s\n" "$supported" >&6; }
16835		if test "$supported" = "yes" ; then
16836			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16837			found="yes"
16838		fi
16839	fi
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855xorg_testset_save_CFLAGS="$CFLAGS"
16856
16857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16861if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16862then :
16863  printf %s "(cached) " >&6
16864else $as_nop
16865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866/* end confdefs.h.  */
16867int i;
16868_ACEOF
16869if ac_fn_c_try_compile "$LINENO"
16870then :
16871  xorg_cv_cc_flag_unknown_warning_option=yes
16872else $as_nop
16873  xorg_cv_cc_flag_unknown_warning_option=no
16874fi
16875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16876fi
16877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16878printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16880	CFLAGS="$xorg_testset_save_CFLAGS"
16881fi
16882
16883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16886	fi
16887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16888	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16889printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16890if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16891then :
16892  printf %s "(cached) " >&6
16893else $as_nop
16894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895/* end confdefs.h.  */
16896int i;
16897_ACEOF
16898if ac_fn_c_try_compile "$LINENO"
16899then :
16900  xorg_cv_cc_flag_unused_command_line_argument=yes
16901else $as_nop
16902  xorg_cv_cc_flag_unused_command_line_argument=no
16903fi
16904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16905fi
16906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16907printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16909	CFLAGS="$xorg_testset_save_CFLAGS"
16910fi
16911
16912found="no"
16913
16914	if test $found = "no" ; then
16915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16917		fi
16918
16919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16921		fi
16922
16923		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16924
16925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16926printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16927		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16928		if eval test \${$cacheid+y}
16929then :
16930  printf %s "(cached) " >&6
16931else $as_nop
16932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933/* end confdefs.h.  */
16934int i;
16935int
16936main (void)
16937{
16938
16939  ;
16940  return 0;
16941}
16942_ACEOF
16943if ac_fn_c_try_link "$LINENO"
16944then :
16945  eval $cacheid=yes
16946else $as_nop
16947  eval $cacheid=no
16948fi
16949rm -f core conftest.err conftest.$ac_objext conftest.beam \
16950    conftest$ac_exeext conftest.$ac_ext
16951fi
16952
16953
16954		CFLAGS="$xorg_testset_save_CFLAGS"
16955
16956		eval supported=\$$cacheid
16957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16958printf "%s\n" "$supported" >&6; }
16959		if test "$supported" = "yes" ; then
16960			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16961			found="yes"
16962		fi
16963	fi
16964
16965	if test $found = "no" ; then
16966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16968		fi
16969
16970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16972		fi
16973
16974		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16975
16976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16977printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16978		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16979		if eval test \${$cacheid+y}
16980then :
16981  printf %s "(cached) " >&6
16982else $as_nop
16983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h.  */
16985int i;
16986int
16987main (void)
16988{
16989
16990  ;
16991  return 0;
16992}
16993_ACEOF
16994if ac_fn_c_try_link "$LINENO"
16995then :
16996  eval $cacheid=yes
16997else $as_nop
16998  eval $cacheid=no
16999fi
17000rm -f core conftest.err conftest.$ac_objext conftest.beam \
17001    conftest$ac_exeext conftest.$ac_ext
17002fi
17003
17004
17005		CFLAGS="$xorg_testset_save_CFLAGS"
17006
17007		eval supported=\$$cacheid
17008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17009printf "%s\n" "$supported" >&6; }
17010		if test "$supported" = "yes" ; then
17011			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17012			found="yes"
17013		fi
17014	fi
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030xorg_testset_save_CFLAGS="$CFLAGS"
17031
17032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17034	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17036if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17037then :
17038  printf %s "(cached) " >&6
17039else $as_nop
17040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041/* end confdefs.h.  */
17042int i;
17043_ACEOF
17044if ac_fn_c_try_compile "$LINENO"
17045then :
17046  xorg_cv_cc_flag_unknown_warning_option=yes
17047else $as_nop
17048  xorg_cv_cc_flag_unknown_warning_option=no
17049fi
17050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17051fi
17052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17055	CFLAGS="$xorg_testset_save_CFLAGS"
17056fi
17057
17058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17061	fi
17062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17065if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17066then :
17067  printf %s "(cached) " >&6
17068else $as_nop
17069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070/* end confdefs.h.  */
17071int i;
17072_ACEOF
17073if ac_fn_c_try_compile "$LINENO"
17074then :
17075  xorg_cv_cc_flag_unused_command_line_argument=yes
17076else $as_nop
17077  xorg_cv_cc_flag_unused_command_line_argument=no
17078fi
17079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17080fi
17081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17084	CFLAGS="$xorg_testset_save_CFLAGS"
17085fi
17086
17087found="no"
17088
17089	if test $found = "no" ; then
17090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17092		fi
17093
17094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17096		fi
17097
17098		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17099
17100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17101printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17102		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17103		if eval test \${$cacheid+y}
17104then :
17105  printf %s "(cached) " >&6
17106else $as_nop
17107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108/* end confdefs.h.  */
17109int i;
17110int
17111main (void)
17112{
17113
17114  ;
17115  return 0;
17116}
17117_ACEOF
17118if ac_fn_c_try_link "$LINENO"
17119then :
17120  eval $cacheid=yes
17121else $as_nop
17122  eval $cacheid=no
17123fi
17124rm -f core conftest.err conftest.$ac_objext conftest.beam \
17125    conftest$ac_exeext conftest.$ac_ext
17126fi
17127
17128
17129		CFLAGS="$xorg_testset_save_CFLAGS"
17130
17131		eval supported=\$$cacheid
17132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17133printf "%s\n" "$supported" >&6; }
17134		if test "$supported" = "yes" ; then
17135			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17136			found="yes"
17137		fi
17138	fi
17139
17140 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17141else
17142{ printf "%s\n" "$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
17143printf "%s\n" "$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;}
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157xorg_testset_save_CFLAGS="$CFLAGS"
17158
17159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17161	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17163if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17164then :
17165  printf %s "(cached) " >&6
17166else $as_nop
17167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168/* end confdefs.h.  */
17169int i;
17170_ACEOF
17171if ac_fn_c_try_compile "$LINENO"
17172then :
17173  xorg_cv_cc_flag_unknown_warning_option=yes
17174else $as_nop
17175  xorg_cv_cc_flag_unknown_warning_option=no
17176fi
17177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17178fi
17179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17182	CFLAGS="$xorg_testset_save_CFLAGS"
17183fi
17184
17185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17188	fi
17189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17192if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17193then :
17194  printf %s "(cached) " >&6
17195else $as_nop
17196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17197/* end confdefs.h.  */
17198int i;
17199_ACEOF
17200if ac_fn_c_try_compile "$LINENO"
17201then :
17202  xorg_cv_cc_flag_unused_command_line_argument=yes
17203else $as_nop
17204  xorg_cv_cc_flag_unused_command_line_argument=no
17205fi
17206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17207fi
17208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17210	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17211	CFLAGS="$xorg_testset_save_CFLAGS"
17212fi
17213
17214found="no"
17215
17216	if test $found = "no" ; then
17217		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17218			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17219		fi
17220
17221		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17222			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17223		fi
17224
17225		CFLAGS="$CFLAGS -Wimplicit"
17226
17227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17228printf %s "checking if $CC supports -Wimplicit... " >&6; }
17229		cacheid=xorg_cv_cc_flag__Wimplicit
17230		if eval test \${$cacheid+y}
17231then :
17232  printf %s "(cached) " >&6
17233else $as_nop
17234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235/* end confdefs.h.  */
17236int i;
17237int
17238main (void)
17239{
17240
17241  ;
17242  return 0;
17243}
17244_ACEOF
17245if ac_fn_c_try_link "$LINENO"
17246then :
17247  eval $cacheid=yes
17248else $as_nop
17249  eval $cacheid=no
17250fi
17251rm -f core conftest.err conftest.$ac_objext conftest.beam \
17252    conftest$ac_exeext conftest.$ac_ext
17253fi
17254
17255
17256		CFLAGS="$xorg_testset_save_CFLAGS"
17257
17258		eval supported=\$$cacheid
17259		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17260printf "%s\n" "$supported" >&6; }
17261		if test "$supported" = "yes" ; then
17262			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17263			found="yes"
17264		fi
17265	fi
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281xorg_testset_save_CFLAGS="$CFLAGS"
17282
17283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17284	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17285	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17286printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17287if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17288then :
17289  printf %s "(cached) " >&6
17290else $as_nop
17291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292/* end confdefs.h.  */
17293int i;
17294_ACEOF
17295if ac_fn_c_try_compile "$LINENO"
17296then :
17297  xorg_cv_cc_flag_unknown_warning_option=yes
17298else $as_nop
17299  xorg_cv_cc_flag_unknown_warning_option=no
17300fi
17301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17302fi
17303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17306	CFLAGS="$xorg_testset_save_CFLAGS"
17307fi
17308
17309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17312	fi
17313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17314	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17316if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17317then :
17318  printf %s "(cached) " >&6
17319else $as_nop
17320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321/* end confdefs.h.  */
17322int i;
17323_ACEOF
17324if ac_fn_c_try_compile "$LINENO"
17325then :
17326  xorg_cv_cc_flag_unused_command_line_argument=yes
17327else $as_nop
17328  xorg_cv_cc_flag_unused_command_line_argument=no
17329fi
17330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17331fi
17332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17333printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17335	CFLAGS="$xorg_testset_save_CFLAGS"
17336fi
17337
17338found="no"
17339
17340	if test $found = "no" ; then
17341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17343		fi
17344
17345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17347		fi
17348
17349		CFLAGS="$CFLAGS -Wnonnull"
17350
17351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17352printf %s "checking if $CC supports -Wnonnull... " >&6; }
17353		cacheid=xorg_cv_cc_flag__Wnonnull
17354		if eval test \${$cacheid+y}
17355then :
17356  printf %s "(cached) " >&6
17357else $as_nop
17358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359/* end confdefs.h.  */
17360int i;
17361int
17362main (void)
17363{
17364
17365  ;
17366  return 0;
17367}
17368_ACEOF
17369if ac_fn_c_try_link "$LINENO"
17370then :
17371  eval $cacheid=yes
17372else $as_nop
17373  eval $cacheid=no
17374fi
17375rm -f core conftest.err conftest.$ac_objext conftest.beam \
17376    conftest$ac_exeext conftest.$ac_ext
17377fi
17378
17379
17380		CFLAGS="$xorg_testset_save_CFLAGS"
17381
17382		eval supported=\$$cacheid
17383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17384printf "%s\n" "$supported" >&6; }
17385		if test "$supported" = "yes" ; then
17386			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17387			found="yes"
17388		fi
17389	fi
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405xorg_testset_save_CFLAGS="$CFLAGS"
17406
17407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17408	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17409	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17410printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17411if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17412then :
17413  printf %s "(cached) " >&6
17414else $as_nop
17415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416/* end confdefs.h.  */
17417int i;
17418_ACEOF
17419if ac_fn_c_try_compile "$LINENO"
17420then :
17421  xorg_cv_cc_flag_unknown_warning_option=yes
17422else $as_nop
17423  xorg_cv_cc_flag_unknown_warning_option=no
17424fi
17425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17426fi
17427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17428printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17430	CFLAGS="$xorg_testset_save_CFLAGS"
17431fi
17432
17433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17436	fi
17437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17439printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17440if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17441then :
17442  printf %s "(cached) " >&6
17443else $as_nop
17444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445/* end confdefs.h.  */
17446int i;
17447_ACEOF
17448if ac_fn_c_try_compile "$LINENO"
17449then :
17450  xorg_cv_cc_flag_unused_command_line_argument=yes
17451else $as_nop
17452  xorg_cv_cc_flag_unused_command_line_argument=no
17453fi
17454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17455fi
17456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17457printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17459	CFLAGS="$xorg_testset_save_CFLAGS"
17460fi
17461
17462found="no"
17463
17464	if test $found = "no" ; then
17465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17467		fi
17468
17469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17471		fi
17472
17473		CFLAGS="$CFLAGS -Winit-self"
17474
17475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17476printf %s "checking if $CC supports -Winit-self... " >&6; }
17477		cacheid=xorg_cv_cc_flag__Winit_self
17478		if eval test \${$cacheid+y}
17479then :
17480  printf %s "(cached) " >&6
17481else $as_nop
17482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483/* end confdefs.h.  */
17484int i;
17485int
17486main (void)
17487{
17488
17489  ;
17490  return 0;
17491}
17492_ACEOF
17493if ac_fn_c_try_link "$LINENO"
17494then :
17495  eval $cacheid=yes
17496else $as_nop
17497  eval $cacheid=no
17498fi
17499rm -f core conftest.err conftest.$ac_objext conftest.beam \
17500    conftest$ac_exeext conftest.$ac_ext
17501fi
17502
17503
17504		CFLAGS="$xorg_testset_save_CFLAGS"
17505
17506		eval supported=\$$cacheid
17507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17508printf "%s\n" "$supported" >&6; }
17509		if test "$supported" = "yes" ; then
17510			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17511			found="yes"
17512		fi
17513	fi
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529xorg_testset_save_CFLAGS="$CFLAGS"
17530
17531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17535if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17536then :
17537  printf %s "(cached) " >&6
17538else $as_nop
17539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540/* end confdefs.h.  */
17541int i;
17542_ACEOF
17543if ac_fn_c_try_compile "$LINENO"
17544then :
17545  xorg_cv_cc_flag_unknown_warning_option=yes
17546else $as_nop
17547  xorg_cv_cc_flag_unknown_warning_option=no
17548fi
17549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17550fi
17551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17554	CFLAGS="$xorg_testset_save_CFLAGS"
17555fi
17556
17557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17560	fi
17561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17562	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17564if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17565then :
17566  printf %s "(cached) " >&6
17567else $as_nop
17568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569/* end confdefs.h.  */
17570int i;
17571_ACEOF
17572if ac_fn_c_try_compile "$LINENO"
17573then :
17574  xorg_cv_cc_flag_unused_command_line_argument=yes
17575else $as_nop
17576  xorg_cv_cc_flag_unused_command_line_argument=no
17577fi
17578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17579fi
17580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17581printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17583	CFLAGS="$xorg_testset_save_CFLAGS"
17584fi
17585
17586found="no"
17587
17588	if test $found = "no" ; then
17589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17591		fi
17592
17593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17595		fi
17596
17597		CFLAGS="$CFLAGS -Wmain"
17598
17599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17600printf %s "checking if $CC supports -Wmain... " >&6; }
17601		cacheid=xorg_cv_cc_flag__Wmain
17602		if eval test \${$cacheid+y}
17603then :
17604  printf %s "(cached) " >&6
17605else $as_nop
17606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607/* end confdefs.h.  */
17608int i;
17609int
17610main (void)
17611{
17612
17613  ;
17614  return 0;
17615}
17616_ACEOF
17617if ac_fn_c_try_link "$LINENO"
17618then :
17619  eval $cacheid=yes
17620else $as_nop
17621  eval $cacheid=no
17622fi
17623rm -f core conftest.err conftest.$ac_objext conftest.beam \
17624    conftest$ac_exeext conftest.$ac_ext
17625fi
17626
17627
17628		CFLAGS="$xorg_testset_save_CFLAGS"
17629
17630		eval supported=\$$cacheid
17631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17632printf "%s\n" "$supported" >&6; }
17633		if test "$supported" = "yes" ; then
17634			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17635			found="yes"
17636		fi
17637	fi
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653xorg_testset_save_CFLAGS="$CFLAGS"
17654
17655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17656	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17658printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17659if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17660then :
17661  printf %s "(cached) " >&6
17662else $as_nop
17663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664/* end confdefs.h.  */
17665int i;
17666_ACEOF
17667if ac_fn_c_try_compile "$LINENO"
17668then :
17669  xorg_cv_cc_flag_unknown_warning_option=yes
17670else $as_nop
17671  xorg_cv_cc_flag_unknown_warning_option=no
17672fi
17673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17674fi
17675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17676printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17677	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17678	CFLAGS="$xorg_testset_save_CFLAGS"
17679fi
17680
17681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17682	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17684	fi
17685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17687printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17688if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17689then :
17690  printf %s "(cached) " >&6
17691else $as_nop
17692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693/* end confdefs.h.  */
17694int i;
17695_ACEOF
17696if ac_fn_c_try_compile "$LINENO"
17697then :
17698  xorg_cv_cc_flag_unused_command_line_argument=yes
17699else $as_nop
17700  xorg_cv_cc_flag_unused_command_line_argument=no
17701fi
17702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17703fi
17704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17705printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17707	CFLAGS="$xorg_testset_save_CFLAGS"
17708fi
17709
17710found="no"
17711
17712	if test $found = "no" ; then
17713		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17715		fi
17716
17717		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17719		fi
17720
17721		CFLAGS="$CFLAGS -Wmissing-braces"
17722
17723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17724printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17725		cacheid=xorg_cv_cc_flag__Wmissing_braces
17726		if eval test \${$cacheid+y}
17727then :
17728  printf %s "(cached) " >&6
17729else $as_nop
17730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731/* end confdefs.h.  */
17732int i;
17733int
17734main (void)
17735{
17736
17737  ;
17738  return 0;
17739}
17740_ACEOF
17741if ac_fn_c_try_link "$LINENO"
17742then :
17743  eval $cacheid=yes
17744else $as_nop
17745  eval $cacheid=no
17746fi
17747rm -f core conftest.err conftest.$ac_objext conftest.beam \
17748    conftest$ac_exeext conftest.$ac_ext
17749fi
17750
17751
17752		CFLAGS="$xorg_testset_save_CFLAGS"
17753
17754		eval supported=\$$cacheid
17755		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17756printf "%s\n" "$supported" >&6; }
17757		if test "$supported" = "yes" ; then
17758			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17759			found="yes"
17760		fi
17761	fi
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777xorg_testset_save_CFLAGS="$CFLAGS"
17778
17779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17782printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17783if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17784then :
17785  printf %s "(cached) " >&6
17786else $as_nop
17787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788/* end confdefs.h.  */
17789int i;
17790_ACEOF
17791if ac_fn_c_try_compile "$LINENO"
17792then :
17793  xorg_cv_cc_flag_unknown_warning_option=yes
17794else $as_nop
17795  xorg_cv_cc_flag_unknown_warning_option=no
17796fi
17797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17798fi
17799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17802	CFLAGS="$xorg_testset_save_CFLAGS"
17803fi
17804
17805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17808	fi
17809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17812if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17813then :
17814  printf %s "(cached) " >&6
17815else $as_nop
17816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817/* end confdefs.h.  */
17818int i;
17819_ACEOF
17820if ac_fn_c_try_compile "$LINENO"
17821then :
17822  xorg_cv_cc_flag_unused_command_line_argument=yes
17823else $as_nop
17824  xorg_cv_cc_flag_unused_command_line_argument=no
17825fi
17826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17827fi
17828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17831	CFLAGS="$xorg_testset_save_CFLAGS"
17832fi
17833
17834found="no"
17835
17836	if test $found = "no" ; then
17837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17839		fi
17840
17841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17843		fi
17844
17845		CFLAGS="$CFLAGS -Wsequence-point"
17846
17847		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17848printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17849		cacheid=xorg_cv_cc_flag__Wsequence_point
17850		if eval test \${$cacheid+y}
17851then :
17852  printf %s "(cached) " >&6
17853else $as_nop
17854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855/* end confdefs.h.  */
17856int i;
17857int
17858main (void)
17859{
17860
17861  ;
17862  return 0;
17863}
17864_ACEOF
17865if ac_fn_c_try_link "$LINENO"
17866then :
17867  eval $cacheid=yes
17868else $as_nop
17869  eval $cacheid=no
17870fi
17871rm -f core conftest.err conftest.$ac_objext conftest.beam \
17872    conftest$ac_exeext conftest.$ac_ext
17873fi
17874
17875
17876		CFLAGS="$xorg_testset_save_CFLAGS"
17877
17878		eval supported=\$$cacheid
17879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17880printf "%s\n" "$supported" >&6; }
17881		if test "$supported" = "yes" ; then
17882			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17883			found="yes"
17884		fi
17885	fi
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901xorg_testset_save_CFLAGS="$CFLAGS"
17902
17903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17905	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17907if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17908then :
17909  printf %s "(cached) " >&6
17910else $as_nop
17911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912/* end confdefs.h.  */
17913int i;
17914_ACEOF
17915if ac_fn_c_try_compile "$LINENO"
17916then :
17917  xorg_cv_cc_flag_unknown_warning_option=yes
17918else $as_nop
17919  xorg_cv_cc_flag_unknown_warning_option=no
17920fi
17921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17922fi
17923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17924printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17925	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17926	CFLAGS="$xorg_testset_save_CFLAGS"
17927fi
17928
17929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17930	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17931		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17932	fi
17933	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17935printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17936if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17937then :
17938  printf %s "(cached) " >&6
17939else $as_nop
17940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941/* end confdefs.h.  */
17942int i;
17943_ACEOF
17944if ac_fn_c_try_compile "$LINENO"
17945then :
17946  xorg_cv_cc_flag_unused_command_line_argument=yes
17947else $as_nop
17948  xorg_cv_cc_flag_unused_command_line_argument=no
17949fi
17950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17951fi
17952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17953printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17954	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17955	CFLAGS="$xorg_testset_save_CFLAGS"
17956fi
17957
17958found="no"
17959
17960	if test $found = "no" ; then
17961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17963		fi
17964
17965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17967		fi
17968
17969		CFLAGS="$CFLAGS -Wreturn-type"
17970
17971		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17972printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17973		cacheid=xorg_cv_cc_flag__Wreturn_type
17974		if eval test \${$cacheid+y}
17975then :
17976  printf %s "(cached) " >&6
17977else $as_nop
17978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979/* end confdefs.h.  */
17980int i;
17981int
17982main (void)
17983{
17984
17985  ;
17986  return 0;
17987}
17988_ACEOF
17989if ac_fn_c_try_link "$LINENO"
17990then :
17991  eval $cacheid=yes
17992else $as_nop
17993  eval $cacheid=no
17994fi
17995rm -f core conftest.err conftest.$ac_objext conftest.beam \
17996    conftest$ac_exeext conftest.$ac_ext
17997fi
17998
17999
18000		CFLAGS="$xorg_testset_save_CFLAGS"
18001
18002		eval supported=\$$cacheid
18003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18004printf "%s\n" "$supported" >&6; }
18005		if test "$supported" = "yes" ; then
18006			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18007			found="yes"
18008		fi
18009	fi
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025xorg_testset_save_CFLAGS="$CFLAGS"
18026
18027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18029	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18031if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18032then :
18033  printf %s "(cached) " >&6
18034else $as_nop
18035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036/* end confdefs.h.  */
18037int i;
18038_ACEOF
18039if ac_fn_c_try_compile "$LINENO"
18040then :
18041  xorg_cv_cc_flag_unknown_warning_option=yes
18042else $as_nop
18043  xorg_cv_cc_flag_unknown_warning_option=no
18044fi
18045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18046fi
18047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18048printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18049	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18050	CFLAGS="$xorg_testset_save_CFLAGS"
18051fi
18052
18053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18054	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18056	fi
18057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18059printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18060if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18061then :
18062  printf %s "(cached) " >&6
18063else $as_nop
18064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065/* end confdefs.h.  */
18066int i;
18067_ACEOF
18068if ac_fn_c_try_compile "$LINENO"
18069then :
18070  xorg_cv_cc_flag_unused_command_line_argument=yes
18071else $as_nop
18072  xorg_cv_cc_flag_unused_command_line_argument=no
18073fi
18074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18075fi
18076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18077printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18079	CFLAGS="$xorg_testset_save_CFLAGS"
18080fi
18081
18082found="no"
18083
18084	if test $found = "no" ; then
18085		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18087		fi
18088
18089		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18091		fi
18092
18093		CFLAGS="$CFLAGS -Wtrigraphs"
18094
18095		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18096printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18097		cacheid=xorg_cv_cc_flag__Wtrigraphs
18098		if eval test \${$cacheid+y}
18099then :
18100  printf %s "(cached) " >&6
18101else $as_nop
18102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103/* end confdefs.h.  */
18104int i;
18105int
18106main (void)
18107{
18108
18109  ;
18110  return 0;
18111}
18112_ACEOF
18113if ac_fn_c_try_link "$LINENO"
18114then :
18115  eval $cacheid=yes
18116else $as_nop
18117  eval $cacheid=no
18118fi
18119rm -f core conftest.err conftest.$ac_objext conftest.beam \
18120    conftest$ac_exeext conftest.$ac_ext
18121fi
18122
18123
18124		CFLAGS="$xorg_testset_save_CFLAGS"
18125
18126		eval supported=\$$cacheid
18127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18128printf "%s\n" "$supported" >&6; }
18129		if test "$supported" = "yes" ; then
18130			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18131			found="yes"
18132		fi
18133	fi
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149xorg_testset_save_CFLAGS="$CFLAGS"
18150
18151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18153	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18155if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18156then :
18157  printf %s "(cached) " >&6
18158else $as_nop
18159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160/* end confdefs.h.  */
18161int i;
18162_ACEOF
18163if ac_fn_c_try_compile "$LINENO"
18164then :
18165  xorg_cv_cc_flag_unknown_warning_option=yes
18166else $as_nop
18167  xorg_cv_cc_flag_unknown_warning_option=no
18168fi
18169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18170fi
18171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18173	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18174	CFLAGS="$xorg_testset_save_CFLAGS"
18175fi
18176
18177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18178	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18179		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18180	fi
18181	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18182	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18184if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18185then :
18186  printf %s "(cached) " >&6
18187else $as_nop
18188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189/* end confdefs.h.  */
18190int i;
18191_ACEOF
18192if ac_fn_c_try_compile "$LINENO"
18193then :
18194  xorg_cv_cc_flag_unused_command_line_argument=yes
18195else $as_nop
18196  xorg_cv_cc_flag_unused_command_line_argument=no
18197fi
18198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18199fi
18200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18203	CFLAGS="$xorg_testset_save_CFLAGS"
18204fi
18205
18206found="no"
18207
18208	if test $found = "no" ; then
18209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18211		fi
18212
18213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18215		fi
18216
18217		CFLAGS="$CFLAGS -Warray-bounds"
18218
18219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18220printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18221		cacheid=xorg_cv_cc_flag__Warray_bounds
18222		if eval test \${$cacheid+y}
18223then :
18224  printf %s "(cached) " >&6
18225else $as_nop
18226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227/* end confdefs.h.  */
18228int i;
18229int
18230main (void)
18231{
18232
18233  ;
18234  return 0;
18235}
18236_ACEOF
18237if ac_fn_c_try_link "$LINENO"
18238then :
18239  eval $cacheid=yes
18240else $as_nop
18241  eval $cacheid=no
18242fi
18243rm -f core conftest.err conftest.$ac_objext conftest.beam \
18244    conftest$ac_exeext conftest.$ac_ext
18245fi
18246
18247
18248		CFLAGS="$xorg_testset_save_CFLAGS"
18249
18250		eval supported=\$$cacheid
18251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18252printf "%s\n" "$supported" >&6; }
18253		if test "$supported" = "yes" ; then
18254			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18255			found="yes"
18256		fi
18257	fi
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273xorg_testset_save_CFLAGS="$CFLAGS"
18274
18275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18279if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18280then :
18281  printf %s "(cached) " >&6
18282else $as_nop
18283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284/* end confdefs.h.  */
18285int i;
18286_ACEOF
18287if ac_fn_c_try_compile "$LINENO"
18288then :
18289  xorg_cv_cc_flag_unknown_warning_option=yes
18290else $as_nop
18291  xorg_cv_cc_flag_unknown_warning_option=no
18292fi
18293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18294fi
18295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18298	CFLAGS="$xorg_testset_save_CFLAGS"
18299fi
18300
18301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18304	fi
18305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18308if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18309then :
18310  printf %s "(cached) " >&6
18311else $as_nop
18312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18313/* end confdefs.h.  */
18314int i;
18315_ACEOF
18316if ac_fn_c_try_compile "$LINENO"
18317then :
18318  xorg_cv_cc_flag_unused_command_line_argument=yes
18319else $as_nop
18320  xorg_cv_cc_flag_unused_command_line_argument=no
18321fi
18322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18323fi
18324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18327	CFLAGS="$xorg_testset_save_CFLAGS"
18328fi
18329
18330found="no"
18331
18332	if test $found = "no" ; then
18333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18335		fi
18336
18337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18339		fi
18340
18341		CFLAGS="$CFLAGS -Wwrite-strings"
18342
18343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18344printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18345		cacheid=xorg_cv_cc_flag__Wwrite_strings
18346		if eval test \${$cacheid+y}
18347then :
18348  printf %s "(cached) " >&6
18349else $as_nop
18350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351/* end confdefs.h.  */
18352int i;
18353int
18354main (void)
18355{
18356
18357  ;
18358  return 0;
18359}
18360_ACEOF
18361if ac_fn_c_try_link "$LINENO"
18362then :
18363  eval $cacheid=yes
18364else $as_nop
18365  eval $cacheid=no
18366fi
18367rm -f core conftest.err conftest.$ac_objext conftest.beam \
18368    conftest$ac_exeext conftest.$ac_ext
18369fi
18370
18371
18372		CFLAGS="$xorg_testset_save_CFLAGS"
18373
18374		eval supported=\$$cacheid
18375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18376printf "%s\n" "$supported" >&6; }
18377		if test "$supported" = "yes" ; then
18378			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18379			found="yes"
18380		fi
18381	fi
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397xorg_testset_save_CFLAGS="$CFLAGS"
18398
18399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18403if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18404then :
18405  printf %s "(cached) " >&6
18406else $as_nop
18407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408/* end confdefs.h.  */
18409int i;
18410_ACEOF
18411if ac_fn_c_try_compile "$LINENO"
18412then :
18413  xorg_cv_cc_flag_unknown_warning_option=yes
18414else $as_nop
18415  xorg_cv_cc_flag_unknown_warning_option=no
18416fi
18417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18418fi
18419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18422	CFLAGS="$xorg_testset_save_CFLAGS"
18423fi
18424
18425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18428	fi
18429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18432if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18433then :
18434  printf %s "(cached) " >&6
18435else $as_nop
18436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437/* end confdefs.h.  */
18438int i;
18439_ACEOF
18440if ac_fn_c_try_compile "$LINENO"
18441then :
18442  xorg_cv_cc_flag_unused_command_line_argument=yes
18443else $as_nop
18444  xorg_cv_cc_flag_unused_command_line_argument=no
18445fi
18446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18447fi
18448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18451	CFLAGS="$xorg_testset_save_CFLAGS"
18452fi
18453
18454found="no"
18455
18456	if test $found = "no" ; then
18457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18459		fi
18460
18461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18463		fi
18464
18465		CFLAGS="$CFLAGS -Waddress"
18466
18467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18468printf %s "checking if $CC supports -Waddress... " >&6; }
18469		cacheid=xorg_cv_cc_flag__Waddress
18470		if eval test \${$cacheid+y}
18471then :
18472  printf %s "(cached) " >&6
18473else $as_nop
18474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475/* end confdefs.h.  */
18476int i;
18477int
18478main (void)
18479{
18480
18481  ;
18482  return 0;
18483}
18484_ACEOF
18485if ac_fn_c_try_link "$LINENO"
18486then :
18487  eval $cacheid=yes
18488else $as_nop
18489  eval $cacheid=no
18490fi
18491rm -f core conftest.err conftest.$ac_objext conftest.beam \
18492    conftest$ac_exeext conftest.$ac_ext
18493fi
18494
18495
18496		CFLAGS="$xorg_testset_save_CFLAGS"
18497
18498		eval supported=\$$cacheid
18499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18500printf "%s\n" "$supported" >&6; }
18501		if test "$supported" = "yes" ; then
18502			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18503			found="yes"
18504		fi
18505	fi
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521xorg_testset_save_CFLAGS="$CFLAGS"
18522
18523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18527if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18528then :
18529  printf %s "(cached) " >&6
18530else $as_nop
18531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532/* end confdefs.h.  */
18533int i;
18534_ACEOF
18535if ac_fn_c_try_compile "$LINENO"
18536then :
18537  xorg_cv_cc_flag_unknown_warning_option=yes
18538else $as_nop
18539  xorg_cv_cc_flag_unknown_warning_option=no
18540fi
18541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18542fi
18543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18546	CFLAGS="$xorg_testset_save_CFLAGS"
18547fi
18548
18549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18552	fi
18553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18556if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18557then :
18558  printf %s "(cached) " >&6
18559else $as_nop
18560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18561/* end confdefs.h.  */
18562int i;
18563_ACEOF
18564if ac_fn_c_try_compile "$LINENO"
18565then :
18566  xorg_cv_cc_flag_unused_command_line_argument=yes
18567else $as_nop
18568  xorg_cv_cc_flag_unused_command_line_argument=no
18569fi
18570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18571fi
18572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18575	CFLAGS="$xorg_testset_save_CFLAGS"
18576fi
18577
18578found="no"
18579
18580	if test $found = "no" ; then
18581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18583		fi
18584
18585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18587		fi
18588
18589		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18590
18591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18592printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18593		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18594		if eval test \${$cacheid+y}
18595then :
18596  printf %s "(cached) " >&6
18597else $as_nop
18598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18599/* end confdefs.h.  */
18600int i;
18601int
18602main (void)
18603{
18604
18605  ;
18606  return 0;
18607}
18608_ACEOF
18609if ac_fn_c_try_link "$LINENO"
18610then :
18611  eval $cacheid=yes
18612else $as_nop
18613  eval $cacheid=no
18614fi
18615rm -f core conftest.err conftest.$ac_objext conftest.beam \
18616    conftest$ac_exeext conftest.$ac_ext
18617fi
18618
18619
18620		CFLAGS="$xorg_testset_save_CFLAGS"
18621
18622		eval supported=\$$cacheid
18623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18624printf "%s\n" "$supported" >&6; }
18625		if test "$supported" = "yes" ; then
18626			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18627			found="yes"
18628		fi
18629	fi
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645xorg_testset_save_CFLAGS="$CFLAGS"
18646
18647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18651if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18652then :
18653  printf %s "(cached) " >&6
18654else $as_nop
18655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656/* end confdefs.h.  */
18657int i;
18658_ACEOF
18659if ac_fn_c_try_compile "$LINENO"
18660then :
18661  xorg_cv_cc_flag_unknown_warning_option=yes
18662else $as_nop
18663  xorg_cv_cc_flag_unknown_warning_option=no
18664fi
18665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18666fi
18667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18670	CFLAGS="$xorg_testset_save_CFLAGS"
18671fi
18672
18673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18676	fi
18677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18681then :
18682  printf %s "(cached) " >&6
18683else $as_nop
18684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685/* end confdefs.h.  */
18686int i;
18687_ACEOF
18688if ac_fn_c_try_compile "$LINENO"
18689then :
18690  xorg_cv_cc_flag_unused_command_line_argument=yes
18691else $as_nop
18692  xorg_cv_cc_flag_unused_command_line_argument=no
18693fi
18694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18695fi
18696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18699	CFLAGS="$xorg_testset_save_CFLAGS"
18700fi
18701
18702found="no"
18703
18704	if test $found = "no" ; then
18705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18707		fi
18708
18709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18711		fi
18712
18713		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18714
18715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18716printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18717		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18718		if eval test \${$cacheid+y}
18719then :
18720  printf %s "(cached) " >&6
18721else $as_nop
18722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18723/* end confdefs.h.  */
18724int i;
18725int
18726main (void)
18727{
18728
18729  ;
18730  return 0;
18731}
18732_ACEOF
18733if ac_fn_c_try_link "$LINENO"
18734then :
18735  eval $cacheid=yes
18736else $as_nop
18737  eval $cacheid=no
18738fi
18739rm -f core conftest.err conftest.$ac_objext conftest.beam \
18740    conftest$ac_exeext conftest.$ac_ext
18741fi
18742
18743
18744		CFLAGS="$xorg_testset_save_CFLAGS"
18745
18746		eval supported=\$$cacheid
18747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18748printf "%s\n" "$supported" >&6; }
18749		if test "$supported" = "yes" ; then
18750			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18751			found="yes"
18752		fi
18753	fi
18754
18755
18756fi
18757
18758
18759
18760
18761
18762
18763
18764		CWARNFLAGS="$BASE_CFLAGS"
18765		if  test "x$GCC" = xyes ; then
18766		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18767		fi
18768
18769
18770
18771
18772
18773
18774
18775
18776# Check whether --enable-strict-compilation was given.
18777if test ${enable_strict_compilation+y}
18778then :
18779  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18780else $as_nop
18781  STRICT_COMPILE=no
18782fi
18783
18784
18785
18786
18787
18788
18789STRICT_CFLAGS=""
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803xorg_testset_save_CFLAGS="$CFLAGS"
18804
18805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18808printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18809if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18810then :
18811  printf %s "(cached) " >&6
18812else $as_nop
18813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814/* end confdefs.h.  */
18815int i;
18816_ACEOF
18817if ac_fn_c_try_compile "$LINENO"
18818then :
18819  xorg_cv_cc_flag_unknown_warning_option=yes
18820else $as_nop
18821  xorg_cv_cc_flag_unknown_warning_option=no
18822fi
18823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18824fi
18825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18826printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18827	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18828	CFLAGS="$xorg_testset_save_CFLAGS"
18829fi
18830
18831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18832	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18833		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18834	fi
18835	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18836	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18837printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18838if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18839then :
18840  printf %s "(cached) " >&6
18841else $as_nop
18842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843/* end confdefs.h.  */
18844int i;
18845_ACEOF
18846if ac_fn_c_try_compile "$LINENO"
18847then :
18848  xorg_cv_cc_flag_unused_command_line_argument=yes
18849else $as_nop
18850  xorg_cv_cc_flag_unused_command_line_argument=no
18851fi
18852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18853fi
18854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18856	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18857	CFLAGS="$xorg_testset_save_CFLAGS"
18858fi
18859
18860found="no"
18861
18862	if test $found = "no" ; then
18863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18865		fi
18866
18867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18869		fi
18870
18871		CFLAGS="$CFLAGS -pedantic"
18872
18873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18874printf %s "checking if $CC supports -pedantic... " >&6; }
18875		cacheid=xorg_cv_cc_flag__pedantic
18876		if eval test \${$cacheid+y}
18877then :
18878  printf %s "(cached) " >&6
18879else $as_nop
18880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881/* end confdefs.h.  */
18882int i;
18883int
18884main (void)
18885{
18886
18887  ;
18888  return 0;
18889}
18890_ACEOF
18891if ac_fn_c_try_link "$LINENO"
18892then :
18893  eval $cacheid=yes
18894else $as_nop
18895  eval $cacheid=no
18896fi
18897rm -f core conftest.err conftest.$ac_objext conftest.beam \
18898    conftest$ac_exeext conftest.$ac_ext
18899fi
18900
18901
18902		CFLAGS="$xorg_testset_save_CFLAGS"
18903
18904		eval supported=\$$cacheid
18905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18906printf "%s\n" "$supported" >&6; }
18907		if test "$supported" = "yes" ; then
18908			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18909			found="yes"
18910		fi
18911	fi
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927xorg_testset_save_CFLAGS="$CFLAGS"
18928
18929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18932printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18933if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18934then :
18935  printf %s "(cached) " >&6
18936else $as_nop
18937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938/* end confdefs.h.  */
18939int i;
18940_ACEOF
18941if ac_fn_c_try_compile "$LINENO"
18942then :
18943  xorg_cv_cc_flag_unknown_warning_option=yes
18944else $as_nop
18945  xorg_cv_cc_flag_unknown_warning_option=no
18946fi
18947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18948fi
18949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18950printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18951	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18952	CFLAGS="$xorg_testset_save_CFLAGS"
18953fi
18954
18955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18956	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18957		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18958	fi
18959	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18960	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18961printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18962if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18963then :
18964  printf %s "(cached) " >&6
18965else $as_nop
18966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967/* end confdefs.h.  */
18968int i;
18969_ACEOF
18970if ac_fn_c_try_compile "$LINENO"
18971then :
18972  xorg_cv_cc_flag_unused_command_line_argument=yes
18973else $as_nop
18974  xorg_cv_cc_flag_unused_command_line_argument=no
18975fi
18976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18977fi
18978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18979printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18981	CFLAGS="$xorg_testset_save_CFLAGS"
18982fi
18983
18984found="no"
18985
18986	if test $found = "no" ; then
18987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18989		fi
18990
18991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18993		fi
18994
18995		CFLAGS="$CFLAGS -Werror"
18996
18997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18998printf %s "checking if $CC supports -Werror... " >&6; }
18999		cacheid=xorg_cv_cc_flag__Werror
19000		if eval test \${$cacheid+y}
19001then :
19002  printf %s "(cached) " >&6
19003else $as_nop
19004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005/* end confdefs.h.  */
19006int i;
19007int
19008main (void)
19009{
19010
19011  ;
19012  return 0;
19013}
19014_ACEOF
19015if ac_fn_c_try_link "$LINENO"
19016then :
19017  eval $cacheid=yes
19018else $as_nop
19019  eval $cacheid=no
19020fi
19021rm -f core conftest.err conftest.$ac_objext conftest.beam \
19022    conftest$ac_exeext conftest.$ac_ext
19023fi
19024
19025
19026		CFLAGS="$xorg_testset_save_CFLAGS"
19027
19028		eval supported=\$$cacheid
19029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19030printf "%s\n" "$supported" >&6; }
19031		if test "$supported" = "yes" ; then
19032			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19033			found="yes"
19034		fi
19035	fi
19036
19037	if test $found = "no" ; then
19038		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19040		fi
19041
19042		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19044		fi
19045
19046		CFLAGS="$CFLAGS -errwarn"
19047
19048		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19049printf %s "checking if $CC supports -errwarn... " >&6; }
19050		cacheid=xorg_cv_cc_flag__errwarn
19051		if eval test \${$cacheid+y}
19052then :
19053  printf %s "(cached) " >&6
19054else $as_nop
19055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19056/* end confdefs.h.  */
19057int i;
19058int
19059main (void)
19060{
19061
19062  ;
19063  return 0;
19064}
19065_ACEOF
19066if ac_fn_c_try_link "$LINENO"
19067then :
19068  eval $cacheid=yes
19069else $as_nop
19070  eval $cacheid=no
19071fi
19072rm -f core conftest.err conftest.$ac_objext conftest.beam \
19073    conftest$ac_exeext conftest.$ac_ext
19074fi
19075
19076
19077		CFLAGS="$xorg_testset_save_CFLAGS"
19078
19079		eval supported=\$$cacheid
19080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19081printf "%s\n" "$supported" >&6; }
19082		if test "$supported" = "yes" ; then
19083			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19084			found="yes"
19085		fi
19086	fi
19087
19088
19089
19090# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19091# activate it with -Werror, so we add it here explicitly.
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105xorg_testset_save_CFLAGS="$CFLAGS"
19106
19107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19111if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19112then :
19113  printf %s "(cached) " >&6
19114else $as_nop
19115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19116/* end confdefs.h.  */
19117int i;
19118_ACEOF
19119if ac_fn_c_try_compile "$LINENO"
19120then :
19121  xorg_cv_cc_flag_unknown_warning_option=yes
19122else $as_nop
19123  xorg_cv_cc_flag_unknown_warning_option=no
19124fi
19125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19126fi
19127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19130	CFLAGS="$xorg_testset_save_CFLAGS"
19131fi
19132
19133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19136	fi
19137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19140if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19141then :
19142  printf %s "(cached) " >&6
19143else $as_nop
19144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145/* end confdefs.h.  */
19146int i;
19147_ACEOF
19148if ac_fn_c_try_compile "$LINENO"
19149then :
19150  xorg_cv_cc_flag_unused_command_line_argument=yes
19151else $as_nop
19152  xorg_cv_cc_flag_unused_command_line_argument=no
19153fi
19154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19155fi
19156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19159	CFLAGS="$xorg_testset_save_CFLAGS"
19160fi
19161
19162found="no"
19163
19164	if test $found = "no" ; then
19165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19167		fi
19168
19169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19171		fi
19172
19173		CFLAGS="$CFLAGS -Werror=attributes"
19174
19175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19176printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19177		cacheid=xorg_cv_cc_flag__Werror_attributes
19178		if eval test \${$cacheid+y}
19179then :
19180  printf %s "(cached) " >&6
19181else $as_nop
19182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183/* end confdefs.h.  */
19184int i;
19185int
19186main (void)
19187{
19188
19189  ;
19190  return 0;
19191}
19192_ACEOF
19193if ac_fn_c_try_link "$LINENO"
19194then :
19195  eval $cacheid=yes
19196else $as_nop
19197  eval $cacheid=no
19198fi
19199rm -f core conftest.err conftest.$ac_objext conftest.beam \
19200    conftest$ac_exeext conftest.$ac_ext
19201fi
19202
19203
19204		CFLAGS="$xorg_testset_save_CFLAGS"
19205
19206		eval supported=\$$cacheid
19207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19208printf "%s\n" "$supported" >&6; }
19209		if test "$supported" = "yes" ; then
19210			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19211			found="yes"
19212		fi
19213	fi
19214
19215
19216
19217if test "x$STRICT_COMPILE" = "xyes"; then
19218    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19219    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19220fi
19221
19222
19223
19224
19225
19226
19227cat >>confdefs.h <<_ACEOF
19228#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19229_ACEOF
19230
19231	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19232	if test "x$PVM" = "x"; then
19233		PVM="0"
19234	fi
19235
19236printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19237
19238	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19239	if test "x$PVP" = "x"; then
19240		PVP="0"
19241	fi
19242
19243printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19244
19245
19246
19247CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19248mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19249|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19250touch \$(top_srcdir)/ChangeLog; \
19251echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19252
19253
19254
19255
19256macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19257INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19258mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19259|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19260touch \$(top_srcdir)/INSTALL; \
19261echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19262
19263
19264
19265
19266
19267
19268case $host_os in
19269    solaris*)
19270        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19271        # check for a man page file found in later versions that use
19272        # traditional section numbers instead
19273        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19274printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19275if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19276then :
19277  printf %s "(cached) " >&6
19278else $as_nop
19279  test "$cross_compiling" = yes &&
19280  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19281if test -r "/usr/share/man/man7/attributes.7"; then
19282  ac_cv_file__usr_share_man_man7_attributes_7=yes
19283else
19284  ac_cv_file__usr_share_man_man7_attributes_7=no
19285fi
19286fi
19287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19288printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19289if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19290then :
19291  SYSV_MAN_SECTIONS=false
19292else $as_nop
19293  SYSV_MAN_SECTIONS=true
19294fi
19295
19296        ;;
19297    *) SYSV_MAN_SECTIONS=false ;;
19298esac
19299
19300if test x$APP_MAN_SUFFIX = x    ; then
19301    APP_MAN_SUFFIX=1
19302fi
19303if test x$APP_MAN_DIR = x    ; then
19304    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19305fi
19306
19307if test x$LIB_MAN_SUFFIX = x    ; then
19308    LIB_MAN_SUFFIX=3
19309fi
19310if test x$LIB_MAN_DIR = x    ; then
19311    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19312fi
19313
19314if test x$FILE_MAN_SUFFIX = x    ; then
19315    case $SYSV_MAN_SECTIONS in
19316	true)				FILE_MAN_SUFFIX=4  ;;
19317	*)				FILE_MAN_SUFFIX=5  ;;
19318    esac
19319fi
19320if test x$FILE_MAN_DIR = x    ; then
19321    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19322fi
19323
19324if test x$MISC_MAN_SUFFIX = x    ; then
19325    case $SYSV_MAN_SECTIONS in
19326	true)				MISC_MAN_SUFFIX=5  ;;
19327	*)				MISC_MAN_SUFFIX=7  ;;
19328    esac
19329fi
19330if test x$MISC_MAN_DIR = x    ; then
19331    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19332fi
19333
19334if test x$DRIVER_MAN_SUFFIX = x    ; then
19335    case $SYSV_MAN_SECTIONS in
19336	true)				DRIVER_MAN_SUFFIX=7  ;;
19337	*)				DRIVER_MAN_SUFFIX=4  ;;
19338    esac
19339fi
19340if test x$DRIVER_MAN_DIR = x    ; then
19341    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19342fi
19343
19344if test x$ADMIN_MAN_SUFFIX = x    ; then
19345    case $SYSV_MAN_SECTIONS in
19346	true)				ADMIN_MAN_SUFFIX=1m ;;
19347	*)				ADMIN_MAN_SUFFIX=8  ;;
19348    esac
19349fi
19350if test x$ADMIN_MAN_DIR = x    ; then
19351    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19352fi
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368XORG_MAN_PAGE="X Version 11"
19369
19370MAN_SUBSTS="\
19371	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19372	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19373	-e 's|__xservername__|Xorg|g' \
19374	-e 's|__xconfigfile__|xorg.conf|g' \
19375	-e 's|__projectroot__|\$(prefix)|g' \
19376	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19377	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19378	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19379	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19380	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19381	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19382	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19383
19384
19385
19386# Check whether --enable-silent-rules was given.
19387if test ${enable_silent_rules+y}
19388then :
19389  enableval=$enable_silent_rules;
19390fi
19391
19392case $enable_silent_rules in # (((
19393  yes) AM_DEFAULT_VERBOSITY=0;;
19394   no) AM_DEFAULT_VERBOSITY=1;;
19395    *) AM_DEFAULT_VERBOSITY=0;;
19396esac
19397am_make=${MAKE-make}
19398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19399printf %s "checking whether $am_make supports nested variables... " >&6; }
19400if test ${am_cv_make_support_nested_variables+y}
19401then :
19402  printf %s "(cached) " >&6
19403else $as_nop
19404  if printf "%s\n" 'TRUE=$(BAR$(V))
19405BAR0=false
19406BAR1=true
19407V=1
19408am__doit:
19409	@$(TRUE)
19410.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19411  am_cv_make_support_nested_variables=yes
19412else
19413  am_cv_make_support_nested_variables=no
19414fi
19415fi
19416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19417printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19418if test $am_cv_make_support_nested_variables = yes; then
19419    AM_V='$(V)'
19420  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19421else
19422  AM_V=$AM_DEFAULT_VERBOSITY
19423  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19424fi
19425AM_BACKSLASH='\'
19426
19427
19428
19429
19430# Check whether --enable-docs was given.
19431if test ${enable_docs+y}
19432then :
19433  enableval=$enable_docs; build_docs=$enableval
19434else $as_nop
19435  build_docs=yes
19436fi
19437
19438
19439 if test x$build_docs = xyes; then
19440  ENABLE_DOCS_TRUE=
19441  ENABLE_DOCS_FALSE='#'
19442else
19443  ENABLE_DOCS_TRUE='#'
19444  ENABLE_DOCS_FALSE=
19445fi
19446
19447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
19448printf %s "checking whether to build documentation... " >&6; }
19449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
19450printf "%s\n" "$build_docs" >&6; }
19451
19452
19453
19454
19455
19456# Check whether --with-xmlto was given.
19457if test ${with_xmlto+y}
19458then :
19459  withval=$with_xmlto; use_xmlto=$withval
19460else $as_nop
19461  use_xmlto=auto
19462fi
19463
19464
19465
19466if test "x$use_xmlto" = x"auto"; then
19467   # Extract the first word of "xmlto", so it can be a program name with args.
19468set dummy xmlto; ac_word=$2
19469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19470printf %s "checking for $ac_word... " >&6; }
19471if test ${ac_cv_path_XMLTO+y}
19472then :
19473  printf %s "(cached) " >&6
19474else $as_nop
19475  case $XMLTO in
19476  [\\/]* | ?:[\\/]*)
19477  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19478  ;;
19479  *)
19480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19481for as_dir in $PATH
19482do
19483  IFS=$as_save_IFS
19484  case $as_dir in #(((
19485    '') as_dir=./ ;;
19486    */) ;;
19487    *) as_dir=$as_dir/ ;;
19488  esac
19489    for ac_exec_ext in '' $ac_executable_extensions; do
19490  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19491    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19492    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19493    break 2
19494  fi
19495done
19496  done
19497IFS=$as_save_IFS
19498
19499  ;;
19500esac
19501fi
19502XMLTO=$ac_cv_path_XMLTO
19503if test -n "$XMLTO"; then
19504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19505printf "%s\n" "$XMLTO" >&6; }
19506else
19507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19508printf "%s\n" "no" >&6; }
19509fi
19510
19511
19512   if test "x$XMLTO" = "x"; then
19513        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19514printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19515	have_xmlto=no
19516   else
19517        have_xmlto=yes
19518   fi
19519elif test "x$use_xmlto" = x"yes" ; then
19520   # Extract the first word of "xmlto", so it can be a program name with args.
19521set dummy xmlto; ac_word=$2
19522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19523printf %s "checking for $ac_word... " >&6; }
19524if test ${ac_cv_path_XMLTO+y}
19525then :
19526  printf %s "(cached) " >&6
19527else $as_nop
19528  case $XMLTO in
19529  [\\/]* | ?:[\\/]*)
19530  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19531  ;;
19532  *)
19533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19534for as_dir in $PATH
19535do
19536  IFS=$as_save_IFS
19537  case $as_dir in #(((
19538    '') as_dir=./ ;;
19539    */) ;;
19540    *) as_dir=$as_dir/ ;;
19541  esac
19542    for ac_exec_ext in '' $ac_executable_extensions; do
19543  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19544    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19545    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19546    break 2
19547  fi
19548done
19549  done
19550IFS=$as_save_IFS
19551
19552  ;;
19553esac
19554fi
19555XMLTO=$ac_cv_path_XMLTO
19556if test -n "$XMLTO"; then
19557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19558printf "%s\n" "$XMLTO" >&6; }
19559else
19560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19561printf "%s\n" "no" >&6; }
19562fi
19563
19564
19565   if test "x$XMLTO" = "x"; then
19566        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19567   fi
19568   have_xmlto=yes
19569elif test "x$use_xmlto" = x"no" ; then
19570   if test "x$XMLTO" != "x"; then
19571      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19572printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19573   fi
19574   have_xmlto=no
19575else
19576   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19577fi
19578
19579# Test for a minimum version of xmlto, if provided.
19580if test "$have_xmlto" = yes; then
19581    # scrape the xmlto version
19582    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19583printf %s "checking the xmlto version... " >&6; }
19584    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19585    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19586printf "%s\n" "$xmlto_version" >&6; }
19587    as_arg_v1=$xmlto_version
19588as_arg_v2=0.0.22
19589awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19590case $? in #(
19591  1) :
19592    if test "x$use_xmlto" = xauto; then
19593            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19594printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19595            have_xmlto=no
19596        else
19597            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19598        fi ;; #(
19599  0) :
19600     ;; #(
19601  2) :
19602     ;; #(
19603  *) :
19604     ;;
19605esac
19606fi
19607
19608# Test for the ability of xmlto to generate a text target
19609#
19610# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19611# following test for empty XML docbook files.
19612# For compatibility reasons use the following empty XML docbook file and if
19613# it fails try it again with a non-empty XML file.
19614have_xmlto_text=no
19615cat > conftest.xml << "EOF"
19616EOF
19617if test "$have_xmlto" = yes
19618then :
19619  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19620then :
19621  have_xmlto_text=yes
19622else $as_nop
19623  # Try it again with a non-empty XML file.
19624              cat > conftest.xml << "EOF"
19625<x></x>
19626EOF
19627              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19628then :
19629  have_xmlto_text=yes
19630else $as_nop
19631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19632printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19633fi
19634fi
19635fi
19636rm -f conftest.xml
19637 if test $have_xmlto_text = yes; then
19638  HAVE_XMLTO_TEXT_TRUE=
19639  HAVE_XMLTO_TEXT_FALSE='#'
19640else
19641  HAVE_XMLTO_TEXT_TRUE='#'
19642  HAVE_XMLTO_TEXT_FALSE=
19643fi
19644
19645 if test "$have_xmlto" = yes; then
19646  HAVE_XMLTO_TRUE=
19647  HAVE_XMLTO_FALSE='#'
19648else
19649  HAVE_XMLTO_TRUE='#'
19650  HAVE_XMLTO_FALSE=
19651fi
19652
19653
19654
19655
19656
19657
19658# Check whether --with-fop was given.
19659if test ${with_fop+y}
19660then :
19661  withval=$with_fop; use_fop=$withval
19662else $as_nop
19663  use_fop=auto
19664fi
19665
19666
19667
19668if test "x$use_fop" = x"auto"; then
19669   # Extract the first word of "fop", so it can be a program name with args.
19670set dummy fop; ac_word=$2
19671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19672printf %s "checking for $ac_word... " >&6; }
19673if test ${ac_cv_path_FOP+y}
19674then :
19675  printf %s "(cached) " >&6
19676else $as_nop
19677  case $FOP in
19678  [\\/]* | ?:[\\/]*)
19679  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19680  ;;
19681  *)
19682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19683for as_dir in $PATH
19684do
19685  IFS=$as_save_IFS
19686  case $as_dir in #(((
19687    '') as_dir=./ ;;
19688    */) ;;
19689    *) as_dir=$as_dir/ ;;
19690  esac
19691    for ac_exec_ext in '' $ac_executable_extensions; do
19692  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19693    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19694    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19695    break 2
19696  fi
19697done
19698  done
19699IFS=$as_save_IFS
19700
19701  ;;
19702esac
19703fi
19704FOP=$ac_cv_path_FOP
19705if test -n "$FOP"; then
19706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19707printf "%s\n" "$FOP" >&6; }
19708else
19709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19710printf "%s\n" "no" >&6; }
19711fi
19712
19713
19714   if test "x$FOP" = "x"; then
19715        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19716printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19717	have_fop=no
19718   else
19719        have_fop=yes
19720   fi
19721elif test "x$use_fop" = x"yes" ; then
19722   # Extract the first word of "fop", so it can be a program name with args.
19723set dummy fop; ac_word=$2
19724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19725printf %s "checking for $ac_word... " >&6; }
19726if test ${ac_cv_path_FOP+y}
19727then :
19728  printf %s "(cached) " >&6
19729else $as_nop
19730  case $FOP in
19731  [\\/]* | ?:[\\/]*)
19732  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19733  ;;
19734  *)
19735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19736for as_dir in $PATH
19737do
19738  IFS=$as_save_IFS
19739  case $as_dir in #(((
19740    '') as_dir=./ ;;
19741    */) ;;
19742    *) as_dir=$as_dir/ ;;
19743  esac
19744    for ac_exec_ext in '' $ac_executable_extensions; do
19745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19746    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19748    break 2
19749  fi
19750done
19751  done
19752IFS=$as_save_IFS
19753
19754  ;;
19755esac
19756fi
19757FOP=$ac_cv_path_FOP
19758if test -n "$FOP"; then
19759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19760printf "%s\n" "$FOP" >&6; }
19761else
19762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19763printf "%s\n" "no" >&6; }
19764fi
19765
19766
19767   if test "x$FOP" = "x"; then
19768        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19769   fi
19770   have_fop=yes
19771elif test "x$use_fop" = x"no" ; then
19772   if test "x$FOP" != "x"; then
19773      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19774printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19775   fi
19776   have_fop=no
19777else
19778   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19779fi
19780
19781# Test for a minimum version of fop, if provided.
19782
19783 if test "$have_fop" = yes; then
19784  HAVE_FOP_TRUE=
19785  HAVE_FOP_FALSE='#'
19786else
19787  HAVE_FOP_TRUE='#'
19788  HAVE_FOP_FALSE=
19789fi
19790
19791
19792
19793
19794# Preserves the interface, should it be implemented later
19795
19796
19797
19798# Check whether --with-xsltproc was given.
19799if test ${with_xsltproc+y}
19800then :
19801  withval=$with_xsltproc; use_xsltproc=$withval
19802else $as_nop
19803  use_xsltproc=auto
19804fi
19805
19806
19807
19808if test "x$use_xsltproc" = x"auto"; then
19809   # Extract the first word of "xsltproc", so it can be a program name with args.
19810set dummy xsltproc; ac_word=$2
19811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19812printf %s "checking for $ac_word... " >&6; }
19813if test ${ac_cv_path_XSLTPROC+y}
19814then :
19815  printf %s "(cached) " >&6
19816else $as_nop
19817  case $XSLTPROC in
19818  [\\/]* | ?:[\\/]*)
19819  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19820  ;;
19821  *)
19822  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19823for as_dir in $PATH
19824do
19825  IFS=$as_save_IFS
19826  case $as_dir in #(((
19827    '') as_dir=./ ;;
19828    */) ;;
19829    *) as_dir=$as_dir/ ;;
19830  esac
19831    for ac_exec_ext in '' $ac_executable_extensions; do
19832  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19833    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19834    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19835    break 2
19836  fi
19837done
19838  done
19839IFS=$as_save_IFS
19840
19841  ;;
19842esac
19843fi
19844XSLTPROC=$ac_cv_path_XSLTPROC
19845if test -n "$XSLTPROC"; then
19846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19847printf "%s\n" "$XSLTPROC" >&6; }
19848else
19849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19850printf "%s\n" "no" >&6; }
19851fi
19852
19853
19854   if test "x$XSLTPROC" = "x"; then
19855        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19856printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19857	have_xsltproc=no
19858   else
19859        have_xsltproc=yes
19860   fi
19861elif test "x$use_xsltproc" = x"yes" ; then
19862   # Extract the first word of "xsltproc", so it can be a program name with args.
19863set dummy xsltproc; ac_word=$2
19864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19865printf %s "checking for $ac_word... " >&6; }
19866if test ${ac_cv_path_XSLTPROC+y}
19867then :
19868  printf %s "(cached) " >&6
19869else $as_nop
19870  case $XSLTPROC in
19871  [\\/]* | ?:[\\/]*)
19872  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19873  ;;
19874  *)
19875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19876for as_dir in $PATH
19877do
19878  IFS=$as_save_IFS
19879  case $as_dir in #(((
19880    '') as_dir=./ ;;
19881    */) ;;
19882    *) as_dir=$as_dir/ ;;
19883  esac
19884    for ac_exec_ext in '' $ac_executable_extensions; do
19885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19886    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19888    break 2
19889  fi
19890done
19891  done
19892IFS=$as_save_IFS
19893
19894  ;;
19895esac
19896fi
19897XSLTPROC=$ac_cv_path_XSLTPROC
19898if test -n "$XSLTPROC"; then
19899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19900printf "%s\n" "$XSLTPROC" >&6; }
19901else
19902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19903printf "%s\n" "no" >&6; }
19904fi
19905
19906
19907   if test "x$XSLTPROC" = "x"; then
19908        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19909   fi
19910   have_xsltproc=yes
19911elif test "x$use_xsltproc" = x"no" ; then
19912   if test "x$XSLTPROC" != "x"; then
19913      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19914printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19915   fi
19916   have_xsltproc=no
19917else
19918   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19919fi
19920
19921 if test "$have_xsltproc" = yes; then
19922  HAVE_XSLTPROC_TRUE=
19923  HAVE_XSLTPROC_FALSE='#'
19924else
19925  HAVE_XSLTPROC_TRUE='#'
19926  HAVE_XSLTPROC_FALSE=
19927fi
19928
19929
19930
19931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
19932printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
19933XORG_SGML_PATH=
19934if test -n "$PKG_CONFIG" && \
19935    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
19936  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
19937  ac_status=$?
19938  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19939  test $ac_status = 0; }; then
19940  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19941else
19942  :
19943
19944fi
19945
19946# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19947# the path and the name of the doc stylesheet
19948if test "x$XORG_SGML_PATH" != "x" ; then
19949   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19950printf "%s\n" "$XORG_SGML_PATH" >&6; }
19951   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19952   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19953else
19954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19955printf "%s\n" "no" >&6; }
19956fi
19957
19958
19959
19960
19961 if test "x$XSL_STYLESHEET" != "x"; then
19962  HAVE_STYLESHEETS_TRUE=
19963  HAVE_STYLESHEETS_FALSE='#'
19964else
19965  HAVE_STYLESHEETS_TRUE='#'
19966  HAVE_STYLESHEETS_FALSE=
19967fi
19968
19969
19970
19971# Obtain compiler/linker options for dependencies
19972
19973pkg_failed=no
19974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SM" >&5
19975printf %s "checking for SM... " >&6; }
19976
19977if test -n "$SM_CFLAGS"; then
19978    pkg_cv_SM_CFLAGS="$SM_CFLAGS"
19979 elif test -n "$PKG_CONFIG"; then
19980    if test -n "$PKG_CONFIG" && \
19981    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.1.0 xproto xtrans\""; } >&5
19982  ($PKG_CONFIG --exists --print-errors "ice >= 1.1.0 xproto xtrans") 2>&5
19983  ac_status=$?
19984  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19985  test $ac_status = 0; }; then
19986  pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice >= 1.1.0 xproto xtrans" 2>/dev/null`
19987		      test "x$?" != "x0" && pkg_failed=yes
19988else
19989  pkg_failed=yes
19990fi
19991 else
19992    pkg_failed=untried
19993fi
19994if test -n "$SM_LIBS"; then
19995    pkg_cv_SM_LIBS="$SM_LIBS"
19996 elif test -n "$PKG_CONFIG"; then
19997    if test -n "$PKG_CONFIG" && \
19998    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.1.0 xproto xtrans\""; } >&5
19999  ($PKG_CONFIG --exists --print-errors "ice >= 1.1.0 xproto xtrans") 2>&5
20000  ac_status=$?
20001  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20002  test $ac_status = 0; }; then
20003  pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice >= 1.1.0 xproto xtrans" 2>/dev/null`
20004		      test "x$?" != "x0" && pkg_failed=yes
20005else
20006  pkg_failed=yes
20007fi
20008 else
20009    pkg_failed=untried
20010fi
20011
20012
20013
20014if test $pkg_failed = yes; then
20015   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20016printf "%s\n" "no" >&6; }
20017
20018if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20019        _pkg_short_errors_supported=yes
20020else
20021        _pkg_short_errors_supported=no
20022fi
20023        if test $_pkg_short_errors_supported = yes; then
20024	        SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ice >= 1.1.0 xproto xtrans" 2>&1`
20025        else
20026	        SM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ice >= 1.1.0 xproto xtrans" 2>&1`
20027        fi
20028	# Put the nasty error message in config.log where it belongs
20029	echo "$SM_PKG_ERRORS" >&5
20030
20031	as_fn_error $? "Package requirements (ice >= 1.1.0 xproto xtrans) were not met:
20032
20033$SM_PKG_ERRORS
20034
20035Consider adjusting the PKG_CONFIG_PATH environment variable if you
20036installed software in a non-standard prefix.
20037
20038Alternatively, you may set the environment variables SM_CFLAGS
20039and SM_LIBS to avoid the need to call pkg-config.
20040See the pkg-config man page for more details." "$LINENO" 5
20041elif test $pkg_failed = untried; then
20042     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043printf "%s\n" "no" >&6; }
20044	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20045printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20046as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20047is in your PATH or set the PKG_CONFIG environment variable to the full
20048path to pkg-config.
20049
20050Alternatively, you may set the environment variables SM_CFLAGS
20051and SM_LIBS to avoid the need to call pkg-config.
20052See the pkg-config man page for more details.
20053
20054To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20055See \`config.log' for more details" "$LINENO" 5; }
20056else
20057	SM_CFLAGS=$pkg_cv_SM_CFLAGS
20058	SM_LIBS=$pkg_cv_SM_LIBS
20059        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20060printf "%s\n" "yes" >&6; }
20061
20062fi
20063
20064# Needed to check for TCP & IPv6 support and set flags appropriately
20065
20066
20067 case $host_os in
20068	mingw*)	unixdef="no"   ;;
20069	*)	unixdef="yes"  ;;
20070 esac
20071 # Check whether --enable-unix-transport was given.
20072if test ${enable_unix_transport+y}
20073then :
20074  enableval=$enable_unix_transport; UNIXCONN=$enableval
20075else $as_nop
20076  UNIXCONN=$unixdef
20077fi
20078
20079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
20080printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
20081 if test "$UNIXCONN" = "yes"; then
20082
20083printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
20084
20085 fi
20086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
20087printf "%s\n" "$UNIXCONN" >&6; }
20088 # Check whether --enable-tcp-transport was given.
20089if test ${enable_tcp_transport+y}
20090then :
20091  enableval=$enable_tcp_transport; TCPCONN=$enableval
20092else $as_nop
20093  TCPCONN=yes
20094fi
20095
20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
20097printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
20098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
20099printf "%s\n" "$TCPCONN" >&6; }
20100 if test "$TCPCONN" = "yes"; then
20101
20102printf "%s\n" "#define TCPCONN 1" >>confdefs.h
20103
20104
20105 # SVR4 hides these in libraries other than libc
20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20107printf %s "checking for library containing socket... " >&6; }
20108if test ${ac_cv_search_socket+y}
20109then :
20110  printf %s "(cached) " >&6
20111else $as_nop
20112  ac_func_search_save_LIBS=$LIBS
20113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20114/* end confdefs.h.  */
20115
20116/* Override any GCC internal prototype to avoid an error.
20117   Use char because int might match the return type of a GCC
20118   builtin and then its argument prototype would still apply.  */
20119char socket ();
20120int
20121main (void)
20122{
20123return socket ();
20124  ;
20125  return 0;
20126}
20127_ACEOF
20128for ac_lib in '' socket
20129do
20130  if test -z "$ac_lib"; then
20131    ac_res="none required"
20132  else
20133    ac_res=-l$ac_lib
20134    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20135  fi
20136  if ac_fn_c_try_link "$LINENO"
20137then :
20138  ac_cv_search_socket=$ac_res
20139fi
20140rm -f core conftest.err conftest.$ac_objext conftest.beam \
20141    conftest$ac_exeext
20142  if test ${ac_cv_search_socket+y}
20143then :
20144  break
20145fi
20146done
20147if test ${ac_cv_search_socket+y}
20148then :
20149
20150else $as_nop
20151  ac_cv_search_socket=no
20152fi
20153rm conftest.$ac_ext
20154LIBS=$ac_func_search_save_LIBS
20155fi
20156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20157printf "%s\n" "$ac_cv_search_socket" >&6; }
20158ac_res=$ac_cv_search_socket
20159if test "$ac_res" != no
20160then :
20161  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20162
20163fi
20164
20165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20166printf %s "checking for library containing gethostbyname... " >&6; }
20167if test ${ac_cv_search_gethostbyname+y}
20168then :
20169  printf %s "(cached) " >&6
20170else $as_nop
20171  ac_func_search_save_LIBS=$LIBS
20172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20173/* end confdefs.h.  */
20174
20175/* Override any GCC internal prototype to avoid an error.
20176   Use char because int might match the return type of a GCC
20177   builtin and then its argument prototype would still apply.  */
20178char gethostbyname ();
20179int
20180main (void)
20181{
20182return gethostbyname ();
20183  ;
20184  return 0;
20185}
20186_ACEOF
20187for ac_lib in '' nsl
20188do
20189  if test -z "$ac_lib"; then
20190    ac_res="none required"
20191  else
20192    ac_res=-l$ac_lib
20193    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20194  fi
20195  if ac_fn_c_try_link "$LINENO"
20196then :
20197  ac_cv_search_gethostbyname=$ac_res
20198fi
20199rm -f core conftest.err conftest.$ac_objext conftest.beam \
20200    conftest$ac_exeext
20201  if test ${ac_cv_search_gethostbyname+y}
20202then :
20203  break
20204fi
20205done
20206if test ${ac_cv_search_gethostbyname+y}
20207then :
20208
20209else $as_nop
20210  ac_cv_search_gethostbyname=no
20211fi
20212rm conftest.$ac_ext
20213LIBS=$ac_func_search_save_LIBS
20214fi
20215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20216printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
20217ac_res=$ac_cv_search_gethostbyname
20218if test "$ac_res" != no
20219then :
20220  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20221
20222fi
20223
20224 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
20225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20226printf %s "checking for main in -lws2_32... " >&6; }
20227if test ${ac_cv_lib_ws2_32_main+y}
20228then :
20229  printf %s "(cached) " >&6
20230else $as_nop
20231  ac_check_lib_save_LIBS=$LIBS
20232LIBS="-lws2_32  $LIBS"
20233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20234/* end confdefs.h.  */
20235
20236
20237int
20238main (void)
20239{
20240return main ();
20241  ;
20242  return 0;
20243}
20244_ACEOF
20245if ac_fn_c_try_link "$LINENO"
20246then :
20247  ac_cv_lib_ws2_32_main=yes
20248else $as_nop
20249  ac_cv_lib_ws2_32_main=no
20250fi
20251rm -f core conftest.err conftest.$ac_objext conftest.beam \
20252    conftest$ac_exeext conftest.$ac_ext
20253LIBS=$ac_check_lib_save_LIBS
20254fi
20255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20256printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
20257if test "x$ac_cv_lib_ws2_32_main" = xyes
20258then :
20259  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
20260
20261  LIBS="-lws2_32 $LIBS"
20262
20263fi
20264
20265 fi
20266
20267 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
20268 # Check whether --enable-ipv6 was given.
20269if test ${enable_ipv6+y}
20270then :
20271  enableval=$enable_ipv6; IPV6CONN=$enableval
20272else $as_nop
20273  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20274if test "x$ac_cv_func_getaddrinfo" = xyes
20275then :
20276  IPV6CONN=yes
20277else $as_nop
20278  IPV6CONN=no
20279fi
20280
20281fi
20282
20283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20284printf %s "checking if IPv6 support should be built... " >&6; }
20285 if test "$IPV6CONN" = "yes"; then
20286
20287printf "%s\n" "#define IPv6 1" >>confdefs.h
20288
20289 fi
20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20291printf "%s\n" "$IPV6CONN" >&6; }
20292
20293 # 4.3BSD-Reno added a new member to struct sockaddr_in
20294 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20295#include <sys/types.h>
20296#include <sys/socket.h>
20297#include <netinet/in.h>
20298
20299"
20300if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
20301then :
20302
20303printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
20304
20305fi
20306
20307
20308 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20309 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20310$ac_includes_default
20311#include <sys/socket.h>
20312"
20313if test "x$ac_cv_type_socklen_t" = xyes
20314then :
20315
20316printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
20317
20318
20319fi
20320
20321
20322 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20323 # _XOPEN_SOURCE to get it (such as on Solaris)
20324 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20325$ac_includes_default
20326#include <sys/socket.h>
20327
20328"
20329if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20330then :
20331
20332fi
20333
20334 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20335 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20336     unset ac_cv_member_struct_msghdr_msg_control
20337     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20338printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20339     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20340#define _XOPEN_SOURCE 600
20341$ac_includes_default
20342#include <sys/socket.h>
20343
20344"
20345if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20346then :
20347
20348printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
20349
20350
20351fi
20352
20353 fi
20354 # If that didn't work, fall back to XPG5/UNIX98 with C89
20355 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20356     unset ac_cv_member_struct_msghdr_msg_control
20357     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20358printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20359     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20360#define _XOPEN_SOURCE 500
20361$ac_includes_default
20362#include <sys/socket.h>
20363
20364"
20365if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20366then :
20367
20368printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
20369
20370
20371fi
20372
20373 fi
20374
20375
20376
20377 fi
20378 case $host_os in
20379	solaris*)		localdef="yes" ;;
20380	*)			localdef="no"  ;;
20381 esac
20382 # Check whether --enable-local-transport was given.
20383if test ${enable_local_transport+y}
20384then :
20385  enableval=$enable_local_transport; LOCALCONN=$enableval
20386else $as_nop
20387  LOCALCONN=$localdef
20388fi
20389
20390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20391printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
20392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20393printf "%s\n" "$LOCALCONN" >&6; }
20394 if test "$LOCALCONN" = "yes"; then
20395
20396printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
20397
20398 fi
20399
20400 # Other functions Xtrans may need
20401 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20402if test "x$ac_cv_func_strcasecmp" = xyes
20403then :
20404  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
20405
20406fi
20407ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20408if test "x$ac_cv_func_strlcpy" = xyes
20409then :
20410  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20411
20412fi
20413
20414
20415
20416
20417
20418# Check whether --with-libuuid was given.
20419if test ${with_libuuid+y}
20420then :
20421  withval=$with_libuuid;
20422fi
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20433	if test -n "$ac_tool_prefix"; then
20434  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20435set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20437printf %s "checking for $ac_word... " >&6; }
20438if test ${ac_cv_path_PKG_CONFIG+y}
20439then :
20440  printf %s "(cached) " >&6
20441else $as_nop
20442  case $PKG_CONFIG in
20443  [\\/]* | ?:[\\/]*)
20444  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20445  ;;
20446  *)
20447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20448for as_dir in $PATH
20449do
20450  IFS=$as_save_IFS
20451  case $as_dir in #(((
20452    '') as_dir=./ ;;
20453    */) ;;
20454    *) as_dir=$as_dir/ ;;
20455  esac
20456    for ac_exec_ext in '' $ac_executable_extensions; do
20457  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20458    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20459    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20460    break 2
20461  fi
20462done
20463  done
20464IFS=$as_save_IFS
20465
20466  ;;
20467esac
20468fi
20469PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20470if test -n "$PKG_CONFIG"; then
20471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20472printf "%s\n" "$PKG_CONFIG" >&6; }
20473else
20474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20475printf "%s\n" "no" >&6; }
20476fi
20477
20478
20479fi
20480if test -z "$ac_cv_path_PKG_CONFIG"; then
20481  ac_pt_PKG_CONFIG=$PKG_CONFIG
20482  # Extract the first word of "pkg-config", so it can be a program name with args.
20483set dummy pkg-config; ac_word=$2
20484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20485printf %s "checking for $ac_word... " >&6; }
20486if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20487then :
20488  printf %s "(cached) " >&6
20489else $as_nop
20490  case $ac_pt_PKG_CONFIG in
20491  [\\/]* | ?:[\\/]*)
20492  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20493  ;;
20494  *)
20495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20496for as_dir in $PATH
20497do
20498  IFS=$as_save_IFS
20499  case $as_dir in #(((
20500    '') as_dir=./ ;;
20501    */) ;;
20502    *) as_dir=$as_dir/ ;;
20503  esac
20504    for ac_exec_ext in '' $ac_executable_extensions; do
20505  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20506    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20507    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20508    break 2
20509  fi
20510done
20511  done
20512IFS=$as_save_IFS
20513
20514  ;;
20515esac
20516fi
20517ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20518if test -n "$ac_pt_PKG_CONFIG"; then
20519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20520printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20521else
20522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523printf "%s\n" "no" >&6; }
20524fi
20525
20526  if test "x$ac_pt_PKG_CONFIG" = x; then
20527    PKG_CONFIG=""
20528  else
20529    case $cross_compiling:$ac_tool_warned in
20530yes:)
20531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20532printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20533ac_tool_warned=yes ;;
20534esac
20535    PKG_CONFIG=$ac_pt_PKG_CONFIG
20536  fi
20537else
20538  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20539fi
20540
20541fi
20542if test -n "$PKG_CONFIG"; then
20543	_pkg_min_version=0.9.0
20544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20545printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20546	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20547		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20548printf "%s\n" "yes" >&6; }
20549	else
20550		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20551printf "%s\n" "no" >&6; }
20552		PKG_CONFIG=""
20553	fi
20554fi
20555
20556  for ac_func in uuid_create
20557do :
20558  ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
20559if test "x$ac_cv_func_uuid_create" = xyes
20560then :
20561  printf "%s\n" "#define HAVE_UUID_CREATE 1" >>confdefs.h
20562
20563else $as_nop
20564
20565    if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then
20566
20567pkg_failed=no
20568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5
20569printf %s "checking for LIBUUID... " >&6; }
20570
20571if test -n "$LIBUUID_CFLAGS"; then
20572    pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
20573 elif test -n "$PKG_CONFIG"; then
20574    if test -n "$PKG_CONFIG" && \
20575    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
20576  ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
20577  ac_status=$?
20578  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20579  test $ac_status = 0; }; then
20580  pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
20581		      test "x$?" != "x0" && pkg_failed=yes
20582else
20583  pkg_failed=yes
20584fi
20585 else
20586    pkg_failed=untried
20587fi
20588if test -n "$LIBUUID_LIBS"; then
20589    pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
20590 elif test -n "$PKG_CONFIG"; then
20591    if test -n "$PKG_CONFIG" && \
20592    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
20593  ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
20594  ac_status=$?
20595  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20596  test $ac_status = 0; }; then
20597  pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
20598		      test "x$?" != "x0" && pkg_failed=yes
20599else
20600  pkg_failed=yes
20601fi
20602 else
20603    pkg_failed=untried
20604fi
20605
20606
20607
20608if test $pkg_failed = yes; then
20609   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20610printf "%s\n" "no" >&6; }
20611
20612if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20613        _pkg_short_errors_supported=yes
20614else
20615        _pkg_short_errors_supported=no
20616fi
20617        if test $_pkg_short_errors_supported = yes; then
20618	        LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
20619        else
20620	        LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
20621        fi
20622	# Put the nasty error message in config.log where it belongs
20623	echo "$LIBUUID_PKG_ERRORS" >&5
20624
20625	HAVE_LIBUUID=no
20626elif test $pkg_failed = untried; then
20627     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20628printf "%s\n" "no" >&6; }
20629	HAVE_LIBUUID=no
20630else
20631	LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
20632	LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
20633        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20634printf "%s\n" "yes" >&6; }
20635	HAVE_LIBUUID=yes
20636fi
20637    fi
20638    if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then
20639        as_fn_error $? "requested libuuid support but uuid.pc not found
20640        and LIBUUID_CFLAGS and LIBUUID_LIBS not set" "$LINENO" 5
20641    fi
20642
20643fi
20644
20645done
20646UUID_LIB_PRIVATE=""
20647UUID_PC=""
20648if test x"$HAVE_LIBUUID" = xyes ; then
20649   if test -n "$PKG_CONFIG" && \
20650    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
20651  ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
20652  ac_status=$?
20653  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20654  test $ac_status = 0; }; then
20655  UUID_PC="uuid"
20656fi
20657   if test x"$UUID_PC" = x ; then
20658       UUID_LIB_PRIVATE="$LIBUUID_LIBS"
20659   fi
20660fi
20661
20662
20663
20664 if test x"$HAVE_LIBUUID" = xyes; then
20665  WITH_LIBUUID_TRUE=
20666  WITH_LIBUUID_FALSE='#'
20667else
20668  WITH_LIBUUID_TRUE='#'
20669  WITH_LIBUUID_FALSE=
20670fi
20671
20672
20673ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sm.pc"
20674
20675cat >confcache <<\_ACEOF
20676# This file is a shell script that caches the results of configure
20677# tests run on this system so they can be shared between configure
20678# scripts and configure runs, see configure's option --config-cache.
20679# It is not useful on other systems.  If it contains results you don't
20680# want to keep, you may remove or edit it.
20681#
20682# config.status only pays attention to the cache file if you give it
20683# the --recheck option to rerun configure.
20684#
20685# `ac_cv_env_foo' variables (set or unset) will be overridden when
20686# loading this file, other *unset* `ac_cv_foo' will be assigned the
20687# following values.
20688
20689_ACEOF
20690
20691# The following way of writing the cache mishandles newlines in values,
20692# but we know of no workaround that is simple, portable, and efficient.
20693# So, we kill variables containing newlines.
20694# Ultrix sh set writes to stderr and can't be redirected directly,
20695# and sets the high bit in the cache file unless we assign to the vars.
20696(
20697  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20698    eval ac_val=\$$ac_var
20699    case $ac_val in #(
20700    *${as_nl}*)
20701      case $ac_var in #(
20702      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20703printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20704      esac
20705      case $ac_var in #(
20706      _ | IFS | as_nl) ;; #(
20707      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20708      *) { eval $ac_var=; unset $ac_var;} ;;
20709      esac ;;
20710    esac
20711  done
20712
20713  (set) 2>&1 |
20714    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20715    *${as_nl}ac_space=\ *)
20716      # `set' does not quote correctly, so add quotes: double-quote
20717      # substitution turns \\\\ into \\, and sed turns \\ into \.
20718      sed -n \
20719	"s/'/'\\\\''/g;
20720	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20721      ;; #(
20722    *)
20723      # `set' quotes correctly as required by POSIX, so do not add quotes.
20724      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20725      ;;
20726    esac |
20727    sort
20728) |
20729  sed '
20730     /^ac_cv_env_/b end
20731     t clear
20732     :clear
20733     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20734     t end
20735     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20736     :end' >>confcache
20737if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20738  if test -w "$cache_file"; then
20739    if test "x$cache_file" != "x/dev/null"; then
20740      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20741printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20742      if test ! -f "$cache_file" || test -h "$cache_file"; then
20743	cat confcache >"$cache_file"
20744      else
20745        case $cache_file in #(
20746        */* | ?:*)
20747	  mv -f confcache "$cache_file"$$ &&
20748	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20749        *)
20750	  mv -f confcache "$cache_file" ;;
20751	esac
20752      fi
20753    fi
20754  else
20755    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20756printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20757  fi
20758fi
20759rm -f confcache
20760
20761test "x$prefix" = xNONE && prefix=$ac_default_prefix
20762# Let make expand exec_prefix.
20763test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20764
20765DEFS=-DHAVE_CONFIG_H
20766
20767ac_libobjs=
20768ac_ltlibobjs=
20769U=
20770for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20771  # 1. Remove the extension, and $U if already installed.
20772  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20773  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20774  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20775  #    will be set to the directory where LIBOBJS objects are built.
20776  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20777  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20778done
20779LIBOBJS=$ac_libobjs
20780
20781LTLIBOBJS=$ac_ltlibobjs
20782
20783
20784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20785printf %s "checking that generated files are newer than configure... " >&6; }
20786   if test -n "$am_sleep_pid"; then
20787     # Hide warnings about reused PIDs.
20788     wait $am_sleep_pid 2>/dev/null
20789   fi
20790   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20791printf "%s\n" "done" >&6; }
20792 if test -n "$EXEEXT"; then
20793  am__EXEEXT_TRUE=
20794  am__EXEEXT_FALSE='#'
20795else
20796  am__EXEEXT_TRUE='#'
20797  am__EXEEXT_FALSE=
20798fi
20799
20800if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20801  as_fn_error $? "conditional \"AMDEP\" was never defined.
20802Usually this means the macro was only invoked conditionally." "$LINENO" 5
20803fi
20804if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20805  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20806Usually this means the macro was only invoked conditionally." "$LINENO" 5
20807fi
20808if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
20809  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
20810Usually this means the macro was only invoked conditionally." "$LINENO" 5
20811fi
20812if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20813  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20814Usually this means the macro was only invoked conditionally." "$LINENO" 5
20815fi
20816if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20817  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20818Usually this means the macro was only invoked conditionally." "$LINENO" 5
20819fi
20820if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20821  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20822Usually this means the macro was only invoked conditionally." "$LINENO" 5
20823fi
20824if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20825  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20826Usually this means the macro was only invoked conditionally." "$LINENO" 5
20827fi
20828if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20829  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20830Usually this means the macro was only invoked conditionally." "$LINENO" 5
20831fi
20832if test -z "${WITH_LIBUUID_TRUE}" && test -z "${WITH_LIBUUID_FALSE}"; then
20833  as_fn_error $? "conditional \"WITH_LIBUUID\" was never defined.
20834Usually this means the macro was only invoked conditionally." "$LINENO" 5
20835fi
20836
20837: "${CONFIG_STATUS=./config.status}"
20838ac_write_fail=0
20839ac_clean_files_save=$ac_clean_files
20840ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20842printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20843as_write_fail=0
20844cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20845#! $SHELL
20846# Generated by $as_me.
20847# Run this file to recreate the current configuration.
20848# Compiler output produced by configure, useful for debugging
20849# configure, is in config.log if it exists.
20850
20851debug=false
20852ac_cs_recheck=false
20853ac_cs_silent=false
20854
20855SHELL=\${CONFIG_SHELL-$SHELL}
20856export SHELL
20857_ASEOF
20858cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20859## -------------------- ##
20860## M4sh Initialization. ##
20861## -------------------- ##
20862
20863# Be more Bourne compatible
20864DUALCASE=1; export DUALCASE # for MKS sh
20865as_nop=:
20866if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20867then :
20868  emulate sh
20869  NULLCMD=:
20870  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20871  # is contrary to our usage.  Disable this feature.
20872  alias -g '${1+"$@"}'='"$@"'
20873  setopt NO_GLOB_SUBST
20874else $as_nop
20875  case `(set -o) 2>/dev/null` in #(
20876  *posix*) :
20877    set -o posix ;; #(
20878  *) :
20879     ;;
20880esac
20881fi
20882
20883
20884
20885# Reset variables that may have inherited troublesome values from
20886# the environment.
20887
20888# IFS needs to be set, to space, tab, and newline, in precisely that order.
20889# (If _AS_PATH_WALK were called with IFS unset, it would have the
20890# side effect of setting IFS to empty, thus disabling word splitting.)
20891# Quoting is to prevent editors from complaining about space-tab.
20892as_nl='
20893'
20894export as_nl
20895IFS=" ""	$as_nl"
20896
20897PS1='$ '
20898PS2='> '
20899PS4='+ '
20900
20901# Ensure predictable behavior from utilities with locale-dependent output.
20902LC_ALL=C
20903export LC_ALL
20904LANGUAGE=C
20905export LANGUAGE
20906
20907# We cannot yet rely on "unset" to work, but we need these variables
20908# to be unset--not just set to an empty or harmless value--now, to
20909# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20910# also avoids known problems related to "unset" and subshell syntax
20911# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20912for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20913do eval test \${$as_var+y} \
20914  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20915done
20916
20917# Ensure that fds 0, 1, and 2 are open.
20918if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20919if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20920if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20921
20922# The user is always right.
20923if ${PATH_SEPARATOR+false} :; then
20924  PATH_SEPARATOR=:
20925  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20926    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20927      PATH_SEPARATOR=';'
20928  }
20929fi
20930
20931
20932# Find who we are.  Look in the path if we contain no directory separator.
20933as_myself=
20934case $0 in #((
20935  *[\\/]* ) as_myself=$0 ;;
20936  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20937for as_dir in $PATH
20938do
20939  IFS=$as_save_IFS
20940  case $as_dir in #(((
20941    '') as_dir=./ ;;
20942    */) ;;
20943    *) as_dir=$as_dir/ ;;
20944  esac
20945    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20946  done
20947IFS=$as_save_IFS
20948
20949     ;;
20950esac
20951# We did not find ourselves, most probably we were run as `sh COMMAND'
20952# in which case we are not to be found in the path.
20953if test "x$as_myself" = x; then
20954  as_myself=$0
20955fi
20956if test ! -f "$as_myself"; then
20957  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20958  exit 1
20959fi
20960
20961
20962
20963# as_fn_error STATUS ERROR [LINENO LOG_FD]
20964# ----------------------------------------
20965# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20966# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20967# script with STATUS, using 1 if that was 0.
20968as_fn_error ()
20969{
20970  as_status=$1; test $as_status -eq 0 && as_status=1
20971  if test "$4"; then
20972    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20973    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20974  fi
20975  printf "%s\n" "$as_me: error: $2" >&2
20976  as_fn_exit $as_status
20977} # as_fn_error
20978
20979
20980
20981# as_fn_set_status STATUS
20982# -----------------------
20983# Set $? to STATUS, without forking.
20984as_fn_set_status ()
20985{
20986  return $1
20987} # as_fn_set_status
20988
20989# as_fn_exit STATUS
20990# -----------------
20991# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20992as_fn_exit ()
20993{
20994  set +e
20995  as_fn_set_status $1
20996  exit $1
20997} # as_fn_exit
20998
20999# as_fn_unset VAR
21000# ---------------
21001# Portably unset VAR.
21002as_fn_unset ()
21003{
21004  { eval $1=; unset $1;}
21005}
21006as_unset=as_fn_unset
21007
21008# as_fn_append VAR VALUE
21009# ----------------------
21010# Append the text in VALUE to the end of the definition contained in VAR. Take
21011# advantage of any shell optimizations that allow amortized linear growth over
21012# repeated appends, instead of the typical quadratic growth present in naive
21013# implementations.
21014if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21015then :
21016  eval 'as_fn_append ()
21017  {
21018    eval $1+=\$2
21019  }'
21020else $as_nop
21021  as_fn_append ()
21022  {
21023    eval $1=\$$1\$2
21024  }
21025fi # as_fn_append
21026
21027# as_fn_arith ARG...
21028# ------------------
21029# Perform arithmetic evaluation on the ARGs, and store the result in the
21030# global $as_val. Take advantage of shells that can avoid forks. The arguments
21031# must be portable across $(()) and expr.
21032if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21033then :
21034  eval 'as_fn_arith ()
21035  {
21036    as_val=$(( $* ))
21037  }'
21038else $as_nop
21039  as_fn_arith ()
21040  {
21041    as_val=`expr "$@" || test $? -eq 1`
21042  }
21043fi # as_fn_arith
21044
21045
21046if expr a : '\(a\)' >/dev/null 2>&1 &&
21047   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21048  as_expr=expr
21049else
21050  as_expr=false
21051fi
21052
21053if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21054  as_basename=basename
21055else
21056  as_basename=false
21057fi
21058
21059if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21060  as_dirname=dirname
21061else
21062  as_dirname=false
21063fi
21064
21065as_me=`$as_basename -- "$0" ||
21066$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21067	 X"$0" : 'X\(//\)$' \| \
21068	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21069printf "%s\n" X/"$0" |
21070    sed '/^.*\/\([^/][^/]*\)\/*$/{
21071	    s//\1/
21072	    q
21073	  }
21074	  /^X\/\(\/\/\)$/{
21075	    s//\1/
21076	    q
21077	  }
21078	  /^X\/\(\/\).*/{
21079	    s//\1/
21080	    q
21081	  }
21082	  s/.*/./; q'`
21083
21084# Avoid depending upon Character Ranges.
21085as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21086as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21087as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21088as_cr_digits='0123456789'
21089as_cr_alnum=$as_cr_Letters$as_cr_digits
21090
21091
21092# Determine whether it's possible to make 'echo' print without a newline.
21093# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21094# for compatibility with existing Makefiles.
21095ECHO_C= ECHO_N= ECHO_T=
21096case `echo -n x` in #(((((
21097-n*)
21098  case `echo 'xy\c'` in
21099  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21100  xy)  ECHO_C='\c';;
21101  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21102       ECHO_T='	';;
21103  esac;;
21104*)
21105  ECHO_N='-n';;
21106esac
21107
21108# For backward compatibility with old third-party macros, we provide
21109# the shell variables $as_echo and $as_echo_n.  New code should use
21110# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21111as_echo='printf %s\n'
21112as_echo_n='printf %s'
21113
21114rm -f conf$$ conf$$.exe conf$$.file
21115if test -d conf$$.dir; then
21116  rm -f conf$$.dir/conf$$.file
21117else
21118  rm -f conf$$.dir
21119  mkdir conf$$.dir 2>/dev/null
21120fi
21121if (echo >conf$$.file) 2>/dev/null; then
21122  if ln -s conf$$.file conf$$ 2>/dev/null; then
21123    as_ln_s='ln -s'
21124    # ... but there are two gotchas:
21125    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21126    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21127    # In both cases, we have to default to `cp -pR'.
21128    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21129      as_ln_s='cp -pR'
21130  elif ln conf$$.file conf$$ 2>/dev/null; then
21131    as_ln_s=ln
21132  else
21133    as_ln_s='cp -pR'
21134  fi
21135else
21136  as_ln_s='cp -pR'
21137fi
21138rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21139rmdir conf$$.dir 2>/dev/null
21140
21141
21142# as_fn_mkdir_p
21143# -------------
21144# Create "$as_dir" as a directory, including parents if necessary.
21145as_fn_mkdir_p ()
21146{
21147
21148  case $as_dir in #(
21149  -*) as_dir=./$as_dir;;
21150  esac
21151  test -d "$as_dir" || eval $as_mkdir_p || {
21152    as_dirs=
21153    while :; do
21154      case $as_dir in #(
21155      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21156      *) as_qdir=$as_dir;;
21157      esac
21158      as_dirs="'$as_qdir' $as_dirs"
21159      as_dir=`$as_dirname -- "$as_dir" ||
21160$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21161	 X"$as_dir" : 'X\(//\)[^/]' \| \
21162	 X"$as_dir" : 'X\(//\)$' \| \
21163	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21164printf "%s\n" X"$as_dir" |
21165    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21166	    s//\1/
21167	    q
21168	  }
21169	  /^X\(\/\/\)[^/].*/{
21170	    s//\1/
21171	    q
21172	  }
21173	  /^X\(\/\/\)$/{
21174	    s//\1/
21175	    q
21176	  }
21177	  /^X\(\/\).*/{
21178	    s//\1/
21179	    q
21180	  }
21181	  s/.*/./; q'`
21182      test -d "$as_dir" && break
21183    done
21184    test -z "$as_dirs" || eval "mkdir $as_dirs"
21185  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21186
21187
21188} # as_fn_mkdir_p
21189if mkdir -p . 2>/dev/null; then
21190  as_mkdir_p='mkdir -p "$as_dir"'
21191else
21192  test -d ./-p && rmdir ./-p
21193  as_mkdir_p=false
21194fi
21195
21196
21197# as_fn_executable_p FILE
21198# -----------------------
21199# Test if FILE is an executable regular file.
21200as_fn_executable_p ()
21201{
21202  test -f "$1" && test -x "$1"
21203} # as_fn_executable_p
21204as_test_x='test -x'
21205as_executable_p=as_fn_executable_p
21206
21207# Sed expression to map a string onto a valid CPP name.
21208as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21209
21210# Sed expression to map a string onto a valid variable name.
21211as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21212
21213
21214exec 6>&1
21215## ----------------------------------- ##
21216## Main body of $CONFIG_STATUS script. ##
21217## ----------------------------------- ##
21218_ASEOF
21219test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21220
21221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21222# Save the log message, to keep $0 and so on meaningful, and to
21223# report actual input values of CONFIG_FILES etc. instead of their
21224# values after options handling.
21225ac_log="
21226This file was extended by libSM $as_me 1.2.4, which was
21227generated by GNU Autoconf 2.71.  Invocation command line was
21228
21229  CONFIG_FILES    = $CONFIG_FILES
21230  CONFIG_HEADERS  = $CONFIG_HEADERS
21231  CONFIG_LINKS    = $CONFIG_LINKS
21232  CONFIG_COMMANDS = $CONFIG_COMMANDS
21233  $ $0 $@
21234
21235on `(hostname || uname -n) 2>/dev/null | sed 1q`
21236"
21237
21238_ACEOF
21239
21240case $ac_config_files in *"
21241"*) set x $ac_config_files; shift; ac_config_files=$*;;
21242esac
21243
21244case $ac_config_headers in *"
21245"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21246esac
21247
21248
21249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21250# Files that config.status was made for.
21251config_files="$ac_config_files"
21252config_headers="$ac_config_headers"
21253config_commands="$ac_config_commands"
21254
21255_ACEOF
21256
21257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21258ac_cs_usage="\
21259\`$as_me' instantiates files and other configuration actions
21260from templates according to the current configuration.  Unless the files
21261and actions are specified as TAGs, all are instantiated by default.
21262
21263Usage: $0 [OPTION]... [TAG]...
21264
21265  -h, --help       print this help, then exit
21266  -V, --version    print version number and configuration settings, then exit
21267      --config     print configuration, then exit
21268  -q, --quiet, --silent
21269                   do not print progress messages
21270  -d, --debug      don't remove temporary files
21271      --recheck    update $as_me by reconfiguring in the same conditions
21272      --file=FILE[:TEMPLATE]
21273                   instantiate the configuration file FILE
21274      --header=FILE[:TEMPLATE]
21275                   instantiate the configuration header FILE
21276
21277Configuration files:
21278$config_files
21279
21280Configuration headers:
21281$config_headers
21282
21283Configuration commands:
21284$config_commands
21285
21286Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libsm/-/issues>."
21287
21288_ACEOF
21289ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21290ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21292ac_cs_config='$ac_cs_config_escaped'
21293ac_cs_version="\\
21294libSM config.status 1.2.4
21295configured by $0, generated by GNU Autoconf 2.71,
21296  with options \\"\$ac_cs_config\\"
21297
21298Copyright (C) 2021 Free Software Foundation, Inc.
21299This config.status script is free software; the Free Software Foundation
21300gives unlimited permission to copy, distribute and modify it."
21301
21302ac_pwd='$ac_pwd'
21303srcdir='$srcdir'
21304INSTALL='$INSTALL'
21305MKDIR_P='$MKDIR_P'
21306AWK='$AWK'
21307test -n "\$AWK" || AWK=awk
21308_ACEOF
21309
21310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21311# The default lists apply if the user does not specify any file.
21312ac_need_defaults=:
21313while test $# != 0
21314do
21315  case $1 in
21316  --*=?*)
21317    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21318    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21319    ac_shift=:
21320    ;;
21321  --*=)
21322    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21323    ac_optarg=
21324    ac_shift=:
21325    ;;
21326  *)
21327    ac_option=$1
21328    ac_optarg=$2
21329    ac_shift=shift
21330    ;;
21331  esac
21332
21333  case $ac_option in
21334  # Handling of the options.
21335  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21336    ac_cs_recheck=: ;;
21337  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21338    printf "%s\n" "$ac_cs_version"; exit ;;
21339  --config | --confi | --conf | --con | --co | --c )
21340    printf "%s\n" "$ac_cs_config"; exit ;;
21341  --debug | --debu | --deb | --de | --d | -d )
21342    debug=: ;;
21343  --file | --fil | --fi | --f )
21344    $ac_shift
21345    case $ac_optarg in
21346    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21347    '') as_fn_error $? "missing file argument" ;;
21348    esac
21349    as_fn_append CONFIG_FILES " '$ac_optarg'"
21350    ac_need_defaults=false;;
21351  --header | --heade | --head | --hea )
21352    $ac_shift
21353    case $ac_optarg in
21354    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21355    esac
21356    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21357    ac_need_defaults=false;;
21358  --he | --h)
21359    # Conflict between --help and --header
21360    as_fn_error $? "ambiguous option: \`$1'
21361Try \`$0 --help' for more information.";;
21362  --help | --hel | -h )
21363    printf "%s\n" "$ac_cs_usage"; exit ;;
21364  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21365  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21366    ac_cs_silent=: ;;
21367
21368  # This is an error.
21369  -*) as_fn_error $? "unrecognized option: \`$1'
21370Try \`$0 --help' for more information." ;;
21371
21372  *) as_fn_append ac_config_targets " $1"
21373     ac_need_defaults=false ;;
21374
21375  esac
21376  shift
21377done
21378
21379ac_configure_extra_args=
21380
21381if $ac_cs_silent; then
21382  exec 6>/dev/null
21383  ac_configure_extra_args="$ac_configure_extra_args --silent"
21384fi
21385
21386_ACEOF
21387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21388if \$ac_cs_recheck; then
21389  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21390  shift
21391  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21392  CONFIG_SHELL='$SHELL'
21393  export CONFIG_SHELL
21394  exec "\$@"
21395fi
21396
21397_ACEOF
21398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21399exec 5>>config.log
21400{
21401  echo
21402  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21403## Running $as_me. ##
21404_ASBOX
21405  printf "%s\n" "$ac_log"
21406} >&5
21407
21408_ACEOF
21409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21410#
21411# INIT-COMMANDS
21412#
21413AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21414
21415
21416# The HP-UX ksh and POSIX shell print the target directory to stdout
21417# if CDPATH is set.
21418(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21419
21420sed_quote_subst='$sed_quote_subst'
21421double_quote_subst='$double_quote_subst'
21422delay_variable_subst='$delay_variable_subst'
21423macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21424macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21425enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21426enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21427pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21428enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21429shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21430SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21431ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21432PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21433host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21434host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21435host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21436build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21437build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21438build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21439SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21440Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21441GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21442EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21443FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21444LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21445NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21446LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21447max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21448ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21449exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21450lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21451lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21452lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21453lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21454lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21455reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21456reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21457FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21458OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21459deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21460file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21461file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21462want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21463DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21464sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21465AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21466lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21467AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21468archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21469STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21470RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21471old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21472old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21473old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21474lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21475CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21476CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21477compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21478GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21479lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21480lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21481lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21482lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21483lt_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"`'
21484lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21485nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21486lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21487lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21488objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21489MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21490lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21491lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21492lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21493lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21494lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21495need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21496MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21497DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21498NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21499LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21500OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21501OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21502libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21503shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21504extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21505archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21506enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21507export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21508whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21509compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21510old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21511old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21512archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21513archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21514module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21515module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21516with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21517allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21518no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21519hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21520hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21521hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21522hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21523hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21524hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21525hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21526inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21527link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21528always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21529export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21530exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21531include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21532prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21533postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21534file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21535variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21536need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21537need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21538version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21539runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21540shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21541shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21542libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21543library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21544soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21545install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21546postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21547postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21548finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21549finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21550hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21551sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21552configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21553configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21554hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21555enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21556enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21557enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21558old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21559striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21560
21561LTCC='$LTCC'
21562LTCFLAGS='$LTCFLAGS'
21563compiler='$compiler_DEFAULT'
21564
21565# A function that is used when there is no print builtin or printf.
21566func_fallback_echo ()
21567{
21568  eval 'cat <<_LTECHO_EOF
21569\$1
21570_LTECHO_EOF'
21571}
21572
21573# Quote evaled strings.
21574for var in SHELL \
21575ECHO \
21576PATH_SEPARATOR \
21577SED \
21578GREP \
21579EGREP \
21580FGREP \
21581LD \
21582NM \
21583LN_S \
21584lt_SP2NL \
21585lt_NL2SP \
21586reload_flag \
21587FILECMD \
21588OBJDUMP \
21589deplibs_check_method \
21590file_magic_cmd \
21591file_magic_glob \
21592want_nocaseglob \
21593DLLTOOL \
21594sharedlib_from_linklib_cmd \
21595AR \
21596archiver_list_spec \
21597STRIP \
21598RANLIB \
21599CC \
21600CFLAGS \
21601compiler \
21602lt_cv_sys_global_symbol_pipe \
21603lt_cv_sys_global_symbol_to_cdecl \
21604lt_cv_sys_global_symbol_to_import \
21605lt_cv_sys_global_symbol_to_c_name_address \
21606lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21607lt_cv_nm_interface \
21608nm_file_list_spec \
21609lt_cv_truncate_bin \
21610lt_prog_compiler_no_builtin_flag \
21611lt_prog_compiler_pic \
21612lt_prog_compiler_wl \
21613lt_prog_compiler_static \
21614lt_cv_prog_compiler_c_o \
21615need_locks \
21616MANIFEST_TOOL \
21617DSYMUTIL \
21618NMEDIT \
21619LIPO \
21620OTOOL \
21621OTOOL64 \
21622shrext_cmds \
21623export_dynamic_flag_spec \
21624whole_archive_flag_spec \
21625compiler_needs_object \
21626with_gnu_ld \
21627allow_undefined_flag \
21628no_undefined_flag \
21629hardcode_libdir_flag_spec \
21630hardcode_libdir_separator \
21631exclude_expsyms \
21632include_expsyms \
21633file_list_spec \
21634variables_saved_for_relink \
21635libname_spec \
21636library_names_spec \
21637soname_spec \
21638install_override_mode \
21639finish_eval \
21640old_striplib \
21641striplib; do
21642    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21643    *[\\\\\\\`\\"\\\$]*)
21644      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21645      ;;
21646    *)
21647      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21648      ;;
21649    esac
21650done
21651
21652# Double-quote double-evaled strings.
21653for var in reload_cmds \
21654old_postinstall_cmds \
21655old_postuninstall_cmds \
21656old_archive_cmds \
21657extract_expsyms_cmds \
21658old_archive_from_new_cmds \
21659old_archive_from_expsyms_cmds \
21660archive_cmds \
21661archive_expsym_cmds \
21662module_cmds \
21663module_expsym_cmds \
21664export_symbols_cmds \
21665prelink_cmds \
21666postlink_cmds \
21667postinstall_cmds \
21668postuninstall_cmds \
21669finish_cmds \
21670sys_lib_search_path_spec \
21671configure_time_dlsearch_path \
21672configure_time_lt_sys_library_path; do
21673    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21674    *[\\\\\\\`\\"\\\$]*)
21675      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21676      ;;
21677    *)
21678      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21679      ;;
21680    esac
21681done
21682
21683ac_aux_dir='$ac_aux_dir'
21684
21685# See if we are running on zsh, and set the options that allow our
21686# commands through without removal of \ escapes INIT.
21687if test -n "\${ZSH_VERSION+set}"; then
21688   setopt NO_GLOB_SUBST
21689fi
21690
21691
21692    PACKAGE='$PACKAGE'
21693    VERSION='$VERSION'
21694    RM='$RM'
21695    ofile='$ofile'
21696
21697
21698
21699
21700_ACEOF
21701
21702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21703
21704# Handling of arguments.
21705for ac_config_target in $ac_config_targets
21706do
21707  case $ac_config_target in
21708    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21709    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21710    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21711    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21712    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21713    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21714    "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;;
21715
21716  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21717  esac
21718done
21719
21720
21721# If the user did not use the arguments to specify the items to instantiate,
21722# then the envvar interface is used.  Set only those that are not.
21723# We use the long form for the default assignment because of an extremely
21724# bizarre bug on SunOS 4.1.3.
21725if $ac_need_defaults; then
21726  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21727  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21728  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21729fi
21730
21731# Have a temporary directory for convenience.  Make it in the build tree
21732# simply because there is no reason against having it here, and in addition,
21733# creating and moving files from /tmp can sometimes cause problems.
21734# Hook for its removal unless debugging.
21735# Note that there is a small window in which the directory will not be cleaned:
21736# after its creation but before its name has been assigned to `$tmp'.
21737$debug ||
21738{
21739  tmp= ac_tmp=
21740  trap 'exit_status=$?
21741  : "${ac_tmp:=$tmp}"
21742  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21743' 0
21744  trap 'as_fn_exit 1' 1 2 13 15
21745}
21746# Create a (secure) tmp directory for tmp files.
21747
21748{
21749  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21750  test -d "$tmp"
21751}  ||
21752{
21753  tmp=./conf$$-$RANDOM
21754  (umask 077 && mkdir "$tmp")
21755} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21756ac_tmp=$tmp
21757
21758# Set up the scripts for CONFIG_FILES section.
21759# No need to generate them if there are no CONFIG_FILES.
21760# This happens for instance with `./config.status config.h'.
21761if test -n "$CONFIG_FILES"; then
21762
21763
21764ac_cr=`echo X | tr X '\015'`
21765# On cygwin, bash can eat \r inside `` if the user requested igncr.
21766# But we know of no other shell where ac_cr would be empty at this
21767# point, so we can use a bashism as a fallback.
21768if test "x$ac_cr" = x; then
21769  eval ac_cr=\$\'\\r\'
21770fi
21771ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21772if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21773  ac_cs_awk_cr='\\r'
21774else
21775  ac_cs_awk_cr=$ac_cr
21776fi
21777
21778echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21779_ACEOF
21780
21781
21782{
21783  echo "cat >conf$$subs.awk <<_ACEOF" &&
21784  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21785  echo "_ACEOF"
21786} >conf$$subs.sh ||
21787  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21788ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21789ac_delim='%!_!# '
21790for ac_last_try in false false false false false :; do
21791  . ./conf$$subs.sh ||
21792    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21793
21794  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21795  if test $ac_delim_n = $ac_delim_num; then
21796    break
21797  elif $ac_last_try; then
21798    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21799  else
21800    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21801  fi
21802done
21803rm -f conf$$subs.sh
21804
21805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21806cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21807_ACEOF
21808sed -n '
21809h
21810s/^/S["/; s/!.*/"]=/
21811p
21812g
21813s/^[^!]*!//
21814:repl
21815t repl
21816s/'"$ac_delim"'$//
21817t delim
21818:nl
21819h
21820s/\(.\{148\}\)..*/\1/
21821t more1
21822s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21823p
21824n
21825b repl
21826:more1
21827s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21828p
21829g
21830s/.\{148\}//
21831t nl
21832:delim
21833h
21834s/\(.\{148\}\)..*/\1/
21835t more2
21836s/["\\]/\\&/g; s/^/"/; s/$/"/
21837p
21838b
21839:more2
21840s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21841p
21842g
21843s/.\{148\}//
21844t delim
21845' <conf$$subs.awk | sed '
21846/^[^""]/{
21847  N
21848  s/\n//
21849}
21850' >>$CONFIG_STATUS || ac_write_fail=1
21851rm -f conf$$subs.awk
21852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21853_ACAWK
21854cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21855  for (key in S) S_is_set[key] = 1
21856  FS = ""
21857
21858}
21859{
21860  line = $ 0
21861  nfields = split(line, field, "@")
21862  substed = 0
21863  len = length(field[1])
21864  for (i = 2; i < nfields; i++) {
21865    key = field[i]
21866    keylen = length(key)
21867    if (S_is_set[key]) {
21868      value = S[key]
21869      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21870      len += length(value) + length(field[++i])
21871      substed = 1
21872    } else
21873      len += 1 + keylen
21874  }
21875
21876  print line
21877}
21878
21879_ACAWK
21880_ACEOF
21881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21882if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21883  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21884else
21885  cat
21886fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21887  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21888_ACEOF
21889
21890# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21891# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21892# trailing colons and then remove the whole line if VPATH becomes empty
21893# (actually we leave an empty line to preserve line numbers).
21894if test "x$srcdir" = x.; then
21895  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21896h
21897s///
21898s/^/:/
21899s/[	 ]*$/:/
21900s/:\$(srcdir):/:/g
21901s/:\${srcdir}:/:/g
21902s/:@srcdir@:/:/g
21903s/^:*//
21904s/:*$//
21905x
21906s/\(=[	 ]*\).*/\1/
21907G
21908s/\n//
21909s/^[^=]*=[	 ]*$//
21910}'
21911fi
21912
21913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21914fi # test -n "$CONFIG_FILES"
21915
21916# Set up the scripts for CONFIG_HEADERS section.
21917# No need to generate them if there are no CONFIG_HEADERS.
21918# This happens for instance with `./config.status Makefile'.
21919if test -n "$CONFIG_HEADERS"; then
21920cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21921BEGIN {
21922_ACEOF
21923
21924# Transform confdefs.h into an awk script `defines.awk', embedded as
21925# here-document in config.status, that substitutes the proper values into
21926# config.h.in to produce config.h.
21927
21928# Create a delimiter string that does not exist in confdefs.h, to ease
21929# handling of long lines.
21930ac_delim='%!_!# '
21931for ac_last_try in false false :; do
21932  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21933  if test -z "$ac_tt"; then
21934    break
21935  elif $ac_last_try; then
21936    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21937  else
21938    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21939  fi
21940done
21941
21942# For the awk script, D is an array of macro values keyed by name,
21943# likewise P contains macro parameters if any.  Preserve backslash
21944# newline sequences.
21945
21946ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21947sed -n '
21948s/.\{148\}/&'"$ac_delim"'/g
21949t rset
21950:rset
21951s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21952t def
21953d
21954:def
21955s/\\$//
21956t bsnl
21957s/["\\]/\\&/g
21958s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21959D["\1"]=" \3"/p
21960s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21961d
21962:bsnl
21963s/["\\]/\\&/g
21964s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21965D["\1"]=" \3\\\\\\n"\\/p
21966t cont
21967s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21968t cont
21969d
21970:cont
21971n
21972s/.\{148\}/&'"$ac_delim"'/g
21973t clear
21974:clear
21975s/\\$//
21976t bsnlc
21977s/["\\]/\\&/g; s/^/"/; s/$/"/p
21978d
21979:bsnlc
21980s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21981b cont
21982' <confdefs.h | sed '
21983s/'"$ac_delim"'/"\\\
21984"/g' >>$CONFIG_STATUS || ac_write_fail=1
21985
21986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21987  for (key in D) D_is_set[key] = 1
21988  FS = ""
21989}
21990/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21991  line = \$ 0
21992  split(line, arg, " ")
21993  if (arg[1] == "#") {
21994    defundef = arg[2]
21995    mac1 = arg[3]
21996  } else {
21997    defundef = substr(arg[1], 2)
21998    mac1 = arg[2]
21999  }
22000  split(mac1, mac2, "(") #)
22001  macro = mac2[1]
22002  prefix = substr(line, 1, index(line, defundef) - 1)
22003  if (D_is_set[macro]) {
22004    # Preserve the white space surrounding the "#".
22005    print prefix "define", macro P[macro] D[macro]
22006    next
22007  } else {
22008    # Replace #undef with comments.  This is necessary, for example,
22009    # in the case of _POSIX_SOURCE, which is predefined and required
22010    # on some systems where configure will not decide to define it.
22011    if (defundef == "undef") {
22012      print "/*", prefix defundef, macro, "*/"
22013      next
22014    }
22015  }
22016}
22017{ print }
22018_ACAWK
22019_ACEOF
22020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22021  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22022fi # test -n "$CONFIG_HEADERS"
22023
22024
22025eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22026shift
22027for ac_tag
22028do
22029  case $ac_tag in
22030  :[FHLC]) ac_mode=$ac_tag; continue;;
22031  esac
22032  case $ac_mode$ac_tag in
22033  :[FHL]*:*);;
22034  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22035  :[FH]-) ac_tag=-:-;;
22036  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22037  esac
22038  ac_save_IFS=$IFS
22039  IFS=:
22040  set x $ac_tag
22041  IFS=$ac_save_IFS
22042  shift
22043  ac_file=$1
22044  shift
22045
22046  case $ac_mode in
22047  :L) ac_source=$1;;
22048  :[FH])
22049    ac_file_inputs=
22050    for ac_f
22051    do
22052      case $ac_f in
22053      -) ac_f="$ac_tmp/stdin";;
22054      *) # Look for the file first in the build tree, then in the source tree
22055	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22056	 # because $ac_f cannot contain `:'.
22057	 test -f "$ac_f" ||
22058	   case $ac_f in
22059	   [\\/$]*) false;;
22060	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22061	   esac ||
22062	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22063      esac
22064      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22065      as_fn_append ac_file_inputs " '$ac_f'"
22066    done
22067
22068    # Let's still pretend it is `configure' which instantiates (i.e., don't
22069    # use $as_me), people would be surprised to read:
22070    #    /* config.h.  Generated by config.status.  */
22071    configure_input='Generated from '`
22072	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22073	`' by configure.'
22074    if test x"$ac_file" != x-; then
22075      configure_input="$ac_file.  $configure_input"
22076      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22077printf "%s\n" "$as_me: creating $ac_file" >&6;}
22078    fi
22079    # Neutralize special characters interpreted by sed in replacement strings.
22080    case $configure_input in #(
22081    *\&* | *\|* | *\\* )
22082       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22083       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22084    *) ac_sed_conf_input=$configure_input;;
22085    esac
22086
22087    case $ac_tag in
22088    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22089      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22090    esac
22091    ;;
22092  esac
22093
22094  ac_dir=`$as_dirname -- "$ac_file" ||
22095$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22096	 X"$ac_file" : 'X\(//\)[^/]' \| \
22097	 X"$ac_file" : 'X\(//\)$' \| \
22098	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22099printf "%s\n" X"$ac_file" |
22100    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22101	    s//\1/
22102	    q
22103	  }
22104	  /^X\(\/\/\)[^/].*/{
22105	    s//\1/
22106	    q
22107	  }
22108	  /^X\(\/\/\)$/{
22109	    s//\1/
22110	    q
22111	  }
22112	  /^X\(\/\).*/{
22113	    s//\1/
22114	    q
22115	  }
22116	  s/.*/./; q'`
22117  as_dir="$ac_dir"; as_fn_mkdir_p
22118  ac_builddir=.
22119
22120case "$ac_dir" in
22121.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22122*)
22123  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22124  # A ".." for each directory in $ac_dir_suffix.
22125  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22126  case $ac_top_builddir_sub in
22127  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22128  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22129  esac ;;
22130esac
22131ac_abs_top_builddir=$ac_pwd
22132ac_abs_builddir=$ac_pwd$ac_dir_suffix
22133# for backward compatibility:
22134ac_top_builddir=$ac_top_build_prefix
22135
22136case $srcdir in
22137  .)  # We are building in place.
22138    ac_srcdir=.
22139    ac_top_srcdir=$ac_top_builddir_sub
22140    ac_abs_top_srcdir=$ac_pwd ;;
22141  [\\/]* | ?:[\\/]* )  # Absolute name.
22142    ac_srcdir=$srcdir$ac_dir_suffix;
22143    ac_top_srcdir=$srcdir
22144    ac_abs_top_srcdir=$srcdir ;;
22145  *) # Relative name.
22146    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22147    ac_top_srcdir=$ac_top_build_prefix$srcdir
22148    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22149esac
22150ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22151
22152
22153  case $ac_mode in
22154  :F)
22155  #
22156  # CONFIG_FILE
22157  #
22158
22159  case $INSTALL in
22160  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22161  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22162  esac
22163  ac_MKDIR_P=$MKDIR_P
22164  case $MKDIR_P in
22165  [\\/$]* | ?:[\\/]* ) ;;
22166  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22167  esac
22168_ACEOF
22169
22170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22171# If the template does not know about datarootdir, expand it.
22172# FIXME: This hack should be removed a few years after 2.60.
22173ac_datarootdir_hack=; ac_datarootdir_seen=
22174ac_sed_dataroot='
22175/datarootdir/ {
22176  p
22177  q
22178}
22179/@datadir@/p
22180/@docdir@/p
22181/@infodir@/p
22182/@localedir@/p
22183/@mandir@/p'
22184case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22185*datarootdir*) ac_datarootdir_seen=yes;;
22186*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22188printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22189_ACEOF
22190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22191  ac_datarootdir_hack='
22192  s&@datadir@&$datadir&g
22193  s&@docdir@&$docdir&g
22194  s&@infodir@&$infodir&g
22195  s&@localedir@&$localedir&g
22196  s&@mandir@&$mandir&g
22197  s&\\\${datarootdir}&$datarootdir&g' ;;
22198esac
22199_ACEOF
22200
22201# Neutralize VPATH when `$srcdir' = `.'.
22202# Shell code in configure.ac might set extrasub.
22203# FIXME: do we really want to maintain this feature?
22204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22205ac_sed_extra="$ac_vpsub
22206$extrasub
22207_ACEOF
22208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22209:t
22210/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22211s|@configure_input@|$ac_sed_conf_input|;t t
22212s&@top_builddir@&$ac_top_builddir_sub&;t t
22213s&@top_build_prefix@&$ac_top_build_prefix&;t t
22214s&@srcdir@&$ac_srcdir&;t t
22215s&@abs_srcdir@&$ac_abs_srcdir&;t t
22216s&@top_srcdir@&$ac_top_srcdir&;t t
22217s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22218s&@builddir@&$ac_builddir&;t t
22219s&@abs_builddir@&$ac_abs_builddir&;t t
22220s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22221s&@INSTALL@&$ac_INSTALL&;t t
22222s&@MKDIR_P@&$ac_MKDIR_P&;t t
22223$ac_datarootdir_hack
22224"
22225eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22226  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22227
22228test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22229  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22230  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22231      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22233which seems to be undefined.  Please make sure it is defined" >&5
22234printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22235which seems to be undefined.  Please make sure it is defined" >&2;}
22236
22237  rm -f "$ac_tmp/stdin"
22238  case $ac_file in
22239  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22240  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22241  esac \
22242  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22243 ;;
22244  :H)
22245  #
22246  # CONFIG_HEADER
22247  #
22248  if test x"$ac_file" != x-; then
22249    {
22250      printf "%s\n" "/* $configure_input  */" >&1 \
22251      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22252    } >"$ac_tmp/config.h" \
22253      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22254    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22255      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22256printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22257    else
22258      rm -f "$ac_file"
22259      mv "$ac_tmp/config.h" "$ac_file" \
22260	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22261    fi
22262  else
22263    printf "%s\n" "/* $configure_input  */" >&1 \
22264      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22265      || as_fn_error $? "could not create -" "$LINENO" 5
22266  fi
22267# Compute "$ac_file"'s index in $config_headers.
22268_am_arg="$ac_file"
22269_am_stamp_count=1
22270for _am_header in $config_headers :; do
22271  case $_am_header in
22272    $_am_arg | $_am_arg:* )
22273      break ;;
22274    * )
22275      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22276  esac
22277done
22278echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22279$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22280	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22281	 X"$_am_arg" : 'X\(//\)$' \| \
22282	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22283printf "%s\n" X"$_am_arg" |
22284    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22285	    s//\1/
22286	    q
22287	  }
22288	  /^X\(\/\/\)[^/].*/{
22289	    s//\1/
22290	    q
22291	  }
22292	  /^X\(\/\/\)$/{
22293	    s//\1/
22294	    q
22295	  }
22296	  /^X\(\/\).*/{
22297	    s//\1/
22298	    q
22299	  }
22300	  s/.*/./; q'`/stamp-h$_am_stamp_count
22301 ;;
22302
22303  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22304printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22305 ;;
22306  esac
22307
22308
22309  case $ac_file$ac_mode in
22310    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22311  # Older Autoconf quotes --file arguments for eval, but not when files
22312  # are listed without --file.  Let's play safe and only enable the eval
22313  # if we detect the quoting.
22314  # TODO: see whether this extra hack can be removed once we start
22315  # requiring Autoconf 2.70 or later.
22316  case $CONFIG_FILES in #(
22317  *\'*) :
22318    eval set x "$CONFIG_FILES" ;; #(
22319  *) :
22320    set x $CONFIG_FILES ;; #(
22321  *) :
22322     ;;
22323esac
22324  shift
22325  # Used to flag and report bootstrapping failures.
22326  am_rc=0
22327  for am_mf
22328  do
22329    # Strip MF so we end up with the name of the file.
22330    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22331    # Check whether this is an Automake generated Makefile which includes
22332    # dependency-tracking related rules and includes.
22333    # Grep'ing the whole file directly is not great: AIX grep has a line
22334    # limit of 2048, but all sed's we know have understand at least 4000.
22335    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22336      || continue
22337    am_dirpart=`$as_dirname -- "$am_mf" ||
22338$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22339	 X"$am_mf" : 'X\(//\)[^/]' \| \
22340	 X"$am_mf" : 'X\(//\)$' \| \
22341	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22342printf "%s\n" X"$am_mf" |
22343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22344	    s//\1/
22345	    q
22346	  }
22347	  /^X\(\/\/\)[^/].*/{
22348	    s//\1/
22349	    q
22350	  }
22351	  /^X\(\/\/\)$/{
22352	    s//\1/
22353	    q
22354	  }
22355	  /^X\(\/\).*/{
22356	    s//\1/
22357	    q
22358	  }
22359	  s/.*/./; q'`
22360    am_filepart=`$as_basename -- "$am_mf" ||
22361$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22362	 X"$am_mf" : 'X\(//\)$' \| \
22363	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22364printf "%s\n" X/"$am_mf" |
22365    sed '/^.*\/\([^/][^/]*\)\/*$/{
22366	    s//\1/
22367	    q
22368	  }
22369	  /^X\/\(\/\/\)$/{
22370	    s//\1/
22371	    q
22372	  }
22373	  /^X\/\(\/\).*/{
22374	    s//\1/
22375	    q
22376	  }
22377	  s/.*/./; q'`
22378    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22379      && sed -e '/# am--include-marker/d' "$am_filepart" \
22380        | $MAKE -f - am--depfiles" >&5
22381   (cd "$am_dirpart" \
22382      && sed -e '/# am--include-marker/d' "$am_filepart" \
22383        | $MAKE -f - am--depfiles) >&5 2>&5
22384   ac_status=$?
22385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); } || am_rc=$?
22387  done
22388  if test $am_rc -ne 0; then
22389    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22390printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22391as_fn_error $? "Something went wrong bootstrapping makefile fragments
22392    for automatic dependency tracking.  If GNU make was not used, consider
22393    re-running the configure script with MAKE=\"gmake\" (or whatever is
22394    necessary).  You can also try re-running configure with the
22395    '--disable-dependency-tracking' option to at least be able to build
22396    the package (albeit without support for automatic dependency tracking).
22397See \`config.log' for more details" "$LINENO" 5; }
22398  fi
22399  { am_dirpart=; unset am_dirpart;}
22400  { am_filepart=; unset am_filepart;}
22401  { am_mf=; unset am_mf;}
22402  { am_rc=; unset am_rc;}
22403  rm -f conftest-deps.mk
22404}
22405 ;;
22406    "libtool":C)
22407
22408    # See if we are running on zsh, and set the options that allow our
22409    # commands through without removal of \ escapes.
22410    if test -n "${ZSH_VERSION+set}"; then
22411      setopt NO_GLOB_SUBST
22412    fi
22413
22414    cfgfile=${ofile}T
22415    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22416    $RM "$cfgfile"
22417
22418    cat <<_LT_EOF >> "$cfgfile"
22419#! $SHELL
22420# Generated automatically by $as_me ($PACKAGE) $VERSION
22421# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22422# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22423
22424# Provide generalized library-building support services.
22425# Written by Gordon Matzigkeit, 1996
22426
22427# Copyright (C) 2014 Free Software Foundation, Inc.
22428# This is free software; see the source for copying conditions.  There is NO
22429# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22430
22431# GNU Libtool is free software; you can redistribute it and/or modify
22432# it under the terms of the GNU General Public License as published by
22433# the Free Software Foundation; either version 2 of of the License, or
22434# (at your option) any later version.
22435#
22436# As a special exception to the GNU General Public License, if you
22437# distribute this file as part of a program or library that is built
22438# using GNU Libtool, you may include this file under the  same
22439# distribution terms that you use for the rest of that program.
22440#
22441# GNU Libtool is distributed in the hope that it will be useful, but
22442# WITHOUT ANY WARRANTY; without even the implied warranty of
22443# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22444# GNU General Public License for more details.
22445#
22446# You should have received a copy of the GNU General Public License
22447# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22448
22449
22450# The names of the tagged configurations supported by this script.
22451available_tags=''
22452
22453# Configured defaults for sys_lib_dlsearch_path munging.
22454: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22455
22456# ### BEGIN LIBTOOL CONFIG
22457
22458# Which release of libtool.m4 was used?
22459macro_version=$macro_version
22460macro_revision=$macro_revision
22461
22462# Whether or not to build shared libraries.
22463build_libtool_libs=$enable_shared
22464
22465# Whether or not to build static libraries.
22466build_old_libs=$enable_static
22467
22468# What type of objects to build.
22469pic_mode=$pic_mode
22470
22471# Whether or not to optimize for fast installation.
22472fast_install=$enable_fast_install
22473
22474# Shared archive member basename,for filename based shared library versioning on AIX.
22475shared_archive_member_spec=$shared_archive_member_spec
22476
22477# Shell to use when invoking shell scripts.
22478SHELL=$lt_SHELL
22479
22480# An echo program that protects backslashes.
22481ECHO=$lt_ECHO
22482
22483# The PATH separator for the build system.
22484PATH_SEPARATOR=$lt_PATH_SEPARATOR
22485
22486# The host system.
22487host_alias=$host_alias
22488host=$host
22489host_os=$host_os
22490
22491# The build system.
22492build_alias=$build_alias
22493build=$build
22494build_os=$build_os
22495
22496# A sed program that does not truncate output.
22497SED=$lt_SED
22498
22499# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22500Xsed="\$SED -e 1s/^X//"
22501
22502# A grep program that handles long lines.
22503GREP=$lt_GREP
22504
22505# An ERE matcher.
22506EGREP=$lt_EGREP
22507
22508# A literal string matcher.
22509FGREP=$lt_FGREP
22510
22511# A BSD- or MS-compatible name lister.
22512NM=$lt_NM
22513
22514# Whether we need soft or hard links.
22515LN_S=$lt_LN_S
22516
22517# What is the maximum length of a command?
22518max_cmd_len=$max_cmd_len
22519
22520# Object file suffix (normally "o").
22521objext=$ac_objext
22522
22523# Executable file suffix (normally "").
22524exeext=$exeext
22525
22526# whether the shell understands "unset".
22527lt_unset=$lt_unset
22528
22529# turn spaces into newlines.
22530SP2NL=$lt_lt_SP2NL
22531
22532# turn newlines into spaces.
22533NL2SP=$lt_lt_NL2SP
22534
22535# convert \$build file names to \$host format.
22536to_host_file_cmd=$lt_cv_to_host_file_cmd
22537
22538# convert \$build files to toolchain format.
22539to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22540
22541# A file(cmd) program that detects file types.
22542FILECMD=$lt_FILECMD
22543
22544# An object symbol dumper.
22545OBJDUMP=$lt_OBJDUMP
22546
22547# Method to check whether dependent libraries are shared objects.
22548deplibs_check_method=$lt_deplibs_check_method
22549
22550# Command to use when deplibs_check_method = "file_magic".
22551file_magic_cmd=$lt_file_magic_cmd
22552
22553# How to find potential files when deplibs_check_method = "file_magic".
22554file_magic_glob=$lt_file_magic_glob
22555
22556# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22557want_nocaseglob=$lt_want_nocaseglob
22558
22559# DLL creation program.
22560DLLTOOL=$lt_DLLTOOL
22561
22562# Command to associate shared and link libraries.
22563sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22564
22565# The archiver.
22566AR=$lt_AR
22567
22568# Flags to create an archive (by configure).
22569lt_ar_flags=$lt_ar_flags
22570
22571# Flags to create an archive.
22572AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22573
22574# How to feed a file listing to the archiver.
22575archiver_list_spec=$lt_archiver_list_spec
22576
22577# A symbol stripping program.
22578STRIP=$lt_STRIP
22579
22580# Commands used to install an old-style archive.
22581RANLIB=$lt_RANLIB
22582old_postinstall_cmds=$lt_old_postinstall_cmds
22583old_postuninstall_cmds=$lt_old_postuninstall_cmds
22584
22585# Whether to use a lock for old archive extraction.
22586lock_old_archive_extraction=$lock_old_archive_extraction
22587
22588# A C compiler.
22589LTCC=$lt_CC
22590
22591# LTCC compiler flags.
22592LTCFLAGS=$lt_CFLAGS
22593
22594# Take the output of nm and produce a listing of raw symbols and C names.
22595global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22596
22597# Transform the output of nm in a proper C declaration.
22598global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22599
22600# Transform the output of nm into a list of symbols to manually relocate.
22601global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22602
22603# Transform the output of nm in a C name address pair.
22604global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22605
22606# Transform the output of nm in a C name address pair when lib prefix is needed.
22607global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22608
22609# The name lister interface.
22610nm_interface=$lt_lt_cv_nm_interface
22611
22612# Specify filename containing input files for \$NM.
22613nm_file_list_spec=$lt_nm_file_list_spec
22614
22615# The root where to search for dependent libraries,and where our libraries should be installed.
22616lt_sysroot=$lt_sysroot
22617
22618# Command to truncate a binary pipe.
22619lt_truncate_bin=$lt_lt_cv_truncate_bin
22620
22621# The name of the directory that contains temporary libtool files.
22622objdir=$objdir
22623
22624# Used to examine libraries when file_magic_cmd begins with "file".
22625MAGIC_CMD=$MAGIC_CMD
22626
22627# Must we lock files when doing compilation?
22628need_locks=$lt_need_locks
22629
22630# Manifest tool.
22631MANIFEST_TOOL=$lt_MANIFEST_TOOL
22632
22633# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22634DSYMUTIL=$lt_DSYMUTIL
22635
22636# Tool to change global to local symbols on Mac OS X.
22637NMEDIT=$lt_NMEDIT
22638
22639# Tool to manipulate fat objects and archives on Mac OS X.
22640LIPO=$lt_LIPO
22641
22642# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22643OTOOL=$lt_OTOOL
22644
22645# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22646OTOOL64=$lt_OTOOL64
22647
22648# Old archive suffix (normally "a").
22649libext=$libext
22650
22651# Shared library suffix (normally ".so").
22652shrext_cmds=$lt_shrext_cmds
22653
22654# The commands to extract the exported symbol list from a shared archive.
22655extract_expsyms_cmds=$lt_extract_expsyms_cmds
22656
22657# Variables whose values should be saved in libtool wrapper scripts and
22658# restored at link time.
22659variables_saved_for_relink=$lt_variables_saved_for_relink
22660
22661# Do we need the "lib" prefix for modules?
22662need_lib_prefix=$need_lib_prefix
22663
22664# Do we need a version for libraries?
22665need_version=$need_version
22666
22667# Library versioning type.
22668version_type=$version_type
22669
22670# Shared library runtime path variable.
22671runpath_var=$runpath_var
22672
22673# Shared library path variable.
22674shlibpath_var=$shlibpath_var
22675
22676# Is shlibpath searched before the hard-coded library search path?
22677shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22678
22679# Format of library name prefix.
22680libname_spec=$lt_libname_spec
22681
22682# List of archive names.  First name is the real one, the rest are links.
22683# The last name is the one that the linker finds with -lNAME
22684library_names_spec=$lt_library_names_spec
22685
22686# The coded name of the library, if different from the real name.
22687soname_spec=$lt_soname_spec
22688
22689# Permission mode override for installation of shared libraries.
22690install_override_mode=$lt_install_override_mode
22691
22692# Command to use after installation of a shared archive.
22693postinstall_cmds=$lt_postinstall_cmds
22694
22695# Command to use after uninstallation of a shared archive.
22696postuninstall_cmds=$lt_postuninstall_cmds
22697
22698# Commands used to finish a libtool library installation in a directory.
22699finish_cmds=$lt_finish_cmds
22700
22701# As "finish_cmds", except a single script fragment to be evaled but
22702# not shown.
22703finish_eval=$lt_finish_eval
22704
22705# Whether we should hardcode library paths into libraries.
22706hardcode_into_libs=$hardcode_into_libs
22707
22708# Compile-time system search path for libraries.
22709sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22710
22711# Detected run-time system search path for libraries.
22712sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22713
22714# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22715configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22716
22717# Whether dlopen is supported.
22718dlopen_support=$enable_dlopen
22719
22720# Whether dlopen of programs is supported.
22721dlopen_self=$enable_dlopen_self
22722
22723# Whether dlopen of statically linked programs is supported.
22724dlopen_self_static=$enable_dlopen_self_static
22725
22726# Commands to strip libraries.
22727old_striplib=$lt_old_striplib
22728striplib=$lt_striplib
22729
22730
22731# The linker used to build libraries.
22732LD=$lt_LD
22733
22734# How to create reloadable object files.
22735reload_flag=$lt_reload_flag
22736reload_cmds=$lt_reload_cmds
22737
22738# Commands used to build an old-style archive.
22739old_archive_cmds=$lt_old_archive_cmds
22740
22741# A language specific compiler.
22742CC=$lt_compiler
22743
22744# Is the compiler the GNU compiler?
22745with_gcc=$GCC
22746
22747# Compiler flag to turn off builtin functions.
22748no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22749
22750# Additional compiler flags for building library objects.
22751pic_flag=$lt_lt_prog_compiler_pic
22752
22753# How to pass a linker flag through the compiler.
22754wl=$lt_lt_prog_compiler_wl
22755
22756# Compiler flag to prevent dynamic linking.
22757link_static_flag=$lt_lt_prog_compiler_static
22758
22759# Does compiler simultaneously support -c and -o options?
22760compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22761
22762# Whether or not to add -lc for building shared libraries.
22763build_libtool_need_lc=$archive_cmds_need_lc
22764
22765# Whether or not to disallow shared libs when runtime libs are static.
22766allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22767
22768# Compiler flag to allow reflexive dlopens.
22769export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22770
22771# Compiler flag to generate shared objects directly from archives.
22772whole_archive_flag_spec=$lt_whole_archive_flag_spec
22773
22774# Whether the compiler copes with passing no objects directly.
22775compiler_needs_object=$lt_compiler_needs_object
22776
22777# Create an old-style archive from a shared archive.
22778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22779
22780# Create a temporary old-style archive to link instead of a shared archive.
22781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22782
22783# Commands used to build a shared archive.
22784archive_cmds=$lt_archive_cmds
22785archive_expsym_cmds=$lt_archive_expsym_cmds
22786
22787# Commands used to build a loadable module if different from building
22788# a shared archive.
22789module_cmds=$lt_module_cmds
22790module_expsym_cmds=$lt_module_expsym_cmds
22791
22792# Whether we are building with GNU ld or not.
22793with_gnu_ld=$lt_with_gnu_ld
22794
22795# Flag that allows shared libraries with undefined symbols to be built.
22796allow_undefined_flag=$lt_allow_undefined_flag
22797
22798# Flag that enforces no undefined symbols.
22799no_undefined_flag=$lt_no_undefined_flag
22800
22801# Flag to hardcode \$libdir into a binary during linking.
22802# This must work even if \$libdir does not exist
22803hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22804
22805# Whether we need a single "-rpath" flag with a separated argument.
22806hardcode_libdir_separator=$lt_hardcode_libdir_separator
22807
22808# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22809# DIR into the resulting binary.
22810hardcode_direct=$hardcode_direct
22811
22812# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22813# DIR into the resulting binary and the resulting library dependency is
22814# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22815# library is relocated.
22816hardcode_direct_absolute=$hardcode_direct_absolute
22817
22818# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22819# into the resulting binary.
22820hardcode_minus_L=$hardcode_minus_L
22821
22822# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22823# into the resulting binary.
22824hardcode_shlibpath_var=$hardcode_shlibpath_var
22825
22826# Set to "yes" if building a shared library automatically hardcodes DIR
22827# into the library and all subsequent libraries and executables linked
22828# against it.
22829hardcode_automatic=$hardcode_automatic
22830
22831# Set to yes if linker adds runtime paths of dependent libraries
22832# to runtime path list.
22833inherit_rpath=$inherit_rpath
22834
22835# Whether libtool must link a program against all its dependency libraries.
22836link_all_deplibs=$link_all_deplibs
22837
22838# Set to "yes" if exported symbols are required.
22839always_export_symbols=$always_export_symbols
22840
22841# The commands to list exported symbols.
22842export_symbols_cmds=$lt_export_symbols_cmds
22843
22844# Symbols that should not be listed in the preloaded symbols.
22845exclude_expsyms=$lt_exclude_expsyms
22846
22847# Symbols that must always be exported.
22848include_expsyms=$lt_include_expsyms
22849
22850# Commands necessary for linking programs (against libraries) with templates.
22851prelink_cmds=$lt_prelink_cmds
22852
22853# Commands necessary for finishing linking programs.
22854postlink_cmds=$lt_postlink_cmds
22855
22856# Specify filename containing input files.
22857file_list_spec=$lt_file_list_spec
22858
22859# How to hardcode a shared library path into an executable.
22860hardcode_action=$hardcode_action
22861
22862# ### END LIBTOOL CONFIG
22863
22864_LT_EOF
22865
22866    cat <<'_LT_EOF' >> "$cfgfile"
22867
22868# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22869
22870# func_munge_path_list VARIABLE PATH
22871# -----------------------------------
22872# VARIABLE is name of variable containing _space_ separated list of
22873# directories to be munged by the contents of PATH, which is string
22874# having a format:
22875# "DIR[:DIR]:"
22876#       string "DIR[ DIR]" will be prepended to VARIABLE
22877# ":DIR[:DIR]"
22878#       string "DIR[ DIR]" will be appended to VARIABLE
22879# "DIRP[:DIRP]::[DIRA:]DIRA"
22880#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22881#       "DIRA[ DIRA]" will be appended to VARIABLE
22882# "DIR[:DIR]"
22883#       VARIABLE will be replaced by "DIR[ DIR]"
22884func_munge_path_list ()
22885{
22886    case x$2 in
22887    x)
22888        ;;
22889    *:)
22890        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22891        ;;
22892    x:*)
22893        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22894        ;;
22895    *::*)
22896        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22897        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22898        ;;
22899    *)
22900        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22901        ;;
22902    esac
22903}
22904
22905
22906# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22907func_cc_basename ()
22908{
22909    for cc_temp in $*""; do
22910      case $cc_temp in
22911        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22912        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22913        \-*) ;;
22914        *) break;;
22915      esac
22916    done
22917    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22918}
22919
22920
22921# ### END FUNCTIONS SHARED WITH CONFIGURE
22922
22923_LT_EOF
22924
22925  case $host_os in
22926  aix3*)
22927    cat <<\_LT_EOF >> "$cfgfile"
22928# AIX sometimes has problems with the GCC collect2 program.  For some
22929# reason, if we set the COLLECT_NAMES environment variable, the problems
22930# vanish in a puff of smoke.
22931if test set != "${COLLECT_NAMES+set}"; then
22932  COLLECT_NAMES=
22933  export COLLECT_NAMES
22934fi
22935_LT_EOF
22936    ;;
22937  esac
22938
22939
22940
22941ltmain=$ac_aux_dir/ltmain.sh
22942
22943
22944  # We use sed instead of cat because bash on DJGPP gets confused if
22945  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22946  # text mode, it properly converts lines to CR/LF.  This bash problem
22947  # is reportedly fixed, but why not run on old versions too?
22948  $SED '$q' "$ltmain" >> "$cfgfile" \
22949     || (rm -f "$cfgfile"; exit 1)
22950
22951   mv -f "$cfgfile" "$ofile" ||
22952    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22953  chmod +x "$ofile"
22954
22955 ;;
22956
22957  esac
22958done # for ac_tag
22959
22960
22961as_fn_exit 0
22962_ACEOF
22963ac_clean_files=$ac_clean_files_save
22964
22965test $ac_write_fail = 0 ||
22966  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22967
22968
22969# configure is writing to config.log, and then calls config.status.
22970# config.status does its own redirection, appending to config.log.
22971# Unfortunately, on DOS this fails, as config.log is still kept open
22972# by configure, so config.status won't be able to write to it; its
22973# output is simply discarded.  So we exec the FD to /dev/null,
22974# effectively closing config.log, so it can be properly (re)opened and
22975# appended to by config.status.  When coming back to configure, we
22976# need to make the FD available again.
22977if test "$no_create" != yes; then
22978  ac_cs_success=:
22979  ac_config_status_args=
22980  test "$silent" = yes &&
22981    ac_config_status_args="$ac_config_status_args --quiet"
22982  exec 5>/dev/null
22983  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22984  exec 5>>config.log
22985  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22986  # would make configure fail if this is the last instruction.
22987  $ac_cs_success || as_fn_exit 1
22988fi
22989if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22991printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22992fi
22993
22994
22995