configure revision 629baa8c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xdm 1.1.11.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='xdm'
573PACKAGE_TARNAME='xdm'
574PACKAGE_VERSION='1.1.11'
575PACKAGE_STRING='xdm 1.1.11'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_unique_file="Makefile.am"
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620appdefaultdir
621APPDEFS_LIBS
622APPDEFS_CFLAGS
623DEF_AUTH_DIR
624XDMXAUTHDIR
625DEF_CHOOSER
626DEF_XDM_CONFIG
627DEF_FAILSAFE_CLIENT
628DEF_SYSTEM_SHELL
629DEF_SYSTEM_PATH
630DEF_USER_PATH
631DEF_SESSION
632XRDB_PROGRAM
633DEF_SERVER_LINE
634CHOOSER_LIBS
635CHOOSER_CFLAGS
636XDMSHELL_LIBS
637XDMSHELL_CFLAGS
638XT_LIBS
639XT_CFLAGS
640INSTALL_XDMSHELL_FALSE
641INSTALL_XDMSHELL_TRUE
642HAS_XDM_AUTH_FALSE
643HAS_XDM_AUTH_TRUE
644DEF_GREETER_LIB
645XDMGREET_LIBS
646XDMGREET_CFLAGS
647AUTH_LIBS
648AUTH_CFLAGS
649XLIB_LIBS
650XLIB_CFLAGS
651DMCP_LIBS
652DMCP_CFLAGS
653XDM_TOOLKIT_LIBS
654XDM_TOOLKIT_CFLAGS
655XDM_PIXMAPDIR
656XDM_BWPIXMAP
657XDM_PIXMAP
658USE_XPM_FALSE
659USE_XPM_TRUE
660XPM_LIBS
661XPM_CFLAGS
662XFT_LIBS
663XFT_CFLAGS
664XINERAMA_LIBS
665XINERAMA_CFLAGS
666XDM_LIBS
667XDM_CFLAGS
668SHELL_CMD
669WTMP_FILE
670UTMP_FILE
671SERVERSTYPE
672DEFAULTVT
673XDMPIDDIR
674XDMLOGDIR
675XDMSCRIPTDIR
676XDMCONFIGDIR
677XDMLIBDIR
678HAS_KERBEROS_FIVE_FALSE
679HAS_KERBEROS_FIVE_TRUE
680DEV_RANDOM
681SU
682HAVE_SYSTEMD_FALSE
683HAVE_SYSTEMD_TRUE
684systemdsystemunitdir
685HAS_SECURE_RPC_FALSE
686HAS_SECURE_RPC_TRUE
687HAVE_ARC4RANDOM_FALSE
688HAVE_ARC4RANDOM_TRUE
689HAVE_ARC4RANDOM
690HAVE_MKTEMP_COMMAND_FALSE
691HAVE_MKTEMP_COMMAND_TRUE
692MKTEMP_COMMAND
693LINT_FALSE
694LINT_TRUE
695LINT_FLAGS
696LINT
697RAWCPPFLAGS
698RAWCPP
699AM_BACKSLASH
700AM_DEFAULT_VERBOSITY
701MAN_SUBSTS
702XORG_MAN_PAGE
703ADMIN_MAN_DIR
704DRIVER_MAN_DIR
705MISC_MAN_DIR
706FILE_MAN_DIR
707LIB_MAN_DIR
708APP_MAN_DIR
709ADMIN_MAN_SUFFIX
710DRIVER_MAN_SUFFIX
711MISC_MAN_SUFFIX
712FILE_MAN_SUFFIX
713LIB_MAN_SUFFIX
714APP_MAN_SUFFIX
715INSTALL_CMD
716PKG_CONFIG_LIBDIR
717PKG_CONFIG_PATH
718PKG_CONFIG
719CHANGELOG_CMD
720STRICT_CFLAGS
721CWARNFLAGS
722OTOOL64
723OTOOL
724LIPO
725NMEDIT
726DSYMUTIL
727MANIFEST_TOOL
728RANLIB
729ac_ct_AR
730AR
731DLLTOOL
732OBJDUMP
733LN_S
734NM
735ac_ct_DUMPBIN
736DUMPBIN
737LD
738FGREP
739SED
740host_os
741host_vendor
742host_cpu
743host
744build_os
745build_vendor
746build_cpu
747build
748LIBTOOL
749MAINT
750MAINTAINER_MODE_FALSE
751MAINTAINER_MODE_TRUE
752am__fastdepCC_FALSE
753am__fastdepCC_TRUE
754CCDEPMODE
755AMDEPBACKSLASH
756AMDEP_FALSE
757AMDEP_TRUE
758am__quote
759am__include
760DEPDIR
761am__untar
762am__tar
763AMTAR
764am__leading_dot
765SET_MAKE
766AWK
767mkdir_p
768MKDIR_P
769INSTALL_STRIP_PROGRAM
770STRIP
771install_sh
772MAKEINFO
773AUTOHEADER
774AUTOMAKE
775AUTOCONF
776ACLOCAL
777VERSION
778PACKAGE
779CYGPATH_W
780am__isrc
781INSTALL_DATA
782INSTALL_SCRIPT
783INSTALL_PROGRAM
784EGREP
785GREP
786CPP
787OBJEXT
788EXEEXT
789ac_ct_CC
790CPPFLAGS
791LDFLAGS
792CFLAGS
793CC
794target_alias
795host_alias
796build_alias
797LIBS
798ECHO_T
799ECHO_N
800ECHO_C
801DEFS
802mandir
803localedir
804libdir
805psdir
806pdfdir
807dvidir
808htmldir
809infodir
810docdir
811oldincludedir
812includedir
813localstatedir
814sharedstatedir
815sysconfdir
816datadir
817datarootdir
818libexecdir
819sbindir
820bindir
821program_transform_name
822prefix
823exec_prefix
824PACKAGE_URL
825PACKAGE_BUGREPORT
826PACKAGE_STRING
827PACKAGE_VERSION
828PACKAGE_TARNAME
829PACKAGE_NAME
830PATH_SEPARATOR
831SHELL'
832ac_subst_files=''
833ac_user_opts='
834enable_option_checking
835enable_dependency_tracking
836enable_maintainer_mode
837enable_static
838enable_shared
839with_pic
840enable_fast_install
841with_gnu_ld
842with_sysroot
843enable_libtool_lock
844enable_strict_compilation
845enable_silent_rules
846with_lint
847enable_unix_transport
848enable_tcp_transport
849enable_ipv6
850enable_local_transport
851enable_secure_rpc
852with_pam
853with_selinux
854with_systemdsystemunitdir
855with_random_device
856with_xdmlibdir
857with_xdmconfigdir
858with_xdmscriptdir
859with_logdir
860with_piddir
861with_default_vt
862with_config_type
863with_utmp_file
864with_wtmp_file
865with_xft
866enable_xpm_logos
867with_color_pixmap
868with_bw_pixmap
869with_pixmapdir
870enable_xdm_auth
871enable_xdmshell
872with_xrdb
873with_default_session
874with_authdir
875with_appdefaultdir
876'
877      ac_precious_vars='build_alias
878host_alias
879target_alias
880CC
881CFLAGS
882LDFLAGS
883LIBS
884CPPFLAGS
885CPP
886PKG_CONFIG
887PKG_CONFIG_PATH
888PKG_CONFIG_LIBDIR
889LINT
890LINT_FLAGS
891XDM_CFLAGS
892XDM_LIBS
893XINERAMA_CFLAGS
894XINERAMA_LIBS
895XFT_CFLAGS
896XFT_LIBS
897XPM_CFLAGS
898XPM_LIBS
899XDM_TOOLKIT_CFLAGS
900XDM_TOOLKIT_LIBS
901DMCP_CFLAGS
902DMCP_LIBS
903XLIB_CFLAGS
904XLIB_LIBS
905AUTH_CFLAGS
906AUTH_LIBS
907XDMGREET_CFLAGS
908XDMGREET_LIBS
909XT_CFLAGS
910XT_LIBS
911APPDEFS_CFLAGS
912APPDEFS_LIBS'
913
914
915# Initialize some variables set by options.
916ac_init_help=
917ac_init_version=false
918ac_unrecognized_opts=
919ac_unrecognized_sep=
920# The variables have the same names as the options, with
921# dashes changed to underlines.
922cache_file=/dev/null
923exec_prefix=NONE
924no_create=
925no_recursion=
926prefix=NONE
927program_prefix=NONE
928program_suffix=NONE
929program_transform_name=s,x,x,
930silent=
931site=
932srcdir=
933verbose=
934x_includes=NONE
935x_libraries=NONE
936
937# Installation directory options.
938# These are left unexpanded so users can "make install exec_prefix=/foo"
939# and all the variables that are supposed to be based on exec_prefix
940# by default will actually change.
941# Use braces instead of parens because sh, perl, etc. also accept them.
942# (The list follows the same order as the GNU Coding Standards.)
943bindir='${exec_prefix}/bin'
944sbindir='${exec_prefix}/sbin'
945libexecdir='${exec_prefix}/libexec'
946datarootdir='${prefix}/share'
947datadir='${datarootdir}'
948sysconfdir='${prefix}/etc'
949sharedstatedir='${prefix}/com'
950localstatedir='${prefix}/var'
951includedir='${prefix}/include'
952oldincludedir='/usr/include'
953docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954infodir='${datarootdir}/info'
955htmldir='${docdir}'
956dvidir='${docdir}'
957pdfdir='${docdir}'
958psdir='${docdir}'
959libdir='${exec_prefix}/lib'
960localedir='${datarootdir}/locale'
961mandir='${datarootdir}/man'
962
963ac_prev=
964ac_dashdash=
965for ac_option
966do
967  # If the previous option needs an argument, assign it.
968  if test -n "$ac_prev"; then
969    eval $ac_prev=\$ac_option
970    ac_prev=
971    continue
972  fi
973
974  case $ac_option in
975  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976  *=)   ac_optarg= ;;
977  *)    ac_optarg=yes ;;
978  esac
979
980  # Accept the important Cygnus configure options, so we can diagnose typos.
981
982  case $ac_dashdash$ac_option in
983  --)
984    ac_dashdash=yes ;;
985
986  -bindir | --bindir | --bindi | --bind | --bin | --bi)
987    ac_prev=bindir ;;
988  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989    bindir=$ac_optarg ;;
990
991  -build | --build | --buil | --bui | --bu)
992    ac_prev=build_alias ;;
993  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994    build_alias=$ac_optarg ;;
995
996  -cache-file | --cache-file | --cache-fil | --cache-fi \
997  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998    ac_prev=cache_file ;;
999  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001    cache_file=$ac_optarg ;;
1002
1003  --config-cache | -C)
1004    cache_file=config.cache ;;
1005
1006  -datadir | --datadir | --datadi | --datad)
1007    ac_prev=datadir ;;
1008  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009    datadir=$ac_optarg ;;
1010
1011  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012  | --dataroo | --dataro | --datar)
1013    ac_prev=datarootdir ;;
1014  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016    datarootdir=$ac_optarg ;;
1017
1018  -disable-* | --disable-*)
1019    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020    # Reject names that are not valid shell variable names.
1021    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022      as_fn_error $? "invalid feature name: $ac_useropt"
1023    ac_useropt_orig=$ac_useropt
1024    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025    case $ac_user_opts in
1026      *"
1027"enable_$ac_useropt"
1028"*) ;;
1029      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030	 ac_unrecognized_sep=', ';;
1031    esac
1032    eval enable_$ac_useropt=no ;;
1033
1034  -docdir | --docdir | --docdi | --doc | --do)
1035    ac_prev=docdir ;;
1036  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037    docdir=$ac_optarg ;;
1038
1039  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040    ac_prev=dvidir ;;
1041  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042    dvidir=$ac_optarg ;;
1043
1044  -enable-* | --enable-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      as_fn_error $? "invalid feature name: $ac_useropt"
1049    ac_useropt_orig=$ac_useropt
1050    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051    case $ac_user_opts in
1052      *"
1053"enable_$ac_useropt"
1054"*) ;;
1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056	 ac_unrecognized_sep=', ';;
1057    esac
1058    eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062  | --exec | --exe | --ex)
1063    ac_prev=exec_prefix ;;
1064  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066  | --exec=* | --exe=* | --ex=*)
1067    exec_prefix=$ac_optarg ;;
1068
1069  -gas | --gas | --ga | --g)
1070    # Obsolete; use --with-gas.
1071    with_gas=yes ;;
1072
1073  -help | --help | --hel | --he | -h)
1074    ac_init_help=long ;;
1075  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076    ac_init_help=recursive ;;
1077  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078    ac_init_help=short ;;
1079
1080  -host | --host | --hos | --ho)
1081    ac_prev=host_alias ;;
1082  -host=* | --host=* | --hos=* | --ho=*)
1083    host_alias=$ac_optarg ;;
1084
1085  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086    ac_prev=htmldir ;;
1087  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088  | --ht=*)
1089    htmldir=$ac_optarg ;;
1090
1091  -includedir | --includedir | --includedi | --included | --include \
1092  | --includ | --inclu | --incl | --inc)
1093    ac_prev=includedir ;;
1094  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095  | --includ=* | --inclu=* | --incl=* | --inc=*)
1096    includedir=$ac_optarg ;;
1097
1098  -infodir | --infodir | --infodi | --infod | --info | --inf)
1099    ac_prev=infodir ;;
1100  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101    infodir=$ac_optarg ;;
1102
1103  -libdir | --libdir | --libdi | --libd)
1104    ac_prev=libdir ;;
1105  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106    libdir=$ac_optarg ;;
1107
1108  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109  | --libexe | --libex | --libe)
1110    ac_prev=libexecdir ;;
1111  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112  | --libexe=* | --libex=* | --libe=*)
1113    libexecdir=$ac_optarg ;;
1114
1115  -localedir | --localedir | --localedi | --localed | --locale)
1116    ac_prev=localedir ;;
1117  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118    localedir=$ac_optarg ;;
1119
1120  -localstatedir | --localstatedir | --localstatedi | --localstated \
1121  | --localstate | --localstat | --localsta | --localst | --locals)
1122    ac_prev=localstatedir ;;
1123  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125    localstatedir=$ac_optarg ;;
1126
1127  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128    ac_prev=mandir ;;
1129  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130    mandir=$ac_optarg ;;
1131
1132  -nfp | --nfp | --nf)
1133    # Obsolete; use --without-fp.
1134    with_fp=no ;;
1135
1136  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137  | --no-cr | --no-c | -n)
1138    no_create=yes ;;
1139
1140  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142    no_recursion=yes ;;
1143
1144  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146  | --oldin | --oldi | --old | --ol | --o)
1147    ac_prev=oldincludedir ;;
1148  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151    oldincludedir=$ac_optarg ;;
1152
1153  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154    ac_prev=prefix ;;
1155  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156    prefix=$ac_optarg ;;
1157
1158  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159  | --program-pre | --program-pr | --program-p)
1160    ac_prev=program_prefix ;;
1161  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163    program_prefix=$ac_optarg ;;
1164
1165  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166  | --program-suf | --program-su | --program-s)
1167    ac_prev=program_suffix ;;
1168  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170    program_suffix=$ac_optarg ;;
1171
1172  -program-transform-name | --program-transform-name \
1173  | --program-transform-nam | --program-transform-na \
1174  | --program-transform-n | --program-transform- \
1175  | --program-transform | --program-transfor \
1176  | --program-transfo | --program-transf \
1177  | --program-trans | --program-tran \
1178  | --progr-tra | --program-tr | --program-t)
1179    ac_prev=program_transform_name ;;
1180  -program-transform-name=* | --program-transform-name=* \
1181  | --program-transform-nam=* | --program-transform-na=* \
1182  | --program-transform-n=* | --program-transform-=* \
1183  | --program-transform=* | --program-transfor=* \
1184  | --program-transfo=* | --program-transf=* \
1185  | --program-trans=* | --program-tran=* \
1186  | --progr-tra=* | --program-tr=* | --program-t=*)
1187    program_transform_name=$ac_optarg ;;
1188
1189  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190    ac_prev=pdfdir ;;
1191  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192    pdfdir=$ac_optarg ;;
1193
1194  -psdir | --psdir | --psdi | --psd | --ps)
1195    ac_prev=psdir ;;
1196  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197    psdir=$ac_optarg ;;
1198
1199  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200  | -silent | --silent | --silen | --sile | --sil)
1201    silent=yes ;;
1202
1203  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204    ac_prev=sbindir ;;
1205  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206  | --sbi=* | --sb=*)
1207    sbindir=$ac_optarg ;;
1208
1209  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211  | --sharedst | --shareds | --shared | --share | --shar \
1212  | --sha | --sh)
1213    ac_prev=sharedstatedir ;;
1214  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217  | --sha=* | --sh=*)
1218    sharedstatedir=$ac_optarg ;;
1219
1220  -site | --site | --sit)
1221    ac_prev=site ;;
1222  -site=* | --site=* | --sit=*)
1223    site=$ac_optarg ;;
1224
1225  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226    ac_prev=srcdir ;;
1227  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228    srcdir=$ac_optarg ;;
1229
1230  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231  | --syscon | --sysco | --sysc | --sys | --sy)
1232    ac_prev=sysconfdir ;;
1233  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235    sysconfdir=$ac_optarg ;;
1236
1237  -target | --target | --targe | --targ | --tar | --ta | --t)
1238    ac_prev=target_alias ;;
1239  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240    target_alias=$ac_optarg ;;
1241
1242  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243    verbose=yes ;;
1244
1245  -version | --version | --versio | --versi | --vers | -V)
1246    ac_init_version=: ;;
1247
1248  -with-* | --with-*)
1249    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250    # Reject names that are not valid shell variable names.
1251    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252      as_fn_error $? "invalid package name: $ac_useropt"
1253    ac_useropt_orig=$ac_useropt
1254    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255    case $ac_user_opts in
1256      *"
1257"with_$ac_useropt"
1258"*) ;;
1259      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260	 ac_unrecognized_sep=', ';;
1261    esac
1262    eval with_$ac_useropt=\$ac_optarg ;;
1263
1264  -without-* | --without-*)
1265    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266    # Reject names that are not valid shell variable names.
1267    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268      as_fn_error $? "invalid package name: $ac_useropt"
1269    ac_useropt_orig=$ac_useropt
1270    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271    case $ac_user_opts in
1272      *"
1273"with_$ac_useropt"
1274"*) ;;
1275      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276	 ac_unrecognized_sep=', ';;
1277    esac
1278    eval with_$ac_useropt=no ;;
1279
1280  --x)
1281    # Obsolete; use --with-x.
1282    with_x=yes ;;
1283
1284  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285  | --x-incl | --x-inc | --x-in | --x-i)
1286    ac_prev=x_includes ;;
1287  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289    x_includes=$ac_optarg ;;
1290
1291  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293    ac_prev=x_libraries ;;
1294  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296    x_libraries=$ac_optarg ;;
1297
1298  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1299Try \`$0 --help' for more information"
1300    ;;
1301
1302  *=*)
1303    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304    # Reject names that are not valid shell variable names.
1305    case $ac_envvar in #(
1306      '' | [0-9]* | *[!_$as_cr_alnum]* )
1307      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1308    esac
1309    eval $ac_envvar=\$ac_optarg
1310    export $ac_envvar ;;
1311
1312  *)
1313    # FIXME: should be removed in autoconf 3.0.
1314    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318    ;;
1319
1320  esac
1321done
1322
1323if test -n "$ac_prev"; then
1324  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325  as_fn_error $? "missing argument to $ac_option"
1326fi
1327
1328if test -n "$ac_unrecognized_opts"; then
1329  case $enable_option_checking in
1330    no) ;;
1331    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333  esac
1334fi
1335
1336# Check all directory arguments for consistency.
1337for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338		datadir sysconfdir sharedstatedir localstatedir includedir \
1339		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340		libdir localedir mandir
1341do
1342  eval ac_val=\$$ac_var
1343  # Remove trailing slashes.
1344  case $ac_val in
1345    */ )
1346      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347      eval $ac_var=\$ac_val;;
1348  esac
1349  # Be sure to have absolute directory names.
1350  case $ac_val in
1351    [\\/$]* | ?:[\\/]* )  continue;;
1352    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353  esac
1354  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355done
1356
1357# There might be people who depend on the old broken behavior: `$host'
1358# used to hold the argument of --host etc.
1359# FIXME: To remove some day.
1360build=$build_alias
1361host=$host_alias
1362target=$target_alias
1363
1364# FIXME: To remove some day.
1365if test "x$host_alias" != x; then
1366  if test "x$build_alias" = x; then
1367    cross_compiling=maybe
1368    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1369    If a cross compiler is detected then cross compile mode will be used" >&2
1370  elif test "x$build_alias" != "x$host_alias"; then
1371    cross_compiling=yes
1372  fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
1380
1381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384  as_fn_error $? "working directory cannot be determined"
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386  as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389# Find the source files, if location was not specified.
1390if test -z "$srcdir"; then
1391  ac_srcdir_defaulted=yes
1392  # Try the directory containing this script, then the parent directory.
1393  ac_confdir=`$as_dirname -- "$as_myself" ||
1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395	 X"$as_myself" : 'X\(//\)[^/]' \| \
1396	 X"$as_myself" : 'X\(//\)$' \| \
1397	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398$as_echo X"$as_myself" |
1399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400	    s//\1/
1401	    q
1402	  }
1403	  /^X\(\/\/\)[^/].*/{
1404	    s//\1/
1405	    q
1406	  }
1407	  /^X\(\/\/\)$/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\).*/{
1412	    s//\1/
1413	    q
1414	  }
1415	  s/.*/./; q'`
1416  srcdir=$ac_confdir
1417  if test ! -r "$srcdir/$ac_unique_file"; then
1418    srcdir=..
1419  fi
1420else
1421  ac_srcdir_defaulted=no
1422fi
1423if test ! -r "$srcdir/$ac_unique_file"; then
1424  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426fi
1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
1429	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430	pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433  srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443  eval ac_env_${ac_var}_value=\$${ac_var}
1444  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
1447
1448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452  # Omit some internal or obsolete options to make the list less imposing.
1453  # This message is too long to be a string in the A/UX 3.1 sh.
1454  cat <<_ACEOF
1455\`configure' configures xdm 1.1.11 to adapt to many kinds of systems.
1456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465  -h, --help              display this help and exit
1466      --help=short        display options specific to this package
1467      --help=recursive    display the short help of all the included packages
1468  -V, --version           display version information and exit
1469  -q, --quiet, --silent   do not print \`checking ...' messages
1470      --cache-file=FILE   cache test results in FILE [disabled]
1471  -C, --config-cache      alias for \`--cache-file=config.cache'
1472  -n, --no-create         do not create output files
1473      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475Installation directories:
1476  --prefix=PREFIX         install architecture-independent files in PREFIX
1477                          [$ac_default_prefix]
1478  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479                          [PREFIX]
1480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489  --bindir=DIR            user executables [EPREFIX/bin]
1490  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1491  --libexecdir=DIR        program executables [EPREFIX/libexec]
1492  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1493  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1494  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1495  --libdir=DIR            object code libraries [EPREFIX/lib]
1496  --includedir=DIR        C header files [PREFIX/include]
1497  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1498  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1499  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1500  --infodir=DIR           info documentation [DATAROOTDIR/info]
1501  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1502  --mandir=DIR            man documentation [DATAROOTDIR/man]
1503  --docdir=DIR            documentation root [DATAROOTDIR/doc/xdm]
1504  --htmldir=DIR           html documentation [DOCDIR]
1505  --dvidir=DIR            dvi documentation [DOCDIR]
1506  --pdfdir=DIR            pdf documentation [DOCDIR]
1507  --psdir=DIR             ps documentation [DOCDIR]
1508_ACEOF
1509
1510  cat <<\_ACEOF
1511
1512Program names:
1513  --program-prefix=PREFIX            prepend PREFIX to installed program names
1514  --program-suffix=SUFFIX            append SUFFIX to installed program names
1515  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1516
1517System types:
1518  --build=BUILD     configure for building on BUILD [guessed]
1519  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520_ACEOF
1521fi
1522
1523if test -n "$ac_init_help"; then
1524  case $ac_init_help in
1525     short | recursive ) echo "Configuration of xdm 1.1.11:";;
1526   esac
1527  cat <<\_ACEOF
1528
1529Optional Features:
1530  --disable-option-checking  ignore unrecognized --enable/--with options
1531  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533  --disable-dependency-tracking  speeds up one-time build
1534  --enable-dependency-tracking   do not reject slow dependency extractors
1535  --enable-maintainer-mode  enable make rules and dependencies not useful
1536			  (and sometimes confusing) to the casual installer
1537  --enable-static[=PKGS]  build static libraries [default=no]
1538  --enable-shared[=PKGS]  build shared libraries [default=yes]
1539  --enable-fast-install[=PKGS]
1540                          optimize for fast installation [default=yes]
1541  --disable-libtool-lock  avoid locking (might break parallel builds)
1542  --enable-strict-compilation
1543                          Enable all warnings from compiler and make them
1544                          errors (default: disabled)
1545  --enable-silent-rules          less verbose build output (undo: `make V=1')
1546  --disable-silent-rules         verbose build output (undo: `make V=0')
1547  --enable-unix-transport Enable UNIX domain socket transport
1548  --enable-tcp-transport  Enable TCP socket transport
1549  --enable-ipv6           Enable IPv6 support
1550  --enable-local-transport
1551                          Enable os-specific local transport
1552  --enable-secure-rpc     Enable Secure RPC
1553  --enable-xpm-logos      Display xpm logos in greeter (default is YES)
1554  --enable-xdm-auth       Support XDM-AUTHENTICATION-1 and XDM-AUTHORIZATION-1
1555                          (default: auto)
1556  --enable-xdmshell       Install xdmshell (default: disabled)
1557
1558Optional Packages:
1559  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1560  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1561  --with-pic              try to use only PIC/non-PIC objects [default=use
1562                          both]
1563  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1564  --with-sysroot=DIR Search for dependent libraries within DIR
1565                        (or the compiler's sysroot if not specified).
1566  --with-lint             Use a lint-style source code checker (default:
1567                          disabled)
1568  --with-pam              Use PAM for authentication (default is autodetected)
1569  --with-selinux          Add support for SELinux (default is no support)
1570  --with-systemdsystemunitdir=DIR
1571                          Directory for systemd service files (default from
1572                          the System and Service Manager)
1573  --with-random-device\=<pathname>\
1574                          Use <pathname> as a source of randomness (default is
1575                          auto-detected)
1576  --with-xdmlibdir=<pathname>
1577                          specify directory for xdm scripts and modules
1578                          (default=${libdir}/X11/xdm)
1579  --with-xdmconfigdir=<pathname>
1580                          specify directory for xdm config files (default is
1581                          same as xdmlibdir)
1582  --with-xdmscriptdir=<pathname>
1583                          specify directory for xdm scripts (default is same
1584                          as xdmlibdir)
1585  --with-logdir=<pathname>
1586                          specify directory for xdm log files
1587                          (default=/var/log)
1588  --with-piddir=<pathname>
1589                          specify directory for xdm pid files
1590                          (default=/var/run)
1591  --with-default-vt=<vtname>
1592                          specify default vt to start xdm on (default=none)
1593  --with-config-type={ws|fs}
1594                          default config file type to use - workstation (ws)
1595                          or fileserver (fs) (default=ws)
1596  --with-utmp-file=<pathname>
1597                          specify file to pass to sessreg -u for current
1598                          logins
1599  --with-wtmp-file=<pathname>
1600                          specify file to pass to sessreg -w for login history
1601  --with-xft              Use Xft to draw text (default is YES if installed)
1602  --with-color-pixmap=<filename>
1603                          specify xpm file to use as color logo
1604                          (default=xorg.xpm)
1605  --with-bw-pixmap=<filename>
1606                          specify xpm file to use as black-and-white logo
1607                          (default=xorg-bw.xpm)
1608  --with-pixmapdir=<pathname>
1609                          specify directory for xpm files
1610                          (default=xdmlibdir/pixmaps)
1611  --with-xrdb=path        Use path for xrdb (default: bindir/xrdb)
1612  --with-default-session=command
1613                          Use command for default session (default:
1614                          bindir/xterm -ls)
1615  --with-authdir=<pathname>
1616                          specify directory for X auth files
1617                          (default=/var/lib/xdm)
1618  --with-appdefaultdir=<pathname>
1619                          specify directory for app-defaults files (default is
1620                          autodetected)
1621
1622Some influential environment variables:
1623  CC          C compiler command
1624  CFLAGS      C compiler flags
1625  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1626              nonstandard directory <lib dir>
1627  LIBS        libraries to pass to the linker, e.g. -l<library>
1628  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629              you have headers in a nonstandard directory <include dir>
1630  CPP         C preprocessor
1631  PKG_CONFIG  path to pkg-config utility
1632  PKG_CONFIG_PATH
1633              directories to add to pkg-config's search path
1634  PKG_CONFIG_LIBDIR
1635              path overriding pkg-config's built-in search path
1636  LINT        Path to a lint-style command
1637  LINT_FLAGS  Flags for the lint-style command
1638  XDM_CFLAGS  C compiler flags for XDM, overriding pkg-config
1639  XDM_LIBS    linker flags for XDM, overriding pkg-config
1640  XINERAMA_CFLAGS
1641              C compiler flags for XINERAMA, overriding pkg-config
1642  XINERAMA_LIBS
1643              linker flags for XINERAMA, overriding pkg-config
1644  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1645  XFT_LIBS    linker flags for XFT, overriding pkg-config
1646  XPM_CFLAGS  C compiler flags for XPM, overriding pkg-config
1647  XPM_LIBS    linker flags for XPM, overriding pkg-config
1648  XDM_TOOLKIT_CFLAGS
1649              C compiler flags for XDM_TOOLKIT, overriding pkg-config
1650  XDM_TOOLKIT_LIBS
1651              linker flags for XDM_TOOLKIT, overriding pkg-config
1652  DMCP_CFLAGS C compiler flags for DMCP, overriding pkg-config
1653  DMCP_LIBS   linker flags for DMCP, overriding pkg-config
1654  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1655  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
1656  AUTH_CFLAGS C compiler flags for AUTH, overriding pkg-config
1657  AUTH_LIBS   linker flags for AUTH, overriding pkg-config
1658  XDMGREET_CFLAGS
1659              C compiler flags for XDMGREET, overriding pkg-config
1660  XDMGREET_LIBS
1661              linker flags for XDMGREET, overriding pkg-config
1662  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1663  XT_LIBS     linker flags for XT, overriding pkg-config
1664  APPDEFS_CFLAGS
1665              C compiler flags for APPDEFS, overriding pkg-config
1666  APPDEFS_LIBS
1667              linker flags for APPDEFS, overriding pkg-config
1668
1669Use these variables to override the choices made by `configure' or to help
1670it to find libraries and programs with nonstandard names/locations.
1671
1672Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1673_ACEOF
1674ac_status=$?
1675fi
1676
1677if test "$ac_init_help" = "recursive"; then
1678  # If there are subdirs, report their specific --help.
1679  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1680    test -d "$ac_dir" ||
1681      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682      continue
1683    ac_builddir=.
1684
1685case "$ac_dir" in
1686.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687*)
1688  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1689  # A ".." for each directory in $ac_dir_suffix.
1690  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1691  case $ac_top_builddir_sub in
1692  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1694  esac ;;
1695esac
1696ac_abs_top_builddir=$ac_pwd
1697ac_abs_builddir=$ac_pwd$ac_dir_suffix
1698# for backward compatibility:
1699ac_top_builddir=$ac_top_build_prefix
1700
1701case $srcdir in
1702  .)  # We are building in place.
1703    ac_srcdir=.
1704    ac_top_srcdir=$ac_top_builddir_sub
1705    ac_abs_top_srcdir=$ac_pwd ;;
1706  [\\/]* | ?:[\\/]* )  # Absolute name.
1707    ac_srcdir=$srcdir$ac_dir_suffix;
1708    ac_top_srcdir=$srcdir
1709    ac_abs_top_srcdir=$srcdir ;;
1710  *) # Relative name.
1711    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1712    ac_top_srcdir=$ac_top_build_prefix$srcdir
1713    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1714esac
1715ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1716
1717    cd "$ac_dir" || { ac_status=$?; continue; }
1718    # Check for guested configure.
1719    if test -f "$ac_srcdir/configure.gnu"; then
1720      echo &&
1721      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1722    elif test -f "$ac_srcdir/configure"; then
1723      echo &&
1724      $SHELL "$ac_srcdir/configure" --help=recursive
1725    else
1726      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1727    fi || ac_status=$?
1728    cd "$ac_pwd" || { ac_status=$?; break; }
1729  done
1730fi
1731
1732test -n "$ac_init_help" && exit $ac_status
1733if $ac_init_version; then
1734  cat <<\_ACEOF
1735xdm configure 1.1.11
1736generated by GNU Autoconf 2.68
1737
1738Copyright (C) 2010 Free Software Foundation, Inc.
1739This configure script is free software; the Free Software Foundation
1740gives unlimited permission to copy, distribute and modify it.
1741_ACEOF
1742  exit
1743fi
1744
1745## ------------------------ ##
1746## Autoconf initialization. ##
1747## ------------------------ ##
1748
1749# ac_fn_c_try_compile LINENO
1750# --------------------------
1751# Try to compile conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_compile ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  rm -f conftest.$ac_objext
1756  if { { ac_try="$ac_compile"
1757case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_compile") 2>conftest.err
1764  ac_status=$?
1765  if test -s conftest.err; then
1766    grep -v '^ *+' conftest.err >conftest.er1
1767    cat conftest.er1 >&5
1768    mv -f conftest.er1 conftest.err
1769  fi
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && {
1772	 test -z "$ac_c_werror_flag" ||
1773	 test ! -s conftest.err
1774       } && test -s conftest.$ac_objext; then :
1775  ac_retval=0
1776else
1777  $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780	ac_retval=1
1781fi
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783  as_fn_set_status $ac_retval
1784
1785} # ac_fn_c_try_compile
1786
1787# ac_fn_c_try_cpp LINENO
1788# ----------------------
1789# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_c_try_cpp ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  if { { ac_try="$ac_cpp conftest.$ac_ext"
1794case "(($ac_try" in
1795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796  *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1801  ac_status=$?
1802  if test -s conftest.err; then
1803    grep -v '^ *+' conftest.err >conftest.er1
1804    cat conftest.er1 >&5
1805    mv -f conftest.er1 conftest.err
1806  fi
1807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808  test $ac_status = 0; } > conftest.i && {
1809	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1810	 test ! -s conftest.err
1811       }; then :
1812  ac_retval=0
1813else
1814  $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817    ac_retval=1
1818fi
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820  as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_cpp
1823
1824# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1825# -------------------------------------------------------
1826# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1827# the include files in INCLUDES and setting the cache variable VAR
1828# accordingly.
1829ac_fn_c_check_header_mongrel ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  if eval \${$3+:} false; then :
1833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
1835if eval \${$3+:} false; then :
1836  $as_echo_n "(cached) " >&6
1837fi
1838eval ac_res=\$$3
1839	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840$as_echo "$ac_res" >&6; }
1841else
1842  # Is the header compilable?
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1844$as_echo_n "checking $2 usability... " >&6; }
1845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h.  */
1847$4
1848#include <$2>
1849_ACEOF
1850if ac_fn_c_try_compile "$LINENO"; then :
1851  ac_header_compiler=yes
1852else
1853  ac_header_compiler=no
1854fi
1855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1857$as_echo "$ac_header_compiler" >&6; }
1858
1859# Is the header present?
1860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1861$as_echo_n "checking $2 presence... " >&6; }
1862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h.  */
1864#include <$2>
1865_ACEOF
1866if ac_fn_c_try_cpp "$LINENO"; then :
1867  ac_header_preproc=yes
1868else
1869  ac_header_preproc=no
1870fi
1871rm -f conftest.err conftest.i conftest.$ac_ext
1872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1873$as_echo "$ac_header_preproc" >&6; }
1874
1875# So?  What about this header?
1876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1877  yes:no: )
1878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1879$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1880    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882    ;;
1883  no:yes:* )
1884    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1885$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1886    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1887$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1888    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1889$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1890    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1891$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1893$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894( $as_echo "## ---------------------------------------------------------------------- ##
1895## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1896## ---------------------------------------------------------------------- ##"
1897     ) | sed "s/^/$as_me: WARNING:     /" >&2
1898    ;;
1899esac
1900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901$as_echo_n "checking for $2... " >&6; }
1902if eval \${$3+:} false; then :
1903  $as_echo_n "(cached) " >&6
1904else
1905  eval "$3=\$ac_header_compiler"
1906fi
1907eval ac_res=\$$3
1908	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910fi
1911  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913} # ac_fn_c_check_header_mongrel
1914
1915# ac_fn_c_try_run LINENO
1916# ----------------------
1917# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1918# that executables *can* be run.
1919ac_fn_c_try_run ()
1920{
1921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922  if { { ac_try="$ac_link"
1923case "(($ac_try" in
1924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925  *) ac_try_echo=$ac_try;;
1926esac
1927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928$as_echo "$ac_try_echo"; } >&5
1929  (eval "$ac_link") 2>&5
1930  ac_status=$?
1931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1933  { { case "(($ac_try" in
1934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935  *) ac_try_echo=$ac_try;;
1936esac
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
1939  (eval "$ac_try") 2>&5
1940  ac_status=$?
1941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942  test $ac_status = 0; }; }; then :
1943  ac_retval=0
1944else
1945  $as_echo "$as_me: program exited with status $ac_status" >&5
1946       $as_echo "$as_me: failed program was:" >&5
1947sed 's/^/| /' conftest.$ac_ext >&5
1948
1949       ac_retval=$ac_status
1950fi
1951  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953  as_fn_set_status $ac_retval
1954
1955} # ac_fn_c_try_run
1956
1957# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1958# -------------------------------------------------------
1959# Tests whether HEADER exists and can be compiled using the include files in
1960# INCLUDES, setting the cache variable VAR accordingly.
1961ac_fn_c_check_header_compile ()
1962{
1963  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965$as_echo_n "checking for $2... " >&6; }
1966if eval \${$3+:} false; then :
1967  $as_echo_n "(cached) " >&6
1968else
1969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971$4
1972#include <$2>
1973_ACEOF
1974if ac_fn_c_try_compile "$LINENO"; then :
1975  eval "$3=yes"
1976else
1977  eval "$3=no"
1978fi
1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980fi
1981eval ac_res=\$$3
1982	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986} # ac_fn_c_check_header_compile
1987
1988# ac_fn_c_try_link LINENO
1989# -----------------------
1990# Try to link conftest.$ac_ext, and return whether this succeeded.
1991ac_fn_c_try_link ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  rm -f conftest.$ac_objext conftest$ac_exeext
1995  if { { ac_try="$ac_link"
1996case "(($ac_try" in
1997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998  *) ac_try_echo=$ac_try;;
1999esac
2000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001$as_echo "$ac_try_echo"; } >&5
2002  (eval "$ac_link") 2>conftest.err
2003  ac_status=$?
2004  if test -s conftest.err; then
2005    grep -v '^ *+' conftest.err >conftest.er1
2006    cat conftest.er1 >&5
2007    mv -f conftest.er1 conftest.err
2008  fi
2009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010  test $ac_status = 0; } && {
2011	 test -z "$ac_c_werror_flag" ||
2012	 test ! -s conftest.err
2013       } && test -s conftest$ac_exeext && {
2014	 test "$cross_compiling" = yes ||
2015	 $as_test_x conftest$ac_exeext
2016       }; then :
2017  ac_retval=0
2018else
2019  $as_echo "$as_me: failed program was:" >&5
2020sed 's/^/| /' conftest.$ac_ext >&5
2021
2022	ac_retval=1
2023fi
2024  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2025  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2026  # interfere with the next link command; also delete a directory that is
2027  # left behind by Apple's compiler.  We do this before executing the actions.
2028  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030  as_fn_set_status $ac_retval
2031
2032} # ac_fn_c_try_link
2033
2034# ac_fn_c_check_func LINENO FUNC VAR
2035# ----------------------------------
2036# Tests whether FUNC exists, setting the cache variable VAR accordingly
2037ac_fn_c_check_func ()
2038{
2039  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041$as_echo_n "checking for $2... " >&6; }
2042if eval \${$3+:} false; then :
2043  $as_echo_n "(cached) " >&6
2044else
2045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046/* end confdefs.h.  */
2047/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2048   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2049#define $2 innocuous_$2
2050
2051/* System header to define __stub macros and hopefully few prototypes,
2052    which can conflict with char $2 (); below.
2053    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2054    <limits.h> exists even on freestanding compilers.  */
2055
2056#ifdef __STDC__
2057# include <limits.h>
2058#else
2059# include <assert.h>
2060#endif
2061
2062#undef $2
2063
2064/* Override any GCC internal prototype to avoid an error.
2065   Use char because int might match the return type of a GCC
2066   builtin and then its argument prototype would still apply.  */
2067#ifdef __cplusplus
2068extern "C"
2069#endif
2070char $2 ();
2071/* The GNU C library defines this for functions which it implements
2072    to always fail with ENOSYS.  Some functions are actually named
2073    something starting with __ and the normal name is an alias.  */
2074#if defined __stub_$2 || defined __stub___$2
2075choke me
2076#endif
2077
2078int
2079main ()
2080{
2081return $2 ();
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_link "$LINENO"; then :
2087  eval "$3=yes"
2088else
2089  eval "$3=no"
2090fi
2091rm -f core conftest.err conftest.$ac_objext \
2092    conftest$ac_exeext conftest.$ac_ext
2093fi
2094eval ac_res=\$$3
2095	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096$as_echo "$ac_res" >&6; }
2097  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098
2099} # ac_fn_c_check_func
2100
2101# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2102# ---------------------------------------------
2103# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2104# accordingly.
2105ac_fn_c_check_decl ()
2106{
2107  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108  as_decl_name=`echo $2|sed 's/ *(.*//'`
2109  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2111$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2112if eval \${$3+:} false; then :
2113  $as_echo_n "(cached) " >&6
2114else
2115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h.  */
2117$4
2118int
2119main ()
2120{
2121#ifndef $as_decl_name
2122#ifdef __cplusplus
2123  (void) $as_decl_use;
2124#else
2125  (void) $as_decl_name;
2126#endif
2127#endif
2128
2129  ;
2130  return 0;
2131}
2132_ACEOF
2133if ac_fn_c_try_compile "$LINENO"; then :
2134  eval "$3=yes"
2135else
2136  eval "$3=no"
2137fi
2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139fi
2140eval ac_res=\$$3
2141	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142$as_echo "$ac_res" >&6; }
2143  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144
2145} # ac_fn_c_check_decl
2146
2147# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2148# -------------------------------------------
2149# Tests whether TYPE exists after having included INCLUDES, setting cache
2150# variable VAR accordingly.
2151ac_fn_c_check_type ()
2152{
2153  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155$as_echo_n "checking for $2... " >&6; }
2156if eval \${$3+:} false; then :
2157  $as_echo_n "(cached) " >&6
2158else
2159  eval "$3=no"
2160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h.  */
2162$4
2163int
2164main ()
2165{
2166if (sizeof ($2))
2167	 return 0;
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175$4
2176int
2177main ()
2178{
2179if (sizeof (($2)))
2180	    return 0;
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186
2187else
2188  eval "$3=yes"
2189fi
2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191fi
2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193fi
2194eval ac_res=\$$3
2195	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196$as_echo "$ac_res" >&6; }
2197  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198
2199} # ac_fn_c_check_type
2200
2201# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2202# ----------------------------------------------------
2203# Tries to find if the field MEMBER exists in type AGGR, after including
2204# INCLUDES, setting cache variable VAR accordingly.
2205ac_fn_c_check_member ()
2206{
2207  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2209$as_echo_n "checking for $2.$3... " >&6; }
2210if eval \${$4+:} false; then :
2211  $as_echo_n "(cached) " >&6
2212else
2213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h.  */
2215$5
2216int
2217main ()
2218{
2219static $2 ac_aggr;
2220if (ac_aggr.$3)
2221return 0;
2222  ;
2223  return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227  eval "$4=yes"
2228else
2229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h.  */
2231$5
2232int
2233main ()
2234{
2235static $2 ac_aggr;
2236if (sizeof ac_aggr.$3)
2237return 0;
2238  ;
2239  return 0;
2240}
2241_ACEOF
2242if ac_fn_c_try_compile "$LINENO"; then :
2243  eval "$4=yes"
2244else
2245  eval "$4=no"
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248fi
2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250fi
2251eval ac_res=\$$4
2252	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253$as_echo "$ac_res" >&6; }
2254  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255
2256} # ac_fn_c_check_member
2257cat >config.log <<_ACEOF
2258This file contains any messages produced by compilers while
2259running configure, to aid debugging if configure makes a mistake.
2260
2261It was created by xdm $as_me 1.1.11, which was
2262generated by GNU Autoconf 2.68.  Invocation command line was
2263
2264  $ $0 $@
2265
2266_ACEOF
2267exec 5>>config.log
2268{
2269cat <<_ASUNAME
2270## --------- ##
2271## Platform. ##
2272## --------- ##
2273
2274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2282
2283/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2284/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2287/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2288/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2289/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2290
2291_ASUNAME
2292
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296  IFS=$as_save_IFS
2297  test -z "$as_dir" && as_dir=.
2298    $as_echo "PATH: $as_dir"
2299  done
2300IFS=$as_save_IFS
2301
2302} >&5
2303
2304cat >&5 <<_ACEOF
2305
2306
2307## ----------- ##
2308## Core tests. ##
2309## ----------- ##
2310
2311_ACEOF
2312
2313
2314# Keep a trace of the command line.
2315# Strip out --no-create and --no-recursion so they do not pile up.
2316# Strip out --silent because we don't want to record it for future runs.
2317# Also quote any args containing shell meta-characters.
2318# Make two passes to allow for proper duplicate-argument suppression.
2319ac_configure_args=
2320ac_configure_args0=
2321ac_configure_args1=
2322ac_must_keep_next=false
2323for ac_pass in 1 2
2324do
2325  for ac_arg
2326  do
2327    case $ac_arg in
2328    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330    | -silent | --silent | --silen | --sile | --sil)
2331      continue ;;
2332    *\'*)
2333      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334    esac
2335    case $ac_pass in
2336    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337    2)
2338      as_fn_append ac_configure_args1 " '$ac_arg'"
2339      if test $ac_must_keep_next = true; then
2340	ac_must_keep_next=false # Got value, back to normal.
2341      else
2342	case $ac_arg in
2343	  *=* | --config-cache | -C | -disable-* | --disable-* \
2344	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346	  | -with-* | --with-* | -without-* | --without-* | --x)
2347	    case "$ac_configure_args0 " in
2348	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349	    esac
2350	    ;;
2351	  -* ) ac_must_keep_next=true ;;
2352	esac
2353      fi
2354      as_fn_append ac_configure_args " '$ac_arg'"
2355      ;;
2356    esac
2357  done
2358done
2359{ ac_configure_args0=; unset ac_configure_args0;}
2360{ ac_configure_args1=; unset ac_configure_args1;}
2361
2362# When interrupted or exit'd, cleanup temporary files, and complete
2363# config.log.  We remove comments because anyway the quotes in there
2364# would cause problems or look ugly.
2365# WARNING: Use '\'' to represent an apostrophe within the trap.
2366# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367trap 'exit_status=$?
2368  # Save into config.log some information that might help in debugging.
2369  {
2370    echo
2371
2372    $as_echo "## ---------------- ##
2373## Cache variables. ##
2374## ---------------- ##"
2375    echo
2376    # The following way of writing the cache mishandles newlines in values,
2377(
2378  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379    eval ac_val=\$$ac_var
2380    case $ac_val in #(
2381    *${as_nl}*)
2382      case $ac_var in #(
2383      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385      esac
2386      case $ac_var in #(
2387      _ | IFS | as_nl) ;; #(
2388      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389      *) { eval $ac_var=; unset $ac_var;} ;;
2390      esac ;;
2391    esac
2392  done
2393  (set) 2>&1 |
2394    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395    *${as_nl}ac_space=\ *)
2396      sed -n \
2397	"s/'\''/'\''\\\\'\'''\''/g;
2398	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399      ;; #(
2400    *)
2401      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402      ;;
2403    esac |
2404    sort
2405)
2406    echo
2407
2408    $as_echo "## ----------------- ##
2409## Output variables. ##
2410## ----------------- ##"
2411    echo
2412    for ac_var in $ac_subst_vars
2413    do
2414      eval ac_val=\$$ac_var
2415      case $ac_val in
2416      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417      esac
2418      $as_echo "$ac_var='\''$ac_val'\''"
2419    done | sort
2420    echo
2421
2422    if test -n "$ac_subst_files"; then
2423      $as_echo "## ------------------- ##
2424## File substitutions. ##
2425## ------------------- ##"
2426      echo
2427      for ac_var in $ac_subst_files
2428      do
2429	eval ac_val=\$$ac_var
2430	case $ac_val in
2431	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432	esac
2433	$as_echo "$ac_var='\''$ac_val'\''"
2434      done | sort
2435      echo
2436    fi
2437
2438    if test -s confdefs.h; then
2439      $as_echo "## ----------- ##
2440## confdefs.h. ##
2441## ----------- ##"
2442      echo
2443      cat confdefs.h
2444      echo
2445    fi
2446    test "$ac_signal" != 0 &&
2447      $as_echo "$as_me: caught signal $ac_signal"
2448    $as_echo "$as_me: exit $exit_status"
2449  } >&5
2450  rm -f core *.core core.conftest.* &&
2451    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452    exit $exit_status
2453' 0
2454for ac_signal in 1 2 13 15; do
2455  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456done
2457ac_signal=0
2458
2459# confdefs.h avoids OS command line length limits that DEFS can exceed.
2460rm -f -r conftest* confdefs.h
2461
2462$as_echo "/* confdefs.h */" > confdefs.h
2463
2464# Predefined preprocessor variables.
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_NAME "$PACKAGE_NAME"
2468_ACEOF
2469
2470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472_ACEOF
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_VERSION "$PACKAGE_VERSION"
2476_ACEOF
2477
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_STRING "$PACKAGE_STRING"
2480_ACEOF
2481
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484_ACEOF
2485
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_URL "$PACKAGE_URL"
2488_ACEOF
2489
2490
2491# Let the site file select an alternate cache file if it wants to.
2492# Prefer an explicitly selected file to automatically selected ones.
2493ac_site_file1=NONE
2494ac_site_file2=NONE
2495if test -n "$CONFIG_SITE"; then
2496  # We do not want a PATH search for config.site.
2497  case $CONFIG_SITE in #((
2498    -*)  ac_site_file1=./$CONFIG_SITE;;
2499    */*) ac_site_file1=$CONFIG_SITE;;
2500    *)   ac_site_file1=./$CONFIG_SITE;;
2501  esac
2502elif test "x$prefix" != xNONE; then
2503  ac_site_file1=$prefix/share/config.site
2504  ac_site_file2=$prefix/etc/config.site
2505else
2506  ac_site_file1=$ac_default_prefix/share/config.site
2507  ac_site_file2=$ac_default_prefix/etc/config.site
2508fi
2509for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510do
2511  test "x$ac_site_file" = xNONE && continue
2512  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515    sed 's/^/| /' "$ac_site_file" >&5
2516    . "$ac_site_file" \
2517      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519as_fn_error $? "failed to load site script $ac_site_file
2520See \`config.log' for more details" "$LINENO" 5; }
2521  fi
2522done
2523
2524if test -r "$cache_file"; then
2525  # Some versions of bash will fail to source /dev/null (special files
2526  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2527  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529$as_echo "$as_me: loading cache $cache_file" >&6;}
2530    case $cache_file in
2531      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532      *)                      . "./$cache_file";;
2533    esac
2534  fi
2535else
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537$as_echo "$as_me: creating cache $cache_file" >&6;}
2538  >$cache_file
2539fi
2540
2541# Check that the precious variables saved in the cache have kept the same
2542# value.
2543ac_cache_corrupted=false
2544for ac_var in $ac_precious_vars; do
2545  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546  eval ac_new_set=\$ac_env_${ac_var}_set
2547  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548  eval ac_new_val=\$ac_env_${ac_var}_value
2549  case $ac_old_set,$ac_new_set in
2550    set,)
2551      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553      ac_cache_corrupted=: ;;
2554    ,set)
2555      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557      ac_cache_corrupted=: ;;
2558    ,);;
2559    *)
2560      if test "x$ac_old_val" != "x$ac_new_val"; then
2561	# differences in whitespace do not lead to failure.
2562	ac_old_val_w=`echo x $ac_old_val`
2563	ac_new_val_w=`echo x $ac_new_val`
2564	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567	  ac_cache_corrupted=:
2568	else
2569	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571	  eval $ac_var=\$ac_old_val
2572	fi
2573	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2574$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2575	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2576$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2577      fi;;
2578  esac
2579  # Pass precious variables to config.status.
2580  if test "$ac_new_set" = set; then
2581    case $ac_new_val in
2582    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583    *) ac_arg=$ac_var=$ac_new_val ;;
2584    esac
2585    case " $ac_configure_args " in
2586      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2587      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588    esac
2589  fi
2590done
2591if $ac_cache_corrupted; then
2592  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2597fi
2598## -------------------- ##
2599## Main body of script. ##
2600## -------------------- ##
2601
2602ac_ext=c
2603ac_cpp='$CPP $CPPFLAGS'
2604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607
2608
2609ac_ext=c
2610ac_cpp='$CPP $CPPFLAGS'
2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614if test -n "$ac_tool_prefix"; then
2615  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2616set dummy ${ac_tool_prefix}gcc; ac_word=$2
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618$as_echo_n "checking for $ac_word... " >&6; }
2619if ${ac_cv_prog_CC+:} false; then :
2620  $as_echo_n "(cached) " >&6
2621else
2622  if test -n "$CC"; then
2623  ac_cv_prog_CC="$CC" # Let the user override the test.
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628  IFS=$as_save_IFS
2629  test -z "$as_dir" && as_dir=.
2630    for ac_exec_ext in '' $ac_executable_extensions; do
2631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634    break 2
2635  fi
2636done
2637  done
2638IFS=$as_save_IFS
2639
2640fi
2641fi
2642CC=$ac_cv_prog_CC
2643if test -n "$CC"; then
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645$as_echo "$CC" >&6; }
2646else
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648$as_echo "no" >&6; }
2649fi
2650
2651
2652fi
2653if test -z "$ac_cv_prog_CC"; then
2654  ac_ct_CC=$CC
2655  # Extract the first word of "gcc", so it can be a program name with args.
2656set dummy gcc; ac_word=$2
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658$as_echo_n "checking for $ac_word... " >&6; }
2659if ${ac_cv_prog_ac_ct_CC+:} false; then :
2660  $as_echo_n "(cached) " >&6
2661else
2662  if test -n "$ac_ct_CC"; then
2663  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668  IFS=$as_save_IFS
2669  test -z "$as_dir" && as_dir=.
2670    for ac_exec_ext in '' $ac_executable_extensions; do
2671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672    ac_cv_prog_ac_ct_CC="gcc"
2673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674    break 2
2675  fi
2676done
2677  done
2678IFS=$as_save_IFS
2679
2680fi
2681fi
2682ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683if test -n "$ac_ct_CC"; then
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2685$as_echo "$ac_ct_CC" >&6; }
2686else
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688$as_echo "no" >&6; }
2689fi
2690
2691  if test "x$ac_ct_CC" = x; then
2692    CC=""
2693  else
2694    case $cross_compiling:$ac_tool_warned in
2695yes:)
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698ac_tool_warned=yes ;;
2699esac
2700    CC=$ac_ct_CC
2701  fi
2702else
2703  CC="$ac_cv_prog_CC"
2704fi
2705
2706if test -z "$CC"; then
2707          if test -n "$ac_tool_prefix"; then
2708    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2709set dummy ${ac_tool_prefix}cc; ac_word=$2
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711$as_echo_n "checking for $ac_word... " >&6; }
2712if ${ac_cv_prog_CC+:} false; then :
2713  $as_echo_n "(cached) " >&6
2714else
2715  if test -n "$CC"; then
2716  ac_cv_prog_CC="$CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723    for ac_exec_ext in '' $ac_executable_extensions; do
2724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725    ac_cv_prog_CC="${ac_tool_prefix}cc"
2726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727    break 2
2728  fi
2729done
2730  done
2731IFS=$as_save_IFS
2732
2733fi
2734fi
2735CC=$ac_cv_prog_CC
2736if test -n "$CC"; then
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738$as_echo "$CC" >&6; }
2739else
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741$as_echo "no" >&6; }
2742fi
2743
2744
2745  fi
2746fi
2747if test -z "$CC"; then
2748  # Extract the first word of "cc", so it can be a program name with args.
2749set dummy cc; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if ${ac_cv_prog_CC+:} false; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  if test -n "$CC"; then
2756  ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
2758  ac_prog_rejected=no
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762  IFS=$as_save_IFS
2763  test -z "$as_dir" && as_dir=.
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2767       ac_prog_rejected=yes
2768       continue
2769     fi
2770    ac_cv_prog_CC="cc"
2771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772    break 2
2773  fi
2774done
2775  done
2776IFS=$as_save_IFS
2777
2778if test $ac_prog_rejected = yes; then
2779  # We found a bogon in the path, so make sure we never use it.
2780  set dummy $ac_cv_prog_CC
2781  shift
2782  if test $# != 0; then
2783    # We chose a different compiler from the bogus one.
2784    # However, it has the same basename, so the bogon will be chosen
2785    # first if we set CC to just the basename; use the full file name.
2786    shift
2787    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2788  fi
2789fi
2790fi
2791fi
2792CC=$ac_cv_prog_CC
2793if test -n "$CC"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795$as_echo "$CC" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802fi
2803if test -z "$CC"; then
2804  if test -n "$ac_tool_prefix"; then
2805  for ac_prog in cl.exe
2806  do
2807    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
2811if ${ac_cv_prog_CC+:} false; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  if test -n "$CC"; then
2815  ac_cv_prog_CC="$CC" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820  IFS=$as_save_IFS
2821  test -z "$as_dir" && as_dir=.
2822    for ac_exec_ext in '' $ac_executable_extensions; do
2823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826    break 2
2827  fi
2828done
2829  done
2830IFS=$as_save_IFS
2831
2832fi
2833fi
2834CC=$ac_cv_prog_CC
2835if test -n "$CC"; then
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837$as_echo "$CC" >&6; }
2838else
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840$as_echo "no" >&6; }
2841fi
2842
2843
2844    test -n "$CC" && break
2845  done
2846fi
2847if test -z "$CC"; then
2848  ac_ct_CC=$CC
2849  for ac_prog in cl.exe
2850do
2851  # Extract the first word of "$ac_prog", so it can be a program name with args.
2852set dummy $ac_prog; ac_word=$2
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
2855if ${ac_cv_prog_ac_ct_CC+:} false; then :
2856  $as_echo_n "(cached) " >&6
2857else
2858  if test -n "$ac_ct_CC"; then
2859  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864  IFS=$as_save_IFS
2865  test -z "$as_dir" && as_dir=.
2866    for ac_exec_ext in '' $ac_executable_extensions; do
2867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868    ac_cv_prog_ac_ct_CC="$ac_prog"
2869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870    break 2
2871  fi
2872done
2873  done
2874IFS=$as_save_IFS
2875
2876fi
2877fi
2878ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879if test -n "$ac_ct_CC"; then
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2881$as_echo "$ac_ct_CC" >&6; }
2882else
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885fi
2886
2887
2888  test -n "$ac_ct_CC" && break
2889done
2890
2891  if test "x$ac_ct_CC" = x; then
2892    CC=""
2893  else
2894    case $cross_compiling:$ac_tool_warned in
2895yes:)
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898ac_tool_warned=yes ;;
2899esac
2900    CC=$ac_ct_CC
2901  fi
2902fi
2903
2904fi
2905
2906
2907test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909as_fn_error $? "no acceptable C compiler found in \$PATH
2910See \`config.log' for more details" "$LINENO" 5; }
2911
2912# Provide some information about the compiler.
2913$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2914set X $ac_compile
2915ac_compiler=$2
2916for ac_option in --version -v -V -qversion; do
2917  { { ac_try="$ac_compiler $ac_option >&5"
2918case "(($ac_try" in
2919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920  *) ac_try_echo=$ac_try;;
2921esac
2922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923$as_echo "$ac_try_echo"; } >&5
2924  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2925  ac_status=$?
2926  if test -s conftest.err; then
2927    sed '10a\
2928... rest of stderr output deleted ...
2929         10q' conftest.err >conftest.er1
2930    cat conftest.er1 >&5
2931  fi
2932  rm -f conftest.er1 conftest.err
2933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934  test $ac_status = 0; }
2935done
2936
2937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h.  */
2939
2940int
2941main ()
2942{
2943
2944  ;
2945  return 0;
2946}
2947_ACEOF
2948ac_clean_files_save=$ac_clean_files
2949ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2950# Try to create an executable without -o first, disregard a.out.
2951# It will help us diagnose broken compilers, and finding out an intuition
2952# of exeext.
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2954$as_echo_n "checking whether the C compiler works... " >&6; }
2955ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956
2957# The possible output files:
2958ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2959
2960ac_rmfiles=
2961for ac_file in $ac_files
2962do
2963  case $ac_file in
2964    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2965    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2966  esac
2967done
2968rm -f $ac_rmfiles
2969
2970if { { ac_try="$ac_link_default"
2971case "(($ac_try" in
2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973  *) ac_try_echo=$ac_try;;
2974esac
2975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976$as_echo "$ac_try_echo"; } >&5
2977  (eval "$ac_link_default") 2>&5
2978  ac_status=$?
2979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980  test $ac_status = 0; }; then :
2981  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2984# so that the user can short-circuit this test for compilers unknown to
2985# Autoconf.
2986for ac_file in $ac_files ''
2987do
2988  test -f "$ac_file" || continue
2989  case $ac_file in
2990    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2991	;;
2992    [ab].out )
2993	# We found the default executable, but exeext='' is most
2994	# certainly right.
2995	break;;
2996    *.* )
2997	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2998	then :; else
2999	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000	fi
3001	# We set ac_cv_exeext here because the later test for it is not
3002	# safe: cross compilers may not add the suffix if given an `-o'
3003	# argument, so we may need to know it at that point already.
3004	# Even if this section looks crufty: it has the advantage of
3005	# actually working.
3006	break;;
3007    * )
3008	break;;
3009  esac
3010done
3011test "$ac_cv_exeext" = no && ac_cv_exeext=
3012
3013else
3014  ac_file=''
3015fi
3016if test -z "$ac_file"; then :
3017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018$as_echo "no" >&6; }
3019$as_echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024as_fn_error 77 "C compiler cannot create executables
3025See \`config.log' for more details" "$LINENO" 5; }
3026else
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028$as_echo "yes" >&6; }
3029fi
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031$as_echo_n "checking for C compiler default output file name... " >&6; }
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3033$as_echo "$ac_file" >&6; }
3034ac_exeext=$ac_cv_exeext
3035
3036rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3037ac_clean_files=$ac_clean_files_save
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3039$as_echo_n "checking for suffix of executables... " >&6; }
3040if { { ac_try="$ac_link"
3041case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046$as_echo "$ac_try_echo"; } >&5
3047  (eval "$ac_link") 2>&5
3048  ac_status=$?
3049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050  test $ac_status = 0; }; then :
3051  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3052# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3053# work properly (i.e., refer to `conftest.exe'), while it won't with
3054# `rm'.
3055for ac_file in conftest.exe conftest conftest.*; do
3056  test -f "$ac_file" || continue
3057  case $ac_file in
3058    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3059    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060	  break;;
3061    * ) break;;
3062  esac
3063done
3064else
3065  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3068See \`config.log' for more details" "$LINENO" 5; }
3069fi
3070rm -f conftest conftest$ac_cv_exeext
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3072$as_echo "$ac_cv_exeext" >&6; }
3073
3074rm -f conftest.$ac_ext
3075EXEEXT=$ac_cv_exeext
3076ac_exeext=$EXEEXT
3077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h.  */
3079#include <stdio.h>
3080int
3081main ()
3082{
3083FILE *f = fopen ("conftest.out", "w");
3084 return ferror (f) || fclose (f) != 0;
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090ac_clean_files="$ac_clean_files conftest.out"
3091# Check that the compiler produces executables we can run.  If not, either
3092# the compiler is broken, or we cross compile.
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3094$as_echo_n "checking whether we are cross compiling... " >&6; }
3095if test "$cross_compiling" != yes; then
3096  { { ac_try="$ac_link"
3097case "(($ac_try" in
3098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099  *) ac_try_echo=$ac_try;;
3100esac
3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102$as_echo "$ac_try_echo"; } >&5
3103  (eval "$ac_link") 2>&5
3104  ac_status=$?
3105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106  test $ac_status = 0; }
3107  if { ac_try='./conftest$ac_cv_exeext'
3108  { { case "(($ac_try" in
3109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110  *) ac_try_echo=$ac_try;;
3111esac
3112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113$as_echo "$ac_try_echo"; } >&5
3114  (eval "$ac_try") 2>&5
3115  ac_status=$?
3116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117  test $ac_status = 0; }; }; then
3118    cross_compiling=no
3119  else
3120    if test "$cross_compiling" = maybe; then
3121	cross_compiling=yes
3122    else
3123	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125as_fn_error $? "cannot run C compiled programs.
3126If you meant to cross compile, use \`--host'.
3127See \`config.log' for more details" "$LINENO" 5; }
3128    fi
3129  fi
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3132$as_echo "$cross_compiling" >&6; }
3133
3134rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3135ac_clean_files=$ac_clean_files_save
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3137$as_echo_n "checking for suffix of object files... " >&6; }
3138if ${ac_cv_objext+:} false; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142/* end confdefs.h.  */
3143
3144int
3145main ()
3146{
3147
3148  ;
3149  return 0;
3150}
3151_ACEOF
3152rm -f conftest.o conftest.obj
3153if { { ac_try="$ac_compile"
3154case "(($ac_try" in
3155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156  *) ac_try_echo=$ac_try;;
3157esac
3158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159$as_echo "$ac_try_echo"; } >&5
3160  (eval "$ac_compile") 2>&5
3161  ac_status=$?
3162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163  test $ac_status = 0; }; then :
3164  for ac_file in conftest.o conftest.obj conftest.*; do
3165  test -f "$ac_file" || continue;
3166  case $ac_file in
3167    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3168    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3169       break;;
3170  esac
3171done
3172else
3173  $as_echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178as_fn_error $? "cannot compute suffix of object files: cannot compile
3179See \`config.log' for more details" "$LINENO" 5; }
3180fi
3181rm -f conftest.$ac_cv_objext conftest.$ac_ext
3182fi
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3184$as_echo "$ac_cv_objext" >&6; }
3185OBJEXT=$ac_cv_objext
3186ac_objext=$OBJEXT
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3188$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3189if ${ac_cv_c_compiler_gnu+:} false; then :
3190  $as_echo_n "(cached) " >&6
3191else
3192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198#ifndef __GNUC__
3199       choke me
3200#endif
3201
3202  ;
3203  return 0;
3204}
3205_ACEOF
3206if ac_fn_c_try_compile "$LINENO"; then :
3207  ac_compiler_gnu=yes
3208else
3209  ac_compiler_gnu=no
3210fi
3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212ac_cv_c_compiler_gnu=$ac_compiler_gnu
3213
3214fi
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3216$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3217if test $ac_compiler_gnu = yes; then
3218  GCC=yes
3219else
3220  GCC=
3221fi
3222ac_test_CFLAGS=${CFLAGS+set}
3223ac_save_CFLAGS=$CFLAGS
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3225$as_echo_n "checking whether $CC accepts -g... " >&6; }
3226if ${ac_cv_prog_cc_g+:} false; then :
3227  $as_echo_n "(cached) " >&6
3228else
3229  ac_save_c_werror_flag=$ac_c_werror_flag
3230   ac_c_werror_flag=yes
3231   ac_cv_prog_cc_g=no
3232   CFLAGS="-g"
3233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h.  */
3235
3236int
3237main ()
3238{
3239
3240  ;
3241  return 0;
3242}
3243_ACEOF
3244if ac_fn_c_try_compile "$LINENO"; then :
3245  ac_cv_prog_cc_g=yes
3246else
3247  CFLAGS=""
3248      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259if ac_fn_c_try_compile "$LINENO"; then :
3260
3261else
3262  ac_c_werror_flag=$ac_save_c_werror_flag
3263	 CFLAGS="-g"
3264	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265/* end confdefs.h.  */
3266
3267int
3268main ()
3269{
3270
3271  ;
3272  return 0;
3273}
3274_ACEOF
3275if ac_fn_c_try_compile "$LINENO"; then :
3276  ac_cv_prog_cc_g=yes
3277fi
3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279fi
3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281fi
3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283   ac_c_werror_flag=$ac_save_c_werror_flag
3284fi
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3286$as_echo "$ac_cv_prog_cc_g" >&6; }
3287if test "$ac_test_CFLAGS" = set; then
3288  CFLAGS=$ac_save_CFLAGS
3289elif test $ac_cv_prog_cc_g = yes; then
3290  if test "$GCC" = yes; then
3291    CFLAGS="-g -O2"
3292  else
3293    CFLAGS="-g"
3294  fi
3295else
3296  if test "$GCC" = yes; then
3297    CFLAGS="-O2"
3298  else
3299    CFLAGS=
3300  fi
3301fi
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3303$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3304if ${ac_cv_prog_cc_c89+:} false; then :
3305  $as_echo_n "(cached) " >&6
3306else
3307  ac_cv_prog_cc_c89=no
3308ac_save_CC=$CC
3309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310/* end confdefs.h.  */
3311#include <stdarg.h>
3312#include <stdio.h>
3313#include <sys/types.h>
3314#include <sys/stat.h>
3315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3316struct buf { int x; };
3317FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318static char *e (p, i)
3319     char **p;
3320     int i;
3321{
3322  return p[i];
3323}
3324static char *f (char * (*g) (char **, int), char **p, ...)
3325{
3326  char *s;
3327  va_list v;
3328  va_start (v,p);
3329  s = g (p, va_arg (v,int));
3330  va_end (v);
3331  return s;
3332}
3333
3334/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3335   function prototypes and stuff, but not '\xHH' hex character constants.
3336   These don't provoke an error unfortunately, instead are silently treated
3337   as 'x'.  The following induces an error, until -std is added to get
3338   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3339   array size at least.  It's necessary to write '\x00'==0 to get something
3340   that's true only with -std.  */
3341int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342
3343/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344   inside strings and character constants.  */
3345#define FOO(x) 'x'
3346int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3347
3348int test (int i, double x);
3349struct s1 {int (*f) (int a);};
3350struct s2 {int (*f) (double a);};
3351int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352int argc;
3353char **argv;
3354int
3355main ()
3356{
3357return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3358  ;
3359  return 0;
3360}
3361_ACEOF
3362for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364do
3365  CC="$ac_save_CC $ac_arg"
3366  if ac_fn_c_try_compile "$LINENO"; then :
3367  ac_cv_prog_cc_c89=$ac_arg
3368fi
3369rm -f core conftest.err conftest.$ac_objext
3370  test "x$ac_cv_prog_cc_c89" != "xno" && break
3371done
3372rm -f conftest.$ac_ext
3373CC=$ac_save_CC
3374
3375fi
3376# AC_CACHE_VAL
3377case "x$ac_cv_prog_cc_c89" in
3378  x)
3379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3380$as_echo "none needed" >&6; } ;;
3381  xno)
3382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383$as_echo "unsupported" >&6; } ;;
3384  *)
3385    CC="$CC $ac_cv_prog_cc_c89"
3386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3387$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3388esac
3389if test "x$ac_cv_prog_cc_c89" != xno; then :
3390
3391fi
3392
3393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3406$as_echo_n "checking how to run the C preprocessor... " >&6; }
3407# On Suns, sometimes $CPP names a directory.
3408if test -n "$CPP" && test -d "$CPP"; then
3409  CPP=
3410fi
3411if test -z "$CPP"; then
3412  if ${ac_cv_prog_CPP+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415      # Double quotes because CPP needs to be expanded
3416    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3417    do
3418      ac_preproc_ok=false
3419for ac_c_preproc_warn_flag in '' yes
3420do
3421  # Use a header file that comes with gcc, so configuring glibc
3422  # with a fresh cross-compiler works.
3423  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424  # <limits.h> exists even on freestanding compilers.
3425  # On the NeXT, cc -E runs the code through the compiler's parser,
3426  # not just through cpp. "Syntax error" is here to catch this case.
3427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428/* end confdefs.h.  */
3429#ifdef __STDC__
3430# include <limits.h>
3431#else
3432# include <assert.h>
3433#endif
3434		     Syntax error
3435_ACEOF
3436if ac_fn_c_try_cpp "$LINENO"; then :
3437
3438else
3439  # Broken: fails on valid input.
3440continue
3441fi
3442rm -f conftest.err conftest.i conftest.$ac_ext
3443
3444  # OK, works on sane cases.  Now check whether nonexistent headers
3445  # can be detected and how.
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448#include <ac_nonexistent.h>
3449_ACEOF
3450if ac_fn_c_try_cpp "$LINENO"; then :
3451  # Broken: success on invalid input.
3452continue
3453else
3454  # Passes both tests.
3455ac_preproc_ok=:
3456break
3457fi
3458rm -f conftest.err conftest.i conftest.$ac_ext
3459
3460done
3461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3462rm -f conftest.i conftest.err conftest.$ac_ext
3463if $ac_preproc_ok; then :
3464  break
3465fi
3466
3467    done
3468    ac_cv_prog_CPP=$CPP
3469
3470fi
3471  CPP=$ac_cv_prog_CPP
3472else
3473  ac_cv_prog_CPP=$CPP
3474fi
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3476$as_echo "$CPP" >&6; }
3477ac_preproc_ok=false
3478for ac_c_preproc_warn_flag in '' yes
3479do
3480  # Use a header file that comes with gcc, so configuring glibc
3481  # with a fresh cross-compiler works.
3482  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483  # <limits.h> exists even on freestanding compilers.
3484  # On the NeXT, cc -E runs the code through the compiler's parser,
3485  # not just through cpp. "Syntax error" is here to catch this case.
3486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488#ifdef __STDC__
3489# include <limits.h>
3490#else
3491# include <assert.h>
3492#endif
3493		     Syntax error
3494_ACEOF
3495if ac_fn_c_try_cpp "$LINENO"; then :
3496
3497else
3498  # Broken: fails on valid input.
3499continue
3500fi
3501rm -f conftest.err conftest.i conftest.$ac_ext
3502
3503  # OK, works on sane cases.  Now check whether nonexistent headers
3504  # can be detected and how.
3505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506/* end confdefs.h.  */
3507#include <ac_nonexistent.h>
3508_ACEOF
3509if ac_fn_c_try_cpp "$LINENO"; then :
3510  # Broken: success on invalid input.
3511continue
3512else
3513  # Passes both tests.
3514ac_preproc_ok=:
3515break
3516fi
3517rm -f conftest.err conftest.i conftest.$ac_ext
3518
3519done
3520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521rm -f conftest.i conftest.err conftest.$ac_ext
3522if $ac_preproc_ok; then :
3523
3524else
3525  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3528See \`config.log' for more details" "$LINENO" 5; }
3529fi
3530
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3539$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3540if ${ac_cv_path_GREP+:} false; then :
3541  $as_echo_n "(cached) " >&6
3542else
3543  if test -z "$GREP"; then
3544  ac_path_GREP_found=false
3545  # Loop through the user's path and test for each of PROGNAME-LIST
3546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3548do
3549  IFS=$as_save_IFS
3550  test -z "$as_dir" && as_dir=.
3551    for ac_prog in grep ggrep; do
3552    for ac_exec_ext in '' $ac_executable_extensions; do
3553      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3554      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3555# Check for GNU ac_path_GREP and select it if it is found.
3556  # Check for GNU $ac_path_GREP
3557case `"$ac_path_GREP" --version 2>&1` in
3558*GNU*)
3559  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3560*)
3561  ac_count=0
3562  $as_echo_n 0123456789 >"conftest.in"
3563  while :
3564  do
3565    cat "conftest.in" "conftest.in" >"conftest.tmp"
3566    mv "conftest.tmp" "conftest.in"
3567    cp "conftest.in" "conftest.nl"
3568    $as_echo 'GREP' >> "conftest.nl"
3569    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571    as_fn_arith $ac_count + 1 && ac_count=$as_val
3572    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3573      # Best one so far, save it but keep looking for a better one
3574      ac_cv_path_GREP="$ac_path_GREP"
3575      ac_path_GREP_max=$ac_count
3576    fi
3577    # 10*(2^10) chars as input seems more than enough
3578    test $ac_count -gt 10 && break
3579  done
3580  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3581esac
3582
3583      $ac_path_GREP_found && break 3
3584    done
3585  done
3586  done
3587IFS=$as_save_IFS
3588  if test -z "$ac_cv_path_GREP"; then
3589    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3590  fi
3591else
3592  ac_cv_path_GREP=$GREP
3593fi
3594
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3597$as_echo "$ac_cv_path_GREP" >&6; }
3598 GREP="$ac_cv_path_GREP"
3599
3600
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3602$as_echo_n "checking for egrep... " >&6; }
3603if ${ac_cv_path_EGREP+:} false; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3607   then ac_cv_path_EGREP="$GREP -E"
3608   else
3609     if test -z "$EGREP"; then
3610  ac_path_EGREP_found=false
3611  # Loop through the user's path and test for each of PROGNAME-LIST
3612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614do
3615  IFS=$as_save_IFS
3616  test -z "$as_dir" && as_dir=.
3617    for ac_prog in egrep; do
3618    for ac_exec_ext in '' $ac_executable_extensions; do
3619      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3620      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3621# Check for GNU ac_path_EGREP and select it if it is found.
3622  # Check for GNU $ac_path_EGREP
3623case `"$ac_path_EGREP" --version 2>&1` in
3624*GNU*)
3625  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3626*)
3627  ac_count=0
3628  $as_echo_n 0123456789 >"conftest.in"
3629  while :
3630  do
3631    cat "conftest.in" "conftest.in" >"conftest.tmp"
3632    mv "conftest.tmp" "conftest.in"
3633    cp "conftest.in" "conftest.nl"
3634    $as_echo 'EGREP' >> "conftest.nl"
3635    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637    as_fn_arith $ac_count + 1 && ac_count=$as_val
3638    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3639      # Best one so far, save it but keep looking for a better one
3640      ac_cv_path_EGREP="$ac_path_EGREP"
3641      ac_path_EGREP_max=$ac_count
3642    fi
3643    # 10*(2^10) chars as input seems more than enough
3644    test $ac_count -gt 10 && break
3645  done
3646  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647esac
3648
3649      $ac_path_EGREP_found && break 3
3650    done
3651  done
3652  done
3653IFS=$as_save_IFS
3654  if test -z "$ac_cv_path_EGREP"; then
3655    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3656  fi
3657else
3658  ac_cv_path_EGREP=$EGREP
3659fi
3660
3661   fi
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3664$as_echo "$ac_cv_path_EGREP" >&6; }
3665 EGREP="$ac_cv_path_EGREP"
3666
3667
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3669$as_echo_n "checking for ANSI C header files... " >&6; }
3670if ${ac_cv_header_stdc+:} false; then :
3671  $as_echo_n "(cached) " >&6
3672else
3673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674/* end confdefs.h.  */
3675#include <stdlib.h>
3676#include <stdarg.h>
3677#include <string.h>
3678#include <float.h>
3679
3680int
3681main ()
3682{
3683
3684  ;
3685  return 0;
3686}
3687_ACEOF
3688if ac_fn_c_try_compile "$LINENO"; then :
3689  ac_cv_header_stdc=yes
3690else
3691  ac_cv_header_stdc=no
3692fi
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694
3695if test $ac_cv_header_stdc = yes; then
3696  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699#include <string.h>
3700
3701_ACEOF
3702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703  $EGREP "memchr" >/dev/null 2>&1; then :
3704
3705else
3706  ac_cv_header_stdc=no
3707fi
3708rm -f conftest*
3709
3710fi
3711
3712if test $ac_cv_header_stdc = yes; then
3713  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715/* end confdefs.h.  */
3716#include <stdlib.h>
3717
3718_ACEOF
3719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3720  $EGREP "free" >/dev/null 2>&1; then :
3721
3722else
3723  ac_cv_header_stdc=no
3724fi
3725rm -f conftest*
3726
3727fi
3728
3729if test $ac_cv_header_stdc = yes; then
3730  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3731  if test "$cross_compiling" = yes; then :
3732  :
3733else
3734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736#include <ctype.h>
3737#include <stdlib.h>
3738#if ((' ' & 0x0FF) == 0x020)
3739# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3740# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3741#else
3742# define ISLOWER(c) \
3743		   (('a' <= (c) && (c) <= 'i') \
3744		     || ('j' <= (c) && (c) <= 'r') \
3745		     || ('s' <= (c) && (c) <= 'z'))
3746# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3747#endif
3748
3749#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3750int
3751main ()
3752{
3753  int i;
3754  for (i = 0; i < 256; i++)
3755    if (XOR (islower (i), ISLOWER (i))
3756	|| toupper (i) != TOUPPER (i))
3757      return 2;
3758  return 0;
3759}
3760_ACEOF
3761if ac_fn_c_try_run "$LINENO"; then :
3762
3763else
3764  ac_cv_header_stdc=no
3765fi
3766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3767  conftest.$ac_objext conftest.beam conftest.$ac_ext
3768fi
3769
3770fi
3771fi
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3773$as_echo "$ac_cv_header_stdc" >&6; }
3774if test $ac_cv_header_stdc = yes; then
3775
3776$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3777
3778fi
3779
3780# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3781for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3782		  inttypes.h stdint.h unistd.h
3783do :
3784  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3786"
3787if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3788  cat >>confdefs.h <<_ACEOF
3789#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3790_ACEOF
3791
3792fi
3793
3794done
3795
3796
3797
3798  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3799if test "x$ac_cv_header_minix_config_h" = xyes; then :
3800  MINIX=yes
3801else
3802  MINIX=
3803fi
3804
3805
3806  if test "$MINIX" = yes; then
3807
3808$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3809
3810
3811$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3812
3813
3814$as_echo "#define _MINIX 1" >>confdefs.h
3815
3816  fi
3817
3818
3819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3820$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3821if ${ac_cv_safe_to_define___extensions__+:} false; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826
3827#	  define __EXTENSIONS__ 1
3828	  $ac_includes_default
3829int
3830main ()
3831{
3832
3833  ;
3834  return 0;
3835}
3836_ACEOF
3837if ac_fn_c_try_compile "$LINENO"; then :
3838  ac_cv_safe_to_define___extensions__=yes
3839else
3840  ac_cv_safe_to_define___extensions__=no
3841fi
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843fi
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3845$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3846  test $ac_cv_safe_to_define___extensions__ = yes &&
3847    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3848
3849  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3850
3851  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3852
3853  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3854
3855  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3856
3857
3858
3859
3860ac_config_headers="$ac_config_headers config.h"
3861
3862
3863# Initialize Automake
3864am__api_version='1.11'
3865
3866ac_aux_dir=
3867for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3868  if test -f "$ac_dir/install-sh"; then
3869    ac_aux_dir=$ac_dir
3870    ac_install_sh="$ac_aux_dir/install-sh -c"
3871    break
3872  elif test -f "$ac_dir/install.sh"; then
3873    ac_aux_dir=$ac_dir
3874    ac_install_sh="$ac_aux_dir/install.sh -c"
3875    break
3876  elif test -f "$ac_dir/shtool"; then
3877    ac_aux_dir=$ac_dir
3878    ac_install_sh="$ac_aux_dir/shtool install -c"
3879    break
3880  fi
3881done
3882if test -z "$ac_aux_dir"; then
3883  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3884fi
3885
3886# These three variables are undocumented and unsupported,
3887# and are intended to be withdrawn in a future Autoconf release.
3888# They can cause serious problems if a builder's source tree is in a directory
3889# whose full name contains unusual characters.
3890ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3891ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3892ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3893
3894
3895# Find a good install program.  We prefer a C program (faster),
3896# so one script is as good as another.  But avoid the broken or
3897# incompatible versions:
3898# SysV /etc/install, /usr/sbin/install
3899# SunOS /usr/etc/install
3900# IRIX /sbin/install
3901# AIX /bin/install
3902# AmigaOS /C/install, which installs bootblocks on floppy discs
3903# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906# OS/2's system install, which has a completely different semantic
3907# ./install, which can be erroneously created by make from ./install.sh.
3908# Reject install programs that cannot install multiple files.
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3910$as_echo_n "checking for a BSD-compatible install... " >&6; }
3911if test -z "$INSTALL"; then
3912if ${ac_cv_path_install+:} false; then :
3913  $as_echo_n "(cached) " >&6
3914else
3915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918  IFS=$as_save_IFS
3919  test -z "$as_dir" && as_dir=.
3920    # Account for people who put trailing slashes in PATH elements.
3921case $as_dir/ in #((
3922  ./ | .// | /[cC]/* | \
3923  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3924  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3925  /usr/ucb/* ) ;;
3926  *)
3927    # OSF1 and SCO ODT 3.0 have their own names for install.
3928    # Don't use installbsd from OSF since it installs stuff as root
3929    # by default.
3930    for ac_prog in ginstall scoinst install; do
3931      for ac_exec_ext in '' $ac_executable_extensions; do
3932	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3933	  if test $ac_prog = install &&
3934	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3935	    # AIX install.  It has an incompatible calling convention.
3936	    :
3937	  elif test $ac_prog = install &&
3938	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3939	    # program-specific install script used by HP pwplus--don't use.
3940	    :
3941	  else
3942	    rm -rf conftest.one conftest.two conftest.dir
3943	    echo one > conftest.one
3944	    echo two > conftest.two
3945	    mkdir conftest.dir
3946	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3947	      test -s conftest.one && test -s conftest.two &&
3948	      test -s conftest.dir/conftest.one &&
3949	      test -s conftest.dir/conftest.two
3950	    then
3951	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3952	      break 3
3953	    fi
3954	  fi
3955	fi
3956      done
3957    done
3958    ;;
3959esac
3960
3961  done
3962IFS=$as_save_IFS
3963
3964rm -rf conftest.one conftest.two conftest.dir
3965
3966fi
3967  if test "${ac_cv_path_install+set}" = set; then
3968    INSTALL=$ac_cv_path_install
3969  else
3970    # As a last resort, use the slow shell script.  Don't cache a
3971    # value for INSTALL within a source directory, because that will
3972    # break other packages using the cache if that directory is
3973    # removed, or if the value is a relative name.
3974    INSTALL=$ac_install_sh
3975  fi
3976fi
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3978$as_echo "$INSTALL" >&6; }
3979
3980# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3981# It thinks the first close brace ends the variable substitution.
3982test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3983
3984test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3985
3986test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3987
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3989$as_echo_n "checking whether build environment is sane... " >&6; }
3990# Just in case
3991sleep 1
3992echo timestamp > conftest.file
3993# Reject unsafe characters in $srcdir or the absolute working directory
3994# name.  Accept space and tab only in the latter.
3995am_lf='
3996'
3997case `pwd` in
3998  *[\\\"\#\$\&\'\`$am_lf]*)
3999    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4000esac
4001case $srcdir in
4002  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4003    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4004esac
4005
4006# Do `set' in a subshell so we don't clobber the current shell's
4007# arguments.  Must try -L first in case configure is actually a
4008# symlink; some systems play weird games with the mod time of symlinks
4009# (eg FreeBSD returns the mod time of the symlink's containing
4010# directory).
4011if (
4012   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4013   if test "$*" = "X"; then
4014      # -L didn't work.
4015      set X `ls -t "$srcdir/configure" conftest.file`
4016   fi
4017   rm -f conftest.file
4018   if test "$*" != "X $srcdir/configure conftest.file" \
4019      && test "$*" != "X conftest.file $srcdir/configure"; then
4020
4021      # If neither matched, then we have a broken ls.  This can happen
4022      # if, for instance, CONFIG_SHELL is bash and it inherits a
4023      # broken ls alias from the environment.  This has actually
4024      # happened.  Such a system could not be considered "sane".
4025      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4026alias in your environment" "$LINENO" 5
4027   fi
4028
4029   test "$2" = conftest.file
4030   )
4031then
4032   # Ok.
4033   :
4034else
4035   as_fn_error $? "newly created file is older than distributed files!
4036Check your system clock" "$LINENO" 5
4037fi
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4039$as_echo "yes" >&6; }
4040test "$program_prefix" != NONE &&
4041  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4042# Use a double $ so make ignores it.
4043test "$program_suffix" != NONE &&
4044  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4045# Double any \ or $.
4046# By default was `s,x,x', remove it if useless.
4047ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4048program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4049
4050# expand $ac_aux_dir to an absolute path
4051am_aux_dir=`cd $ac_aux_dir && pwd`
4052
4053if test x"${MISSING+set}" != xset; then
4054  case $am_aux_dir in
4055  *\ * | *\	*)
4056    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4057  *)
4058    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4059  esac
4060fi
4061# Use eval to expand $SHELL
4062if eval "$MISSING --run true"; then
4063  am_missing_run="$MISSING --run "
4064else
4065  am_missing_run=
4066  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4067$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4068fi
4069
4070if test x"${install_sh}" != xset; then
4071  case $am_aux_dir in
4072  *\ * | *\	*)
4073    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4074  *)
4075    install_sh="\${SHELL} $am_aux_dir/install-sh"
4076  esac
4077fi
4078
4079# Installed binaries are usually stripped using `strip' when the user
4080# run `make install-strip'.  However `strip' might not be the right
4081# tool to use in cross-compilation environments, therefore Automake
4082# will honor the `STRIP' environment variable to overrule this program.
4083if test "$cross_compiling" != no; then
4084  if test -n "$ac_tool_prefix"; then
4085  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4086set dummy ${ac_tool_prefix}strip; ac_word=$2
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088$as_echo_n "checking for $ac_word... " >&6; }
4089if ${ac_cv_prog_STRIP+:} false; then :
4090  $as_echo_n "(cached) " >&6
4091else
4092  if test -n "$STRIP"; then
4093  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4094else
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098  IFS=$as_save_IFS
4099  test -z "$as_dir" && as_dir=.
4100    for ac_exec_ext in '' $ac_executable_extensions; do
4101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104    break 2
4105  fi
4106done
4107  done
4108IFS=$as_save_IFS
4109
4110fi
4111fi
4112STRIP=$ac_cv_prog_STRIP
4113if test -n "$STRIP"; then
4114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4115$as_echo "$STRIP" >&6; }
4116else
4117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
4119fi
4120
4121
4122fi
4123if test -z "$ac_cv_prog_STRIP"; then
4124  ac_ct_STRIP=$STRIP
4125  # Extract the first word of "strip", so it can be a program name with args.
4126set dummy strip; ac_word=$2
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128$as_echo_n "checking for $ac_word... " >&6; }
4129if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4130  $as_echo_n "(cached) " >&6
4131else
4132  if test -n "$ac_ct_STRIP"; then
4133  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4134else
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138  IFS=$as_save_IFS
4139  test -z "$as_dir" && as_dir=.
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142    ac_cv_prog_ac_ct_STRIP="strip"
4143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144    break 2
4145  fi
4146done
4147  done
4148IFS=$as_save_IFS
4149
4150fi
4151fi
4152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4153if test -n "$ac_ct_STRIP"; then
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4155$as_echo "$ac_ct_STRIP" >&6; }
4156else
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158$as_echo "no" >&6; }
4159fi
4160
4161  if test "x$ac_ct_STRIP" = x; then
4162    STRIP=":"
4163  else
4164    case $cross_compiling:$ac_tool_warned in
4165yes:)
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168ac_tool_warned=yes ;;
4169esac
4170    STRIP=$ac_ct_STRIP
4171  fi
4172else
4173  STRIP="$ac_cv_prog_STRIP"
4174fi
4175
4176fi
4177INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4178
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4180$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4181if test -z "$MKDIR_P"; then
4182  if ${ac_cv_path_mkdir+:} false; then :
4183  $as_echo_n "(cached) " >&6
4184else
4185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4187do
4188  IFS=$as_save_IFS
4189  test -z "$as_dir" && as_dir=.
4190    for ac_prog in mkdir gmkdir; do
4191	 for ac_exec_ext in '' $ac_executable_extensions; do
4192	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4193	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4194	     'mkdir (GNU coreutils) '* | \
4195	     'mkdir (coreutils) '* | \
4196	     'mkdir (fileutils) '4.1*)
4197	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4198	       break 3;;
4199	   esac
4200	 done
4201       done
4202  done
4203IFS=$as_save_IFS
4204
4205fi
4206
4207  test -d ./--version && rmdir ./--version
4208  if test "${ac_cv_path_mkdir+set}" = set; then
4209    MKDIR_P="$ac_cv_path_mkdir -p"
4210  else
4211    # As a last resort, use the slow shell script.  Don't cache a
4212    # value for MKDIR_P within a source directory, because that will
4213    # break other packages using the cache if that directory is
4214    # removed, or if the value is a relative name.
4215    MKDIR_P="$ac_install_sh -d"
4216  fi
4217fi
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4219$as_echo "$MKDIR_P" >&6; }
4220
4221mkdir_p="$MKDIR_P"
4222case $mkdir_p in
4223  [\\/$]* | ?:[\\/]*) ;;
4224  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4225esac
4226
4227for ac_prog in gawk mawk nawk awk
4228do
4229  # Extract the first word of "$ac_prog", so it can be a program name with args.
4230set dummy $ac_prog; ac_word=$2
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232$as_echo_n "checking for $ac_word... " >&6; }
4233if ${ac_cv_prog_AWK+:} false; then :
4234  $as_echo_n "(cached) " >&6
4235else
4236  if test -n "$AWK"; then
4237  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4238else
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242  IFS=$as_save_IFS
4243  test -z "$as_dir" && as_dir=.
4244    for ac_exec_ext in '' $ac_executable_extensions; do
4245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246    ac_cv_prog_AWK="$ac_prog"
4247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248    break 2
4249  fi
4250done
4251  done
4252IFS=$as_save_IFS
4253
4254fi
4255fi
4256AWK=$ac_cv_prog_AWK
4257if test -n "$AWK"; then
4258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4259$as_echo "$AWK" >&6; }
4260else
4261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262$as_echo "no" >&6; }
4263fi
4264
4265
4266  test -n "$AWK" && break
4267done
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4270$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4271set x ${MAKE-make}
4272ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4273if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276  cat >conftest.make <<\_ACEOF
4277SHELL = /bin/sh
4278all:
4279	@echo '@@@%%%=$(MAKE)=@@@%%%'
4280_ACEOF
4281# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4282case `${MAKE-make} -f conftest.make 2>/dev/null` in
4283  *@@@%%%=?*=@@@%%%*)
4284    eval ac_cv_prog_make_${ac_make}_set=yes;;
4285  *)
4286    eval ac_cv_prog_make_${ac_make}_set=no;;
4287esac
4288rm -f conftest.make
4289fi
4290if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292$as_echo "yes" >&6; }
4293  SET_MAKE=
4294else
4295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
4297  SET_MAKE="MAKE=${MAKE-make}"
4298fi
4299
4300rm -rf .tst 2>/dev/null
4301mkdir .tst 2>/dev/null
4302if test -d .tst; then
4303  am__leading_dot=.
4304else
4305  am__leading_dot=_
4306fi
4307rmdir .tst 2>/dev/null
4308
4309DEPDIR="${am__leading_dot}deps"
4310
4311ac_config_commands="$ac_config_commands depfiles"
4312
4313
4314am_make=${MAKE-make}
4315cat > confinc << 'END'
4316am__doit:
4317	@echo this is the am__doit target
4318.PHONY: am__doit
4319END
4320# If we don't find an include directive, just comment out the code.
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4322$as_echo_n "checking for style of include used by $am_make... " >&6; }
4323am__include="#"
4324am__quote=
4325_am_result=none
4326# First try GNU make style include.
4327echo "include confinc" > confmf
4328# Ignore all kinds of additional output from `make'.
4329case `$am_make -s -f confmf 2> /dev/null` in #(
4330*the\ am__doit\ target*)
4331  am__include=include
4332  am__quote=
4333  _am_result=GNU
4334  ;;
4335esac
4336# Now try BSD make style include.
4337if test "$am__include" = "#"; then
4338   echo '.include "confinc"' > confmf
4339   case `$am_make -s -f confmf 2> /dev/null` in #(
4340   *the\ am__doit\ target*)
4341     am__include=.include
4342     am__quote="\""
4343     _am_result=BSD
4344     ;;
4345   esac
4346fi
4347
4348
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4350$as_echo "$_am_result" >&6; }
4351rm -f confinc confmf
4352
4353# Check whether --enable-dependency-tracking was given.
4354if test "${enable_dependency_tracking+set}" = set; then :
4355  enableval=$enable_dependency_tracking;
4356fi
4357
4358if test "x$enable_dependency_tracking" != xno; then
4359  am_depcomp="$ac_aux_dir/depcomp"
4360  AMDEPBACKSLASH='\'
4361fi
4362 if test "x$enable_dependency_tracking" != xno; then
4363  AMDEP_TRUE=
4364  AMDEP_FALSE='#'
4365else
4366  AMDEP_TRUE='#'
4367  AMDEP_FALSE=
4368fi
4369
4370
4371if test "`cd $srcdir && pwd`" != "`pwd`"; then
4372  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4373  # is not polluted with repeated "-I."
4374  am__isrc=' -I$(srcdir)'
4375  # test to see if srcdir already configured
4376  if test -f $srcdir/config.status; then
4377    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4378  fi
4379fi
4380
4381# test whether we have cygpath
4382if test -z "$CYGPATH_W"; then
4383  if (cygpath --version) >/dev/null 2>/dev/null; then
4384    CYGPATH_W='cygpath -w'
4385  else
4386    CYGPATH_W=echo
4387  fi
4388fi
4389
4390
4391# Define the identity of the package.
4392 PACKAGE='xdm'
4393 VERSION='1.1.11'
4394
4395
4396cat >>confdefs.h <<_ACEOF
4397#define PACKAGE "$PACKAGE"
4398_ACEOF
4399
4400
4401cat >>confdefs.h <<_ACEOF
4402#define VERSION "$VERSION"
4403_ACEOF
4404
4405# Some tools Automake needs.
4406
4407ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4408
4409
4410AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4411
4412
4413AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4414
4415
4416AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4417
4418
4419MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4420
4421# We need awk for the "check" target.  The system "awk" is bad on
4422# some platforms.
4423# Always define AMTAR for backward compatibility.
4424
4425AMTAR=${AMTAR-"${am_missing_run}tar"}
4426
4427am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4428
4429
4430
4431
4432depcc="$CC"   am_compiler_list=
4433
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4435$as_echo_n "checking dependency style of $depcc... " >&6; }
4436if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4437  $as_echo_n "(cached) " >&6
4438else
4439  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4440  # We make a subdir and do the tests there.  Otherwise we can end up
4441  # making bogus files that we don't know about and never remove.  For
4442  # instance it was reported that on HP-UX the gcc test will end up
4443  # making a dummy file named `D' -- because `-MD' means `put the output
4444  # in D'.
4445  mkdir conftest.dir
4446  # Copy depcomp to subdir because otherwise we won't find it if we're
4447  # using a relative directory.
4448  cp "$am_depcomp" conftest.dir
4449  cd conftest.dir
4450  # We will build objects and dependencies in a subdirectory because
4451  # it helps to detect inapplicable dependency modes.  For instance
4452  # both Tru64's cc and ICC support -MD to output dependencies as a
4453  # side effect of compilation, but ICC will put the dependencies in
4454  # the current directory while Tru64 will put them in the object
4455  # directory.
4456  mkdir sub
4457
4458  am_cv_CC_dependencies_compiler_type=none
4459  if test "$am_compiler_list" = ""; then
4460     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4461  fi
4462  am__universal=false
4463  case " $depcc " in #(
4464     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4465     esac
4466
4467  for depmode in $am_compiler_list; do
4468    # Setup a source with many dependencies, because some compilers
4469    # like to wrap large dependency lists on column 80 (with \), and
4470    # we should not choose a depcomp mode which is confused by this.
4471    #
4472    # We need to recreate these files for each test, as the compiler may
4473    # overwrite some of them when testing with obscure command lines.
4474    # This happens at least with the AIX C compiler.
4475    : > sub/conftest.c
4476    for i in 1 2 3 4 5 6; do
4477      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4478      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4479      # Solaris 8's {/usr,}/bin/sh.
4480      touch sub/conftst$i.h
4481    done
4482    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4483
4484    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4485    # mode.  It turns out that the SunPro C++ compiler does not properly
4486    # handle `-M -o', and we need to detect this.  Also, some Intel
4487    # versions had trouble with output in subdirs
4488    am__obj=sub/conftest.${OBJEXT-o}
4489    am__minus_obj="-o $am__obj"
4490    case $depmode in
4491    gcc)
4492      # This depmode causes a compiler race in universal mode.
4493      test "$am__universal" = false || continue
4494      ;;
4495    nosideeffect)
4496      # after this tag, mechanisms are not by side-effect, so they'll
4497      # only be used when explicitly requested
4498      if test "x$enable_dependency_tracking" = xyes; then
4499	continue
4500      else
4501	break
4502      fi
4503      ;;
4504    msvisualcpp | msvcmsys)
4505      # This compiler won't grok `-c -o', but also, the minuso test has
4506      # not run yet.  These depmodes are late enough in the game, and
4507      # so weak that their functioning should not be impacted.
4508      am__obj=conftest.${OBJEXT-o}
4509      am__minus_obj=
4510      ;;
4511    none) break ;;
4512    esac
4513    if depmode=$depmode \
4514       source=sub/conftest.c object=$am__obj \
4515       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4516       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4517         >/dev/null 2>conftest.err &&
4518       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4519       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4520       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4521       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4522      # icc doesn't choke on unknown options, it will just issue warnings
4523      # or remarks (even with -Werror).  So we grep stderr for any message
4524      # that says an option was ignored or not supported.
4525      # When given -MP, icc 7.0 and 7.1 complain thusly:
4526      #   icc: Command line warning: ignoring option '-M'; no argument required
4527      # The diagnosis changed in icc 8.0:
4528      #   icc: Command line remark: option '-MP' not supported
4529      if (grep 'ignoring option' conftest.err ||
4530          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4531        am_cv_CC_dependencies_compiler_type=$depmode
4532        break
4533      fi
4534    fi
4535  done
4536
4537  cd ..
4538  rm -rf conftest.dir
4539else
4540  am_cv_CC_dependencies_compiler_type=none
4541fi
4542
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4545$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4546CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4547
4548 if
4549  test "x$enable_dependency_tracking" != xno \
4550  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4551  am__fastdepCC_TRUE=
4552  am__fastdepCC_FALSE='#'
4553else
4554  am__fastdepCC_TRUE='#'
4555  am__fastdepCC_FALSE=
4556fi
4557
4558
4559
4560
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4562$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4563    # Check whether --enable-maintainer-mode was given.
4564if test "${enable_maintainer_mode+set}" = set; then :
4565  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4566else
4567  USE_MAINTAINER_MODE=no
4568fi
4569
4570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4571$as_echo "$USE_MAINTAINER_MODE" >&6; }
4572   if test $USE_MAINTAINER_MODE = yes; then
4573  MAINTAINER_MODE_TRUE=
4574  MAINTAINER_MODE_FALSE='#'
4575else
4576  MAINTAINER_MODE_TRUE='#'
4577  MAINTAINER_MODE_FALSE=
4578fi
4579
4580  MAINT=$MAINTAINER_MODE_TRUE
4581
4582
4583
4584# Initialize libtool
4585# Check whether --enable-static was given.
4586if test "${enable_static+set}" = set; then :
4587  enableval=$enable_static; p=${PACKAGE-default}
4588    case $enableval in
4589    yes) enable_static=yes ;;
4590    no) enable_static=no ;;
4591    *)
4592     enable_static=no
4593      # Look at the argument we got.  We use all the common list separators.
4594      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4595      for pkg in $enableval; do
4596	IFS="$lt_save_ifs"
4597	if test "X$pkg" = "X$p"; then
4598	  enable_static=yes
4599	fi
4600      done
4601      IFS="$lt_save_ifs"
4602      ;;
4603    esac
4604else
4605  enable_static=no
4606fi
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616enable_dlopen=yes
4617
4618
4619
4620case `pwd` in
4621  *\ * | *\	*)
4622    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4623$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4624esac
4625
4626
4627
4628macro_version='2.4'
4629macro_revision='1.3293'
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643ltmain="$ac_aux_dir/ltmain.sh"
4644
4645# Make sure we can run config.sub.
4646$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4647  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4648
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4650$as_echo_n "checking build system type... " >&6; }
4651if ${ac_cv_build+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  ac_build_alias=$build_alias
4655test "x$ac_build_alias" = x &&
4656  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4657test "x$ac_build_alias" = x &&
4658  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4659ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4660  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4661
4662fi
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4664$as_echo "$ac_cv_build" >&6; }
4665case $ac_cv_build in
4666*-*-*) ;;
4667*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4668esac
4669build=$ac_cv_build
4670ac_save_IFS=$IFS; IFS='-'
4671set x $ac_cv_build
4672shift
4673build_cpu=$1
4674build_vendor=$2
4675shift; shift
4676# Remember, the first character of IFS is used to create $*,
4677# except with old shells:
4678build_os=$*
4679IFS=$ac_save_IFS
4680case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4681
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4684$as_echo_n "checking host system type... " >&6; }
4685if ${ac_cv_host+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  if test "x$host_alias" = x; then
4689  ac_cv_host=$ac_cv_build
4690else
4691  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4692    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4693fi
4694
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4697$as_echo "$ac_cv_host" >&6; }
4698case $ac_cv_host in
4699*-*-*) ;;
4700*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4701esac
4702host=$ac_cv_host
4703ac_save_IFS=$IFS; IFS='-'
4704set x $ac_cv_host
4705shift
4706host_cpu=$1
4707host_vendor=$2
4708shift; shift
4709# Remember, the first character of IFS is used to create $*,
4710# except with old shells:
4711host_os=$*
4712IFS=$ac_save_IFS
4713case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4714
4715
4716# Backslashify metacharacters that are still active within
4717# double-quoted strings.
4718sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4719
4720# Same as above, but do not quote variable references.
4721double_quote_subst='s/\(["`\\]\)/\\\1/g'
4722
4723# Sed substitution to delay expansion of an escaped shell variable in a
4724# double_quote_subst'ed string.
4725delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4726
4727# Sed substitution to delay expansion of an escaped single quote.
4728delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4729
4730# Sed substitution to avoid accidental globbing in evaled expressions
4731no_glob_subst='s/\*/\\\*/g'
4732
4733ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4734ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4735ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4736
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4738$as_echo_n "checking how to print strings... " >&6; }
4739# Test print first, because it will be a builtin if present.
4740if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4741   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4742  ECHO='print -r --'
4743elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4744  ECHO='printf %s\n'
4745else
4746  # Use this function as a fallback that always works.
4747  func_fallback_echo ()
4748  {
4749    eval 'cat <<_LTECHO_EOF
4750$1
4751_LTECHO_EOF'
4752  }
4753  ECHO='func_fallback_echo'
4754fi
4755
4756# func_echo_all arg...
4757# Invoke $ECHO with all args, space-separated.
4758func_echo_all ()
4759{
4760    $ECHO ""
4761}
4762
4763case "$ECHO" in
4764  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4765$as_echo "printf" >&6; } ;;
4766  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4767$as_echo "print -r" >&6; } ;;
4768  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4769$as_echo "cat" >&6; } ;;
4770esac
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4786$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4787if ${ac_cv_path_SED+:} false; then :
4788  $as_echo_n "(cached) " >&6
4789else
4790            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4791     for ac_i in 1 2 3 4 5 6 7; do
4792       ac_script="$ac_script$as_nl$ac_script"
4793     done
4794     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4795     { ac_script=; unset ac_script;}
4796     if test -z "$SED"; then
4797  ac_path_SED_found=false
4798  # Loop through the user's path and test for each of PROGNAME-LIST
4799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH
4801do
4802  IFS=$as_save_IFS
4803  test -z "$as_dir" && as_dir=.
4804    for ac_prog in sed gsed; do
4805    for ac_exec_ext in '' $ac_executable_extensions; do
4806      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4807      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4808# Check for GNU ac_path_SED and select it if it is found.
4809  # Check for GNU $ac_path_SED
4810case `"$ac_path_SED" --version 2>&1` in
4811*GNU*)
4812  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4813*)
4814  ac_count=0
4815  $as_echo_n 0123456789 >"conftest.in"
4816  while :
4817  do
4818    cat "conftest.in" "conftest.in" >"conftest.tmp"
4819    mv "conftest.tmp" "conftest.in"
4820    cp "conftest.in" "conftest.nl"
4821    $as_echo '' >> "conftest.nl"
4822    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824    as_fn_arith $ac_count + 1 && ac_count=$as_val
4825    if test $ac_count -gt ${ac_path_SED_max-0}; then
4826      # Best one so far, save it but keep looking for a better one
4827      ac_cv_path_SED="$ac_path_SED"
4828      ac_path_SED_max=$ac_count
4829    fi
4830    # 10*(2^10) chars as input seems more than enough
4831    test $ac_count -gt 10 && break
4832  done
4833  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834esac
4835
4836      $ac_path_SED_found && break 3
4837    done
4838  done
4839  done
4840IFS=$as_save_IFS
4841  if test -z "$ac_cv_path_SED"; then
4842    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4843  fi
4844else
4845  ac_cv_path_SED=$SED
4846fi
4847
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4850$as_echo "$ac_cv_path_SED" >&6; }
4851 SED="$ac_cv_path_SED"
4852  rm -f conftest.sed
4853
4854test -z "$SED" && SED=sed
4855Xsed="$SED -e 1s/^X//"
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4868$as_echo_n "checking for fgrep... " >&6; }
4869if ${ac_cv_path_FGREP+:} false; then :
4870  $as_echo_n "(cached) " >&6
4871else
4872  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4873   then ac_cv_path_FGREP="$GREP -F"
4874   else
4875     if test -z "$FGREP"; then
4876  ac_path_FGREP_found=false
4877  # Loop through the user's path and test for each of PROGNAME-LIST
4878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4880do
4881  IFS=$as_save_IFS
4882  test -z "$as_dir" && as_dir=.
4883    for ac_prog in fgrep; do
4884    for ac_exec_ext in '' $ac_executable_extensions; do
4885      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4886      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4887# Check for GNU ac_path_FGREP and select it if it is found.
4888  # Check for GNU $ac_path_FGREP
4889case `"$ac_path_FGREP" --version 2>&1` in
4890*GNU*)
4891  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4892*)
4893  ac_count=0
4894  $as_echo_n 0123456789 >"conftest.in"
4895  while :
4896  do
4897    cat "conftest.in" "conftest.in" >"conftest.tmp"
4898    mv "conftest.tmp" "conftest.in"
4899    cp "conftest.in" "conftest.nl"
4900    $as_echo 'FGREP' >> "conftest.nl"
4901    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4902    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4903    as_fn_arith $ac_count + 1 && ac_count=$as_val
4904    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4905      # Best one so far, save it but keep looking for a better one
4906      ac_cv_path_FGREP="$ac_path_FGREP"
4907      ac_path_FGREP_max=$ac_count
4908    fi
4909    # 10*(2^10) chars as input seems more than enough
4910    test $ac_count -gt 10 && break
4911  done
4912  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4913esac
4914
4915      $ac_path_FGREP_found && break 3
4916    done
4917  done
4918  done
4919IFS=$as_save_IFS
4920  if test -z "$ac_cv_path_FGREP"; then
4921    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4922  fi
4923else
4924  ac_cv_path_FGREP=$FGREP
4925fi
4926
4927   fi
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4930$as_echo "$ac_cv_path_FGREP" >&6; }
4931 FGREP="$ac_cv_path_FGREP"
4932
4933
4934test -z "$GREP" && GREP=grep
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954# Check whether --with-gnu-ld was given.
4955if test "${with_gnu_ld+set}" = set; then :
4956  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4957else
4958  with_gnu_ld=no
4959fi
4960
4961ac_prog=ld
4962if test "$GCC" = yes; then
4963  # Check if gcc -print-prog-name=ld gives a path.
4964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4965$as_echo_n "checking for ld used by $CC... " >&6; }
4966  case $host in
4967  *-*-mingw*)
4968    # gcc leaves a trailing carriage return which upsets mingw
4969    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4970  *)
4971    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4972  esac
4973  case $ac_prog in
4974    # Accept absolute paths.
4975    [\\/]* | ?:[\\/]*)
4976      re_direlt='/[^/][^/]*/\.\./'
4977      # Canonicalize the pathname of ld
4978      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4979      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4980	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4981      done
4982      test -z "$LD" && LD="$ac_prog"
4983      ;;
4984  "")
4985    # If it fails, then pretend we aren't using GCC.
4986    ac_prog=ld
4987    ;;
4988  *)
4989    # If it is relative, then search for the first ld in PATH.
4990    with_gnu_ld=unknown
4991    ;;
4992  esac
4993elif test "$with_gnu_ld" = yes; then
4994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4995$as_echo_n "checking for GNU ld... " >&6; }
4996else
4997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4998$as_echo_n "checking for non-GNU ld... " >&6; }
4999fi
5000if ${lt_cv_path_LD+:} false; then :
5001  $as_echo_n "(cached) " >&6
5002else
5003  if test -z "$LD"; then
5004  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5005  for ac_dir in $PATH; do
5006    IFS="$lt_save_ifs"
5007    test -z "$ac_dir" && ac_dir=.
5008    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5009      lt_cv_path_LD="$ac_dir/$ac_prog"
5010      # Check to see if the program is GNU ld.  I'd rather use --version,
5011      # but apparently some variants of GNU ld only accept -v.
5012      # Break only if it was the GNU/non-GNU ld that we prefer.
5013      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5014      *GNU* | *'with BFD'*)
5015	test "$with_gnu_ld" != no && break
5016	;;
5017      *)
5018	test "$with_gnu_ld" != yes && break
5019	;;
5020      esac
5021    fi
5022  done
5023  IFS="$lt_save_ifs"
5024else
5025  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5026fi
5027fi
5028
5029LD="$lt_cv_path_LD"
5030if test -n "$LD"; then
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5032$as_echo "$LD" >&6; }
5033else
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5036fi
5037test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5039$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5040if ${lt_cv_prog_gnu_ld+:} false; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5044case `$LD -v 2>&1 </dev/null` in
5045*GNU* | *'with BFD'*)
5046  lt_cv_prog_gnu_ld=yes
5047  ;;
5048*)
5049  lt_cv_prog_gnu_ld=no
5050  ;;
5051esac
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5054$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5055with_gnu_ld=$lt_cv_prog_gnu_ld
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5066$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5067if ${lt_cv_path_NM+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -n "$NM"; then
5071  # Let the user override the test.
5072  lt_cv_path_NM="$NM"
5073else
5074  lt_nm_to_check="${ac_tool_prefix}nm"
5075  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5076    lt_nm_to_check="$lt_nm_to_check nm"
5077  fi
5078  for lt_tmp_nm in $lt_nm_to_check; do
5079    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5080    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5081      IFS="$lt_save_ifs"
5082      test -z "$ac_dir" && ac_dir=.
5083      tmp_nm="$ac_dir/$lt_tmp_nm"
5084      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5085	# Check to see if the nm accepts a BSD-compat flag.
5086	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5087	#   nm: unknown option "B" ignored
5088	# Tru64's nm complains that /dev/null is an invalid object file
5089	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5090	*/dev/null* | *'Invalid file or object type'*)
5091	  lt_cv_path_NM="$tmp_nm -B"
5092	  break
5093	  ;;
5094	*)
5095	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5096	  */dev/null*)
5097	    lt_cv_path_NM="$tmp_nm -p"
5098	    break
5099	    ;;
5100	  *)
5101	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5102	    continue # so that we can try to find one that supports BSD flags
5103	    ;;
5104	  esac
5105	  ;;
5106	esac
5107      fi
5108    done
5109    IFS="$lt_save_ifs"
5110  done
5111  : ${lt_cv_path_NM=no}
5112fi
5113fi
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5115$as_echo "$lt_cv_path_NM" >&6; }
5116if test "$lt_cv_path_NM" != "no"; then
5117  NM="$lt_cv_path_NM"
5118else
5119  # Didn't find any BSD compatible name lister, look for dumpbin.
5120  if test -n "$DUMPBIN"; then :
5121    # Let the user override the test.
5122  else
5123    if test -n "$ac_tool_prefix"; then
5124  for ac_prog in dumpbin "link -dump"
5125  do
5126    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5127set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129$as_echo_n "checking for $ac_word... " >&6; }
5130if ${ac_cv_prog_DUMPBIN+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133  if test -n "$DUMPBIN"; then
5134  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139  IFS=$as_save_IFS
5140  test -z "$as_dir" && as_dir=.
5141    for ac_exec_ext in '' $ac_executable_extensions; do
5142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145    break 2
5146  fi
5147done
5148  done
5149IFS=$as_save_IFS
5150
5151fi
5152fi
5153DUMPBIN=$ac_cv_prog_DUMPBIN
5154if test -n "$DUMPBIN"; then
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5156$as_echo "$DUMPBIN" >&6; }
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161
5162
5163    test -n "$DUMPBIN" && break
5164  done
5165fi
5166if test -z "$DUMPBIN"; then
5167  ac_ct_DUMPBIN=$DUMPBIN
5168  for ac_prog in dumpbin "link -dump"
5169do
5170  # Extract the first word of "$ac_prog", so it can be a program name with args.
5171set dummy $ac_prog; ac_word=$2
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
5174if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5175  $as_echo_n "(cached) " >&6
5176else
5177  if test -n "$ac_ct_DUMPBIN"; then
5178  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183  IFS=$as_save_IFS
5184  test -z "$as_dir" && as_dir=.
5185    for ac_exec_ext in '' $ac_executable_extensions; do
5186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189    break 2
5190  fi
5191done
5192  done
5193IFS=$as_save_IFS
5194
5195fi
5196fi
5197ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5198if test -n "$ac_ct_DUMPBIN"; then
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5200$as_echo "$ac_ct_DUMPBIN" >&6; }
5201else
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5204fi
5205
5206
5207  test -n "$ac_ct_DUMPBIN" && break
5208done
5209
5210  if test "x$ac_ct_DUMPBIN" = x; then
5211    DUMPBIN=":"
5212  else
5213    case $cross_compiling:$ac_tool_warned in
5214yes:)
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217ac_tool_warned=yes ;;
5218esac
5219    DUMPBIN=$ac_ct_DUMPBIN
5220  fi
5221fi
5222
5223    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5224    *COFF*)
5225      DUMPBIN="$DUMPBIN -symbols"
5226      ;;
5227    *)
5228      DUMPBIN=:
5229      ;;
5230    esac
5231  fi
5232
5233  if test "$DUMPBIN" != ":"; then
5234    NM="$DUMPBIN"
5235  fi
5236fi
5237test -z "$NM" && NM=nm
5238
5239
5240
5241
5242
5243
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5245$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5246if ${lt_cv_nm_interface+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  lt_cv_nm_interface="BSD nm"
5250  echo "int some_variable = 0;" > conftest.$ac_ext
5251  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5252  (eval "$ac_compile" 2>conftest.err)
5253  cat conftest.err >&5
5254  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5255  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5256  cat conftest.err >&5
5257  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5258  cat conftest.out >&5
5259  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5260    lt_cv_nm_interface="MS dumpbin"
5261  fi
5262  rm -f conftest*
5263fi
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5265$as_echo "$lt_cv_nm_interface" >&6; }
5266
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5268$as_echo_n "checking whether ln -s works... " >&6; }
5269LN_S=$as_ln_s
5270if test "$LN_S" = "ln -s"; then
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272$as_echo "yes" >&6; }
5273else
5274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5275$as_echo "no, using $LN_S" >&6; }
5276fi
5277
5278# find the maximum length of command line arguments
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5280$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5281if ${lt_cv_sys_max_cmd_len+:} false; then :
5282  $as_echo_n "(cached) " >&6
5283else
5284    i=0
5285  teststring="ABCD"
5286
5287  case $build_os in
5288  msdosdjgpp*)
5289    # On DJGPP, this test can blow up pretty badly due to problems in libc
5290    # (any single argument exceeding 2000 bytes causes a buffer overrun
5291    # during glob expansion).  Even if it were fixed, the result of this
5292    # check would be larger than it should be.
5293    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5294    ;;
5295
5296  gnu*)
5297    # Under GNU Hurd, this test is not required because there is
5298    # no limit to the length of command line arguments.
5299    # Libtool will interpret -1 as no limit whatsoever
5300    lt_cv_sys_max_cmd_len=-1;
5301    ;;
5302
5303  cygwin* | mingw* | cegcc*)
5304    # On Win9x/ME, this test blows up -- it succeeds, but takes
5305    # about 5 minutes as the teststring grows exponentially.
5306    # Worse, since 9x/ME are not pre-emptively multitasking,
5307    # you end up with a "frozen" computer, even though with patience
5308    # the test eventually succeeds (with a max line length of 256k).
5309    # Instead, let's just punt: use the minimum linelength reported by
5310    # all of the supported platforms: 8192 (on NT/2K/XP).
5311    lt_cv_sys_max_cmd_len=8192;
5312    ;;
5313
5314  mint*)
5315    # On MiNT this can take a long time and run out of memory.
5316    lt_cv_sys_max_cmd_len=8192;
5317    ;;
5318
5319  amigaos*)
5320    # On AmigaOS with pdksh, this test takes hours, literally.
5321    # So we just punt and use a minimum line length of 8192.
5322    lt_cv_sys_max_cmd_len=8192;
5323    ;;
5324
5325  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5326    # This has been around since 386BSD, at least.  Likely further.
5327    if test -x /sbin/sysctl; then
5328      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5329    elif test -x /usr/sbin/sysctl; then
5330      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5331    else
5332      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5333    fi
5334    # And add a safety zone
5335    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5336    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5337    ;;
5338
5339  interix*)
5340    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5341    lt_cv_sys_max_cmd_len=196608
5342    ;;
5343
5344  osf*)
5345    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5346    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5347    # nice to cause kernel panics so lets avoid the loop below.
5348    # First set a reasonable default.
5349    lt_cv_sys_max_cmd_len=16384
5350    #
5351    if test -x /sbin/sysconfig; then
5352      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5353        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5354      esac
5355    fi
5356    ;;
5357  sco3.2v5*)
5358    lt_cv_sys_max_cmd_len=102400
5359    ;;
5360  sysv5* | sco5v6* | sysv4.2uw2*)
5361    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5362    if test -n "$kargmax"; then
5363      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5364    else
5365      lt_cv_sys_max_cmd_len=32768
5366    fi
5367    ;;
5368  *)
5369    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5370    if test -n "$lt_cv_sys_max_cmd_len"; then
5371      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5372      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5373    else
5374      # Make teststring a little bigger before we do anything with it.
5375      # a 1K string should be a reasonable start.
5376      for i in 1 2 3 4 5 6 7 8 ; do
5377        teststring=$teststring$teststring
5378      done
5379      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5380      # If test is not a shell built-in, we'll probably end up computing a
5381      # maximum length that is only half of the actual maximum length, but
5382      # we can't tell.
5383      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5384	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5385	      test $i != 17 # 1/2 MB should be enough
5386      do
5387        i=`expr $i + 1`
5388        teststring=$teststring$teststring
5389      done
5390      # Only check the string length outside the loop.
5391      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5392      teststring=
5393      # Add a significant safety factor because C++ compilers can tack on
5394      # massive amounts of additional arguments before passing them to the
5395      # linker.  It appears as though 1/2 is a usable value.
5396      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5397    fi
5398    ;;
5399  esac
5400
5401fi
5402
5403if test -n $lt_cv_sys_max_cmd_len ; then
5404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5405$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5406else
5407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5408$as_echo "none" >&6; }
5409fi
5410max_cmd_len=$lt_cv_sys_max_cmd_len
5411
5412
5413
5414
5415
5416
5417: ${CP="cp -f"}
5418: ${MV="mv -f"}
5419: ${RM="rm -f"}
5420
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5422$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5423# Try some XSI features
5424xsi_shell=no
5425( _lt_dummy="a/b/c"
5426  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5427      = c,a/b,b/c, \
5428    && eval 'test $(( 1 + 1 )) -eq 2 \
5429    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5430  && xsi_shell=yes
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5432$as_echo "$xsi_shell" >&6; }
5433
5434
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5436$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5437lt_shell_append=no
5438( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5439    >/dev/null 2>&1 \
5440  && lt_shell_append=yes
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5442$as_echo "$lt_shell_append" >&6; }
5443
5444
5445if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5446  lt_unset=unset
5447else
5448  lt_unset=false
5449fi
5450
5451
5452
5453
5454
5455# test EBCDIC or ASCII
5456case `echo X|tr X '\101'` in
5457 A) # ASCII based system
5458    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5459  lt_SP2NL='tr \040 \012'
5460  lt_NL2SP='tr \015\012 \040\040'
5461  ;;
5462 *) # EBCDIC based system
5463  lt_SP2NL='tr \100 \n'
5464  lt_NL2SP='tr \r\n \100\100'
5465  ;;
5466esac
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5477$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5478if ${lt_cv_to_host_file_cmd+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  case $host in
5482  *-*-mingw* )
5483    case $build in
5484      *-*-mingw* ) # actually msys
5485        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5486        ;;
5487      *-*-cygwin* )
5488        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5489        ;;
5490      * ) # otherwise, assume *nix
5491        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5492        ;;
5493    esac
5494    ;;
5495  *-*-cygwin* )
5496    case $build in
5497      *-*-mingw* ) # actually msys
5498        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5499        ;;
5500      *-*-cygwin* )
5501        lt_cv_to_host_file_cmd=func_convert_file_noop
5502        ;;
5503      * ) # otherwise, assume *nix
5504        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5505        ;;
5506    esac
5507    ;;
5508  * ) # unhandled hosts (and "normal" native builds)
5509    lt_cv_to_host_file_cmd=func_convert_file_noop
5510    ;;
5511esac
5512
5513fi
5514
5515to_host_file_cmd=$lt_cv_to_host_file_cmd
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5517$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5518
5519
5520
5521
5522
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5524$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5525if ${lt_cv_to_tool_file_cmd+:} false; then :
5526  $as_echo_n "(cached) " >&6
5527else
5528  #assume ordinary cross tools, or native build.
5529lt_cv_to_tool_file_cmd=func_convert_file_noop
5530case $host in
5531  *-*-mingw* )
5532    case $build in
5533      *-*-mingw* ) # actually msys
5534        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5535        ;;
5536    esac
5537    ;;
5538esac
5539
5540fi
5541
5542to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5544$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5545
5546
5547
5548
5549
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5551$as_echo_n "checking for $LD option to reload object files... " >&6; }
5552if ${lt_cv_ld_reload_flag+:} false; then :
5553  $as_echo_n "(cached) " >&6
5554else
5555  lt_cv_ld_reload_flag='-r'
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5558$as_echo "$lt_cv_ld_reload_flag" >&6; }
5559reload_flag=$lt_cv_ld_reload_flag
5560case $reload_flag in
5561"" | " "*) ;;
5562*) reload_flag=" $reload_flag" ;;
5563esac
5564reload_cmds='$LD$reload_flag -o $output$reload_objs'
5565case $host_os in
5566  cygwin* | mingw* | pw32* | cegcc*)
5567    if test "$GCC" != yes; then
5568      reload_cmds=false
5569    fi
5570    ;;
5571  darwin*)
5572    if test "$GCC" = yes; then
5573      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5574    else
5575      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5576    fi
5577    ;;
5578esac
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588if test -n "$ac_tool_prefix"; then
5589  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5590set dummy ${ac_tool_prefix}objdump; ac_word=$2
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592$as_echo_n "checking for $ac_word... " >&6; }
5593if ${ac_cv_prog_OBJDUMP+:} false; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  if test -n "$OBJDUMP"; then
5597  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5598else
5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602  IFS=$as_save_IFS
5603  test -z "$as_dir" && as_dir=.
5604    for ac_exec_ext in '' $ac_executable_extensions; do
5605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608    break 2
5609  fi
5610done
5611  done
5612IFS=$as_save_IFS
5613
5614fi
5615fi
5616OBJDUMP=$ac_cv_prog_OBJDUMP
5617if test -n "$OBJDUMP"; then
5618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5619$as_echo "$OBJDUMP" >&6; }
5620else
5621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622$as_echo "no" >&6; }
5623fi
5624
5625
5626fi
5627if test -z "$ac_cv_prog_OBJDUMP"; then
5628  ac_ct_OBJDUMP=$OBJDUMP
5629  # Extract the first word of "objdump", so it can be a program name with args.
5630set dummy objdump; ac_word=$2
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632$as_echo_n "checking for $ac_word... " >&6; }
5633if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  if test -n "$ac_ct_OBJDUMP"; then
5637  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  test -z "$as_dir" && as_dir=.
5644    for ac_exec_ext in '' $ac_executable_extensions; do
5645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648    break 2
5649  fi
5650done
5651  done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5657if test -n "$ac_ct_OBJDUMP"; then
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5659$as_echo "$ac_ct_OBJDUMP" >&6; }
5660else
5661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663fi
5664
5665  if test "x$ac_ct_OBJDUMP" = x; then
5666    OBJDUMP="false"
5667  else
5668    case $cross_compiling:$ac_tool_warned in
5669yes:)
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5672ac_tool_warned=yes ;;
5673esac
5674    OBJDUMP=$ac_ct_OBJDUMP
5675  fi
5676else
5677  OBJDUMP="$ac_cv_prog_OBJDUMP"
5678fi
5679
5680test -z "$OBJDUMP" && OBJDUMP=objdump
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5691$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5692if ${lt_cv_deplibs_check_method+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  lt_cv_file_magic_cmd='$MAGIC_CMD'
5696lt_cv_file_magic_test_file=
5697lt_cv_deplibs_check_method='unknown'
5698# Need to set the preceding variable on all platforms that support
5699# interlibrary dependencies.
5700# 'none' -- dependencies not supported.
5701# `unknown' -- same as none, but documents that we really don't know.
5702# 'pass_all' -- all dependencies passed with no checks.
5703# 'test_compile' -- check by making test program.
5704# 'file_magic [[regex]]' -- check by looking for files in library path
5705# which responds to the $file_magic_cmd with a given extended regex.
5706# If you have `file' or equivalent on your system and you're not sure
5707# whether `pass_all' will *always* work, you probably want this one.
5708
5709case $host_os in
5710aix[4-9]*)
5711  lt_cv_deplibs_check_method=pass_all
5712  ;;
5713
5714beos*)
5715  lt_cv_deplibs_check_method=pass_all
5716  ;;
5717
5718bsdi[45]*)
5719  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5720  lt_cv_file_magic_cmd='/usr/bin/file -L'
5721  lt_cv_file_magic_test_file=/shlib/libc.so
5722  ;;
5723
5724cygwin*)
5725  # func_win32_libid is a shell function defined in ltmain.sh
5726  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727  lt_cv_file_magic_cmd='func_win32_libid'
5728  ;;
5729
5730mingw* | pw32*)
5731  # Base MSYS/MinGW do not provide the 'file' command needed by
5732  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5733  # unless we find 'file', for example because we are cross-compiling.
5734  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5735  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5736    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5737    lt_cv_file_magic_cmd='func_win32_libid'
5738  else
5739    # Keep this pattern in sync with the one in func_win32_libid.
5740    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5741    lt_cv_file_magic_cmd='$OBJDUMP -f'
5742  fi
5743  ;;
5744
5745cegcc*)
5746  # use the weaker test based on 'objdump'. See mingw*.
5747  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5748  lt_cv_file_magic_cmd='$OBJDUMP -f'
5749  ;;
5750
5751darwin* | rhapsody*)
5752  lt_cv_deplibs_check_method=pass_all
5753  ;;
5754
5755freebsd* | dragonfly*)
5756  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5757    case $host_cpu in
5758    i*86 )
5759      # Not sure whether the presence of OpenBSD here was a mistake.
5760      # Let's accept both of them until this is cleared up.
5761      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5762      lt_cv_file_magic_cmd=/usr/bin/file
5763      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5764      ;;
5765    esac
5766  else
5767    lt_cv_deplibs_check_method=pass_all
5768  fi
5769  ;;
5770
5771gnu*)
5772  lt_cv_deplibs_check_method=pass_all
5773  ;;
5774
5775haiku*)
5776  lt_cv_deplibs_check_method=pass_all
5777  ;;
5778
5779hpux10.20* | hpux11*)
5780  lt_cv_file_magic_cmd=/usr/bin/file
5781  case $host_cpu in
5782  ia64*)
5783    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5784    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5785    ;;
5786  hppa*64*)
5787    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]'
5788    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5789    ;;
5790  *)
5791    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5792    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5793    ;;
5794  esac
5795  ;;
5796
5797interix[3-9]*)
5798  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5799  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5800  ;;
5801
5802irix5* | irix6* | nonstopux*)
5803  case $LD in
5804  *-32|*"-32 ") libmagic=32-bit;;
5805  *-n32|*"-n32 ") libmagic=N32;;
5806  *-64|*"-64 ") libmagic=64-bit;;
5807  *) libmagic=never-match;;
5808  esac
5809  lt_cv_deplibs_check_method=pass_all
5810  ;;
5811
5812# This must be Linux ELF.
5813linux* | k*bsd*-gnu | kopensolaris*-gnu)
5814  lt_cv_deplibs_check_method=pass_all
5815  ;;
5816
5817netbsd*)
5818  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5819    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5820  else
5821    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5822  fi
5823  ;;
5824
5825newos6*)
5826  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5827  lt_cv_file_magic_cmd=/usr/bin/file
5828  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5829  ;;
5830
5831*nto* | *qnx*)
5832  lt_cv_deplibs_check_method=pass_all
5833  ;;
5834
5835openbsd*)
5836  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5837    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5838  else
5839    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5840  fi
5841  ;;
5842
5843osf3* | osf4* | osf5*)
5844  lt_cv_deplibs_check_method=pass_all
5845  ;;
5846
5847rdos*)
5848  lt_cv_deplibs_check_method=pass_all
5849  ;;
5850
5851solaris*)
5852  lt_cv_deplibs_check_method=pass_all
5853  ;;
5854
5855sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5856  lt_cv_deplibs_check_method=pass_all
5857  ;;
5858
5859sysv4 | sysv4.3*)
5860  case $host_vendor in
5861  motorola)
5862    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]'
5863    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5864    ;;
5865  ncr)
5866    lt_cv_deplibs_check_method=pass_all
5867    ;;
5868  sequent)
5869    lt_cv_file_magic_cmd='/bin/file'
5870    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5871    ;;
5872  sni)
5873    lt_cv_file_magic_cmd='/bin/file'
5874    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5875    lt_cv_file_magic_test_file=/lib/libc.so
5876    ;;
5877  siemens)
5878    lt_cv_deplibs_check_method=pass_all
5879    ;;
5880  pc)
5881    lt_cv_deplibs_check_method=pass_all
5882    ;;
5883  esac
5884  ;;
5885
5886tpf*)
5887  lt_cv_deplibs_check_method=pass_all
5888  ;;
5889esac
5890
5891fi
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5893$as_echo "$lt_cv_deplibs_check_method" >&6; }
5894
5895file_magic_glob=
5896want_nocaseglob=no
5897if test "$build" = "$host"; then
5898  case $host_os in
5899  mingw* | pw32*)
5900    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5901      want_nocaseglob=yes
5902    else
5903      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5904    fi
5905    ;;
5906  esac
5907fi
5908
5909file_magic_cmd=$lt_cv_file_magic_cmd
5910deplibs_check_method=$lt_cv_deplibs_check_method
5911test -z "$deplibs_check_method" && deplibs_check_method=unknown
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934if test -n "$ac_tool_prefix"; then
5935  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5936set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938$as_echo_n "checking for $ac_word... " >&6; }
5939if ${ac_cv_prog_DLLTOOL+:} false; then :
5940  $as_echo_n "(cached) " >&6
5941else
5942  if test -n "$DLLTOOL"; then
5943  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948  IFS=$as_save_IFS
5949  test -z "$as_dir" && as_dir=.
5950    for ac_exec_ext in '' $ac_executable_extensions; do
5951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954    break 2
5955  fi
5956done
5957  done
5958IFS=$as_save_IFS
5959
5960fi
5961fi
5962DLLTOOL=$ac_cv_prog_DLLTOOL
5963if test -n "$DLLTOOL"; then
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5965$as_echo "$DLLTOOL" >&6; }
5966else
5967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968$as_echo "no" >&6; }
5969fi
5970
5971
5972fi
5973if test -z "$ac_cv_prog_DLLTOOL"; then
5974  ac_ct_DLLTOOL=$DLLTOOL
5975  # Extract the first word of "dlltool", so it can be a program name with args.
5976set dummy dlltool; ac_word=$2
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978$as_echo_n "checking for $ac_word... " >&6; }
5979if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5980  $as_echo_n "(cached) " >&6
5981else
5982  if test -n "$ac_ct_DLLTOOL"; then
5983  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988  IFS=$as_save_IFS
5989  test -z "$as_dir" && as_dir=.
5990    for ac_exec_ext in '' $ac_executable_extensions; do
5991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994    break 2
5995  fi
5996done
5997  done
5998IFS=$as_save_IFS
5999
6000fi
6001fi
6002ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6003if test -n "$ac_ct_DLLTOOL"; then
6004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6005$as_echo "$ac_ct_DLLTOOL" >&6; }
6006else
6007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008$as_echo "no" >&6; }
6009fi
6010
6011  if test "x$ac_ct_DLLTOOL" = x; then
6012    DLLTOOL="false"
6013  else
6014    case $cross_compiling:$ac_tool_warned in
6015yes:)
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6018ac_tool_warned=yes ;;
6019esac
6020    DLLTOOL=$ac_ct_DLLTOOL
6021  fi
6022else
6023  DLLTOOL="$ac_cv_prog_DLLTOOL"
6024fi
6025
6026test -z "$DLLTOOL" && DLLTOOL=dlltool
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6038$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6039if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  lt_cv_sharedlib_from_linklib_cmd='unknown'
6043
6044case $host_os in
6045cygwin* | mingw* | pw32* | cegcc*)
6046  # two different shell functions defined in ltmain.sh
6047  # decide which to use based on capabilities of $DLLTOOL
6048  case `$DLLTOOL --help 2>&1` in
6049  *--identify-strict*)
6050    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6051    ;;
6052  *)
6053    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6054    ;;
6055  esac
6056  ;;
6057*)
6058  # fallback: assume linklib IS sharedlib
6059  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6060  ;;
6061esac
6062
6063fi
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6065$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6066sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6067test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6068
6069
6070
6071
6072
6073
6074
6075if test -n "$ac_tool_prefix"; then
6076  for ac_prog in ar
6077  do
6078    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
6082if ${ac_cv_prog_AR+:} false; then :
6083  $as_echo_n "(cached) " >&6
6084else
6085  if test -n "$AR"; then
6086  ac_cv_prog_AR="$AR" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091  IFS=$as_save_IFS
6092  test -z "$as_dir" && as_dir=.
6093    for ac_exec_ext in '' $ac_executable_extensions; do
6094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097    break 2
6098  fi
6099done
6100  done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105AR=$ac_cv_prog_AR
6106if test -n "$AR"; then
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6108$as_echo "$AR" >&6; }
6109else
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114
6115    test -n "$AR" && break
6116  done
6117fi
6118if test -z "$AR"; then
6119  ac_ct_AR=$AR
6120  for ac_prog in ar
6121do
6122  # Extract the first word of "$ac_prog", so it can be a program name with args.
6123set dummy $ac_prog; ac_word=$2
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125$as_echo_n "checking for $ac_word... " >&6; }
6126if ${ac_cv_prog_ac_ct_AR+:} false; then :
6127  $as_echo_n "(cached) " >&6
6128else
6129  if test -n "$ac_ct_AR"; then
6130  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6131else
6132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133for as_dir in $PATH
6134do
6135  IFS=$as_save_IFS
6136  test -z "$as_dir" && as_dir=.
6137    for ac_exec_ext in '' $ac_executable_extensions; do
6138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139    ac_cv_prog_ac_ct_AR="$ac_prog"
6140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141    break 2
6142  fi
6143done
6144  done
6145IFS=$as_save_IFS
6146
6147fi
6148fi
6149ac_ct_AR=$ac_cv_prog_ac_ct_AR
6150if test -n "$ac_ct_AR"; then
6151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6152$as_echo "$ac_ct_AR" >&6; }
6153else
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155$as_echo "no" >&6; }
6156fi
6157
6158
6159  test -n "$ac_ct_AR" && break
6160done
6161
6162  if test "x$ac_ct_AR" = x; then
6163    AR="false"
6164  else
6165    case $cross_compiling:$ac_tool_warned in
6166yes:)
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169ac_tool_warned=yes ;;
6170esac
6171    AR=$ac_ct_AR
6172  fi
6173fi
6174
6175: ${AR=ar}
6176: ${AR_FLAGS=cru}
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6189$as_echo_n "checking for archiver @FILE support... " >&6; }
6190if ${lt_cv_ar_at_file+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  lt_cv_ar_at_file=no
6194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h.  */
6196
6197int
6198main ()
6199{
6200
6201  ;
6202  return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"; then :
6206  echo conftest.$ac_objext > conftest.lst
6207      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6208      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6209  (eval $lt_ar_try) 2>&5
6210  ac_status=$?
6211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212  test $ac_status = 0; }
6213      if test "$ac_status" -eq 0; then
6214	# Ensure the archiver fails upon bogus file names.
6215	rm -f conftest.$ac_objext libconftest.a
6216	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6217  (eval $lt_ar_try) 2>&5
6218  ac_status=$?
6219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220  test $ac_status = 0; }
6221	if test "$ac_status" -ne 0; then
6222          lt_cv_ar_at_file=@
6223        fi
6224      fi
6225      rm -f conftest.* libconftest.a
6226
6227fi
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6232$as_echo "$lt_cv_ar_at_file" >&6; }
6233
6234if test "x$lt_cv_ar_at_file" = xno; then
6235  archiver_list_spec=
6236else
6237  archiver_list_spec=$lt_cv_ar_at_file
6238fi
6239
6240
6241
6242
6243
6244
6245
6246if test -n "$ac_tool_prefix"; then
6247  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6248set dummy ${ac_tool_prefix}strip; ac_word=$2
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250$as_echo_n "checking for $ac_word... " >&6; }
6251if ${ac_cv_prog_STRIP+:} false; then :
6252  $as_echo_n "(cached) " >&6
6253else
6254  if test -n "$STRIP"; then
6255  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260  IFS=$as_save_IFS
6261  test -z "$as_dir" && as_dir=.
6262    for ac_exec_ext in '' $ac_executable_extensions; do
6263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266    break 2
6267  fi
6268done
6269  done
6270IFS=$as_save_IFS
6271
6272fi
6273fi
6274STRIP=$ac_cv_prog_STRIP
6275if test -n "$STRIP"; then
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6277$as_echo "$STRIP" >&6; }
6278else
6279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280$as_echo "no" >&6; }
6281fi
6282
6283
6284fi
6285if test -z "$ac_cv_prog_STRIP"; then
6286  ac_ct_STRIP=$STRIP
6287  # Extract the first word of "strip", so it can be a program name with args.
6288set dummy strip; ac_word=$2
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
6291if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6292  $as_echo_n "(cached) " >&6
6293else
6294  if test -n "$ac_ct_STRIP"; then
6295  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300  IFS=$as_save_IFS
6301  test -z "$as_dir" && as_dir=.
6302    for ac_exec_ext in '' $ac_executable_extensions; do
6303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304    ac_cv_prog_ac_ct_STRIP="strip"
6305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306    break 2
6307  fi
6308done
6309  done
6310IFS=$as_save_IFS
6311
6312fi
6313fi
6314ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6315if test -n "$ac_ct_STRIP"; then
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6317$as_echo "$ac_ct_STRIP" >&6; }
6318else
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320$as_echo "no" >&6; }
6321fi
6322
6323  if test "x$ac_ct_STRIP" = x; then
6324    STRIP=":"
6325  else
6326    case $cross_compiling:$ac_tool_warned in
6327yes:)
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330ac_tool_warned=yes ;;
6331esac
6332    STRIP=$ac_ct_STRIP
6333  fi
6334else
6335  STRIP="$ac_cv_prog_STRIP"
6336fi
6337
6338test -z "$STRIP" && STRIP=:
6339
6340
6341
6342
6343
6344
6345if test -n "$ac_tool_prefix"; then
6346  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6347set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349$as_echo_n "checking for $ac_word... " >&6; }
6350if ${ac_cv_prog_RANLIB+:} false; then :
6351  $as_echo_n "(cached) " >&6
6352else
6353  if test -n "$RANLIB"; then
6354  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6355else
6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359  IFS=$as_save_IFS
6360  test -z "$as_dir" && as_dir=.
6361    for ac_exec_ext in '' $ac_executable_extensions; do
6362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365    break 2
6366  fi
6367done
6368  done
6369IFS=$as_save_IFS
6370
6371fi
6372fi
6373RANLIB=$ac_cv_prog_RANLIB
6374if test -n "$RANLIB"; then
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6376$as_echo "$RANLIB" >&6; }
6377else
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382
6383fi
6384if test -z "$ac_cv_prog_RANLIB"; then
6385  ac_ct_RANLIB=$RANLIB
6386  # Extract the first word of "ranlib", so it can be a program name with args.
6387set dummy ranlib; ac_word=$2
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
6390if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  if test -n "$ac_ct_RANLIB"; then
6394  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6395else
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399  IFS=$as_save_IFS
6400  test -z "$as_dir" && as_dir=.
6401    for ac_exec_ext in '' $ac_executable_extensions; do
6402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403    ac_cv_prog_ac_ct_RANLIB="ranlib"
6404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405    break 2
6406  fi
6407done
6408  done
6409IFS=$as_save_IFS
6410
6411fi
6412fi
6413ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6414if test -n "$ac_ct_RANLIB"; then
6415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6416$as_echo "$ac_ct_RANLIB" >&6; }
6417else
6418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419$as_echo "no" >&6; }
6420fi
6421
6422  if test "x$ac_ct_RANLIB" = x; then
6423    RANLIB=":"
6424  else
6425    case $cross_compiling:$ac_tool_warned in
6426yes:)
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429ac_tool_warned=yes ;;
6430esac
6431    RANLIB=$ac_ct_RANLIB
6432  fi
6433else
6434  RANLIB="$ac_cv_prog_RANLIB"
6435fi
6436
6437test -z "$RANLIB" && RANLIB=:
6438
6439
6440
6441
6442
6443
6444# Determine commands to create old-style static archives.
6445old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6446old_postinstall_cmds='chmod 644 $oldlib'
6447old_postuninstall_cmds=
6448
6449if test -n "$RANLIB"; then
6450  case $host_os in
6451  openbsd*)
6452    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6453    ;;
6454  *)
6455    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6456    ;;
6457  esac
6458  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6459fi
6460
6461case $host_os in
6462  darwin*)
6463    lock_old_archive_extraction=yes ;;
6464  *)
6465    lock_old_archive_extraction=no ;;
6466esac
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506# If no C compiler was specified, use CC.
6507LTCC=${LTCC-"$CC"}
6508
6509# If no C compiler flags were specified, use CFLAGS.
6510LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6511
6512# Allow CC to be a program name with arguments.
6513compiler=$CC
6514
6515
6516# Check for command to grab the raw symbol name followed by C symbol from nm.
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6518$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6519if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6520  $as_echo_n "(cached) " >&6
6521else
6522
6523# These are sane defaults that work on at least a few old systems.
6524# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6525
6526# Character class describing NM global symbol codes.
6527symcode='[BCDEGRST]'
6528
6529# Regexp to match symbols that can be accessed directly from C.
6530sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6531
6532# Define system-specific variables.
6533case $host_os in
6534aix*)
6535  symcode='[BCDT]'
6536  ;;
6537cygwin* | mingw* | pw32* | cegcc*)
6538  symcode='[ABCDGISTW]'
6539  ;;
6540hpux*)
6541  if test "$host_cpu" = ia64; then
6542    symcode='[ABCDEGRST]'
6543  fi
6544  ;;
6545irix* | nonstopux*)
6546  symcode='[BCDEGRST]'
6547  ;;
6548osf*)
6549  symcode='[BCDEGQRST]'
6550  ;;
6551solaris*)
6552  symcode='[BDRT]'
6553  ;;
6554sco3.2v5*)
6555  symcode='[DT]'
6556  ;;
6557sysv4.2uw2*)
6558  symcode='[DT]'
6559  ;;
6560sysv5* | sco5v6* | unixware* | OpenUNIX*)
6561  symcode='[ABDT]'
6562  ;;
6563sysv4)
6564  symcode='[DFNSTU]'
6565  ;;
6566esac
6567
6568# If we're using GNU nm, then use its standard symbol codes.
6569case `$NM -V 2>&1` in
6570*GNU* | *'with BFD'*)
6571  symcode='[ABCDGIRSTW]' ;;
6572esac
6573
6574# Transform an extracted symbol line into a proper C declaration.
6575# Some systems (esp. on ia64) link data and code symbols differently,
6576# so use this general approach.
6577lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6578
6579# Transform an extracted symbol line into symbol name and symbol address
6580lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6581lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6582
6583# Handle CRLF in mingw tool chain
6584opt_cr=
6585case $build_os in
6586mingw*)
6587  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6588  ;;
6589esac
6590
6591# Try without a prefix underscore, then with it.
6592for ac_symprfx in "" "_"; do
6593
6594  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6595  symxfrm="\\1 $ac_symprfx\\2 \\2"
6596
6597  # Write the raw and C identifiers.
6598  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6599    # Fake it for dumpbin and say T for any non-static function
6600    # and D for any global variable.
6601    # Also find C++ and __fastcall symbols from MSVC++,
6602    # which start with @ or ?.
6603    lt_cv_sys_global_symbol_pipe="$AWK '"\
6604"     {last_section=section; section=\$ 3};"\
6605"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6606"     \$ 0!~/External *\|/{next};"\
6607"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6608"     {if(hide[section]) next};"\
6609"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6610"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6611"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6612"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6613"     ' prfx=^$ac_symprfx"
6614  else
6615    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6616  fi
6617  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6618
6619  # Check to see that the pipe works correctly.
6620  pipe_works=no
6621
6622  rm -f conftest*
6623  cat > conftest.$ac_ext <<_LT_EOF
6624#ifdef __cplusplus
6625extern "C" {
6626#endif
6627char nm_test_var;
6628void nm_test_func(void);
6629void nm_test_func(void){}
6630#ifdef __cplusplus
6631}
6632#endif
6633int main(){nm_test_var='a';nm_test_func();return(0);}
6634_LT_EOF
6635
6636  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6637  (eval $ac_compile) 2>&5
6638  ac_status=$?
6639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640  test $ac_status = 0; }; then
6641    # Now try to grab the symbols.
6642    nlist=conftest.nm
6643    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6644  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6645  ac_status=$?
6646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6647  test $ac_status = 0; } && test -s "$nlist"; then
6648      # Try sorting and uniquifying the output.
6649      if sort "$nlist" | uniq > "$nlist"T; then
6650	mv -f "$nlist"T "$nlist"
6651      else
6652	rm -f "$nlist"T
6653      fi
6654
6655      # Make sure that we snagged all the symbols we need.
6656      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6657	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6658	  cat <<_LT_EOF > conftest.$ac_ext
6659/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6660#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6661/* DATA imports from DLLs on WIN32 con't be const, because runtime
6662   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6663# define LT_DLSYM_CONST
6664#elif defined(__osf__)
6665/* This system does not cope well with relocations in const data.  */
6666# define LT_DLSYM_CONST
6667#else
6668# define LT_DLSYM_CONST const
6669#endif
6670
6671#ifdef __cplusplus
6672extern "C" {
6673#endif
6674
6675_LT_EOF
6676	  # Now generate the symbol file.
6677	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6678
6679	  cat <<_LT_EOF >> conftest.$ac_ext
6680
6681/* The mapping between symbol names and symbols.  */
6682LT_DLSYM_CONST struct {
6683  const char *name;
6684  void       *address;
6685}
6686lt__PROGRAM__LTX_preloaded_symbols[] =
6687{
6688  { "@PROGRAM@", (void *) 0 },
6689_LT_EOF
6690	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6691	  cat <<\_LT_EOF >> conftest.$ac_ext
6692  {0, (void *) 0}
6693};
6694
6695/* This works around a problem in FreeBSD linker */
6696#ifdef FREEBSD_WORKAROUND
6697static const void *lt_preloaded_setup() {
6698  return lt__PROGRAM__LTX_preloaded_symbols;
6699}
6700#endif
6701
6702#ifdef __cplusplus
6703}
6704#endif
6705_LT_EOF
6706	  # Now try linking the two files.
6707	  mv conftest.$ac_objext conftstm.$ac_objext
6708	  lt_globsym_save_LIBS=$LIBS
6709	  lt_globsym_save_CFLAGS=$CFLAGS
6710	  LIBS="conftstm.$ac_objext"
6711	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6712	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6713  (eval $ac_link) 2>&5
6714  ac_status=$?
6715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6716  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6717	    pipe_works=yes
6718	  fi
6719	  LIBS=$lt_globsym_save_LIBS
6720	  CFLAGS=$lt_globsym_save_CFLAGS
6721	else
6722	  echo "cannot find nm_test_func in $nlist" >&5
6723	fi
6724      else
6725	echo "cannot find nm_test_var in $nlist" >&5
6726      fi
6727    else
6728      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6729    fi
6730  else
6731    echo "$progname: failed program was:" >&5
6732    cat conftest.$ac_ext >&5
6733  fi
6734  rm -rf conftest* conftst*
6735
6736  # Do not use the global_symbol_pipe unless it works.
6737  if test "$pipe_works" = yes; then
6738    break
6739  else
6740    lt_cv_sys_global_symbol_pipe=
6741  fi
6742done
6743
6744fi
6745
6746if test -z "$lt_cv_sys_global_symbol_pipe"; then
6747  lt_cv_sys_global_symbol_to_cdecl=
6748fi
6749if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6751$as_echo "failed" >&6; }
6752else
6753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6754$as_echo "ok" >&6; }
6755fi
6756
6757# Response file support.
6758if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6759  nm_file_list_spec='@'
6760elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6761  nm_file_list_spec='@'
6762fi
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6791$as_echo_n "checking for sysroot... " >&6; }
6792
6793# Check whether --with-sysroot was given.
6794if test "${with_sysroot+set}" = set; then :
6795  withval=$with_sysroot;
6796else
6797  with_sysroot=no
6798fi
6799
6800
6801lt_sysroot=
6802case ${with_sysroot} in #(
6803 yes)
6804   if test "$GCC" = yes; then
6805     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6806   fi
6807   ;; #(
6808 /*)
6809   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6810   ;; #(
6811 no|'')
6812   ;; #(
6813 *)
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6815$as_echo "${with_sysroot}" >&6; }
6816   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6817   ;;
6818esac
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6821$as_echo "${lt_sysroot:-no}" >&6; }
6822
6823
6824
6825
6826
6827# Check whether --enable-libtool-lock was given.
6828if test "${enable_libtool_lock+set}" = set; then :
6829  enableval=$enable_libtool_lock;
6830fi
6831
6832test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6833
6834# Some flags need to be propagated to the compiler or linker for good
6835# libtool support.
6836case $host in
6837ia64-*-hpux*)
6838  # Find out which ABI we are using.
6839  echo 'int i;' > conftest.$ac_ext
6840  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841  (eval $ac_compile) 2>&5
6842  ac_status=$?
6843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844  test $ac_status = 0; }; then
6845    case `/usr/bin/file conftest.$ac_objext` in
6846      *ELF-32*)
6847	HPUX_IA64_MODE="32"
6848	;;
6849      *ELF-64*)
6850	HPUX_IA64_MODE="64"
6851	;;
6852    esac
6853  fi
6854  rm -rf conftest*
6855  ;;
6856*-*-irix6*)
6857  # Find out which ABI we are using.
6858  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6859  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6860  (eval $ac_compile) 2>&5
6861  ac_status=$?
6862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863  test $ac_status = 0; }; then
6864    if test "$lt_cv_prog_gnu_ld" = yes; then
6865      case `/usr/bin/file conftest.$ac_objext` in
6866	*32-bit*)
6867	  LD="${LD-ld} -melf32bsmip"
6868	  ;;
6869	*N32*)
6870	  LD="${LD-ld} -melf32bmipn32"
6871	  ;;
6872	*64-bit*)
6873	  LD="${LD-ld} -melf64bmip"
6874	;;
6875      esac
6876    else
6877      case `/usr/bin/file conftest.$ac_objext` in
6878	*32-bit*)
6879	  LD="${LD-ld} -32"
6880	  ;;
6881	*N32*)
6882	  LD="${LD-ld} -n32"
6883	  ;;
6884	*64-bit*)
6885	  LD="${LD-ld} -64"
6886	  ;;
6887      esac
6888    fi
6889  fi
6890  rm -rf conftest*
6891  ;;
6892
6893x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6894s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6895  # Find out which ABI we are using.
6896  echo 'int i;' > conftest.$ac_ext
6897  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6898  (eval $ac_compile) 2>&5
6899  ac_status=$?
6900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901  test $ac_status = 0; }; then
6902    case `/usr/bin/file conftest.o` in
6903      *32-bit*)
6904	case $host in
6905	  x86_64-*kfreebsd*-gnu)
6906	    LD="${LD-ld} -m elf_i386_fbsd"
6907	    ;;
6908	  x86_64-*linux*)
6909	    LD="${LD-ld} -m elf_i386"
6910	    ;;
6911	  ppc64-*linux*|powerpc64-*linux*)
6912	    LD="${LD-ld} -m elf32ppclinux"
6913	    ;;
6914	  s390x-*linux*)
6915	    LD="${LD-ld} -m elf_s390"
6916	    ;;
6917	  sparc64-*linux*)
6918	    LD="${LD-ld} -m elf32_sparc"
6919	    ;;
6920	esac
6921	;;
6922      *64-bit*)
6923	case $host in
6924	  x86_64-*kfreebsd*-gnu)
6925	    LD="${LD-ld} -m elf_x86_64_fbsd"
6926	    ;;
6927	  x86_64-*linux*)
6928	    LD="${LD-ld} -m elf_x86_64"
6929	    ;;
6930	  ppc*-*linux*|powerpc*-*linux*)
6931	    LD="${LD-ld} -m elf64ppc"
6932	    ;;
6933	  s390*-*linux*|s390*-*tpf*)
6934	    LD="${LD-ld} -m elf64_s390"
6935	    ;;
6936	  sparc*-*linux*)
6937	    LD="${LD-ld} -m elf64_sparc"
6938	    ;;
6939	esac
6940	;;
6941    esac
6942  fi
6943  rm -rf conftest*
6944  ;;
6945
6946*-*-sco3.2v5*)
6947  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6948  SAVE_CFLAGS="$CFLAGS"
6949  CFLAGS="$CFLAGS -belf"
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6951$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6952if ${lt_cv_cc_needs_belf+:} false; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  ac_ext=c
6956ac_cpp='$CPP $CPPFLAGS'
6957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960
6961     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h.  */
6963
6964int
6965main ()
6966{
6967
6968  ;
6969  return 0;
6970}
6971_ACEOF
6972if ac_fn_c_try_link "$LINENO"; then :
6973  lt_cv_cc_needs_belf=yes
6974else
6975  lt_cv_cc_needs_belf=no
6976fi
6977rm -f core conftest.err conftest.$ac_objext \
6978    conftest$ac_exeext conftest.$ac_ext
6979     ac_ext=c
6980ac_cpp='$CPP $CPPFLAGS'
6981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6983ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984
6985fi
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6987$as_echo "$lt_cv_cc_needs_belf" >&6; }
6988  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6989    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6990    CFLAGS="$SAVE_CFLAGS"
6991  fi
6992  ;;
6993sparc*-*solaris*)
6994  # Find out which ABI we are using.
6995  echo 'int i;' > conftest.$ac_ext
6996  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6997  (eval $ac_compile) 2>&5
6998  ac_status=$?
6999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7000  test $ac_status = 0; }; then
7001    case `/usr/bin/file conftest.o` in
7002    *64-bit*)
7003      case $lt_cv_prog_gnu_ld in
7004      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7005      *)
7006	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7007	  LD="${LD-ld} -64"
7008	fi
7009	;;
7010      esac
7011      ;;
7012    esac
7013  fi
7014  rm -rf conftest*
7015  ;;
7016esac
7017
7018need_locks="$enable_libtool_lock"
7019
7020if test -n "$ac_tool_prefix"; then
7021  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}mt; ac_word=$2
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024$as_echo_n "checking for $ac_word... " >&6; }
7025if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  if test -n "$MANIFEST_TOOL"; then
7029  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  test -z "$as_dir" && as_dir=.
7036    for ac_exec_ext in '' $ac_executable_extensions; do
7037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040    break 2
7041  fi
7042done
7043  done
7044IFS=$as_save_IFS
7045
7046fi
7047fi
7048MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7049if test -n "$MANIFEST_TOOL"; then
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7051$as_echo "$MANIFEST_TOOL" >&6; }
7052else
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054$as_echo "no" >&6; }
7055fi
7056
7057
7058fi
7059if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7060  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7061  # Extract the first word of "mt", so it can be a program name with args.
7062set dummy mt; ac_word=$2
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064$as_echo_n "checking for $ac_word... " >&6; }
7065if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7066  $as_echo_n "(cached) " >&6
7067else
7068  if test -n "$ac_ct_MANIFEST_TOOL"; then
7069  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074  IFS=$as_save_IFS
7075  test -z "$as_dir" && as_dir=.
7076    for ac_exec_ext in '' $ac_executable_extensions; do
7077  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080    break 2
7081  fi
7082done
7083  done
7084IFS=$as_save_IFS
7085
7086fi
7087fi
7088ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7089if test -n "$ac_ct_MANIFEST_TOOL"; then
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7091$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7092else
7093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094$as_echo "no" >&6; }
7095fi
7096
7097  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7098    MANIFEST_TOOL=":"
7099  else
7100    case $cross_compiling:$ac_tool_warned in
7101yes:)
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104ac_tool_warned=yes ;;
7105esac
7106    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7107  fi
7108else
7109  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7110fi
7111
7112test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7114$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7115if ${lt_cv_path_mainfest_tool+:} false; then :
7116  $as_echo_n "(cached) " >&6
7117else
7118  lt_cv_path_mainfest_tool=no
7119  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7120  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7121  cat conftest.err >&5
7122  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7123    lt_cv_path_mainfest_tool=yes
7124  fi
7125  rm -f conftest*
7126fi
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7128$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7129if test "x$lt_cv_path_mainfest_tool" != xyes; then
7130  MANIFEST_TOOL=:
7131fi
7132
7133
7134
7135
7136
7137
7138  case $host_os in
7139    rhapsody* | darwin*)
7140    if test -n "$ac_tool_prefix"; then
7141  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7142set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144$as_echo_n "checking for $ac_word... " >&6; }
7145if ${ac_cv_prog_DSYMUTIL+:} false; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148  if test -n "$DSYMUTIL"; then
7149  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154  IFS=$as_save_IFS
7155  test -z "$as_dir" && as_dir=.
7156    for ac_exec_ext in '' $ac_executable_extensions; do
7157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160    break 2
7161  fi
7162done
7163  done
7164IFS=$as_save_IFS
7165
7166fi
7167fi
7168DSYMUTIL=$ac_cv_prog_DSYMUTIL
7169if test -n "$DSYMUTIL"; then
7170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7171$as_echo "$DSYMUTIL" >&6; }
7172else
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174$as_echo "no" >&6; }
7175fi
7176
7177
7178fi
7179if test -z "$ac_cv_prog_DSYMUTIL"; then
7180  ac_ct_DSYMUTIL=$DSYMUTIL
7181  # Extract the first word of "dsymutil", so it can be a program name with args.
7182set dummy dsymutil; ac_word=$2
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184$as_echo_n "checking for $ac_word... " >&6; }
7185if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  if test -n "$ac_ct_DSYMUTIL"; then
7189  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7190else
7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194  IFS=$as_save_IFS
7195  test -z "$as_dir" && as_dir=.
7196    for ac_exec_ext in '' $ac_executable_extensions; do
7197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200    break 2
7201  fi
7202done
7203  done
7204IFS=$as_save_IFS
7205
7206fi
7207fi
7208ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7209if test -n "$ac_ct_DSYMUTIL"; then
7210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7211$as_echo "$ac_ct_DSYMUTIL" >&6; }
7212else
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214$as_echo "no" >&6; }
7215fi
7216
7217  if test "x$ac_ct_DSYMUTIL" = x; then
7218    DSYMUTIL=":"
7219  else
7220    case $cross_compiling:$ac_tool_warned in
7221yes:)
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224ac_tool_warned=yes ;;
7225esac
7226    DSYMUTIL=$ac_ct_DSYMUTIL
7227  fi
7228else
7229  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7230fi
7231
7232    if test -n "$ac_tool_prefix"; then
7233  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7234set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236$as_echo_n "checking for $ac_word... " >&6; }
7237if ${ac_cv_prog_NMEDIT+:} false; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  if test -n "$NMEDIT"; then
7241  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  test -z "$as_dir" && as_dir=.
7248    for ac_exec_ext in '' $ac_executable_extensions; do
7249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252    break 2
7253  fi
7254done
7255  done
7256IFS=$as_save_IFS
7257
7258fi
7259fi
7260NMEDIT=$ac_cv_prog_NMEDIT
7261if test -n "$NMEDIT"; then
7262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7263$as_echo "$NMEDIT" >&6; }
7264else
7265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266$as_echo "no" >&6; }
7267fi
7268
7269
7270fi
7271if test -z "$ac_cv_prog_NMEDIT"; then
7272  ac_ct_NMEDIT=$NMEDIT
7273  # Extract the first word of "nmedit", so it can be a program name with args.
7274set dummy nmedit; ac_word=$2
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276$as_echo_n "checking for $ac_word... " >&6; }
7277if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  if test -n "$ac_ct_NMEDIT"; then
7281  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7282else
7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286  IFS=$as_save_IFS
7287  test -z "$as_dir" && as_dir=.
7288    for ac_exec_ext in '' $ac_executable_extensions; do
7289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292    break 2
7293  fi
7294done
7295  done
7296IFS=$as_save_IFS
7297
7298fi
7299fi
7300ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7301if test -n "$ac_ct_NMEDIT"; then
7302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7303$as_echo "$ac_ct_NMEDIT" >&6; }
7304else
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306$as_echo "no" >&6; }
7307fi
7308
7309  if test "x$ac_ct_NMEDIT" = x; then
7310    NMEDIT=":"
7311  else
7312    case $cross_compiling:$ac_tool_warned in
7313yes:)
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316ac_tool_warned=yes ;;
7317esac
7318    NMEDIT=$ac_ct_NMEDIT
7319  fi
7320else
7321  NMEDIT="$ac_cv_prog_NMEDIT"
7322fi
7323
7324    if test -n "$ac_tool_prefix"; then
7325  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7326set dummy ${ac_tool_prefix}lipo; ac_word=$2
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328$as_echo_n "checking for $ac_word... " >&6; }
7329if ${ac_cv_prog_LIPO+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  if test -n "$LIPO"; then
7333  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7334else
7335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338  IFS=$as_save_IFS
7339  test -z "$as_dir" && as_dir=.
7340    for ac_exec_ext in '' $ac_executable_extensions; do
7341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344    break 2
7345  fi
7346done
7347  done
7348IFS=$as_save_IFS
7349
7350fi
7351fi
7352LIPO=$ac_cv_prog_LIPO
7353if test -n "$LIPO"; then
7354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7355$as_echo "$LIPO" >&6; }
7356else
7357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358$as_echo "no" >&6; }
7359fi
7360
7361
7362fi
7363if test -z "$ac_cv_prog_LIPO"; then
7364  ac_ct_LIPO=$LIPO
7365  # Extract the first word of "lipo", so it can be a program name with args.
7366set dummy lipo; ac_word=$2
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368$as_echo_n "checking for $ac_word... " >&6; }
7369if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7370  $as_echo_n "(cached) " >&6
7371else
7372  if test -n "$ac_ct_LIPO"; then
7373  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7374else
7375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378  IFS=$as_save_IFS
7379  test -z "$as_dir" && as_dir=.
7380    for ac_exec_ext in '' $ac_executable_extensions; do
7381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382    ac_cv_prog_ac_ct_LIPO="lipo"
7383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384    break 2
7385  fi
7386done
7387  done
7388IFS=$as_save_IFS
7389
7390fi
7391fi
7392ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7393if test -n "$ac_ct_LIPO"; then
7394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7395$as_echo "$ac_ct_LIPO" >&6; }
7396else
7397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398$as_echo "no" >&6; }
7399fi
7400
7401  if test "x$ac_ct_LIPO" = x; then
7402    LIPO=":"
7403  else
7404    case $cross_compiling:$ac_tool_warned in
7405yes:)
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408ac_tool_warned=yes ;;
7409esac
7410    LIPO=$ac_ct_LIPO
7411  fi
7412else
7413  LIPO="$ac_cv_prog_LIPO"
7414fi
7415
7416    if test -n "$ac_tool_prefix"; then
7417  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7418set dummy ${ac_tool_prefix}otool; ac_word=$2
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420$as_echo_n "checking for $ac_word... " >&6; }
7421if ${ac_cv_prog_OTOOL+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  if test -n "$OTOOL"; then
7425  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7426else
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432    for ac_exec_ext in '' $ac_executable_extensions; do
7433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436    break 2
7437  fi
7438done
7439  done
7440IFS=$as_save_IFS
7441
7442fi
7443fi
7444OTOOL=$ac_cv_prog_OTOOL
7445if test -n "$OTOOL"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7447$as_echo "$OTOOL" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451fi
7452
7453
7454fi
7455if test -z "$ac_cv_prog_OTOOL"; then
7456  ac_ct_OTOOL=$OTOOL
7457  # Extract the first word of "otool", so it can be a program name with args.
7458set dummy otool; ac_word=$2
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460$as_echo_n "checking for $ac_word... " >&6; }
7461if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7462  $as_echo_n "(cached) " >&6
7463else
7464  if test -n "$ac_ct_OTOOL"; then
7465  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7466else
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470  IFS=$as_save_IFS
7471  test -z "$as_dir" && as_dir=.
7472    for ac_exec_ext in '' $ac_executable_extensions; do
7473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474    ac_cv_prog_ac_ct_OTOOL="otool"
7475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476    break 2
7477  fi
7478done
7479  done
7480IFS=$as_save_IFS
7481
7482fi
7483fi
7484ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7485if test -n "$ac_ct_OTOOL"; then
7486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7487$as_echo "$ac_ct_OTOOL" >&6; }
7488else
7489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490$as_echo "no" >&6; }
7491fi
7492
7493  if test "x$ac_ct_OTOOL" = x; then
7494    OTOOL=":"
7495  else
7496    case $cross_compiling:$ac_tool_warned in
7497yes:)
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500ac_tool_warned=yes ;;
7501esac
7502    OTOOL=$ac_ct_OTOOL
7503  fi
7504else
7505  OTOOL="$ac_cv_prog_OTOOL"
7506fi
7507
7508    if test -n "$ac_tool_prefix"; then
7509  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7510set dummy ${ac_tool_prefix}otool64; ac_word=$2
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512$as_echo_n "checking for $ac_word... " >&6; }
7513if ${ac_cv_prog_OTOOL64+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  if test -n "$OTOOL64"; then
7517  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7518else
7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522  IFS=$as_save_IFS
7523  test -z "$as_dir" && as_dir=.
7524    for ac_exec_ext in '' $ac_executable_extensions; do
7525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528    break 2
7529  fi
7530done
7531  done
7532IFS=$as_save_IFS
7533
7534fi
7535fi
7536OTOOL64=$ac_cv_prog_OTOOL64
7537if test -n "$OTOOL64"; then
7538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7539$as_echo "$OTOOL64" >&6; }
7540else
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542$as_echo "no" >&6; }
7543fi
7544
7545
7546fi
7547if test -z "$ac_cv_prog_OTOOL64"; then
7548  ac_ct_OTOOL64=$OTOOL64
7549  # Extract the first word of "otool64", so it can be a program name with args.
7550set dummy otool64; ac_word=$2
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  if test -n "$ac_ct_OTOOL64"; then
7557  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562  IFS=$as_save_IFS
7563  test -z "$as_dir" && as_dir=.
7564    for ac_exec_ext in '' $ac_executable_extensions; do
7565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566    ac_cv_prog_ac_ct_OTOOL64="otool64"
7567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568    break 2
7569  fi
7570done
7571  done
7572IFS=$as_save_IFS
7573
7574fi
7575fi
7576ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7577if test -n "$ac_ct_OTOOL64"; then
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7579$as_echo "$ac_ct_OTOOL64" >&6; }
7580else
7581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
7583fi
7584
7585  if test "x$ac_ct_OTOOL64" = x; then
7586    OTOOL64=":"
7587  else
7588    case $cross_compiling:$ac_tool_warned in
7589yes:)
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592ac_tool_warned=yes ;;
7593esac
7594    OTOOL64=$ac_ct_OTOOL64
7595  fi
7596else
7597  OTOOL64="$ac_cv_prog_OTOOL64"
7598fi
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7627$as_echo_n "checking for -single_module linker flag... " >&6; }
7628if ${lt_cv_apple_cc_single_mod+:} false; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  lt_cv_apple_cc_single_mod=no
7632      if test -z "${LT_MULTI_MODULE}"; then
7633	# By default we will add the -single_module flag. You can override
7634	# by either setting the environment variable LT_MULTI_MODULE
7635	# non-empty at configure time, or by adding -multi_module to the
7636	# link flags.
7637	rm -rf libconftest.dylib*
7638	echo "int foo(void){return 1;}" > conftest.c
7639	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7640-dynamiclib -Wl,-single_module conftest.c" >&5
7641	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7642	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7643        _lt_result=$?
7644	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7645	  lt_cv_apple_cc_single_mod=yes
7646	else
7647	  cat conftest.err >&5
7648	fi
7649	rm -rf libconftest.dylib*
7650	rm -f conftest.*
7651      fi
7652fi
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7654$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7656$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7657if ${lt_cv_ld_exported_symbols_list+:} false; then :
7658  $as_echo_n "(cached) " >&6
7659else
7660  lt_cv_ld_exported_symbols_list=no
7661      save_LDFLAGS=$LDFLAGS
7662      echo "_main" > conftest.sym
7663      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7664      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665/* end confdefs.h.  */
7666
7667int
7668main ()
7669{
7670
7671  ;
7672  return 0;
7673}
7674_ACEOF
7675if ac_fn_c_try_link "$LINENO"; then :
7676  lt_cv_ld_exported_symbols_list=yes
7677else
7678  lt_cv_ld_exported_symbols_list=no
7679fi
7680rm -f core conftest.err conftest.$ac_objext \
7681    conftest$ac_exeext conftest.$ac_ext
7682	LDFLAGS="$save_LDFLAGS"
7683
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7686$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7687    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7688$as_echo_n "checking for -force_load linker flag... " >&6; }
7689if ${lt_cv_ld_force_load+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  lt_cv_ld_force_load=no
7693      cat > conftest.c << _LT_EOF
7694int forced_loaded() { return 2;}
7695_LT_EOF
7696      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7697      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7698      echo "$AR cru libconftest.a conftest.o" >&5
7699      $AR cru libconftest.a conftest.o 2>&5
7700      echo "$RANLIB libconftest.a" >&5
7701      $RANLIB libconftest.a 2>&5
7702      cat > conftest.c << _LT_EOF
7703int main() { return 0;}
7704_LT_EOF
7705      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7706      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7707      _lt_result=$?
7708      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7709	lt_cv_ld_force_load=yes
7710      else
7711	cat conftest.err >&5
7712      fi
7713        rm -f conftest.err libconftest.a conftest conftest.c
7714        rm -rf conftest.dSYM
7715
7716fi
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7718$as_echo "$lt_cv_ld_force_load" >&6; }
7719    case $host_os in
7720    rhapsody* | darwin1.[012])
7721      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7722    darwin1.*)
7723      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7724    darwin*) # darwin 5.x on
7725      # if running on 10.5 or later, the deployment target defaults
7726      # to the OS version, if on x86, and 10.4, the deployment
7727      # target defaults to 10.4. Don't you love it?
7728      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7729	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7730	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7731	10.[012]*)
7732	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7733	10.*)
7734	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7735      esac
7736    ;;
7737  esac
7738    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7739      _lt_dar_single_mod='$single_module'
7740    fi
7741    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7742      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7743    else
7744      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7745    fi
7746    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7747      _lt_dsymutil='~$DSYMUTIL $lib || :'
7748    else
7749      _lt_dsymutil=
7750    fi
7751    ;;
7752  esac
7753
7754for ac_header in dlfcn.h
7755do :
7756  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7757"
7758if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7759  cat >>confdefs.h <<_ACEOF
7760#define HAVE_DLFCN_H 1
7761_ACEOF
7762
7763fi
7764
7765done
7766
7767
7768
7769
7770
7771# Set options
7772
7773
7774
7775
7776  enable_win32_dll=no
7777
7778
7779            # Check whether --enable-shared was given.
7780if test "${enable_shared+set}" = set; then :
7781  enableval=$enable_shared; p=${PACKAGE-default}
7782    case $enableval in
7783    yes) enable_shared=yes ;;
7784    no) enable_shared=no ;;
7785    *)
7786      enable_shared=no
7787      # Look at the argument we got.  We use all the common list separators.
7788      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7789      for pkg in $enableval; do
7790	IFS="$lt_save_ifs"
7791	if test "X$pkg" = "X$p"; then
7792	  enable_shared=yes
7793	fi
7794      done
7795      IFS="$lt_save_ifs"
7796      ;;
7797    esac
7798else
7799  enable_shared=yes
7800fi
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812# Check whether --with-pic was given.
7813if test "${with_pic+set}" = set; then :
7814  withval=$with_pic; pic_mode="$withval"
7815else
7816  pic_mode=default
7817fi
7818
7819
7820test -z "$pic_mode" && pic_mode=default
7821
7822
7823
7824
7825
7826
7827
7828  # Check whether --enable-fast-install was given.
7829if test "${enable_fast_install+set}" = set; then :
7830  enableval=$enable_fast_install; p=${PACKAGE-default}
7831    case $enableval in
7832    yes) enable_fast_install=yes ;;
7833    no) enable_fast_install=no ;;
7834    *)
7835      enable_fast_install=no
7836      # Look at the argument we got.  We use all the common list separators.
7837      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7838      for pkg in $enableval; do
7839	IFS="$lt_save_ifs"
7840	if test "X$pkg" = "X$p"; then
7841	  enable_fast_install=yes
7842	fi
7843      done
7844      IFS="$lt_save_ifs"
7845      ;;
7846    esac
7847else
7848  enable_fast_install=yes
7849fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861# This can be used to rebuild libtool when needed
7862LIBTOOL_DEPS="$ltmain"
7863
7864# Always use our own libtool.
7865LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892test -z "$LN_S" && LN_S="ln -s"
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907if test -n "${ZSH_VERSION+set}" ; then
7908   setopt NO_GLOB_SUBST
7909fi
7910
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7912$as_echo_n "checking for objdir... " >&6; }
7913if ${lt_cv_objdir+:} false; then :
7914  $as_echo_n "(cached) " >&6
7915else
7916  rm -f .libs 2>/dev/null
7917mkdir .libs 2>/dev/null
7918if test -d .libs; then
7919  lt_cv_objdir=.libs
7920else
7921  # MS-DOS does not allow filenames that begin with a dot.
7922  lt_cv_objdir=_libs
7923fi
7924rmdir .libs 2>/dev/null
7925fi
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7927$as_echo "$lt_cv_objdir" >&6; }
7928objdir=$lt_cv_objdir
7929
7930
7931
7932
7933
7934cat >>confdefs.h <<_ACEOF
7935#define LT_OBJDIR "$lt_cv_objdir/"
7936_ACEOF
7937
7938
7939
7940
7941case $host_os in
7942aix3*)
7943  # AIX sometimes has problems with the GCC collect2 program.  For some
7944  # reason, if we set the COLLECT_NAMES environment variable, the problems
7945  # vanish in a puff of smoke.
7946  if test "X${COLLECT_NAMES+set}" != Xset; then
7947    COLLECT_NAMES=
7948    export COLLECT_NAMES
7949  fi
7950  ;;
7951esac
7952
7953# Global variables:
7954ofile=libtool
7955can_build_shared=yes
7956
7957# All known linkers require a `.a' archive for static linking (except MSVC,
7958# which needs '.lib').
7959libext=a
7960
7961with_gnu_ld="$lt_cv_prog_gnu_ld"
7962
7963old_CC="$CC"
7964old_CFLAGS="$CFLAGS"
7965
7966# Set sane defaults for various variables
7967test -z "$CC" && CC=cc
7968test -z "$LTCC" && LTCC=$CC
7969test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7970test -z "$LD" && LD=ld
7971test -z "$ac_objext" && ac_objext=o
7972
7973for cc_temp in $compiler""; do
7974  case $cc_temp in
7975    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7976    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7977    \-*) ;;
7978    *) break;;
7979  esac
7980done
7981cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7982
7983
7984# Only perform the check for file, if the check method requires it
7985test -z "$MAGIC_CMD" && MAGIC_CMD=file
7986case $deplibs_check_method in
7987file_magic*)
7988  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7990$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7991if ${lt_cv_path_MAGIC_CMD+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  case $MAGIC_CMD in
7995[\\/*] |  ?:[\\/]*)
7996  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7997  ;;
7998*)
7999  lt_save_MAGIC_CMD="$MAGIC_CMD"
8000  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8002  for ac_dir in $ac_dummy; do
8003    IFS="$lt_save_ifs"
8004    test -z "$ac_dir" && ac_dir=.
8005    if test -f $ac_dir/${ac_tool_prefix}file; then
8006      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8007      if test -n "$file_magic_test_file"; then
8008	case $deplibs_check_method in
8009	"file_magic "*)
8010	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8011	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8013	    $EGREP "$file_magic_regex" > /dev/null; then
8014	    :
8015	  else
8016	    cat <<_LT_EOF 1>&2
8017
8018*** Warning: the command libtool uses to detect shared libraries,
8019*** $file_magic_cmd, produces output that libtool cannot recognize.
8020*** The result is that libtool may fail to recognize shared libraries
8021*** as such.  This will affect the creation of libtool libraries that
8022*** depend on shared libraries, but programs linked with such libtool
8023*** libraries will work regardless of this problem.  Nevertheless, you
8024*** may want to report the problem to your system manager and/or to
8025*** bug-libtool@gnu.org
8026
8027_LT_EOF
8028	  fi ;;
8029	esac
8030      fi
8031      break
8032    fi
8033  done
8034  IFS="$lt_save_ifs"
8035  MAGIC_CMD="$lt_save_MAGIC_CMD"
8036  ;;
8037esac
8038fi
8039
8040MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041if test -n "$MAGIC_CMD"; then
8042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8043$as_echo "$MAGIC_CMD" >&6; }
8044else
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049
8050
8051
8052
8053if test -z "$lt_cv_path_MAGIC_CMD"; then
8054  if test -n "$ac_tool_prefix"; then
8055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8056$as_echo_n "checking for file... " >&6; }
8057if ${lt_cv_path_MAGIC_CMD+:} false; then :
8058  $as_echo_n "(cached) " >&6
8059else
8060  case $MAGIC_CMD in
8061[\\/*] |  ?:[\\/]*)
8062  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8063  ;;
8064*)
8065  lt_save_MAGIC_CMD="$MAGIC_CMD"
8066  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8067  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8068  for ac_dir in $ac_dummy; do
8069    IFS="$lt_save_ifs"
8070    test -z "$ac_dir" && ac_dir=.
8071    if test -f $ac_dir/file; then
8072      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8073      if test -n "$file_magic_test_file"; then
8074	case $deplibs_check_method in
8075	"file_magic "*)
8076	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8077	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8078	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8079	    $EGREP "$file_magic_regex" > /dev/null; then
8080	    :
8081	  else
8082	    cat <<_LT_EOF 1>&2
8083
8084*** Warning: the command libtool uses to detect shared libraries,
8085*** $file_magic_cmd, produces output that libtool cannot recognize.
8086*** The result is that libtool may fail to recognize shared libraries
8087*** as such.  This will affect the creation of libtool libraries that
8088*** depend on shared libraries, but programs linked with such libtool
8089*** libraries will work regardless of this problem.  Nevertheless, you
8090*** may want to report the problem to your system manager and/or to
8091*** bug-libtool@gnu.org
8092
8093_LT_EOF
8094	  fi ;;
8095	esac
8096      fi
8097      break
8098    fi
8099  done
8100  IFS="$lt_save_ifs"
8101  MAGIC_CMD="$lt_save_MAGIC_CMD"
8102  ;;
8103esac
8104fi
8105
8106MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8107if test -n "$MAGIC_CMD"; then
8108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8109$as_echo "$MAGIC_CMD" >&6; }
8110else
8111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
8113fi
8114
8115
8116  else
8117    MAGIC_CMD=:
8118  fi
8119fi
8120
8121  fi
8122  ;;
8123esac
8124
8125# Use C for the default configuration in the libtool script
8126
8127lt_save_CC="$CC"
8128ac_ext=c
8129ac_cpp='$CPP $CPPFLAGS'
8130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8132ac_compiler_gnu=$ac_cv_c_compiler_gnu
8133
8134
8135# Source file extension for C test sources.
8136ac_ext=c
8137
8138# Object file extension for compiled C test sources.
8139objext=o
8140objext=$objext
8141
8142# Code to be used in simple compile tests
8143lt_simple_compile_test_code="int some_variable = 0;"
8144
8145# Code to be used in simple link tests
8146lt_simple_link_test_code='int main(){return(0);}'
8147
8148
8149
8150
8151
8152
8153
8154# If no C compiler was specified, use CC.
8155LTCC=${LTCC-"$CC"}
8156
8157# If no C compiler flags were specified, use CFLAGS.
8158LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8159
8160# Allow CC to be a program name with arguments.
8161compiler=$CC
8162
8163# Save the default compiler, since it gets overwritten when the other
8164# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8165compiler_DEFAULT=$CC
8166
8167# save warnings/boilerplate of simple test code
8168ac_outfile=conftest.$ac_objext
8169echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8170eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8171_lt_compiler_boilerplate=`cat conftest.err`
8172$RM conftest*
8173
8174ac_outfile=conftest.$ac_objext
8175echo "$lt_simple_link_test_code" >conftest.$ac_ext
8176eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8177_lt_linker_boilerplate=`cat conftest.err`
8178$RM -r conftest*
8179
8180
8181if test -n "$compiler"; then
8182
8183lt_prog_compiler_no_builtin_flag=
8184
8185if test "$GCC" = yes; then
8186  case $cc_basename in
8187  nvcc*)
8188    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8189  *)
8190    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8191  esac
8192
8193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8194$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8195if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  lt_cv_prog_compiler_rtti_exceptions=no
8199   ac_outfile=conftest.$ac_objext
8200   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8201   lt_compiler_flag="-fno-rtti -fno-exceptions"
8202   # Insert the option either (1) after the last *FLAGS variable, or
8203   # (2) before a word containing "conftest.", or (3) at the end.
8204   # Note that $ac_compile itself does not contain backslashes and begins
8205   # with a dollar sign (not a hyphen), so the echo should work correctly.
8206   # The option is referenced via a variable to avoid confusing sed.
8207   lt_compile=`echo "$ac_compile" | $SED \
8208   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8209   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8210   -e 's:$: $lt_compiler_flag:'`
8211   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8212   (eval "$lt_compile" 2>conftest.err)
8213   ac_status=$?
8214   cat conftest.err >&5
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   if (exit $ac_status) && test -s "$ac_outfile"; then
8217     # The compiler can only warn and ignore the option if not recognized
8218     # So say no if there are warnings other than the usual output.
8219     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8220     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8221     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8222       lt_cv_prog_compiler_rtti_exceptions=yes
8223     fi
8224   fi
8225   $RM conftest*
8226
8227fi
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8229$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8230
8231if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8232    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8233else
8234    :
8235fi
8236
8237fi
8238
8239
8240
8241
8242
8243
8244  lt_prog_compiler_wl=
8245lt_prog_compiler_pic=
8246lt_prog_compiler_static=
8247
8248
8249  if test "$GCC" = yes; then
8250    lt_prog_compiler_wl='-Wl,'
8251    lt_prog_compiler_static='-static'
8252
8253    case $host_os in
8254      aix*)
8255      # All AIX code is PIC.
8256      if test "$host_cpu" = ia64; then
8257	# AIX 5 now supports IA64 processor
8258	lt_prog_compiler_static='-Bstatic'
8259      fi
8260      ;;
8261
8262    amigaos*)
8263      case $host_cpu in
8264      powerpc)
8265            # see comment about AmigaOS4 .so support
8266            lt_prog_compiler_pic='-fPIC'
8267        ;;
8268      m68k)
8269            # FIXME: we need at least 68020 code to build shared libraries, but
8270            # adding the `-m68020' flag to GCC prevents building anything better,
8271            # like `-m68040'.
8272            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8273        ;;
8274      esac
8275      ;;
8276
8277    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8278      # PIC is the default for these OSes.
8279      ;;
8280
8281    mingw* | cygwin* | pw32* | os2* | cegcc*)
8282      # This hack is so that the source file can tell whether it is being
8283      # built for inclusion in a dll (and should export symbols for example).
8284      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8285      # (--disable-auto-import) libraries
8286      lt_prog_compiler_pic='-DDLL_EXPORT'
8287      ;;
8288
8289    darwin* | rhapsody*)
8290      # PIC is the default on this platform
8291      # Common symbols not allowed in MH_DYLIB files
8292      lt_prog_compiler_pic='-fno-common'
8293      ;;
8294
8295    haiku*)
8296      # PIC is the default for Haiku.
8297      # The "-static" flag exists, but is broken.
8298      lt_prog_compiler_static=
8299      ;;
8300
8301    hpux*)
8302      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8303      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8304      # sets the default TLS model and affects inlining.
8305      case $host_cpu in
8306      hppa*64*)
8307	# +Z the default
8308	;;
8309      *)
8310	lt_prog_compiler_pic='-fPIC'
8311	;;
8312      esac
8313      ;;
8314
8315    interix[3-9]*)
8316      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8317      # Instead, we relocate shared libraries at runtime.
8318      ;;
8319
8320    msdosdjgpp*)
8321      # Just because we use GCC doesn't mean we suddenly get shared libraries
8322      # on systems that don't support them.
8323      lt_prog_compiler_can_build_shared=no
8324      enable_shared=no
8325      ;;
8326
8327    *nto* | *qnx*)
8328      # QNX uses GNU C++, but need to define -shared option too, otherwise
8329      # it will coredump.
8330      lt_prog_compiler_pic='-fPIC -shared'
8331      ;;
8332
8333    sysv4*MP*)
8334      if test -d /usr/nec; then
8335	lt_prog_compiler_pic=-Kconform_pic
8336      fi
8337      ;;
8338
8339    *)
8340      lt_prog_compiler_pic='-fPIC'
8341      ;;
8342    esac
8343
8344    case $cc_basename in
8345    nvcc*) # Cuda Compiler Driver 2.2
8346      lt_prog_compiler_wl='-Xlinker '
8347      lt_prog_compiler_pic='-Xcompiler -fPIC'
8348      ;;
8349    esac
8350  else
8351    # PORTME Check for flag to pass linker flags through the system compiler.
8352    case $host_os in
8353    aix*)
8354      lt_prog_compiler_wl='-Wl,'
8355      if test "$host_cpu" = ia64; then
8356	# AIX 5 now supports IA64 processor
8357	lt_prog_compiler_static='-Bstatic'
8358      else
8359	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8360      fi
8361      ;;
8362
8363    mingw* | cygwin* | pw32* | os2* | cegcc*)
8364      # This hack is so that the source file can tell whether it is being
8365      # built for inclusion in a dll (and should export symbols for example).
8366      lt_prog_compiler_pic='-DDLL_EXPORT'
8367      ;;
8368
8369    hpux9* | hpux10* | hpux11*)
8370      lt_prog_compiler_wl='-Wl,'
8371      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8372      # not for PA HP-UX.
8373      case $host_cpu in
8374      hppa*64*|ia64*)
8375	# +Z the default
8376	;;
8377      *)
8378	lt_prog_compiler_pic='+Z'
8379	;;
8380      esac
8381      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8382      lt_prog_compiler_static='${wl}-a ${wl}archive'
8383      ;;
8384
8385    irix5* | irix6* | nonstopux*)
8386      lt_prog_compiler_wl='-Wl,'
8387      # PIC (with -KPIC) is the default.
8388      lt_prog_compiler_static='-non_shared'
8389      ;;
8390
8391    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8392      case $cc_basename in
8393      # old Intel for x86_64 which still supported -KPIC.
8394      ecc*)
8395	lt_prog_compiler_wl='-Wl,'
8396	lt_prog_compiler_pic='-KPIC'
8397	lt_prog_compiler_static='-static'
8398        ;;
8399      # icc used to be incompatible with GCC.
8400      # ICC 10 doesn't accept -KPIC any more.
8401      icc* | ifort*)
8402	lt_prog_compiler_wl='-Wl,'
8403	lt_prog_compiler_pic='-fPIC'
8404	lt_prog_compiler_static='-static'
8405        ;;
8406      # Lahey Fortran 8.1.
8407      lf95*)
8408	lt_prog_compiler_wl='-Wl,'
8409	lt_prog_compiler_pic='--shared'
8410	lt_prog_compiler_static='--static'
8411	;;
8412      nagfor*)
8413	# NAG Fortran compiler
8414	lt_prog_compiler_wl='-Wl,-Wl,,'
8415	lt_prog_compiler_pic='-PIC'
8416	lt_prog_compiler_static='-Bstatic'
8417	;;
8418      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8419        # Portland Group compilers (*not* the Pentium gcc compiler,
8420	# which looks to be a dead project)
8421	lt_prog_compiler_wl='-Wl,'
8422	lt_prog_compiler_pic='-fpic'
8423	lt_prog_compiler_static='-Bstatic'
8424        ;;
8425      ccc*)
8426        lt_prog_compiler_wl='-Wl,'
8427        # All Alpha code is PIC.
8428        lt_prog_compiler_static='-non_shared'
8429        ;;
8430      xl* | bgxl* | bgf* | mpixl*)
8431	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8432	lt_prog_compiler_wl='-Wl,'
8433	lt_prog_compiler_pic='-qpic'
8434	lt_prog_compiler_static='-qstaticlink'
8435	;;
8436      *)
8437	case `$CC -V 2>&1 | sed 5q` in
8438	*Sun\ F* | *Sun*Fortran*)
8439	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8440	  lt_prog_compiler_pic='-KPIC'
8441	  lt_prog_compiler_static='-Bstatic'
8442	  lt_prog_compiler_wl=''
8443	  ;;
8444	*Sun\ C*)
8445	  # Sun C 5.9
8446	  lt_prog_compiler_pic='-KPIC'
8447	  lt_prog_compiler_static='-Bstatic'
8448	  lt_prog_compiler_wl='-Wl,'
8449	  ;;
8450	esac
8451	;;
8452      esac
8453      ;;
8454
8455    newsos6)
8456      lt_prog_compiler_pic='-KPIC'
8457      lt_prog_compiler_static='-Bstatic'
8458      ;;
8459
8460    *nto* | *qnx*)
8461      # QNX uses GNU C++, but need to define -shared option too, otherwise
8462      # it will coredump.
8463      lt_prog_compiler_pic='-fPIC -shared'
8464      ;;
8465
8466    osf3* | osf4* | osf5*)
8467      lt_prog_compiler_wl='-Wl,'
8468      # All OSF/1 code is PIC.
8469      lt_prog_compiler_static='-non_shared'
8470      ;;
8471
8472    rdos*)
8473      lt_prog_compiler_static='-non_shared'
8474      ;;
8475
8476    solaris*)
8477      lt_prog_compiler_pic='-KPIC'
8478      lt_prog_compiler_static='-Bstatic'
8479      case $cc_basename in
8480      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8481	lt_prog_compiler_wl='-Qoption ld ';;
8482      *)
8483	lt_prog_compiler_wl='-Wl,';;
8484      esac
8485      ;;
8486
8487    sunos4*)
8488      lt_prog_compiler_wl='-Qoption ld '
8489      lt_prog_compiler_pic='-PIC'
8490      lt_prog_compiler_static='-Bstatic'
8491      ;;
8492
8493    sysv4 | sysv4.2uw2* | sysv4.3*)
8494      lt_prog_compiler_wl='-Wl,'
8495      lt_prog_compiler_pic='-KPIC'
8496      lt_prog_compiler_static='-Bstatic'
8497      ;;
8498
8499    sysv4*MP*)
8500      if test -d /usr/nec ;then
8501	lt_prog_compiler_pic='-Kconform_pic'
8502	lt_prog_compiler_static='-Bstatic'
8503      fi
8504      ;;
8505
8506    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8507      lt_prog_compiler_wl='-Wl,'
8508      lt_prog_compiler_pic='-KPIC'
8509      lt_prog_compiler_static='-Bstatic'
8510      ;;
8511
8512    unicos*)
8513      lt_prog_compiler_wl='-Wl,'
8514      lt_prog_compiler_can_build_shared=no
8515      ;;
8516
8517    uts4*)
8518      lt_prog_compiler_pic='-pic'
8519      lt_prog_compiler_static='-Bstatic'
8520      ;;
8521
8522    *)
8523      lt_prog_compiler_can_build_shared=no
8524      ;;
8525    esac
8526  fi
8527
8528case $host_os in
8529  # For platforms which do not support PIC, -DPIC is meaningless:
8530  *djgpp*)
8531    lt_prog_compiler_pic=
8532    ;;
8533  *)
8534    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8535    ;;
8536esac
8537
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8539$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8540if ${lt_cv_prog_compiler_pic+:} false; then :
8541  $as_echo_n "(cached) " >&6
8542else
8543  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8544fi
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8546$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8547lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8548
8549#
8550# Check to make sure the PIC flag actually works.
8551#
8552if test -n "$lt_prog_compiler_pic"; then
8553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8554$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8555if ${lt_cv_prog_compiler_pic_works+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  lt_cv_prog_compiler_pic_works=no
8559   ac_outfile=conftest.$ac_objext
8560   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8561   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8562   # Insert the option either (1) after the last *FLAGS variable, or
8563   # (2) before a word containing "conftest.", or (3) at the end.
8564   # Note that $ac_compile itself does not contain backslashes and begins
8565   # with a dollar sign (not a hyphen), so the echo should work correctly.
8566   # The option is referenced via a variable to avoid confusing sed.
8567   lt_compile=`echo "$ac_compile" | $SED \
8568   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8569   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8570   -e 's:$: $lt_compiler_flag:'`
8571   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8572   (eval "$lt_compile" 2>conftest.err)
8573   ac_status=$?
8574   cat conftest.err >&5
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   if (exit $ac_status) && test -s "$ac_outfile"; then
8577     # The compiler can only warn and ignore the option if not recognized
8578     # So say no if there are warnings other than the usual output.
8579     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8580     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8581     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8582       lt_cv_prog_compiler_pic_works=yes
8583     fi
8584   fi
8585   $RM conftest*
8586
8587fi
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8589$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8590
8591if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8592    case $lt_prog_compiler_pic in
8593     "" | " "*) ;;
8594     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8595     esac
8596else
8597    lt_prog_compiler_pic=
8598     lt_prog_compiler_can_build_shared=no
8599fi
8600
8601fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613#
8614# Check to make sure the static flag actually works.
8615#
8616wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8618$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8619if ${lt_cv_prog_compiler_static_works+:} false; then :
8620  $as_echo_n "(cached) " >&6
8621else
8622  lt_cv_prog_compiler_static_works=no
8623   save_LDFLAGS="$LDFLAGS"
8624   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8625   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8626   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8627     # The linker can only warn and ignore the option if not recognized
8628     # So say no if there are warnings
8629     if test -s conftest.err; then
8630       # Append any errors to the config.log.
8631       cat conftest.err 1>&5
8632       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8633       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634       if diff conftest.exp conftest.er2 >/dev/null; then
8635         lt_cv_prog_compiler_static_works=yes
8636       fi
8637     else
8638       lt_cv_prog_compiler_static_works=yes
8639     fi
8640   fi
8641   $RM -r conftest*
8642   LDFLAGS="$save_LDFLAGS"
8643
8644fi
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8646$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8647
8648if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8649    :
8650else
8651    lt_prog_compiler_static=
8652fi
8653
8654
8655
8656
8657
8658
8659
8660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8661$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8662if ${lt_cv_prog_compiler_c_o+:} false; then :
8663  $as_echo_n "(cached) " >&6
8664else
8665  lt_cv_prog_compiler_c_o=no
8666   $RM -r conftest 2>/dev/null
8667   mkdir conftest
8668   cd conftest
8669   mkdir out
8670   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8671
8672   lt_compiler_flag="-o out/conftest2.$ac_objext"
8673   # Insert the option either (1) after the last *FLAGS variable, or
8674   # (2) before a word containing "conftest.", or (3) at the end.
8675   # Note that $ac_compile itself does not contain backslashes and begins
8676   # with a dollar sign (not a hyphen), so the echo should work correctly.
8677   lt_compile=`echo "$ac_compile" | $SED \
8678   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8679   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8680   -e 's:$: $lt_compiler_flag:'`
8681   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8682   (eval "$lt_compile" 2>out/conftest.err)
8683   ac_status=$?
8684   cat out/conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8687   then
8688     # The compiler can only warn and ignore the option if not recognized
8689     # So say no if there are warnings
8690     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8691     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8692     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8693       lt_cv_prog_compiler_c_o=yes
8694     fi
8695   fi
8696   chmod u+w . 2>&5
8697   $RM conftest*
8698   # SGI C++ compiler will create directory out/ii_files/ for
8699   # template instantiation
8700   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8701   $RM out/* && rmdir out
8702   cd ..
8703   $RM -r conftest
8704   $RM conftest*
8705
8706fi
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8708$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8709
8710
8711
8712
8713
8714
8715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8716$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8717if ${lt_cv_prog_compiler_c_o+:} false; then :
8718  $as_echo_n "(cached) " >&6
8719else
8720  lt_cv_prog_compiler_c_o=no
8721   $RM -r conftest 2>/dev/null
8722   mkdir conftest
8723   cd conftest
8724   mkdir out
8725   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8726
8727   lt_compiler_flag="-o out/conftest2.$ac_objext"
8728   # Insert the option either (1) after the last *FLAGS variable, or
8729   # (2) before a word containing "conftest.", or (3) at the end.
8730   # Note that $ac_compile itself does not contain backslashes and begins
8731   # with a dollar sign (not a hyphen), so the echo should work correctly.
8732   lt_compile=`echo "$ac_compile" | $SED \
8733   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8734   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735   -e 's:$: $lt_compiler_flag:'`
8736   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8737   (eval "$lt_compile" 2>out/conftest.err)
8738   ac_status=$?
8739   cat out/conftest.err >&5
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8742   then
8743     # The compiler can only warn and ignore the option if not recognized
8744     # So say no if there are warnings
8745     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8746     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8747     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8748       lt_cv_prog_compiler_c_o=yes
8749     fi
8750   fi
8751   chmod u+w . 2>&5
8752   $RM conftest*
8753   # SGI C++ compiler will create directory out/ii_files/ for
8754   # template instantiation
8755   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8756   $RM out/* && rmdir out
8757   cd ..
8758   $RM -r conftest
8759   $RM conftest*
8760
8761fi
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8763$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8764
8765
8766
8767
8768hard_links="nottested"
8769if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8770  # do not overwrite the value of need_locks provided by the user
8771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8772$as_echo_n "checking if we can lock with hard links... " >&6; }
8773  hard_links=yes
8774  $RM conftest*
8775  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8776  touch conftest.a
8777  ln conftest.a conftest.b 2>&5 || hard_links=no
8778  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8780$as_echo "$hard_links" >&6; }
8781  if test "$hard_links" = no; then
8782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8783$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8784    need_locks=warn
8785  fi
8786else
8787  need_locks=no
8788fi
8789
8790
8791
8792
8793
8794
8795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8796$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8797
8798  runpath_var=
8799  allow_undefined_flag=
8800  always_export_symbols=no
8801  archive_cmds=
8802  archive_expsym_cmds=
8803  compiler_needs_object=no
8804  enable_shared_with_static_runtimes=no
8805  export_dynamic_flag_spec=
8806  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8807  hardcode_automatic=no
8808  hardcode_direct=no
8809  hardcode_direct_absolute=no
8810  hardcode_libdir_flag_spec=
8811  hardcode_libdir_flag_spec_ld=
8812  hardcode_libdir_separator=
8813  hardcode_minus_L=no
8814  hardcode_shlibpath_var=unsupported
8815  inherit_rpath=no
8816  link_all_deplibs=unknown
8817  module_cmds=
8818  module_expsym_cmds=
8819  old_archive_from_new_cmds=
8820  old_archive_from_expsyms_cmds=
8821  thread_safe_flag_spec=
8822  whole_archive_flag_spec=
8823  # include_expsyms should be a list of space-separated symbols to be *always*
8824  # included in the symbol list
8825  include_expsyms=
8826  # exclude_expsyms can be an extended regexp of symbols to exclude
8827  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8828  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8829  # as well as any symbol that contains `d'.
8830  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8831  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8832  # platforms (ab)use it in PIC code, but their linkers get confused if
8833  # the symbol is explicitly referenced.  Since portable code cannot
8834  # rely on this symbol name, it's probably fine to never include it in
8835  # preloaded symbol tables.
8836  # Exclude shared library initialization/finalization symbols.
8837  extract_expsyms_cmds=
8838
8839  case $host_os in
8840  cygwin* | mingw* | pw32* | cegcc*)
8841    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8842    # When not using gcc, we currently assume that we are using
8843    # Microsoft Visual C++.
8844    if test "$GCC" != yes; then
8845      with_gnu_ld=no
8846    fi
8847    ;;
8848  interix*)
8849    # we just hope/assume this is gcc and not c89 (= MSVC++)
8850    with_gnu_ld=yes
8851    ;;
8852  openbsd*)
8853    with_gnu_ld=no
8854    ;;
8855  esac
8856
8857  ld_shlibs=yes
8858
8859  # On some targets, GNU ld is compatible enough with the native linker
8860  # that we're better off using the native interface for both.
8861  lt_use_gnu_ld_interface=no
8862  if test "$with_gnu_ld" = yes; then
8863    case $host_os in
8864      aix*)
8865	# The AIX port of GNU ld has always aspired to compatibility
8866	# with the native linker.  However, as the warning in the GNU ld
8867	# block says, versions before 2.19.5* couldn't really create working
8868	# shared libraries, regardless of the interface used.
8869	case `$LD -v 2>&1` in
8870	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8871	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8872	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8873	  *)
8874	    lt_use_gnu_ld_interface=yes
8875	    ;;
8876	esac
8877	;;
8878      *)
8879	lt_use_gnu_ld_interface=yes
8880	;;
8881    esac
8882  fi
8883
8884  if test "$lt_use_gnu_ld_interface" = yes; then
8885    # If archive_cmds runs LD, not CC, wlarc should be empty
8886    wlarc='${wl}'
8887
8888    # Set some defaults for GNU ld with shared library support. These
8889    # are reset later if shared libraries are not supported. Putting them
8890    # here allows them to be overridden if necessary.
8891    runpath_var=LD_RUN_PATH
8892    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8893    export_dynamic_flag_spec='${wl}--export-dynamic'
8894    # ancient GNU ld didn't support --whole-archive et. al.
8895    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8896      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8897    else
8898      whole_archive_flag_spec=
8899    fi
8900    supports_anon_versioning=no
8901    case `$LD -v 2>&1` in
8902      *GNU\ gold*) supports_anon_versioning=yes ;;
8903      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8904      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8905      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8906      *\ 2.11.*) ;; # other 2.11 versions
8907      *) supports_anon_versioning=yes ;;
8908    esac
8909
8910    # See if GNU ld supports shared libraries.
8911    case $host_os in
8912    aix[3-9]*)
8913      # On AIX/PPC, the GNU linker is very broken
8914      if test "$host_cpu" != ia64; then
8915	ld_shlibs=no
8916	cat <<_LT_EOF 1>&2
8917
8918*** Warning: the GNU linker, at least up to release 2.19, is reported
8919*** to be unable to reliably create shared libraries on AIX.
8920*** Therefore, libtool is disabling shared libraries support.  If you
8921*** really care for shared libraries, you may want to install binutils
8922*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8923*** You will then need to restart the configuration process.
8924
8925_LT_EOF
8926      fi
8927      ;;
8928
8929    amigaos*)
8930      case $host_cpu in
8931      powerpc)
8932            # see comment about AmigaOS4 .so support
8933            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934            archive_expsym_cmds=''
8935        ;;
8936      m68k)
8937            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)'
8938            hardcode_libdir_flag_spec='-L$libdir'
8939            hardcode_minus_L=yes
8940        ;;
8941      esac
8942      ;;
8943
8944    beos*)
8945      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8946	allow_undefined_flag=unsupported
8947	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8948	# support --undefined.  This deserves some investigation.  FIXME
8949	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950      else
8951	ld_shlibs=no
8952      fi
8953      ;;
8954
8955    cygwin* | mingw* | pw32* | cegcc*)
8956      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8957      # as there is no search path for DLLs.
8958      hardcode_libdir_flag_spec='-L$libdir'
8959      export_dynamic_flag_spec='${wl}--export-all-symbols'
8960      allow_undefined_flag=unsupported
8961      always_export_symbols=no
8962      enable_shared_with_static_runtimes=yes
8963      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'
8964      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8965
8966      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8967        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8968	# If the export-symbols file already is a .def file (1st line
8969	# is EXPORTS), use it as is; otherwise, prepend...
8970	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8971	  cp $export_symbols $output_objdir/$soname.def;
8972	else
8973	  echo EXPORTS > $output_objdir/$soname.def;
8974	  cat $export_symbols >> $output_objdir/$soname.def;
8975	fi~
8976	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8977      else
8978	ld_shlibs=no
8979      fi
8980      ;;
8981
8982    haiku*)
8983      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984      link_all_deplibs=yes
8985      ;;
8986
8987    interix[3-9]*)
8988      hardcode_direct=no
8989      hardcode_shlibpath_var=no
8990      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8991      export_dynamic_flag_spec='${wl}-E'
8992      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8993      # Instead, shared libraries are loaded at an image base (0x10000000 by
8994      # default) and relocated if they conflict, which is a slow very memory
8995      # consuming and fragmenting process.  To avoid this, we pick a random,
8996      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8997      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8998      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8999      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'
9000      ;;
9001
9002    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9003      tmp_diet=no
9004      if test "$host_os" = linux-dietlibc; then
9005	case $cc_basename in
9006	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9007	esac
9008      fi
9009      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9010	 && test "$tmp_diet" = no
9011      then
9012	tmp_addflag=' $pic_flag'
9013	tmp_sharedflag='-shared'
9014	case $cc_basename,$host_cpu in
9015        pgcc*)				# Portland Group C compiler
9016	  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'
9017	  tmp_addflag=' $pic_flag'
9018	  ;;
9019	pgf77* | pgf90* | pgf95* | pgfortran*)
9020					# Portland Group f77 and f90 compilers
9021	  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'
9022	  tmp_addflag=' $pic_flag -Mnomain' ;;
9023	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9024	  tmp_addflag=' -i_dynamic' ;;
9025	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9026	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9027	ifc* | ifort*)			# Intel Fortran compiler
9028	  tmp_addflag=' -nofor_main' ;;
9029	lf95*)				# Lahey Fortran 8.1
9030	  whole_archive_flag_spec=
9031	  tmp_sharedflag='--shared' ;;
9032	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9033	  tmp_sharedflag='-qmkshrobj'
9034	  tmp_addflag= ;;
9035	nvcc*)	# Cuda Compiler Driver 2.2
9036	  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'
9037	  compiler_needs_object=yes
9038	  ;;
9039	esac
9040	case `$CC -V 2>&1 | sed 5q` in
9041	*Sun\ C*)			# Sun C 5.9
9042	  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'
9043	  compiler_needs_object=yes
9044	  tmp_sharedflag='-G' ;;
9045	*Sun\ F*)			# Sun Fortran 8.3
9046	  tmp_sharedflag='-G' ;;
9047	esac
9048	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049
9050        if test "x$supports_anon_versioning" = xyes; then
9051          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9052	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9053	    echo "local: *; };" >> $output_objdir/$libname.ver~
9054	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9055        fi
9056
9057	case $cc_basename in
9058	xlf* | bgf* | bgxlf* | mpixlf*)
9059	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9060	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9061	  hardcode_libdir_flag_spec=
9062	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9063	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9064	  if test "x$supports_anon_versioning" = xyes; then
9065	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9066	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9067	      echo "local: *; };" >> $output_objdir/$libname.ver~
9068	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9069	  fi
9070	  ;;
9071	esac
9072      else
9073        ld_shlibs=no
9074      fi
9075      ;;
9076
9077    netbsd*)
9078      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9079	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9080	wlarc=
9081      else
9082	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9083	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9084      fi
9085      ;;
9086
9087    solaris*)
9088      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9089	ld_shlibs=no
9090	cat <<_LT_EOF 1>&2
9091
9092*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9093*** create shared libraries on Solaris systems.  Therefore, libtool
9094*** is disabling shared libraries support.  We urge you to upgrade GNU
9095*** binutils to release 2.9.1 or newer.  Another option is to modify
9096*** your PATH or compiler configuration so that the native linker is
9097*** used, and then restart.
9098
9099_LT_EOF
9100      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9101	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9103      else
9104	ld_shlibs=no
9105      fi
9106      ;;
9107
9108    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9109      case `$LD -v 2>&1` in
9110        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9111	ld_shlibs=no
9112	cat <<_LT_EOF 1>&2
9113
9114*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9115*** reliably create shared libraries on SCO systems.  Therefore, libtool
9116*** is disabling shared libraries support.  We urge you to upgrade GNU
9117*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9118*** your PATH or compiler configuration so that the native linker is
9119*** used, and then restart.
9120
9121_LT_EOF
9122	;;
9123	*)
9124	  # For security reasons, it is highly recommended that you always
9125	  # use absolute paths for naming shared libraries, and exclude the
9126	  # DT_RUNPATH tag from executables and libraries.  But doing so
9127	  # requires that you compile everything twice, which is a pain.
9128	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9129	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9130	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9131	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9132	  else
9133	    ld_shlibs=no
9134	  fi
9135	;;
9136      esac
9137      ;;
9138
9139    sunos4*)
9140      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9141      wlarc=
9142      hardcode_direct=yes
9143      hardcode_shlibpath_var=no
9144      ;;
9145
9146    *)
9147      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9148	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9150      else
9151	ld_shlibs=no
9152      fi
9153      ;;
9154    esac
9155
9156    if test "$ld_shlibs" = no; then
9157      runpath_var=
9158      hardcode_libdir_flag_spec=
9159      export_dynamic_flag_spec=
9160      whole_archive_flag_spec=
9161    fi
9162  else
9163    # PORTME fill in a description of your system's linker (not GNU ld)
9164    case $host_os in
9165    aix3*)
9166      allow_undefined_flag=unsupported
9167      always_export_symbols=yes
9168      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'
9169      # Note: this linker hardcodes the directories in LIBPATH if there
9170      # are no directories specified by -L.
9171      hardcode_minus_L=yes
9172      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9173	# Neither direct hardcoding nor static linking is supported with a
9174	# broken collect2.
9175	hardcode_direct=unsupported
9176      fi
9177      ;;
9178
9179    aix[4-9]*)
9180      if test "$host_cpu" = ia64; then
9181	# On IA64, the linker does run time linking by default, so we don't
9182	# have to do anything special.
9183	aix_use_runtimelinking=no
9184	exp_sym_flag='-Bexport'
9185	no_entry_flag=""
9186      else
9187	# If we're using GNU nm, then we don't want the "-C" option.
9188	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9189	# Also, AIX nm treats weak defined symbols like other global
9190	# defined symbols, whereas GNU nm marks them as "W".
9191	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9192	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9193	else
9194	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9195	fi
9196	aix_use_runtimelinking=no
9197
9198	# Test if we are trying to use run time linking or normal
9199	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9200	# need to do runtime linking.
9201	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9202	  for ld_flag in $LDFLAGS; do
9203	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9204	    aix_use_runtimelinking=yes
9205	    break
9206	  fi
9207	  done
9208	  ;;
9209	esac
9210
9211	exp_sym_flag='-bexport'
9212	no_entry_flag='-bnoentry'
9213      fi
9214
9215      # When large executables or shared objects are built, AIX ld can
9216      # have problems creating the table of contents.  If linking a library
9217      # or program results in "error TOC overflow" add -mminimal-toc to
9218      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9219      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9220
9221      archive_cmds=''
9222      hardcode_direct=yes
9223      hardcode_direct_absolute=yes
9224      hardcode_libdir_separator=':'
9225      link_all_deplibs=yes
9226      file_list_spec='${wl}-f,'
9227
9228      if test "$GCC" = yes; then
9229	case $host_os in aix4.[012]|aix4.[012].*)
9230	# We only want to do this on AIX 4.2 and lower, the check
9231	# below for broken collect2 doesn't work under 4.3+
9232	  collect2name=`${CC} -print-prog-name=collect2`
9233	  if test -f "$collect2name" &&
9234	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9235	  then
9236	  # We have reworked collect2
9237	  :
9238	  else
9239	  # We have old collect2
9240	  hardcode_direct=unsupported
9241	  # It fails to find uninstalled libraries when the uninstalled
9242	  # path is not listed in the libpath.  Setting hardcode_minus_L
9243	  # to unsupported forces relinking
9244	  hardcode_minus_L=yes
9245	  hardcode_libdir_flag_spec='-L$libdir'
9246	  hardcode_libdir_separator=
9247	  fi
9248	  ;;
9249	esac
9250	shared_flag='-shared'
9251	if test "$aix_use_runtimelinking" = yes; then
9252	  shared_flag="$shared_flag "'${wl}-G'
9253	fi
9254      else
9255	# not using gcc
9256	if test "$host_cpu" = ia64; then
9257	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9258	# chokes on -Wl,-G. The following line is correct:
9259	  shared_flag='-G'
9260	else
9261	  if test "$aix_use_runtimelinking" = yes; then
9262	    shared_flag='${wl}-G'
9263	  else
9264	    shared_flag='${wl}-bM:SRE'
9265	  fi
9266	fi
9267      fi
9268
9269      export_dynamic_flag_spec='${wl}-bexpall'
9270      # It seems that -bexpall does not export symbols beginning with
9271      # underscore (_), so it is better to generate a list of symbols to export.
9272      always_export_symbols=yes
9273      if test "$aix_use_runtimelinking" = yes; then
9274	# Warning - without using the other runtime loading flags (-brtl),
9275	# -berok will link without error, but may produce a broken library.
9276	allow_undefined_flag='-berok'
9277        # Determine the default libpath from the value encoded in an
9278        # empty executable.
9279        if test "${lt_cv_aix_libpath+set}" = set; then
9280  aix_libpath=$lt_cv_aix_libpath
9281else
9282  if ${lt_cv_aix_libpath_+:} false; then :
9283  $as_echo_n "(cached) " >&6
9284else
9285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287
9288int
9289main ()
9290{
9291
9292  ;
9293  return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_link "$LINENO"; then :
9297
9298  lt_aix_libpath_sed='
9299      /Import File Strings/,/^$/ {
9300	  /^0/ {
9301	      s/^0  *\([^ ]*\) *$/\1/
9302	      p
9303	  }
9304      }'
9305  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9306  # Check for a 64-bit object if we didn't find anything.
9307  if test -z "$lt_cv_aix_libpath_"; then
9308    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9309  fi
9310fi
9311rm -f core conftest.err conftest.$ac_objext \
9312    conftest$ac_exeext conftest.$ac_ext
9313  if test -z "$lt_cv_aix_libpath_"; then
9314    lt_cv_aix_libpath_="/usr/lib:/lib"
9315  fi
9316
9317fi
9318
9319  aix_libpath=$lt_cv_aix_libpath_
9320fi
9321
9322        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9323        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9324      else
9325	if test "$host_cpu" = ia64; then
9326	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9327	  allow_undefined_flag="-z nodefs"
9328	  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"
9329	else
9330	 # Determine the default libpath from the value encoded in an
9331	 # empty executable.
9332	 if test "${lt_cv_aix_libpath+set}" = set; then
9333  aix_libpath=$lt_cv_aix_libpath
9334else
9335  if ${lt_cv_aix_libpath_+:} false; then :
9336  $as_echo_n "(cached) " >&6
9337else
9338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339/* end confdefs.h.  */
9340
9341int
9342main ()
9343{
9344
9345  ;
9346  return 0;
9347}
9348_ACEOF
9349if ac_fn_c_try_link "$LINENO"; then :
9350
9351  lt_aix_libpath_sed='
9352      /Import File Strings/,/^$/ {
9353	  /^0/ {
9354	      s/^0  *\([^ ]*\) *$/\1/
9355	      p
9356	  }
9357      }'
9358  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9359  # Check for a 64-bit object if we didn't find anything.
9360  if test -z "$lt_cv_aix_libpath_"; then
9361    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9362  fi
9363fi
9364rm -f core conftest.err conftest.$ac_objext \
9365    conftest$ac_exeext conftest.$ac_ext
9366  if test -z "$lt_cv_aix_libpath_"; then
9367    lt_cv_aix_libpath_="/usr/lib:/lib"
9368  fi
9369
9370fi
9371
9372  aix_libpath=$lt_cv_aix_libpath_
9373fi
9374
9375	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376	  # Warning - without using the other run time loading flags,
9377	  # -berok will link without error, but may produce a broken library.
9378	  no_undefined_flag=' ${wl}-bernotok'
9379	  allow_undefined_flag=' ${wl}-berok'
9380	  if test "$with_gnu_ld" = yes; then
9381	    # We only use this code for GNU lds that support --whole-archive.
9382	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9383	  else
9384	    # Exported symbols can be pulled into shared objects from archives
9385	    whole_archive_flag_spec='$convenience'
9386	  fi
9387	  archive_cmds_need_lc=yes
9388	  # This is similar to how AIX traditionally builds its shared libraries.
9389	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9390	fi
9391      fi
9392      ;;
9393
9394    amigaos*)
9395      case $host_cpu in
9396      powerpc)
9397            # see comment about AmigaOS4 .so support
9398            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399            archive_expsym_cmds=''
9400        ;;
9401      m68k)
9402            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)'
9403            hardcode_libdir_flag_spec='-L$libdir'
9404            hardcode_minus_L=yes
9405        ;;
9406      esac
9407      ;;
9408
9409    bsdi[45]*)
9410      export_dynamic_flag_spec=-rdynamic
9411      ;;
9412
9413    cygwin* | mingw* | pw32* | cegcc*)
9414      # When not using gcc, we currently assume that we are using
9415      # Microsoft Visual C++.
9416      # hardcode_libdir_flag_spec is actually meaningless, as there is
9417      # no search path for DLLs.
9418      case $cc_basename in
9419      cl*)
9420	# Native MSVC
9421	hardcode_libdir_flag_spec=' '
9422	allow_undefined_flag=unsupported
9423	always_export_symbols=yes
9424	file_list_spec='@'
9425	# Tell ltmain to make .lib files, not .a files.
9426	libext=lib
9427	# Tell ltmain to make .dll files, not .so files.
9428	shrext_cmds=".dll"
9429	# FIXME: Setting linknames here is a bad hack.
9430	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9431	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9432	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9433	  else
9434	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9435	  fi~
9436	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9437	  linknames='
9438	# The linker will not automatically build a static lib if we build a DLL.
9439	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9440	enable_shared_with_static_runtimes=yes
9441	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9442	# Don't use ranlib
9443	old_postinstall_cmds='chmod 644 $oldlib'
9444	postlink_cmds='lt_outputfile="@OUTPUT@"~
9445	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9446	  case $lt_outputfile in
9447	    *.exe|*.EXE) ;;
9448	    *)
9449	      lt_outputfile="$lt_outputfile.exe"
9450	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9451	      ;;
9452	  esac~
9453	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9454	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9455	    $RM "$lt_outputfile.manifest";
9456	  fi'
9457	;;
9458      *)
9459	# Assume MSVC wrapper
9460	hardcode_libdir_flag_spec=' '
9461	allow_undefined_flag=unsupported
9462	# Tell ltmain to make .lib files, not .a files.
9463	libext=lib
9464	# Tell ltmain to make .dll files, not .so files.
9465	shrext_cmds=".dll"
9466	# FIXME: Setting linknames here is a bad hack.
9467	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9468	# The linker will automatically build a .lib file if we build a DLL.
9469	old_archive_from_new_cmds='true'
9470	# FIXME: Should let the user specify the lib program.
9471	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9472	enable_shared_with_static_runtimes=yes
9473	;;
9474      esac
9475      ;;
9476
9477    darwin* | rhapsody*)
9478
9479
9480  archive_cmds_need_lc=no
9481  hardcode_direct=no
9482  hardcode_automatic=yes
9483  hardcode_shlibpath_var=unsupported
9484  if test "$lt_cv_ld_force_load" = "yes"; then
9485    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\"`'
9486  else
9487    whole_archive_flag_spec=''
9488  fi
9489  link_all_deplibs=yes
9490  allow_undefined_flag="$_lt_dar_allow_undefined"
9491  case $cc_basename in
9492     ifort*) _lt_dar_can_shared=yes ;;
9493     *) _lt_dar_can_shared=$GCC ;;
9494  esac
9495  if test "$_lt_dar_can_shared" = "yes"; then
9496    output_verbose_link_cmd=func_echo_all
9497    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9498    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9499    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}"
9500    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}"
9501
9502  else
9503  ld_shlibs=no
9504  fi
9505
9506      ;;
9507
9508    dgux*)
9509      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510      hardcode_libdir_flag_spec='-L$libdir'
9511      hardcode_shlibpath_var=no
9512      ;;
9513
9514    freebsd1*)
9515      ld_shlibs=no
9516      ;;
9517
9518    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9519    # support.  Future versions do this automatically, but an explicit c++rt0.o
9520    # does not break anything, and helps significantly (at the cost of a little
9521    # extra space).
9522    freebsd2.2*)
9523      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9524      hardcode_libdir_flag_spec='-R$libdir'
9525      hardcode_direct=yes
9526      hardcode_shlibpath_var=no
9527      ;;
9528
9529    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9530    freebsd2*)
9531      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9532      hardcode_direct=yes
9533      hardcode_minus_L=yes
9534      hardcode_shlibpath_var=no
9535      ;;
9536
9537    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9538    freebsd* | dragonfly*)
9539      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540      hardcode_libdir_flag_spec='-R$libdir'
9541      hardcode_direct=yes
9542      hardcode_shlibpath_var=no
9543      ;;
9544
9545    hpux9*)
9546      if test "$GCC" = yes; then
9547	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9548      else
9549	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9550      fi
9551      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9552      hardcode_libdir_separator=:
9553      hardcode_direct=yes
9554
9555      # hardcode_minus_L: Not really in the search PATH,
9556      # but as the default location of the library.
9557      hardcode_minus_L=yes
9558      export_dynamic_flag_spec='${wl}-E'
9559      ;;
9560
9561    hpux10*)
9562      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9563	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9564      else
9565	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9566      fi
9567      if test "$with_gnu_ld" = no; then
9568	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9569	hardcode_libdir_flag_spec_ld='+b $libdir'
9570	hardcode_libdir_separator=:
9571	hardcode_direct=yes
9572	hardcode_direct_absolute=yes
9573	export_dynamic_flag_spec='${wl}-E'
9574	# hardcode_minus_L: Not really in the search PATH,
9575	# but as the default location of the library.
9576	hardcode_minus_L=yes
9577      fi
9578      ;;
9579
9580    hpux11*)
9581      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9582	case $host_cpu in
9583	hppa*64*)
9584	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9585	  ;;
9586	ia64*)
9587	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9588	  ;;
9589	*)
9590	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9591	  ;;
9592	esac
9593      else
9594	case $host_cpu in
9595	hppa*64*)
9596	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9597	  ;;
9598	ia64*)
9599	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9600	  ;;
9601	*)
9602
9603	  # Older versions of the 11.00 compiler do not understand -b yet
9604	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9605	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9606$as_echo_n "checking if $CC understands -b... " >&6; }
9607if ${lt_cv_prog_compiler__b+:} false; then :
9608  $as_echo_n "(cached) " >&6
9609else
9610  lt_cv_prog_compiler__b=no
9611   save_LDFLAGS="$LDFLAGS"
9612   LDFLAGS="$LDFLAGS -b"
9613   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9614   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9615     # The linker can only warn and ignore the option if not recognized
9616     # So say no if there are warnings
9617     if test -s conftest.err; then
9618       # Append any errors to the config.log.
9619       cat conftest.err 1>&5
9620       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9621       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9622       if diff conftest.exp conftest.er2 >/dev/null; then
9623         lt_cv_prog_compiler__b=yes
9624       fi
9625     else
9626       lt_cv_prog_compiler__b=yes
9627     fi
9628   fi
9629   $RM -r conftest*
9630   LDFLAGS="$save_LDFLAGS"
9631
9632fi
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9634$as_echo "$lt_cv_prog_compiler__b" >&6; }
9635
9636if test x"$lt_cv_prog_compiler__b" = xyes; then
9637    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9638else
9639    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9640fi
9641
9642	  ;;
9643	esac
9644      fi
9645      if test "$with_gnu_ld" = no; then
9646	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9647	hardcode_libdir_separator=:
9648
9649	case $host_cpu in
9650	hppa*64*|ia64*)
9651	  hardcode_direct=no
9652	  hardcode_shlibpath_var=no
9653	  ;;
9654	*)
9655	  hardcode_direct=yes
9656	  hardcode_direct_absolute=yes
9657	  export_dynamic_flag_spec='${wl}-E'
9658
9659	  # hardcode_minus_L: Not really in the search PATH,
9660	  # but as the default location of the library.
9661	  hardcode_minus_L=yes
9662	  ;;
9663	esac
9664      fi
9665      ;;
9666
9667    irix5* | irix6* | nonstopux*)
9668      if test "$GCC" = yes; then
9669	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'
9670	# Try to use the -exported_symbol ld option, if it does not
9671	# work, assume that -exports_file does not work either and
9672	# implicitly export all symbols.
9673	# This should be the same for all languages, so no per-tag cache variable.
9674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9675$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9676if ${lt_cv_irix_exported_symbol+:} false; then :
9677  $as_echo_n "(cached) " >&6
9678else
9679  save_LDFLAGS="$LDFLAGS"
9680	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9681	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h.  */
9683int foo (void) { return 0; }
9684_ACEOF
9685if ac_fn_c_try_link "$LINENO"; then :
9686  lt_cv_irix_exported_symbol=yes
9687else
9688  lt_cv_irix_exported_symbol=no
9689fi
9690rm -f core conftest.err conftest.$ac_objext \
9691    conftest$ac_exeext conftest.$ac_ext
9692           LDFLAGS="$save_LDFLAGS"
9693fi
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9695$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9696	if test "$lt_cv_irix_exported_symbol" = yes; then
9697          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'
9698	fi
9699      else
9700	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'
9701	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'
9702      fi
9703      archive_cmds_need_lc='no'
9704      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9705      hardcode_libdir_separator=:
9706      inherit_rpath=yes
9707      link_all_deplibs=yes
9708      ;;
9709
9710    netbsd*)
9711      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9712	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9713      else
9714	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9715      fi
9716      hardcode_libdir_flag_spec='-R$libdir'
9717      hardcode_direct=yes
9718      hardcode_shlibpath_var=no
9719      ;;
9720
9721    newsos6)
9722      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723      hardcode_direct=yes
9724      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725      hardcode_libdir_separator=:
9726      hardcode_shlibpath_var=no
9727      ;;
9728
9729    *nto* | *qnx*)
9730      ;;
9731
9732    openbsd*)
9733      if test -f /usr/libexec/ld.so; then
9734	hardcode_direct=yes
9735	hardcode_shlibpath_var=no
9736	hardcode_direct_absolute=yes
9737	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9738	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9739	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9740	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9741	  export_dynamic_flag_spec='${wl}-E'
9742	else
9743	  case $host_os in
9744	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9745	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9746	     hardcode_libdir_flag_spec='-R$libdir'
9747	     ;;
9748	   *)
9749	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9750	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9751	     ;;
9752	  esac
9753	fi
9754      else
9755	ld_shlibs=no
9756      fi
9757      ;;
9758
9759    os2*)
9760      hardcode_libdir_flag_spec='-L$libdir'
9761      hardcode_minus_L=yes
9762      allow_undefined_flag=unsupported
9763      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9764      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9765      ;;
9766
9767    osf3*)
9768      if test "$GCC" = yes; then
9769	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9770	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'
9771      else
9772	allow_undefined_flag=' -expect_unresolved \*'
9773	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'
9774      fi
9775      archive_cmds_need_lc='no'
9776      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9777      hardcode_libdir_separator=:
9778      ;;
9779
9780    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9781      if test "$GCC" = yes; then
9782	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9783	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'
9784	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9785      else
9786	allow_undefined_flag=' -expect_unresolved \*'
9787	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'
9788	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~
9789	$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'
9790
9791	# Both c and cxx compiler support -rpath directly
9792	hardcode_libdir_flag_spec='-rpath $libdir'
9793      fi
9794      archive_cmds_need_lc='no'
9795      hardcode_libdir_separator=:
9796      ;;
9797
9798    solaris*)
9799      no_undefined_flag=' -z defs'
9800      if test "$GCC" = yes; then
9801	wlarc='${wl}'
9802	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9803	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9804	  $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'
9805      else
9806	case `$CC -V 2>&1` in
9807	*"Compilers 5.0"*)
9808	  wlarc=''
9809	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9811	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9812	  ;;
9813	*)
9814	  wlarc='${wl}'
9815	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9816	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9817	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9818	  ;;
9819	esac
9820      fi
9821      hardcode_libdir_flag_spec='-R$libdir'
9822      hardcode_shlibpath_var=no
9823      case $host_os in
9824      solaris2.[0-5] | solaris2.[0-5].*) ;;
9825      *)
9826	# The compiler driver will combine and reorder linker options,
9827	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9828	# but is careful enough not to reorder.
9829	# Supported since Solaris 2.6 (maybe 2.5.1?)
9830	if test "$GCC" = yes; then
9831	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9832	else
9833	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9834	fi
9835	;;
9836      esac
9837      link_all_deplibs=yes
9838      ;;
9839
9840    sunos4*)
9841      if test "x$host_vendor" = xsequent; then
9842	# Use $CC to link under sequent, because it throws in some extra .o
9843	# files that make .init and .fini sections work.
9844	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9845      else
9846	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9847      fi
9848      hardcode_libdir_flag_spec='-L$libdir'
9849      hardcode_direct=yes
9850      hardcode_minus_L=yes
9851      hardcode_shlibpath_var=no
9852      ;;
9853
9854    sysv4)
9855      case $host_vendor in
9856	sni)
9857	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858	  hardcode_direct=yes # is this really true???
9859	;;
9860	siemens)
9861	  ## LD is ld it makes a PLAMLIB
9862	  ## CC just makes a GrossModule.
9863	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9864	  reload_cmds='$CC -r -o $output$reload_objs'
9865	  hardcode_direct=no
9866        ;;
9867	motorola)
9868	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9870	;;
9871      esac
9872      runpath_var='LD_RUN_PATH'
9873      hardcode_shlibpath_var=no
9874      ;;
9875
9876    sysv4.3*)
9877      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878      hardcode_shlibpath_var=no
9879      export_dynamic_flag_spec='-Bexport'
9880      ;;
9881
9882    sysv4*MP*)
9883      if test -d /usr/nec; then
9884	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9885	hardcode_shlibpath_var=no
9886	runpath_var=LD_RUN_PATH
9887	hardcode_runpath_var=yes
9888	ld_shlibs=yes
9889      fi
9890      ;;
9891
9892    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9893      no_undefined_flag='${wl}-z,text'
9894      archive_cmds_need_lc=no
9895      hardcode_shlibpath_var=no
9896      runpath_var='LD_RUN_PATH'
9897
9898      if test "$GCC" = yes; then
9899	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9901      else
9902	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9903	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9904      fi
9905      ;;
9906
9907    sysv5* | sco3.2v5* | sco5v6*)
9908      # Note: We can NOT use -z defs as we might desire, because we do not
9909      # link with -lc, and that would cause any symbols used from libc to
9910      # always be unresolved, which means just about no library would
9911      # ever link correctly.  If we're not using GNU ld we use -z text
9912      # though, which does catch some bad symbols but isn't as heavy-handed
9913      # as -z defs.
9914      no_undefined_flag='${wl}-z,text'
9915      allow_undefined_flag='${wl}-z,nodefs'
9916      archive_cmds_need_lc=no
9917      hardcode_shlibpath_var=no
9918      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9919      hardcode_libdir_separator=':'
9920      link_all_deplibs=yes
9921      export_dynamic_flag_spec='${wl}-Bexport'
9922      runpath_var='LD_RUN_PATH'
9923
9924      if test "$GCC" = yes; then
9925	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9926	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9927      else
9928	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9929	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9930      fi
9931      ;;
9932
9933    uts4*)
9934      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935      hardcode_libdir_flag_spec='-L$libdir'
9936      hardcode_shlibpath_var=no
9937      ;;
9938
9939    *)
9940      ld_shlibs=no
9941      ;;
9942    esac
9943
9944    if test x$host_vendor = xsni; then
9945      case $host in
9946      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9947	export_dynamic_flag_spec='${wl}-Blargedynsym'
9948	;;
9949      esac
9950    fi
9951  fi
9952
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9954$as_echo "$ld_shlibs" >&6; }
9955test "$ld_shlibs" = no && can_build_shared=no
9956
9957with_gnu_ld=$with_gnu_ld
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973#
9974# Do we need to explicitly link libc?
9975#
9976case "x$archive_cmds_need_lc" in
9977x|xyes)
9978  # Assume -lc should be added
9979  archive_cmds_need_lc=yes
9980
9981  if test "$enable_shared" = yes && test "$GCC" = yes; then
9982    case $archive_cmds in
9983    *'~'*)
9984      # FIXME: we may have to deal with multi-command sequences.
9985      ;;
9986    '$CC '*)
9987      # Test whether the compiler implicitly links with -lc since on some
9988      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9989      # to ld, don't add -lc before -lgcc.
9990      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9991$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9992if ${lt_cv_archive_cmds_need_lc+:} false; then :
9993  $as_echo_n "(cached) " >&6
9994else
9995  $RM conftest*
9996	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9997
9998	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9999  (eval $ac_compile) 2>&5
10000  ac_status=$?
10001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10002  test $ac_status = 0; } 2>conftest.err; then
10003	  soname=conftest
10004	  lib=conftest
10005	  libobjs=conftest.$ac_objext
10006	  deplibs=
10007	  wl=$lt_prog_compiler_wl
10008	  pic_flag=$lt_prog_compiler_pic
10009	  compiler_flags=-v
10010	  linker_flags=-v
10011	  verstring=
10012	  output_objdir=.
10013	  libname=conftest
10014	  lt_save_allow_undefined_flag=$allow_undefined_flag
10015	  allow_undefined_flag=
10016	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10017  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10018  ac_status=$?
10019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020  test $ac_status = 0; }
10021	  then
10022	    lt_cv_archive_cmds_need_lc=no
10023	  else
10024	    lt_cv_archive_cmds_need_lc=yes
10025	  fi
10026	  allow_undefined_flag=$lt_save_allow_undefined_flag
10027	else
10028	  cat conftest.err 1>&5
10029	fi
10030	$RM conftest*
10031
10032fi
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10034$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10035      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10036      ;;
10037    esac
10038  fi
10039  ;;
10040esac
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10199$as_echo_n "checking dynamic linker characteristics... " >&6; }
10200
10201if test "$GCC" = yes; then
10202  case $host_os in
10203    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10204    *) lt_awk_arg="/^libraries:/" ;;
10205  esac
10206  case $host_os in
10207    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10208    *) lt_sed_strip_eq="s,=/,/,g" ;;
10209  esac
10210  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10211  case $lt_search_path_spec in
10212  *\;*)
10213    # if the path contains ";" then we assume it to be the separator
10214    # otherwise default to the standard path separator (i.e. ":") - it is
10215    # assumed that no part of a normal pathname contains ";" but that should
10216    # okay in the real world where ";" in dirpaths is itself problematic.
10217    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10218    ;;
10219  *)
10220    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10221    ;;
10222  esac
10223  # Ok, now we have the path, separated by spaces, we can step through it
10224  # and add multilib dir if necessary.
10225  lt_tmp_lt_search_path_spec=
10226  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10227  for lt_sys_path in $lt_search_path_spec; do
10228    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10229      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10230    else
10231      test -d "$lt_sys_path" && \
10232	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10233    fi
10234  done
10235  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10236BEGIN {RS=" "; FS="/|\n";} {
10237  lt_foo="";
10238  lt_count=0;
10239  for (lt_i = NF; lt_i > 0; lt_i--) {
10240    if ($lt_i != "" && $lt_i != ".") {
10241      if ($lt_i == "..") {
10242        lt_count++;
10243      } else {
10244        if (lt_count == 0) {
10245          lt_foo="/" $lt_i lt_foo;
10246        } else {
10247          lt_count--;
10248        }
10249      }
10250    }
10251  }
10252  if (lt_foo != "") { lt_freq[lt_foo]++; }
10253  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10254}'`
10255  # AWK program above erroneously prepends '/' to C:/dos/paths
10256  # for these hosts.
10257  case $host_os in
10258    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10259      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10260  esac
10261  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10262else
10263  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10264fi
10265library_names_spec=
10266libname_spec='lib$name'
10267soname_spec=
10268shrext_cmds=".so"
10269postinstall_cmds=
10270postuninstall_cmds=
10271finish_cmds=
10272finish_eval=
10273shlibpath_var=
10274shlibpath_overrides_runpath=unknown
10275version_type=none
10276dynamic_linker="$host_os ld.so"
10277sys_lib_dlsearch_path_spec="/lib /usr/lib"
10278need_lib_prefix=unknown
10279hardcode_into_libs=no
10280
10281# when you set need_version to no, make sure it does not cause -set_version
10282# flags to be left without arguments
10283need_version=unknown
10284
10285case $host_os in
10286aix3*)
10287  version_type=linux
10288  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10289  shlibpath_var=LIBPATH
10290
10291  # AIX 3 has no versioning support, so we append a major version to the name.
10292  soname_spec='${libname}${release}${shared_ext}$major'
10293  ;;
10294
10295aix[4-9]*)
10296  version_type=linux
10297  need_lib_prefix=no
10298  need_version=no
10299  hardcode_into_libs=yes
10300  if test "$host_cpu" = ia64; then
10301    # AIX 5 supports IA64
10302    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10303    shlibpath_var=LD_LIBRARY_PATH
10304  else
10305    # With GCC up to 2.95.x, collect2 would create an import file
10306    # for dependence libraries.  The import file would start with
10307    # the line `#! .'.  This would cause the generated library to
10308    # depend on `.', always an invalid library.  This was fixed in
10309    # development snapshots of GCC prior to 3.0.
10310    case $host_os in
10311      aix4 | aix4.[01] | aix4.[01].*)
10312      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10313	   echo ' yes '
10314	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10315	:
10316      else
10317	can_build_shared=no
10318      fi
10319      ;;
10320    esac
10321    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10322    # soname into executable. Probably we can add versioning support to
10323    # collect2, so additional links can be useful in future.
10324    if test "$aix_use_runtimelinking" = yes; then
10325      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10326      # instead of lib<name>.a to let people know that these are not
10327      # typical AIX shared libraries.
10328      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329    else
10330      # We preserve .a as extension for shared libraries through AIX4.2
10331      # and later when we are not doing run time linking.
10332      library_names_spec='${libname}${release}.a $libname.a'
10333      soname_spec='${libname}${release}${shared_ext}$major'
10334    fi
10335    shlibpath_var=LIBPATH
10336  fi
10337  ;;
10338
10339amigaos*)
10340  case $host_cpu in
10341  powerpc)
10342    # Since July 2007 AmigaOS4 officially supports .so libraries.
10343    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10344    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345    ;;
10346  m68k)
10347    library_names_spec='$libname.ixlibrary $libname.a'
10348    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10349    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10350    ;;
10351  esac
10352  ;;
10353
10354beos*)
10355  library_names_spec='${libname}${shared_ext}'
10356  dynamic_linker="$host_os ld.so"
10357  shlibpath_var=LIBRARY_PATH
10358  ;;
10359
10360bsdi[45]*)
10361  version_type=linux
10362  need_version=no
10363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364  soname_spec='${libname}${release}${shared_ext}$major'
10365  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10366  shlibpath_var=LD_LIBRARY_PATH
10367  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10368  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10369  # the default ld.so.conf also contains /usr/contrib/lib and
10370  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10371  # libtool to hard-code these into programs
10372  ;;
10373
10374cygwin* | mingw* | pw32* | cegcc*)
10375  version_type=windows
10376  shrext_cmds=".dll"
10377  need_version=no
10378  need_lib_prefix=no
10379
10380  case $GCC,$cc_basename in
10381  yes,*)
10382    # gcc
10383    library_names_spec='$libname.dll.a'
10384    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10385    postinstall_cmds='base_file=`basename \${file}`~
10386      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10387      dldir=$destdir/`dirname \$dlpath`~
10388      test -d \$dldir || mkdir -p \$dldir~
10389      $install_prog $dir/$dlname \$dldir/$dlname~
10390      chmod a+x \$dldir/$dlname~
10391      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10392        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10393      fi'
10394    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10395      dlpath=$dir/\$dldll~
10396       $RM \$dlpath'
10397    shlibpath_overrides_runpath=yes
10398
10399    case $host_os in
10400    cygwin*)
10401      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10402      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10403
10404      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10405      ;;
10406    mingw* | cegcc*)
10407      # MinGW DLLs use traditional 'lib' prefix
10408      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10409      ;;
10410    pw32*)
10411      # pw32 DLLs use 'pw' prefix rather than 'lib'
10412      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10413      ;;
10414    esac
10415    dynamic_linker='Win32 ld.exe'
10416    ;;
10417
10418  *,cl*)
10419    # Native MSVC
10420    libname_spec='$name'
10421    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10422    library_names_spec='${libname}.dll.lib'
10423
10424    case $build_os in
10425    mingw*)
10426      sys_lib_search_path_spec=
10427      lt_save_ifs=$IFS
10428      IFS=';'
10429      for lt_path in $LIB
10430      do
10431        IFS=$lt_save_ifs
10432        # Let DOS variable expansion print the short 8.3 style file name.
10433        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10434        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10435      done
10436      IFS=$lt_save_ifs
10437      # Convert to MSYS style.
10438      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10439      ;;
10440    cygwin*)
10441      # Convert to unix form, then to dos form, then back to unix form
10442      # but this time dos style (no spaces!) so that the unix form looks
10443      # like /cygdrive/c/PROGRA~1:/cygdr...
10444      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10445      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10446      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10447      ;;
10448    *)
10449      sys_lib_search_path_spec="$LIB"
10450      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10451        # It is most probably a Windows format PATH.
10452        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10453      else
10454        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10455      fi
10456      # FIXME: find the short name or the path components, as spaces are
10457      # common. (e.g. "Program Files" -> "PROGRA~1")
10458      ;;
10459    esac
10460
10461    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10462    postinstall_cmds='base_file=`basename \${file}`~
10463      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10464      dldir=$destdir/`dirname \$dlpath`~
10465      test -d \$dldir || mkdir -p \$dldir~
10466      $install_prog $dir/$dlname \$dldir/$dlname'
10467    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10468      dlpath=$dir/\$dldll~
10469       $RM \$dlpath'
10470    shlibpath_overrides_runpath=yes
10471    dynamic_linker='Win32 link.exe'
10472    ;;
10473
10474  *)
10475    # Assume MSVC wrapper
10476    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10477    dynamic_linker='Win32 ld.exe'
10478    ;;
10479  esac
10480  # FIXME: first we should search . and the directory the executable is in
10481  shlibpath_var=PATH
10482  ;;
10483
10484darwin* | rhapsody*)
10485  dynamic_linker="$host_os dyld"
10486  version_type=darwin
10487  need_lib_prefix=no
10488  need_version=no
10489  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10490  soname_spec='${libname}${release}${major}$shared_ext'
10491  shlibpath_overrides_runpath=yes
10492  shlibpath_var=DYLD_LIBRARY_PATH
10493  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10494
10495  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10496  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10497  ;;
10498
10499dgux*)
10500  version_type=linux
10501  need_lib_prefix=no
10502  need_version=no
10503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10504  soname_spec='${libname}${release}${shared_ext}$major'
10505  shlibpath_var=LD_LIBRARY_PATH
10506  ;;
10507
10508freebsd1*)
10509  dynamic_linker=no
10510  ;;
10511
10512freebsd* | dragonfly*)
10513  # DragonFly does not have aout.  When/if they implement a new
10514  # versioning mechanism, adjust this.
10515  if test -x /usr/bin/objformat; then
10516    objformat=`/usr/bin/objformat`
10517  else
10518    case $host_os in
10519    freebsd[123]*) objformat=aout ;;
10520    *) objformat=elf ;;
10521    esac
10522  fi
10523  version_type=freebsd-$objformat
10524  case $version_type in
10525    freebsd-elf*)
10526      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10527      need_version=no
10528      need_lib_prefix=no
10529      ;;
10530    freebsd-*)
10531      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10532      need_version=yes
10533      ;;
10534  esac
10535  shlibpath_var=LD_LIBRARY_PATH
10536  case $host_os in
10537  freebsd2*)
10538    shlibpath_overrides_runpath=yes
10539    ;;
10540  freebsd3.[01]* | freebsdelf3.[01]*)
10541    shlibpath_overrides_runpath=yes
10542    hardcode_into_libs=yes
10543    ;;
10544  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10545  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10546    shlibpath_overrides_runpath=no
10547    hardcode_into_libs=yes
10548    ;;
10549  *) # from 4.6 on, and DragonFly
10550    shlibpath_overrides_runpath=yes
10551    hardcode_into_libs=yes
10552    ;;
10553  esac
10554  ;;
10555
10556gnu*)
10557  version_type=linux
10558  need_lib_prefix=no
10559  need_version=no
10560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10561  soname_spec='${libname}${release}${shared_ext}$major'
10562  shlibpath_var=LD_LIBRARY_PATH
10563  hardcode_into_libs=yes
10564  ;;
10565
10566haiku*)
10567  version_type=linux
10568  need_lib_prefix=no
10569  need_version=no
10570  dynamic_linker="$host_os runtime_loader"
10571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10572  soname_spec='${libname}${release}${shared_ext}$major'
10573  shlibpath_var=LIBRARY_PATH
10574  shlibpath_overrides_runpath=yes
10575  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10576  hardcode_into_libs=yes
10577  ;;
10578
10579hpux9* | hpux10* | hpux11*)
10580  # Give a soname corresponding to the major version so that dld.sl refuses to
10581  # link against other versions.
10582  version_type=sunos
10583  need_lib_prefix=no
10584  need_version=no
10585  case $host_cpu in
10586  ia64*)
10587    shrext_cmds='.so'
10588    hardcode_into_libs=yes
10589    dynamic_linker="$host_os dld.so"
10590    shlibpath_var=LD_LIBRARY_PATH
10591    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10592    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593    soname_spec='${libname}${release}${shared_ext}$major'
10594    if test "X$HPUX_IA64_MODE" = X32; then
10595      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10596    else
10597      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10598    fi
10599    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10600    ;;
10601  hppa*64*)
10602    shrext_cmds='.sl'
10603    hardcode_into_libs=yes
10604    dynamic_linker="$host_os dld.sl"
10605    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10606    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10607    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608    soname_spec='${libname}${release}${shared_ext}$major'
10609    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10610    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10611    ;;
10612  *)
10613    shrext_cmds='.sl'
10614    dynamic_linker="$host_os dld.sl"
10615    shlibpath_var=SHLIB_PATH
10616    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10617    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618    soname_spec='${libname}${release}${shared_ext}$major'
10619    ;;
10620  esac
10621  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10622  postinstall_cmds='chmod 555 $lib'
10623  # or fails outright, so override atomically:
10624  install_override_mode=555
10625  ;;
10626
10627interix[3-9]*)
10628  version_type=linux
10629  need_lib_prefix=no
10630  need_version=no
10631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10632  soname_spec='${libname}${release}${shared_ext}$major'
10633  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10634  shlibpath_var=LD_LIBRARY_PATH
10635  shlibpath_overrides_runpath=no
10636  hardcode_into_libs=yes
10637  ;;
10638
10639irix5* | irix6* | nonstopux*)
10640  case $host_os in
10641    nonstopux*) version_type=nonstopux ;;
10642    *)
10643	if test "$lt_cv_prog_gnu_ld" = yes; then
10644		version_type=linux
10645	else
10646		version_type=irix
10647	fi ;;
10648  esac
10649  need_lib_prefix=no
10650  need_version=no
10651  soname_spec='${libname}${release}${shared_ext}$major'
10652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10653  case $host_os in
10654  irix5* | nonstopux*)
10655    libsuff= shlibsuff=
10656    ;;
10657  *)
10658    case $LD in # libtool.m4 will add one of these switches to LD
10659    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10660      libsuff= shlibsuff= libmagic=32-bit;;
10661    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10662      libsuff=32 shlibsuff=N32 libmagic=N32;;
10663    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10664      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10665    *) libsuff= shlibsuff= libmagic=never-match;;
10666    esac
10667    ;;
10668  esac
10669  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10670  shlibpath_overrides_runpath=no
10671  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10672  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10673  hardcode_into_libs=yes
10674  ;;
10675
10676# No shared lib support for Linux oldld, aout, or coff.
10677linux*oldld* | linux*aout* | linux*coff*)
10678  dynamic_linker=no
10679  ;;
10680
10681# This must be Linux ELF.
10682linux* | k*bsd*-gnu | kopensolaris*-gnu)
10683  version_type=linux
10684  need_lib_prefix=no
10685  need_version=no
10686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687  soname_spec='${libname}${release}${shared_ext}$major'
10688  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10689  shlibpath_var=LD_LIBRARY_PATH
10690  shlibpath_overrides_runpath=no
10691
10692  # Some binutils ld are patched to set DT_RUNPATH
10693  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10694  $as_echo_n "(cached) " >&6
10695else
10696  lt_cv_shlibpath_overrides_runpath=no
10697    save_LDFLAGS=$LDFLAGS
10698    save_libdir=$libdir
10699    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10700	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10701    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h.  */
10703
10704int
10705main ()
10706{
10707
10708  ;
10709  return 0;
10710}
10711_ACEOF
10712if ac_fn_c_try_link "$LINENO"; then :
10713  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10714  lt_cv_shlibpath_overrides_runpath=yes
10715fi
10716fi
10717rm -f core conftest.err conftest.$ac_objext \
10718    conftest$ac_exeext conftest.$ac_ext
10719    LDFLAGS=$save_LDFLAGS
10720    libdir=$save_libdir
10721
10722fi
10723
10724  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10725
10726  # This implies no fast_install, which is unacceptable.
10727  # Some rework will be needed to allow for fast_install
10728  # before this can be enabled.
10729  hardcode_into_libs=yes
10730
10731  # Append ld.so.conf contents to the search path
10732  if test -f /etc/ld.so.conf; then
10733    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' ' '`
10734    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10735  fi
10736
10737  # We used to test for /lib/ld.so.1 and disable shared libraries on
10738  # powerpc, because MkLinux only supported shared libraries with the
10739  # GNU dynamic linker.  Since this was broken with cross compilers,
10740  # most powerpc-linux boxes support dynamic linking these days and
10741  # people can always --disable-shared, the test was removed, and we
10742  # assume the GNU/Linux dynamic linker is in use.
10743  dynamic_linker='GNU/Linux ld.so'
10744  ;;
10745
10746netbsd*)
10747  version_type=sunos
10748  need_lib_prefix=no
10749  need_version=no
10750  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10751    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10752    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10753    dynamic_linker='NetBSD (a.out) ld.so'
10754  else
10755    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10756    soname_spec='${libname}${release}${shared_ext}$major'
10757    dynamic_linker='NetBSD ld.elf_so'
10758  fi
10759  shlibpath_var=LD_LIBRARY_PATH
10760  shlibpath_overrides_runpath=yes
10761  hardcode_into_libs=yes
10762  ;;
10763
10764newsos6)
10765  version_type=linux
10766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767  shlibpath_var=LD_LIBRARY_PATH
10768  shlibpath_overrides_runpath=yes
10769  ;;
10770
10771*nto* | *qnx*)
10772  version_type=qnx
10773  need_lib_prefix=no
10774  need_version=no
10775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776  soname_spec='${libname}${release}${shared_ext}$major'
10777  shlibpath_var=LD_LIBRARY_PATH
10778  shlibpath_overrides_runpath=no
10779  hardcode_into_libs=yes
10780  dynamic_linker='ldqnx.so'
10781  ;;
10782
10783openbsd*)
10784  version_type=sunos
10785  sys_lib_dlsearch_path_spec="/usr/lib"
10786  need_lib_prefix=no
10787  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10788  case $host_os in
10789    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10790    *)				need_version=no  ;;
10791  esac
10792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10793  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10794  shlibpath_var=LD_LIBRARY_PATH
10795  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10796    case $host_os in
10797      openbsd2.[89] | openbsd2.[89].*)
10798	shlibpath_overrides_runpath=no
10799	;;
10800      *)
10801	shlibpath_overrides_runpath=yes
10802	;;
10803      esac
10804  else
10805    shlibpath_overrides_runpath=yes
10806  fi
10807  ;;
10808
10809os2*)
10810  libname_spec='$name'
10811  shrext_cmds=".dll"
10812  need_lib_prefix=no
10813  library_names_spec='$libname${shared_ext} $libname.a'
10814  dynamic_linker='OS/2 ld.exe'
10815  shlibpath_var=LIBPATH
10816  ;;
10817
10818osf3* | osf4* | osf5*)
10819  version_type=osf
10820  need_lib_prefix=no
10821  need_version=no
10822  soname_spec='${libname}${release}${shared_ext}$major'
10823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824  shlibpath_var=LD_LIBRARY_PATH
10825  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10826  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10827  ;;
10828
10829rdos*)
10830  dynamic_linker=no
10831  ;;
10832
10833solaris*)
10834  version_type=linux
10835  need_lib_prefix=no
10836  need_version=no
10837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838  soname_spec='${libname}${release}${shared_ext}$major'
10839  shlibpath_var=LD_LIBRARY_PATH
10840  shlibpath_overrides_runpath=yes
10841  hardcode_into_libs=yes
10842  # ldd complains unless libraries are executable
10843  postinstall_cmds='chmod +x $lib'
10844  ;;
10845
10846sunos4*)
10847  version_type=sunos
10848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10849  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10850  shlibpath_var=LD_LIBRARY_PATH
10851  shlibpath_overrides_runpath=yes
10852  if test "$with_gnu_ld" = yes; then
10853    need_lib_prefix=no
10854  fi
10855  need_version=yes
10856  ;;
10857
10858sysv4 | sysv4.3*)
10859  version_type=linux
10860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861  soname_spec='${libname}${release}${shared_ext}$major'
10862  shlibpath_var=LD_LIBRARY_PATH
10863  case $host_vendor in
10864    sni)
10865      shlibpath_overrides_runpath=no
10866      need_lib_prefix=no
10867      runpath_var=LD_RUN_PATH
10868      ;;
10869    siemens)
10870      need_lib_prefix=no
10871      ;;
10872    motorola)
10873      need_lib_prefix=no
10874      need_version=no
10875      shlibpath_overrides_runpath=no
10876      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10877      ;;
10878  esac
10879  ;;
10880
10881sysv4*MP*)
10882  if test -d /usr/nec ;then
10883    version_type=linux
10884    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10885    soname_spec='$libname${shared_ext}.$major'
10886    shlibpath_var=LD_LIBRARY_PATH
10887  fi
10888  ;;
10889
10890sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10891  version_type=freebsd-elf
10892  need_lib_prefix=no
10893  need_version=no
10894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10895  soname_spec='${libname}${release}${shared_ext}$major'
10896  shlibpath_var=LD_LIBRARY_PATH
10897  shlibpath_overrides_runpath=yes
10898  hardcode_into_libs=yes
10899  if test "$with_gnu_ld" = yes; then
10900    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10901  else
10902    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10903    case $host_os in
10904      sco3.2v5*)
10905        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10906	;;
10907    esac
10908  fi
10909  sys_lib_dlsearch_path_spec='/usr/lib'
10910  ;;
10911
10912tpf*)
10913  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10914  version_type=linux
10915  need_lib_prefix=no
10916  need_version=no
10917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918  shlibpath_var=LD_LIBRARY_PATH
10919  shlibpath_overrides_runpath=no
10920  hardcode_into_libs=yes
10921  ;;
10922
10923uts4*)
10924  version_type=linux
10925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926  soname_spec='${libname}${release}${shared_ext}$major'
10927  shlibpath_var=LD_LIBRARY_PATH
10928  ;;
10929
10930*)
10931  dynamic_linker=no
10932  ;;
10933esac
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10935$as_echo "$dynamic_linker" >&6; }
10936test "$dynamic_linker" = no && can_build_shared=no
10937
10938variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10939if test "$GCC" = yes; then
10940  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10941fi
10942
10943if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10944  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10945fi
10946if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10947  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10948fi
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11042$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11043hardcode_action=
11044if test -n "$hardcode_libdir_flag_spec" ||
11045   test -n "$runpath_var" ||
11046   test "X$hardcode_automatic" = "Xyes" ; then
11047
11048  # We can hardcode non-existent directories.
11049  if test "$hardcode_direct" != no &&
11050     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11051     # have to relink, otherwise we might link with an installed library
11052     # when we should be linking with a yet-to-be-installed one
11053     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11054     test "$hardcode_minus_L" != no; then
11055    # Linking always hardcodes the temporary library directory.
11056    hardcode_action=relink
11057  else
11058    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11059    hardcode_action=immediate
11060  fi
11061else
11062  # We cannot hardcode anything, or else we can only hardcode existing
11063  # directories.
11064  hardcode_action=unsupported
11065fi
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11067$as_echo "$hardcode_action" >&6; }
11068
11069if test "$hardcode_action" = relink ||
11070   test "$inherit_rpath" = yes; then
11071  # Fast installation is not supported
11072  enable_fast_install=no
11073elif test "$shlibpath_overrides_runpath" = yes ||
11074     test "$enable_shared" = no; then
11075  # Fast installation is not necessary
11076  enable_fast_install=needless
11077fi
11078
11079
11080
11081
11082
11083
11084  if test "x$enable_dlopen" != xyes; then
11085  enable_dlopen=unknown
11086  enable_dlopen_self=unknown
11087  enable_dlopen_self_static=unknown
11088else
11089  lt_cv_dlopen=no
11090  lt_cv_dlopen_libs=
11091
11092  case $host_os in
11093  beos*)
11094    lt_cv_dlopen="load_add_on"
11095    lt_cv_dlopen_libs=
11096    lt_cv_dlopen_self=yes
11097    ;;
11098
11099  mingw* | pw32* | cegcc*)
11100    lt_cv_dlopen="LoadLibrary"
11101    lt_cv_dlopen_libs=
11102    ;;
11103
11104  cygwin*)
11105    lt_cv_dlopen="dlopen"
11106    lt_cv_dlopen_libs=
11107    ;;
11108
11109  darwin*)
11110  # if libdl is installed we need to link against it
11111    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11112$as_echo_n "checking for dlopen in -ldl... " >&6; }
11113if ${ac_cv_lib_dl_dlopen+:} false; then :
11114  $as_echo_n "(cached) " >&6
11115else
11116  ac_check_lib_save_LIBS=$LIBS
11117LIBS="-ldl  $LIBS"
11118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119/* end confdefs.h.  */
11120
11121/* Override any GCC internal prototype to avoid an error.
11122   Use char because int might match the return type of a GCC
11123   builtin and then its argument prototype would still apply.  */
11124#ifdef __cplusplus
11125extern "C"
11126#endif
11127char dlopen ();
11128int
11129main ()
11130{
11131return dlopen ();
11132  ;
11133  return 0;
11134}
11135_ACEOF
11136if ac_fn_c_try_link "$LINENO"; then :
11137  ac_cv_lib_dl_dlopen=yes
11138else
11139  ac_cv_lib_dl_dlopen=no
11140fi
11141rm -f core conftest.err conftest.$ac_objext \
11142    conftest$ac_exeext conftest.$ac_ext
11143LIBS=$ac_check_lib_save_LIBS
11144fi
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11146$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11147if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11148  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11149else
11150
11151    lt_cv_dlopen="dyld"
11152    lt_cv_dlopen_libs=
11153    lt_cv_dlopen_self=yes
11154
11155fi
11156
11157    ;;
11158
11159  *)
11160    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11161if test "x$ac_cv_func_shl_load" = xyes; then :
11162  lt_cv_dlopen="shl_load"
11163else
11164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11165$as_echo_n "checking for shl_load in -ldld... " >&6; }
11166if ${ac_cv_lib_dld_shl_load+:} false; then :
11167  $as_echo_n "(cached) " >&6
11168else
11169  ac_check_lib_save_LIBS=$LIBS
11170LIBS="-ldld  $LIBS"
11171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172/* end confdefs.h.  */
11173
11174/* Override any GCC internal prototype to avoid an error.
11175   Use char because int might match the return type of a GCC
11176   builtin and then its argument prototype would still apply.  */
11177#ifdef __cplusplus
11178extern "C"
11179#endif
11180char shl_load ();
11181int
11182main ()
11183{
11184return shl_load ();
11185  ;
11186  return 0;
11187}
11188_ACEOF
11189if ac_fn_c_try_link "$LINENO"; then :
11190  ac_cv_lib_dld_shl_load=yes
11191else
11192  ac_cv_lib_dld_shl_load=no
11193fi
11194rm -f core conftest.err conftest.$ac_objext \
11195    conftest$ac_exeext conftest.$ac_ext
11196LIBS=$ac_check_lib_save_LIBS
11197fi
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11199$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11200if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11201  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11202else
11203  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11204if test "x$ac_cv_func_dlopen" = xyes; then :
11205  lt_cv_dlopen="dlopen"
11206else
11207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11208$as_echo_n "checking for dlopen in -ldl... " >&6; }
11209if ${ac_cv_lib_dl_dlopen+:} false; then :
11210  $as_echo_n "(cached) " >&6
11211else
11212  ac_check_lib_save_LIBS=$LIBS
11213LIBS="-ldl  $LIBS"
11214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215/* end confdefs.h.  */
11216
11217/* Override any GCC internal prototype to avoid an error.
11218   Use char because int might match the return type of a GCC
11219   builtin and then its argument prototype would still apply.  */
11220#ifdef __cplusplus
11221extern "C"
11222#endif
11223char dlopen ();
11224int
11225main ()
11226{
11227return dlopen ();
11228  ;
11229  return 0;
11230}
11231_ACEOF
11232if ac_fn_c_try_link "$LINENO"; then :
11233  ac_cv_lib_dl_dlopen=yes
11234else
11235  ac_cv_lib_dl_dlopen=no
11236fi
11237rm -f core conftest.err conftest.$ac_objext \
11238    conftest$ac_exeext conftest.$ac_ext
11239LIBS=$ac_check_lib_save_LIBS
11240fi
11241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11242$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11243if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11244  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11245else
11246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11247$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11248if ${ac_cv_lib_svld_dlopen+:} false; then :
11249  $as_echo_n "(cached) " >&6
11250else
11251  ac_check_lib_save_LIBS=$LIBS
11252LIBS="-lsvld  $LIBS"
11253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254/* end confdefs.h.  */
11255
11256/* Override any GCC internal prototype to avoid an error.
11257   Use char because int might match the return type of a GCC
11258   builtin and then its argument prototype would still apply.  */
11259#ifdef __cplusplus
11260extern "C"
11261#endif
11262char dlopen ();
11263int
11264main ()
11265{
11266return dlopen ();
11267  ;
11268  return 0;
11269}
11270_ACEOF
11271if ac_fn_c_try_link "$LINENO"; then :
11272  ac_cv_lib_svld_dlopen=yes
11273else
11274  ac_cv_lib_svld_dlopen=no
11275fi
11276rm -f core conftest.err conftest.$ac_objext \
11277    conftest$ac_exeext conftest.$ac_ext
11278LIBS=$ac_check_lib_save_LIBS
11279fi
11280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11281$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11282if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11283  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11284else
11285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11286$as_echo_n "checking for dld_link in -ldld... " >&6; }
11287if ${ac_cv_lib_dld_dld_link+:} false; then :
11288  $as_echo_n "(cached) " >&6
11289else
11290  ac_check_lib_save_LIBS=$LIBS
11291LIBS="-ldld  $LIBS"
11292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293/* end confdefs.h.  */
11294
11295/* Override any GCC internal prototype to avoid an error.
11296   Use char because int might match the return type of a GCC
11297   builtin and then its argument prototype would still apply.  */
11298#ifdef __cplusplus
11299extern "C"
11300#endif
11301char dld_link ();
11302int
11303main ()
11304{
11305return dld_link ();
11306  ;
11307  return 0;
11308}
11309_ACEOF
11310if ac_fn_c_try_link "$LINENO"; then :
11311  ac_cv_lib_dld_dld_link=yes
11312else
11313  ac_cv_lib_dld_dld_link=no
11314fi
11315rm -f core conftest.err conftest.$ac_objext \
11316    conftest$ac_exeext conftest.$ac_ext
11317LIBS=$ac_check_lib_save_LIBS
11318fi
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11320$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11321if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11322  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11323fi
11324
11325
11326fi
11327
11328
11329fi
11330
11331
11332fi
11333
11334
11335fi
11336
11337
11338fi
11339
11340    ;;
11341  esac
11342
11343  if test "x$lt_cv_dlopen" != xno; then
11344    enable_dlopen=yes
11345  else
11346    enable_dlopen=no
11347  fi
11348
11349  case $lt_cv_dlopen in
11350  dlopen)
11351    save_CPPFLAGS="$CPPFLAGS"
11352    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11353
11354    save_LDFLAGS="$LDFLAGS"
11355    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11356
11357    save_LIBS="$LIBS"
11358    LIBS="$lt_cv_dlopen_libs $LIBS"
11359
11360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11361$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11362if ${lt_cv_dlopen_self+:} false; then :
11363  $as_echo_n "(cached) " >&6
11364else
11365  	  if test "$cross_compiling" = yes; then :
11366  lt_cv_dlopen_self=cross
11367else
11368  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11369  lt_status=$lt_dlunknown
11370  cat > conftest.$ac_ext <<_LT_EOF
11371#line $LINENO "configure"
11372#include "confdefs.h"
11373
11374#if HAVE_DLFCN_H
11375#include <dlfcn.h>
11376#endif
11377
11378#include <stdio.h>
11379
11380#ifdef RTLD_GLOBAL
11381#  define LT_DLGLOBAL		RTLD_GLOBAL
11382#else
11383#  ifdef DL_GLOBAL
11384#    define LT_DLGLOBAL		DL_GLOBAL
11385#  else
11386#    define LT_DLGLOBAL		0
11387#  endif
11388#endif
11389
11390/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11391   find out it does not work in some platform. */
11392#ifndef LT_DLLAZY_OR_NOW
11393#  ifdef RTLD_LAZY
11394#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11395#  else
11396#    ifdef DL_LAZY
11397#      define LT_DLLAZY_OR_NOW		DL_LAZY
11398#    else
11399#      ifdef RTLD_NOW
11400#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11401#      else
11402#        ifdef DL_NOW
11403#          define LT_DLLAZY_OR_NOW	DL_NOW
11404#        else
11405#          define LT_DLLAZY_OR_NOW	0
11406#        endif
11407#      endif
11408#    endif
11409#  endif
11410#endif
11411
11412/* When -fvisbility=hidden is used, assume the code has been annotated
11413   correspondingly for the symbols needed.  */
11414#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11415int fnord () __attribute__((visibility("default")));
11416#endif
11417
11418int fnord () { return 42; }
11419int main ()
11420{
11421  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11422  int status = $lt_dlunknown;
11423
11424  if (self)
11425    {
11426      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11427      else
11428        {
11429	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11430          else puts (dlerror ());
11431	}
11432      /* dlclose (self); */
11433    }
11434  else
11435    puts (dlerror ());
11436
11437  return status;
11438}
11439_LT_EOF
11440  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11441  (eval $ac_link) 2>&5
11442  ac_status=$?
11443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11444  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11445    (./conftest; exit; ) >&5 2>/dev/null
11446    lt_status=$?
11447    case x$lt_status in
11448      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11449      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11450      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11451    esac
11452  else :
11453    # compilation failed
11454    lt_cv_dlopen_self=no
11455  fi
11456fi
11457rm -fr conftest*
11458
11459
11460fi
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11462$as_echo "$lt_cv_dlopen_self" >&6; }
11463
11464    if test "x$lt_cv_dlopen_self" = xyes; then
11465      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11466      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11467$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11468if ${lt_cv_dlopen_self_static+:} false; then :
11469  $as_echo_n "(cached) " >&6
11470else
11471  	  if test "$cross_compiling" = yes; then :
11472  lt_cv_dlopen_self_static=cross
11473else
11474  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11475  lt_status=$lt_dlunknown
11476  cat > conftest.$ac_ext <<_LT_EOF
11477#line $LINENO "configure"
11478#include "confdefs.h"
11479
11480#if HAVE_DLFCN_H
11481#include <dlfcn.h>
11482#endif
11483
11484#include <stdio.h>
11485
11486#ifdef RTLD_GLOBAL
11487#  define LT_DLGLOBAL		RTLD_GLOBAL
11488#else
11489#  ifdef DL_GLOBAL
11490#    define LT_DLGLOBAL		DL_GLOBAL
11491#  else
11492#    define LT_DLGLOBAL		0
11493#  endif
11494#endif
11495
11496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11497   find out it does not work in some platform. */
11498#ifndef LT_DLLAZY_OR_NOW
11499#  ifdef RTLD_LAZY
11500#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11501#  else
11502#    ifdef DL_LAZY
11503#      define LT_DLLAZY_OR_NOW		DL_LAZY
11504#    else
11505#      ifdef RTLD_NOW
11506#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11507#      else
11508#        ifdef DL_NOW
11509#          define LT_DLLAZY_OR_NOW	DL_NOW
11510#        else
11511#          define LT_DLLAZY_OR_NOW	0
11512#        endif
11513#      endif
11514#    endif
11515#  endif
11516#endif
11517
11518/* When -fvisbility=hidden is used, assume the code has been annotated
11519   correspondingly for the symbols needed.  */
11520#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11521int fnord () __attribute__((visibility("default")));
11522#endif
11523
11524int fnord () { return 42; }
11525int main ()
11526{
11527  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11528  int status = $lt_dlunknown;
11529
11530  if (self)
11531    {
11532      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11533      else
11534        {
11535	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11536          else puts (dlerror ());
11537	}
11538      /* dlclose (self); */
11539    }
11540  else
11541    puts (dlerror ());
11542
11543  return status;
11544}
11545_LT_EOF
11546  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11547  (eval $ac_link) 2>&5
11548  ac_status=$?
11549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11550  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11551    (./conftest; exit; ) >&5 2>/dev/null
11552    lt_status=$?
11553    case x$lt_status in
11554      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11555      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11556      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11557    esac
11558  else :
11559    # compilation failed
11560    lt_cv_dlopen_self_static=no
11561  fi
11562fi
11563rm -fr conftest*
11564
11565
11566fi
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11568$as_echo "$lt_cv_dlopen_self_static" >&6; }
11569    fi
11570
11571    CPPFLAGS="$save_CPPFLAGS"
11572    LDFLAGS="$save_LDFLAGS"
11573    LIBS="$save_LIBS"
11574    ;;
11575  esac
11576
11577  case $lt_cv_dlopen_self in
11578  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11579  *) enable_dlopen_self=unknown ;;
11580  esac
11581
11582  case $lt_cv_dlopen_self_static in
11583  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11584  *) enable_dlopen_self_static=unknown ;;
11585  esac
11586fi
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604striplib=
11605old_striplib=
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11607$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11608if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11609  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11610  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612$as_echo "yes" >&6; }
11613else
11614# FIXME - insert some real tests, host_os isn't really good enough
11615  case $host_os in
11616  darwin*)
11617    if test -n "$STRIP" ; then
11618      striplib="$STRIP -x"
11619      old_striplib="$STRIP -S"
11620      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11621$as_echo "yes" >&6; }
11622    else
11623      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624$as_echo "no" >&6; }
11625    fi
11626    ;;
11627  *)
11628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
11630    ;;
11631  esac
11632fi
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645  # Report which library types will actually be built
11646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11647$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11649$as_echo "$can_build_shared" >&6; }
11650
11651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11652$as_echo_n "checking whether to build shared libraries... " >&6; }
11653  test "$can_build_shared" = "no" && enable_shared=no
11654
11655  # On AIX, shared libraries and static libraries use the same namespace, and
11656  # are all built from PIC.
11657  case $host_os in
11658  aix3*)
11659    test "$enable_shared" = yes && enable_static=no
11660    if test -n "$RANLIB"; then
11661      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11662      postinstall_cmds='$RANLIB $lib'
11663    fi
11664    ;;
11665
11666  aix[4-9]*)
11667    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11668      test "$enable_shared" = yes && enable_static=no
11669    fi
11670    ;;
11671  esac
11672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11673$as_echo "$enable_shared" >&6; }
11674
11675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11676$as_echo_n "checking whether to build static libraries... " >&6; }
11677  # Make sure either enable_shared or enable_static is yes.
11678  test "$enable_shared" = yes || enable_static=yes
11679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11680$as_echo "$enable_static" >&6; }
11681
11682
11683
11684
11685fi
11686ac_ext=c
11687ac_cpp='$CPP $CPPFLAGS'
11688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690ac_compiler_gnu=$ac_cv_c_compiler_gnu
11691
11692CC="$lt_save_CC"
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706        ac_config_commands="$ac_config_commands libtool"
11707
11708
11709
11710
11711# Only expand once:
11712
11713
11714
11715# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11728$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11729if ${ac_cv_prog_cc_c99+:} false; then :
11730  $as_echo_n "(cached) " >&6
11731else
11732  ac_cv_prog_cc_c99=no
11733ac_save_CC=$CC
11734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735/* end confdefs.h.  */
11736#include <stdarg.h>
11737#include <stdbool.h>
11738#include <stdlib.h>
11739#include <wchar.h>
11740#include <stdio.h>
11741
11742// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11743#define debug(...) fprintf (stderr, __VA_ARGS__)
11744#define showlist(...) puts (#__VA_ARGS__)
11745#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11746static void
11747test_varargs_macros (void)
11748{
11749  int x = 1234;
11750  int y = 5678;
11751  debug ("Flag");
11752  debug ("X = %d\n", x);
11753  showlist (The first, second, and third items.);
11754  report (x>y, "x is %d but y is %d", x, y);
11755}
11756
11757// Check long long types.
11758#define BIG64 18446744073709551615ull
11759#define BIG32 4294967295ul
11760#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11761#if !BIG_OK
11762  your preprocessor is broken;
11763#endif
11764#if BIG_OK
11765#else
11766  your preprocessor is broken;
11767#endif
11768static long long int bignum = -9223372036854775807LL;
11769static unsigned long long int ubignum = BIG64;
11770
11771struct incomplete_array
11772{
11773  int datasize;
11774  double data[];
11775};
11776
11777struct named_init {
11778  int number;
11779  const wchar_t *name;
11780  double average;
11781};
11782
11783typedef const char *ccp;
11784
11785static inline int
11786test_restrict (ccp restrict text)
11787{
11788  // See if C++-style comments work.
11789  // Iterate through items via the restricted pointer.
11790  // Also check for declarations in for loops.
11791  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11792    continue;
11793  return 0;
11794}
11795
11796// Check varargs and va_copy.
11797static void
11798test_varargs (const char *format, ...)
11799{
11800  va_list args;
11801  va_start (args, format);
11802  va_list args_copy;
11803  va_copy (args_copy, args);
11804
11805  const char *str;
11806  int number;
11807  float fnumber;
11808
11809  while (*format)
11810    {
11811      switch (*format++)
11812	{
11813	case 's': // string
11814	  str = va_arg (args_copy, const char *);
11815	  break;
11816	case 'd': // int
11817	  number = va_arg (args_copy, int);
11818	  break;
11819	case 'f': // float
11820	  fnumber = va_arg (args_copy, double);
11821	  break;
11822	default:
11823	  break;
11824	}
11825    }
11826  va_end (args_copy);
11827  va_end (args);
11828}
11829
11830int
11831main ()
11832{
11833
11834  // Check bool.
11835  _Bool success = false;
11836
11837  // Check restrict.
11838  if (test_restrict ("String literal") == 0)
11839    success = true;
11840  char *restrict newvar = "Another string";
11841
11842  // Check varargs.
11843  test_varargs ("s, d' f .", "string", 65, 34.234);
11844  test_varargs_macros ();
11845
11846  // Check flexible array members.
11847  struct incomplete_array *ia =
11848    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11849  ia->datasize = 10;
11850  for (int i = 0; i < ia->datasize; ++i)
11851    ia->data[i] = i * 1.234;
11852
11853  // Check named initializers.
11854  struct named_init ni = {
11855    .number = 34,
11856    .name = L"Test wide string",
11857    .average = 543.34343,
11858  };
11859
11860  ni.number = 58;
11861
11862  int dynamic_array[ni.number];
11863  dynamic_array[ni.number - 1] = 543;
11864
11865  // work around unused variable warnings
11866  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11867	  || dynamic_array[ni.number - 1] != 543);
11868
11869  ;
11870  return 0;
11871}
11872_ACEOF
11873for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11874do
11875  CC="$ac_save_CC $ac_arg"
11876  if ac_fn_c_try_compile "$LINENO"; then :
11877  ac_cv_prog_cc_c99=$ac_arg
11878fi
11879rm -f core conftest.err conftest.$ac_objext
11880  test "x$ac_cv_prog_cc_c99" != "xno" && break
11881done
11882rm -f conftest.$ac_ext
11883CC=$ac_save_CC
11884
11885fi
11886# AC_CACHE_VAL
11887case "x$ac_cv_prog_cc_c99" in
11888  x)
11889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11890$as_echo "none needed" >&6; } ;;
11891  xno)
11892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11893$as_echo "unsupported" >&6; } ;;
11894  *)
11895    CC="$CC $ac_cv_prog_cc_c99"
11896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11897$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11898esac
11899if test "x$ac_cv_prog_cc_c99" != xno; then :
11900
11901fi
11902
11903
11904
11905
11906ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11907if test "x$ac_cv_have_decl___clang__" = xyes; then :
11908  CLANGCC="yes"
11909else
11910  CLANGCC="no"
11911fi
11912
11913ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11914if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11915  INTELCC="yes"
11916else
11917  INTELCC="no"
11918fi
11919
11920ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11921if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11922  SUNCC="yes"
11923else
11924  SUNCC="no"
11925fi
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11936	if test -n "$ac_tool_prefix"; then
11937  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11938set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940$as_echo_n "checking for $ac_word... " >&6; }
11941if ${ac_cv_path_PKG_CONFIG+:} false; then :
11942  $as_echo_n "(cached) " >&6
11943else
11944  case $PKG_CONFIG in
11945  [\\/]* | ?:[\\/]*)
11946  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11947  ;;
11948  *)
11949  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952  IFS=$as_save_IFS
11953  test -z "$as_dir" && as_dir=.
11954    for ac_exec_ext in '' $ac_executable_extensions; do
11955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958    break 2
11959  fi
11960done
11961  done
11962IFS=$as_save_IFS
11963
11964  ;;
11965esac
11966fi
11967PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11968if test -n "$PKG_CONFIG"; then
11969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11970$as_echo "$PKG_CONFIG" >&6; }
11971else
11972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
11974fi
11975
11976
11977fi
11978if test -z "$ac_cv_path_PKG_CONFIG"; then
11979  ac_pt_PKG_CONFIG=$PKG_CONFIG
11980  # Extract the first word of "pkg-config", so it can be a program name with args.
11981set dummy pkg-config; ac_word=$2
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983$as_echo_n "checking for $ac_word... " >&6; }
11984if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11985  $as_echo_n "(cached) " >&6
11986else
11987  case $ac_pt_PKG_CONFIG in
11988  [\\/]* | ?:[\\/]*)
11989  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11990  ;;
11991  *)
11992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993for as_dir in $PATH
11994do
11995  IFS=$as_save_IFS
11996  test -z "$as_dir" && as_dir=.
11997    for ac_exec_ext in '' $ac_executable_extensions; do
11998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11999    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12001    break 2
12002  fi
12003done
12004  done
12005IFS=$as_save_IFS
12006
12007  ;;
12008esac
12009fi
12010ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12011if test -n "$ac_pt_PKG_CONFIG"; then
12012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12013$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12014else
12015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016$as_echo "no" >&6; }
12017fi
12018
12019  if test "x$ac_pt_PKG_CONFIG" = x; then
12020    PKG_CONFIG=""
12021  else
12022    case $cross_compiling:$ac_tool_warned in
12023yes:)
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12026ac_tool_warned=yes ;;
12027esac
12028    PKG_CONFIG=$ac_pt_PKG_CONFIG
12029  fi
12030else
12031  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12032fi
12033
12034fi
12035if test -n "$PKG_CONFIG"; then
12036	_pkg_min_version=0.9.0
12037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12038$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12039	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12040		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12041$as_echo "yes" >&6; }
12042	else
12043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044$as_echo "no" >&6; }
12045		PKG_CONFIG=""
12046	fi
12047fi
12048
12049
12050
12051
12052
12053if  test "x$GCC" = xyes ; then
12054    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
12055-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
12056-Wbad-function-cast -Wformat=2"
12057    case `$CC -dumpversion` in
12058    3.4.* | 4.*)
12059	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
12060	;;
12061    esac
12062else
12063    if test "x$SUNCC" = "xyes"; then
12064	CWARNFLAGS="-v"
12065    fi
12066fi
12067
12068
12069
12070# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
12071
12072
12073
12074
12075# Check whether --enable-strict-compilation was given.
12076if test "${enable_strict_compilation+set}" = set; then :
12077  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12078else
12079  STRICT_COMPILE=no
12080fi
12081
12082if test "x$GCC" = xyes ; then
12083    STRICT_CFLAGS="-pedantic -Werror"
12084    # Add -Werror=attributes if supported (gcc 4.2 & later)
12085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
12086$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
12087    save_CFLAGS="$CFLAGS"
12088    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
12089    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090/* end confdefs.h.  */
12091return 0;
12092_ACEOF
12093if ac_fn_c_try_compile "$LINENO"; then :
12094  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12095		       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12096$as_echo "yes" >&6; }
12097else
12098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099$as_echo "no" >&6; }
12100fi
12101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102    CFLAGS="$save_CFLAGS"
12103elif test "x$SUNCC" = "xyes"; then
12104    STRICT_CFLAGS="-errwarn"
12105elif test "x$INTELCC" = "xyes"; then
12106    STRICT_CFLAGS="-Werror"
12107fi
12108if test "x$STRICT_COMPILE" = "xyes"; then
12109    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12110fi
12111
12112
12113
12114
12115
12116cat >>confdefs.h <<_ACEOF
12117#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12118_ACEOF
12119
12120	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12121	if test "x$PVM" = "x"; then
12122		PVM="0"
12123	fi
12124
12125cat >>confdefs.h <<_ACEOF
12126#define PACKAGE_VERSION_MINOR $PVM
12127_ACEOF
12128
12129	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12130	if test "x$PVP" = "x"; then
12131		PVP="0"
12132	fi
12133
12134cat >>confdefs.h <<_ACEOF
12135#define PACKAGE_VERSION_PATCHLEVEL $PVP
12136_ACEOF
12137
12138
12139
12140CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12141mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12142|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12143echo 'git directory not found: installing possibly empty changelog.' >&2)"
12144
12145
12146
12147
12148macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12149INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12150mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12151|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
12152echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
12153
12154
12155
12156
12157
12158
12159if test x$APP_MAN_SUFFIX = x    ; then
12160    APP_MAN_SUFFIX=1
12161fi
12162if test x$APP_MAN_DIR = x    ; then
12163    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12164fi
12165
12166if test x$LIB_MAN_SUFFIX = x    ; then
12167    LIB_MAN_SUFFIX=3
12168fi
12169if test x$LIB_MAN_DIR = x    ; then
12170    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12171fi
12172
12173if test x$FILE_MAN_SUFFIX = x    ; then
12174    case $host_os in
12175	solaris*)	FILE_MAN_SUFFIX=4  ;;
12176	*)		FILE_MAN_SUFFIX=5  ;;
12177    esac
12178fi
12179if test x$FILE_MAN_DIR = x    ; then
12180    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12181fi
12182
12183if test x$MISC_MAN_SUFFIX = x    ; then
12184    case $host_os in
12185	solaris*)	MISC_MAN_SUFFIX=5  ;;
12186	*)		MISC_MAN_SUFFIX=7  ;;
12187    esac
12188fi
12189if test x$MISC_MAN_DIR = x    ; then
12190    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12191fi
12192
12193if test x$DRIVER_MAN_SUFFIX = x    ; then
12194    case $host_os in
12195	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
12196	*)		DRIVER_MAN_SUFFIX=4  ;;
12197    esac
12198fi
12199if test x$DRIVER_MAN_DIR = x    ; then
12200    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12201fi
12202
12203if test x$ADMIN_MAN_SUFFIX = x    ; then
12204    case $host_os in
12205	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
12206	*)		ADMIN_MAN_SUFFIX=8  ;;
12207    esac
12208fi
12209if test x$ADMIN_MAN_DIR = x    ; then
12210    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12211fi
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227XORG_MAN_PAGE="X Version 11"
12228
12229MAN_SUBSTS="\
12230	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12231	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12232	-e 's|__xservername__|Xorg|g' \
12233	-e 's|__xconfigfile__|xorg.conf|g' \
12234	-e 's|__projectroot__|\$(prefix)|g' \
12235	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12236	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12237	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12238	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12239	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12240	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12241	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12242
12243
12244
12245# Check whether --enable-silent-rules was given.
12246if test "${enable_silent_rules+set}" = set; then :
12247  enableval=$enable_silent_rules;
12248fi
12249
12250case $enable_silent_rules in
12251yes) AM_DEFAULT_VERBOSITY=0;;
12252no)  AM_DEFAULT_VERBOSITY=1;;
12253*)   AM_DEFAULT_VERBOSITY=0;;
12254esac
12255AM_BACKSLASH='\'
12256
12257
12258
12259
12260for ac_prog in cpp
12261do
12262  # Extract the first word of "$ac_prog", so it can be a program name with args.
12263set dummy $ac_prog; ac_word=$2
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265$as_echo_n "checking for $ac_word... " >&6; }
12266if ${ac_cv_path_RAWCPP+:} false; then :
12267  $as_echo_n "(cached) " >&6
12268else
12269  case $RAWCPP in
12270  [\\/]* | ?:[\\/]*)
12271  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12272  ;;
12273  *)
12274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12276for as_dir in $as_dummy
12277do
12278  IFS=$as_save_IFS
12279  test -z "$as_dir" && as_dir=.
12280    for ac_exec_ext in '' $ac_executable_extensions; do
12281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12282    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284    break 2
12285  fi
12286done
12287  done
12288IFS=$as_save_IFS
12289
12290  ;;
12291esac
12292fi
12293RAWCPP=$ac_cv_path_RAWCPP
12294if test -n "$RAWCPP"; then
12295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
12296$as_echo "$RAWCPP" >&6; }
12297else
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
12300fi
12301
12302
12303  test -n "$RAWCPP" && break
12304done
12305test -n "$RAWCPP" || RAWCPP="${CPP}"
12306
12307
12308# Check for flag to avoid builtin definitions - assumes unix is predefined,
12309# which is not the best choice for supporting other OS'es, but covers most
12310# of the ones we need for now.
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
12312$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
12313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314/* end confdefs.h.  */
12315Does cpp redefine unix ?
12316_ACEOF
12317if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12318	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319$as_echo "no" >&6; }
12320else
12321	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12322		RAWCPPFLAGS=-undef
12323		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12324$as_echo "yes" >&6; }
12325	# under Cygwin unix is still defined even with -undef
12326	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12327		RAWCPPFLAGS="-undef -ansi"
12328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
12329$as_echo "yes, with -ansi" >&6; }
12330	else
12331		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
12332	fi
12333fi
12334rm -f conftest.$ac_ext
12335
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
12337$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
12338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339/* end confdefs.h.  */
12340Does cpp preserve   "whitespace"?
12341_ACEOF
12342if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12343	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
12345else
12346	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12347		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349$as_echo "yes" >&6; }
12350	else
12351		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
12352	fi
12353fi
12354rm -f conftest.$ac_ext
12355
12356
12357
12358
12359
12360
12361
12362# Check whether --with-lint was given.
12363if test "${with_lint+set}" = set; then :
12364  withval=$with_lint; use_lint=$withval
12365else
12366  use_lint=no
12367fi
12368
12369
12370# Obtain platform specific info like program name and options
12371# The lint program on FreeBSD and NetBSD is different from the one on Solaris
12372case $host_os in
12373  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12374	lint_name=splint
12375	lint_options="-badflag"
12376	;;
12377  *freebsd* | *netbsd*)
12378	lint_name=lint
12379	lint_options="-u -b"
12380	;;
12381  *solaris*)
12382	lint_name=lint
12383	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12384	;;
12385esac
12386
12387# Test for the presence of the program (either guessed by the code or spelled out by the user)
12388if test "x$use_lint" = x"yes" ; then
12389   # Extract the first word of "$lint_name", so it can be a program name with args.
12390set dummy $lint_name; ac_word=$2
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392$as_echo_n "checking for $ac_word... " >&6; }
12393if ${ac_cv_path_LINT+:} false; then :
12394  $as_echo_n "(cached) " >&6
12395else
12396  case $LINT in
12397  [\\/]* | ?:[\\/]*)
12398  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12399  ;;
12400  *)
12401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402for as_dir in $PATH
12403do
12404  IFS=$as_save_IFS
12405  test -z "$as_dir" && as_dir=.
12406    for ac_exec_ext in '' $ac_executable_extensions; do
12407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
12409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410    break 2
12411  fi
12412done
12413  done
12414IFS=$as_save_IFS
12415
12416  ;;
12417esac
12418fi
12419LINT=$ac_cv_path_LINT
12420if test -n "$LINT"; then
12421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12422$as_echo "$LINT" >&6; }
12423else
12424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425$as_echo "no" >&6; }
12426fi
12427
12428
12429   if test "x$LINT" = "x"; then
12430        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12431   fi
12432elif test "x$use_lint" = x"no" ; then
12433   if test "x$LINT" != "x"; then
12434      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12435$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12436   fi
12437else
12438   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12439fi
12440
12441# User supplied flags override default flags
12442if test "x$LINT_FLAGS" != "x"; then
12443   lint_options=$LINT_FLAGS
12444fi
12445
12446LINT_FLAGS=$lint_options
12447
12448 if test "x$LINT" != x; then
12449  LINT_TRUE=
12450  LINT_FALSE='#'
12451else
12452  LINT_TRUE='#'
12453  LINT_FALSE=
12454fi
12455
12456
12457
12458
12459# Checks for programs.
12460# Check for mktemp to prevent security issue noted in Xorg bug #5898
12461# See https://bugs.freedesktop.org/show_bug.cgi?id=5898 for details.
12462# Extract the first word of "mktemp", so it can be a program name with args.
12463set dummy mktemp; ac_word=$2
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465$as_echo_n "checking for $ac_word... " >&6; }
12466if ${ac_cv_path_MKTEMP_COMMAND+:} false; then :
12467  $as_echo_n "(cached) " >&6
12468else
12469  case $MKTEMP_COMMAND in
12470  [\\/]* | ?:[\\/]*)
12471  ac_cv_path_MKTEMP_COMMAND="$MKTEMP_COMMAND" # Let the user override the test with a path.
12472  ;;
12473  *)
12474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475for as_dir in $PATH
12476do
12477  IFS=$as_save_IFS
12478  test -z "$as_dir" && as_dir=.
12479    for ac_exec_ext in '' $ac_executable_extensions; do
12480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12481    ac_cv_path_MKTEMP_COMMAND="$as_dir/$ac_word$ac_exec_ext"
12482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483    break 2
12484  fi
12485done
12486  done
12487IFS=$as_save_IFS
12488
12489  ;;
12490esac
12491fi
12492MKTEMP_COMMAND=$ac_cv_path_MKTEMP_COMMAND
12493if test -n "$MKTEMP_COMMAND"; then
12494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP_COMMAND" >&5
12495$as_echo "$MKTEMP_COMMAND" >&6; }
12496else
12497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
12499fi
12500
12501
12502 if test x$MKTEMP_COMMAND != x; then
12503  HAVE_MKTEMP_COMMAND_TRUE=
12504  HAVE_MKTEMP_COMMAND_FALSE='#'
12505else
12506  HAVE_MKTEMP_COMMAND_TRUE='#'
12507  HAVE_MKTEMP_COMMAND_FALSE=
12508fi
12509
12510
12511#------------------------------------------------------------------------------
12512#			Check for system libraries
12513#
12514# AC_SEARCH_LIBS: tests using $LIBS and tests again with each listed library.
12515#                 pre-pends the found library to $LIBS.
12516#
12517#------------------------------------------------------------------------------
12518# Function getifaddrs() comes from the C library, Solaris 11 -lsocket, or
12519# the -lnsl name service library
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
12521$as_echo_n "checking for library containing getifaddrs... " >&6; }
12522if ${ac_cv_search_getifaddrs+:} false; then :
12523  $as_echo_n "(cached) " >&6
12524else
12525  ac_func_search_save_LIBS=$LIBS
12526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527/* end confdefs.h.  */
12528
12529/* Override any GCC internal prototype to avoid an error.
12530   Use char because int might match the return type of a GCC
12531   builtin and then its argument prototype would still apply.  */
12532#ifdef __cplusplus
12533extern "C"
12534#endif
12535char getifaddrs ();
12536int
12537main ()
12538{
12539return getifaddrs ();
12540  ;
12541  return 0;
12542}
12543_ACEOF
12544for ac_lib in '' socket nsl; do
12545  if test -z "$ac_lib"; then
12546    ac_res="none required"
12547  else
12548    ac_res=-l$ac_lib
12549    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12550  fi
12551  if ac_fn_c_try_link "$LINENO"; then :
12552  ac_cv_search_getifaddrs=$ac_res
12553fi
12554rm -f core conftest.err conftest.$ac_objext \
12555    conftest$ac_exeext
12556  if ${ac_cv_search_getifaddrs+:} false; then :
12557  break
12558fi
12559done
12560if ${ac_cv_search_getifaddrs+:} false; then :
12561
12562else
12563  ac_cv_search_getifaddrs=no
12564fi
12565rm conftest.$ac_ext
12566LIBS=$ac_func_search_save_LIBS
12567fi
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
12569$as_echo "$ac_cv_search_getifaddrs" >&6; }
12570ac_res=$ac_cv_search_getifaddrs
12571if test "$ac_res" != no; then :
12572  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12573
12574fi
12575
12576
12577# Function getspnam() comes from the C library, System V -lsec, UnixWare 7 -lgen
12578# or Old Linux versions -lshadow
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
12580$as_echo_n "checking for library containing getspnam... " >&6; }
12581if ${ac_cv_search_getspnam+:} false; then :
12582  $as_echo_n "(cached) " >&6
12583else
12584  ac_func_search_save_LIBS=$LIBS
12585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586/* end confdefs.h.  */
12587
12588/* Override any GCC internal prototype to avoid an error.
12589   Use char because int might match the return type of a GCC
12590   builtin and then its argument prototype would still apply.  */
12591#ifdef __cplusplus
12592extern "C"
12593#endif
12594char getspnam ();
12595int
12596main ()
12597{
12598return getspnam ();
12599  ;
12600  return 0;
12601}
12602_ACEOF
12603for ac_lib in '' sec gen shadow; do
12604  if test -z "$ac_lib"; then
12605    ac_res="none required"
12606  else
12607    ac_res=-l$ac_lib
12608    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12609  fi
12610  if ac_fn_c_try_link "$LINENO"; then :
12611  ac_cv_search_getspnam=$ac_res
12612fi
12613rm -f core conftest.err conftest.$ac_objext \
12614    conftest$ac_exeext
12615  if ${ac_cv_search_getspnam+:} false; then :
12616  break
12617fi
12618done
12619if ${ac_cv_search_getspnam+:} false; then :
12620
12621else
12622  ac_cv_search_getspnam=no
12623fi
12624rm conftest.$ac_ext
12625LIBS=$ac_func_search_save_LIBS
12626fi
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
12628$as_echo "$ac_cv_search_getspnam" >&6; }
12629ac_res=$ac_cv_search_getspnam
12630if test "$ac_res" != no; then :
12631  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12632
12633fi
12634
12635
12636# Function setproctitle() is in BSD -lutil or GNU systems -lbsd but N/A on Solaris
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
12638$as_echo_n "checking for library containing setproctitle... " >&6; }
12639if ${ac_cv_search_setproctitle+:} false; then :
12640  $as_echo_n "(cached) " >&6
12641else
12642  ac_func_search_save_LIBS=$LIBS
12643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644/* end confdefs.h.  */
12645
12646/* Override any GCC internal prototype to avoid an error.
12647   Use char because int might match the return type of a GCC
12648   builtin and then its argument prototype would still apply.  */
12649#ifdef __cplusplus
12650extern "C"
12651#endif
12652char setproctitle ();
12653int
12654main ()
12655{
12656return setproctitle ();
12657  ;
12658  return 0;
12659}
12660_ACEOF
12661for ac_lib in '' util bsd; do
12662  if test -z "$ac_lib"; then
12663    ac_res="none required"
12664  else
12665    ac_res=-l$ac_lib
12666    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12667  fi
12668  if ac_fn_c_try_link "$LINENO"; then :
12669  ac_cv_search_setproctitle=$ac_res
12670fi
12671rm -f core conftest.err conftest.$ac_objext \
12672    conftest$ac_exeext
12673  if ${ac_cv_search_setproctitle+:} false; then :
12674  break
12675fi
12676done
12677if ${ac_cv_search_setproctitle+:} false; then :
12678
12679else
12680  ac_cv_search_setproctitle=no
12681fi
12682rm conftest.$ac_ext
12683LIBS=$ac_func_search_save_LIBS
12684fi
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
12686$as_echo "$ac_cv_search_setproctitle" >&6; }
12687ac_res=$ac_cv_search_setproctitle
12688if test "$ac_res" != no; then :
12689  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12690
12691fi
12692
12693
12694# Function setusercontext() is in BSD -lutil but N/A on Solaris or GNU systems
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
12696$as_echo_n "checking for library containing setusercontext... " >&6; }
12697if ${ac_cv_search_setusercontext+:} false; then :
12698  $as_echo_n "(cached) " >&6
12699else
12700  ac_func_search_save_LIBS=$LIBS
12701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702/* end confdefs.h.  */
12703
12704/* Override any GCC internal prototype to avoid an error.
12705   Use char because int might match the return type of a GCC
12706   builtin and then its argument prototype would still apply.  */
12707#ifdef __cplusplus
12708extern "C"
12709#endif
12710char setusercontext ();
12711int
12712main ()
12713{
12714return setusercontext ();
12715  ;
12716  return 0;
12717}
12718_ACEOF
12719for ac_lib in '' util; do
12720  if test -z "$ac_lib"; then
12721    ac_res="none required"
12722  else
12723    ac_res=-l$ac_lib
12724    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12725  fi
12726  if ac_fn_c_try_link "$LINENO"; then :
12727  ac_cv_search_setusercontext=$ac_res
12728fi
12729rm -f core conftest.err conftest.$ac_objext \
12730    conftest$ac_exeext
12731  if ${ac_cv_search_setusercontext+:} false; then :
12732  break
12733fi
12734done
12735if ${ac_cv_search_setusercontext+:} false; then :
12736
12737else
12738  ac_cv_search_setusercontext=no
12739fi
12740rm conftest.$ac_ext
12741LIBS=$ac_func_search_save_LIBS
12742fi
12743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
12744$as_echo "$ac_cv_search_setusercontext" >&6; }
12745ac_res=$ac_cv_search_setusercontext
12746if test "$ac_res" != no; then :
12747  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12748
12749fi
12750
12751
12752# Function arc4random() is in BSD standard C or GNU systems -lbsd
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5
12754$as_echo_n "checking for library containing arc4random... " >&6; }
12755if ${ac_cv_search_arc4random+:} false; then :
12756  $as_echo_n "(cached) " >&6
12757else
12758  ac_func_search_save_LIBS=$LIBS
12759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760/* end confdefs.h.  */
12761
12762/* Override any GCC internal prototype to avoid an error.
12763   Use char because int might match the return type of a GCC
12764   builtin and then its argument prototype would still apply.  */
12765#ifdef __cplusplus
12766extern "C"
12767#endif
12768char arc4random ();
12769int
12770main ()
12771{
12772return arc4random ();
12773  ;
12774  return 0;
12775}
12776_ACEOF
12777for ac_lib in '' bsd; do
12778  if test -z "$ac_lib"; then
12779    ac_res="none required"
12780  else
12781    ac_res=-l$ac_lib
12782    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12783  fi
12784  if ac_fn_c_try_link "$LINENO"; then :
12785  ac_cv_search_arc4random=$ac_res
12786fi
12787rm -f core conftest.err conftest.$ac_objext \
12788    conftest$ac_exeext
12789  if ${ac_cv_search_arc4random+:} false; then :
12790  break
12791fi
12792done
12793if ${ac_cv_search_arc4random+:} false; then :
12794
12795else
12796  ac_cv_search_arc4random=no
12797fi
12798rm conftest.$ac_ext
12799LIBS=$ac_func_search_save_LIBS
12800fi
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5
12802$as_echo "$ac_cv_search_arc4random" >&6; }
12803ac_res=$ac_cv_search_arc4random
12804if test "$ac_res" != no; then :
12805  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12806  HAVE_ARC4RANDOM="yes"
12807fi
12808
12809
12810 if test x$HAVE_ARC4RANDOM = xyes; then
12811  HAVE_ARC4RANDOM_TRUE=
12812  HAVE_ARC4RANDOM_FALSE='#'
12813else
12814  HAVE_ARC4RANDOM_TRUE='#'
12815  HAVE_ARC4RANDOM_FALSE=
12816fi
12817
12818
12819# Function crypt() comes from the C library or the -lcrypt data encryption library
12820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12821$as_echo_n "checking for library containing crypt... " >&6; }
12822if ${ac_cv_search_crypt+:} false; then :
12823  $as_echo_n "(cached) " >&6
12824else
12825  ac_func_search_save_LIBS=$LIBS
12826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827/* end confdefs.h.  */
12828
12829/* Override any GCC internal prototype to avoid an error.
12830   Use char because int might match the return type of a GCC
12831   builtin and then its argument prototype would still apply.  */
12832#ifdef __cplusplus
12833extern "C"
12834#endif
12835char crypt ();
12836int
12837main ()
12838{
12839return crypt ();
12840  ;
12841  return 0;
12842}
12843_ACEOF
12844for ac_lib in '' crypt; do
12845  if test -z "$ac_lib"; then
12846    ac_res="none required"
12847  else
12848    ac_res=-l$ac_lib
12849    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12850  fi
12851  if ac_fn_c_try_link "$LINENO"; then :
12852  ac_cv_search_crypt=$ac_res
12853fi
12854rm -f core conftest.err conftest.$ac_objext \
12855    conftest$ac_exeext
12856  if ${ac_cv_search_crypt+:} false; then :
12857  break
12858fi
12859done
12860if ${ac_cv_search_crypt+:} false; then :
12861
12862else
12863  ac_cv_search_crypt=no
12864fi
12865rm conftest.$ac_ext
12866LIBS=$ac_func_search_save_LIBS
12867fi
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12869$as_echo "$ac_cv_search_crypt" >&6; }
12870ac_res=$ac_cv_search_crypt
12871if test "$ac_res" != no; then :
12872  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12873
12874fi
12875
12876
12877# Function dl() comes from the C library or -ldl
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12879$as_echo_n "checking for library containing dlopen... " >&6; }
12880if ${ac_cv_search_dlopen+:} false; then :
12881  $as_echo_n "(cached) " >&6
12882else
12883  ac_func_search_save_LIBS=$LIBS
12884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885/* end confdefs.h.  */
12886
12887/* Override any GCC internal prototype to avoid an error.
12888   Use char because int might match the return type of a GCC
12889   builtin and then its argument prototype would still apply.  */
12890#ifdef __cplusplus
12891extern "C"
12892#endif
12893char dlopen ();
12894int
12895main ()
12896{
12897return dlopen ();
12898  ;
12899  return 0;
12900}
12901_ACEOF
12902for ac_lib in '' dl; do
12903  if test -z "$ac_lib"; then
12904    ac_res="none required"
12905  else
12906    ac_res=-l$ac_lib
12907    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12908  fi
12909  if ac_fn_c_try_link "$LINENO"; then :
12910  ac_cv_search_dlopen=$ac_res
12911fi
12912rm -f core conftest.err conftest.$ac_objext \
12913    conftest$ac_exeext
12914  if ${ac_cv_search_dlopen+:} false; then :
12915  break
12916fi
12917done
12918if ${ac_cv_search_dlopen+:} false; then :
12919
12920else
12921  ac_cv_search_dlopen=no
12922fi
12923rm conftest.$ac_ext
12924LIBS=$ac_func_search_save_LIBS
12925fi
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12927$as_echo "$ac_cv_search_dlopen" >&6; }
12928ac_res=$ac_cv_search_dlopen
12929if test "$ac_res" != no; then :
12930  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12931
12932fi
12933
12934#------------------------------------------------------------------------------
12935
12936# Checks for header files.
12937for ac_header in grp.h syslog.h sys/param.h
12938do :
12939  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12940ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12941if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12942  cat >>confdefs.h <<_ACEOF
12943#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12944_ACEOF
12945
12946fi
12947
12948done
12949
12950ac_fn_c_check_decl "$LINENO" "key_setnet" "ac_cv_have_decl_key_setnet" "
12951#include <rpc/rpc.h>
12952#include <rpc/key_prot.h>
12953
12954"
12955if test "x$ac_cv_have_decl_key_setnet" = xyes; then :
12956
12957$as_echo "#define HAVE_DECL_KEY_SETNET 1" >>confdefs.h
12958
12959fi
12960
12961
12962# Checks for typedefs, structures, and compiler characteristics.
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12964$as_echo_n "checking return type of signal handlers... " >&6; }
12965if ${ac_cv_type_signal+:} false; then :
12966  $as_echo_n "(cached) " >&6
12967else
12968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969/* end confdefs.h.  */
12970#include <sys/types.h>
12971#include <signal.h>
12972
12973int
12974main ()
12975{
12976return *(signal (0, 0)) (0) == 1;
12977  ;
12978  return 0;
12979}
12980_ACEOF
12981if ac_fn_c_try_compile "$LINENO"; then :
12982  ac_cv_type_signal=int
12983else
12984  ac_cv_type_signal=void
12985fi
12986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987fi
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12989$as_echo "$ac_cv_type_signal" >&6; }
12990
12991cat >>confdefs.h <<_ACEOF
12992#define RETSIGTYPE $ac_cv_type_signal
12993_ACEOF
12994
12995
12996
12997# Check for system library functions
12998# Required system libraries have been searched for and are listed in $LIBS
12999ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13000if test "x$ac_cv_type_pid_t" = xyes; then :
13001
13002else
13003
13004cat >>confdefs.h <<_ACEOF
13005#define pid_t int
13006_ACEOF
13007
13008fi
13009
13010for ac_header in vfork.h
13011do :
13012  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13013if test "x$ac_cv_header_vfork_h" = xyes; then :
13014  cat >>confdefs.h <<_ACEOF
13015#define HAVE_VFORK_H 1
13016_ACEOF
13017
13018fi
13019
13020done
13021
13022for ac_func in fork vfork
13023do :
13024  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13025ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13026if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13027  cat >>confdefs.h <<_ACEOF
13028#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13029_ACEOF
13030
13031fi
13032done
13033
13034if test "x$ac_cv_func_fork" = xyes; then
13035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13036$as_echo_n "checking for working fork... " >&6; }
13037if ${ac_cv_func_fork_works+:} false; then :
13038  $as_echo_n "(cached) " >&6
13039else
13040  if test "$cross_compiling" = yes; then :
13041  ac_cv_func_fork_works=cross
13042else
13043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044/* end confdefs.h.  */
13045$ac_includes_default
13046int
13047main ()
13048{
13049
13050	  /* By Ruediger Kuhlmann. */
13051	  return fork () < 0;
13052
13053  ;
13054  return 0;
13055}
13056_ACEOF
13057if ac_fn_c_try_run "$LINENO"; then :
13058  ac_cv_func_fork_works=yes
13059else
13060  ac_cv_func_fork_works=no
13061fi
13062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13063  conftest.$ac_objext conftest.beam conftest.$ac_ext
13064fi
13065
13066fi
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13068$as_echo "$ac_cv_func_fork_works" >&6; }
13069
13070else
13071  ac_cv_func_fork_works=$ac_cv_func_fork
13072fi
13073if test "x$ac_cv_func_fork_works" = xcross; then
13074  case $host in
13075    *-*-amigaos* | *-*-msdosdjgpp*)
13076      # Override, as these systems have only a dummy fork() stub
13077      ac_cv_func_fork_works=no
13078      ;;
13079    *)
13080      ac_cv_func_fork_works=yes
13081      ;;
13082  esac
13083  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13084$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13085fi
13086ac_cv_func_vfork_works=$ac_cv_func_vfork
13087if test "x$ac_cv_func_vfork" = xyes; then
13088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13089$as_echo_n "checking for working vfork... " >&6; }
13090if ${ac_cv_func_vfork_works+:} false; then :
13091  $as_echo_n "(cached) " >&6
13092else
13093  if test "$cross_compiling" = yes; then :
13094  ac_cv_func_vfork_works=cross
13095else
13096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097/* end confdefs.h.  */
13098/* Thanks to Paul Eggert for this test.  */
13099$ac_includes_default
13100#include <sys/wait.h>
13101#ifdef HAVE_VFORK_H
13102# include <vfork.h>
13103#endif
13104/* On some sparc systems, changes by the child to local and incoming
13105   argument registers are propagated back to the parent.  The compiler
13106   is told about this with #include <vfork.h>, but some compilers
13107   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
13108   static variable whose address is put into a register that is
13109   clobbered by the vfork.  */
13110static void
13111#ifdef __cplusplus
13112sparc_address_test (int arg)
13113# else
13114sparc_address_test (arg) int arg;
13115#endif
13116{
13117  static pid_t child;
13118  if (!child) {
13119    child = vfork ();
13120    if (child < 0) {
13121      perror ("vfork");
13122      _exit(2);
13123    }
13124    if (!child) {
13125      arg = getpid();
13126      write(-1, "", 0);
13127      _exit (arg);
13128    }
13129  }
13130}
13131
13132int
13133main ()
13134{
13135  pid_t parent = getpid ();
13136  pid_t child;
13137
13138  sparc_address_test (0);
13139
13140  child = vfork ();
13141
13142  if (child == 0) {
13143    /* Here is another test for sparc vfork register problems.  This
13144       test uses lots of local variables, at least as many local
13145       variables as main has allocated so far including compiler
13146       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
13147       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
13148       reuse the register of parent for one of the local variables,
13149       since it will think that parent can't possibly be used any more
13150       in this routine.  Assigning to the local variable will thus
13151       munge parent in the parent process.  */
13152    pid_t
13153      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13154      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13155    /* Convince the compiler that p..p7 are live; otherwise, it might
13156       use the same hardware register for all 8 local variables.  */
13157    if (p != p1 || p != p2 || p != p3 || p != p4
13158	|| p != p5 || p != p6 || p != p7)
13159      _exit(1);
13160
13161    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13162       from child file descriptors.  If the child closes a descriptor
13163       before it execs or exits, this munges the parent's descriptor
13164       as well.  Test for this by closing stdout in the child.  */
13165    _exit(close(fileno(stdout)) != 0);
13166  } else {
13167    int status;
13168    struct stat st;
13169
13170    while (wait(&status) != child)
13171      ;
13172    return (
13173	 /* Was there some problem with vforking?  */
13174	 child < 0
13175
13176	 /* Did the child fail?  (This shouldn't happen.)  */
13177	 || status
13178
13179	 /* Did the vfork/compiler bug occur?  */
13180	 || parent != getpid()
13181
13182	 /* Did the file descriptor bug occur?  */
13183	 || fstat(fileno(stdout), &st) != 0
13184	 );
13185  }
13186}
13187_ACEOF
13188if ac_fn_c_try_run "$LINENO"; then :
13189  ac_cv_func_vfork_works=yes
13190else
13191  ac_cv_func_vfork_works=no
13192fi
13193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13194  conftest.$ac_objext conftest.beam conftest.$ac_ext
13195fi
13196
13197fi
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13199$as_echo "$ac_cv_func_vfork_works" >&6; }
13200
13201fi;
13202if test "x$ac_cv_func_fork_works" = xcross; then
13203  ac_cv_func_vfork_works=$ac_cv_func_vfork
13204  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13205$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13206fi
13207
13208if test "x$ac_cv_func_vfork_works" = xyes; then
13209
13210$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13211
13212else
13213
13214$as_echo "#define vfork fork" >>confdefs.h
13215
13216fi
13217if test "x$ac_cv_func_fork_works" = xyes; then
13218
13219$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13220
13221fi
13222
13223for ac_func in daemon sigaction openlog asprintf setproctitle setusercontext \
13224                mkstemp getifaddrs getspnam arc4random
13225do :
13226  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13227ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13228if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13229  cat >>confdefs.h <<_ACEOF
13230#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13231_ACEOF
13232
13233fi
13234done
13235
13236
13237XDM_CFLAGS="$XDM_CFLAGS"
13238GREETER_CFLAGS="$GREETER_CFLAGS"
13239CHOOSER_CFLAGS="$CHOOSER_CFLAGS"
13240
13241# Find needed libraries for TCP sockets (pre-pended in $LIBS)
13242
13243
13244
13245 case $host_os in
13246	mingw*)	unixdef="no"   ;;
13247	*)	unixdef="yes"  ;;
13248 esac
13249 # Check whether --enable-unix-transport was given.
13250if test "${enable_unix_transport+set}" = set; then :
13251  enableval=$enable_unix_transport; UNIXCONN=$enableval
13252else
13253  UNIXCONN=$unixdef
13254fi
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
13257$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
13258 if test "$UNIXCONN" = "yes"; then
13259
13260$as_echo "#define UNIXCONN 1" >>confdefs.h
13261
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
13264$as_echo "$UNIXCONN" >&6; }
13265 # Check whether --enable-tcp-transport was given.
13266if test "${enable_tcp_transport+set}" = set; then :
13267  enableval=$enable_tcp_transport; TCPCONN=$enableval
13268else
13269  TCPCONN=yes
13270fi
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
13273$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
13275$as_echo "$TCPCONN" >&6; }
13276 if test "$TCPCONN" = "yes"; then
13277
13278$as_echo "#define TCPCONN 1" >>confdefs.h
13279
13280
13281 # SVR4 hides these in libraries other than libc
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13283$as_echo_n "checking for library containing socket... " >&6; }
13284if ${ac_cv_search_socket+:} false; then :
13285  $as_echo_n "(cached) " >&6
13286else
13287  ac_func_search_save_LIBS=$LIBS
13288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289/* end confdefs.h.  */
13290
13291/* Override any GCC internal prototype to avoid an error.
13292   Use char because int might match the return type of a GCC
13293   builtin and then its argument prototype would still apply.  */
13294#ifdef __cplusplus
13295extern "C"
13296#endif
13297char socket ();
13298int
13299main ()
13300{
13301return socket ();
13302  ;
13303  return 0;
13304}
13305_ACEOF
13306for ac_lib in '' socket; do
13307  if test -z "$ac_lib"; then
13308    ac_res="none required"
13309  else
13310    ac_res=-l$ac_lib
13311    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13312  fi
13313  if ac_fn_c_try_link "$LINENO"; then :
13314  ac_cv_search_socket=$ac_res
13315fi
13316rm -f core conftest.err conftest.$ac_objext \
13317    conftest$ac_exeext
13318  if ${ac_cv_search_socket+:} false; then :
13319  break
13320fi
13321done
13322if ${ac_cv_search_socket+:} false; then :
13323
13324else
13325  ac_cv_search_socket=no
13326fi
13327rm conftest.$ac_ext
13328LIBS=$ac_func_search_save_LIBS
13329fi
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13331$as_echo "$ac_cv_search_socket" >&6; }
13332ac_res=$ac_cv_search_socket
13333if test "$ac_res" != no; then :
13334  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13335
13336fi
13337
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13339$as_echo_n "checking for library containing gethostbyname... " >&6; }
13340if ${ac_cv_search_gethostbyname+:} false; then :
13341  $as_echo_n "(cached) " >&6
13342else
13343  ac_func_search_save_LIBS=$LIBS
13344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345/* end confdefs.h.  */
13346
13347/* Override any GCC internal prototype to avoid an error.
13348   Use char because int might match the return type of a GCC
13349   builtin and then its argument prototype would still apply.  */
13350#ifdef __cplusplus
13351extern "C"
13352#endif
13353char gethostbyname ();
13354int
13355main ()
13356{
13357return gethostbyname ();
13358  ;
13359  return 0;
13360}
13361_ACEOF
13362for ac_lib in '' nsl; do
13363  if test -z "$ac_lib"; then
13364    ac_res="none required"
13365  else
13366    ac_res=-l$ac_lib
13367    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13368  fi
13369  if ac_fn_c_try_link "$LINENO"; then :
13370  ac_cv_search_gethostbyname=$ac_res
13371fi
13372rm -f core conftest.err conftest.$ac_objext \
13373    conftest$ac_exeext
13374  if ${ac_cv_search_gethostbyname+:} false; then :
13375  break
13376fi
13377done
13378if ${ac_cv_search_gethostbyname+:} false; then :
13379
13380else
13381  ac_cv_search_gethostbyname=no
13382fi
13383rm conftest.$ac_ext
13384LIBS=$ac_func_search_save_LIBS
13385fi
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13387$as_echo "$ac_cv_search_gethostbyname" >&6; }
13388ac_res=$ac_cv_search_gethostbyname
13389if test "$ac_res" != no; then :
13390  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13391
13392fi
13393
13394 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
13396$as_echo_n "checking for main in -lws2_32... " >&6; }
13397if ${ac_cv_lib_ws2_32_main+:} false; then :
13398  $as_echo_n "(cached) " >&6
13399else
13400  ac_check_lib_save_LIBS=$LIBS
13401LIBS="-lws2_32  $LIBS"
13402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403/* end confdefs.h.  */
13404
13405
13406int
13407main ()
13408{
13409return main ();
13410  ;
13411  return 0;
13412}
13413_ACEOF
13414if ac_fn_c_try_link "$LINENO"; then :
13415  ac_cv_lib_ws2_32_main=yes
13416else
13417  ac_cv_lib_ws2_32_main=no
13418fi
13419rm -f core conftest.err conftest.$ac_objext \
13420    conftest$ac_exeext conftest.$ac_ext
13421LIBS=$ac_check_lib_save_LIBS
13422fi
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
13424$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
13425if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
13426  cat >>confdefs.h <<_ACEOF
13427#define HAVE_LIBWS2_32 1
13428_ACEOF
13429
13430  LIBS="-lws2_32 $LIBS"
13431
13432fi
13433ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
13434
13435 fi
13436
13437 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
13438 # Check whether --enable-ipv6 was given.
13439if test "${enable_ipv6+set}" = set; then :
13440  enableval=$enable_ipv6; IPV6CONN=$enableval
13441else
13442  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13443if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13444  IPV6CONN=yes
13445else
13446  IPV6CONN=no
13447fi
13448
13449fi
13450
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
13452$as_echo_n "checking if IPv6 support should be built... " >&6; }
13453 if test "$IPV6CONN" = "yes"; then
13454
13455$as_echo "#define IPv6 1" >>confdefs.h
13456
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
13459$as_echo "$IPV6CONN" >&6; }
13460
13461 # 4.3BSD-Reno added a new member to struct sockaddr_in
13462 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
13463#include <sys/types.h>
13464#include <sys/socket.h>
13465#include <netinet/in.h>
13466
13467"
13468if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13469
13470$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
13471
13472fi
13473
13474
13475 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
13476 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13477$ac_includes_default
13478#include <sys/socket.h>
13479"
13480if test "x$ac_cv_type_socklen_t" = xyes; then :
13481
13482cat >>confdefs.h <<_ACEOF
13483#define HAVE_SOCKLEN_T 1
13484_ACEOF
13485
13486
13487fi
13488
13489
13490
13491 fi
13492 case $host_os in
13493	solaris*|sco*|sysv4*)	localdef="yes" ;;
13494	*)			localdef="no"  ;;
13495 esac
13496 # Check whether --enable-local-transport was given.
13497if test "${enable_local_transport+set}" = set; then :
13498  enableval=$enable_local_transport; LOCALCONN=$enableval
13499else
13500  LOCALCONN=$localdef
13501fi
13502
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
13504$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
13506$as_echo "$LOCALCONN" >&6; }
13507 if test "$LOCALCONN" = "yes"; then
13508
13509$as_echo "#define LOCALCONN 1" >>confdefs.h
13510
13511 fi
13512
13513
13514
13515# Sets $SECURE_RPC to "yes" or "no" using libraries found above from $LIBS
13516
13517 # Check whether --enable-secure-rpc was given.
13518if test "${enable_secure_rpc+set}" = set; then :
13519  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
13520else
13521  SECURE_RPC="try"
13522fi
13523
13524
13525 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
13526	FOUND_SECURE_RPC="no"
13527	for ac_func in authdes_seccreate authdes_create
13528do :
13529  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13530ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13531if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13532  cat >>confdefs.h <<_ACEOF
13533#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13534_ACEOF
13535 FOUND_SECURE_RPC="yes"
13536fi
13537done
13538
13539	if test "x$FOUND_SECURE_RPC" = "xno" ; then
13540		if test "x$SECURE_RPC" = "xyes" ; then
13541	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
13542		fi
13543		SECURE_RPC="no"
13544	else
13545				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
13546$as_echo_n "checking for library containing getsecretkey... " >&6; }
13547if ${ac_cv_search_getsecretkey+:} false; then :
13548  $as_echo_n "(cached) " >&6
13549else
13550  ac_func_search_save_LIBS=$LIBS
13551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h.  */
13553
13554/* Override any GCC internal prototype to avoid an error.
13555   Use char because int might match the return type of a GCC
13556   builtin and then its argument prototype would still apply.  */
13557#ifdef __cplusplus
13558extern "C"
13559#endif
13560char getsecretkey ();
13561int
13562main ()
13563{
13564return getsecretkey ();
13565  ;
13566  return 0;
13567}
13568_ACEOF
13569for ac_lib in '' rpcsvc; do
13570  if test -z "$ac_lib"; then
13571    ac_res="none required"
13572  else
13573    ac_res=-l$ac_lib
13574    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13575  fi
13576  if ac_fn_c_try_link "$LINENO"; then :
13577  ac_cv_search_getsecretkey=$ac_res
13578fi
13579rm -f core conftest.err conftest.$ac_objext \
13580    conftest$ac_exeext
13581  if ${ac_cv_search_getsecretkey+:} false; then :
13582  break
13583fi
13584done
13585if ${ac_cv_search_getsecretkey+:} false; then :
13586
13587else
13588  ac_cv_search_getsecretkey=no
13589fi
13590rm conftest.$ac_ext
13591LIBS=$ac_func_search_save_LIBS
13592fi
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
13594$as_echo "$ac_cv_search_getsecretkey" >&6; }
13595ac_res=$ac_cv_search_getsecretkey
13596if test "$ac_res" != no; then :
13597  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13598
13599fi
13600
13601		SECURE_RPC="yes"
13602	fi
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
13605$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
13606 if test "x$SECURE_RPC" = "xyes" ; then
13607
13608$as_echo "#define SECURE_RPC 1" >>confdefs.h
13609
13610 fi
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
13612$as_echo "$SECURE_RPC" >&6; }
13613
13614 if test x$SECURE_RPC = xyes; then
13615  HAS_SECURE_RPC_TRUE=
13616  HAS_SECURE_RPC_FALSE='#'
13617else
13618  HAS_SECURE_RPC_TRUE='#'
13619  HAS_SECURE_RPC_FALSE=
13620fi
13621
13622
13623# Check for pluggable authentication modules (PAM) support
13624
13625# Check whether --with-pam was given.
13626if test "${with_pam+set}" = set; then :
13627  withval=$with_pam; USE_PAM=$withval
13628else
13629  USE_PAM=auto
13630fi
13631
13632if test "x$USE_PAM" != "xno" ; then
13633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_open_session" >&5
13634$as_echo_n "checking for library containing pam_open_session... " >&6; }
13635if ${ac_cv_search_pam_open_session+:} false; then :
13636  $as_echo_n "(cached) " >&6
13637else
13638  ac_func_search_save_LIBS=$LIBS
13639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640/* end confdefs.h.  */
13641
13642/* Override any GCC internal prototype to avoid an error.
13643   Use char because int might match the return type of a GCC
13644   builtin and then its argument prototype would still apply.  */
13645#ifdef __cplusplus
13646extern "C"
13647#endif
13648char pam_open_session ();
13649int
13650main ()
13651{
13652return pam_open_session ();
13653  ;
13654  return 0;
13655}
13656_ACEOF
13657for ac_lib in '' pam; do
13658  if test -z "$ac_lib"; then
13659    ac_res="none required"
13660  else
13661    ac_res=-l$ac_lib
13662    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13663  fi
13664  if ac_fn_c_try_link "$LINENO"; then :
13665  ac_cv_search_pam_open_session=$ac_res
13666fi
13667rm -f core conftest.err conftest.$ac_objext \
13668    conftest$ac_exeext
13669  if ${ac_cv_search_pam_open_session+:} false; then :
13670  break
13671fi
13672done
13673if ${ac_cv_search_pam_open_session+:} false; then :
13674
13675else
13676  ac_cv_search_pam_open_session=no
13677fi
13678rm conftest.$ac_ext
13679LIBS=$ac_func_search_save_LIBS
13680fi
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_open_session" >&5
13682$as_echo "$ac_cv_search_pam_open_session" >&6; }
13683ac_res=$ac_cv_search_pam_open_session
13684if test "$ac_res" != no; then :
13685  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13686  ac_fn_c_check_func "$LINENO" "pam_open_session" "ac_cv_func_pam_open_session"
13687if test "x$ac_cv_func_pam_open_session" = xyes; then :
13688
13689$as_echo "#define USE_PAM 1" >>confdefs.h
13690
13691
13692fi
13693
13694else
13695  if test "x$USE_PAM" = "xyes"; then :
13696  as_fn_error $? "PAM support requested, but pam_open_session not found." "$LINENO" 5
13697
13698fi
13699
13700fi
13701
13702fi
13703
13704# Check for Security-Enhanced Linux (SELinux) support
13705
13706# Check whether --with-selinux was given.
13707if test "${with_selinux+set}" = set; then :
13708  withval=$with_selinux; USE_SELINUX=$withval
13709else
13710  USE_SELINUX=no
13711fi
13712
13713if test "x$USE_SELINUX" != "xno" ; then
13714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing is_selinux_enabled" >&5
13715$as_echo_n "checking for library containing is_selinux_enabled... " >&6; }
13716if ${ac_cv_search_is_selinux_enabled+:} false; then :
13717  $as_echo_n "(cached) " >&6
13718else
13719  ac_func_search_save_LIBS=$LIBS
13720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721/* end confdefs.h.  */
13722
13723/* Override any GCC internal prototype to avoid an error.
13724   Use char because int might match the return type of a GCC
13725   builtin and then its argument prototype would still apply.  */
13726#ifdef __cplusplus
13727extern "C"
13728#endif
13729char is_selinux_enabled ();
13730int
13731main ()
13732{
13733return is_selinux_enabled ();
13734  ;
13735  return 0;
13736}
13737_ACEOF
13738for ac_lib in '' selinux; do
13739  if test -z "$ac_lib"; then
13740    ac_res="none required"
13741  else
13742    ac_res=-l$ac_lib
13743    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13744  fi
13745  if ac_fn_c_try_link "$LINENO"; then :
13746  ac_cv_search_is_selinux_enabled=$ac_res
13747fi
13748rm -f core conftest.err conftest.$ac_objext \
13749    conftest$ac_exeext
13750  if ${ac_cv_search_is_selinux_enabled+:} false; then :
13751  break
13752fi
13753done
13754if ${ac_cv_search_is_selinux_enabled+:} false; then :
13755
13756else
13757  ac_cv_search_is_selinux_enabled=no
13758fi
13759rm conftest.$ac_ext
13760LIBS=$ac_func_search_save_LIBS
13761fi
13762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_is_selinux_enabled" >&5
13763$as_echo "$ac_cv_search_is_selinux_enabled" >&6; }
13764ac_res=$ac_cv_search_is_selinux_enabled
13765if test "$ac_res" != no; then :
13766  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13767  ac_fn_c_check_func "$LINENO" "is_selinux_enabled" "ac_cv_func_is_selinux_enabled"
13768if test "x$ac_cv_func_is_selinux_enabled" = xyes; then :
13769
13770$as_echo "#define USE_SELINUX 1" >>confdefs.h
13771
13772
13773fi
13774
13775else
13776  if test "x$USE_SELINUX" = "xyes"; then :
13777  as_fn_error $? "SELinux support requested, but is_selinux_enabled not found." "$LINENO" 5
13778
13779fi
13780
13781fi
13782
13783fi
13784
13785# Check whether to install systemd unit files, as suggested in daemon(7).
13786
13787# Check whether --with-systemdsystemunitdir was given.
13788if test "${with_systemdsystemunitdir+set}" = set; then :
13789  withval=$with_systemdsystemunitdir;
13790else
13791  with_systemdsystemunitdir=auto
13792fi
13793
13794if test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"; then :
13795
13796    def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
13797
13798    if test "x$def_systemdsystemunitdir" = "x"; then :
13799
13800	if test "x$with_systemdsystemunitdir" = "xyes"; then :
13801
13802	    as_fn_error $? "systemd support requested but pkg-config unable to query systemd package" "$LINENO" 5
13803
13804fi
13805	with_systemdsystemunitdir=no
13806
13807else
13808
13809	with_systemdsystemunitdir=$def_systemdsystemunitdir
13810
13811fi
13812
13813fi
13814if test "x$with_systemdsystemunitdir" != "xno"; then :
13815
13816	systemdsystemunitdir=$with_systemdsystemunitdir
13817
13818
13819fi
13820 if test "x$with_systemdsystemunitdir" != "xno"; then
13821  HAVE_SYSTEMD_TRUE=
13822  HAVE_SYSTEMD_FALSE='#'
13823else
13824  HAVE_SYSTEMD_TRUE='#'
13825  HAVE_SYSTEMD_FALSE=
13826fi
13827
13828
13829# FIXME: Find better test for which OS'es use su -m  - for now, just try to
13830# mirror the Imakefile setting of:
13831# if  defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || defined(FreeBSDArchitecture) || defined(DarwinArchitecture)
13832
13833
13834case $host_os in
13835    linux*|gnu*|*-gnu)
13836	SU="su"
13837        ;;
13838    darwin*)
13839	SU="su -m"
13840        ;;
13841    *bsd*|dragonfly*)
13842	SU="su -m"
13843        ;;
13844    solaris*|sysv4*)
13845	SU="su"
13846	;;
13847    *)
13848	SU="su"
13849        ;;
13850esac
13851
13852
13853# Define a configure option to locate a special file (/dev/random or /dev/urandom)
13854# that serves as a random or a pseudorandom number generator
13855
13856# Check whether --with-random-device was given.
13857if test "${with_random_device+set}" = set; then :
13858  withval=$with_random_device; USE_DEVICE="$withval"
13859else
13860  USE_DEVICE="auto"
13861fi
13862
13863if test x$USE_DEVICE != xno ; then
13864    if test x$USE_DEVICE = xyes -o x$USE_DEVICE = xauto ; then
13865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
13866$as_echo_n "checking for /dev/urandom... " >&6; }
13867if ${ac_cv_file__dev_urandom+:} false; then :
13868  $as_echo_n "(cached) " >&6
13869else
13870  test "$cross_compiling" = yes &&
13871  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13872if test -r "/dev/urandom"; then
13873  ac_cv_file__dev_urandom=yes
13874else
13875  ac_cv_file__dev_urandom=no
13876fi
13877fi
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
13879$as_echo "$ac_cv_file__dev_urandom" >&6; }
13880if test "x$ac_cv_file__dev_urandom" = xyes; then :
13881  DEV_RANDOM=/dev/urandom
13882else
13883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
13884$as_echo_n "checking for /dev/random... " >&6; }
13885if ${ac_cv_file__dev_random+:} false; then :
13886  $as_echo_n "(cached) " >&6
13887else
13888  test "$cross_compiling" = yes &&
13889  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13890if test -r "/dev/random"; then
13891  ac_cv_file__dev_random=yes
13892else
13893  ac_cv_file__dev_random=no
13894fi
13895fi
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
13897$as_echo "$ac_cv_file__dev_random" >&6; }
13898if test "x$ac_cv_file__dev_random" = xyes; then :
13899  DEV_RANDOM=/dev/random
13900else
13901  if test "x$USE_DEVICE" = "xyes"; then :
13902  as_fn_error $? "random device support requested, but no random device was found." "$LINENO" 5
13903
13904fi
13905
13906fi
13907
13908
13909fi
13910
13911    else
13912	# assume the user input is a valid path to a random number generator
13913	DEV_RANDOM=$USE_DEVICE
13914    fi
13915    if test x$DEV_RANDOM != x ; then
13916
13917cat >>confdefs.h <<_ACEOF
13918#define DEV_RANDOM "$DEV_RANDOM"
13919_ACEOF
13920
13921    fi
13922fi
13923
13924
13925# FIXME: find out how to check for these things. Note that Kerberos was
13926# turned off everywhere but on OpenBSD.
13927 if false; then
13928  HAS_KERBEROS_FIVE_TRUE=
13929  HAS_KERBEROS_FIVE_FALSE='#'
13930else
13931  HAS_KERBEROS_FIVE_TRUE='#'
13932  HAS_KERBEROS_FIVE_FALSE=
13933fi
13934
13935
13936
13937# Figure out where everything goes in the filesystem
13938
13939
13940# Check whether --with-xdmlibdir was given.
13941if test "${with_xdmlibdir+set}" = set; then :
13942  withval=$with_xdmlibdir; XDMLIBDIR="$withval"
13943else
13944  XDMLIBDIR="${libdir}/X11/xdm"
13945fi
13946
13947
13948
13949
13950# Check whether --with-xdmconfigdir was given.
13951if test "${with_xdmconfigdir+set}" = set; then :
13952  withval=$with_xdmconfigdir; XDMCONFIGDIR="$withval"
13953else
13954  XDMCONFIGDIR="${XDMLIBDIR}"
13955fi
13956
13957
13958
13959
13960# Check whether --with-xdmscriptdir was given.
13961if test "${with_xdmscriptdir+set}" = set; then :
13962  withval=$with_xdmscriptdir; XDMSCRIPTDIR="$withval"
13963else
13964  XDMSCRIPTDIR="${XDMLIBDIR}"
13965fi
13966
13967
13968
13969
13970# Check whether --with-logdir was given.
13971if test "${with_logdir+set}" = set; then :
13972  withval=$with_logdir; XDMLOGDIR="$withval"
13973else
13974  XDMLOGDIR="/var/log"
13975fi
13976
13977
13978
13979
13980# Check whether --with-piddir was given.
13981if test "${with_piddir+set}" = set; then :
13982  withval=$with_piddir; XDMPIDDIR="$withval"
13983else
13984  XDMPIDDIR="/var/run"
13985fi
13986
13987
13988
13989
13990# Check whether --with-default-vt was given.
13991if test "${with_default_vt+set}" = set; then :
13992  withval=$with_default_vt; DEFAULTVT="$withval"
13993else
13994  DEFAULTVT=""
13995fi
13996
13997
13998
13999
14000# Check whether --with-config-type was given.
14001if test "${with_config_type+set}" = set; then :
14002  withval=$with_config_type; SERVERSTYPE="$withval"
14003else
14004  SERVERSTYPE="ws"
14005fi
14006
14007
14008
14009# Ideally we'd just pull out UTMP_FILE & WTMP_FILE from <utmp.h>
14010# but that's not easy to do in autoconf
14011
14012# Check whether --with-utmp_file was given.
14013if test "${with_utmp_file+set}" = set; then :
14014  withval=$with_utmp_file; UTMP_FILE="$withval"
14015fi
14016
14017if test "x$UTMP_FILE" = "xyes" ; then
14018	as_fn_error $? "path was not specified to --with-utmp-file" "$LINENO" 5
14019fi
14020if test "x$UTMP_FILE" = "x" ; then
14021	for UTMP_FILE in /var/adm/utmpx /var/run/utmp /var/log/utmp /var/adm/utmp /usr/adm/utmp /etc/utmp ; do
14022		as_ac_File=`$as_echo "ac_cv_file_$UTMP_FILE" | $as_tr_sh`
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $UTMP_FILE" >&5
14024$as_echo_n "checking for $UTMP_FILE... " >&6; }
14025if eval \${$as_ac_File+:} false; then :
14026  $as_echo_n "(cached) " >&6
14027else
14028  test "$cross_compiling" = yes &&
14029  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14030if test -r "$UTMP_FILE"; then
14031  eval "$as_ac_File=yes"
14032else
14033  eval "$as_ac_File=no"
14034fi
14035fi
14036eval ac_res=\$$as_ac_File
14037	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14038$as_echo "$ac_res" >&6; }
14039if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
14040  break
14041else
14042  UTMP_FILE=""
14043fi
14044
14045	done
14046	if test "x$UTMP_FILE" = "x" ; then
14047		UTMP_FILE="/var/run/utmp"
14048	fi
14049fi
14050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to file listing current logins for sessreg" >&5
14051$as_echo_n "checking for path to file listing current logins for sessreg... " >&6; }
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UTMP_FILE" >&5
14053$as_echo "$UTMP_FILE" >&6; }
14054
14055
14056
14057# Check whether --with-wtmp_file was given.
14058if test "${with_wtmp_file+set}" = set; then :
14059  withval=$with_wtmp_file; WTMP_FILE="$withval"
14060fi
14061
14062if test "x$WTMP_FILE" = "xyes" ; then
14063	as_fn_error $? "path was not specified to --with-wtmp-file" "$LINENO" 5
14064fi
14065if test "x$WTMP_FILE" = "x" ; then
14066	for WTMP_FILE in /var/adm/wtmpx /var/log/wtmp /var/adm/wtmp /usr/adm/wtmp /etc/wtmp ; do
14067		as_ac_File=`$as_echo "ac_cv_file_$WTMP_FILE" | $as_tr_sh`
14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $WTMP_FILE" >&5
14069$as_echo_n "checking for $WTMP_FILE... " >&6; }
14070if eval \${$as_ac_File+:} false; then :
14071  $as_echo_n "(cached) " >&6
14072else
14073  test "$cross_compiling" = yes &&
14074  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14075if test -r "$WTMP_FILE"; then
14076  eval "$as_ac_File=yes"
14077else
14078  eval "$as_ac_File=no"
14079fi
14080fi
14081eval ac_res=\$$as_ac_File
14082	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14083$as_echo "$ac_res" >&6; }
14084if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
14085  break
14086else
14087  WTMP_FILE=""
14088fi
14089
14090	done
14091	if test "x$WTMP_FILE" = "x" ; then
14092		WTMP_FILE="/var/log/wtmp"
14093	fi
14094fi
14095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to file listing login history for sessreg" >&5
14096$as_echo_n "checking for path to file listing login history for sessreg... " >&6; }
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WTMP_FILE" >&5
14098$as_echo "$WTMP_FILE" >&6; }
14099
14100
14101case $host_os in
14102    *sco*|*solaris*)
14103		SHELL_CMD="/bin/ksh"	;;
14104    *)		SHELL_CMD="/bin/sh"	;;
14105esac
14106
14107
14108# Checks for pkg-config packages
14109
14110
14111pkg_failed=no
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDM" >&5
14113$as_echo_n "checking for XDM... " >&6; }
14114
14115if test -n "$XDM_CFLAGS"; then
14116    pkg_cv_XDM_CFLAGS="$XDM_CFLAGS"
14117 elif test -n "$PKG_CONFIG"; then
14118    if test -n "$PKG_CONFIG" && \
14119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\""; } >&5
14120  ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5
14121  ac_status=$?
14122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14123  test $ac_status = 0; }; then
14124  pkg_cv_XDM_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xau" 2>/dev/null`
14125		      test "x$?" != "x0" && pkg_failed=yes
14126else
14127  pkg_failed=yes
14128fi
14129 else
14130    pkg_failed=untried
14131fi
14132if test -n "$XDM_LIBS"; then
14133    pkg_cv_XDM_LIBS="$XDM_LIBS"
14134 elif test -n "$PKG_CONFIG"; then
14135    if test -n "$PKG_CONFIG" && \
14136    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\""; } >&5
14137  ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5
14138  ac_status=$?
14139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14140  test $ac_status = 0; }; then
14141  pkg_cv_XDM_LIBS=`$PKG_CONFIG --libs "xmu x11 xau" 2>/dev/null`
14142		      test "x$?" != "x0" && pkg_failed=yes
14143else
14144  pkg_failed=yes
14145fi
14146 else
14147    pkg_failed=untried
14148fi
14149
14150
14151
14152if test $pkg_failed = yes; then
14153   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154$as_echo "no" >&6; }
14155
14156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14157        _pkg_short_errors_supported=yes
14158else
14159        _pkg_short_errors_supported=no
14160fi
14161        if test $_pkg_short_errors_supported = yes; then
14162	        XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmu x11 xau" 2>&1`
14163        else
14164	        XDM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmu x11 xau" 2>&1`
14165        fi
14166	# Put the nasty error message in config.log where it belongs
14167	echo "$XDM_PKG_ERRORS" >&5
14168
14169	as_fn_error $? "Package requirements (xmu x11 xau) were not met:
14170
14171$XDM_PKG_ERRORS
14172
14173Consider adjusting the PKG_CONFIG_PATH environment variable if you
14174installed software in a non-standard prefix.
14175
14176Alternatively, you may set the environment variables XDM_CFLAGS
14177and XDM_LIBS to avoid the need to call pkg-config.
14178See the pkg-config man page for more details." "$LINENO" 5
14179elif test $pkg_failed = untried; then
14180     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181$as_echo "no" >&6; }
14182	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14184as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14185is in your PATH or set the PKG_CONFIG environment variable to the full
14186path to pkg-config.
14187
14188Alternatively, you may set the environment variables XDM_CFLAGS
14189and XDM_LIBS to avoid the need to call pkg-config.
14190See the pkg-config man page for more details.
14191
14192To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14193See \`config.log' for more details" "$LINENO" 5; }
14194else
14195	XDM_CFLAGS=$pkg_cv_XDM_CFLAGS
14196	XDM_LIBS=$pkg_cv_XDM_LIBS
14197        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14198$as_echo "yes" >&6; }
14199
14200fi
14201
14202if test -n "$PKG_CONFIG" && \
14203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
14204  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
14205  ac_status=$?
14206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14207  test $ac_status = 0; }; then
14208
14209
14210$as_echo "#define USE_XINERAMA 1" >>confdefs.h
14211
14212
14213pkg_failed=no
14214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
14215$as_echo_n "checking for XINERAMA... " >&6; }
14216
14217if test -n "$XINERAMA_CFLAGS"; then
14218    pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
14219 elif test -n "$PKG_CONFIG"; then
14220    if test -n "$PKG_CONFIG" && \
14221    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
14222  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
14223  ac_status=$?
14224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225  test $ac_status = 0; }; then
14226  pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`
14227		      test "x$?" != "x0" && pkg_failed=yes
14228else
14229  pkg_failed=yes
14230fi
14231 else
14232    pkg_failed=untried
14233fi
14234if test -n "$XINERAMA_LIBS"; then
14235    pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
14236 elif test -n "$PKG_CONFIG"; then
14237    if test -n "$PKG_CONFIG" && \
14238    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
14239  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
14240  ac_status=$?
14241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14242  test $ac_status = 0; }; then
14243  pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null`
14244		      test "x$?" != "x0" && pkg_failed=yes
14245else
14246  pkg_failed=yes
14247fi
14248 else
14249    pkg_failed=untried
14250fi
14251
14252
14253
14254if test $pkg_failed = yes; then
14255   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256$as_echo "no" >&6; }
14257
14258if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14259        _pkg_short_errors_supported=yes
14260else
14261        _pkg_short_errors_supported=no
14262fi
14263        if test $_pkg_short_errors_supported = yes; then
14264	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1`
14265        else
14266	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1`
14267        fi
14268	# Put the nasty error message in config.log where it belongs
14269	echo "$XINERAMA_PKG_ERRORS" >&5
14270
14271	as_fn_error $? "Package requirements (xinerama) were not met:
14272
14273$XINERAMA_PKG_ERRORS
14274
14275Consider adjusting the PKG_CONFIG_PATH environment variable if you
14276installed software in a non-standard prefix.
14277
14278Alternatively, you may set the environment variables XINERAMA_CFLAGS
14279and XINERAMA_LIBS to avoid the need to call pkg-config.
14280See the pkg-config man page for more details." "$LINENO" 5
14281elif test $pkg_failed = untried; then
14282     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283$as_echo "no" >&6; }
14284	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14286as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14287is in your PATH or set the PKG_CONFIG environment variable to the full
14288path to pkg-config.
14289
14290Alternatively, you may set the environment variables XINERAMA_CFLAGS
14291and XINERAMA_LIBS to avoid the need to call pkg-config.
14292See the pkg-config man page for more details.
14293
14294To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14295See \`config.log' for more details" "$LINENO" 5; }
14296else
14297	XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
14298	XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
14299        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14300$as_echo "yes" >&6; }
14301
14302fi
14303	CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XINERAMA_CFLAGS"
14304	CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS"
14305	GREETER_CFLAGS="$GREETER_CFLAGS $XINERAMA_CFLAGS"
14306	GREETER_LIBS="$GREETER_LIBS $XINERAMA_LIBS"
14307
14308fi
14309
14310# Xft text drawing for the greeter screen
14311
14312# Check whether --with-xft was given.
14313if test "${with_xft+set}" = set; then :
14314  withval=$with_xft; USE_XFT="$withval"
14315else
14316  if test -n "$PKG_CONFIG" && \
14317    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
14318  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
14319  ac_status=$?
14320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14321  test $ac_status = 0; }; then
14322  USE_XFT="yes"
14323else
14324  USE_XFT="no"
14325fi
14326fi
14327
14328
14329if test "x$USE_XFT" = "xyes" ; then
14330
14331pkg_failed=no
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
14333$as_echo_n "checking for XFT... " >&6; }
14334
14335if test -n "$XFT_CFLAGS"; then
14336    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
14337 elif test -n "$PKG_CONFIG"; then
14338    if test -n "$PKG_CONFIG" && \
14339    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
14340  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
14341  ac_status=$?
14342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343  test $ac_status = 0; }; then
14344  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
14345		      test "x$?" != "x0" && pkg_failed=yes
14346else
14347  pkg_failed=yes
14348fi
14349 else
14350    pkg_failed=untried
14351fi
14352if test -n "$XFT_LIBS"; then
14353    pkg_cv_XFT_LIBS="$XFT_LIBS"
14354 elif test -n "$PKG_CONFIG"; then
14355    if test -n "$PKG_CONFIG" && \
14356    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
14357  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
14358  ac_status=$?
14359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360  test $ac_status = 0; }; then
14361  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
14362		      test "x$?" != "x0" && pkg_failed=yes
14363else
14364  pkg_failed=yes
14365fi
14366 else
14367    pkg_failed=untried
14368fi
14369
14370
14371
14372if test $pkg_failed = yes; then
14373   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14374$as_echo "no" >&6; }
14375
14376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14377        _pkg_short_errors_supported=yes
14378else
14379        _pkg_short_errors_supported=no
14380fi
14381        if test $_pkg_short_errors_supported = yes; then
14382	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft" 2>&1`
14383        else
14384	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft" 2>&1`
14385        fi
14386	# Put the nasty error message in config.log where it belongs
14387	echo "$XFT_PKG_ERRORS" >&5
14388
14389	as_fn_error $? "Package requirements (xft) were not met:
14390
14391$XFT_PKG_ERRORS
14392
14393Consider adjusting the PKG_CONFIG_PATH environment variable if you
14394installed software in a non-standard prefix.
14395
14396Alternatively, you may set the environment variables XFT_CFLAGS
14397and XFT_LIBS to avoid the need to call pkg-config.
14398See the pkg-config man page for more details." "$LINENO" 5
14399elif test $pkg_failed = untried; then
14400     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401$as_echo "no" >&6; }
14402	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14404as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14405is in your PATH or set the PKG_CONFIG environment variable to the full
14406path to pkg-config.
14407
14408Alternatively, you may set the environment variables XFT_CFLAGS
14409and XFT_LIBS to avoid the need to call pkg-config.
14410See the pkg-config man page for more details.
14411
14412To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14413See \`config.log' for more details" "$LINENO" 5; }
14414else
14415	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
14416	XFT_LIBS=$pkg_cv_XFT_LIBS
14417        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14418$as_echo "yes" >&6; }
14419
14420fi
14421	GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS"
14422	GREETER_LIBS="$GREETER_LIBS $XFT_LIBS"
14423
14424$as_echo "#define USE_XFT 1" >>confdefs.h
14425
14426fi
14427
14428# XPM logos for the greeter screen
14429# Check whether --enable-xpm-logos was given.
14430if test "${enable_xpm_logos+set}" = set; then :
14431  enableval=$enable_xpm_logos; USE_XPM="$enableval"
14432else
14433  if test -n "$PKG_CONFIG" && \
14434    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
14435  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
14436  ac_status=$?
14437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438  test $ac_status = 0; }; then
14439  USE_XPM="yes"
14440else
14441  USE_XPM="no"
14442fi
14443fi
14444
14445if test "x$USE_XPM" = "xyes" ; then
14446
14447pkg_failed=no
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
14449$as_echo_n "checking for XPM... " >&6; }
14450
14451if test -n "$XPM_CFLAGS"; then
14452    pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
14453 elif test -n "$PKG_CONFIG"; then
14454    if test -n "$PKG_CONFIG" && \
14455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
14456  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
14457  ac_status=$?
14458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14459  test $ac_status = 0; }; then
14460  pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null`
14461		      test "x$?" != "x0" && pkg_failed=yes
14462else
14463  pkg_failed=yes
14464fi
14465 else
14466    pkg_failed=untried
14467fi
14468if test -n "$XPM_LIBS"; then
14469    pkg_cv_XPM_LIBS="$XPM_LIBS"
14470 elif test -n "$PKG_CONFIG"; then
14471    if test -n "$PKG_CONFIG" && \
14472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
14473  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
14474  ac_status=$?
14475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14476  test $ac_status = 0; }; then
14477  pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null`
14478		      test "x$?" != "x0" && pkg_failed=yes
14479else
14480  pkg_failed=yes
14481fi
14482 else
14483    pkg_failed=untried
14484fi
14485
14486
14487
14488if test $pkg_failed = yes; then
14489   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490$as_echo "no" >&6; }
14491
14492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14493        _pkg_short_errors_supported=yes
14494else
14495        _pkg_short_errors_supported=no
14496fi
14497        if test $_pkg_short_errors_supported = yes; then
14498	        XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1`
14499        else
14500	        XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1`
14501        fi
14502	# Put the nasty error message in config.log where it belongs
14503	echo "$XPM_PKG_ERRORS" >&5
14504
14505	as_fn_error $? "Package requirements (xpm) were not met:
14506
14507$XPM_PKG_ERRORS
14508
14509Consider adjusting the PKG_CONFIG_PATH environment variable if you
14510installed software in a non-standard prefix.
14511
14512Alternatively, you may set the environment variables XPM_CFLAGS
14513and XPM_LIBS to avoid the need to call pkg-config.
14514See the pkg-config man page for more details." "$LINENO" 5
14515elif test $pkg_failed = untried; then
14516     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517$as_echo "no" >&6; }
14518	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14520as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14521is in your PATH or set the PKG_CONFIG environment variable to the full
14522path to pkg-config.
14523
14524Alternatively, you may set the environment variables XPM_CFLAGS
14525and XPM_LIBS to avoid the need to call pkg-config.
14526See the pkg-config man page for more details.
14527
14528To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14529See \`config.log' for more details" "$LINENO" 5; }
14530else
14531	XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
14532	XPM_LIBS=$pkg_cv_XPM_LIBS
14533        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14534$as_echo "yes" >&6; }
14535
14536fi
14537	GREETER_CFLAGS="$GREETER_CFLAGS $XPM_CFLAGS"
14538	GREETER_LIBS="$GREETER_LIBS $XPM_LIBS"
14539
14540$as_echo "#define XPM 1" >>confdefs.h
14541
14542fi
14543 if test "x$USE_XPM" = "xyes"; then
14544  USE_XPM_TRUE=
14545  USE_XPM_FALSE='#'
14546else
14547  USE_XPM_TRUE='#'
14548  USE_XPM_FALSE=
14549fi
14550
14551
14552
14553# Check whether --with-color-pixmap was given.
14554if test "${with_color_pixmap+set}" = set; then :
14555  withval=$with_color_pixmap; XDM_PIXMAP="$withval"
14556else
14557  XDM_PIXMAP="xorg.xpm"
14558fi
14559
14560
14561# Check whether --with-bw-pixmap was given.
14562if test "${with_bw_pixmap+set}" = set; then :
14563  withval=$with_bw_pixmap; XDM_BWPIXMAP="$withval"
14564else
14565  XDM_BWPIXMAP="xorg-bw.xpm"
14566fi
14567
14568
14569# Check whether --with-pixmapdir was given.
14570if test "${with_pixmapdir+set}" = set; then :
14571  withval=$with_pixmapdir; XDM_PIXMAPDIR="$withval"
14572else
14573  XDM_PIXMAPDIR='${XDMLIBDIR}/pixmaps'
14574fi
14575
14576
14577
14578
14579
14580
14581# Packages used by multiple programs
14582
14583
14584pkg_failed=no
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDM_TOOLKIT" >&5
14586$as_echo_n "checking for XDM_TOOLKIT... " >&6; }
14587
14588if test -n "$XDM_TOOLKIT_CFLAGS"; then
14589    pkg_cv_XDM_TOOLKIT_CFLAGS="$XDM_TOOLKIT_CFLAGS"
14590 elif test -n "$PKG_CONFIG"; then
14591    if test -n "$PKG_CONFIG" && \
14592    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
14593  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
14594  ac_status=$?
14595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596  test $ac_status = 0; }; then
14597  pkg_cv_XDM_TOOLKIT_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
14598		      test "x$?" != "x0" && pkg_failed=yes
14599else
14600  pkg_failed=yes
14601fi
14602 else
14603    pkg_failed=untried
14604fi
14605if test -n "$XDM_TOOLKIT_LIBS"; then
14606    pkg_cv_XDM_TOOLKIT_LIBS="$XDM_TOOLKIT_LIBS"
14607 elif test -n "$PKG_CONFIG"; then
14608    if test -n "$PKG_CONFIG" && \
14609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
14610  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
14611  ac_status=$?
14612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14613  test $ac_status = 0; }; then
14614  pkg_cv_XDM_TOOLKIT_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
14615		      test "x$?" != "x0" && pkg_failed=yes
14616else
14617  pkg_failed=yes
14618fi
14619 else
14620    pkg_failed=untried
14621fi
14622
14623
14624
14625if test $pkg_failed = yes; then
14626   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627$as_echo "no" >&6; }
14628
14629if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14630        _pkg_short_errors_supported=yes
14631else
14632        _pkg_short_errors_supported=no
14633fi
14634        if test $_pkg_short_errors_supported = yes; then
14635	        XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7" 2>&1`
14636        else
14637	        XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7" 2>&1`
14638        fi
14639	# Put the nasty error message in config.log where it belongs
14640	echo "$XDM_TOOLKIT_PKG_ERRORS" >&5
14641
14642	as_fn_error $? "Package requirements (xaw7) were not met:
14643
14644$XDM_TOOLKIT_PKG_ERRORS
14645
14646Consider adjusting the PKG_CONFIG_PATH environment variable if you
14647installed software in a non-standard prefix.
14648
14649Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
14650and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
14651See the pkg-config man page for more details." "$LINENO" 5
14652elif test $pkg_failed = untried; then
14653     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654$as_echo "no" >&6; }
14655	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14657as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14658is in your PATH or set the PKG_CONFIG environment variable to the full
14659path to pkg-config.
14660
14661Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
14662and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
14663See the pkg-config man page for more details.
14664
14665To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14666See \`config.log' for more details" "$LINENO" 5; }
14667else
14668	XDM_TOOLKIT_CFLAGS=$pkg_cv_XDM_TOOLKIT_CFLAGS
14669	XDM_TOOLKIT_LIBS=$pkg_cv_XDM_TOOLKIT_LIBS
14670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14671$as_echo "yes" >&6; }
14672
14673fi
14674
14675pkg_failed=no
14676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMCP" >&5
14677$as_echo_n "checking for DMCP... " >&6; }
14678
14679if test -n "$DMCP_CFLAGS"; then
14680    pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS"
14681 elif test -n "$PKG_CONFIG"; then
14682    if test -n "$PKG_CONFIG" && \
14683    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
14684  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
14685  ac_status=$?
14686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14687  test $ac_status = 0; }; then
14688  pkg_cv_DMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
14689		      test "x$?" != "x0" && pkg_failed=yes
14690else
14691  pkg_failed=yes
14692fi
14693 else
14694    pkg_failed=untried
14695fi
14696if test -n "$DMCP_LIBS"; then
14697    pkg_cv_DMCP_LIBS="$DMCP_LIBS"
14698 elif test -n "$PKG_CONFIG"; then
14699    if test -n "$PKG_CONFIG" && \
14700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
14701  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
14702  ac_status=$?
14703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14704  test $ac_status = 0; }; then
14705  pkg_cv_DMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
14706		      test "x$?" != "x0" && pkg_failed=yes
14707else
14708  pkg_failed=yes
14709fi
14710 else
14711    pkg_failed=untried
14712fi
14713
14714
14715
14716if test $pkg_failed = yes; then
14717   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718$as_echo "no" >&6; }
14719
14720if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14721        _pkg_short_errors_supported=yes
14722else
14723        _pkg_short_errors_supported=no
14724fi
14725        if test $_pkg_short_errors_supported = yes; then
14726	        DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
14727        else
14728	        DMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
14729        fi
14730	# Put the nasty error message in config.log where it belongs
14731	echo "$DMCP_PKG_ERRORS" >&5
14732
14733	as_fn_error $? "Package requirements (xdmcp) were not met:
14734
14735$DMCP_PKG_ERRORS
14736
14737Consider adjusting the PKG_CONFIG_PATH environment variable if you
14738installed software in a non-standard prefix.
14739
14740Alternatively, you may set the environment variables DMCP_CFLAGS
14741and DMCP_LIBS to avoid the need to call pkg-config.
14742See the pkg-config man page for more details." "$LINENO" 5
14743elif test $pkg_failed = untried; then
14744     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745$as_echo "no" >&6; }
14746	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14748as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14749is in your PATH or set the PKG_CONFIG environment variable to the full
14750path to pkg-config.
14751
14752Alternatively, you may set the environment variables DMCP_CFLAGS
14753and DMCP_LIBS to avoid the need to call pkg-config.
14754See the pkg-config man page for more details.
14755
14756To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14757See \`config.log' for more details" "$LINENO" 5; }
14758else
14759	DMCP_CFLAGS=$pkg_cv_DMCP_CFLAGS
14760	DMCP_LIBS=$pkg_cv_DMCP_LIBS
14761        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762$as_echo "yes" >&6; }
14763
14764fi
14765
14766pkg_failed=no
14767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
14768$as_echo_n "checking for XLIB... " >&6; }
14769
14770if test -n "$XLIB_CFLAGS"; then
14771    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
14772 elif test -n "$PKG_CONFIG"; then
14773    if test -n "$PKG_CONFIG" && \
14774    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14775  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14776  ac_status=$?
14777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14778  test $ac_status = 0; }; then
14779  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
14780		      test "x$?" != "x0" && pkg_failed=yes
14781else
14782  pkg_failed=yes
14783fi
14784 else
14785    pkg_failed=untried
14786fi
14787if test -n "$XLIB_LIBS"; then
14788    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
14789 elif test -n "$PKG_CONFIG"; then
14790    if test -n "$PKG_CONFIG" && \
14791    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14792  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14793  ac_status=$?
14794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14795  test $ac_status = 0; }; then
14796  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
14797		      test "x$?" != "x0" && pkg_failed=yes
14798else
14799  pkg_failed=yes
14800fi
14801 else
14802    pkg_failed=untried
14803fi
14804
14805
14806
14807if test $pkg_failed = yes; then
14808   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14809$as_echo "no" >&6; }
14810
14811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14812        _pkg_short_errors_supported=yes
14813else
14814        _pkg_short_errors_supported=no
14815fi
14816        if test $_pkg_short_errors_supported = yes; then
14817	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
14818        else
14819	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
14820        fi
14821	# Put the nasty error message in config.log where it belongs
14822	echo "$XLIB_PKG_ERRORS" >&5
14823
14824	as_fn_error $? "Package requirements (x11) were not met:
14825
14826$XLIB_PKG_ERRORS
14827
14828Consider adjusting the PKG_CONFIG_PATH environment variable if you
14829installed software in a non-standard prefix.
14830
14831Alternatively, you may set the environment variables XLIB_CFLAGS
14832and XLIB_LIBS to avoid the need to call pkg-config.
14833See the pkg-config man page for more details." "$LINENO" 5
14834elif test $pkg_failed = untried; then
14835     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14836$as_echo "no" >&6; }
14837	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14839as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14840is in your PATH or set the PKG_CONFIG environment variable to the full
14841path to pkg-config.
14842
14843Alternatively, you may set the environment variables XLIB_CFLAGS
14844and XLIB_LIBS to avoid the need to call pkg-config.
14845See the pkg-config man page for more details.
14846
14847To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14848See \`config.log' for more details" "$LINENO" 5; }
14849else
14850	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
14851	XLIB_LIBS=$pkg_cv_XLIB_LIBS
14852        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14853$as_echo "yes" >&6; }
14854
14855fi
14856
14857pkg_failed=no
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTH" >&5
14859$as_echo_n "checking for AUTH... " >&6; }
14860
14861if test -n "$AUTH_CFLAGS"; then
14862    pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS"
14863 elif test -n "$PKG_CONFIG"; then
14864    if test -n "$PKG_CONFIG" && \
14865    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
14866  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
14867  ac_status=$?
14868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14869  test $ac_status = 0; }; then
14870  pkg_cv_AUTH_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
14871		      test "x$?" != "x0" && pkg_failed=yes
14872else
14873  pkg_failed=yes
14874fi
14875 else
14876    pkg_failed=untried
14877fi
14878if test -n "$AUTH_LIBS"; then
14879    pkg_cv_AUTH_LIBS="$AUTH_LIBS"
14880 elif test -n "$PKG_CONFIG"; then
14881    if test -n "$PKG_CONFIG" && \
14882    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
14883  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
14884  ac_status=$?
14885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14886  test $ac_status = 0; }; then
14887  pkg_cv_AUTH_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
14888		      test "x$?" != "x0" && pkg_failed=yes
14889else
14890  pkg_failed=yes
14891fi
14892 else
14893    pkg_failed=untried
14894fi
14895
14896
14897
14898if test $pkg_failed = yes; then
14899   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14900$as_echo "no" >&6; }
14901
14902if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14903        _pkg_short_errors_supported=yes
14904else
14905        _pkg_short_errors_supported=no
14906fi
14907        if test $_pkg_short_errors_supported = yes; then
14908	        AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1`
14909        else
14910	        AUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1`
14911        fi
14912	# Put the nasty error message in config.log where it belongs
14913	echo "$AUTH_PKG_ERRORS" >&5
14914
14915	as_fn_error $? "Package requirements (xau) were not met:
14916
14917$AUTH_PKG_ERRORS
14918
14919Consider adjusting the PKG_CONFIG_PATH environment variable if you
14920installed software in a non-standard prefix.
14921
14922Alternatively, you may set the environment variables AUTH_CFLAGS
14923and AUTH_LIBS to avoid the need to call pkg-config.
14924See the pkg-config man page for more details." "$LINENO" 5
14925elif test $pkg_failed = untried; then
14926     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927$as_echo "no" >&6; }
14928	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14930as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14931is in your PATH or set the PKG_CONFIG environment variable to the full
14932path to pkg-config.
14933
14934Alternatively, you may set the environment variables AUTH_CFLAGS
14935and AUTH_LIBS to avoid the need to call pkg-config.
14936See the pkg-config man page for more details.
14937
14938To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14939See \`config.log' for more details" "$LINENO" 5; }
14940else
14941	AUTH_CFLAGS=$pkg_cv_AUTH_CFLAGS
14942	AUTH_LIBS=$pkg_cv_AUTH_LIBS
14943        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14944$as_echo "yes" >&6; }
14945
14946fi
14947
14948#
14949# Greeter
14950#
14951
14952
14953pkg_failed=no
14954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMGREET" >&5
14955$as_echo_n "checking for XDMGREET... " >&6; }
14956
14957if test -n "$XDMGREET_CFLAGS"; then
14958    pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS"
14959 elif test -n "$PKG_CONFIG"; then
14960    if test -n "$PKG_CONFIG" && \
14961    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\""; } >&5
14962  ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5
14963  ac_status=$?
14964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14965  test $ac_status = 0; }; then
14966  pkg_cv_XDMGREET_CFLAGS=`$PKG_CONFIG --cflags "xt x11 xext" 2>/dev/null`
14967		      test "x$?" != "x0" && pkg_failed=yes
14968else
14969  pkg_failed=yes
14970fi
14971 else
14972    pkg_failed=untried
14973fi
14974if test -n "$XDMGREET_LIBS"; then
14975    pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS"
14976 elif test -n "$PKG_CONFIG"; then
14977    if test -n "$PKG_CONFIG" && \
14978    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\""; } >&5
14979  ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5
14980  ac_status=$?
14981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14982  test $ac_status = 0; }; then
14983  pkg_cv_XDMGREET_LIBS=`$PKG_CONFIG --libs "xt x11 xext" 2>/dev/null`
14984		      test "x$?" != "x0" && pkg_failed=yes
14985else
14986  pkg_failed=yes
14987fi
14988 else
14989    pkg_failed=untried
14990fi
14991
14992
14993
14994if test $pkg_failed = yes; then
14995   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996$as_echo "no" >&6; }
14997
14998if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14999        _pkg_short_errors_supported=yes
15000else
15001        _pkg_short_errors_supported=no
15002fi
15003        if test $_pkg_short_errors_supported = yes; then
15004	        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt x11 xext" 2>&1`
15005        else
15006	        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt x11 xext" 2>&1`
15007        fi
15008	# Put the nasty error message in config.log where it belongs
15009	echo "$XDMGREET_PKG_ERRORS" >&5
15010
15011	as_fn_error $? "Package requirements (xt x11 xext) were not met:
15012
15013$XDMGREET_PKG_ERRORS
15014
15015Consider adjusting the PKG_CONFIG_PATH environment variable if you
15016installed software in a non-standard prefix.
15017
15018Alternatively, you may set the environment variables XDMGREET_CFLAGS
15019and XDMGREET_LIBS to avoid the need to call pkg-config.
15020See the pkg-config man page for more details." "$LINENO" 5
15021elif test $pkg_failed = untried; then
15022     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15023$as_echo "no" >&6; }
15024	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15026as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15027is in your PATH or set the PKG_CONFIG environment variable to the full
15028path to pkg-config.
15029
15030Alternatively, you may set the environment variables XDMGREET_CFLAGS
15031and XDMGREET_LIBS to avoid the need to call pkg-config.
15032See the pkg-config man page for more details.
15033
15034To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15035See \`config.log' for more details" "$LINENO" 5; }
15036else
15037	XDMGREET_CFLAGS=$pkg_cv_XDMGREET_CFLAGS
15038	XDMGREET_LIBS=$pkg_cv_XDMGREET_LIBS
15039        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15040$as_echo "yes" >&6; }
15041
15042fi
15043
15044GREETERLIB="${XDMLIBDIR}/libXdmGreet.so"
15045
15046  prefix_NONE=
15047  exec_prefix_NONE=
15048  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15049  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15050  eval ax_define_dir="\"$GREETERLIB\""
15051  eval ax_define_dir="\"$ax_define_dir\""
15052  DEF_GREETER_LIB="$ax_define_dir"
15053
15054
15055cat >>confdefs.h <<_ACEOF
15056#define DEF_GREETER_LIB "$ax_define_dir"
15057_ACEOF
15058
15059  test "$prefix_NONE" && prefix=NONE
15060  test "$exec_prefix_NONE" && exec_prefix=NONE
15061
15062
15063XDMGREET_CFLAGS="$XDMGREET_CFLAGS $XDM_TOOLKIT_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $GREETER_CFLAGS $AUTH_CFLAGS"
15064XDMGREET_LIBS="$XDMGREET_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS $GREETER_LIBS"
15065
15066#
15067#  XDM
15068#
15069
15070XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $AUTH_CFLAGS"
15071XDM_LIBS="$XDM_LIBS $DMCP_LIBS"
15072
15073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
15074$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
15075if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
15076  $as_echo_n "(cached) " >&6
15077else
15078  ac_check_lib_save_LIBS=$LIBS
15079LIBS="-lXdmcp $DMCP_LIBS $LIBS"
15080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081/* end confdefs.h.  */
15082
15083/* Override any GCC internal prototype to avoid an error.
15084   Use char because int might match the return type of a GCC
15085   builtin and then its argument prototype would still apply.  */
15086#ifdef __cplusplus
15087extern "C"
15088#endif
15089char XdmcpWrap ();
15090int
15091main ()
15092{
15093return XdmcpWrap ();
15094  ;
15095  return 0;
15096}
15097_ACEOF
15098if ac_fn_c_try_link "$LINENO"; then :
15099  ac_cv_lib_Xdmcp_XdmcpWrap=yes
15100else
15101  ac_cv_lib_Xdmcp_XdmcpWrap=no
15102fi
15103rm -f core conftest.err conftest.$ac_objext \
15104    conftest$ac_exeext conftest.$ac_ext
15105LIBS=$ac_check_lib_save_LIBS
15106fi
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
15108$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
15109if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
15110  xdmauth="yes"
15111else
15112  xdmauth="no"
15113fi
15114
15115
15116# Check whether --enable-xdm-auth was given.
15117if test "${enable_xdm_auth+set}" = set; then :
15118  enableval=$enable_xdm_auth; xdmauth_enable="$enableval"
15119else
15120  xdmauth_enable="auto"
15121fi
15122
15123if test "x$xdmauth_enable" = "xyes" -a "x$xdmauth" = "xno" ; then
15124	as_fn_error $? "XDM-AUTH support requested, but XdmcpWrap not found in libXdmcp." "$LINENO" 5
15125fi
15126
15127 if test x$xdmauth = xyes -a x$xdmauth_enable != xno; then
15128  HAS_XDM_AUTH_TRUE=
15129  HAS_XDM_AUTH_FALSE='#'
15130else
15131  HAS_XDM_AUTH_TRUE='#'
15132  HAS_XDM_AUTH_FALSE=
15133fi
15134
15135
15136
15137
15138
15139#
15140# xdmshell
15141#
15142
15143# Check whether --enable-xdmshell was given.
15144if test "${enable_xdmshell+set}" = set; then :
15145  enableval=$enable_xdmshell; INSTALL_XDMSHELL="$enableval"
15146else
15147  INSTALL_XDMSHELL="no"
15148fi
15149
15150 if test x$INSTALL_XDMSHELL = xyes; then
15151  INSTALL_XDMSHELL_TRUE=
15152  INSTALL_XDMSHELL_FALSE='#'
15153else
15154  INSTALL_XDMSHELL_TRUE='#'
15155  INSTALL_XDMSHELL_FALSE=
15156fi
15157
15158
15159
15160pkg_failed=no
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
15162$as_echo_n "checking for XT... " >&6; }
15163
15164if test -n "$XT_CFLAGS"; then
15165    pkg_cv_XT_CFLAGS="$XT_CFLAGS"
15166 elif test -n "$PKG_CONFIG"; then
15167    if test -n "$PKG_CONFIG" && \
15168    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
15169  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
15170  ac_status=$?
15171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15172  test $ac_status = 0; }; then
15173  pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
15174		      test "x$?" != "x0" && pkg_failed=yes
15175else
15176  pkg_failed=yes
15177fi
15178 else
15179    pkg_failed=untried
15180fi
15181if test -n "$XT_LIBS"; then
15182    pkg_cv_XT_LIBS="$XT_LIBS"
15183 elif test -n "$PKG_CONFIG"; then
15184    if test -n "$PKG_CONFIG" && \
15185    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
15186  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
15187  ac_status=$?
15188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189  test $ac_status = 0; }; then
15190  pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
15191		      test "x$?" != "x0" && pkg_failed=yes
15192else
15193  pkg_failed=yes
15194fi
15195 else
15196    pkg_failed=untried
15197fi
15198
15199
15200
15201if test $pkg_failed = yes; then
15202   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203$as_echo "no" >&6; }
15204
15205if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15206        _pkg_short_errors_supported=yes
15207else
15208        _pkg_short_errors_supported=no
15209fi
15210        if test $_pkg_short_errors_supported = yes; then
15211	        XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
15212        else
15213	        XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
15214        fi
15215	# Put the nasty error message in config.log where it belongs
15216	echo "$XT_PKG_ERRORS" >&5
15217
15218	as_fn_error $? "Package requirements (xt) were not met:
15219
15220$XT_PKG_ERRORS
15221
15222Consider adjusting the PKG_CONFIG_PATH environment variable if you
15223installed software in a non-standard prefix.
15224
15225Alternatively, you may set the environment variables XT_CFLAGS
15226and XT_LIBS to avoid the need to call pkg-config.
15227See the pkg-config man page for more details." "$LINENO" 5
15228elif test $pkg_failed = untried; then
15229     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15230$as_echo "no" >&6; }
15231	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15233as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15234is in your PATH or set the PKG_CONFIG environment variable to the full
15235path to pkg-config.
15236
15237Alternatively, you may set the environment variables XT_CFLAGS
15238and XT_LIBS to avoid the need to call pkg-config.
15239See the pkg-config man page for more details.
15240
15241To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15242See \`config.log' for more details" "$LINENO" 5; }
15243else
15244	XT_CFLAGS=$pkg_cv_XT_CFLAGS
15245	XT_LIBS=$pkg_cv_XT_LIBS
15246        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15247$as_echo "yes" >&6; }
15248
15249fi
15250XDMSHELL_CFLAGS="$XDM_CFLAGS $XDM_TOOLKIT_CFLAGS $AUTH_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $XT_CFLAGS"
15251XDMSHELL_LIBS="$XDM_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
15252
15253
15254
15255
15256#
15257# Chooser
15258#
15259
15260CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XDM_TOOLKIT_CFLAGS $XLIB_CFLAGS $DMCP_CFLAGS $AUTH_CFLAGS"
15261CHOOSER_LIBS="$CHOOSER_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
15262
15263
15264
15265
15266# Defaults for X session - should probably be configure --with-* flags
15267# Currently just trying to mirror what defaults were set in Imake
15268
15269# -DDEF_SERVER_LINE=":0 local $(DEF_SERVER) :0"
15270if test -z "$DEF_SERVER" ; then
15271	DEF_SERVER="${bindir}/X"
15272fi
15273if test -z "$DEF_SERVER_LINE" ; then
15274	DEF_SERVER_LINE=":0 local ${DEF_SERVER} :0"
15275fi
15276
15277  prefix_NONE=
15278  exec_prefix_NONE=
15279  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15280  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15281  eval ax_define_dir="\"$DEF_SERVER_LINE\""
15282  eval ax_define_dir="\"$ax_define_dir\""
15283  DEF_SERVER_LINE="$ax_define_dir"
15284
15285
15286cat >>confdefs.h <<_ACEOF
15287#define DEF_SERVER_LINE "$ax_define_dir"
15288_ACEOF
15289
15290  test "$prefix_NONE" && prefix=NONE
15291  test "$exec_prefix_NONE" && exec_prefix=NONE
15292
15293
15294# -DXRDB_PROGRAM="$(BINDIR)/xrdb"
15295
15296# Check whether --with-xrdb was given.
15297if test "${with_xrdb+set}" = set; then :
15298  withval=$with_xrdb; XRDB=$withval
15299else
15300  XRDB=${bindir}/xrdb
15301fi
15302
15303
15304  prefix_NONE=
15305  exec_prefix_NONE=
15306  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15307  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15308  eval ax_define_dir="\"$XRDB\""
15309  eval ax_define_dir="\"$ax_define_dir\""
15310  XRDB_PROGRAM="$ax_define_dir"
15311
15312
15313cat >>confdefs.h <<_ACEOF
15314#define XRDB_PROGRAM "$ax_define_dir"
15315_ACEOF
15316
15317  test "$prefix_NONE" && prefix=NONE
15318  test "$exec_prefix_NONE" && exec_prefix=NONE
15319
15320
15321# -DDEF_SESSION="$(BINDIR)/xterm -ls"
15322
15323# Check whether --with-default-session was given.
15324if test "${with_default_session+set}" = set; then :
15325  withval=$with_default_session; DEF_SESSION=$withval
15326else
15327  DEF_SESSION="${bindir}/xterm -ls"
15328fi
15329
15330
15331  prefix_NONE=
15332  exec_prefix_NONE=
15333  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15334  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15335  eval ax_define_dir="\"$DEF_SESSION\""
15336  eval ax_define_dir="\"$ax_define_dir\""
15337  DEF_SESSION="$ax_define_dir"
15338
15339
15340cat >>confdefs.h <<_ACEOF
15341#define DEF_SESSION "$ax_define_dir"
15342_ACEOF
15343
15344  test "$prefix_NONE" && prefix=NONE
15345  test "$exec_prefix_NONE" && exec_prefix=NONE
15346
15347
15348# -DDEF_USER_PATH="$(DEF_USER_PATH)"
15349# Default values taken from DefaultUserPath setting in the
15350# old Imake *.cf files for each platform
15351if test -z "$DEF_USER_PATH" ; then
15352	case $host_os in
15353	    dragonfly*)
15354		DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/local/bin"
15355		;;
15356	    freebsd*)
15357		DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/gnu/bin:/usr/local/bin"
15358		;;
15359	    netbsd*)
15360		DEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${bindir}"
15361		;;
15362	    openbsd*|bsdi*)
15363		DEF_USER_PATH="/bin:/usr/bin:/usr/local/bin:${bindir}"
15364		;;
15365	    solaris*)
15366		DEF_USER_PATH="/usr/bin:${bindir}"
15367		;;
15368	    *)
15369		DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb"
15370		;;
15371	esac
15372fi
15373
15374  prefix_NONE=
15375  exec_prefix_NONE=
15376  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15377  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15378  eval ax_define_dir="\"$DEF_USER_PATH\""
15379  eval ax_define_dir="\"$ax_define_dir\""
15380  DEF_USER_PATH="$ax_define_dir"
15381
15382
15383cat >>confdefs.h <<_ACEOF
15384#define DEF_USER_PATH "$ax_define_dir"
15385_ACEOF
15386
15387  test "$prefix_NONE" && prefix=NONE
15388  test "$exec_prefix_NONE" && exec_prefix=NONE
15389
15390
15391# -DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)"
15392# Default values taken from DefaultSystemPath setting in the
15393# old Imake *.cf files for each platform
15394if test -z "$DEF_SYSTEM_PATH" ; then
15395	case $host_os in
15396	    freebsd*|dragonfly*)
15397		DEF_SYSTEM_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}"
15398		;;
15399	    netbsd*|openbsd*|bsdi*)
15400		DEF_SYSTEM_PATH="/sbin:/usr/sbin:/bin:/usr/bin:${bindir}"
15401		;;
15402	    solaris*)
15403		DEF_SYSTEM_PATH="/sbin:/usr/sbin:/usr/bin:${bindir}"
15404		;;
15405	    *)
15406		DEF_SYSTEM_PATH="/etc:/bin:/usr/bin:${bindir}:/usr/ucb"
15407		;;
15408	esac
15409fi
15410
15411  prefix_NONE=
15412  exec_prefix_NONE=
15413  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15414  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15415  eval ax_define_dir="\"$DEF_SYSTEM_PATH\""
15416  eval ax_define_dir="\"$ax_define_dir\""
15417  DEF_SYSTEM_PATH="$ax_define_dir"
15418
15419
15420cat >>confdefs.h <<_ACEOF
15421#define DEF_SYSTEM_PATH "$ax_define_dir"
15422_ACEOF
15423
15424  test "$prefix_NONE" && prefix=NONE
15425  test "$exec_prefix_NONE" && exec_prefix=NONE
15426
15427
15428# -DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)"
15429if test -z "$BOURNE_SHELL" ; then
15430	BOURNE_SHELL=/bin/sh
15431fi
15432
15433  prefix_NONE=
15434  exec_prefix_NONE=
15435  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15436  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15437  eval ax_define_dir="\"$BOURNE_SHELL\""
15438  eval ax_define_dir="\"$ax_define_dir\""
15439  DEF_SYSTEM_SHELL="$ax_define_dir"
15440
15441
15442cat >>confdefs.h <<_ACEOF
15443#define DEF_SYSTEM_SHELL "$ax_define_dir"
15444_ACEOF
15445
15446  test "$prefix_NONE" && prefix=NONE
15447  test "$exec_prefix_NONE" && exec_prefix=NONE
15448
15449
15450# -DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm"
15451
15452
15453  prefix_NONE=
15454  exec_prefix_NONE=
15455  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15456  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15457  eval ax_define_dir="\"$bindir/xterm\""
15458  eval ax_define_dir="\"$ax_define_dir\""
15459  DEF_FAILSAFE_CLIENT="$ax_define_dir"
15460
15461
15462cat >>confdefs.h <<_ACEOF
15463#define DEF_FAILSAFE_CLIENT "$ax_define_dir"
15464_ACEOF
15465
15466  test "$prefix_NONE" && prefix=NONE
15467  test "$exec_prefix_NONE" && exec_prefix=NONE
15468
15469
15470# -DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config"
15471
15472
15473  prefix_NONE=
15474  exec_prefix_NONE=
15475  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15476  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15477  eval ax_define_dir="\"$XDMCONFIGDIR/xdm-config\""
15478  eval ax_define_dir="\"$ax_define_dir\""
15479  DEF_XDM_CONFIG="$ax_define_dir"
15480
15481
15482cat >>confdefs.h <<_ACEOF
15483#define DEF_XDM_CONFIG "$ax_define_dir"
15484_ACEOF
15485
15486  test "$prefix_NONE" && prefix=NONE
15487  test "$exec_prefix_NONE" && exec_prefix=NONE
15488
15489
15490# -DDEF_CHOOSER="$(CHOOSERPATH)"
15491
15492
15493  prefix_NONE=
15494  exec_prefix_NONE=
15495  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15496  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15497  eval ax_define_dir="\"$XDMLIBDIR/chooser\""
15498  eval ax_define_dir="\"$ax_define_dir\""
15499  DEF_CHOOSER="$ax_define_dir"
15500
15501
15502cat >>confdefs.h <<_ACEOF
15503#define DEF_CHOOSER "$ax_define_dir"
15504_ACEOF
15505
15506  test "$prefix_NONE" && prefix=NONE
15507  test "$exec_prefix_NONE" && exec_prefix=NONE
15508
15509
15510# -DDEF_AUTH_DIR="$(XDMDIR)"
15511
15512
15513# Check whether --with-authdir was given.
15514if test "${with_authdir+set}" = set; then :
15515  withval=$with_authdir; XDMXAUTHDIR="$withval"
15516else
15517  XDMXAUTHDIR="/var/lib/xdm"
15518fi
15519
15520
15521
15522
15523  prefix_NONE=
15524  exec_prefix_NONE=
15525  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15526  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15527  eval ax_define_dir="\"$XDMXAUTHDIR\""
15528  eval ax_define_dir="\"$ax_define_dir\""
15529  DEF_AUTH_DIR="$ax_define_dir"
15530
15531
15532cat >>confdefs.h <<_ACEOF
15533#define DEF_AUTH_DIR "$ax_define_dir"
15534_ACEOF
15535
15536  test "$prefix_NONE" && prefix=NONE
15537  test "$exec_prefix_NONE" && exec_prefix=NONE
15538
15539
15540# -DDEF_GREETER_LIB="$(XDMDIR)/libXdmGreet.so"
15541
15542
15543  prefix_NONE=
15544  exec_prefix_NONE=
15545  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15546  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15547  eval ax_define_dir="\"$XDMLIBDIR/libXdmGreet.so\""
15548  eval ax_define_dir="\"$ax_define_dir\""
15549  DEF_GREETER_LIB="$ax_define_dir"
15550
15551
15552cat >>confdefs.h <<_ACEOF
15553#define DEF_GREETER_LIB "$ax_define_dir"
15554_ACEOF
15555
15556  test "$prefix_NONE" && prefix=NONE
15557  test "$exec_prefix_NONE" && exec_prefix=NONE
15558
15559
15560
15561pkg_failed=no
15562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
15563$as_echo_n "checking for APPDEFS... " >&6; }
15564
15565if test -n "$APPDEFS_CFLAGS"; then
15566    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
15567 elif test -n "$PKG_CONFIG"; then
15568    if test -n "$PKG_CONFIG" && \
15569    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
15570  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
15571  ac_status=$?
15572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15573  test $ac_status = 0; }; then
15574  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
15575		      test "x$?" != "x0" && pkg_failed=yes
15576else
15577  pkg_failed=yes
15578fi
15579 else
15580    pkg_failed=untried
15581fi
15582if test -n "$APPDEFS_LIBS"; then
15583    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
15584 elif test -n "$PKG_CONFIG"; then
15585    if test -n "$PKG_CONFIG" && \
15586    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
15587  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
15588  ac_status=$?
15589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15590  test $ac_status = 0; }; then
15591  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
15592		      test "x$?" != "x0" && pkg_failed=yes
15593else
15594  pkg_failed=yes
15595fi
15596 else
15597    pkg_failed=untried
15598fi
15599
15600
15601
15602if test $pkg_failed = yes; then
15603   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15604$as_echo "no" >&6; }
15605
15606if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15607        _pkg_short_errors_supported=yes
15608else
15609        _pkg_short_errors_supported=no
15610fi
15611        if test $_pkg_short_errors_supported = yes; then
15612	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
15613        else
15614	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
15615        fi
15616	# Put the nasty error message in config.log where it belongs
15617	echo "$APPDEFS_PKG_ERRORS" >&5
15618
15619	as_fn_error $? "Package requirements (xt) were not met:
15620
15621$APPDEFS_PKG_ERRORS
15622
15623Consider adjusting the PKG_CONFIG_PATH environment variable if you
15624installed software in a non-standard prefix.
15625
15626Alternatively, you may set the environment variables APPDEFS_CFLAGS
15627and APPDEFS_LIBS to avoid the need to call pkg-config.
15628See the pkg-config man page for more details." "$LINENO" 5
15629elif test $pkg_failed = untried; then
15630     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15631$as_echo "no" >&6; }
15632	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15634as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15635is in your PATH or set the PKG_CONFIG environment variable to the full
15636path to pkg-config.
15637
15638Alternatively, you may set the environment variables APPDEFS_CFLAGS
15639and APPDEFS_LIBS to avoid the need to call pkg-config.
15640See the pkg-config man page for more details.
15641
15642To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15643See \`config.log' for more details" "$LINENO" 5; }
15644else
15645	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
15646	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
15647        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15648$as_echo "yes" >&6; }
15649
15650fi
15651xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
15652
15653# Check whether --with-appdefaultdir was given.
15654if test "${with_appdefaultdir+set}" = set; then :
15655  withval=$with_appdefaultdir; appdefaultdir="$withval"
15656else
15657  appdefaultdir="${xt_appdefaultdir}"
15658fi
15659
15660
15661
15662
15663
15664ac_config_files="$ac_config_files Makefile app-defaults/Makefile chooser/Makefile config/Makefile greeter/Makefile include/Makefile man/Makefile xdm/Makefile xdmshell/Makefile"
15665
15666cat >confcache <<\_ACEOF
15667# This file is a shell script that caches the results of configure
15668# tests run on this system so they can be shared between configure
15669# scripts and configure runs, see configure's option --config-cache.
15670# It is not useful on other systems.  If it contains results you don't
15671# want to keep, you may remove or edit it.
15672#
15673# config.status only pays attention to the cache file if you give it
15674# the --recheck option to rerun configure.
15675#
15676# `ac_cv_env_foo' variables (set or unset) will be overridden when
15677# loading this file, other *unset* `ac_cv_foo' will be assigned the
15678# following values.
15679
15680_ACEOF
15681
15682# The following way of writing the cache mishandles newlines in values,
15683# but we know of no workaround that is simple, portable, and efficient.
15684# So, we kill variables containing newlines.
15685# Ultrix sh set writes to stderr and can't be redirected directly,
15686# and sets the high bit in the cache file unless we assign to the vars.
15687(
15688  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15689    eval ac_val=\$$ac_var
15690    case $ac_val in #(
15691    *${as_nl}*)
15692      case $ac_var in #(
15693      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15694$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15695      esac
15696      case $ac_var in #(
15697      _ | IFS | as_nl) ;; #(
15698      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15699      *) { eval $ac_var=; unset $ac_var;} ;;
15700      esac ;;
15701    esac
15702  done
15703
15704  (set) 2>&1 |
15705    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15706    *${as_nl}ac_space=\ *)
15707      # `set' does not quote correctly, so add quotes: double-quote
15708      # substitution turns \\\\ into \\, and sed turns \\ into \.
15709      sed -n \
15710	"s/'/'\\\\''/g;
15711	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15712      ;; #(
15713    *)
15714      # `set' quotes correctly as required by POSIX, so do not add quotes.
15715      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15716      ;;
15717    esac |
15718    sort
15719) |
15720  sed '
15721     /^ac_cv_env_/b end
15722     t clear
15723     :clear
15724     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15725     t end
15726     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15727     :end' >>confcache
15728if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15729  if test -w "$cache_file"; then
15730    if test "x$cache_file" != "x/dev/null"; then
15731      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15732$as_echo "$as_me: updating cache $cache_file" >&6;}
15733      if test ! -f "$cache_file" || test -h "$cache_file"; then
15734	cat confcache >"$cache_file"
15735      else
15736        case $cache_file in #(
15737        */* | ?:*)
15738	  mv -f confcache "$cache_file"$$ &&
15739	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15740        *)
15741	  mv -f confcache "$cache_file" ;;
15742	esac
15743      fi
15744    fi
15745  else
15746    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15747$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15748  fi
15749fi
15750rm -f confcache
15751
15752test "x$prefix" = xNONE && prefix=$ac_default_prefix
15753# Let make expand exec_prefix.
15754test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15755
15756DEFS=-DHAVE_CONFIG_H
15757
15758ac_libobjs=
15759ac_ltlibobjs=
15760U=
15761for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15762  # 1. Remove the extension, and $U if already installed.
15763  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15764  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15765  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15766  #    will be set to the directory where LIBOBJS objects are built.
15767  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15768  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15769done
15770LIBOBJS=$ac_libobjs
15771
15772LTLIBOBJS=$ac_ltlibobjs
15773
15774
15775if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15776  as_fn_error $? "conditional \"AMDEP\" was never defined.
15777Usually this means the macro was only invoked conditionally." "$LINENO" 5
15778fi
15779if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15780  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15781Usually this means the macro was only invoked conditionally." "$LINENO" 5
15782fi
15783 if test -n "$EXEEXT"; then
15784  am__EXEEXT_TRUE=
15785  am__EXEEXT_FALSE='#'
15786else
15787  am__EXEEXT_TRUE='#'
15788  am__EXEEXT_FALSE=
15789fi
15790
15791if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15792  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15793Usually this means the macro was only invoked conditionally." "$LINENO" 5
15794fi
15795if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
15796  as_fn_error $? "conditional \"LINT\" was never defined.
15797Usually this means the macro was only invoked conditionally." "$LINENO" 5
15798fi
15799if test -z "${HAVE_MKTEMP_COMMAND_TRUE}" && test -z "${HAVE_MKTEMP_COMMAND_FALSE}"; then
15800  as_fn_error $? "conditional \"HAVE_MKTEMP_COMMAND\" was never defined.
15801Usually this means the macro was only invoked conditionally." "$LINENO" 5
15802fi
15803if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then
15804  as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined.
15805Usually this means the macro was only invoked conditionally." "$LINENO" 5
15806fi
15807if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then
15808  as_fn_error $? "conditional \"HAS_SECURE_RPC\" was never defined.
15809Usually this means the macro was only invoked conditionally." "$LINENO" 5
15810fi
15811if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
15812  as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
15813Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814fi
15815if test -z "${HAS_KERBEROS_FIVE_TRUE}" && test -z "${HAS_KERBEROS_FIVE_FALSE}"; then
15816  as_fn_error $? "conditional \"HAS_KERBEROS_FIVE\" was never defined.
15817Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818fi
15819if test -z "${USE_XPM_TRUE}" && test -z "${USE_XPM_FALSE}"; then
15820  as_fn_error $? "conditional \"USE_XPM\" was never defined.
15821Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822fi
15823if test -z "${HAS_XDM_AUTH_TRUE}" && test -z "${HAS_XDM_AUTH_FALSE}"; then
15824  as_fn_error $? "conditional \"HAS_XDM_AUTH\" was never defined.
15825Usually this means the macro was only invoked conditionally." "$LINENO" 5
15826fi
15827if test -z "${INSTALL_XDMSHELL_TRUE}" && test -z "${INSTALL_XDMSHELL_FALSE}"; then
15828  as_fn_error $? "conditional \"INSTALL_XDMSHELL\" was never defined.
15829Usually this means the macro was only invoked conditionally." "$LINENO" 5
15830fi
15831
15832: "${CONFIG_STATUS=./config.status}"
15833ac_write_fail=0
15834ac_clean_files_save=$ac_clean_files
15835ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15837$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15838as_write_fail=0
15839cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15840#! $SHELL
15841# Generated by $as_me.
15842# Run this file to recreate the current configuration.
15843# Compiler output produced by configure, useful for debugging
15844# configure, is in config.log if it exists.
15845
15846debug=false
15847ac_cs_recheck=false
15848ac_cs_silent=false
15849
15850SHELL=\${CONFIG_SHELL-$SHELL}
15851export SHELL
15852_ASEOF
15853cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15854## -------------------- ##
15855## M4sh Initialization. ##
15856## -------------------- ##
15857
15858# Be more Bourne compatible
15859DUALCASE=1; export DUALCASE # for MKS sh
15860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15861  emulate sh
15862  NULLCMD=:
15863  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15864  # is contrary to our usage.  Disable this feature.
15865  alias -g '${1+"$@"}'='"$@"'
15866  setopt NO_GLOB_SUBST
15867else
15868  case `(set -o) 2>/dev/null` in #(
15869  *posix*) :
15870    set -o posix ;; #(
15871  *) :
15872     ;;
15873esac
15874fi
15875
15876
15877as_nl='
15878'
15879export as_nl
15880# Printing a long string crashes Solaris 7 /usr/bin/printf.
15881as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15883as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15884# Prefer a ksh shell builtin over an external printf program on Solaris,
15885# but without wasting forks for bash or zsh.
15886if test -z "$BASH_VERSION$ZSH_VERSION" \
15887    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15888  as_echo='print -r --'
15889  as_echo_n='print -rn --'
15890elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15891  as_echo='printf %s\n'
15892  as_echo_n='printf %s'
15893else
15894  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15895    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15896    as_echo_n='/usr/ucb/echo -n'
15897  else
15898    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15899    as_echo_n_body='eval
15900      arg=$1;
15901      case $arg in #(
15902      *"$as_nl"*)
15903	expr "X$arg" : "X\\(.*\\)$as_nl";
15904	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15905      esac;
15906      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15907    '
15908    export as_echo_n_body
15909    as_echo_n='sh -c $as_echo_n_body as_echo'
15910  fi
15911  export as_echo_body
15912  as_echo='sh -c $as_echo_body as_echo'
15913fi
15914
15915# The user is always right.
15916if test "${PATH_SEPARATOR+set}" != set; then
15917  PATH_SEPARATOR=:
15918  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15919    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15920      PATH_SEPARATOR=';'
15921  }
15922fi
15923
15924
15925# IFS
15926# We need space, tab and new line, in precisely that order.  Quoting is
15927# there to prevent editors from complaining about space-tab.
15928# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15929# splitting by setting IFS to empty value.)
15930IFS=" ""	$as_nl"
15931
15932# Find who we are.  Look in the path if we contain no directory separator.
15933as_myself=
15934case $0 in #((
15935  *[\\/]* ) as_myself=$0 ;;
15936  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15937for as_dir in $PATH
15938do
15939  IFS=$as_save_IFS
15940  test -z "$as_dir" && as_dir=.
15941    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15942  done
15943IFS=$as_save_IFS
15944
15945     ;;
15946esac
15947# We did not find ourselves, most probably we were run as `sh COMMAND'
15948# in which case we are not to be found in the path.
15949if test "x$as_myself" = x; then
15950  as_myself=$0
15951fi
15952if test ! -f "$as_myself"; then
15953  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15954  exit 1
15955fi
15956
15957# Unset variables that we do not need and which cause bugs (e.g. in
15958# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15959# suppresses any "Segmentation fault" message there.  '((' could
15960# trigger a bug in pdksh 5.2.14.
15961for as_var in BASH_ENV ENV MAIL MAILPATH
15962do eval test x\${$as_var+set} = xset \
15963  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15964done
15965PS1='$ '
15966PS2='> '
15967PS4='+ '
15968
15969# NLS nuisances.
15970LC_ALL=C
15971export LC_ALL
15972LANGUAGE=C
15973export LANGUAGE
15974
15975# CDPATH.
15976(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15977
15978
15979# as_fn_error STATUS ERROR [LINENO LOG_FD]
15980# ----------------------------------------
15981# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15982# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15983# script with STATUS, using 1 if that was 0.
15984as_fn_error ()
15985{
15986  as_status=$1; test $as_status -eq 0 && as_status=1
15987  if test "$4"; then
15988    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15989    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15990  fi
15991  $as_echo "$as_me: error: $2" >&2
15992  as_fn_exit $as_status
15993} # as_fn_error
15994
15995
15996# as_fn_set_status STATUS
15997# -----------------------
15998# Set $? to STATUS, without forking.
15999as_fn_set_status ()
16000{
16001  return $1
16002} # as_fn_set_status
16003
16004# as_fn_exit STATUS
16005# -----------------
16006# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16007as_fn_exit ()
16008{
16009  set +e
16010  as_fn_set_status $1
16011  exit $1
16012} # as_fn_exit
16013
16014# as_fn_unset VAR
16015# ---------------
16016# Portably unset VAR.
16017as_fn_unset ()
16018{
16019  { eval $1=; unset $1;}
16020}
16021as_unset=as_fn_unset
16022# as_fn_append VAR VALUE
16023# ----------------------
16024# Append the text in VALUE to the end of the definition contained in VAR. Take
16025# advantage of any shell optimizations that allow amortized linear growth over
16026# repeated appends, instead of the typical quadratic growth present in naive
16027# implementations.
16028if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16029  eval 'as_fn_append ()
16030  {
16031    eval $1+=\$2
16032  }'
16033else
16034  as_fn_append ()
16035  {
16036    eval $1=\$$1\$2
16037  }
16038fi # as_fn_append
16039
16040# as_fn_arith ARG...
16041# ------------------
16042# Perform arithmetic evaluation on the ARGs, and store the result in the
16043# global $as_val. Take advantage of shells that can avoid forks. The arguments
16044# must be portable across $(()) and expr.
16045if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16046  eval 'as_fn_arith ()
16047  {
16048    as_val=$(( $* ))
16049  }'
16050else
16051  as_fn_arith ()
16052  {
16053    as_val=`expr "$@" || test $? -eq 1`
16054  }
16055fi # as_fn_arith
16056
16057
16058if expr a : '\(a\)' >/dev/null 2>&1 &&
16059   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16060  as_expr=expr
16061else
16062  as_expr=false
16063fi
16064
16065if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16066  as_basename=basename
16067else
16068  as_basename=false
16069fi
16070
16071if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16072  as_dirname=dirname
16073else
16074  as_dirname=false
16075fi
16076
16077as_me=`$as_basename -- "$0" ||
16078$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16079	 X"$0" : 'X\(//\)$' \| \
16080	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16081$as_echo X/"$0" |
16082    sed '/^.*\/\([^/][^/]*\)\/*$/{
16083	    s//\1/
16084	    q
16085	  }
16086	  /^X\/\(\/\/\)$/{
16087	    s//\1/
16088	    q
16089	  }
16090	  /^X\/\(\/\).*/{
16091	    s//\1/
16092	    q
16093	  }
16094	  s/.*/./; q'`
16095
16096# Avoid depending upon Character Ranges.
16097as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16099as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16100as_cr_digits='0123456789'
16101as_cr_alnum=$as_cr_Letters$as_cr_digits
16102
16103ECHO_C= ECHO_N= ECHO_T=
16104case `echo -n x` in #(((((
16105-n*)
16106  case `echo 'xy\c'` in
16107  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16108  xy)  ECHO_C='\c';;
16109  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16110       ECHO_T='	';;
16111  esac;;
16112*)
16113  ECHO_N='-n';;
16114esac
16115
16116rm -f conf$$ conf$$.exe conf$$.file
16117if test -d conf$$.dir; then
16118  rm -f conf$$.dir/conf$$.file
16119else
16120  rm -f conf$$.dir
16121  mkdir conf$$.dir 2>/dev/null
16122fi
16123if (echo >conf$$.file) 2>/dev/null; then
16124  if ln -s conf$$.file conf$$ 2>/dev/null; then
16125    as_ln_s='ln -s'
16126    # ... but there are two gotchas:
16127    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16128    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16129    # In both cases, we have to default to `cp -p'.
16130    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16131      as_ln_s='cp -p'
16132  elif ln conf$$.file conf$$ 2>/dev/null; then
16133    as_ln_s=ln
16134  else
16135    as_ln_s='cp -p'
16136  fi
16137else
16138  as_ln_s='cp -p'
16139fi
16140rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16141rmdir conf$$.dir 2>/dev/null
16142
16143
16144# as_fn_mkdir_p
16145# -------------
16146# Create "$as_dir" as a directory, including parents if necessary.
16147as_fn_mkdir_p ()
16148{
16149
16150  case $as_dir in #(
16151  -*) as_dir=./$as_dir;;
16152  esac
16153  test -d "$as_dir" || eval $as_mkdir_p || {
16154    as_dirs=
16155    while :; do
16156      case $as_dir in #(
16157      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16158      *) as_qdir=$as_dir;;
16159      esac
16160      as_dirs="'$as_qdir' $as_dirs"
16161      as_dir=`$as_dirname -- "$as_dir" ||
16162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16163	 X"$as_dir" : 'X\(//\)[^/]' \| \
16164	 X"$as_dir" : 'X\(//\)$' \| \
16165	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16166$as_echo X"$as_dir" |
16167    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16168	    s//\1/
16169	    q
16170	  }
16171	  /^X\(\/\/\)[^/].*/{
16172	    s//\1/
16173	    q
16174	  }
16175	  /^X\(\/\/\)$/{
16176	    s//\1/
16177	    q
16178	  }
16179	  /^X\(\/\).*/{
16180	    s//\1/
16181	    q
16182	  }
16183	  s/.*/./; q'`
16184      test -d "$as_dir" && break
16185    done
16186    test -z "$as_dirs" || eval "mkdir $as_dirs"
16187  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16188
16189
16190} # as_fn_mkdir_p
16191if mkdir -p . 2>/dev/null; then
16192  as_mkdir_p='mkdir -p "$as_dir"'
16193else
16194  test -d ./-p && rmdir ./-p
16195  as_mkdir_p=false
16196fi
16197
16198if test -x / >/dev/null 2>&1; then
16199  as_test_x='test -x'
16200else
16201  if ls -dL / >/dev/null 2>&1; then
16202    as_ls_L_option=L
16203  else
16204    as_ls_L_option=
16205  fi
16206  as_test_x='
16207    eval sh -c '\''
16208      if test -d "$1"; then
16209	test -d "$1/.";
16210      else
16211	case $1 in #(
16212	-*)set "./$1";;
16213	esac;
16214	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16215	???[sx]*):;;*)false;;esac;fi
16216    '\'' sh
16217  '
16218fi
16219as_executable_p=$as_test_x
16220
16221# Sed expression to map a string onto a valid CPP name.
16222as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16223
16224# Sed expression to map a string onto a valid variable name.
16225as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16226
16227
16228exec 6>&1
16229## ----------------------------------- ##
16230## Main body of $CONFIG_STATUS script. ##
16231## ----------------------------------- ##
16232_ASEOF
16233test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16234
16235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236# Save the log message, to keep $0 and so on meaningful, and to
16237# report actual input values of CONFIG_FILES etc. instead of their
16238# values after options handling.
16239ac_log="
16240This file was extended by xdm $as_me 1.1.11, which was
16241generated by GNU Autoconf 2.68.  Invocation command line was
16242
16243  CONFIG_FILES    = $CONFIG_FILES
16244  CONFIG_HEADERS  = $CONFIG_HEADERS
16245  CONFIG_LINKS    = $CONFIG_LINKS
16246  CONFIG_COMMANDS = $CONFIG_COMMANDS
16247  $ $0 $@
16248
16249on `(hostname || uname -n) 2>/dev/null | sed 1q`
16250"
16251
16252_ACEOF
16253
16254case $ac_config_files in *"
16255"*) set x $ac_config_files; shift; ac_config_files=$*;;
16256esac
16257
16258case $ac_config_headers in *"
16259"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16260esac
16261
16262
16263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16264# Files that config.status was made for.
16265config_files="$ac_config_files"
16266config_headers="$ac_config_headers"
16267config_commands="$ac_config_commands"
16268
16269_ACEOF
16270
16271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272ac_cs_usage="\
16273\`$as_me' instantiates files and other configuration actions
16274from templates according to the current configuration.  Unless the files
16275and actions are specified as TAGs, all are instantiated by default.
16276
16277Usage: $0 [OPTION]... [TAG]...
16278
16279  -h, --help       print this help, then exit
16280  -V, --version    print version number and configuration settings, then exit
16281      --config     print configuration, then exit
16282  -q, --quiet, --silent
16283                   do not print progress messages
16284  -d, --debug      don't remove temporary files
16285      --recheck    update $as_me by reconfiguring in the same conditions
16286      --file=FILE[:TEMPLATE]
16287                   instantiate the configuration file FILE
16288      --header=FILE[:TEMPLATE]
16289                   instantiate the configuration header FILE
16290
16291Configuration files:
16292$config_files
16293
16294Configuration headers:
16295$config_headers
16296
16297Configuration commands:
16298$config_commands
16299
16300Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
16301
16302_ACEOF
16303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16304ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16305ac_cs_version="\\
16306xdm config.status 1.1.11
16307configured by $0, generated by GNU Autoconf 2.68,
16308  with options \\"\$ac_cs_config\\"
16309
16310Copyright (C) 2010 Free Software Foundation, Inc.
16311This config.status script is free software; the Free Software Foundation
16312gives unlimited permission to copy, distribute and modify it."
16313
16314ac_pwd='$ac_pwd'
16315srcdir='$srcdir'
16316INSTALL='$INSTALL'
16317MKDIR_P='$MKDIR_P'
16318AWK='$AWK'
16319test -n "\$AWK" || AWK=awk
16320_ACEOF
16321
16322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323# The default lists apply if the user does not specify any file.
16324ac_need_defaults=:
16325while test $# != 0
16326do
16327  case $1 in
16328  --*=?*)
16329    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16330    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16331    ac_shift=:
16332    ;;
16333  --*=)
16334    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16335    ac_optarg=
16336    ac_shift=:
16337    ;;
16338  *)
16339    ac_option=$1
16340    ac_optarg=$2
16341    ac_shift=shift
16342    ;;
16343  esac
16344
16345  case $ac_option in
16346  # Handling of the options.
16347  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16348    ac_cs_recheck=: ;;
16349  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16350    $as_echo "$ac_cs_version"; exit ;;
16351  --config | --confi | --conf | --con | --co | --c )
16352    $as_echo "$ac_cs_config"; exit ;;
16353  --debug | --debu | --deb | --de | --d | -d )
16354    debug=: ;;
16355  --file | --fil | --fi | --f )
16356    $ac_shift
16357    case $ac_optarg in
16358    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16359    '') as_fn_error $? "missing file argument" ;;
16360    esac
16361    as_fn_append CONFIG_FILES " '$ac_optarg'"
16362    ac_need_defaults=false;;
16363  --header | --heade | --head | --hea )
16364    $ac_shift
16365    case $ac_optarg in
16366    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16367    esac
16368    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16369    ac_need_defaults=false;;
16370  --he | --h)
16371    # Conflict between --help and --header
16372    as_fn_error $? "ambiguous option: \`$1'
16373Try \`$0 --help' for more information.";;
16374  --help | --hel | -h )
16375    $as_echo "$ac_cs_usage"; exit ;;
16376  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16377  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16378    ac_cs_silent=: ;;
16379
16380  # This is an error.
16381  -*) as_fn_error $? "unrecognized option: \`$1'
16382Try \`$0 --help' for more information." ;;
16383
16384  *) as_fn_append ac_config_targets " $1"
16385     ac_need_defaults=false ;;
16386
16387  esac
16388  shift
16389done
16390
16391ac_configure_extra_args=
16392
16393if $ac_cs_silent; then
16394  exec 6>/dev/null
16395  ac_configure_extra_args="$ac_configure_extra_args --silent"
16396fi
16397
16398_ACEOF
16399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400if \$ac_cs_recheck; then
16401  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16402  shift
16403  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16404  CONFIG_SHELL='$SHELL'
16405  export CONFIG_SHELL
16406  exec "\$@"
16407fi
16408
16409_ACEOF
16410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411exec 5>>config.log
16412{
16413  echo
16414  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16415## Running $as_me. ##
16416_ASBOX
16417  $as_echo "$ac_log"
16418} >&5
16419
16420_ACEOF
16421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16422#
16423# INIT-COMMANDS
16424#
16425AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16426
16427
16428# The HP-UX ksh and POSIX shell print the target directory to stdout
16429# if CDPATH is set.
16430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16431
16432sed_quote_subst='$sed_quote_subst'
16433double_quote_subst='$double_quote_subst'
16434delay_variable_subst='$delay_variable_subst'
16435enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16436macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16437macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16438enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16439pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16440enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16441SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16442ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16443host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16444host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16445host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16446build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16447build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16448build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16449SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16450Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16451GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16452EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16453FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16454LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16455NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16456LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16457max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16458ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16459exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16460lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16461lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16462lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16463lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16464lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16465reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16466reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16467OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16468deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16469file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16470file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16471want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16472DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16473sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16474AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16475AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16476archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16477STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16478RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16479old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16480old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16481old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16482lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16483CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16484CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16485compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16486GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16487lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16488lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16489lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16490lt_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"`'
16491nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16492lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16493objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16494MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16495lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16496lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16497lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16498lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16499lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16500need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16501MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16502DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16503NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16504LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16505OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16506OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16507libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16508shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16509extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16510archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16511enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16512export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16513whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16514compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16515old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16516old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16517archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16518archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16519module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16520module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16521with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16522allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16523no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16524hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16525hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16526hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16527hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16528hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16529hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16530hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16531hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16532inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16533link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16534always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16535export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16536exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16537include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16538prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16539postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16540file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16541variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16542need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16543need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16544version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16545runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16546shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16547shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16548libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16549library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16550soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16551install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16552postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16553postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16554finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16555finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16556hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16557sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16558sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16559hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16560enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16561enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16562enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16563old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16564striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16565
16566LTCC='$LTCC'
16567LTCFLAGS='$LTCFLAGS'
16568compiler='$compiler_DEFAULT'
16569
16570# A function that is used when there is no print builtin or printf.
16571func_fallback_echo ()
16572{
16573  eval 'cat <<_LTECHO_EOF
16574\$1
16575_LTECHO_EOF'
16576}
16577
16578# Quote evaled strings.
16579for var in SHELL \
16580ECHO \
16581SED \
16582GREP \
16583EGREP \
16584FGREP \
16585LD \
16586NM \
16587LN_S \
16588lt_SP2NL \
16589lt_NL2SP \
16590reload_flag \
16591OBJDUMP \
16592deplibs_check_method \
16593file_magic_cmd \
16594file_magic_glob \
16595want_nocaseglob \
16596DLLTOOL \
16597sharedlib_from_linklib_cmd \
16598AR \
16599AR_FLAGS \
16600archiver_list_spec \
16601STRIP \
16602RANLIB \
16603CC \
16604CFLAGS \
16605compiler \
16606lt_cv_sys_global_symbol_pipe \
16607lt_cv_sys_global_symbol_to_cdecl \
16608lt_cv_sys_global_symbol_to_c_name_address \
16609lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16610nm_file_list_spec \
16611lt_prog_compiler_no_builtin_flag \
16612lt_prog_compiler_pic \
16613lt_prog_compiler_wl \
16614lt_prog_compiler_static \
16615lt_cv_prog_compiler_c_o \
16616need_locks \
16617MANIFEST_TOOL \
16618DSYMUTIL \
16619NMEDIT \
16620LIPO \
16621OTOOL \
16622OTOOL64 \
16623shrext_cmds \
16624export_dynamic_flag_spec \
16625whole_archive_flag_spec \
16626compiler_needs_object \
16627with_gnu_ld \
16628allow_undefined_flag \
16629no_undefined_flag \
16630hardcode_libdir_flag_spec \
16631hardcode_libdir_flag_spec_ld \
16632hardcode_libdir_separator \
16633exclude_expsyms \
16634include_expsyms \
16635file_list_spec \
16636variables_saved_for_relink \
16637libname_spec \
16638library_names_spec \
16639soname_spec \
16640install_override_mode \
16641finish_eval \
16642old_striplib \
16643striplib; do
16644    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16645    *[\\\\\\\`\\"\\\$]*)
16646      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16647      ;;
16648    *)
16649      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16650      ;;
16651    esac
16652done
16653
16654# Double-quote double-evaled strings.
16655for var in reload_cmds \
16656old_postinstall_cmds \
16657old_postuninstall_cmds \
16658old_archive_cmds \
16659extract_expsyms_cmds \
16660old_archive_from_new_cmds \
16661old_archive_from_expsyms_cmds \
16662archive_cmds \
16663archive_expsym_cmds \
16664module_cmds \
16665module_expsym_cmds \
16666export_symbols_cmds \
16667prelink_cmds \
16668postlink_cmds \
16669postinstall_cmds \
16670postuninstall_cmds \
16671finish_cmds \
16672sys_lib_search_path_spec \
16673sys_lib_dlsearch_path_spec; do
16674    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16675    *[\\\\\\\`\\"\\\$]*)
16676      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16677      ;;
16678    *)
16679      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16680      ;;
16681    esac
16682done
16683
16684ac_aux_dir='$ac_aux_dir'
16685xsi_shell='$xsi_shell'
16686lt_shell_append='$lt_shell_append'
16687
16688# See if we are running on zsh, and set the options which allow our
16689# commands through without removal of \ escapes INIT.
16690if test -n "\${ZSH_VERSION+set}" ; then
16691   setopt NO_GLOB_SUBST
16692fi
16693
16694
16695    PACKAGE='$PACKAGE'
16696    VERSION='$VERSION'
16697    TIMESTAMP='$TIMESTAMP'
16698    RM='$RM'
16699    ofile='$ofile'
16700
16701
16702
16703
16704_ACEOF
16705
16706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16707
16708# Handling of arguments.
16709for ac_config_target in $ac_config_targets
16710do
16711  case $ac_config_target in
16712    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16713    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16714    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16715    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16716    "app-defaults/Makefile") CONFIG_FILES="$CONFIG_FILES app-defaults/Makefile" ;;
16717    "chooser/Makefile") CONFIG_FILES="$CONFIG_FILES chooser/Makefile" ;;
16718    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
16719    "greeter/Makefile") CONFIG_FILES="$CONFIG_FILES greeter/Makefile" ;;
16720    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16721    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16722    "xdm/Makefile") CONFIG_FILES="$CONFIG_FILES xdm/Makefile" ;;
16723    "xdmshell/Makefile") CONFIG_FILES="$CONFIG_FILES xdmshell/Makefile" ;;
16724
16725  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16726  esac
16727done
16728
16729
16730# If the user did not use the arguments to specify the items to instantiate,
16731# then the envvar interface is used.  Set only those that are not.
16732# We use the long form for the default assignment because of an extremely
16733# bizarre bug on SunOS 4.1.3.
16734if $ac_need_defaults; then
16735  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16736  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16737  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16738fi
16739
16740# Have a temporary directory for convenience.  Make it in the build tree
16741# simply because there is no reason against having it here, and in addition,
16742# creating and moving files from /tmp can sometimes cause problems.
16743# Hook for its removal unless debugging.
16744# Note that there is a small window in which the directory will not be cleaned:
16745# after its creation but before its name has been assigned to `$tmp'.
16746$debug ||
16747{
16748  tmp= ac_tmp=
16749  trap 'exit_status=$?
16750  : "${ac_tmp:=$tmp}"
16751  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16752' 0
16753  trap 'as_fn_exit 1' 1 2 13 15
16754}
16755# Create a (secure) tmp directory for tmp files.
16756
16757{
16758  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16759  test -d "$tmp"
16760}  ||
16761{
16762  tmp=./conf$$-$RANDOM
16763  (umask 077 && mkdir "$tmp")
16764} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16765ac_tmp=$tmp
16766
16767# Set up the scripts for CONFIG_FILES section.
16768# No need to generate them if there are no CONFIG_FILES.
16769# This happens for instance with `./config.status config.h'.
16770if test -n "$CONFIG_FILES"; then
16771
16772
16773ac_cr=`echo X | tr X '\015'`
16774# On cygwin, bash can eat \r inside `` if the user requested igncr.
16775# But we know of no other shell where ac_cr would be empty at this
16776# point, so we can use a bashism as a fallback.
16777if test "x$ac_cr" = x; then
16778  eval ac_cr=\$\'\\r\'
16779fi
16780ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16781if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16782  ac_cs_awk_cr='\\r'
16783else
16784  ac_cs_awk_cr=$ac_cr
16785fi
16786
16787echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16788_ACEOF
16789
16790
16791{
16792  echo "cat >conf$$subs.awk <<_ACEOF" &&
16793  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16794  echo "_ACEOF"
16795} >conf$$subs.sh ||
16796  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16797ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16798ac_delim='%!_!# '
16799for ac_last_try in false false false false false :; do
16800  . ./conf$$subs.sh ||
16801    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16802
16803  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16804  if test $ac_delim_n = $ac_delim_num; then
16805    break
16806  elif $ac_last_try; then
16807    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16808  else
16809    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16810  fi
16811done
16812rm -f conf$$subs.sh
16813
16814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16815cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16816_ACEOF
16817sed -n '
16818h
16819s/^/S["/; s/!.*/"]=/
16820p
16821g
16822s/^[^!]*!//
16823:repl
16824t repl
16825s/'"$ac_delim"'$//
16826t delim
16827:nl
16828h
16829s/\(.\{148\}\)..*/\1/
16830t more1
16831s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16832p
16833n
16834b repl
16835:more1
16836s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16837p
16838g
16839s/.\{148\}//
16840t nl
16841:delim
16842h
16843s/\(.\{148\}\)..*/\1/
16844t more2
16845s/["\\]/\\&/g; s/^/"/; s/$/"/
16846p
16847b
16848:more2
16849s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16850p
16851g
16852s/.\{148\}//
16853t delim
16854' <conf$$subs.awk | sed '
16855/^[^""]/{
16856  N
16857  s/\n//
16858}
16859' >>$CONFIG_STATUS || ac_write_fail=1
16860rm -f conf$$subs.awk
16861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16862_ACAWK
16863cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16864  for (key in S) S_is_set[key] = 1
16865  FS = ""
16866
16867}
16868{
16869  line = $ 0
16870  nfields = split(line, field, "@")
16871  substed = 0
16872  len = length(field[1])
16873  for (i = 2; i < nfields; i++) {
16874    key = field[i]
16875    keylen = length(key)
16876    if (S_is_set[key]) {
16877      value = S[key]
16878      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16879      len += length(value) + length(field[++i])
16880      substed = 1
16881    } else
16882      len += 1 + keylen
16883  }
16884
16885  print line
16886}
16887
16888_ACAWK
16889_ACEOF
16890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16891if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16892  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16893else
16894  cat
16895fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16896  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16897_ACEOF
16898
16899# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16900# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16901# trailing colons and then remove the whole line if VPATH becomes empty
16902# (actually we leave an empty line to preserve line numbers).
16903if test "x$srcdir" = x.; then
16904  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16905h
16906s///
16907s/^/:/
16908s/[	 ]*$/:/
16909s/:\$(srcdir):/:/g
16910s/:\${srcdir}:/:/g
16911s/:@srcdir@:/:/g
16912s/^:*//
16913s/:*$//
16914x
16915s/\(=[	 ]*\).*/\1/
16916G
16917s/\n//
16918s/^[^=]*=[	 ]*$//
16919}'
16920fi
16921
16922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16923fi # test -n "$CONFIG_FILES"
16924
16925# Set up the scripts for CONFIG_HEADERS section.
16926# No need to generate them if there are no CONFIG_HEADERS.
16927# This happens for instance with `./config.status Makefile'.
16928if test -n "$CONFIG_HEADERS"; then
16929cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16930BEGIN {
16931_ACEOF
16932
16933# Transform confdefs.h into an awk script `defines.awk', embedded as
16934# here-document in config.status, that substitutes the proper values into
16935# config.h.in to produce config.h.
16936
16937# Create a delimiter string that does not exist in confdefs.h, to ease
16938# handling of long lines.
16939ac_delim='%!_!# '
16940for ac_last_try in false false :; do
16941  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16942  if test -z "$ac_tt"; then
16943    break
16944  elif $ac_last_try; then
16945    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16946  else
16947    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16948  fi
16949done
16950
16951# For the awk script, D is an array of macro values keyed by name,
16952# likewise P contains macro parameters if any.  Preserve backslash
16953# newline sequences.
16954
16955ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16956sed -n '
16957s/.\{148\}/&'"$ac_delim"'/g
16958t rset
16959:rset
16960s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16961t def
16962d
16963:def
16964s/\\$//
16965t bsnl
16966s/["\\]/\\&/g
16967s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16968D["\1"]=" \3"/p
16969s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16970d
16971:bsnl
16972s/["\\]/\\&/g
16973s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16974D["\1"]=" \3\\\\\\n"\\/p
16975t cont
16976s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16977t cont
16978d
16979:cont
16980n
16981s/.\{148\}/&'"$ac_delim"'/g
16982t clear
16983:clear
16984s/\\$//
16985t bsnlc
16986s/["\\]/\\&/g; s/^/"/; s/$/"/p
16987d
16988:bsnlc
16989s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16990b cont
16991' <confdefs.h | sed '
16992s/'"$ac_delim"'/"\\\
16993"/g' >>$CONFIG_STATUS || ac_write_fail=1
16994
16995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16996  for (key in D) D_is_set[key] = 1
16997  FS = ""
16998}
16999/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17000  line = \$ 0
17001  split(line, arg, " ")
17002  if (arg[1] == "#") {
17003    defundef = arg[2]
17004    mac1 = arg[3]
17005  } else {
17006    defundef = substr(arg[1], 2)
17007    mac1 = arg[2]
17008  }
17009  split(mac1, mac2, "(") #)
17010  macro = mac2[1]
17011  prefix = substr(line, 1, index(line, defundef) - 1)
17012  if (D_is_set[macro]) {
17013    # Preserve the white space surrounding the "#".
17014    print prefix "define", macro P[macro] D[macro]
17015    next
17016  } else {
17017    # Replace #undef with comments.  This is necessary, for example,
17018    # in the case of _POSIX_SOURCE, which is predefined and required
17019    # on some systems where configure will not decide to define it.
17020    if (defundef == "undef") {
17021      print "/*", prefix defundef, macro, "*/"
17022      next
17023    }
17024  }
17025}
17026{ print }
17027_ACAWK
17028_ACEOF
17029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17030  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17031fi # test -n "$CONFIG_HEADERS"
17032
17033
17034eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17035shift
17036for ac_tag
17037do
17038  case $ac_tag in
17039  :[FHLC]) ac_mode=$ac_tag; continue;;
17040  esac
17041  case $ac_mode$ac_tag in
17042  :[FHL]*:*);;
17043  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17044  :[FH]-) ac_tag=-:-;;
17045  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17046  esac
17047  ac_save_IFS=$IFS
17048  IFS=:
17049  set x $ac_tag
17050  IFS=$ac_save_IFS
17051  shift
17052  ac_file=$1
17053  shift
17054
17055  case $ac_mode in
17056  :L) ac_source=$1;;
17057  :[FH])
17058    ac_file_inputs=
17059    for ac_f
17060    do
17061      case $ac_f in
17062      -) ac_f="$ac_tmp/stdin";;
17063      *) # Look for the file first in the build tree, then in the source tree
17064	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17065	 # because $ac_f cannot contain `:'.
17066	 test -f "$ac_f" ||
17067	   case $ac_f in
17068	   [\\/$]*) false;;
17069	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17070	   esac ||
17071	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17072      esac
17073      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17074      as_fn_append ac_file_inputs " '$ac_f'"
17075    done
17076
17077    # Let's still pretend it is `configure' which instantiates (i.e., don't
17078    # use $as_me), people would be surprised to read:
17079    #    /* config.h.  Generated by config.status.  */
17080    configure_input='Generated from '`
17081	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17082	`' by configure.'
17083    if test x"$ac_file" != x-; then
17084      configure_input="$ac_file.  $configure_input"
17085      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17086$as_echo "$as_me: creating $ac_file" >&6;}
17087    fi
17088    # Neutralize special characters interpreted by sed in replacement strings.
17089    case $configure_input in #(
17090    *\&* | *\|* | *\\* )
17091       ac_sed_conf_input=`$as_echo "$configure_input" |
17092       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17093    *) ac_sed_conf_input=$configure_input;;
17094    esac
17095
17096    case $ac_tag in
17097    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17098      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17099    esac
17100    ;;
17101  esac
17102
17103  ac_dir=`$as_dirname -- "$ac_file" ||
17104$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17105	 X"$ac_file" : 'X\(//\)[^/]' \| \
17106	 X"$ac_file" : 'X\(//\)$' \| \
17107	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17108$as_echo X"$ac_file" |
17109    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17110	    s//\1/
17111	    q
17112	  }
17113	  /^X\(\/\/\)[^/].*/{
17114	    s//\1/
17115	    q
17116	  }
17117	  /^X\(\/\/\)$/{
17118	    s//\1/
17119	    q
17120	  }
17121	  /^X\(\/\).*/{
17122	    s//\1/
17123	    q
17124	  }
17125	  s/.*/./; q'`
17126  as_dir="$ac_dir"; as_fn_mkdir_p
17127  ac_builddir=.
17128
17129case "$ac_dir" in
17130.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17131*)
17132  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17133  # A ".." for each directory in $ac_dir_suffix.
17134  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17135  case $ac_top_builddir_sub in
17136  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17137  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17138  esac ;;
17139esac
17140ac_abs_top_builddir=$ac_pwd
17141ac_abs_builddir=$ac_pwd$ac_dir_suffix
17142# for backward compatibility:
17143ac_top_builddir=$ac_top_build_prefix
17144
17145case $srcdir in
17146  .)  # We are building in place.
17147    ac_srcdir=.
17148    ac_top_srcdir=$ac_top_builddir_sub
17149    ac_abs_top_srcdir=$ac_pwd ;;
17150  [\\/]* | ?:[\\/]* )  # Absolute name.
17151    ac_srcdir=$srcdir$ac_dir_suffix;
17152    ac_top_srcdir=$srcdir
17153    ac_abs_top_srcdir=$srcdir ;;
17154  *) # Relative name.
17155    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17156    ac_top_srcdir=$ac_top_build_prefix$srcdir
17157    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17158esac
17159ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17160
17161
17162  case $ac_mode in
17163  :F)
17164  #
17165  # CONFIG_FILE
17166  #
17167
17168  case $INSTALL in
17169  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17170  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17171  esac
17172  ac_MKDIR_P=$MKDIR_P
17173  case $MKDIR_P in
17174  [\\/$]* | ?:[\\/]* ) ;;
17175  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17176  esac
17177_ACEOF
17178
17179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17180# If the template does not know about datarootdir, expand it.
17181# FIXME: This hack should be removed a few years after 2.60.
17182ac_datarootdir_hack=; ac_datarootdir_seen=
17183ac_sed_dataroot='
17184/datarootdir/ {
17185  p
17186  q
17187}
17188/@datadir@/p
17189/@docdir@/p
17190/@infodir@/p
17191/@localedir@/p
17192/@mandir@/p'
17193case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17194*datarootdir*) ac_datarootdir_seen=yes;;
17195*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17196  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17197$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17198_ACEOF
17199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17200  ac_datarootdir_hack='
17201  s&@datadir@&$datadir&g
17202  s&@docdir@&$docdir&g
17203  s&@infodir@&$infodir&g
17204  s&@localedir@&$localedir&g
17205  s&@mandir@&$mandir&g
17206  s&\\\${datarootdir}&$datarootdir&g' ;;
17207esac
17208_ACEOF
17209
17210# Neutralize VPATH when `$srcdir' = `.'.
17211# Shell code in configure.ac might set extrasub.
17212# FIXME: do we really want to maintain this feature?
17213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17214ac_sed_extra="$ac_vpsub
17215$extrasub
17216_ACEOF
17217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17218:t
17219/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17220s|@configure_input@|$ac_sed_conf_input|;t t
17221s&@top_builddir@&$ac_top_builddir_sub&;t t
17222s&@top_build_prefix@&$ac_top_build_prefix&;t t
17223s&@srcdir@&$ac_srcdir&;t t
17224s&@abs_srcdir@&$ac_abs_srcdir&;t t
17225s&@top_srcdir@&$ac_top_srcdir&;t t
17226s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17227s&@builddir@&$ac_builddir&;t t
17228s&@abs_builddir@&$ac_abs_builddir&;t t
17229s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17230s&@INSTALL@&$ac_INSTALL&;t t
17231s&@MKDIR_P@&$ac_MKDIR_P&;t t
17232$ac_datarootdir_hack
17233"
17234eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17235  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17236
17237test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17238  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17239  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17240      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17241  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17242which seems to be undefined.  Please make sure it is defined" >&5
17243$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17244which seems to be undefined.  Please make sure it is defined" >&2;}
17245
17246  rm -f "$ac_tmp/stdin"
17247  case $ac_file in
17248  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17249  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17250  esac \
17251  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17252 ;;
17253  :H)
17254  #
17255  # CONFIG_HEADER
17256  #
17257  if test x"$ac_file" != x-; then
17258    {
17259      $as_echo "/* $configure_input  */" \
17260      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17261    } >"$ac_tmp/config.h" \
17262      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17263    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17264      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17265$as_echo "$as_me: $ac_file is unchanged" >&6;}
17266    else
17267      rm -f "$ac_file"
17268      mv "$ac_tmp/config.h" "$ac_file" \
17269	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17270    fi
17271  else
17272    $as_echo "/* $configure_input  */" \
17273      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17274      || as_fn_error $? "could not create -" "$LINENO" 5
17275  fi
17276# Compute "$ac_file"'s index in $config_headers.
17277_am_arg="$ac_file"
17278_am_stamp_count=1
17279for _am_header in $config_headers :; do
17280  case $_am_header in
17281    $_am_arg | $_am_arg:* )
17282      break ;;
17283    * )
17284      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17285  esac
17286done
17287echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17288$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17289	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17290	 X"$_am_arg" : 'X\(//\)$' \| \
17291	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17292$as_echo X"$_am_arg" |
17293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17294	    s//\1/
17295	    q
17296	  }
17297	  /^X\(\/\/\)[^/].*/{
17298	    s//\1/
17299	    q
17300	  }
17301	  /^X\(\/\/\)$/{
17302	    s//\1/
17303	    q
17304	  }
17305	  /^X\(\/\).*/{
17306	    s//\1/
17307	    q
17308	  }
17309	  s/.*/./; q'`/stamp-h$_am_stamp_count
17310 ;;
17311
17312  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17313$as_echo "$as_me: executing $ac_file commands" >&6;}
17314 ;;
17315  esac
17316
17317
17318  case $ac_file$ac_mode in
17319    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17320  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17321  # are listed without --file.  Let's play safe and only enable the eval
17322  # if we detect the quoting.
17323  case $CONFIG_FILES in
17324  *\'*) eval set x "$CONFIG_FILES" ;;
17325  *)   set x $CONFIG_FILES ;;
17326  esac
17327  shift
17328  for mf
17329  do
17330    # Strip MF so we end up with the name of the file.
17331    mf=`echo "$mf" | sed -e 's/:.*$//'`
17332    # Check whether this is an Automake generated Makefile or not.
17333    # We used to match only the files named `Makefile.in', but
17334    # some people rename them; so instead we look at the file content.
17335    # Grep'ing the first line is not enough: some people post-process
17336    # each Makefile.in and add a new line on top of each file to say so.
17337    # Grep'ing the whole file is not good either: AIX grep has a line
17338    # limit of 2048, but all sed's we know have understand at least 4000.
17339    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17340      dirpart=`$as_dirname -- "$mf" ||
17341$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17342	 X"$mf" : 'X\(//\)[^/]' \| \
17343	 X"$mf" : 'X\(//\)$' \| \
17344	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17345$as_echo X"$mf" |
17346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17347	    s//\1/
17348	    q
17349	  }
17350	  /^X\(\/\/\)[^/].*/{
17351	    s//\1/
17352	    q
17353	  }
17354	  /^X\(\/\/\)$/{
17355	    s//\1/
17356	    q
17357	  }
17358	  /^X\(\/\).*/{
17359	    s//\1/
17360	    q
17361	  }
17362	  s/.*/./; q'`
17363    else
17364      continue
17365    fi
17366    # Extract the definition of DEPDIR, am__include, and am__quote
17367    # from the Makefile without running `make'.
17368    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17369    test -z "$DEPDIR" && continue
17370    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17371    test -z "am__include" && continue
17372    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17373    # When using ansi2knr, U may be empty or an underscore; expand it
17374    U=`sed -n 's/^U = //p' < "$mf"`
17375    # Find all dependency output files, they are included files with
17376    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17377    # simplest approach to changing $(DEPDIR) to its actual value in the
17378    # expansion.
17379    for file in `sed -n "
17380      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17381	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17382      # Make sure the directory exists.
17383      test -f "$dirpart/$file" && continue
17384      fdir=`$as_dirname -- "$file" ||
17385$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17386	 X"$file" : 'X\(//\)[^/]' \| \
17387	 X"$file" : 'X\(//\)$' \| \
17388	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17389$as_echo X"$file" |
17390    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17391	    s//\1/
17392	    q
17393	  }
17394	  /^X\(\/\/\)[^/].*/{
17395	    s//\1/
17396	    q
17397	  }
17398	  /^X\(\/\/\)$/{
17399	    s//\1/
17400	    q
17401	  }
17402	  /^X\(\/\).*/{
17403	    s//\1/
17404	    q
17405	  }
17406	  s/.*/./; q'`
17407      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17408      # echo "creating $dirpart/$file"
17409      echo '# dummy' > "$dirpart/$file"
17410    done
17411  done
17412}
17413 ;;
17414    "libtool":C)
17415
17416    # See if we are running on zsh, and set the options which allow our
17417    # commands through without removal of \ escapes.
17418    if test -n "${ZSH_VERSION+set}" ; then
17419      setopt NO_GLOB_SUBST
17420    fi
17421
17422    cfgfile="${ofile}T"
17423    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17424    $RM "$cfgfile"
17425
17426    cat <<_LT_EOF >> "$cfgfile"
17427#! $SHELL
17428
17429# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17430# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17431# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17432# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17433#
17434#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17435#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17436#                 Inc.
17437#   Written by Gordon Matzigkeit, 1996
17438#
17439#   This file is part of GNU Libtool.
17440#
17441# GNU Libtool is free software; you can redistribute it and/or
17442# modify it under the terms of the GNU General Public License as
17443# published by the Free Software Foundation; either version 2 of
17444# the License, or (at your option) any later version.
17445#
17446# As a special exception to the GNU General Public License,
17447# if you distribute this file as part of a program or library that
17448# is built using GNU Libtool, you may include this file under the
17449# same distribution terms that you use for the rest of that program.
17450#
17451# GNU Libtool is distributed in the hope that it will be useful,
17452# but WITHOUT ANY WARRANTY; without even the implied warranty of
17453# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17454# GNU General Public License for more details.
17455#
17456# You should have received a copy of the GNU General Public License
17457# along with GNU Libtool; see the file COPYING.  If not, a copy
17458# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17459# obtained by writing to the Free Software Foundation, Inc.,
17460# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17461
17462
17463# The names of the tagged configurations supported by this script.
17464available_tags=""
17465
17466# ### BEGIN LIBTOOL CONFIG
17467
17468# Whether or not to build static libraries.
17469build_old_libs=$enable_static
17470
17471# Which release of libtool.m4 was used?
17472macro_version=$macro_version
17473macro_revision=$macro_revision
17474
17475# Whether or not to build shared libraries.
17476build_libtool_libs=$enable_shared
17477
17478# What type of objects to build.
17479pic_mode=$pic_mode
17480
17481# Whether or not to optimize for fast installation.
17482fast_install=$enable_fast_install
17483
17484# Shell to use when invoking shell scripts.
17485SHELL=$lt_SHELL
17486
17487# An echo program that protects backslashes.
17488ECHO=$lt_ECHO
17489
17490# The host system.
17491host_alias=$host_alias
17492host=$host
17493host_os=$host_os
17494
17495# The build system.
17496build_alias=$build_alias
17497build=$build
17498build_os=$build_os
17499
17500# A sed program that does not truncate output.
17501SED=$lt_SED
17502
17503# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17504Xsed="\$SED -e 1s/^X//"
17505
17506# A grep program that handles long lines.
17507GREP=$lt_GREP
17508
17509# An ERE matcher.
17510EGREP=$lt_EGREP
17511
17512# A literal string matcher.
17513FGREP=$lt_FGREP
17514
17515# A BSD- or MS-compatible name lister.
17516NM=$lt_NM
17517
17518# Whether we need soft or hard links.
17519LN_S=$lt_LN_S
17520
17521# What is the maximum length of a command?
17522max_cmd_len=$max_cmd_len
17523
17524# Object file suffix (normally "o").
17525objext=$ac_objext
17526
17527# Executable file suffix (normally "").
17528exeext=$exeext
17529
17530# whether the shell understands "unset".
17531lt_unset=$lt_unset
17532
17533# turn spaces into newlines.
17534SP2NL=$lt_lt_SP2NL
17535
17536# turn newlines into spaces.
17537NL2SP=$lt_lt_NL2SP
17538
17539# convert \$build file names to \$host format.
17540to_host_file_cmd=$lt_cv_to_host_file_cmd
17541
17542# convert \$build files to toolchain format.
17543to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17544
17545# An object symbol dumper.
17546OBJDUMP=$lt_OBJDUMP
17547
17548# Method to check whether dependent libraries are shared objects.
17549deplibs_check_method=$lt_deplibs_check_method
17550
17551# Command to use when deplibs_check_method = "file_magic".
17552file_magic_cmd=$lt_file_magic_cmd
17553
17554# How to find potential files when deplibs_check_method = "file_magic".
17555file_magic_glob=$lt_file_magic_glob
17556
17557# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17558want_nocaseglob=$lt_want_nocaseglob
17559
17560# DLL creation program.
17561DLLTOOL=$lt_DLLTOOL
17562
17563# Command to associate shared and link libraries.
17564sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17565
17566# The archiver.
17567AR=$lt_AR
17568
17569# Flags to create an archive.
17570AR_FLAGS=$lt_AR_FLAGS
17571
17572# How to feed a file listing to the archiver.
17573archiver_list_spec=$lt_archiver_list_spec
17574
17575# A symbol stripping program.
17576STRIP=$lt_STRIP
17577
17578# Commands used to install an old-style archive.
17579RANLIB=$lt_RANLIB
17580old_postinstall_cmds=$lt_old_postinstall_cmds
17581old_postuninstall_cmds=$lt_old_postuninstall_cmds
17582
17583# Whether to use a lock for old archive extraction.
17584lock_old_archive_extraction=$lock_old_archive_extraction
17585
17586# A C compiler.
17587LTCC=$lt_CC
17588
17589# LTCC compiler flags.
17590LTCFLAGS=$lt_CFLAGS
17591
17592# Take the output of nm and produce a listing of raw symbols and C names.
17593global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17594
17595# Transform the output of nm in a proper C declaration.
17596global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17597
17598# Transform the output of nm in a C name address pair.
17599global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17600
17601# Transform the output of nm in a C name address pair when lib prefix is needed.
17602global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17603
17604# Specify filename containing input files for \$NM.
17605nm_file_list_spec=$lt_nm_file_list_spec
17606
17607# The root where to search for dependent libraries,and in which our libraries should be installed.
17608lt_sysroot=$lt_sysroot
17609
17610# The name of the directory that contains temporary libtool files.
17611objdir=$objdir
17612
17613# Used to examine libraries when file_magic_cmd begins with "file".
17614MAGIC_CMD=$MAGIC_CMD
17615
17616# Must we lock files when doing compilation?
17617need_locks=$lt_need_locks
17618
17619# Manifest tool.
17620MANIFEST_TOOL=$lt_MANIFEST_TOOL
17621
17622# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17623DSYMUTIL=$lt_DSYMUTIL
17624
17625# Tool to change global to local symbols on Mac OS X.
17626NMEDIT=$lt_NMEDIT
17627
17628# Tool to manipulate fat objects and archives on Mac OS X.
17629LIPO=$lt_LIPO
17630
17631# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17632OTOOL=$lt_OTOOL
17633
17634# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17635OTOOL64=$lt_OTOOL64
17636
17637# Old archive suffix (normally "a").
17638libext=$libext
17639
17640# Shared library suffix (normally ".so").
17641shrext_cmds=$lt_shrext_cmds
17642
17643# The commands to extract the exported symbol list from a shared archive.
17644extract_expsyms_cmds=$lt_extract_expsyms_cmds
17645
17646# Variables whose values should be saved in libtool wrapper scripts and
17647# restored at link time.
17648variables_saved_for_relink=$lt_variables_saved_for_relink
17649
17650# Do we need the "lib" prefix for modules?
17651need_lib_prefix=$need_lib_prefix
17652
17653# Do we need a version for libraries?
17654need_version=$need_version
17655
17656# Library versioning type.
17657version_type=$version_type
17658
17659# Shared library runtime path variable.
17660runpath_var=$runpath_var
17661
17662# Shared library path variable.
17663shlibpath_var=$shlibpath_var
17664
17665# Is shlibpath searched before the hard-coded library search path?
17666shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17667
17668# Format of library name prefix.
17669libname_spec=$lt_libname_spec
17670
17671# List of archive names.  First name is the real one, the rest are links.
17672# The last name is the one that the linker finds with -lNAME
17673library_names_spec=$lt_library_names_spec
17674
17675# The coded name of the library, if different from the real name.
17676soname_spec=$lt_soname_spec
17677
17678# Permission mode override for installation of shared libraries.
17679install_override_mode=$lt_install_override_mode
17680
17681# Command to use after installation of a shared archive.
17682postinstall_cmds=$lt_postinstall_cmds
17683
17684# Command to use after uninstallation of a shared archive.
17685postuninstall_cmds=$lt_postuninstall_cmds
17686
17687# Commands used to finish a libtool library installation in a directory.
17688finish_cmds=$lt_finish_cmds
17689
17690# As "finish_cmds", except a single script fragment to be evaled but
17691# not shown.
17692finish_eval=$lt_finish_eval
17693
17694# Whether we should hardcode library paths into libraries.
17695hardcode_into_libs=$hardcode_into_libs
17696
17697# Compile-time system search path for libraries.
17698sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17699
17700# Run-time system search path for libraries.
17701sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17702
17703# Whether dlopen is supported.
17704dlopen_support=$enable_dlopen
17705
17706# Whether dlopen of programs is supported.
17707dlopen_self=$enable_dlopen_self
17708
17709# Whether dlopen of statically linked programs is supported.
17710dlopen_self_static=$enable_dlopen_self_static
17711
17712# Commands to strip libraries.
17713old_striplib=$lt_old_striplib
17714striplib=$lt_striplib
17715
17716
17717# The linker used to build libraries.
17718LD=$lt_LD
17719
17720# How to create reloadable object files.
17721reload_flag=$lt_reload_flag
17722reload_cmds=$lt_reload_cmds
17723
17724# Commands used to build an old-style archive.
17725old_archive_cmds=$lt_old_archive_cmds
17726
17727# A language specific compiler.
17728CC=$lt_compiler
17729
17730# Is the compiler the GNU compiler?
17731with_gcc=$GCC
17732
17733# Compiler flag to turn off builtin functions.
17734no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17735
17736# Additional compiler flags for building library objects.
17737pic_flag=$lt_lt_prog_compiler_pic
17738
17739# How to pass a linker flag through the compiler.
17740wl=$lt_lt_prog_compiler_wl
17741
17742# Compiler flag to prevent dynamic linking.
17743link_static_flag=$lt_lt_prog_compiler_static
17744
17745# Does compiler simultaneously support -c and -o options?
17746compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17747
17748# Whether or not to add -lc for building shared libraries.
17749build_libtool_need_lc=$archive_cmds_need_lc
17750
17751# Whether or not to disallow shared libs when runtime libs are static.
17752allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17753
17754# Compiler flag to allow reflexive dlopens.
17755export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17756
17757# Compiler flag to generate shared objects directly from archives.
17758whole_archive_flag_spec=$lt_whole_archive_flag_spec
17759
17760# Whether the compiler copes with passing no objects directly.
17761compiler_needs_object=$lt_compiler_needs_object
17762
17763# Create an old-style archive from a shared archive.
17764old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17765
17766# Create a temporary old-style archive to link instead of a shared archive.
17767old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17768
17769# Commands used to build a shared archive.
17770archive_cmds=$lt_archive_cmds
17771archive_expsym_cmds=$lt_archive_expsym_cmds
17772
17773# Commands used to build a loadable module if different from building
17774# a shared archive.
17775module_cmds=$lt_module_cmds
17776module_expsym_cmds=$lt_module_expsym_cmds
17777
17778# Whether we are building with GNU ld or not.
17779with_gnu_ld=$lt_with_gnu_ld
17780
17781# Flag that allows shared libraries with undefined symbols to be built.
17782allow_undefined_flag=$lt_allow_undefined_flag
17783
17784# Flag that enforces no undefined symbols.
17785no_undefined_flag=$lt_no_undefined_flag
17786
17787# Flag to hardcode \$libdir into a binary during linking.
17788# This must work even if \$libdir does not exist
17789hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17790
17791# If ld is used when linking, flag to hardcode \$libdir into a binary
17792# during linking.  This must work even if \$libdir does not exist.
17793hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17794
17795# Whether we need a single "-rpath" flag with a separated argument.
17796hardcode_libdir_separator=$lt_hardcode_libdir_separator
17797
17798# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17799# DIR into the resulting binary.
17800hardcode_direct=$hardcode_direct
17801
17802# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17803# DIR into the resulting binary and the resulting library dependency is
17804# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17805# library is relocated.
17806hardcode_direct_absolute=$hardcode_direct_absolute
17807
17808# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17809# into the resulting binary.
17810hardcode_minus_L=$hardcode_minus_L
17811
17812# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17813# into the resulting binary.
17814hardcode_shlibpath_var=$hardcode_shlibpath_var
17815
17816# Set to "yes" if building a shared library automatically hardcodes DIR
17817# into the library and all subsequent libraries and executables linked
17818# against it.
17819hardcode_automatic=$hardcode_automatic
17820
17821# Set to yes if linker adds runtime paths of dependent libraries
17822# to runtime path list.
17823inherit_rpath=$inherit_rpath
17824
17825# Whether libtool must link a program against all its dependency libraries.
17826link_all_deplibs=$link_all_deplibs
17827
17828# Set to "yes" if exported symbols are required.
17829always_export_symbols=$always_export_symbols
17830
17831# The commands to list exported symbols.
17832export_symbols_cmds=$lt_export_symbols_cmds
17833
17834# Symbols that should not be listed in the preloaded symbols.
17835exclude_expsyms=$lt_exclude_expsyms
17836
17837# Symbols that must always be exported.
17838include_expsyms=$lt_include_expsyms
17839
17840# Commands necessary for linking programs (against libraries) with templates.
17841prelink_cmds=$lt_prelink_cmds
17842
17843# Commands necessary for finishing linking programs.
17844postlink_cmds=$lt_postlink_cmds
17845
17846# Specify filename containing input files.
17847file_list_spec=$lt_file_list_spec
17848
17849# How to hardcode a shared library path into an executable.
17850hardcode_action=$hardcode_action
17851
17852# ### END LIBTOOL CONFIG
17853
17854_LT_EOF
17855
17856  case $host_os in
17857  aix3*)
17858    cat <<\_LT_EOF >> "$cfgfile"
17859# AIX sometimes has problems with the GCC collect2 program.  For some
17860# reason, if we set the COLLECT_NAMES environment variable, the problems
17861# vanish in a puff of smoke.
17862if test "X${COLLECT_NAMES+set}" != Xset; then
17863  COLLECT_NAMES=
17864  export COLLECT_NAMES
17865fi
17866_LT_EOF
17867    ;;
17868  esac
17869
17870
17871ltmain="$ac_aux_dir/ltmain.sh"
17872
17873
17874  # We use sed instead of cat because bash on DJGPP gets confused if
17875  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17876  # text mode, it properly converts lines to CR/LF.  This bash problem
17877  # is reportedly fixed, but why not run on old versions too?
17878  sed '$q' "$ltmain" >> "$cfgfile" \
17879     || (rm -f "$cfgfile"; exit 1)
17880
17881  if test x"$xsi_shell" = xyes; then
17882  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17883func_dirname ()\
17884{\
17885\    case ${1} in\
17886\      */*) func_dirname_result="${1%/*}${2}" ;;\
17887\      *  ) func_dirname_result="${3}" ;;\
17888\    esac\
17889} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17890  && mv -f "$cfgfile.tmp" "$cfgfile" \
17891    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17892test 0 -eq $? || _lt_function_replace_fail=:
17893
17894
17895  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17896func_basename ()\
17897{\
17898\    func_basename_result="${1##*/}"\
17899} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17900  && mv -f "$cfgfile.tmp" "$cfgfile" \
17901    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17902test 0 -eq $? || _lt_function_replace_fail=:
17903
17904
17905  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17906func_dirname_and_basename ()\
17907{\
17908\    case ${1} in\
17909\      */*) func_dirname_result="${1%/*}${2}" ;;\
17910\      *  ) func_dirname_result="${3}" ;;\
17911\    esac\
17912\    func_basename_result="${1##*/}"\
17913} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17914  && mv -f "$cfgfile.tmp" "$cfgfile" \
17915    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17916test 0 -eq $? || _lt_function_replace_fail=:
17917
17918
17919  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17920func_stripname ()\
17921{\
17922\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17923\    # positional parameters, so assign one to ordinary parameter first.\
17924\    func_stripname_result=${3}\
17925\    func_stripname_result=${func_stripname_result#"${1}"}\
17926\    func_stripname_result=${func_stripname_result%"${2}"}\
17927} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17928  && mv -f "$cfgfile.tmp" "$cfgfile" \
17929    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17930test 0 -eq $? || _lt_function_replace_fail=:
17931
17932
17933  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17934func_split_long_opt ()\
17935{\
17936\    func_split_long_opt_name=${1%%=*}\
17937\    func_split_long_opt_arg=${1#*=}\
17938} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17939  && mv -f "$cfgfile.tmp" "$cfgfile" \
17940    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17941test 0 -eq $? || _lt_function_replace_fail=:
17942
17943
17944  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17945func_split_short_opt ()\
17946{\
17947\    func_split_short_opt_arg=${1#??}\
17948\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17949} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17950  && mv -f "$cfgfile.tmp" "$cfgfile" \
17951    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17952test 0 -eq $? || _lt_function_replace_fail=:
17953
17954
17955  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17956func_lo2o ()\
17957{\
17958\    case ${1} in\
17959\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17960\      *)    func_lo2o_result=${1} ;;\
17961\    esac\
17962} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17963  && mv -f "$cfgfile.tmp" "$cfgfile" \
17964    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17965test 0 -eq $? || _lt_function_replace_fail=:
17966
17967
17968  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17969func_xform ()\
17970{\
17971    func_xform_result=${1%.*}.lo\
17972} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17973  && mv -f "$cfgfile.tmp" "$cfgfile" \
17974    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17975test 0 -eq $? || _lt_function_replace_fail=:
17976
17977
17978  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17979func_arith ()\
17980{\
17981    func_arith_result=$(( $* ))\
17982} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17983  && mv -f "$cfgfile.tmp" "$cfgfile" \
17984    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17985test 0 -eq $? || _lt_function_replace_fail=:
17986
17987
17988  sed -e '/^func_len ()$/,/^} # func_len /c\
17989func_len ()\
17990{\
17991    func_len_result=${#1}\
17992} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17993  && mv -f "$cfgfile.tmp" "$cfgfile" \
17994    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17995test 0 -eq $? || _lt_function_replace_fail=:
17996
17997fi
17998
17999if test x"$lt_shell_append" = xyes; then
18000  sed -e '/^func_append ()$/,/^} # func_append /c\
18001func_append ()\
18002{\
18003    eval "${1}+=\\${2}"\
18004} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18005  && mv -f "$cfgfile.tmp" "$cfgfile" \
18006    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18007test 0 -eq $? || _lt_function_replace_fail=:
18008
18009
18010  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18011func_append_quoted ()\
18012{\
18013\    func_quote_for_eval "${2}"\
18014\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18015} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18016  && mv -f "$cfgfile.tmp" "$cfgfile" \
18017    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18018test 0 -eq $? || _lt_function_replace_fail=:
18019
18020
18021  # Save a `func_append' function call where possible by direct use of '+='
18022  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18023    && mv -f "$cfgfile.tmp" "$cfgfile" \
18024      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18025  test 0 -eq $? || _lt_function_replace_fail=:
18026else
18027  # Save a `func_append' function call even when '+=' is not available
18028  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18029    && mv -f "$cfgfile.tmp" "$cfgfile" \
18030      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18031  test 0 -eq $? || _lt_function_replace_fail=:
18032fi
18033
18034if test x"$_lt_function_replace_fail" = x":"; then
18035  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18036$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18037fi
18038
18039
18040   mv -f "$cfgfile" "$ofile" ||
18041    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18042  chmod +x "$ofile"
18043
18044 ;;
18045
18046  esac
18047done # for ac_tag
18048
18049
18050as_fn_exit 0
18051_ACEOF
18052ac_clean_files=$ac_clean_files_save
18053
18054test $ac_write_fail = 0 ||
18055  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18056
18057
18058# configure is writing to config.log, and then calls config.status.
18059# config.status does its own redirection, appending to config.log.
18060# Unfortunately, on DOS this fails, as config.log is still kept open
18061# by configure, so config.status won't be able to write to it; its
18062# output is simply discarded.  So we exec the FD to /dev/null,
18063# effectively closing config.log, so it can be properly (re)opened and
18064# appended to by config.status.  When coming back to configure, we
18065# need to make the FD available again.
18066if test "$no_create" != yes; then
18067  ac_cs_success=:
18068  ac_config_status_args=
18069  test "$silent" = yes &&
18070    ac_config_status_args="$ac_config_status_args --quiet"
18071  exec 5>/dev/null
18072  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18073  exec 5>>config.log
18074  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18075  # would make configure fail if this is the last instruction.
18076  $ac_cs_success || as_fn_exit 1
18077fi
18078if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18079  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18080$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18081fi
18082
18083