1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Xnee 3.19.
4#
5# Report bugs to <bug-xnee@gnu.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-xnee@gnu.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='Xnee'
592PACKAGE_TARNAME='xnee'
593PACKAGE_VERSION='3.19'
594PACKAGE_STRING='Xnee 3.19'
595PACKAGE_BUGREPORT='bug-xnee@gnu.org'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638MAKEFILES_TO_GEN
639PANEL_LD_FLAGS
640PANEL_FLAGS
641PANEL_APPLET_DIR
642PANEL_SERVER_DIR
643XNEE_DOC_DIR
644CNEE_INFO
645FOO_DIR
646PIXMAP_DIR
647DOC_DIR
648LIB_DIR
649CLI_DIR
650GNOME_APPLET_DIR
651GUI_DIR
652DOC_TARGETS
653EPSTOPDF
654TEXI2PDF
655PS2PDF
656PDF2PS
657DVIPDF
658TEXI2HTML
659DIA
660WANTED_LIBXNEE
661libgnomeui_LIBS
662libgnomeui_CFLAGS
663gtk_LIBS
664gtk_CFLAGS
665MAINT
666MAINTAINER_MODE_FALSE
667MAINTAINER_MODE_TRUE
668X11_LIBS
669LIBSEMA
670LIBDL
671XNEE_XINPUT_SUPPORT_FALSE
672XNEE_XINPUT_SUPPORT_TRUE
673NOT_INSTALL_LIBS_FALSE
674NOT_INSTALL_LIBS_TRUE
675BUILD_STATIC_FALSE
676BUILD_STATIC_TRUE
677DOCONLY_FALSE
678DOCONLY_TRUE
679XOSD_FALSE
680XOSD_TRUE
681BUF_VERBOSE_FALSE
682BUF_VERBOSE_TRUE
683PEDANTIC_FALSE
684PEDANTIC_TRUE
685GPROF_FALSE
686GPROF_TRUE
687GCOV_FALSE
688GCOV_TRUE
689VERBOSE_FALSE
690VERBOSE_TRUE
691BUILDMAN_FALSE
692BUILDMAN_TRUE
693BUILDDOC_FALSE
694BUILDDOC_TRUE
695BUILDPNEE_FALSE
696BUILDPNEE_TRUE
697BUILDGUI_FALSE
698BUILDGUI_TRUE
699OTOOL64
700OTOOL
701LIPO
702NMEDIT
703DSYMUTIL
704MANIFEST_TOOL
705RANLIB
706ac_ct_AR
707AR
708DLLTOOL
709OBJDUMP
710LN_S
711NM
712ac_ct_DUMPBIN
713DUMPBIN
714LD
715FGREP
716SED
717host_os
718host_vendor
719host_cpu
720host
721build_os
722build_vendor
723build_cpu
724build
725LIBTOOL
726GTKCONF
727CONVERT
728PKGCFG
729BASH
730EGREP
731GREP
732X_EXTRA_LIBS
733X_LIBS
734X_PRE_LIBS
735X_CFLAGS
736CPP
737XMKMF
738am__fastdepCC_FALSE
739am__fastdepCC_TRUE
740CCDEPMODE
741am__nodep
742AMDEPBACKSLASH
743AMDEP_FALSE
744AMDEP_TRUE
745am__quote
746am__include
747DEPDIR
748OBJEXT
749EXEEXT
750ac_ct_CC
751CPPFLAGS
752LDFLAGS
753CFLAGS
754CC
755AM_BACKSLASH
756AM_DEFAULT_VERBOSITY
757AM_DEFAULT_V
758AM_V
759am__untar
760am__tar
761AMTAR
762am__leading_dot
763SET_MAKE
764AWK
765mkdir_p
766MKDIR_P
767INSTALL_STRIP_PROGRAM
768STRIP
769install_sh
770MAKEINFO
771AUTOHEADER
772AUTOMAKE
773AUTOCONF
774ACLOCAL
775VERSION
776PACKAGE
777CYGPATH_W
778am__isrc
779INSTALL_DATA
780INSTALL_SCRIPT
781INSTALL_PROGRAM
782target_alias
783host_alias
784build_alias
785LIBS
786ECHO_T
787ECHO_N
788ECHO_C
789DEFS
790mandir
791localedir
792libdir
793psdir
794pdfdir
795dvidir
796htmldir
797infodir
798docdir
799oldincludedir
800includedir
801localstatedir
802sharedstatedir
803sysconfdir
804datadir
805datarootdir
806libexecdir
807sbindir
808bindir
809program_transform_name
810prefix
811exec_prefix
812PACKAGE_URL
813PACKAGE_BUGREPORT
814PACKAGE_STRING
815PACKAGE_VERSION
816PACKAGE_TARNAME
817PACKAGE_NAME
818PATH_SEPARATOR
819SHELL'
820ac_subst_files=''
821ac_user_opts='
822enable_option_checking
823enable_silent_rules
824enable_dependency_tracking
825with_x
826enable_shared
827enable_static
828with_pic
829enable_fast_install
830with_gnu_ld
831with_sysroot
832enable_libtool_lock
833enable_gui
834enable_gnome_applet
835enable_doc
836enable_man
837enable_doconly
838enable_xinput2
839enable_cli
840enable_lib
841enable_static_programs
842enable_xosd
843enable_verbose
844enable_buffer_verbose
845enable_gcov
846enable_gprof
847enable_pedantic
848enable_paranoid_pedantic
849enable_maintainer_mode
850'
851      ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
859XMKMF
860CPP'
861
862
863# Initialize some variables set by options.
864ac_init_help=
865ac_init_version=false
866ac_unrecognized_opts=
867ac_unrecognized_sep=
868# The variables have the same names as the options, with
869# dashes changed to underlines.
870cache_file=/dev/null
871exec_prefix=NONE
872no_create=
873no_recursion=
874prefix=NONE
875program_prefix=NONE
876program_suffix=NONE
877program_transform_name=s,x,x,
878silent=
879site=
880srcdir=
881verbose=
882x_includes=NONE
883x_libraries=NONE
884
885# Installation directory options.
886# These are left unexpanded so users can "make install exec_prefix=/foo"
887# and all the variables that are supposed to be based on exec_prefix
888# by default will actually change.
889# Use braces instead of parens because sh, perl, etc. also accept them.
890# (The list follows the same order as the GNU Coding Standards.)
891bindir='${exec_prefix}/bin'
892sbindir='${exec_prefix}/sbin'
893libexecdir='${exec_prefix}/libexec'
894datarootdir='${prefix}/share'
895datadir='${datarootdir}'
896sysconfdir='${prefix}/etc'
897sharedstatedir='${prefix}/com'
898localstatedir='${prefix}/var'
899includedir='${prefix}/include'
900oldincludedir='/usr/include'
901docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
910
911ac_prev=
912ac_dashdash=
913for ac_option
914do
915  # If the previous option needs an argument, assign it.
916  if test -n "$ac_prev"; then
917    eval $ac_prev=\$ac_option
918    ac_prev=
919    continue
920  fi
921
922  case $ac_option in
923  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924  *=)   ac_optarg= ;;
925  *)    ac_optarg=yes ;;
926  esac
927
928  # Accept the important Cygnus configure options, so we can diagnose typos.
929
930  case $ac_dashdash$ac_option in
931  --)
932    ac_dashdash=yes ;;
933
934  -bindir | --bindir | --bindi | --bind | --bin | --bi)
935    ac_prev=bindir ;;
936  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937    bindir=$ac_optarg ;;
938
939  -build | --build | --buil | --bui | --bu)
940    ac_prev=build_alias ;;
941  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942    build_alias=$ac_optarg ;;
943
944  -cache-file | --cache-file | --cache-fil | --cache-fi \
945  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946    ac_prev=cache_file ;;
947  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949    cache_file=$ac_optarg ;;
950
951  --config-cache | -C)
952    cache_file=config.cache ;;
953
954  -datadir | --datadir | --datadi | --datad)
955    ac_prev=datadir ;;
956  -datadir=* | --datadir=* | --datadi=* | --datad=*)
957    datadir=$ac_optarg ;;
958
959  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960  | --dataroo | --dataro | --datar)
961    ac_prev=datarootdir ;;
962  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964    datarootdir=$ac_optarg ;;
965
966  -disable-* | --disable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: $ac_useropt"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=no ;;
981
982  -docdir | --docdir | --docdi | --doc | --do)
983    ac_prev=docdir ;;
984  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985    docdir=$ac_optarg ;;
986
987  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988    ac_prev=dvidir ;;
989  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990    dvidir=$ac_optarg ;;
991
992  -enable-* | --enable-*)
993    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994    # Reject names that are not valid shell variable names.
995    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996      as_fn_error $? "invalid feature name: $ac_useropt"
997    ac_useropt_orig=$ac_useropt
998    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999    case $ac_user_opts in
1000      *"
1001"enable_$ac_useropt"
1002"*) ;;
1003      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004	 ac_unrecognized_sep=', ';;
1005    esac
1006    eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010  | --exec | --exe | --ex)
1011    ac_prev=exec_prefix ;;
1012  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014  | --exec=* | --exe=* | --ex=*)
1015    exec_prefix=$ac_optarg ;;
1016
1017  -gas | --gas | --ga | --g)
1018    # Obsolete; use --with-gas.
1019    with_gas=yes ;;
1020
1021  -help | --help | --hel | --he | -h)
1022    ac_init_help=long ;;
1023  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024    ac_init_help=recursive ;;
1025  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026    ac_init_help=short ;;
1027
1028  -host | --host | --hos | --ho)
1029    ac_prev=host_alias ;;
1030  -host=* | --host=* | --hos=* | --ho=*)
1031    host_alias=$ac_optarg ;;
1032
1033  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034    ac_prev=htmldir ;;
1035  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036  | --ht=*)
1037    htmldir=$ac_optarg ;;
1038
1039  -includedir | --includedir | --includedi | --included | --include \
1040  | --includ | --inclu | --incl | --inc)
1041    ac_prev=includedir ;;
1042  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043  | --includ=* | --inclu=* | --incl=* | --inc=*)
1044    includedir=$ac_optarg ;;
1045
1046  -infodir | --infodir | --infodi | --infod | --info | --inf)
1047    ac_prev=infodir ;;
1048  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049    infodir=$ac_optarg ;;
1050
1051  -libdir | --libdir | --libdi | --libd)
1052    ac_prev=libdir ;;
1053  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054    libdir=$ac_optarg ;;
1055
1056  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057  | --libexe | --libex | --libe)
1058    ac_prev=libexecdir ;;
1059  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060  | --libexe=* | --libex=* | --libe=*)
1061    libexecdir=$ac_optarg ;;
1062
1063  -localedir | --localedir | --localedi | --localed | --locale)
1064    ac_prev=localedir ;;
1065  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066    localedir=$ac_optarg ;;
1067
1068  -localstatedir | --localstatedir | --localstatedi | --localstated \
1069  | --localstate | --localstat | --localsta | --localst | --locals)
1070    ac_prev=localstatedir ;;
1071  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073    localstatedir=$ac_optarg ;;
1074
1075  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076    ac_prev=mandir ;;
1077  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078    mandir=$ac_optarg ;;
1079
1080  -nfp | --nfp | --nf)
1081    # Obsolete; use --without-fp.
1082    with_fp=no ;;
1083
1084  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085  | --no-cr | --no-c | -n)
1086    no_create=yes ;;
1087
1088  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090    no_recursion=yes ;;
1091
1092  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094  | --oldin | --oldi | --old | --ol | --o)
1095    ac_prev=oldincludedir ;;
1096  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099    oldincludedir=$ac_optarg ;;
1100
1101  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102    ac_prev=prefix ;;
1103  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104    prefix=$ac_optarg ;;
1105
1106  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107  | --program-pre | --program-pr | --program-p)
1108    ac_prev=program_prefix ;;
1109  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111    program_prefix=$ac_optarg ;;
1112
1113  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114  | --program-suf | --program-su | --program-s)
1115    ac_prev=program_suffix ;;
1116  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118    program_suffix=$ac_optarg ;;
1119
1120  -program-transform-name | --program-transform-name \
1121  | --program-transform-nam | --program-transform-na \
1122  | --program-transform-n | --program-transform- \
1123  | --program-transform | --program-transfor \
1124  | --program-transfo | --program-transf \
1125  | --program-trans | --program-tran \
1126  | --progr-tra | --program-tr | --program-t)
1127    ac_prev=program_transform_name ;;
1128  -program-transform-name=* | --program-transform-name=* \
1129  | --program-transform-nam=* | --program-transform-na=* \
1130  | --program-transform-n=* | --program-transform-=* \
1131  | --program-transform=* | --program-transfor=* \
1132  | --program-transfo=* | --program-transf=* \
1133  | --program-trans=* | --program-tran=* \
1134  | --progr-tra=* | --program-tr=* | --program-t=*)
1135    program_transform_name=$ac_optarg ;;
1136
1137  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138    ac_prev=pdfdir ;;
1139  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140    pdfdir=$ac_optarg ;;
1141
1142  -psdir | --psdir | --psdi | --psd | --ps)
1143    ac_prev=psdir ;;
1144  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145    psdir=$ac_optarg ;;
1146
1147  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148  | -silent | --silent | --silen | --sile | --sil)
1149    silent=yes ;;
1150
1151  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152    ac_prev=sbindir ;;
1153  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154  | --sbi=* | --sb=*)
1155    sbindir=$ac_optarg ;;
1156
1157  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159  | --sharedst | --shareds | --shared | --share | --shar \
1160  | --sha | --sh)
1161    ac_prev=sharedstatedir ;;
1162  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165  | --sha=* | --sh=*)
1166    sharedstatedir=$ac_optarg ;;
1167
1168  -site | --site | --sit)
1169    ac_prev=site ;;
1170  -site=* | --site=* | --sit=*)
1171    site=$ac_optarg ;;
1172
1173  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174    ac_prev=srcdir ;;
1175  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176    srcdir=$ac_optarg ;;
1177
1178  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179  | --syscon | --sysco | --sysc | --sys | --sy)
1180    ac_prev=sysconfdir ;;
1181  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183    sysconfdir=$ac_optarg ;;
1184
1185  -target | --target | --targe | --targ | --tar | --ta | --t)
1186    ac_prev=target_alias ;;
1187  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188    target_alias=$ac_optarg ;;
1189
1190  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191    verbose=yes ;;
1192
1193  -version | --version | --versio | --versi | --vers | -V)
1194    ac_init_version=: ;;
1195
1196  -with-* | --with-*)
1197    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198    # Reject names that are not valid shell variable names.
1199    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200      as_fn_error $? "invalid package name: $ac_useropt"
1201    ac_useropt_orig=$ac_useropt
1202    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203    case $ac_user_opts in
1204      *"
1205"with_$ac_useropt"
1206"*) ;;
1207      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208	 ac_unrecognized_sep=', ';;
1209    esac
1210    eval with_$ac_useropt=\$ac_optarg ;;
1211
1212  -without-* | --without-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error $? "invalid package name: $ac_useropt"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"with_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval with_$ac_useropt=no ;;
1227
1228  --x)
1229    # Obsolete; use --with-x.
1230    with_x=yes ;;
1231
1232  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233  | --x-incl | --x-inc | --x-in | --x-i)
1234    ac_prev=x_includes ;;
1235  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237    x_includes=$ac_optarg ;;
1238
1239  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241    ac_prev=x_libraries ;;
1242  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244    x_libraries=$ac_optarg ;;
1245
1246  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247Try \`$0 --help' for more information"
1248    ;;
1249
1250  *=*)
1251    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252    # Reject names that are not valid shell variable names.
1253    case $ac_envvar in #(
1254      '' | [0-9]* | *[!_$as_cr_alnum]* )
1255      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256    esac
1257    eval $ac_envvar=\$ac_optarg
1258    export $ac_envvar ;;
1259
1260  *)
1261    # FIXME: should be removed in autoconf 3.0.
1262    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266    ;;
1267
1268  esac
1269done
1270
1271if test -n "$ac_prev"; then
1272  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273  as_fn_error $? "missing argument to $ac_option"
1274fi
1275
1276if test -n "$ac_unrecognized_opts"; then
1277  case $enable_option_checking in
1278    no) ;;
1279    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281  esac
1282fi
1283
1284# Check all directory arguments for consistency.
1285for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286		datadir sysconfdir sharedstatedir localstatedir includedir \
1287		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288		libdir localedir mandir
1289do
1290  eval ac_val=\$$ac_var
1291  # Remove trailing slashes.
1292  case $ac_val in
1293    */ )
1294      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295      eval $ac_var=\$ac_val;;
1296  esac
1297  # Be sure to have absolute directory names.
1298  case $ac_val in
1299    [\\/$]* | ?:[\\/]* )  continue;;
1300    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301  esac
1302  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303done
1304
1305# There might be people who depend on the old broken behavior: `$host'
1306# used to hold the argument of --host etc.
1307# FIXME: To remove some day.
1308build=$build_alias
1309host=$host_alias
1310target=$target_alias
1311
1312# FIXME: To remove some day.
1313if test "x$host_alias" != x; then
1314  if test "x$build_alias" = x; then
1315    cross_compiling=maybe
1316  elif test "x$build_alias" != "x$host_alias"; then
1317    cross_compiling=yes
1318  fi
1319fi
1320
1321ac_tool_prefix=
1322test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324test "$silent" = yes && exec 6>/dev/null
1325
1326
1327ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328ac_ls_di=`ls -di .` &&
1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330  as_fn_error $? "working directory cannot be determined"
1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332  as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335# Find the source files, if location was not specified.
1336if test -z "$srcdir"; then
1337  ac_srcdir_defaulted=yes
1338  # Try the directory containing this script, then the parent directory.
1339  ac_confdir=`$as_dirname -- "$as_myself" ||
1340$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341	 X"$as_myself" : 'X\(//\)[^/]' \| \
1342	 X"$as_myself" : 'X\(//\)$' \| \
1343	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344$as_echo X"$as_myself" |
1345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\/\)[^/].*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\/\)$/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\).*/{
1358	    s//\1/
1359	    q
1360	  }
1361	  s/.*/./; q'`
1362  srcdir=$ac_confdir
1363  if test ! -r "$srcdir/$ac_unique_file"; then
1364    srcdir=..
1365  fi
1366else
1367  ac_srcdir_defaulted=no
1368fi
1369if test ! -r "$srcdir/$ac_unique_file"; then
1370  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372fi
1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376	pwd)`
1377# When building in place, set srcdir=.
1378if test "$ac_abs_confdir" = "$ac_pwd"; then
1379  srcdir=.
1380fi
1381# Remove unnecessary trailing slashes from srcdir.
1382# Double slashes in file names in object file debugging info
1383# mess up M-x gdb in Emacs.
1384case $srcdir in
1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386esac
1387for ac_var in $ac_precious_vars; do
1388  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389  eval ac_env_${ac_var}_value=\$${ac_var}
1390  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392done
1393
1394#
1395# Report the --help message.
1396#
1397if test "$ac_init_help" = "long"; then
1398  # Omit some internal or obsolete options to make the list less imposing.
1399  # This message is too long to be a string in the A/UX 3.1 sh.
1400  cat <<_ACEOF
1401\`configure' configures Xnee 3.19 to adapt to many kinds of systems.
1402
1403Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406VAR=VALUE.  See below for descriptions of some of the useful variables.
1407
1408Defaults for the options are specified in brackets.
1409
1410Configuration:
1411  -h, --help              display this help and exit
1412      --help=short        display options specific to this package
1413      --help=recursive    display the short help of all the included packages
1414  -V, --version           display version information and exit
1415  -q, --quiet, --silent   do not print \`checking ...' messages
1416      --cache-file=FILE   cache test results in FILE [disabled]
1417  -C, --config-cache      alias for \`--cache-file=config.cache'
1418  -n, --no-create         do not create output files
1419      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1420
1421Installation directories:
1422  --prefix=PREFIX         install architecture-independent files in PREFIX
1423                          [$ac_default_prefix]
1424  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1425                          [PREFIX]
1426
1427By default, \`make install' will install all the files in
1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1429an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430for instance \`--prefix=\$HOME'.
1431
1432For better control, use the options below.
1433
1434Fine tuning of the installation directories:
1435  --bindir=DIR            user executables [EPREFIX/bin]
1436  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1437  --libexecdir=DIR        program executables [EPREFIX/libexec]
1438  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1439  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1440  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1441  --libdir=DIR            object code libraries [EPREFIX/lib]
1442  --includedir=DIR        C header files [PREFIX/include]
1443  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1444  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1445  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1446  --infodir=DIR           info documentation [DATAROOTDIR/info]
1447  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1448  --mandir=DIR            man documentation [DATAROOTDIR/man]
1449  --docdir=DIR            documentation root [DATAROOTDIR/doc/xnee]
1450  --htmldir=DIR           html documentation [DOCDIR]
1451  --dvidir=DIR            dvi documentation [DOCDIR]
1452  --pdfdir=DIR            pdf documentation [DOCDIR]
1453  --psdir=DIR             ps documentation [DOCDIR]
1454_ACEOF
1455
1456  cat <<\_ACEOF
1457
1458Program names:
1459  --program-prefix=PREFIX            prepend PREFIX to installed program names
1460  --program-suffix=SUFFIX            append SUFFIX to installed program names
1461  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1462
1463X features:
1464  --x-includes=DIR    X include files are in DIR
1465  --x-libraries=DIR   X library files are in DIR
1466
1467System types:
1468  --build=BUILD     configure for building on BUILD [guessed]
1469  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
1474  case $ac_init_help in
1475     short | recursive ) echo "Configuration of Xnee 3.19:";;
1476   esac
1477  cat <<\_ACEOF
1478
1479Optional Features:
1480  --disable-option-checking  ignore unrecognized --enable/--with options
1481  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1482  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1483  --enable-silent-rules   less verbose build output (undo: "make V=1")
1484  --disable-silent-rules  verbose build output (undo: "make V=0")
1485  --enable-dependency-tracking
1486                          do not reject slow dependency extractors
1487  --disable-dependency-tracking
1488                          speeds up one-time build
1489  --enable-shared[=PKGS]  build shared libraries [default=yes]
1490  --enable-static[=PKGS]  build static libraries [default=yes]
1491  --enable-fast-install[=PKGS]
1492                          optimize for fast installation [default=yes]
1493  --disable-libtool-lock  avoid locking (might break parallel builds)
1494  --enable-gui       build the GUI frontend to Xnee
1495  --enable-gnome-applet   build the Gnome Panel frontend to Xnee (obsoleted)
1496  --enable-doc       (re)build Xnee documentation
1497  --enable-man       (re)build Xnee man pages
1498  --enable-doconly       build Xnee documentation only
1499  --enable-xinput2       build Xnee with support for XInput2
1500  --enable-cli       build Xnee command line tool
1501  --enable-lib       install Xnee library (libxnee)
1502  --enable-static-programs     make the Xnee programs static (defaults to static)
1503  --enable-xosd       build Xnee with XOSD support
1504  --enable-verbose       build Xnee with no verbose mode support
1505  --enable-buffer_verbose  build xnee without support for buffer printouts
1506  --enable-gcov           build xnee with support for gcov
1507  --enable-gprof          build xnee with support for gprof
1508  --enable-pedantic          build xnee with support for pedantic compiling
1509  --enable-paranoid-pedantic          build xnee with support for paranoid pedantic compiling
1510  --enable-maintainer-mode
1511                          enable make rules and dependencies not useful (and
1512                          sometimes confusing) to the casual installer
1513
1514Optional Packages:
1515  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517  --with-x                use the X Window System
1518  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1519                          both]
1520  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521  --with-sysroot=DIR Search for dependent libraries within DIR
1522                        (or the compiler's sysroot if not specified).
1523
1524Some influential environment variables:
1525  CC          C compiler command
1526  CFLAGS      C compiler flags
1527  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1528              nonstandard directory <lib dir>
1529  LIBS        libraries to pass to the linker, e.g. -l<library>
1530  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531              you have headers in a nonstandard directory <include dir>
1532  XMKMF       Path to xmkmf, Makefile generator for X Window System
1533  CPP         C preprocessor
1534
1535Use these variables to override the choices made by `configure' or to help
1536it to find libraries and programs with nonstandard names/locations.
1537
1538Report bugs to <bug-xnee@gnu.org>.
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544  # If there are subdirs, report their specific --help.
1545  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546    test -d "$ac_dir" ||
1547      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548      continue
1549    ac_builddir=.
1550
1551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
1554  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555  # A ".." for each directory in $ac_dir_suffix.
1556  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557  case $ac_top_builddir_sub in
1558  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560  esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
1566
1567case $srcdir in
1568  .)  # We are building in place.
1569    ac_srcdir=.
1570    ac_top_srcdir=$ac_top_builddir_sub
1571    ac_abs_top_srcdir=$ac_pwd ;;
1572  [\\/]* | ?:[\\/]* )  # Absolute name.
1573    ac_srcdir=$srcdir$ac_dir_suffix;
1574    ac_top_srcdir=$srcdir
1575    ac_abs_top_srcdir=$srcdir ;;
1576  *) # Relative name.
1577    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578    ac_top_srcdir=$ac_top_build_prefix$srcdir
1579    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580esac
1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583    cd "$ac_dir" || { ac_status=$?; continue; }
1584    # Check for guested configure.
1585    if test -f "$ac_srcdir/configure.gnu"; then
1586      echo &&
1587      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588    elif test -f "$ac_srcdir/configure"; then
1589      echo &&
1590      $SHELL "$ac_srcdir/configure" --help=recursive
1591    else
1592      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593    fi || ac_status=$?
1594    cd "$ac_pwd" || { ac_status=$?; break; }
1595  done
1596fi
1597
1598test -n "$ac_init_help" && exit $ac_status
1599if $ac_init_version; then
1600  cat <<\_ACEOF
1601Xnee configure 3.19
1602generated by GNU Autoconf 2.69
1603
1604Copyright (C) 2012 Free Software Foundation, Inc.
1605This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it.
1607_ACEOF
1608  exit
1609fi
1610
1611## ------------------------ ##
1612## Autoconf initialization. ##
1613## ------------------------ ##
1614
1615# ac_fn_c_try_compile LINENO
1616# --------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_compile ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  rm -f conftest.$ac_objext
1622  if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_compile") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } && {
1638	 test -z "$ac_c_werror_flag" ||
1639	 test ! -s conftest.err
1640       } && test -s conftest.$ac_objext; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646	ac_retval=1
1647fi
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_c_try_compile
1652
1653# ac_fn_c_try_cpp LINENO
1654# ----------------------
1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_cpp ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if { { ac_try="$ac_cpp conftest.$ac_ext"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } > conftest.i && {
1675	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       }; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683    ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_cpp
1689
1690# ac_fn_c_try_link LINENO
1691# -----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_link ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  rm -f conftest.$ac_objext conftest$ac_exeext
1697  if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_link") 2>conftest.err
1705  ac_status=$?
1706  if test -s conftest.err; then
1707    grep -v '^ *+' conftest.err >conftest.er1
1708    cat conftest.er1 >&5
1709    mv -f conftest.er1 conftest.err
1710  fi
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } && {
1713	 test -z "$ac_c_werror_flag" ||
1714	 test ! -s conftest.err
1715       } && test -s conftest$ac_exeext && {
1716	 test "$cross_compiling" = yes ||
1717	 test -x conftest$ac_exeext
1718       }; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724	ac_retval=1
1725fi
1726  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728  # interfere with the next link command; also delete a directory that is
1729  # left behind by Apple's compiler.  We do this before executing the actions.
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_link
1735
1736# ac_fn_c_check_func LINENO FUNC VAR
1737# ----------------------------------
1738# Tests whether FUNC exists, setting the cache variable VAR accordingly
1739ac_fn_c_check_func ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if eval \${$3+:} false; then :
1745  $as_echo_n "(cached) " >&6
1746else
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1751#define $2 innocuous_$2
1752
1753/* System header to define __stub macros and hopefully few prototypes,
1754    which can conflict with char $2 (); below.
1755    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756    <limits.h> exists even on freestanding compilers.  */
1757
1758#ifdef __STDC__
1759# include <limits.h>
1760#else
1761# include <assert.h>
1762#endif
1763
1764#undef $2
1765
1766/* Override any GCC internal prototype to avoid an error.
1767   Use char because int might match the return type of a GCC
1768   builtin and then its argument prototype would still apply.  */
1769#ifdef __cplusplus
1770extern "C"
1771#endif
1772char $2 ();
1773/* The GNU C library defines this for functions which it implements
1774    to always fail with ENOSYS.  Some functions are actually named
1775    something starting with __ and the normal name is an alias.  */
1776#if defined __stub_$2 || defined __stub___$2
1777choke me
1778#endif
1779
1780int
1781main ()
1782{
1783return $2 ();
1784  ;
1785  return 0;
1786}
1787_ACEOF
1788if ac_fn_c_try_link "$LINENO"; then :
1789  eval "$3=yes"
1790else
1791  eval "$3=no"
1792fi
1793rm -f core conftest.err conftest.$ac_objext \
1794    conftest$ac_exeext conftest.$ac_ext
1795fi
1796eval ac_res=\$$3
1797	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801} # ac_fn_c_check_func
1802
1803# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1804# -------------------------------------------------------
1805# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1806# the include files in INCLUDES and setting the cache variable VAR
1807# accordingly.
1808ac_fn_c_check_header_mongrel ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  if eval \${$3+:} false; then :
1812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813$as_echo_n "checking for $2... " >&6; }
1814if eval \${$3+:} false; then :
1815  $as_echo_n "(cached) " >&6
1816fi
1817eval ac_res=\$$3
1818	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819$as_echo "$ac_res" >&6; }
1820else
1821  # Is the header compilable?
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1823$as_echo_n "checking $2 usability... " >&6; }
1824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826$4
1827#include <$2>
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"; then :
1830  ac_header_compiler=yes
1831else
1832  ac_header_compiler=no
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1836$as_echo "$ac_header_compiler" >&6; }
1837
1838# Is the header present?
1839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1840$as_echo_n "checking $2 presence... " >&6; }
1841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h.  */
1843#include <$2>
1844_ACEOF
1845if ac_fn_c_try_cpp "$LINENO"; then :
1846  ac_header_preproc=yes
1847else
1848  ac_header_preproc=no
1849fi
1850rm -f conftest.err conftest.i conftest.$ac_ext
1851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1852$as_echo "$ac_header_preproc" >&6; }
1853
1854# So?  What about this header?
1855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1856  yes:no: )
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1858$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861    ;;
1862  no:yes:* )
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1864$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1866$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1868$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1870$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873( $as_echo "## ------------------------------- ##
1874## Report this to bug-xnee@gnu.org ##
1875## ------------------------------- ##"
1876     ) | sed "s/^/$as_me: WARNING:     /" >&2
1877    ;;
1878esac
1879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if eval \${$3+:} false; then :
1882  $as_echo_n "(cached) " >&6
1883else
1884  eval "$3=\$ac_header_compiler"
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889fi
1890  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892} # ac_fn_c_check_header_mongrel
1893
1894# ac_fn_c_try_run LINENO
1895# ----------------------
1896# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1897# that executables *can* be run.
1898ac_fn_c_try_run ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  if { { ac_try="$ac_link"
1902case "(($ac_try" in
1903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904  *) ac_try_echo=$ac_try;;
1905esac
1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907$as_echo "$ac_try_echo"; } >&5
1908  (eval "$ac_link") 2>&5
1909  ac_status=$?
1910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1912  { { case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918  (eval "$ac_try") 2>&5
1919  ac_status=$?
1920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921  test $ac_status = 0; }; }; then :
1922  ac_retval=0
1923else
1924  $as_echo "$as_me: program exited with status $ac_status" >&5
1925       $as_echo "$as_me: failed program was:" >&5
1926sed 's/^/| /' conftest.$ac_ext >&5
1927
1928       ac_retval=$ac_status
1929fi
1930  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_c_try_run
1935
1936# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1937# -------------------------------------------------------
1938# Tests whether HEADER exists and can be compiled using the include files in
1939# INCLUDES, setting the cache variable VAR accordingly.
1940ac_fn_c_check_header_compile ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950$4
1951#include <$2>
1952_ACEOF
1953if ac_fn_c_try_compile "$LINENO"; then :
1954  eval "$3=yes"
1955else
1956  eval "$3=no"
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965} # ac_fn_c_check_header_compile
1966cat >config.log <<_ACEOF
1967This file contains any messages produced by compilers while
1968running configure, to aid debugging if configure makes a mistake.
1969
1970It was created by Xnee $as_me 3.19, which was
1971generated by GNU Autoconf 2.69.  Invocation command line was
1972
1973  $ $0 $@
1974
1975_ACEOF
1976exec 5>>config.log
1977{
1978cat <<_ASUNAME
1979## --------- ##
1980## Platform. ##
1981## --------- ##
1982
1983hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988
1989/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1991
1992/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1993/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1994/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1996/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1997/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1998/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1999
2000_ASUNAME
2001
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005  IFS=$as_save_IFS
2006  test -z "$as_dir" && as_dir=.
2007    $as_echo "PATH: $as_dir"
2008  done
2009IFS=$as_save_IFS
2010
2011} >&5
2012
2013cat >&5 <<_ACEOF
2014
2015
2016## ----------- ##
2017## Core tests. ##
2018## ----------- ##
2019
2020_ACEOF
2021
2022
2023# Keep a trace of the command line.
2024# Strip out --no-create and --no-recursion so they do not pile up.
2025# Strip out --silent because we don't want to record it for future runs.
2026# Also quote any args containing shell meta-characters.
2027# Make two passes to allow for proper duplicate-argument suppression.
2028ac_configure_args=
2029ac_configure_args0=
2030ac_configure_args1=
2031ac_must_keep_next=false
2032for ac_pass in 1 2
2033do
2034  for ac_arg
2035  do
2036    case $ac_arg in
2037    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2038    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2039    | -silent | --silent | --silen | --sile | --sil)
2040      continue ;;
2041    *\'*)
2042      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2043    esac
2044    case $ac_pass in
2045    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2046    2)
2047      as_fn_append ac_configure_args1 " '$ac_arg'"
2048      if test $ac_must_keep_next = true; then
2049	ac_must_keep_next=false # Got value, back to normal.
2050      else
2051	case $ac_arg in
2052	  *=* | --config-cache | -C | -disable-* | --disable-* \
2053	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2054	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2055	  | -with-* | --with-* | -without-* | --without-* | --x)
2056	    case "$ac_configure_args0 " in
2057	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2058	    esac
2059	    ;;
2060	  -* ) ac_must_keep_next=true ;;
2061	esac
2062      fi
2063      as_fn_append ac_configure_args " '$ac_arg'"
2064      ;;
2065    esac
2066  done
2067done
2068{ ac_configure_args0=; unset ac_configure_args0;}
2069{ ac_configure_args1=; unset ac_configure_args1;}
2070
2071# When interrupted or exit'd, cleanup temporary files, and complete
2072# config.log.  We remove comments because anyway the quotes in there
2073# would cause problems or look ugly.
2074# WARNING: Use '\'' to represent an apostrophe within the trap.
2075# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076trap 'exit_status=$?
2077  # Save into config.log some information that might help in debugging.
2078  {
2079    echo
2080
2081    $as_echo "## ---------------- ##
2082## Cache variables. ##
2083## ---------------- ##"
2084    echo
2085    # The following way of writing the cache mishandles newlines in values,
2086(
2087  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2088    eval ac_val=\$$ac_var
2089    case $ac_val in #(
2090    *${as_nl}*)
2091      case $ac_var in #(
2092      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2093$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2094      esac
2095      case $ac_var in #(
2096      _ | IFS | as_nl) ;; #(
2097      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2098      *) { eval $ac_var=; unset $ac_var;} ;;
2099      esac ;;
2100    esac
2101  done
2102  (set) 2>&1 |
2103    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2104    *${as_nl}ac_space=\ *)
2105      sed -n \
2106	"s/'\''/'\''\\\\'\'''\''/g;
2107	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2108      ;; #(
2109    *)
2110      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2111      ;;
2112    esac |
2113    sort
2114)
2115    echo
2116
2117    $as_echo "## ----------------- ##
2118## Output variables. ##
2119## ----------------- ##"
2120    echo
2121    for ac_var in $ac_subst_vars
2122    do
2123      eval ac_val=\$$ac_var
2124      case $ac_val in
2125      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126      esac
2127      $as_echo "$ac_var='\''$ac_val'\''"
2128    done | sort
2129    echo
2130
2131    if test -n "$ac_subst_files"; then
2132      $as_echo "## ------------------- ##
2133## File substitutions. ##
2134## ------------------- ##"
2135      echo
2136      for ac_var in $ac_subst_files
2137      do
2138	eval ac_val=\$$ac_var
2139	case $ac_val in
2140	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141	esac
2142	$as_echo "$ac_var='\''$ac_val'\''"
2143      done | sort
2144      echo
2145    fi
2146
2147    if test -s confdefs.h; then
2148      $as_echo "## ----------- ##
2149## confdefs.h. ##
2150## ----------- ##"
2151      echo
2152      cat confdefs.h
2153      echo
2154    fi
2155    test "$ac_signal" != 0 &&
2156      $as_echo "$as_me: caught signal $ac_signal"
2157    $as_echo "$as_me: exit $exit_status"
2158  } >&5
2159  rm -f core *.core core.conftest.* &&
2160    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2161    exit $exit_status
2162' 0
2163for ac_signal in 1 2 13 15; do
2164  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2165done
2166ac_signal=0
2167
2168# confdefs.h avoids OS command line length limits that DEFS can exceed.
2169rm -f -r conftest* confdefs.h
2170
2171$as_echo "/* confdefs.h */" > confdefs.h
2172
2173# Predefined preprocessor variables.
2174
2175cat >>confdefs.h <<_ACEOF
2176#define PACKAGE_NAME "$PACKAGE_NAME"
2177_ACEOF
2178
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2181_ACEOF
2182
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_VERSION "$PACKAGE_VERSION"
2185_ACEOF
2186
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_STRING "$PACKAGE_STRING"
2189_ACEOF
2190
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2193_ACEOF
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_URL "$PACKAGE_URL"
2197_ACEOF
2198
2199
2200# Let the site file select an alternate cache file if it wants to.
2201# Prefer an explicitly selected file to automatically selected ones.
2202ac_site_file1=NONE
2203ac_site_file2=NONE
2204if test -n "$CONFIG_SITE"; then
2205  # We do not want a PATH search for config.site.
2206  case $CONFIG_SITE in #((
2207    -*)  ac_site_file1=./$CONFIG_SITE;;
2208    */*) ac_site_file1=$CONFIG_SITE;;
2209    *)   ac_site_file1=./$CONFIG_SITE;;
2210  esac
2211elif test "x$prefix" != xNONE; then
2212  ac_site_file1=$prefix/share/config.site
2213  ac_site_file2=$prefix/etc/config.site
2214else
2215  ac_site_file1=$ac_default_prefix/share/config.site
2216  ac_site_file2=$ac_default_prefix/etc/config.site
2217fi
2218for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219do
2220  test "x$ac_site_file" = xNONE && continue
2221  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2222    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224    sed 's/^/| /' "$ac_site_file" >&5
2225    . "$ac_site_file" \
2226      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228as_fn_error $? "failed to load site script $ac_site_file
2229See \`config.log' for more details" "$LINENO" 5; }
2230  fi
2231done
2232
2233if test -r "$cache_file"; then
2234  # Some versions of bash will fail to source /dev/null (special files
2235  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2236  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2237    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238$as_echo "$as_me: loading cache $cache_file" >&6;}
2239    case $cache_file in
2240      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241      *)                      . "./$cache_file";;
2242    esac
2243  fi
2244else
2245  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246$as_echo "$as_me: creating cache $cache_file" >&6;}
2247  >$cache_file
2248fi
2249
2250# Check that the precious variables saved in the cache have kept the same
2251# value.
2252ac_cache_corrupted=false
2253for ac_var in $ac_precious_vars; do
2254  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255  eval ac_new_set=\$ac_env_${ac_var}_set
2256  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257  eval ac_new_val=\$ac_env_${ac_var}_value
2258  case $ac_old_set,$ac_new_set in
2259    set,)
2260      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262      ac_cache_corrupted=: ;;
2263    ,set)
2264      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266      ac_cache_corrupted=: ;;
2267    ,);;
2268    *)
2269      if test "x$ac_old_val" != "x$ac_new_val"; then
2270	# differences in whitespace do not lead to failure.
2271	ac_old_val_w=`echo x $ac_old_val`
2272	ac_new_val_w=`echo x $ac_new_val`
2273	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276	  ac_cache_corrupted=:
2277	else
2278	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280	  eval $ac_var=\$ac_old_val
2281	fi
2282	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2283$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2284	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2285$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2286      fi;;
2287  esac
2288  # Pass precious variables to config.status.
2289  if test "$ac_new_set" = set; then
2290    case $ac_new_val in
2291    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292    *) ac_arg=$ac_var=$ac_new_val ;;
2293    esac
2294    case " $ac_configure_args " in
2295      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2296      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297    esac
2298  fi
2299done
2300if $ac_cache_corrupted; then
2301  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2306fi
2307## -------------------- ##
2308## Main body of script. ##
2309## -------------------- ##
2310
2311ac_ext=c
2312ac_cpp='$CPP $CPPFLAGS'
2313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316
2317
2318ac_aux_dir=
2319for ac_dir in ./autotools/ "$srcdir"/./autotools/; do
2320  if test -f "$ac_dir/install-sh"; then
2321    ac_aux_dir=$ac_dir
2322    ac_install_sh="$ac_aux_dir/install-sh -c"
2323    break
2324  elif test -f "$ac_dir/install.sh"; then
2325    ac_aux_dir=$ac_dir
2326    ac_install_sh="$ac_aux_dir/install.sh -c"
2327    break
2328  elif test -f "$ac_dir/shtool"; then
2329    ac_aux_dir=$ac_dir
2330    ac_install_sh="$ac_aux_dir/shtool install -c"
2331    break
2332  fi
2333done
2334if test -z "$ac_aux_dir"; then
2335  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./autotools/ \"$srcdir\"/./autotools/" "$LINENO" 5
2336fi
2337
2338# These three variables are undocumented and unsupported,
2339# and are intended to be withdrawn in a future Autoconf release.
2340# They can cause serious problems if a builder's source tree is in a directory
2341# whose full name contains unusual characters.
2342ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2343ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2344ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2345
2346
2347am__api_version='1.14'
2348
2349# Find a good install program.  We prefer a C program (faster),
2350# so one script is as good as another.  But avoid the broken or
2351# incompatible versions:
2352# SysV /etc/install, /usr/sbin/install
2353# SunOS /usr/etc/install
2354# IRIX /sbin/install
2355# AIX /bin/install
2356# AmigaOS /C/install, which installs bootblocks on floppy discs
2357# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2358# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2359# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2360# OS/2's system install, which has a completely different semantic
2361# ./install, which can be erroneously created by make from ./install.sh.
2362# Reject install programs that cannot install multiple files.
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2364$as_echo_n "checking for a BSD-compatible install... " >&6; }
2365if test -z "$INSTALL"; then
2366if ${ac_cv_path_install+:} false; then :
2367  $as_echo_n "(cached) " >&6
2368else
2369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372  IFS=$as_save_IFS
2373  test -z "$as_dir" && as_dir=.
2374    # Account for people who put trailing slashes in PATH elements.
2375case $as_dir/ in #((
2376  ./ | .// | /[cC]/* | \
2377  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2378  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2379  /usr/ucb/* ) ;;
2380  *)
2381    # OSF1 and SCO ODT 3.0 have their own names for install.
2382    # Don't use installbsd from OSF since it installs stuff as root
2383    # by default.
2384    for ac_prog in ginstall scoinst install; do
2385      for ac_exec_ext in '' $ac_executable_extensions; do
2386	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2387	  if test $ac_prog = install &&
2388	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389	    # AIX install.  It has an incompatible calling convention.
2390	    :
2391	  elif test $ac_prog = install &&
2392	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393	    # program-specific install script used by HP pwplus--don't use.
2394	    :
2395	  else
2396	    rm -rf conftest.one conftest.two conftest.dir
2397	    echo one > conftest.one
2398	    echo two > conftest.two
2399	    mkdir conftest.dir
2400	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2401	      test -s conftest.one && test -s conftest.two &&
2402	      test -s conftest.dir/conftest.one &&
2403	      test -s conftest.dir/conftest.two
2404	    then
2405	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2406	      break 3
2407	    fi
2408	  fi
2409	fi
2410      done
2411    done
2412    ;;
2413esac
2414
2415  done
2416IFS=$as_save_IFS
2417
2418rm -rf conftest.one conftest.two conftest.dir
2419
2420fi
2421  if test "${ac_cv_path_install+set}" = set; then
2422    INSTALL=$ac_cv_path_install
2423  else
2424    # As a last resort, use the slow shell script.  Don't cache a
2425    # value for INSTALL within a source directory, because that will
2426    # break other packages using the cache if that directory is
2427    # removed, or if the value is a relative name.
2428    INSTALL=$ac_install_sh
2429  fi
2430fi
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2432$as_echo "$INSTALL" >&6; }
2433
2434# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2435# It thinks the first close brace ends the variable substitution.
2436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2437
2438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2439
2440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2441
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2443$as_echo_n "checking whether build environment is sane... " >&6; }
2444# Reject unsafe characters in $srcdir or the absolute working directory
2445# name.  Accept space and tab only in the latter.
2446am_lf='
2447'
2448case `pwd` in
2449  *[\\\"\#\$\&\'\`$am_lf]*)
2450    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2451esac
2452case $srcdir in
2453  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2454    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2455esac
2456
2457# Do 'set' in a subshell so we don't clobber the current shell's
2458# arguments.  Must try -L first in case configure is actually a
2459# symlink; some systems play weird games with the mod time of symlinks
2460# (eg FreeBSD returns the mod time of the symlink's containing
2461# directory).
2462if (
2463   am_has_slept=no
2464   for am_try in 1 2; do
2465     echo "timestamp, slept: $am_has_slept" > conftest.file
2466     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2467     if test "$*" = "X"; then
2468	# -L didn't work.
2469	set X `ls -t "$srcdir/configure" conftest.file`
2470     fi
2471     if test "$*" != "X $srcdir/configure conftest.file" \
2472	&& test "$*" != "X conftest.file $srcdir/configure"; then
2473
2474	# If neither matched, then we have a broken ls.  This can happen
2475	# if, for instance, CONFIG_SHELL is bash and it inherits a
2476	# broken ls alias from the environment.  This has actually
2477	# happened.  Such a system could not be considered "sane".
2478	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2479  alias in your environment" "$LINENO" 5
2480     fi
2481     if test "$2" = conftest.file || test $am_try -eq 2; then
2482       break
2483     fi
2484     # Just in case.
2485     sleep 1
2486     am_has_slept=yes
2487   done
2488   test "$2" = conftest.file
2489   )
2490then
2491   # Ok.
2492   :
2493else
2494   as_fn_error $? "newly created file is older than distributed files!
2495Check your system clock" "$LINENO" 5
2496fi
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2498$as_echo "yes" >&6; }
2499# If we didn't sleep, we still need to ensure time stamps of config.status and
2500# generated files are strictly newer.
2501am_sleep_pid=
2502if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2503  ( sleep 1 ) &
2504  am_sleep_pid=$!
2505fi
2506
2507rm -f conftest.file
2508
2509test "$program_prefix" != NONE &&
2510  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511# Use a double $ so make ignores it.
2512test "$program_suffix" != NONE &&
2513  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514# Double any \ or $.
2515# By default was `s,x,x', remove it if useless.
2516ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518
2519# expand $ac_aux_dir to an absolute path
2520am_aux_dir=`cd $ac_aux_dir && pwd`
2521
2522if test x"${MISSING+set}" != xset; then
2523  case $am_aux_dir in
2524  *\ * | *\	*)
2525    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2526  *)
2527    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2528  esac
2529fi
2530# Use eval to expand $SHELL
2531if eval "$MISSING --is-lightweight"; then
2532  am_missing_run="$MISSING "
2533else
2534  am_missing_run=
2535  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2536$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2537fi
2538
2539if test x"${install_sh}" != xset; then
2540  case $am_aux_dir in
2541  *\ * | *\	*)
2542    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2543  *)
2544    install_sh="\${SHELL} $am_aux_dir/install-sh"
2545  esac
2546fi
2547
2548# Installed binaries are usually stripped using 'strip' when the user
2549# run "make install-strip".  However 'strip' might not be the right
2550# tool to use in cross-compilation environments, therefore Automake
2551# will honor the 'STRIP' environment variable to overrule this program.
2552if test "$cross_compiling" != no; then
2553  if test -n "$ac_tool_prefix"; then
2554  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555set dummy ${ac_tool_prefix}strip; ac_word=$2
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if ${ac_cv_prog_STRIP+:} false; then :
2559  $as_echo_n "(cached) " >&6
2560else
2561  if test -n "$STRIP"; then
2562  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_exec_ext in '' $ac_executable_extensions; do
2570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573    break 2
2574  fi
2575done
2576  done
2577IFS=$as_save_IFS
2578
2579fi
2580fi
2581STRIP=$ac_cv_prog_STRIP
2582if test -n "$STRIP"; then
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2584$as_echo "$STRIP" >&6; }
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588fi
2589
2590
2591fi
2592if test -z "$ac_cv_prog_STRIP"; then
2593  ac_ct_STRIP=$STRIP
2594  # Extract the first word of "strip", so it can be a program name with args.
2595set dummy strip; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  if test -n "$ac_ct_STRIP"; then
2602  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609    for ac_exec_ext in '' $ac_executable_extensions; do
2610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_ac_ct_STRIP="strip"
2612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616  done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622if test -n "$ac_ct_STRIP"; then
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2624$as_echo "$ac_ct_STRIP" >&6; }
2625else
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
2628fi
2629
2630  if test "x$ac_ct_STRIP" = x; then
2631    STRIP=":"
2632  else
2633    case $cross_compiling:$ac_tool_warned in
2634yes:)
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637ac_tool_warned=yes ;;
2638esac
2639    STRIP=$ac_ct_STRIP
2640  fi
2641else
2642  STRIP="$ac_cv_prog_STRIP"
2643fi
2644
2645fi
2646INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2647
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650if test -z "$MKDIR_P"; then
2651  if ${ac_cv_path_mkdir+:} false; then :
2652  $as_echo_n "(cached) " >&6
2653else
2654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656do
2657  IFS=$as_save_IFS
2658  test -z "$as_dir" && as_dir=.
2659    for ac_prog in mkdir gmkdir; do
2660	 for ac_exec_ext in '' $ac_executable_extensions; do
2661	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2662	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663	     'mkdir (GNU coreutils) '* | \
2664	     'mkdir (coreutils) '* | \
2665	     'mkdir (fileutils) '4.1*)
2666	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2667	       break 3;;
2668	   esac
2669	 done
2670       done
2671  done
2672IFS=$as_save_IFS
2673
2674fi
2675
2676  test -d ./--version && rmdir ./--version
2677  if test "${ac_cv_path_mkdir+set}" = set; then
2678    MKDIR_P="$ac_cv_path_mkdir -p"
2679  else
2680    # As a last resort, use the slow shell script.  Don't cache a
2681    # value for MKDIR_P within a source directory, because that will
2682    # break other packages using the cache if that directory is
2683    # removed, or if the value is a relative name.
2684    MKDIR_P="$ac_install_sh -d"
2685  fi
2686fi
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688$as_echo "$MKDIR_P" >&6; }
2689
2690for ac_prog in gawk mawk nawk awk
2691do
2692  # Extract the first word of "$ac_prog", so it can be a program name with args.
2693set dummy $ac_prog; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if ${ac_cv_prog_AWK+:} false; then :
2697  $as_echo_n "(cached) " >&6
2698else
2699  if test -n "$AWK"; then
2700  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707    for ac_exec_ext in '' $ac_executable_extensions; do
2708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709    ac_cv_prog_AWK="$ac_prog"
2710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714  done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719AWK=$ac_cv_prog_AWK
2720if test -n "$AWK"; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722$as_echo "$AWK" >&6; }
2723else
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2727
2728
2729  test -n "$AWK" && break
2730done
2731
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2733$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2734set x ${MAKE-make}
2735ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2736if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  cat >conftest.make <<\_ACEOF
2740SHELL = /bin/sh
2741all:
2742	@echo '@@@%%%=$(MAKE)=@@@%%%'
2743_ACEOF
2744# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2745case `${MAKE-make} -f conftest.make 2>/dev/null` in
2746  *@@@%%%=?*=@@@%%%*)
2747    eval ac_cv_prog_make_${ac_make}_set=yes;;
2748  *)
2749    eval ac_cv_prog_make_${ac_make}_set=no;;
2750esac
2751rm -f conftest.make
2752fi
2753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755$as_echo "yes" >&6; }
2756  SET_MAKE=
2757else
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760  SET_MAKE="MAKE=${MAKE-make}"
2761fi
2762
2763rm -rf .tst 2>/dev/null
2764mkdir .tst 2>/dev/null
2765if test -d .tst; then
2766  am__leading_dot=.
2767else
2768  am__leading_dot=_
2769fi
2770rmdir .tst 2>/dev/null
2771
2772# Check whether --enable-silent-rules was given.
2773if test "${enable_silent_rules+set}" = set; then :
2774  enableval=$enable_silent_rules;
2775fi
2776
2777case $enable_silent_rules in # (((
2778  yes) AM_DEFAULT_VERBOSITY=0;;
2779   no) AM_DEFAULT_VERBOSITY=1;;
2780    *) AM_DEFAULT_VERBOSITY=1;;
2781esac
2782am_make=${MAKE-make}
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2784$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2785if ${am_cv_make_support_nested_variables+:} false; then :
2786  $as_echo_n "(cached) " >&6
2787else
2788  if $as_echo 'TRUE=$(BAR$(V))
2789BAR0=false
2790BAR1=true
2791V=1
2792am__doit:
2793	@$(TRUE)
2794.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2795  am_cv_make_support_nested_variables=yes
2796else
2797  am_cv_make_support_nested_variables=no
2798fi
2799fi
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2801$as_echo "$am_cv_make_support_nested_variables" >&6; }
2802if test $am_cv_make_support_nested_variables = yes; then
2803    AM_V='$(V)'
2804  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2805else
2806  AM_V=$AM_DEFAULT_VERBOSITY
2807  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2808fi
2809AM_BACKSLASH='\'
2810
2811if test "`cd $srcdir && pwd`" != "`pwd`"; then
2812  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2813  # is not polluted with repeated "-I."
2814  am__isrc=' -I$(srcdir)'
2815  # test to see if srcdir already configured
2816  if test -f $srcdir/config.status; then
2817    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2818  fi
2819fi
2820
2821# test whether we have cygpath
2822if test -z "$CYGPATH_W"; then
2823  if (cygpath --version) >/dev/null 2>/dev/null; then
2824    CYGPATH_W='cygpath -w'
2825  else
2826    CYGPATH_W=echo
2827  fi
2828fi
2829
2830
2831# Define the identity of the package.
2832 PACKAGE='xnee'
2833 VERSION='3.19'
2834
2835
2836cat >>confdefs.h <<_ACEOF
2837#define PACKAGE "$PACKAGE"
2838_ACEOF
2839
2840
2841cat >>confdefs.h <<_ACEOF
2842#define VERSION "$VERSION"
2843_ACEOF
2844
2845# Some tools Automake needs.
2846
2847ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2848
2849
2850AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2851
2852
2853AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2854
2855
2856AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2857
2858
2859MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2860
2861# For better backward compatibility.  To be removed once Automake 1.9.x
2862# dies out for good.  For more background, see:
2863# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2864# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2865mkdir_p='$(MKDIR_P)'
2866
2867# We need awk for the "check" target.  The system "awk" is bad on
2868# some platforms.
2869# Always define AMTAR for backward compatibility.  Yes, it's still used
2870# in the wild :-(  We should find a proper way to deprecate it ...
2871AMTAR='$${TAR-tar}'
2872
2873
2874# We'll loop over all known methods to create a tar archive until one works.
2875_am_tools='gnutar  pax cpio none'
2876
2877am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2878
2879
2880
2881
2882
2883
2884# POSIX will say in a future version that running "rm -f" with no argument
2885# is OK; and we want to be able to make that assumption in our Makefile
2886# recipes.  So use an aggressive probe to check that the usage we want is
2887# actually supported "in the wild" to an acceptable degree.
2888# See automake bug#10828.
2889# To make any issue more visible, cause the running configure to be aborted
2890# by default if the 'rm' program in use doesn't match our expectations; the
2891# user can still override this though.
2892if rm -f && rm -fr && rm -rf; then : OK; else
2893  cat >&2 <<'END'
2894Oops!
2895
2896Your 'rm' program seems unable to run without file operands specified
2897on the command line, even when the '-f' option is present.  This is contrary
2898to the behaviour of most rm programs out there, and not conforming with
2899the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2900
2901Please tell bug-automake@gnu.org about your system, including the value
2902of your $PATH and any error possibly output before this message.  This
2903can help us improve future automake versions.
2904
2905END
2906  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2907    echo 'Configuration will proceed anyway, since you have set the' >&2
2908    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2909    echo >&2
2910  else
2911    cat >&2 <<'END'
2912Aborting the configuration process, to ensure you take notice of the issue.
2913
2914You can download and install GNU coreutils to get an 'rm' implementation
2915that behaves properly: <http://www.gnu.org/software/coreutils/>.
2916
2917If you want to complete the configuration process using your problematic
2918'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2919to "yes", and re-run configure.
2920
2921END
2922    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2923  fi
2924fi
2925#AB_INIT
2926
2927
2928
2929ac_ext=c
2930ac_cpp='$CPP $CPPFLAGS'
2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934if test -n "$ac_tool_prefix"; then
2935  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2936set dummy ${ac_tool_prefix}gcc; ac_word=$2
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if ${ac_cv_prog_CC+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  if test -n "$CC"; then
2943  ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954    break 2
2955  fi
2956done
2957  done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962CC=$ac_cv_prog_CC
2963if test -n "$CC"; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965$as_echo "$CC" >&6; }
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972fi
2973if test -z "$ac_cv_prog_CC"; then
2974  ac_ct_CC=$CC
2975  # Extract the first word of "gcc", so it can be a program name with args.
2976set dummy gcc; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if ${ac_cv_prog_ac_ct_CC+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$ac_ct_CC"; then
2983  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  test -z "$as_dir" && as_dir=.
2990    for ac_exec_ext in '' $ac_executable_extensions; do
2991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992    ac_cv_prog_ac_ct_CC="gcc"
2993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997  done
2998IFS=$as_save_IFS
2999
3000fi
3001fi
3002ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003if test -n "$ac_ct_CC"; then
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3005$as_echo "$ac_ct_CC" >&6; }
3006else
3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
3009fi
3010
3011  if test "x$ac_ct_CC" = x; then
3012    CC=""
3013  else
3014    case $cross_compiling:$ac_tool_warned in
3015yes:)
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3018ac_tool_warned=yes ;;
3019esac
3020    CC=$ac_ct_CC
3021  fi
3022else
3023  CC="$ac_cv_prog_CC"
3024fi
3025
3026if test -z "$CC"; then
3027          if test -n "$ac_tool_prefix"; then
3028    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3029set dummy ${ac_tool_prefix}cc; ac_word=$2
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031$as_echo_n "checking for $ac_word... " >&6; }
3032if ${ac_cv_prog_CC+:} false; then :
3033  $as_echo_n "(cached) " >&6
3034else
3035  if test -n "$CC"; then
3036  ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041  IFS=$as_save_IFS
3042  test -z "$as_dir" && as_dir=.
3043    for ac_exec_ext in '' $ac_executable_extensions; do
3044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045    ac_cv_prog_CC="${ac_tool_prefix}cc"
3046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047    break 2
3048  fi
3049done
3050  done
3051IFS=$as_save_IFS
3052
3053fi
3054fi
3055CC=$ac_cv_prog_CC
3056if test -n "$CC"; then
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058$as_echo "$CC" >&6; }
3059else
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061$as_echo "no" >&6; }
3062fi
3063
3064
3065  fi
3066fi
3067if test -z "$CC"; then
3068  # Extract the first word of "cc", so it can be a program name with args.
3069set dummy cc; ac_word=$2
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
3072if ${ac_cv_prog_CC+:} false; then :
3073  $as_echo_n "(cached) " >&6
3074else
3075  if test -n "$CC"; then
3076  ac_cv_prog_CC="$CC" # Let the user override the test.
3077else
3078  ac_prog_rejected=no
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082  IFS=$as_save_IFS
3083  test -z "$as_dir" && as_dir=.
3084    for ac_exec_ext in '' $ac_executable_extensions; do
3085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3087       ac_prog_rejected=yes
3088       continue
3089     fi
3090    ac_cv_prog_CC="cc"
3091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095  done
3096IFS=$as_save_IFS
3097
3098if test $ac_prog_rejected = yes; then
3099  # We found a bogon in the path, so make sure we never use it.
3100  set dummy $ac_cv_prog_CC
3101  shift
3102  if test $# != 0; then
3103    # We chose a different compiler from the bogus one.
3104    # However, it has the same basename, so the bogon will be chosen
3105    # first if we set CC to just the basename; use the full file name.
3106    shift
3107    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3108  fi
3109fi
3110fi
3111fi
3112CC=$ac_cv_prog_CC
3113if test -n "$CC"; then
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115$as_echo "$CC" >&6; }
3116else
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
3119fi
3120
3121
3122fi
3123if test -z "$CC"; then
3124  if test -n "$ac_tool_prefix"; then
3125  for ac_prog in cl.exe
3126  do
3127    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if ${ac_cv_prog_CC+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  if test -n "$CC"; then
3135  ac_cv_prog_CC="$CC" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  test -z "$as_dir" && as_dir=.
3142    for ac_exec_ext in '' $ac_executable_extensions; do
3143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146    break 2
3147  fi
3148done
3149  done
3150IFS=$as_save_IFS
3151
3152fi
3153fi
3154CC=$ac_cv_prog_CC
3155if test -n "$CC"; then
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3157$as_echo "$CC" >&6; }
3158else
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161fi
3162
3163
3164    test -n "$CC" && break
3165  done
3166fi
3167if test -z "$CC"; then
3168  ac_ct_CC=$CC
3169  for ac_prog in cl.exe
3170do
3171  # Extract the first word of "$ac_prog", so it can be a program name with args.
3172set dummy $ac_prog; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
3175if ${ac_cv_prog_ac_ct_CC+:} false; then :
3176  $as_echo_n "(cached) " >&6
3177else
3178  if test -n "$ac_ct_CC"; then
3179  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186    for ac_exec_ext in '' $ac_executable_extensions; do
3187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188    ac_cv_prog_ac_ct_CC="$ac_prog"
3189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190    break 2
3191  fi
3192done
3193  done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199if test -n "$ac_ct_CC"; then
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3201$as_echo "$ac_ct_CC" >&6; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208  test -n "$ac_ct_CC" && break
3209done
3210
3211  if test "x$ac_ct_CC" = x; then
3212    CC=""
3213  else
3214    case $cross_compiling:$ac_tool_warned in
3215yes:)
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3218ac_tool_warned=yes ;;
3219esac
3220    CC=$ac_ct_CC
3221  fi
3222fi
3223
3224fi
3225
3226
3227test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229as_fn_error $? "no acceptable C compiler found in \$PATH
3230See \`config.log' for more details" "$LINENO" 5; }
3231
3232# Provide some information about the compiler.
3233$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3234set X $ac_compile
3235ac_compiler=$2
3236for ac_option in --version -v -V -qversion; do
3237  { { ac_try="$ac_compiler $ac_option >&5"
3238case "(($ac_try" in
3239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240  *) ac_try_echo=$ac_try;;
3241esac
3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243$as_echo "$ac_try_echo"; } >&5
3244  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3245  ac_status=$?
3246  if test -s conftest.err; then
3247    sed '10a\
3248... rest of stderr output deleted ...
3249         10q' conftest.err >conftest.er1
3250    cat conftest.er1 >&5
3251  fi
3252  rm -f conftest.er1 conftest.err
3253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254  test $ac_status = 0; }
3255done
3256
3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259
3260int
3261main ()
3262{
3263
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268ac_clean_files_save=$ac_clean_files
3269ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3270# Try to create an executable without -o first, disregard a.out.
3271# It will help us diagnose broken compilers, and finding out an intuition
3272# of exeext.
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3274$as_echo_n "checking whether the C compiler works... " >&6; }
3275ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3276
3277# The possible output files:
3278ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3279
3280ac_rmfiles=
3281for ac_file in $ac_files
3282do
3283  case $ac_file in
3284    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3285    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3286  esac
3287done
3288rm -f $ac_rmfiles
3289
3290if { { ac_try="$ac_link_default"
3291case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296$as_echo "$ac_try_echo"; } >&5
3297  (eval "$ac_link_default") 2>&5
3298  ac_status=$?
3299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300  test $ac_status = 0; }; then :
3301  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3302# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3303# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3304# so that the user can short-circuit this test for compilers unknown to
3305# Autoconf.
3306for ac_file in $ac_files ''
3307do
3308  test -f "$ac_file" || continue
3309  case $ac_file in
3310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3311	;;
3312    [ab].out )
3313	# We found the default executable, but exeext='' is most
3314	# certainly right.
3315	break;;
3316    *.* )
3317	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3318	then :; else
3319	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320	fi
3321	# We set ac_cv_exeext here because the later test for it is not
3322	# safe: cross compilers may not add the suffix if given an `-o'
3323	# argument, so we may need to know it at that point already.
3324	# Even if this section looks crufty: it has the advantage of
3325	# actually working.
3326	break;;
3327    * )
3328	break;;
3329  esac
3330done
3331test "$ac_cv_exeext" = no && ac_cv_exeext=
3332
3333else
3334  ac_file=''
3335fi
3336if test -z "$ac_file"; then :
3337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339$as_echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
3342{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344as_fn_error 77 "C compiler cannot create executables
3345See \`config.log' for more details" "$LINENO" 5; }
3346else
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348$as_echo "yes" >&6; }
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3351$as_echo_n "checking for C compiler default output file name... " >&6; }
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3353$as_echo "$ac_file" >&6; }
3354ac_exeext=$ac_cv_exeext
3355
3356rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3357ac_clean_files=$ac_clean_files_save
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3359$as_echo_n "checking for suffix of executables... " >&6; }
3360if { { ac_try="$ac_link"
3361case "(($ac_try" in
3362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363  *) ac_try_echo=$ac_try;;
3364esac
3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366$as_echo "$ac_try_echo"; } >&5
3367  (eval "$ac_link") 2>&5
3368  ac_status=$?
3369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370  test $ac_status = 0; }; then :
3371  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3372# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3373# work properly (i.e., refer to `conftest.exe'), while it won't with
3374# `rm'.
3375for ac_file in conftest.exe conftest conftest.*; do
3376  test -f "$ac_file" || continue
3377  case $ac_file in
3378    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3379    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380	  break;;
3381    * ) break;;
3382  esac
3383done
3384else
3385  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3388See \`config.log' for more details" "$LINENO" 5; }
3389fi
3390rm -f conftest conftest$ac_cv_exeext
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3392$as_echo "$ac_cv_exeext" >&6; }
3393
3394rm -f conftest.$ac_ext
3395EXEEXT=$ac_cv_exeext
3396ac_exeext=$EXEEXT
3397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h.  */
3399#include <stdio.h>
3400int
3401main ()
3402{
3403FILE *f = fopen ("conftest.out", "w");
3404 return ferror (f) || fclose (f) != 0;
3405
3406  ;
3407  return 0;
3408}
3409_ACEOF
3410ac_clean_files="$ac_clean_files conftest.out"
3411# Check that the compiler produces executables we can run.  If not, either
3412# the compiler is broken, or we cross compile.
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3414$as_echo_n "checking whether we are cross compiling... " >&6; }
3415if test "$cross_compiling" != yes; then
3416  { { ac_try="$ac_link"
3417case "(($ac_try" in
3418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419  *) ac_try_echo=$ac_try;;
3420esac
3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422$as_echo "$ac_try_echo"; } >&5
3423  (eval "$ac_link") 2>&5
3424  ac_status=$?
3425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426  test $ac_status = 0; }
3427  if { ac_try='./conftest$ac_cv_exeext'
3428  { { case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434  (eval "$ac_try") 2>&5
3435  ac_status=$?
3436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437  test $ac_status = 0; }; }; then
3438    cross_compiling=no
3439  else
3440    if test "$cross_compiling" = maybe; then
3441	cross_compiling=yes
3442    else
3443	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error $? "cannot run C compiled programs.
3446If you meant to cross compile, use \`--host'.
3447See \`config.log' for more details" "$LINENO" 5; }
3448    fi
3449  fi
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3452$as_echo "$cross_compiling" >&6; }
3453
3454rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3455ac_clean_files=$ac_clean_files_save
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3457$as_echo_n "checking for suffix of object files... " >&6; }
3458if ${ac_cv_objext+:} false; then :
3459  $as_echo_n "(cached) " >&6
3460else
3461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463
3464int
3465main ()
3466{
3467
3468  ;
3469  return 0;
3470}
3471_ACEOF
3472rm -f conftest.o conftest.obj
3473if { { ac_try="$ac_compile"
3474case "(($ac_try" in
3475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476  *) ac_try_echo=$ac_try;;
3477esac
3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479$as_echo "$ac_try_echo"; } >&5
3480  (eval "$ac_compile") 2>&5
3481  ac_status=$?
3482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483  test $ac_status = 0; }; then :
3484  for ac_file in conftest.o conftest.obj conftest.*; do
3485  test -f "$ac_file" || continue;
3486  case $ac_file in
3487    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3488    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3489       break;;
3490  esac
3491done
3492else
3493  $as_echo "$as_me: failed program was:" >&5
3494sed 's/^/| /' conftest.$ac_ext >&5
3495
3496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498as_fn_error $? "cannot compute suffix of object files: cannot compile
3499See \`config.log' for more details" "$LINENO" 5; }
3500fi
3501rm -f conftest.$ac_cv_objext conftest.$ac_ext
3502fi
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3504$as_echo "$ac_cv_objext" >&6; }
3505OBJEXT=$ac_cv_objext
3506ac_objext=$OBJEXT
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3508$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3509if ${ac_cv_c_compiler_gnu+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518#ifndef __GNUC__
3519       choke me
3520#endif
3521
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526if ac_fn_c_try_compile "$LINENO"; then :
3527  ac_compiler_gnu=yes
3528else
3529  ac_compiler_gnu=no
3530fi
3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533
3534fi
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3536$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3537if test $ac_compiler_gnu = yes; then
3538  GCC=yes
3539else
3540  GCC=
3541fi
3542ac_test_CFLAGS=${CFLAGS+set}
3543ac_save_CFLAGS=$CFLAGS
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3545$as_echo_n "checking whether $CC accepts -g... " >&6; }
3546if ${ac_cv_prog_cc_g+:} false; then :
3547  $as_echo_n "(cached) " >&6
3548else
3549  ac_save_c_werror_flag=$ac_c_werror_flag
3550   ac_c_werror_flag=yes
3551   ac_cv_prog_cc_g=no
3552   CFLAGS="-g"
3553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564if ac_fn_c_try_compile "$LINENO"; then :
3565  ac_cv_prog_cc_g=yes
3566else
3567  CFLAGS=""
3568      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h.  */
3570
3571int
3572main ()
3573{
3574
3575  ;
3576  return 0;
3577}
3578_ACEOF
3579if ac_fn_c_try_compile "$LINENO"; then :
3580
3581else
3582  ac_c_werror_flag=$ac_save_c_werror_flag
3583	 CFLAGS="-g"
3584	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586
3587int
3588main ()
3589{
3590
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595if ac_fn_c_try_compile "$LINENO"; then :
3596  ac_cv_prog_cc_g=yes
3597fi
3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603   ac_c_werror_flag=$ac_save_c_werror_flag
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3606$as_echo "$ac_cv_prog_cc_g" >&6; }
3607if test "$ac_test_CFLAGS" = set; then
3608  CFLAGS=$ac_save_CFLAGS
3609elif test $ac_cv_prog_cc_g = yes; then
3610  if test "$GCC" = yes; then
3611    CFLAGS="-g -O2"
3612  else
3613    CFLAGS="-g"
3614  fi
3615else
3616  if test "$GCC" = yes; then
3617    CFLAGS="-O2"
3618  else
3619    CFLAGS=
3620  fi
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3623$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3624if ${ac_cv_prog_cc_c89+:} false; then :
3625  $as_echo_n "(cached) " >&6
3626else
3627  ac_cv_prog_cc_c89=no
3628ac_save_CC=$CC
3629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630/* end confdefs.h.  */
3631#include <stdarg.h>
3632#include <stdio.h>
3633struct stat;
3634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3635struct buf { int x; };
3636FILE * (*rcsopen) (struct buf *, struct stat *, int);
3637static char *e (p, i)
3638     char **p;
3639     int i;
3640{
3641  return p[i];
3642}
3643static char *f (char * (*g) (char **, int), char **p, ...)
3644{
3645  char *s;
3646  va_list v;
3647  va_start (v,p);
3648  s = g (p, va_arg (v,int));
3649  va_end (v);
3650  return s;
3651}
3652
3653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3654   function prototypes and stuff, but not '\xHH' hex character constants.
3655   These don't provoke an error unfortunately, instead are silently treated
3656   as 'x'.  The following induces an error, until -std is added to get
3657   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3658   array size at least.  It's necessary to write '\x00'==0 to get something
3659   that's true only with -std.  */
3660int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3661
3662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3663   inside strings and character constants.  */
3664#define FOO(x) 'x'
3665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3666
3667int test (int i, double x);
3668struct s1 {int (*f) (int a);};
3669struct s2 {int (*f) (double a);};
3670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3671int argc;
3672char **argv;
3673int
3674main ()
3675{
3676return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3682	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3683do
3684  CC="$ac_save_CC $ac_arg"
3685  if ac_fn_c_try_compile "$LINENO"; then :
3686  ac_cv_prog_cc_c89=$ac_arg
3687fi
3688rm -f core conftest.err conftest.$ac_objext
3689  test "x$ac_cv_prog_cc_c89" != "xno" && break
3690done
3691rm -f conftest.$ac_ext
3692CC=$ac_save_CC
3693
3694fi
3695# AC_CACHE_VAL
3696case "x$ac_cv_prog_cc_c89" in
3697  x)
3698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3699$as_echo "none needed" >&6; } ;;
3700  xno)
3701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3702$as_echo "unsupported" >&6; } ;;
3703  *)
3704    CC="$CC $ac_cv_prog_cc_c89"
3705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3706$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3707esac
3708if test "x$ac_cv_prog_cc_c89" != xno; then :
3709
3710fi
3711
3712ac_ext=c
3713ac_cpp='$CPP $CPPFLAGS'
3714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3724$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3725if ${am_cv_prog_cc_c_o+:} false; then :
3726  $as_echo_n "(cached) " >&6
3727else
3728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h.  */
3730
3731int
3732main ()
3733{
3734
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739  # Make sure it works both with $CC and with simple cc.
3740  # Following AC_PROG_CC_C_O, we do the test twice because some
3741  # compilers refuse to overwrite an existing .o file with -o,
3742  # though they will create one.
3743  am_cv_prog_cc_c_o=yes
3744  for am_i in 1 2; do
3745    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3746   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); } \
3750         && test -f conftest2.$ac_objext; then
3751      : OK
3752    else
3753      am_cv_prog_cc_c_o=no
3754      break
3755    fi
3756  done
3757  rm -f core conftest*
3758  unset am_i
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3761$as_echo "$am_cv_prog_cc_c_o" >&6; }
3762if test "$am_cv_prog_cc_c_o" != yes; then
3763   # Losing compiler, so override with the script.
3764   # FIXME: It is wrong to rewrite CC.
3765   # But if we don't then we get into trouble of one sort or another.
3766   # A longer-term fix would be to have automake use am__CC in this case,
3767   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3768   CC="$am_aux_dir/compile $CC"
3769fi
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776DEPDIR="${am__leading_dot}deps"
3777
3778ac_config_commands="$ac_config_commands depfiles"
3779
3780
3781am_make=${MAKE-make}
3782cat > confinc << 'END'
3783am__doit:
3784	@echo this is the am__doit target
3785.PHONY: am__doit
3786END
3787# If we don't find an include directive, just comment out the code.
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3789$as_echo_n "checking for style of include used by $am_make... " >&6; }
3790am__include="#"
3791am__quote=
3792_am_result=none
3793# First try GNU make style include.
3794echo "include confinc" > confmf
3795# Ignore all kinds of additional output from 'make'.
3796case `$am_make -s -f confmf 2> /dev/null` in #(
3797*the\ am__doit\ target*)
3798  am__include=include
3799  am__quote=
3800  _am_result=GNU
3801  ;;
3802esac
3803# Now try BSD make style include.
3804if test "$am__include" = "#"; then
3805   echo '.include "confinc"' > confmf
3806   case `$am_make -s -f confmf 2> /dev/null` in #(
3807   *the\ am__doit\ target*)
3808     am__include=.include
3809     am__quote="\""
3810     _am_result=BSD
3811     ;;
3812   esac
3813fi
3814
3815
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3817$as_echo "$_am_result" >&6; }
3818rm -f confinc confmf
3819
3820# Check whether --enable-dependency-tracking was given.
3821if test "${enable_dependency_tracking+set}" = set; then :
3822  enableval=$enable_dependency_tracking;
3823fi
3824
3825if test "x$enable_dependency_tracking" != xno; then
3826  am_depcomp="$ac_aux_dir/depcomp"
3827  AMDEPBACKSLASH='\'
3828  am__nodep='_no'
3829fi
3830 if test "x$enable_dependency_tracking" != xno; then
3831  AMDEP_TRUE=
3832  AMDEP_FALSE='#'
3833else
3834  AMDEP_TRUE='#'
3835  AMDEP_FALSE=
3836fi
3837
3838
3839
3840depcc="$CC"   am_compiler_list=
3841
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3843$as_echo_n "checking dependency style of $depcc... " >&6; }
3844if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3845  $as_echo_n "(cached) " >&6
3846else
3847  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848  # We make a subdir and do the tests there.  Otherwise we can end up
3849  # making bogus files that we don't know about and never remove.  For
3850  # instance it was reported that on HP-UX the gcc test will end up
3851  # making a dummy file named 'D' -- because '-MD' means "put the output
3852  # in D".
3853  rm -rf conftest.dir
3854  mkdir conftest.dir
3855  # Copy depcomp to subdir because otherwise we won't find it if we're
3856  # using a relative directory.
3857  cp "$am_depcomp" conftest.dir
3858  cd conftest.dir
3859  # We will build objects and dependencies in a subdirectory because
3860  # it helps to detect inapplicable dependency modes.  For instance
3861  # both Tru64's cc and ICC support -MD to output dependencies as a
3862  # side effect of compilation, but ICC will put the dependencies in
3863  # the current directory while Tru64 will put them in the object
3864  # directory.
3865  mkdir sub
3866
3867  am_cv_CC_dependencies_compiler_type=none
3868  if test "$am_compiler_list" = ""; then
3869     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3870  fi
3871  am__universal=false
3872  case " $depcc " in #(
3873     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3874     esac
3875
3876  for depmode in $am_compiler_list; do
3877    # Setup a source with many dependencies, because some compilers
3878    # like to wrap large dependency lists on column 80 (with \), and
3879    # we should not choose a depcomp mode which is confused by this.
3880    #
3881    # We need to recreate these files for each test, as the compiler may
3882    # overwrite some of them when testing with obscure command lines.
3883    # This happens at least with the AIX C compiler.
3884    : > sub/conftest.c
3885    for i in 1 2 3 4 5 6; do
3886      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3888      # Solaris 10 /bin/sh.
3889      echo '/* dummy */' > sub/conftst$i.h
3890    done
3891    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3892
3893    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3894    # mode.  It turns out that the SunPro C++ compiler does not properly
3895    # handle '-M -o', and we need to detect this.  Also, some Intel
3896    # versions had trouble with output in subdirs.
3897    am__obj=sub/conftest.${OBJEXT-o}
3898    am__minus_obj="-o $am__obj"
3899    case $depmode in
3900    gcc)
3901      # This depmode causes a compiler race in universal mode.
3902      test "$am__universal" = false || continue
3903      ;;
3904    nosideeffect)
3905      # After this tag, mechanisms are not by side-effect, so they'll
3906      # only be used when explicitly requested.
3907      if test "x$enable_dependency_tracking" = xyes; then
3908	continue
3909      else
3910	break
3911      fi
3912      ;;
3913    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3914      # This compiler won't grok '-c -o', but also, the minuso test has
3915      # not run yet.  These depmodes are late enough in the game, and
3916      # so weak that their functioning should not be impacted.
3917      am__obj=conftest.${OBJEXT-o}
3918      am__minus_obj=
3919      ;;
3920    none) break ;;
3921    esac
3922    if depmode=$depmode \
3923       source=sub/conftest.c object=$am__obj \
3924       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3925       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3926         >/dev/null 2>conftest.err &&
3927       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3928       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3930       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931      # icc doesn't choke on unknown options, it will just issue warnings
3932      # or remarks (even with -Werror).  So we grep stderr for any message
3933      # that says an option was ignored or not supported.
3934      # When given -MP, icc 7.0 and 7.1 complain thusly:
3935      #   icc: Command line warning: ignoring option '-M'; no argument required
3936      # The diagnosis changed in icc 8.0:
3937      #   icc: Command line remark: option '-MP' not supported
3938      if (grep 'ignoring option' conftest.err ||
3939          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940        am_cv_CC_dependencies_compiler_type=$depmode
3941        break
3942      fi
3943    fi
3944  done
3945
3946  cd ..
3947  rm -rf conftest.dir
3948else
3949  am_cv_CC_dependencies_compiler_type=none
3950fi
3951
3952fi
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3954$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3956
3957 if
3958  test "x$enable_dependency_tracking" != xno \
3959  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3960  am__fastdepCC_TRUE=
3961  am__fastdepCC_FALSE='#'
3962else
3963  am__fastdepCC_TRUE='#'
3964  am__fastdepCC_FALSE=
3965fi
3966
3967
3968ac_ext=c
3969ac_cpp='$CPP $CPPFLAGS'
3970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3975$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3976set x ${MAKE-make}
3977ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3978if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3979  $as_echo_n "(cached) " >&6
3980else
3981  cat >conftest.make <<\_ACEOF
3982SHELL = /bin/sh
3983all:
3984	@echo '@@@%%%=$(MAKE)=@@@%%%'
3985_ACEOF
3986# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3987case `${MAKE-make} -f conftest.make 2>/dev/null` in
3988  *@@@%%%=?*=@@@%%%*)
3989    eval ac_cv_prog_make_${ac_make}_set=yes;;
3990  *)
3991    eval ac_cv_prog_make_${ac_make}_set=no;;
3992esac
3993rm -f conftest.make
3994fi
3995if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3997$as_echo "yes" >&6; }
3998  SET_MAKE=
3999else
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
4002  SET_MAKE="MAKE=${MAKE-make}"
4003fi
4004
4005#AC_PROG_RANLIB
4006
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4013$as_echo_n "checking how to run the C preprocessor... " >&6; }
4014# On Suns, sometimes $CPP names a directory.
4015if test -n "$CPP" && test -d "$CPP"; then
4016  CPP=
4017fi
4018if test -z "$CPP"; then
4019  if ${ac_cv_prog_CPP+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022      # Double quotes because CPP needs to be expanded
4023    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024    do
4025      ac_preproc_ok=false
4026for ac_c_preproc_warn_flag in '' yes
4027do
4028  # Use a header file that comes with gcc, so configuring glibc
4029  # with a fresh cross-compiler works.
4030  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031  # <limits.h> exists even on freestanding compilers.
4032  # On the NeXT, cc -E runs the code through the compiler's parser,
4033  # not just through cpp. "Syntax error" is here to catch this case.
4034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036#ifdef __STDC__
4037# include <limits.h>
4038#else
4039# include <assert.h>
4040#endif
4041		     Syntax error
4042_ACEOF
4043if ac_fn_c_try_cpp "$LINENO"; then :
4044
4045else
4046  # Broken: fails on valid input.
4047continue
4048fi
4049rm -f conftest.err conftest.i conftest.$ac_ext
4050
4051  # OK, works on sane cases.  Now check whether nonexistent headers
4052  # can be detected and how.
4053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055#include <ac_nonexistent.h>
4056_ACEOF
4057if ac_fn_c_try_cpp "$LINENO"; then :
4058  # Broken: success on invalid input.
4059continue
4060else
4061  # Passes both tests.
4062ac_preproc_ok=:
4063break
4064fi
4065rm -f conftest.err conftest.i conftest.$ac_ext
4066
4067done
4068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4069rm -f conftest.i conftest.err conftest.$ac_ext
4070if $ac_preproc_ok; then :
4071  break
4072fi
4073
4074    done
4075    ac_cv_prog_CPP=$CPP
4076
4077fi
4078  CPP=$ac_cv_prog_CPP
4079else
4080  ac_cv_prog_CPP=$CPP
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4083$as_echo "$CPP" >&6; }
4084ac_preproc_ok=false
4085for ac_c_preproc_warn_flag in '' yes
4086do
4087  # Use a header file that comes with gcc, so configuring glibc
4088  # with a fresh cross-compiler works.
4089  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090  # <limits.h> exists even on freestanding compilers.
4091  # On the NeXT, cc -E runs the code through the compiler's parser,
4092  # not just through cpp. "Syntax error" is here to catch this case.
4093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h.  */
4095#ifdef __STDC__
4096# include <limits.h>
4097#else
4098# include <assert.h>
4099#endif
4100		     Syntax error
4101_ACEOF
4102if ac_fn_c_try_cpp "$LINENO"; then :
4103
4104else
4105  # Broken: fails on valid input.
4106continue
4107fi
4108rm -f conftest.err conftest.i conftest.$ac_ext
4109
4110  # OK, works on sane cases.  Now check whether nonexistent headers
4111  # can be detected and how.
4112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114#include <ac_nonexistent.h>
4115_ACEOF
4116if ac_fn_c_try_cpp "$LINENO"; then :
4117  # Broken: success on invalid input.
4118continue
4119else
4120  # Passes both tests.
4121ac_preproc_ok=:
4122break
4123fi
4124rm -f conftest.err conftest.i conftest.$ac_ext
4125
4126done
4127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128rm -f conftest.i conftest.err conftest.$ac_ext
4129if $ac_preproc_ok; then :
4130
4131else
4132  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4134as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4135See \`config.log' for more details" "$LINENO" 5; }
4136fi
4137
4138ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4146$as_echo_n "checking for X... " >&6; }
4147
4148
4149# Check whether --with-x was given.
4150if test "${with_x+set}" = set; then :
4151  withval=$with_x;
4152fi
4153
4154# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4155if test "x$with_x" = xno; then
4156  # The user explicitly disabled X.
4157  have_x=disabled
4158else
4159  case $x_includes,$x_libraries in #(
4160    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4161    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  # One or both of the vars are not set, and there is no cached value.
4165ac_x_includes=no ac_x_libraries=no
4166rm -f -r conftest.dir
4167if mkdir conftest.dir; then
4168  cd conftest.dir
4169  cat >Imakefile <<'_ACEOF'
4170incroot:
4171	@echo incroot='${INCROOT}'
4172usrlibdir:
4173	@echo usrlibdir='${USRLIBDIR}'
4174libdir:
4175	@echo libdir='${LIBDIR}'
4176_ACEOF
4177  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4178    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4179    for ac_var in incroot usrlibdir libdir; do
4180      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4181    done
4182    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4183    for ac_extension in a so sl dylib la dll; do
4184      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4185	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4186	ac_im_usrlibdir=$ac_im_libdir; break
4187      fi
4188    done
4189    # Screen out bogus values from the imake configuration.  They are
4190    # bogus both because they are the default anyway, and because
4191    # using them would break gcc on systems where it needs fixed includes.
4192    case $ac_im_incroot in
4193	/usr/include) ac_x_includes= ;;
4194	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4195    esac
4196    case $ac_im_usrlibdir in
4197	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
4198	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4199    esac
4200  fi
4201  cd ..
4202  rm -f -r conftest.dir
4203fi
4204
4205# Standard set of common directories for X headers.
4206# Check X11 before X11Rn because it is often a symlink to the current release.
4207ac_x_header_dirs='
4208/usr/X11/include
4209/usr/X11R7/include
4210/usr/X11R6/include
4211/usr/X11R5/include
4212/usr/X11R4/include
4213
4214/usr/include/X11
4215/usr/include/X11R7
4216/usr/include/X11R6
4217/usr/include/X11R5
4218/usr/include/X11R4
4219
4220/usr/local/X11/include
4221/usr/local/X11R7/include
4222/usr/local/X11R6/include
4223/usr/local/X11R5/include
4224/usr/local/X11R4/include
4225
4226/usr/local/include/X11
4227/usr/local/include/X11R7
4228/usr/local/include/X11R6
4229/usr/local/include/X11R5
4230/usr/local/include/X11R4
4231
4232/usr/X386/include
4233/usr/x386/include
4234/usr/XFree86/include/X11
4235
4236/usr/include
4237/usr/local/include
4238/usr/unsupported/include
4239/usr/athena/include
4240/usr/local/x11r5/include
4241/usr/lpp/Xamples/include
4242
4243/usr/openwin/include
4244/usr/openwin/share/include'
4245
4246if test "$ac_x_includes" = no; then
4247  # Guess where to find include files, by looking for Xlib.h.
4248  # First, try using that file with no special directory specified.
4249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250/* end confdefs.h.  */
4251#include <X11/Xlib.h>
4252_ACEOF
4253if ac_fn_c_try_cpp "$LINENO"; then :
4254  # We can compile using X headers with no special include directory.
4255ac_x_includes=
4256else
4257  for ac_dir in $ac_x_header_dirs; do
4258  if test -r "$ac_dir/X11/Xlib.h"; then
4259    ac_x_includes=$ac_dir
4260    break
4261  fi
4262done
4263fi
4264rm -f conftest.err conftest.i conftest.$ac_ext
4265fi # $ac_x_includes = no
4266
4267if test "$ac_x_libraries" = no; then
4268  # Check for the libraries.
4269  # See if we find them without any special options.
4270  # Don't add to $LIBS permanently.
4271  ac_save_LIBS=$LIBS
4272  LIBS="-lX11 $LIBS"
4273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274/* end confdefs.h.  */
4275#include <X11/Xlib.h>
4276int
4277main ()
4278{
4279XrmInitialize ()
4280  ;
4281  return 0;
4282}
4283_ACEOF
4284if ac_fn_c_try_link "$LINENO"; then :
4285  LIBS=$ac_save_LIBS
4286# We can link X programs with no special library path.
4287ac_x_libraries=
4288else
4289  LIBS=$ac_save_LIBS
4290for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4291do
4292  # Don't even attempt the hair of trying to link an X program!
4293  for ac_extension in a so sl dylib la dll; do
4294    if test -r "$ac_dir/libX11.$ac_extension"; then
4295      ac_x_libraries=$ac_dir
4296      break 2
4297    fi
4298  done
4299done
4300fi
4301rm -f core conftest.err conftest.$ac_objext \
4302    conftest$ac_exeext conftest.$ac_ext
4303fi # $ac_x_libraries = no
4304
4305case $ac_x_includes,$ac_x_libraries in #(
4306  no,* | *,no | *\'*)
4307    # Didn't find X, or a directory has "'" in its name.
4308    ac_cv_have_x="have_x=no";; #(
4309  *)
4310    # Record where we found X for the cache.
4311    ac_cv_have_x="have_x=yes\
4312	ac_x_includes='$ac_x_includes'\
4313	ac_x_libraries='$ac_x_libraries'"
4314esac
4315fi
4316;; #(
4317    *) have_x=yes;;
4318  esac
4319  eval "$ac_cv_have_x"
4320fi # $with_x != no
4321
4322if test "$have_x" != yes; then
4323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4324$as_echo "$have_x" >&6; }
4325  no_x=yes
4326else
4327  # If each of the values was on the command line, it overrides each guess.
4328  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4329  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4330  # Update the cache value to reflect the command line values.
4331  ac_cv_have_x="have_x=yes\
4332	ac_x_includes='$x_includes'\
4333	ac_x_libraries='$x_libraries'"
4334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4335$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4336fi
4337
4338if test "$no_x" = yes; then
4339  # Not all programs may use this symbol, but it does not hurt to define it.
4340
4341$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4342
4343  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4344else
4345  if test -n "$x_includes"; then
4346    X_CFLAGS="$X_CFLAGS -I$x_includes"
4347  fi
4348
4349  # It would also be nice to do this for all -L options, not just this one.
4350  if test -n "$x_libraries"; then
4351    X_LIBS="$X_LIBS -L$x_libraries"
4352    # For Solaris; some versions of Sun CC require a space after -R and
4353    # others require no space.  Words are not sufficient . . . .
4354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4355$as_echo_n "checking whether -R must be followed by a space... " >&6; }
4356    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4357    ac_xsave_c_werror_flag=$ac_c_werror_flag
4358    ac_c_werror_flag=yes
4359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360/* end confdefs.h.  */
4361
4362int
4363main ()
4364{
4365
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370if ac_fn_c_try_link "$LINENO"; then :
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
4373       X_LIBS="$X_LIBS -R$x_libraries"
4374else
4375  LIBS="$ac_xsave_LIBS -R $x_libraries"
4376       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h.  */
4378
4379int
4380main ()
4381{
4382
4383  ;
4384  return 0;
4385}
4386_ACEOF
4387if ac_fn_c_try_link "$LINENO"; then :
4388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4389$as_echo "yes" >&6; }
4390	  X_LIBS="$X_LIBS -R $x_libraries"
4391else
4392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4393$as_echo "neither works" >&6; }
4394fi
4395rm -f core conftest.err conftest.$ac_objext \
4396    conftest$ac_exeext conftest.$ac_ext
4397fi
4398rm -f core conftest.err conftest.$ac_objext \
4399    conftest$ac_exeext conftest.$ac_ext
4400    ac_c_werror_flag=$ac_xsave_c_werror_flag
4401    LIBS=$ac_xsave_LIBS
4402  fi
4403
4404  # Check for system-dependent libraries X programs must link with.
4405  # Do this before checking for the system-independent R6 libraries
4406  # (-lICE), since we may need -lsocket or whatever for X linking.
4407
4408  if test "$ISC" = yes; then
4409    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4410  else
4411    # Martyn Johnson says this is needed for Ultrix, if the X
4412    # libraries were built with DECnet support.  And Karl Berry says
4413    # the Alpha needs dnet_stub (dnet does not exist).
4414    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4415    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h.  */
4417
4418/* Override any GCC internal prototype to avoid an error.
4419   Use char because int might match the return type of a GCC
4420   builtin and then its argument prototype would still apply.  */
4421#ifdef __cplusplus
4422extern "C"
4423#endif
4424char XOpenDisplay ();
4425int
4426main ()
4427{
4428return XOpenDisplay ();
4429  ;
4430  return 0;
4431}
4432_ACEOF
4433if ac_fn_c_try_link "$LINENO"; then :
4434
4435else
4436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4437$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4438if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4439  $as_echo_n "(cached) " >&6
4440else
4441  ac_check_lib_save_LIBS=$LIBS
4442LIBS="-ldnet  $LIBS"
4443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h.  */
4445
4446/* Override any GCC internal prototype to avoid an error.
4447   Use char because int might match the return type of a GCC
4448   builtin and then its argument prototype would still apply.  */
4449#ifdef __cplusplus
4450extern "C"
4451#endif
4452char dnet_ntoa ();
4453int
4454main ()
4455{
4456return dnet_ntoa ();
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_link "$LINENO"; then :
4462  ac_cv_lib_dnet_dnet_ntoa=yes
4463else
4464  ac_cv_lib_dnet_dnet_ntoa=no
4465fi
4466rm -f core conftest.err conftest.$ac_objext \
4467    conftest$ac_exeext conftest.$ac_ext
4468LIBS=$ac_check_lib_save_LIBS
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4471$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4472if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4473  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4474fi
4475
4476    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4477      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4478$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4479if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4480  $as_echo_n "(cached) " >&6
4481else
4482  ac_check_lib_save_LIBS=$LIBS
4483LIBS="-ldnet_stub  $LIBS"
4484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485/* end confdefs.h.  */
4486
4487/* Override any GCC internal prototype to avoid an error.
4488   Use char because int might match the return type of a GCC
4489   builtin and then its argument prototype would still apply.  */
4490#ifdef __cplusplus
4491extern "C"
4492#endif
4493char dnet_ntoa ();
4494int
4495main ()
4496{
4497return dnet_ntoa ();
4498  ;
4499  return 0;
4500}
4501_ACEOF
4502if ac_fn_c_try_link "$LINENO"; then :
4503  ac_cv_lib_dnet_stub_dnet_ntoa=yes
4504else
4505  ac_cv_lib_dnet_stub_dnet_ntoa=no
4506fi
4507rm -f core conftest.err conftest.$ac_objext \
4508    conftest$ac_exeext conftest.$ac_ext
4509LIBS=$ac_check_lib_save_LIBS
4510fi
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4512$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4513if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
4514  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4515fi
4516
4517    fi
4518fi
4519rm -f core conftest.err conftest.$ac_objext \
4520    conftest$ac_exeext conftest.$ac_ext
4521    LIBS="$ac_xsave_LIBS"
4522
4523    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4524    # to get the SysV transport functions.
4525    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4526    # needs -lnsl.
4527    # The nsl library prevents programs from opening the X display
4528    # on Irix 5.2, according to T.E. Dickey.
4529    # The functions gethostbyname, getservbyname, and inet_addr are
4530    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4531    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4532if test "x$ac_cv_func_gethostbyname" = xyes; then :
4533
4534fi
4535
4536    if test $ac_cv_func_gethostbyname = no; then
4537      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4538$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4539if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  ac_check_lib_save_LIBS=$LIBS
4543LIBS="-lnsl  $LIBS"
4544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h.  */
4546
4547/* Override any GCC internal prototype to avoid an error.
4548   Use char because int might match the return type of a GCC
4549   builtin and then its argument prototype would still apply.  */
4550#ifdef __cplusplus
4551extern "C"
4552#endif
4553char gethostbyname ();
4554int
4555main ()
4556{
4557return gethostbyname ();
4558  ;
4559  return 0;
4560}
4561_ACEOF
4562if ac_fn_c_try_link "$LINENO"; then :
4563  ac_cv_lib_nsl_gethostbyname=yes
4564else
4565  ac_cv_lib_nsl_gethostbyname=no
4566fi
4567rm -f core conftest.err conftest.$ac_objext \
4568    conftest$ac_exeext conftest.$ac_ext
4569LIBS=$ac_check_lib_save_LIBS
4570fi
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4572$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4573if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4574  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4575fi
4576
4577      if test $ac_cv_lib_nsl_gethostbyname = no; then
4578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4579$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4580if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
4581  $as_echo_n "(cached) " >&6
4582else
4583  ac_check_lib_save_LIBS=$LIBS
4584LIBS="-lbsd  $LIBS"
4585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h.  */
4587
4588/* Override any GCC internal prototype to avoid an error.
4589   Use char because int might match the return type of a GCC
4590   builtin and then its argument prototype would still apply.  */
4591#ifdef __cplusplus
4592extern "C"
4593#endif
4594char gethostbyname ();
4595int
4596main ()
4597{
4598return gethostbyname ();
4599  ;
4600  return 0;
4601}
4602_ACEOF
4603if ac_fn_c_try_link "$LINENO"; then :
4604  ac_cv_lib_bsd_gethostbyname=yes
4605else
4606  ac_cv_lib_bsd_gethostbyname=no
4607fi
4608rm -f core conftest.err conftest.$ac_objext \
4609    conftest$ac_exeext conftest.$ac_ext
4610LIBS=$ac_check_lib_save_LIBS
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4613$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4614if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
4615  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4616fi
4617
4618      fi
4619    fi
4620
4621    # lieder@skyler.mavd.honeywell.com says without -lsocket,
4622    # socket/setsockopt and other routines are undefined under SCO ODT
4623    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4624    # on later versions), says Simon Leinen: it contains gethostby*
4625    # variants that don't use the name server (or something).  -lsocket
4626    # must be given before -lnsl if both are needed.  We assume that
4627    # if connect needs -lnsl, so does gethostbyname.
4628    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4629if test "x$ac_cv_func_connect" = xyes; then :
4630
4631fi
4632
4633    if test $ac_cv_func_connect = no; then
4634      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4635$as_echo_n "checking for connect in -lsocket... " >&6; }
4636if ${ac_cv_lib_socket_connect+:} false; then :
4637  $as_echo_n "(cached) " >&6
4638else
4639  ac_check_lib_save_LIBS=$LIBS
4640LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642/* end confdefs.h.  */
4643
4644/* Override any GCC internal prototype to avoid an error.
4645   Use char because int might match the return type of a GCC
4646   builtin and then its argument prototype would still apply.  */
4647#ifdef __cplusplus
4648extern "C"
4649#endif
4650char connect ();
4651int
4652main ()
4653{
4654return connect ();
4655  ;
4656  return 0;
4657}
4658_ACEOF
4659if ac_fn_c_try_link "$LINENO"; then :
4660  ac_cv_lib_socket_connect=yes
4661else
4662  ac_cv_lib_socket_connect=no
4663fi
4664rm -f core conftest.err conftest.$ac_objext \
4665    conftest$ac_exeext conftest.$ac_ext
4666LIBS=$ac_check_lib_save_LIBS
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4669$as_echo "$ac_cv_lib_socket_connect" >&6; }
4670if test "x$ac_cv_lib_socket_connect" = xyes; then :
4671  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4672fi
4673
4674    fi
4675
4676    # Guillermo Gomez says -lposix is necessary on A/UX.
4677    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
4678if test "x$ac_cv_func_remove" = xyes; then :
4679
4680fi
4681
4682    if test $ac_cv_func_remove = no; then
4683      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4684$as_echo_n "checking for remove in -lposix... " >&6; }
4685if ${ac_cv_lib_posix_remove+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  ac_check_lib_save_LIBS=$LIBS
4689LIBS="-lposix  $LIBS"
4690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h.  */
4692
4693/* Override any GCC internal prototype to avoid an error.
4694   Use char because int might match the return type of a GCC
4695   builtin and then its argument prototype would still apply.  */
4696#ifdef __cplusplus
4697extern "C"
4698#endif
4699char remove ();
4700int
4701main ()
4702{
4703return remove ();
4704  ;
4705  return 0;
4706}
4707_ACEOF
4708if ac_fn_c_try_link "$LINENO"; then :
4709  ac_cv_lib_posix_remove=yes
4710else
4711  ac_cv_lib_posix_remove=no
4712fi
4713rm -f core conftest.err conftest.$ac_objext \
4714    conftest$ac_exeext conftest.$ac_ext
4715LIBS=$ac_check_lib_save_LIBS
4716fi
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4718$as_echo "$ac_cv_lib_posix_remove" >&6; }
4719if test "x$ac_cv_lib_posix_remove" = xyes; then :
4720  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4721fi
4722
4723    fi
4724
4725    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4726    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4727if test "x$ac_cv_func_shmat" = xyes; then :
4728
4729fi
4730
4731    if test $ac_cv_func_shmat = no; then
4732      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4733$as_echo_n "checking for shmat in -lipc... " >&6; }
4734if ${ac_cv_lib_ipc_shmat+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737  ac_check_lib_save_LIBS=$LIBS
4738LIBS="-lipc  $LIBS"
4739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741
4742/* Override any GCC internal prototype to avoid an error.
4743   Use char because int might match the return type of a GCC
4744   builtin and then its argument prototype would still apply.  */
4745#ifdef __cplusplus
4746extern "C"
4747#endif
4748char shmat ();
4749int
4750main ()
4751{
4752return shmat ();
4753  ;
4754  return 0;
4755}
4756_ACEOF
4757if ac_fn_c_try_link "$LINENO"; then :
4758  ac_cv_lib_ipc_shmat=yes
4759else
4760  ac_cv_lib_ipc_shmat=no
4761fi
4762rm -f core conftest.err conftest.$ac_objext \
4763    conftest$ac_exeext conftest.$ac_ext
4764LIBS=$ac_check_lib_save_LIBS
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4767$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4768if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
4769  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4770fi
4771
4772    fi
4773  fi
4774
4775  # Check for libraries that X11R6 Xt/Xaw programs need.
4776  ac_save_LDFLAGS=$LDFLAGS
4777  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4778  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4779  # check for ICE first), but we must link in the order -lSM -lICE or
4780  # we get undefined symbols.  So assume we have SM if we have ICE.
4781  # These have to be linked with before -lX11, unlike the other
4782  # libraries we check for below, so use a different variable.
4783  # John Interrante, Karl Berry
4784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4785$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4786if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  ac_check_lib_save_LIBS=$LIBS
4790LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792/* end confdefs.h.  */
4793
4794/* Override any GCC internal prototype to avoid an error.
4795   Use char because int might match the return type of a GCC
4796   builtin and then its argument prototype would still apply.  */
4797#ifdef __cplusplus
4798extern "C"
4799#endif
4800char IceConnectionNumber ();
4801int
4802main ()
4803{
4804return IceConnectionNumber ();
4805  ;
4806  return 0;
4807}
4808_ACEOF
4809if ac_fn_c_try_link "$LINENO"; then :
4810  ac_cv_lib_ICE_IceConnectionNumber=yes
4811else
4812  ac_cv_lib_ICE_IceConnectionNumber=no
4813fi
4814rm -f core conftest.err conftest.$ac_objext \
4815    conftest$ac_exeext conftest.$ac_ext
4816LIBS=$ac_check_lib_save_LIBS
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4819$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4820if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
4821  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4822fi
4823
4824  LDFLAGS=$ac_save_LDFLAGS
4825
4826fi
4827
4828for ac_func in vprintf
4829do :
4830  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4831if test "x$ac_cv_func_vprintf" = xyes; then :
4832  cat >>confdefs.h <<_ACEOF
4833#define HAVE_VPRINTF 1
4834_ACEOF
4835
4836ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4837if test "x$ac_cv_func__doprnt" = xyes; then :
4838
4839$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4840
4841fi
4842
4843fi
4844done
4845
4846
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4848$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4849if ${ac_cv_path_GREP+:} false; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  if test -z "$GREP"; then
4853  ac_path_GREP_found=false
4854  # Loop through the user's path and test for each of PROGNAME-LIST
4855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4857do
4858  IFS=$as_save_IFS
4859  test -z "$as_dir" && as_dir=.
4860    for ac_prog in grep ggrep; do
4861    for ac_exec_ext in '' $ac_executable_extensions; do
4862      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4863      as_fn_executable_p "$ac_path_GREP" || continue
4864# Check for GNU ac_path_GREP and select it if it is found.
4865  # Check for GNU $ac_path_GREP
4866case `"$ac_path_GREP" --version 2>&1` in
4867*GNU*)
4868  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4869*)
4870  ac_count=0
4871  $as_echo_n 0123456789 >"conftest.in"
4872  while :
4873  do
4874    cat "conftest.in" "conftest.in" >"conftest.tmp"
4875    mv "conftest.tmp" "conftest.in"
4876    cp "conftest.in" "conftest.nl"
4877    $as_echo 'GREP' >> "conftest.nl"
4878    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4879    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4880    as_fn_arith $ac_count + 1 && ac_count=$as_val
4881    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4882      # Best one so far, save it but keep looking for a better one
4883      ac_cv_path_GREP="$ac_path_GREP"
4884      ac_path_GREP_max=$ac_count
4885    fi
4886    # 10*(2^10) chars as input seems more than enough
4887    test $ac_count -gt 10 && break
4888  done
4889  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4890esac
4891
4892      $ac_path_GREP_found && break 3
4893    done
4894  done
4895  done
4896IFS=$as_save_IFS
4897  if test -z "$ac_cv_path_GREP"; then
4898    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4899  fi
4900else
4901  ac_cv_path_GREP=$GREP
4902fi
4903
4904fi
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4906$as_echo "$ac_cv_path_GREP" >&6; }
4907 GREP="$ac_cv_path_GREP"
4908
4909
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4911$as_echo_n "checking for egrep... " >&6; }
4912if ${ac_cv_path_EGREP+:} false; then :
4913  $as_echo_n "(cached) " >&6
4914else
4915  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4916   then ac_cv_path_EGREP="$GREP -E"
4917   else
4918     if test -z "$EGREP"; then
4919  ac_path_EGREP_found=false
4920  # Loop through the user's path and test for each of PROGNAME-LIST
4921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4923do
4924  IFS=$as_save_IFS
4925  test -z "$as_dir" && as_dir=.
4926    for ac_prog in egrep; do
4927    for ac_exec_ext in '' $ac_executable_extensions; do
4928      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4929      as_fn_executable_p "$ac_path_EGREP" || continue
4930# Check for GNU ac_path_EGREP and select it if it is found.
4931  # Check for GNU $ac_path_EGREP
4932case `"$ac_path_EGREP" --version 2>&1` in
4933*GNU*)
4934  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4935*)
4936  ac_count=0
4937  $as_echo_n 0123456789 >"conftest.in"
4938  while :
4939  do
4940    cat "conftest.in" "conftest.in" >"conftest.tmp"
4941    mv "conftest.tmp" "conftest.in"
4942    cp "conftest.in" "conftest.nl"
4943    $as_echo 'EGREP' >> "conftest.nl"
4944    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946    as_fn_arith $ac_count + 1 && ac_count=$as_val
4947    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4948      # Best one so far, save it but keep looking for a better one
4949      ac_cv_path_EGREP="$ac_path_EGREP"
4950      ac_path_EGREP_max=$ac_count
4951    fi
4952    # 10*(2^10) chars as input seems more than enough
4953    test $ac_count -gt 10 && break
4954  done
4955  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956esac
4957
4958      $ac_path_EGREP_found && break 3
4959    done
4960  done
4961  done
4962IFS=$as_save_IFS
4963  if test -z "$ac_cv_path_EGREP"; then
4964    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4965  fi
4966else
4967  ac_cv_path_EGREP=$EGREP
4968fi
4969
4970   fi
4971fi
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4973$as_echo "$ac_cv_path_EGREP" >&6; }
4974 EGREP="$ac_cv_path_EGREP"
4975
4976
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4978$as_echo_n "checking for ANSI C header files... " >&6; }
4979if ${ac_cv_header_stdc+:} false; then :
4980  $as_echo_n "(cached) " >&6
4981else
4982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984#include <stdlib.h>
4985#include <stdarg.h>
4986#include <string.h>
4987#include <float.h>
4988
4989int
4990main ()
4991{
4992
4993  ;
4994  return 0;
4995}
4996_ACEOF
4997if ac_fn_c_try_compile "$LINENO"; then :
4998  ac_cv_header_stdc=yes
4999else
5000  ac_cv_header_stdc=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003
5004if test $ac_cv_header_stdc = yes; then
5005  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h.  */
5008#include <string.h>
5009
5010_ACEOF
5011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012  $EGREP "memchr" >/dev/null 2>&1; then :
5013
5014else
5015  ac_cv_header_stdc=no
5016fi
5017rm -f conftest*
5018
5019fi
5020
5021if test $ac_cv_header_stdc = yes; then
5022  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h.  */
5025#include <stdlib.h>
5026
5027_ACEOF
5028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5029  $EGREP "free" >/dev/null 2>&1; then :
5030
5031else
5032  ac_cv_header_stdc=no
5033fi
5034rm -f conftest*
5035
5036fi
5037
5038if test $ac_cv_header_stdc = yes; then
5039  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5040  if test "$cross_compiling" = yes; then :
5041  :
5042else
5043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h.  */
5045#include <ctype.h>
5046#include <stdlib.h>
5047#if ((' ' & 0x0FF) == 0x020)
5048# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5049# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5050#else
5051# define ISLOWER(c) \
5052		   (('a' <= (c) && (c) <= 'i') \
5053		     || ('j' <= (c) && (c) <= 'r') \
5054		     || ('s' <= (c) && (c) <= 'z'))
5055# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5056#endif
5057
5058#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5059int
5060main ()
5061{
5062  int i;
5063  for (i = 0; i < 256; i++)
5064    if (XOR (islower (i), ISLOWER (i))
5065	|| toupper (i) != TOUPPER (i))
5066      return 2;
5067  return 0;
5068}
5069_ACEOF
5070if ac_fn_c_try_run "$LINENO"; then :
5071
5072else
5073  ac_cv_header_stdc=no
5074fi
5075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5076  conftest.$ac_objext conftest.beam conftest.$ac_ext
5077fi
5078
5079fi
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5082$as_echo "$ac_cv_header_stdc" >&6; }
5083if test $ac_cv_header_stdc = yes; then
5084
5085$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5086
5087fi
5088
5089# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5090for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5091		  inttypes.h stdint.h unistd.h
5092do :
5093  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5094ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5095"
5096if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5097  cat >>confdefs.h <<_ACEOF
5098#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5099_ACEOF
5100
5101fi
5102
5103done
5104
5105
5106for ac_header in stdarg.h varargs.h
5107do :
5108  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5109ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5110if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5111  cat >>confdefs.h <<_ACEOF
5112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5113_ACEOF
5114 break
5115fi
5116
5117done
5118
5119
5120# Extract the first word of "awk", so it can be a program name with args.
5121set dummy awk; ac_word=$2
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123$as_echo_n "checking for $ac_word... " >&6; }
5124if ${ac_cv_path_AWK+:} false; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127  case $AWK in
5128  [\\/]* | ?:[\\/]*)
5129  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5130  ;;
5131  *)
5132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $PATH
5134do
5135  IFS=$as_save_IFS
5136  test -z "$as_dir" && as_dir=.
5137    for ac_exec_ext in '' $ac_executable_extensions; do
5138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139    ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141    break 2
5142  fi
5143done
5144  done
5145IFS=$as_save_IFS
5146
5147  ;;
5148esac
5149fi
5150AWK=$ac_cv_path_AWK
5151if test -n "$AWK"; then
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5153$as_echo "$AWK" >&6; }
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160# Extract the first word of "bash", so it can be a program name with args.
5161set dummy bash; ac_word=$2
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; }
5164if ${ac_cv_path_BASH+:} false; then :
5165  $as_echo_n "(cached) " >&6
5166else
5167  case $BASH in
5168  [\\/]* | ?:[\\/]*)
5169  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5170  ;;
5171  *)
5172  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175  IFS=$as_save_IFS
5176  test -z "$as_dir" && as_dir=.
5177    for ac_exec_ext in '' $ac_executable_extensions; do
5178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181    break 2
5182  fi
5183done
5184  done
5185IFS=$as_save_IFS
5186
5187  test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="sh"
5188  ;;
5189esac
5190fi
5191BASH=$ac_cv_path_BASH
5192if test -n "$BASH"; then
5193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5194$as_echo "$BASH" >&6; }
5195else
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197$as_echo "no" >&6; }
5198fi
5199
5200
5201# Extract the first word of "pkg-config", so it can be a program name with args.
5202set dummy pkg-config; ac_word=$2
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204$as_echo_n "checking for $ac_word... " >&6; }
5205if ${ac_cv_path_PKGCFG+:} false; then :
5206  $as_echo_n "(cached) " >&6
5207else
5208  case $PKGCFG in
5209  [\\/]* | ?:[\\/]*)
5210  ac_cv_path_PKGCFG="$PKGCFG" # Let the user override the test with a path.
5211  ;;
5212  *)
5213  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216  IFS=$as_save_IFS
5217  test -z "$as_dir" && as_dir=.
5218    for ac_exec_ext in '' $ac_executable_extensions; do
5219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220    ac_cv_path_PKGCFG="$as_dir/$ac_word$ac_exec_ext"
5221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222    break 2
5223  fi
5224done
5225  done
5226IFS=$as_save_IFS
5227
5228  ;;
5229esac
5230fi
5231PKGCFG=$ac_cv_path_PKGCFG
5232if test -n "$PKGCFG"; then
5233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCFG" >&5
5234$as_echo "$PKGCFG" >&6; }
5235else
5236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }
5238fi
5239
5240
5241# Extract the first word of "convert", so it can be a program name with args.
5242set dummy convert; ac_word=$2
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
5245if ${ac_cv_path_CONVERT+:} false; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  case $CONVERT in
5249  [\\/]* | ?:[\\/]*)
5250  ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path.
5251  ;;
5252  *)
5253  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254for as_dir in $PATH
5255do
5256  IFS=$as_save_IFS
5257  test -z "$as_dir" && as_dir=.
5258    for ac_exec_ext in '' $ac_executable_extensions; do
5259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260    ac_cv_path_CONVERT="$as_dir/$ac_word$ac_exec_ext"
5261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262    break 2
5263  fi
5264done
5265  done
5266IFS=$as_save_IFS
5267
5268  ;;
5269esac
5270fi
5271CONVERT=$ac_cv_path_CONVERT
5272if test -n "$CONVERT"; then
5273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5274$as_echo "$CONVERT" >&6; }
5275else
5276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277$as_echo "no" >&6; }
5278fi
5279
5280
5281# Extract the first word of "makeinfo", so it can be a program name with args.
5282set dummy makeinfo; ac_word=$2
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284$as_echo_n "checking for $ac_word... " >&6; }
5285if ${ac_cv_path_MAKEINFO+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  case $MAKEINFO in
5289  [\\/]* | ?:[\\/]*)
5290  ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5291  ;;
5292  *)
5293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296  IFS=$as_save_IFS
5297  test -z "$as_dir" && as_dir=.
5298    for ac_exec_ext in '' $ac_executable_extensions; do
5299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300    ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302    break 2
5303  fi
5304done
5305  done
5306IFS=$as_save_IFS
5307
5308  ;;
5309esac
5310fi
5311MAKEINFO=$ac_cv_path_MAKEINFO
5312if test -n "$MAKEINFO"; then
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5314$as_echo "$MAKEINFO" >&6; }
5315else
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
5318fi
5319
5320
5321# Extract the first word of "gtk-config", so it can be a program name with args.
5322set dummy gtk-config; ac_word=$2
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324$as_echo_n "checking for $ac_word... " >&6; }
5325if ${ac_cv_path_GTKCONF+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  case $GTKCONF in
5329  [\\/]* | ?:[\\/]*)
5330  ac_cv_path_GTKCONF="$GTKCONF" # Let the user override the test with a path.
5331  ;;
5332  *)
5333  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336  IFS=$as_save_IFS
5337  test -z "$as_dir" && as_dir=.
5338    for ac_exec_ext in '' $ac_executable_extensions; do
5339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340    ac_cv_path_GTKCONF="$as_dir/$ac_word$ac_exec_ext"
5341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342    break 2
5343  fi
5344done
5345  done
5346IFS=$as_save_IFS
5347
5348  ;;
5349esac
5350fi
5351GTKCONF=$ac_cv_path_GTKCONF
5352if test -n "$GTKCONF"; then
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKCONF" >&5
5354$as_echo "$GTKCONF" >&6; }
5355else
5356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357$as_echo "no" >&6; }
5358fi
5359
5360
5361
5362#AC_DISABLE_SHARED
5363case `pwd` in
5364  *\ * | *\	*)
5365    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5366$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5367esac
5368
5369
5370
5371macro_version='2.4.2'
5372macro_revision='1.3337'
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386ltmain="$ac_aux_dir/ltmain.sh"
5387
5388# Make sure we can run config.sub.
5389$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5390  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5393$as_echo_n "checking build system type... " >&6; }
5394if ${ac_cv_build+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  ac_build_alias=$build_alias
5398test "x$ac_build_alias" = x &&
5399  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5400test "x$ac_build_alias" = x &&
5401  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5402ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5403  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5404
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5407$as_echo "$ac_cv_build" >&6; }
5408case $ac_cv_build in
5409*-*-*) ;;
5410*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5411esac
5412build=$ac_cv_build
5413ac_save_IFS=$IFS; IFS='-'
5414set x $ac_cv_build
5415shift
5416build_cpu=$1
5417build_vendor=$2
5418shift; shift
5419# Remember, the first character of IFS is used to create $*,
5420# except with old shells:
5421build_os=$*
5422IFS=$ac_save_IFS
5423case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5424
5425
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5427$as_echo_n "checking host system type... " >&6; }
5428if ${ac_cv_host+:} false; then :
5429  $as_echo_n "(cached) " >&6
5430else
5431  if test "x$host_alias" = x; then
5432  ac_cv_host=$ac_cv_build
5433else
5434  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5435    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5436fi
5437
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5440$as_echo "$ac_cv_host" >&6; }
5441case $ac_cv_host in
5442*-*-*) ;;
5443*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5444esac
5445host=$ac_cv_host
5446ac_save_IFS=$IFS; IFS='-'
5447set x $ac_cv_host
5448shift
5449host_cpu=$1
5450host_vendor=$2
5451shift; shift
5452# Remember, the first character of IFS is used to create $*,
5453# except with old shells:
5454host_os=$*
5455IFS=$ac_save_IFS
5456case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5457
5458
5459# Backslashify metacharacters that are still active within
5460# double-quoted strings.
5461sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5462
5463# Same as above, but do not quote variable references.
5464double_quote_subst='s/\(["`\\]\)/\\\1/g'
5465
5466# Sed substitution to delay expansion of an escaped shell variable in a
5467# double_quote_subst'ed string.
5468delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5469
5470# Sed substitution to delay expansion of an escaped single quote.
5471delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5472
5473# Sed substitution to avoid accidental globbing in evaled expressions
5474no_glob_subst='s/\*/\\\*/g'
5475
5476ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5477ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5478ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5479
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5481$as_echo_n "checking how to print strings... " >&6; }
5482# Test print first, because it will be a builtin if present.
5483if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5484   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5485  ECHO='print -r --'
5486elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5487  ECHO='printf %s\n'
5488else
5489  # Use this function as a fallback that always works.
5490  func_fallback_echo ()
5491  {
5492    eval 'cat <<_LTECHO_EOF
5493$1
5494_LTECHO_EOF'
5495  }
5496  ECHO='func_fallback_echo'
5497fi
5498
5499# func_echo_all arg...
5500# Invoke $ECHO with all args, space-separated.
5501func_echo_all ()
5502{
5503    $ECHO ""
5504}
5505
5506case "$ECHO" in
5507  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5508$as_echo "printf" >&6; } ;;
5509  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5510$as_echo "print -r" >&6; } ;;
5511  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5512$as_echo "cat" >&6; } ;;
5513esac
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5529$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5530if ${ac_cv_path_SED+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5534     for ac_i in 1 2 3 4 5 6 7; do
5535       ac_script="$ac_script$as_nl$ac_script"
5536     done
5537     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5538     { ac_script=; unset ac_script;}
5539     if test -z "$SED"; then
5540  ac_path_SED_found=false
5541  # Loop through the user's path and test for each of PROGNAME-LIST
5542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543for as_dir in $PATH
5544do
5545  IFS=$as_save_IFS
5546  test -z "$as_dir" && as_dir=.
5547    for ac_prog in sed gsed; do
5548    for ac_exec_ext in '' $ac_executable_extensions; do
5549      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5550      as_fn_executable_p "$ac_path_SED" || continue
5551# Check for GNU ac_path_SED and select it if it is found.
5552  # Check for GNU $ac_path_SED
5553case `"$ac_path_SED" --version 2>&1` in
5554*GNU*)
5555  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5556*)
5557  ac_count=0
5558  $as_echo_n 0123456789 >"conftest.in"
5559  while :
5560  do
5561    cat "conftest.in" "conftest.in" >"conftest.tmp"
5562    mv "conftest.tmp" "conftest.in"
5563    cp "conftest.in" "conftest.nl"
5564    $as_echo '' >> "conftest.nl"
5565    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5566    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5567    as_fn_arith $ac_count + 1 && ac_count=$as_val
5568    if test $ac_count -gt ${ac_path_SED_max-0}; then
5569      # Best one so far, save it but keep looking for a better one
5570      ac_cv_path_SED="$ac_path_SED"
5571      ac_path_SED_max=$ac_count
5572    fi
5573    # 10*(2^10) chars as input seems more than enough
5574    test $ac_count -gt 10 && break
5575  done
5576  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5577esac
5578
5579      $ac_path_SED_found && break 3
5580    done
5581  done
5582  done
5583IFS=$as_save_IFS
5584  if test -z "$ac_cv_path_SED"; then
5585    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5586  fi
5587else
5588  ac_cv_path_SED=$SED
5589fi
5590
5591fi
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5593$as_echo "$ac_cv_path_SED" >&6; }
5594 SED="$ac_cv_path_SED"
5595  rm -f conftest.sed
5596
5597test -z "$SED" && SED=sed
5598Xsed="$SED -e 1s/^X//"
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5611$as_echo_n "checking for fgrep... " >&6; }
5612if ${ac_cv_path_FGREP+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5616   then ac_cv_path_FGREP="$GREP -F"
5617   else
5618     if test -z "$FGREP"; then
5619  ac_path_FGREP_found=false
5620  # Loop through the user's path and test for each of PROGNAME-LIST
5621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5623do
5624  IFS=$as_save_IFS
5625  test -z "$as_dir" && as_dir=.
5626    for ac_prog in fgrep; do
5627    for ac_exec_ext in '' $ac_executable_extensions; do
5628      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5629      as_fn_executable_p "$ac_path_FGREP" || continue
5630# Check for GNU ac_path_FGREP and select it if it is found.
5631  # Check for GNU $ac_path_FGREP
5632case `"$ac_path_FGREP" --version 2>&1` in
5633*GNU*)
5634  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5635*)
5636  ac_count=0
5637  $as_echo_n 0123456789 >"conftest.in"
5638  while :
5639  do
5640    cat "conftest.in" "conftest.in" >"conftest.tmp"
5641    mv "conftest.tmp" "conftest.in"
5642    cp "conftest.in" "conftest.nl"
5643    $as_echo 'FGREP' >> "conftest.nl"
5644    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5645    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5646    as_fn_arith $ac_count + 1 && ac_count=$as_val
5647    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5648      # Best one so far, save it but keep looking for a better one
5649      ac_cv_path_FGREP="$ac_path_FGREP"
5650      ac_path_FGREP_max=$ac_count
5651    fi
5652    # 10*(2^10) chars as input seems more than enough
5653    test $ac_count -gt 10 && break
5654  done
5655  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5656esac
5657
5658      $ac_path_FGREP_found && break 3
5659    done
5660  done
5661  done
5662IFS=$as_save_IFS
5663  if test -z "$ac_cv_path_FGREP"; then
5664    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5665  fi
5666else
5667  ac_cv_path_FGREP=$FGREP
5668fi
5669
5670   fi
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5673$as_echo "$ac_cv_path_FGREP" >&6; }
5674 FGREP="$ac_cv_path_FGREP"
5675
5676
5677test -z "$GREP" && GREP=grep
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697# Check whether --with-gnu-ld was given.
5698if test "${with_gnu_ld+set}" = set; then :
5699  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5700else
5701  with_gnu_ld=no
5702fi
5703
5704ac_prog=ld
5705if test "$GCC" = yes; then
5706  # Check if gcc -print-prog-name=ld gives a path.
5707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5708$as_echo_n "checking for ld used by $CC... " >&6; }
5709  case $host in
5710  *-*-mingw*)
5711    # gcc leaves a trailing carriage return which upsets mingw
5712    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5713  *)
5714    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5715  esac
5716  case $ac_prog in
5717    # Accept absolute paths.
5718    [\\/]* | ?:[\\/]*)
5719      re_direlt='/[^/][^/]*/\.\./'
5720      # Canonicalize the pathname of ld
5721      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5722      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5723	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5724      done
5725      test -z "$LD" && LD="$ac_prog"
5726      ;;
5727  "")
5728    # If it fails, then pretend we aren't using GCC.
5729    ac_prog=ld
5730    ;;
5731  *)
5732    # If it is relative, then search for the first ld in PATH.
5733    with_gnu_ld=unknown
5734    ;;
5735  esac
5736elif test "$with_gnu_ld" = yes; then
5737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5738$as_echo_n "checking for GNU ld... " >&6; }
5739else
5740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5741$as_echo_n "checking for non-GNU ld... " >&6; }
5742fi
5743if ${lt_cv_path_LD+:} false; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746  if test -z "$LD"; then
5747  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5748  for ac_dir in $PATH; do
5749    IFS="$lt_save_ifs"
5750    test -z "$ac_dir" && ac_dir=.
5751    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5752      lt_cv_path_LD="$ac_dir/$ac_prog"
5753      # Check to see if the program is GNU ld.  I'd rather use --version,
5754      # but apparently some variants of GNU ld only accept -v.
5755      # Break only if it was the GNU/non-GNU ld that we prefer.
5756      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5757      *GNU* | *'with BFD'*)
5758	test "$with_gnu_ld" != no && break
5759	;;
5760      *)
5761	test "$with_gnu_ld" != yes && break
5762	;;
5763      esac
5764    fi
5765  done
5766  IFS="$lt_save_ifs"
5767else
5768  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5769fi
5770fi
5771
5772LD="$lt_cv_path_LD"
5773if test -n "$LD"; then
5774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5775$as_echo "$LD" >&6; }
5776else
5777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778$as_echo "no" >&6; }
5779fi
5780test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5782$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5783if ${lt_cv_prog_gnu_ld+:} false; then :
5784  $as_echo_n "(cached) " >&6
5785else
5786  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5787case `$LD -v 2>&1 </dev/null` in
5788*GNU* | *'with BFD'*)
5789  lt_cv_prog_gnu_ld=yes
5790  ;;
5791*)
5792  lt_cv_prog_gnu_ld=no
5793  ;;
5794esac
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5797$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5798with_gnu_ld=$lt_cv_prog_gnu_ld
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5809$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5810if ${lt_cv_path_NM+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  if test -n "$NM"; then
5814  # Let the user override the test.
5815  lt_cv_path_NM="$NM"
5816else
5817  lt_nm_to_check="${ac_tool_prefix}nm"
5818  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5819    lt_nm_to_check="$lt_nm_to_check nm"
5820  fi
5821  for lt_tmp_nm in $lt_nm_to_check; do
5822    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5823    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5824      IFS="$lt_save_ifs"
5825      test -z "$ac_dir" && ac_dir=.
5826      tmp_nm="$ac_dir/$lt_tmp_nm"
5827      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5828	# Check to see if the nm accepts a BSD-compat flag.
5829	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5830	#   nm: unknown option "B" ignored
5831	# Tru64's nm complains that /dev/null is an invalid object file
5832	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5833	*/dev/null* | *'Invalid file or object type'*)
5834	  lt_cv_path_NM="$tmp_nm -B"
5835	  break
5836	  ;;
5837	*)
5838	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5839	  */dev/null*)
5840	    lt_cv_path_NM="$tmp_nm -p"
5841	    break
5842	    ;;
5843	  *)
5844	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5845	    continue # so that we can try to find one that supports BSD flags
5846	    ;;
5847	  esac
5848	  ;;
5849	esac
5850      fi
5851    done
5852    IFS="$lt_save_ifs"
5853  done
5854  : ${lt_cv_path_NM=no}
5855fi
5856fi
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5858$as_echo "$lt_cv_path_NM" >&6; }
5859if test "$lt_cv_path_NM" != "no"; then
5860  NM="$lt_cv_path_NM"
5861else
5862  # Didn't find any BSD compatible name lister, look for dumpbin.
5863  if test -n "$DUMPBIN"; then :
5864    # Let the user override the test.
5865  else
5866    if test -n "$ac_tool_prefix"; then
5867  for ac_prog in dumpbin "link -dump"
5868  do
5869    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872$as_echo_n "checking for $ac_word... " >&6; }
5873if ${ac_cv_prog_DUMPBIN+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  if test -n "$DUMPBIN"; then
5877  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882  IFS=$as_save_IFS
5883  test -z "$as_dir" && as_dir=.
5884    for ac_exec_ext in '' $ac_executable_extensions; do
5885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888    break 2
5889  fi
5890done
5891  done
5892IFS=$as_save_IFS
5893
5894fi
5895fi
5896DUMPBIN=$ac_cv_prog_DUMPBIN
5897if test -n "$DUMPBIN"; then
5898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5899$as_echo "$DUMPBIN" >&6; }
5900else
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
5903fi
5904
5905
5906    test -n "$DUMPBIN" && break
5907  done
5908fi
5909if test -z "$DUMPBIN"; then
5910  ac_ct_DUMPBIN=$DUMPBIN
5911  for ac_prog in dumpbin "link -dump"
5912do
5913  # Extract the first word of "$ac_prog", so it can be a program name with args.
5914set dummy $ac_prog; ac_word=$2
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916$as_echo_n "checking for $ac_word... " >&6; }
5917if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5918  $as_echo_n "(cached) " >&6
5919else
5920  if test -n "$ac_ct_DUMPBIN"; then
5921  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926  IFS=$as_save_IFS
5927  test -z "$as_dir" && as_dir=.
5928    for ac_exec_ext in '' $ac_executable_extensions; do
5929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932    break 2
5933  fi
5934done
5935  done
5936IFS=$as_save_IFS
5937
5938fi
5939fi
5940ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5941if test -n "$ac_ct_DUMPBIN"; then
5942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5943$as_echo "$ac_ct_DUMPBIN" >&6; }
5944else
5945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946$as_echo "no" >&6; }
5947fi
5948
5949
5950  test -n "$ac_ct_DUMPBIN" && break
5951done
5952
5953  if test "x$ac_ct_DUMPBIN" = x; then
5954    DUMPBIN=":"
5955  else
5956    case $cross_compiling:$ac_tool_warned in
5957yes:)
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5960ac_tool_warned=yes ;;
5961esac
5962    DUMPBIN=$ac_ct_DUMPBIN
5963  fi
5964fi
5965
5966    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5967    *COFF*)
5968      DUMPBIN="$DUMPBIN -symbols"
5969      ;;
5970    *)
5971      DUMPBIN=:
5972      ;;
5973    esac
5974  fi
5975
5976  if test "$DUMPBIN" != ":"; then
5977    NM="$DUMPBIN"
5978  fi
5979fi
5980test -z "$NM" && NM=nm
5981
5982
5983
5984
5985
5986
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5988$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5989if ${lt_cv_nm_interface+:} false; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  lt_cv_nm_interface="BSD nm"
5993  echo "int some_variable = 0;" > conftest.$ac_ext
5994  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5995  (eval "$ac_compile" 2>conftest.err)
5996  cat conftest.err >&5
5997  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5998  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5999  cat conftest.err >&5
6000  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6001  cat conftest.out >&5
6002  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6003    lt_cv_nm_interface="MS dumpbin"
6004  fi
6005  rm -f conftest*
6006fi
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6008$as_echo "$lt_cv_nm_interface" >&6; }
6009
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6011$as_echo_n "checking whether ln -s works... " >&6; }
6012LN_S=$as_ln_s
6013if test "$LN_S" = "ln -s"; then
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6015$as_echo "yes" >&6; }
6016else
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6018$as_echo "no, using $LN_S" >&6; }
6019fi
6020
6021# find the maximum length of command line arguments
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6023$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6024if ${lt_cv_sys_max_cmd_len+:} false; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027    i=0
6028  teststring="ABCD"
6029
6030  case $build_os in
6031  msdosdjgpp*)
6032    # On DJGPP, this test can blow up pretty badly due to problems in libc
6033    # (any single argument exceeding 2000 bytes causes a buffer overrun
6034    # during glob expansion).  Even if it were fixed, the result of this
6035    # check would be larger than it should be.
6036    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6037    ;;
6038
6039  gnu*)
6040    # Under GNU Hurd, this test is not required because there is
6041    # no limit to the length of command line arguments.
6042    # Libtool will interpret -1 as no limit whatsoever
6043    lt_cv_sys_max_cmd_len=-1;
6044    ;;
6045
6046  cygwin* | mingw* | cegcc*)
6047    # On Win9x/ME, this test blows up -- it succeeds, but takes
6048    # about 5 minutes as the teststring grows exponentially.
6049    # Worse, since 9x/ME are not pre-emptively multitasking,
6050    # you end up with a "frozen" computer, even though with patience
6051    # the test eventually succeeds (with a max line length of 256k).
6052    # Instead, let's just punt: use the minimum linelength reported by
6053    # all of the supported platforms: 8192 (on NT/2K/XP).
6054    lt_cv_sys_max_cmd_len=8192;
6055    ;;
6056
6057  mint*)
6058    # On MiNT this can take a long time and run out of memory.
6059    lt_cv_sys_max_cmd_len=8192;
6060    ;;
6061
6062  amigaos*)
6063    # On AmigaOS with pdksh, this test takes hours, literally.
6064    # So we just punt and use a minimum line length of 8192.
6065    lt_cv_sys_max_cmd_len=8192;
6066    ;;
6067
6068  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6069    # This has been around since 386BSD, at least.  Likely further.
6070    if test -x /sbin/sysctl; then
6071      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6072    elif test -x /usr/sbin/sysctl; then
6073      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6074    else
6075      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6076    fi
6077    # And add a safety zone
6078    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6079    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6080    ;;
6081
6082  interix*)
6083    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6084    lt_cv_sys_max_cmd_len=196608
6085    ;;
6086
6087  os2*)
6088    # The test takes a long time on OS/2.
6089    lt_cv_sys_max_cmd_len=8192
6090    ;;
6091
6092  osf*)
6093    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6094    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6095    # nice to cause kernel panics so lets avoid the loop below.
6096    # First set a reasonable default.
6097    lt_cv_sys_max_cmd_len=16384
6098    #
6099    if test -x /sbin/sysconfig; then
6100      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6101        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6102      esac
6103    fi
6104    ;;
6105  sco3.2v5*)
6106    lt_cv_sys_max_cmd_len=102400
6107    ;;
6108  sysv5* | sco5v6* | sysv4.2uw2*)
6109    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6110    if test -n "$kargmax"; then
6111      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6112    else
6113      lt_cv_sys_max_cmd_len=32768
6114    fi
6115    ;;
6116  *)
6117    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6118    if test -n "$lt_cv_sys_max_cmd_len" && \
6119	test undefined != "$lt_cv_sys_max_cmd_len"; then
6120      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6121      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6122    else
6123      # Make teststring a little bigger before we do anything with it.
6124      # a 1K string should be a reasonable start.
6125      for i in 1 2 3 4 5 6 7 8 ; do
6126        teststring=$teststring$teststring
6127      done
6128      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6129      # If test is not a shell built-in, we'll probably end up computing a
6130      # maximum length that is only half of the actual maximum length, but
6131      # we can't tell.
6132      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6133	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6134	      test $i != 17 # 1/2 MB should be enough
6135      do
6136        i=`expr $i + 1`
6137        teststring=$teststring$teststring
6138      done
6139      # Only check the string length outside the loop.
6140      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6141      teststring=
6142      # Add a significant safety factor because C++ compilers can tack on
6143      # massive amounts of additional arguments before passing them to the
6144      # linker.  It appears as though 1/2 is a usable value.
6145      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6146    fi
6147    ;;
6148  esac
6149
6150fi
6151
6152if test -n $lt_cv_sys_max_cmd_len ; then
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6154$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6155else
6156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6157$as_echo "none" >&6; }
6158fi
6159max_cmd_len=$lt_cv_sys_max_cmd_len
6160
6161
6162
6163
6164
6165
6166: ${CP="cp -f"}
6167: ${MV="mv -f"}
6168: ${RM="rm -f"}
6169
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6171$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6172# Try some XSI features
6173xsi_shell=no
6174( _lt_dummy="a/b/c"
6175  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6176      = c,a/b,b/c, \
6177    && eval 'test $(( 1 + 1 )) -eq 2 \
6178    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6179  && xsi_shell=yes
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6181$as_echo "$xsi_shell" >&6; }
6182
6183
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6185$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6186lt_shell_append=no
6187( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6188    >/dev/null 2>&1 \
6189  && lt_shell_append=yes
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6191$as_echo "$lt_shell_append" >&6; }
6192
6193
6194if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6195  lt_unset=unset
6196else
6197  lt_unset=false
6198fi
6199
6200
6201
6202
6203
6204# test EBCDIC or ASCII
6205case `echo X|tr X '\101'` in
6206 A) # ASCII based system
6207    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6208  lt_SP2NL='tr \040 \012'
6209  lt_NL2SP='tr \015\012 \040\040'
6210  ;;
6211 *) # EBCDIC based system
6212  lt_SP2NL='tr \100 \n'
6213  lt_NL2SP='tr \r\n \100\100'
6214  ;;
6215esac
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6226$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6227if ${lt_cv_to_host_file_cmd+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  case $host in
6231  *-*-mingw* )
6232    case $build in
6233      *-*-mingw* ) # actually msys
6234        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6235        ;;
6236      *-*-cygwin* )
6237        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6238        ;;
6239      * ) # otherwise, assume *nix
6240        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6241        ;;
6242    esac
6243    ;;
6244  *-*-cygwin* )
6245    case $build in
6246      *-*-mingw* ) # actually msys
6247        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6248        ;;
6249      *-*-cygwin* )
6250        lt_cv_to_host_file_cmd=func_convert_file_noop
6251        ;;
6252      * ) # otherwise, assume *nix
6253        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6254        ;;
6255    esac
6256    ;;
6257  * ) # unhandled hosts (and "normal" native builds)
6258    lt_cv_to_host_file_cmd=func_convert_file_noop
6259    ;;
6260esac
6261
6262fi
6263
6264to_host_file_cmd=$lt_cv_to_host_file_cmd
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6266$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6267
6268
6269
6270
6271
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6273$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6274if ${lt_cv_to_tool_file_cmd+:} false; then :
6275  $as_echo_n "(cached) " >&6
6276else
6277  #assume ordinary cross tools, or native build.
6278lt_cv_to_tool_file_cmd=func_convert_file_noop
6279case $host in
6280  *-*-mingw* )
6281    case $build in
6282      *-*-mingw* ) # actually msys
6283        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6284        ;;
6285    esac
6286    ;;
6287esac
6288
6289fi
6290
6291to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6293$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6294
6295
6296
6297
6298
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6300$as_echo_n "checking for $LD option to reload object files... " >&6; }
6301if ${lt_cv_ld_reload_flag+:} false; then :
6302  $as_echo_n "(cached) " >&6
6303else
6304  lt_cv_ld_reload_flag='-r'
6305fi
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6307$as_echo "$lt_cv_ld_reload_flag" >&6; }
6308reload_flag=$lt_cv_ld_reload_flag
6309case $reload_flag in
6310"" | " "*) ;;
6311*) reload_flag=" $reload_flag" ;;
6312esac
6313reload_cmds='$LD$reload_flag -o $output$reload_objs'
6314case $host_os in
6315  cygwin* | mingw* | pw32* | cegcc*)
6316    if test "$GCC" != yes; then
6317      reload_cmds=false
6318    fi
6319    ;;
6320  darwin*)
6321    if test "$GCC" = yes; then
6322      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6323    else
6324      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6325    fi
6326    ;;
6327esac
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337if test -n "$ac_tool_prefix"; then
6338  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6339set dummy ${ac_tool_prefix}objdump; ac_word=$2
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341$as_echo_n "checking for $ac_word... " >&6; }
6342if ${ac_cv_prog_OBJDUMP+:} false; then :
6343  $as_echo_n "(cached) " >&6
6344else
6345  if test -n "$OBJDUMP"; then
6346  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351  IFS=$as_save_IFS
6352  test -z "$as_dir" && as_dir=.
6353    for ac_exec_ext in '' $ac_executable_extensions; do
6354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357    break 2
6358  fi
6359done
6360  done
6361IFS=$as_save_IFS
6362
6363fi
6364fi
6365OBJDUMP=$ac_cv_prog_OBJDUMP
6366if test -n "$OBJDUMP"; then
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6368$as_echo "$OBJDUMP" >&6; }
6369else
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371$as_echo "no" >&6; }
6372fi
6373
6374
6375fi
6376if test -z "$ac_cv_prog_OBJDUMP"; then
6377  ac_ct_OBJDUMP=$OBJDUMP
6378  # Extract the first word of "objdump", so it can be a program name with args.
6379set dummy objdump; ac_word=$2
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381$as_echo_n "checking for $ac_word... " >&6; }
6382if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  if test -n "$ac_ct_OBJDUMP"; then
6386  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391  IFS=$as_save_IFS
6392  test -z "$as_dir" && as_dir=.
6393    for ac_exec_ext in '' $ac_executable_extensions; do
6394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397    break 2
6398  fi
6399done
6400  done
6401IFS=$as_save_IFS
6402
6403fi
6404fi
6405ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6406if test -n "$ac_ct_OBJDUMP"; then
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6408$as_echo "$ac_ct_OBJDUMP" >&6; }
6409else
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414  if test "x$ac_ct_OBJDUMP" = x; then
6415    OBJDUMP="false"
6416  else
6417    case $cross_compiling:$ac_tool_warned in
6418yes:)
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421ac_tool_warned=yes ;;
6422esac
6423    OBJDUMP=$ac_ct_OBJDUMP
6424  fi
6425else
6426  OBJDUMP="$ac_cv_prog_OBJDUMP"
6427fi
6428
6429test -z "$OBJDUMP" && OBJDUMP=objdump
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6440$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6441if ${lt_cv_deplibs_check_method+:} false; then :
6442  $as_echo_n "(cached) " >&6
6443else
6444  lt_cv_file_magic_cmd='$MAGIC_CMD'
6445lt_cv_file_magic_test_file=
6446lt_cv_deplibs_check_method='unknown'
6447# Need to set the preceding variable on all platforms that support
6448# interlibrary dependencies.
6449# 'none' -- dependencies not supported.
6450# `unknown' -- same as none, but documents that we really don't know.
6451# 'pass_all' -- all dependencies passed with no checks.
6452# 'test_compile' -- check by making test program.
6453# 'file_magic [[regex]]' -- check by looking for files in library path
6454# which responds to the $file_magic_cmd with a given extended regex.
6455# If you have `file' or equivalent on your system and you're not sure
6456# whether `pass_all' will *always* work, you probably want this one.
6457
6458case $host_os in
6459aix[4-9]*)
6460  lt_cv_deplibs_check_method=pass_all
6461  ;;
6462
6463beos*)
6464  lt_cv_deplibs_check_method=pass_all
6465  ;;
6466
6467bsdi[45]*)
6468  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6469  lt_cv_file_magic_cmd='/usr/bin/file -L'
6470  lt_cv_file_magic_test_file=/shlib/libc.so
6471  ;;
6472
6473cygwin*)
6474  # func_win32_libid is a shell function defined in ltmain.sh
6475  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6476  lt_cv_file_magic_cmd='func_win32_libid'
6477  ;;
6478
6479mingw* | pw32*)
6480  # Base MSYS/MinGW do not provide the 'file' command needed by
6481  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6482  # unless we find 'file', for example because we are cross-compiling.
6483  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6484  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6485    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6486    lt_cv_file_magic_cmd='func_win32_libid'
6487  else
6488    # Keep this pattern in sync with the one in func_win32_libid.
6489    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6490    lt_cv_file_magic_cmd='$OBJDUMP -f'
6491  fi
6492  ;;
6493
6494cegcc*)
6495  # use the weaker test based on 'objdump'. See mingw*.
6496  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6497  lt_cv_file_magic_cmd='$OBJDUMP -f'
6498  ;;
6499
6500darwin* | rhapsody*)
6501  lt_cv_deplibs_check_method=pass_all
6502  ;;
6503
6504freebsd* | dragonfly*)
6505  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6506    case $host_cpu in
6507    i*86 )
6508      # Not sure whether the presence of OpenBSD here was a mistake.
6509      # Let's accept both of them until this is cleared up.
6510      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6511      lt_cv_file_magic_cmd=/usr/bin/file
6512      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6513      ;;
6514    esac
6515  else
6516    lt_cv_deplibs_check_method=pass_all
6517  fi
6518  ;;
6519
6520haiku*)
6521  lt_cv_deplibs_check_method=pass_all
6522  ;;
6523
6524hpux10.20* | hpux11*)
6525  lt_cv_file_magic_cmd=/usr/bin/file
6526  case $host_cpu in
6527  ia64*)
6528    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6529    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6530    ;;
6531  hppa*64*)
6532    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]'
6533    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6534    ;;
6535  *)
6536    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6537    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6538    ;;
6539  esac
6540  ;;
6541
6542interix[3-9]*)
6543  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6544  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6545  ;;
6546
6547irix5* | irix6* | nonstopux*)
6548  case $LD in
6549  *-32|*"-32 ") libmagic=32-bit;;
6550  *-n32|*"-n32 ") libmagic=N32;;
6551  *-64|*"-64 ") libmagic=64-bit;;
6552  *) libmagic=never-match;;
6553  esac
6554  lt_cv_deplibs_check_method=pass_all
6555  ;;
6556
6557# This must be glibc/ELF.
6558linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6559  lt_cv_deplibs_check_method=pass_all
6560  ;;
6561
6562netbsd* | netbsdelf*-gnu)
6563  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6564    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6565  else
6566    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6567  fi
6568  ;;
6569
6570newos6*)
6571  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6572  lt_cv_file_magic_cmd=/usr/bin/file
6573  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6574  ;;
6575
6576*nto* | *qnx*)
6577  lt_cv_deplibs_check_method=pass_all
6578  ;;
6579
6580openbsd*)
6581  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6582    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6583  else
6584    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6585  fi
6586  ;;
6587
6588osf3* | osf4* | osf5*)
6589  lt_cv_deplibs_check_method=pass_all
6590  ;;
6591
6592rdos*)
6593  lt_cv_deplibs_check_method=pass_all
6594  ;;
6595
6596solaris*)
6597  lt_cv_deplibs_check_method=pass_all
6598  ;;
6599
6600sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6601  lt_cv_deplibs_check_method=pass_all
6602  ;;
6603
6604sysv4 | sysv4.3*)
6605  case $host_vendor in
6606  motorola)
6607    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]'
6608    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6609    ;;
6610  ncr)
6611    lt_cv_deplibs_check_method=pass_all
6612    ;;
6613  sequent)
6614    lt_cv_file_magic_cmd='/bin/file'
6615    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6616    ;;
6617  sni)
6618    lt_cv_file_magic_cmd='/bin/file'
6619    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6620    lt_cv_file_magic_test_file=/lib/libc.so
6621    ;;
6622  siemens)
6623    lt_cv_deplibs_check_method=pass_all
6624    ;;
6625  pc)
6626    lt_cv_deplibs_check_method=pass_all
6627    ;;
6628  esac
6629  ;;
6630
6631tpf*)
6632  lt_cv_deplibs_check_method=pass_all
6633  ;;
6634esac
6635
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6638$as_echo "$lt_cv_deplibs_check_method" >&6; }
6639
6640file_magic_glob=
6641want_nocaseglob=no
6642if test "$build" = "$host"; then
6643  case $host_os in
6644  mingw* | pw32*)
6645    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6646      want_nocaseglob=yes
6647    else
6648      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6649    fi
6650    ;;
6651  esac
6652fi
6653
6654file_magic_cmd=$lt_cv_file_magic_cmd
6655deplibs_check_method=$lt_cv_deplibs_check_method
6656test -z "$deplibs_check_method" && deplibs_check_method=unknown
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679if test -n "$ac_tool_prefix"; then
6680  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6681set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683$as_echo_n "checking for $ac_word... " >&6; }
6684if ${ac_cv_prog_DLLTOOL+:} false; then :
6685  $as_echo_n "(cached) " >&6
6686else
6687  if test -n "$DLLTOOL"; then
6688  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6689else
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693  IFS=$as_save_IFS
6694  test -z "$as_dir" && as_dir=.
6695    for ac_exec_ext in '' $ac_executable_extensions; do
6696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699    break 2
6700  fi
6701done
6702  done
6703IFS=$as_save_IFS
6704
6705fi
6706fi
6707DLLTOOL=$ac_cv_prog_DLLTOOL
6708if test -n "$DLLTOOL"; then
6709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6710$as_echo "$DLLTOOL" >&6; }
6711else
6712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713$as_echo "no" >&6; }
6714fi
6715
6716
6717fi
6718if test -z "$ac_cv_prog_DLLTOOL"; then
6719  ac_ct_DLLTOOL=$DLLTOOL
6720  # Extract the first word of "dlltool", so it can be a program name with args.
6721set dummy dlltool; ac_word=$2
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723$as_echo_n "checking for $ac_word... " >&6; }
6724if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6725  $as_echo_n "(cached) " >&6
6726else
6727  if test -n "$ac_ct_DLLTOOL"; then
6728  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733  IFS=$as_save_IFS
6734  test -z "$as_dir" && as_dir=.
6735    for ac_exec_ext in '' $ac_executable_extensions; do
6736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739    break 2
6740  fi
6741done
6742  done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6748if test -n "$ac_ct_DLLTOOL"; then
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6750$as_echo "$ac_ct_DLLTOOL" >&6; }
6751else
6752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753$as_echo "no" >&6; }
6754fi
6755
6756  if test "x$ac_ct_DLLTOOL" = x; then
6757    DLLTOOL="false"
6758  else
6759    case $cross_compiling:$ac_tool_warned in
6760yes:)
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763ac_tool_warned=yes ;;
6764esac
6765    DLLTOOL=$ac_ct_DLLTOOL
6766  fi
6767else
6768  DLLTOOL="$ac_cv_prog_DLLTOOL"
6769fi
6770
6771test -z "$DLLTOOL" && DLLTOOL=dlltool
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6783$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6784if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  lt_cv_sharedlib_from_linklib_cmd='unknown'
6788
6789case $host_os in
6790cygwin* | mingw* | pw32* | cegcc*)
6791  # two different shell functions defined in ltmain.sh
6792  # decide which to use based on capabilities of $DLLTOOL
6793  case `$DLLTOOL --help 2>&1` in
6794  *--identify-strict*)
6795    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6796    ;;
6797  *)
6798    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6799    ;;
6800  esac
6801  ;;
6802*)
6803  # fallback: assume linklib IS sharedlib
6804  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6805  ;;
6806esac
6807
6808fi
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6810$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6811sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6812test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6813
6814
6815
6816
6817
6818
6819
6820if test -n "$ac_tool_prefix"; then
6821  for ac_prog in ar
6822  do
6823    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826$as_echo_n "checking for $ac_word... " >&6; }
6827if ${ac_cv_prog_AR+:} false; then :
6828  $as_echo_n "(cached) " >&6
6829else
6830  if test -n "$AR"; then
6831  ac_cv_prog_AR="$AR" # Let the user override the test.
6832else
6833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836  IFS=$as_save_IFS
6837  test -z "$as_dir" && as_dir=.
6838    for ac_exec_ext in '' $ac_executable_extensions; do
6839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6840    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842    break 2
6843  fi
6844done
6845  done
6846IFS=$as_save_IFS
6847
6848fi
6849fi
6850AR=$ac_cv_prog_AR
6851if test -n "$AR"; then
6852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6853$as_echo "$AR" >&6; }
6854else
6855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856$as_echo "no" >&6; }
6857fi
6858
6859
6860    test -n "$AR" && break
6861  done
6862fi
6863if test -z "$AR"; then
6864  ac_ct_AR=$AR
6865  for ac_prog in ar
6866do
6867  # Extract the first word of "$ac_prog", so it can be a program name with args.
6868set dummy $ac_prog; ac_word=$2
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870$as_echo_n "checking for $ac_word... " >&6; }
6871if ${ac_cv_prog_ac_ct_AR+:} false; then :
6872  $as_echo_n "(cached) " >&6
6873else
6874  if test -n "$ac_ct_AR"; then
6875  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6876else
6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880  IFS=$as_save_IFS
6881  test -z "$as_dir" && as_dir=.
6882    for ac_exec_ext in '' $ac_executable_extensions; do
6883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884    ac_cv_prog_ac_ct_AR="$ac_prog"
6885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886    break 2
6887  fi
6888done
6889  done
6890IFS=$as_save_IFS
6891
6892fi
6893fi
6894ac_ct_AR=$ac_cv_prog_ac_ct_AR
6895if test -n "$ac_ct_AR"; then
6896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6897$as_echo "$ac_ct_AR" >&6; }
6898else
6899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900$as_echo "no" >&6; }
6901fi
6902
6903
6904  test -n "$ac_ct_AR" && break
6905done
6906
6907  if test "x$ac_ct_AR" = x; then
6908    AR="false"
6909  else
6910    case $cross_compiling:$ac_tool_warned in
6911yes:)
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914ac_tool_warned=yes ;;
6915esac
6916    AR=$ac_ct_AR
6917  fi
6918fi
6919
6920: ${AR=ar}
6921: ${AR_FLAGS=cru}
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6934$as_echo_n "checking for archiver @FILE support... " >&6; }
6935if ${lt_cv_ar_at_file+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  lt_cv_ar_at_file=no
6939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940/* end confdefs.h.  */
6941
6942int
6943main ()
6944{
6945
6946  ;
6947  return 0;
6948}
6949_ACEOF
6950if ac_fn_c_try_compile "$LINENO"; then :
6951  echo conftest.$ac_objext > conftest.lst
6952      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6953      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6954  (eval $lt_ar_try) 2>&5
6955  ac_status=$?
6956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957  test $ac_status = 0; }
6958      if test "$ac_status" -eq 0; then
6959	# Ensure the archiver fails upon bogus file names.
6960	rm -f conftest.$ac_objext libconftest.a
6961	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6962  (eval $lt_ar_try) 2>&5
6963  ac_status=$?
6964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965  test $ac_status = 0; }
6966	if test "$ac_status" -ne 0; then
6967          lt_cv_ar_at_file=@
6968        fi
6969      fi
6970      rm -f conftest.* libconftest.a
6971
6972fi
6973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974
6975fi
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6977$as_echo "$lt_cv_ar_at_file" >&6; }
6978
6979if test "x$lt_cv_ar_at_file" = xno; then
6980  archiver_list_spec=
6981else
6982  archiver_list_spec=$lt_cv_ar_at_file
6983fi
6984
6985
6986
6987
6988
6989
6990
6991if test -n "$ac_tool_prefix"; then
6992  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}strip; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if ${ac_cv_prog_STRIP+:} false; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  if test -n "$STRIP"; then
7000  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007    for ac_exec_ext in '' $ac_executable_extensions; do
7008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014  done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019STRIP=$ac_cv_prog_STRIP
7020if test -n "$STRIP"; then
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7022$as_echo "$STRIP" >&6; }
7023else
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_STRIP"; then
7031  ac_ct_STRIP=$STRIP
7032  # Extract the first word of "strip", so it can be a program name with args.
7033set dummy strip; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
7036if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  if test -n "$ac_ct_STRIP"; then
7040  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047    for ac_exec_ext in '' $ac_executable_extensions; do
7048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049    ac_cv_prog_ac_ct_STRIP="strip"
7050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054  done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7060if test -n "$ac_ct_STRIP"; then
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7062$as_echo "$ac_ct_STRIP" >&6; }
7063else
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068  if test "x$ac_ct_STRIP" = x; then
7069    STRIP=":"
7070  else
7071    case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075ac_tool_warned=yes ;;
7076esac
7077    STRIP=$ac_ct_STRIP
7078  fi
7079else
7080  STRIP="$ac_cv_prog_STRIP"
7081fi
7082
7083test -z "$STRIP" && STRIP=:
7084
7085
7086
7087
7088
7089
7090if test -n "$ac_tool_prefix"; then
7091  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7092set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094$as_echo_n "checking for $ac_word... " >&6; }
7095if ${ac_cv_prog_RANLIB+:} false; then :
7096  $as_echo_n "(cached) " >&6
7097else
7098  if test -n "$RANLIB"; then
7099  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104  IFS=$as_save_IFS
7105  test -z "$as_dir" && as_dir=.
7106    for ac_exec_ext in '' $ac_executable_extensions; do
7107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110    break 2
7111  fi
7112done
7113  done
7114IFS=$as_save_IFS
7115
7116fi
7117fi
7118RANLIB=$ac_cv_prog_RANLIB
7119if test -n "$RANLIB"; then
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7121$as_echo "$RANLIB" >&6; }
7122else
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124$as_echo "no" >&6; }
7125fi
7126
7127
7128fi
7129if test -z "$ac_cv_prog_RANLIB"; then
7130  ac_ct_RANLIB=$RANLIB
7131  # Extract the first word of "ranlib", so it can be a program name with args.
7132set dummy ranlib; ac_word=$2
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134$as_echo_n "checking for $ac_word... " >&6; }
7135if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7136  $as_echo_n "(cached) " >&6
7137else
7138  if test -n "$ac_ct_RANLIB"; then
7139  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7140else
7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144  IFS=$as_save_IFS
7145  test -z "$as_dir" && as_dir=.
7146    for ac_exec_ext in '' $ac_executable_extensions; do
7147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148    ac_cv_prog_ac_ct_RANLIB="ranlib"
7149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150    break 2
7151  fi
7152done
7153  done
7154IFS=$as_save_IFS
7155
7156fi
7157fi
7158ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7159if test -n "$ac_ct_RANLIB"; then
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7161$as_echo "$ac_ct_RANLIB" >&6; }
7162else
7163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164$as_echo "no" >&6; }
7165fi
7166
7167  if test "x$ac_ct_RANLIB" = x; then
7168    RANLIB=":"
7169  else
7170    case $cross_compiling:$ac_tool_warned in
7171yes:)
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7174ac_tool_warned=yes ;;
7175esac
7176    RANLIB=$ac_ct_RANLIB
7177  fi
7178else
7179  RANLIB="$ac_cv_prog_RANLIB"
7180fi
7181
7182test -z "$RANLIB" && RANLIB=:
7183
7184
7185
7186
7187
7188
7189# Determine commands to create old-style static archives.
7190old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7191old_postinstall_cmds='chmod 644 $oldlib'
7192old_postuninstall_cmds=
7193
7194if test -n "$RANLIB"; then
7195  case $host_os in
7196  openbsd*)
7197    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7198    ;;
7199  *)
7200    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7201    ;;
7202  esac
7203  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7204fi
7205
7206case $host_os in
7207  darwin*)
7208    lock_old_archive_extraction=yes ;;
7209  *)
7210    lock_old_archive_extraction=no ;;
7211esac
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251# If no C compiler was specified, use CC.
7252LTCC=${LTCC-"$CC"}
7253
7254# If no C compiler flags were specified, use CFLAGS.
7255LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7256
7257# Allow CC to be a program name with arguments.
7258compiler=$CC
7259
7260
7261# Check for command to grab the raw symbol name followed by C symbol from nm.
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7263$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7264if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7265  $as_echo_n "(cached) " >&6
7266else
7267
7268# These are sane defaults that work on at least a few old systems.
7269# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7270
7271# Character class describing NM global symbol codes.
7272symcode='[BCDEGRST]'
7273
7274# Regexp to match symbols that can be accessed directly from C.
7275sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7276
7277# Define system-specific variables.
7278case $host_os in
7279aix*)
7280  symcode='[BCDT]'
7281  ;;
7282cygwin* | mingw* | pw32* | cegcc*)
7283  symcode='[ABCDGISTW]'
7284  ;;
7285hpux*)
7286  if test "$host_cpu" = ia64; then
7287    symcode='[ABCDEGRST]'
7288  fi
7289  ;;
7290irix* | nonstopux*)
7291  symcode='[BCDEGRST]'
7292  ;;
7293osf*)
7294  symcode='[BCDEGQRST]'
7295  ;;
7296solaris*)
7297  symcode='[BDRT]'
7298  ;;
7299sco3.2v5*)
7300  symcode='[DT]'
7301  ;;
7302sysv4.2uw2*)
7303  symcode='[DT]'
7304  ;;
7305sysv5* | sco5v6* | unixware* | OpenUNIX*)
7306  symcode='[ABDT]'
7307  ;;
7308sysv4)
7309  symcode='[DFNSTU]'
7310  ;;
7311esac
7312
7313# If we're using GNU nm, then use its standard symbol codes.
7314case `$NM -V 2>&1` in
7315*GNU* | *'with BFD'*)
7316  symcode='[ABCDGIRSTW]' ;;
7317esac
7318
7319# Transform an extracted symbol line into a proper C declaration.
7320# Some systems (esp. on ia64) link data and code symbols differently,
7321# so use this general approach.
7322lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7323
7324# Transform an extracted symbol line into symbol name and symbol address
7325lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7326lt_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'"
7327
7328# Handle CRLF in mingw tool chain
7329opt_cr=
7330case $build_os in
7331mingw*)
7332  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7333  ;;
7334esac
7335
7336# Try without a prefix underscore, then with it.
7337for ac_symprfx in "" "_"; do
7338
7339  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7340  symxfrm="\\1 $ac_symprfx\\2 \\2"
7341
7342  # Write the raw and C identifiers.
7343  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7344    # Fake it for dumpbin and say T for any non-static function
7345    # and D for any global variable.
7346    # Also find C++ and __fastcall symbols from MSVC++,
7347    # which start with @ or ?.
7348    lt_cv_sys_global_symbol_pipe="$AWK '"\
7349"     {last_section=section; section=\$ 3};"\
7350"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7351"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7352"     \$ 0!~/External *\|/{next};"\
7353"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7354"     {if(hide[section]) next};"\
7355"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7356"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7357"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7358"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7359"     ' prfx=^$ac_symprfx"
7360  else
7361    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7362  fi
7363  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7364
7365  # Check to see that the pipe works correctly.
7366  pipe_works=no
7367
7368  rm -f conftest*
7369  cat > conftest.$ac_ext <<_LT_EOF
7370#ifdef __cplusplus
7371extern "C" {
7372#endif
7373char nm_test_var;
7374void nm_test_func(void);
7375void nm_test_func(void){}
7376#ifdef __cplusplus
7377}
7378#endif
7379int main(){nm_test_var='a';nm_test_func();return(0);}
7380_LT_EOF
7381
7382  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7383  (eval $ac_compile) 2>&5
7384  ac_status=$?
7385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386  test $ac_status = 0; }; then
7387    # Now try to grab the symbols.
7388    nlist=conftest.nm
7389    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7390  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7391  ac_status=$?
7392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393  test $ac_status = 0; } && test -s "$nlist"; then
7394      # Try sorting and uniquifying the output.
7395      if sort "$nlist" | uniq > "$nlist"T; then
7396	mv -f "$nlist"T "$nlist"
7397      else
7398	rm -f "$nlist"T
7399      fi
7400
7401      # Make sure that we snagged all the symbols we need.
7402      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7403	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7404	  cat <<_LT_EOF > conftest.$ac_ext
7405/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7406#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7407/* DATA imports from DLLs on WIN32 con't be const, because runtime
7408   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7409# define LT_DLSYM_CONST
7410#elif defined(__osf__)
7411/* This system does not cope well with relocations in const data.  */
7412# define LT_DLSYM_CONST
7413#else
7414# define LT_DLSYM_CONST const
7415#endif
7416
7417#ifdef __cplusplus
7418extern "C" {
7419#endif
7420
7421_LT_EOF
7422	  # Now generate the symbol file.
7423	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7424
7425	  cat <<_LT_EOF >> conftest.$ac_ext
7426
7427/* The mapping between symbol names and symbols.  */
7428LT_DLSYM_CONST struct {
7429  const char *name;
7430  void       *address;
7431}
7432lt__PROGRAM__LTX_preloaded_symbols[] =
7433{
7434  { "@PROGRAM@", (void *) 0 },
7435_LT_EOF
7436	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7437	  cat <<\_LT_EOF >> conftest.$ac_ext
7438  {0, (void *) 0}
7439};
7440
7441/* This works around a problem in FreeBSD linker */
7442#ifdef FREEBSD_WORKAROUND
7443static const void *lt_preloaded_setup() {
7444  return lt__PROGRAM__LTX_preloaded_symbols;
7445}
7446#endif
7447
7448#ifdef __cplusplus
7449}
7450#endif
7451_LT_EOF
7452	  # Now try linking the two files.
7453	  mv conftest.$ac_objext conftstm.$ac_objext
7454	  lt_globsym_save_LIBS=$LIBS
7455	  lt_globsym_save_CFLAGS=$CFLAGS
7456	  LIBS="conftstm.$ac_objext"
7457	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7458	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7459  (eval $ac_link) 2>&5
7460  ac_status=$?
7461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7462  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7463	    pipe_works=yes
7464	  fi
7465	  LIBS=$lt_globsym_save_LIBS
7466	  CFLAGS=$lt_globsym_save_CFLAGS
7467	else
7468	  echo "cannot find nm_test_func in $nlist" >&5
7469	fi
7470      else
7471	echo "cannot find nm_test_var in $nlist" >&5
7472      fi
7473    else
7474      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7475    fi
7476  else
7477    echo "$progname: failed program was:" >&5
7478    cat conftest.$ac_ext >&5
7479  fi
7480  rm -rf conftest* conftst*
7481
7482  # Do not use the global_symbol_pipe unless it works.
7483  if test "$pipe_works" = yes; then
7484    break
7485  else
7486    lt_cv_sys_global_symbol_pipe=
7487  fi
7488done
7489
7490fi
7491
7492if test -z "$lt_cv_sys_global_symbol_pipe"; then
7493  lt_cv_sys_global_symbol_to_cdecl=
7494fi
7495if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7497$as_echo "failed" >&6; }
7498else
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7500$as_echo "ok" >&6; }
7501fi
7502
7503# Response file support.
7504if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7505  nm_file_list_spec='@'
7506elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7507  nm_file_list_spec='@'
7508fi
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7537$as_echo_n "checking for sysroot... " >&6; }
7538
7539# Check whether --with-sysroot was given.
7540if test "${with_sysroot+set}" = set; then :
7541  withval=$with_sysroot;
7542else
7543  with_sysroot=no
7544fi
7545
7546
7547lt_sysroot=
7548case ${with_sysroot} in #(
7549 yes)
7550   if test "$GCC" = yes; then
7551     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7552   fi
7553   ;; #(
7554 /*)
7555   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7556   ;; #(
7557 no|'')
7558   ;; #(
7559 *)
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7561$as_echo "${with_sysroot}" >&6; }
7562   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7563   ;;
7564esac
7565
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7567$as_echo "${lt_sysroot:-no}" >&6; }
7568
7569
7570
7571
7572
7573# Check whether --enable-libtool-lock was given.
7574if test "${enable_libtool_lock+set}" = set; then :
7575  enableval=$enable_libtool_lock;
7576fi
7577
7578test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7579
7580# Some flags need to be propagated to the compiler or linker for good
7581# libtool support.
7582case $host in
7583ia64-*-hpux*)
7584  # Find out which ABI we are using.
7585  echo 'int i;' > conftest.$ac_ext
7586  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7587  (eval $ac_compile) 2>&5
7588  ac_status=$?
7589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590  test $ac_status = 0; }; then
7591    case `/usr/bin/file conftest.$ac_objext` in
7592      *ELF-32*)
7593	HPUX_IA64_MODE="32"
7594	;;
7595      *ELF-64*)
7596	HPUX_IA64_MODE="64"
7597	;;
7598    esac
7599  fi
7600  rm -rf conftest*
7601  ;;
7602*-*-irix6*)
7603  # Find out which ABI we are using.
7604  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7605  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7606  (eval $ac_compile) 2>&5
7607  ac_status=$?
7608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609  test $ac_status = 0; }; then
7610    if test "$lt_cv_prog_gnu_ld" = yes; then
7611      case `/usr/bin/file conftest.$ac_objext` in
7612	*32-bit*)
7613	  LD="${LD-ld} -melf32bsmip"
7614	  ;;
7615	*N32*)
7616	  LD="${LD-ld} -melf32bmipn32"
7617	  ;;
7618	*64-bit*)
7619	  LD="${LD-ld} -melf64bmip"
7620	;;
7621      esac
7622    else
7623      case `/usr/bin/file conftest.$ac_objext` in
7624	*32-bit*)
7625	  LD="${LD-ld} -32"
7626	  ;;
7627	*N32*)
7628	  LD="${LD-ld} -n32"
7629	  ;;
7630	*64-bit*)
7631	  LD="${LD-ld} -64"
7632	  ;;
7633      esac
7634    fi
7635  fi
7636  rm -rf conftest*
7637  ;;
7638
7639x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7640s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7641  # Find out which ABI we are using.
7642  echo 'int i;' > conftest.$ac_ext
7643  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7644  (eval $ac_compile) 2>&5
7645  ac_status=$?
7646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647  test $ac_status = 0; }; then
7648    case `/usr/bin/file conftest.o` in
7649      *32-bit*)
7650	case $host in
7651	  x86_64-*kfreebsd*-gnu)
7652	    LD="${LD-ld} -m elf_i386_fbsd"
7653	    ;;
7654	  x86_64-*linux*)
7655	    case `/usr/bin/file conftest.o` in
7656	      *x86-64*)
7657		LD="${LD-ld} -m elf32_x86_64"
7658		;;
7659	      *)
7660		LD="${LD-ld} -m elf_i386"
7661		;;
7662	    esac
7663	    ;;
7664	  powerpc64le-*)
7665	    LD="${LD-ld} -m elf32lppclinux"
7666	    ;;
7667	  powerpc64-*)
7668	    LD="${LD-ld} -m elf32ppclinux"
7669	    ;;
7670	  s390x-*linux*)
7671	    LD="${LD-ld} -m elf_s390"
7672	    ;;
7673	  sparc64-*linux*)
7674	    LD="${LD-ld} -m elf32_sparc"
7675	    ;;
7676	esac
7677	;;
7678      *64-bit*)
7679	case $host in
7680	  x86_64-*kfreebsd*-gnu)
7681	    LD="${LD-ld} -m elf_x86_64_fbsd"
7682	    ;;
7683	  x86_64-*linux*)
7684	    LD="${LD-ld} -m elf_x86_64"
7685	    ;;
7686	  powerpcle-*)
7687	    LD="${LD-ld} -m elf64lppc"
7688	    ;;
7689	  powerpc-*)
7690	    LD="${LD-ld} -m elf64ppc"
7691	    ;;
7692	  s390*-*linux*|s390*-*tpf*)
7693	    LD="${LD-ld} -m elf64_s390"
7694	    ;;
7695	  sparc*-*linux*)
7696	    LD="${LD-ld} -m elf64_sparc"
7697	    ;;
7698	esac
7699	;;
7700    esac
7701  fi
7702  rm -rf conftest*
7703  ;;
7704
7705*-*-sco3.2v5*)
7706  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7707  SAVE_CFLAGS="$CFLAGS"
7708  CFLAGS="$CFLAGS -belf"
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7710$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7711if ${lt_cv_cc_needs_belf+:} false; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  ac_ext=c
7715ac_cpp='$CPP $CPPFLAGS'
7716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718ac_compiler_gnu=$ac_cv_c_compiler_gnu
7719
7720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h.  */
7722
7723int
7724main ()
7725{
7726
7727  ;
7728  return 0;
7729}
7730_ACEOF
7731if ac_fn_c_try_link "$LINENO"; then :
7732  lt_cv_cc_needs_belf=yes
7733else
7734  lt_cv_cc_needs_belf=no
7735fi
7736rm -f core conftest.err conftest.$ac_objext \
7737    conftest$ac_exeext conftest.$ac_ext
7738     ac_ext=c
7739ac_cpp='$CPP $CPPFLAGS'
7740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7742ac_compiler_gnu=$ac_cv_c_compiler_gnu
7743
7744fi
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7746$as_echo "$lt_cv_cc_needs_belf" >&6; }
7747  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7748    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7749    CFLAGS="$SAVE_CFLAGS"
7750  fi
7751  ;;
7752*-*solaris*)
7753  # Find out which ABI we are using.
7754  echo 'int i;' > conftest.$ac_ext
7755  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7756  (eval $ac_compile) 2>&5
7757  ac_status=$?
7758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759  test $ac_status = 0; }; then
7760    case `/usr/bin/file conftest.o` in
7761    *64-bit*)
7762      case $lt_cv_prog_gnu_ld in
7763      yes*)
7764        case $host in
7765        i?86-*-solaris*)
7766          LD="${LD-ld} -m elf_x86_64"
7767          ;;
7768        sparc*-*-solaris*)
7769          LD="${LD-ld} -m elf64_sparc"
7770          ;;
7771        esac
7772        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7773        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7774          LD="${LD-ld}_sol2"
7775        fi
7776        ;;
7777      *)
7778	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7779	  LD="${LD-ld} -64"
7780	fi
7781	;;
7782      esac
7783      ;;
7784    esac
7785  fi
7786  rm -rf conftest*
7787  ;;
7788esac
7789
7790need_locks="$enable_libtool_lock"
7791
7792if test -n "$ac_tool_prefix"; then
7793  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7794set dummy ${ac_tool_prefix}mt; ac_word=$2
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796$as_echo_n "checking for $ac_word... " >&6; }
7797if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800  if test -n "$MANIFEST_TOOL"; then
7801  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7802else
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806  IFS=$as_save_IFS
7807  test -z "$as_dir" && as_dir=.
7808    for ac_exec_ext in '' $ac_executable_extensions; do
7809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812    break 2
7813  fi
7814done
7815  done
7816IFS=$as_save_IFS
7817
7818fi
7819fi
7820MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7821if test -n "$MANIFEST_TOOL"; then
7822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7823$as_echo "$MANIFEST_TOOL" >&6; }
7824else
7825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
7827fi
7828
7829
7830fi
7831if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7832  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7833  # Extract the first word of "mt", so it can be a program name with args.
7834set dummy mt; ac_word=$2
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836$as_echo_n "checking for $ac_word... " >&6; }
7837if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7838  $as_echo_n "(cached) " >&6
7839else
7840  if test -n "$ac_ct_MANIFEST_TOOL"; then
7841  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7842else
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846  IFS=$as_save_IFS
7847  test -z "$as_dir" && as_dir=.
7848    for ac_exec_ext in '' $ac_executable_extensions; do
7849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852    break 2
7853  fi
7854done
7855  done
7856IFS=$as_save_IFS
7857
7858fi
7859fi
7860ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7861if test -n "$ac_ct_MANIFEST_TOOL"; then
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7863$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7864else
7865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866$as_echo "no" >&6; }
7867fi
7868
7869  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7870    MANIFEST_TOOL=":"
7871  else
7872    case $cross_compiling:$ac_tool_warned in
7873yes:)
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7876ac_tool_warned=yes ;;
7877esac
7878    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7879  fi
7880else
7881  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7882fi
7883
7884test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7886$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7887if ${lt_cv_path_mainfest_tool+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  lt_cv_path_mainfest_tool=no
7891  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7892  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7893  cat conftest.err >&5
7894  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7895    lt_cv_path_mainfest_tool=yes
7896  fi
7897  rm -f conftest*
7898fi
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7900$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7901if test "x$lt_cv_path_mainfest_tool" != xyes; then
7902  MANIFEST_TOOL=:
7903fi
7904
7905
7906
7907
7908
7909
7910  case $host_os in
7911    rhapsody* | darwin*)
7912    if test -n "$ac_tool_prefix"; then
7913  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7914set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916$as_echo_n "checking for $ac_word... " >&6; }
7917if ${ac_cv_prog_DSYMUTIL+:} false; then :
7918  $as_echo_n "(cached) " >&6
7919else
7920  if test -n "$DSYMUTIL"; then
7921  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7922else
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926  IFS=$as_save_IFS
7927  test -z "$as_dir" && as_dir=.
7928    for ac_exec_ext in '' $ac_executable_extensions; do
7929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932    break 2
7933  fi
7934done
7935  done
7936IFS=$as_save_IFS
7937
7938fi
7939fi
7940DSYMUTIL=$ac_cv_prog_DSYMUTIL
7941if test -n "$DSYMUTIL"; then
7942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7943$as_echo "$DSYMUTIL" >&6; }
7944else
7945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946$as_echo "no" >&6; }
7947fi
7948
7949
7950fi
7951if test -z "$ac_cv_prog_DSYMUTIL"; then
7952  ac_ct_DSYMUTIL=$DSYMUTIL
7953  # Extract the first word of "dsymutil", so it can be a program name with args.
7954set dummy dsymutil; ac_word=$2
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956$as_echo_n "checking for $ac_word... " >&6; }
7957if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7958  $as_echo_n "(cached) " >&6
7959else
7960  if test -n "$ac_ct_DSYMUTIL"; then
7961  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7962else
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966  IFS=$as_save_IFS
7967  test -z "$as_dir" && as_dir=.
7968    for ac_exec_ext in '' $ac_executable_extensions; do
7969  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972    break 2
7973  fi
7974done
7975  done
7976IFS=$as_save_IFS
7977
7978fi
7979fi
7980ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7981if test -n "$ac_ct_DSYMUTIL"; then
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7983$as_echo "$ac_ct_DSYMUTIL" >&6; }
7984else
7985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
7987fi
7988
7989  if test "x$ac_ct_DSYMUTIL" = x; then
7990    DSYMUTIL=":"
7991  else
7992    case $cross_compiling:$ac_tool_warned in
7993yes:)
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7996ac_tool_warned=yes ;;
7997esac
7998    DSYMUTIL=$ac_ct_DSYMUTIL
7999  fi
8000else
8001  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8002fi
8003
8004    if test -n "$ac_tool_prefix"; then
8005  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8006set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008$as_echo_n "checking for $ac_word... " >&6; }
8009if ${ac_cv_prog_NMEDIT+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  if test -n "$NMEDIT"; then
8013  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8014else
8015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016for as_dir in $PATH
8017do
8018  IFS=$as_save_IFS
8019  test -z "$as_dir" && as_dir=.
8020    for ac_exec_ext in '' $ac_executable_extensions; do
8021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8022    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024    break 2
8025  fi
8026done
8027  done
8028IFS=$as_save_IFS
8029
8030fi
8031fi
8032NMEDIT=$ac_cv_prog_NMEDIT
8033if test -n "$NMEDIT"; then
8034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8035$as_echo "$NMEDIT" >&6; }
8036else
8037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038$as_echo "no" >&6; }
8039fi
8040
8041
8042fi
8043if test -z "$ac_cv_prog_NMEDIT"; then
8044  ac_ct_NMEDIT=$NMEDIT
8045  # Extract the first word of "nmedit", so it can be a program name with args.
8046set dummy nmedit; ac_word=$2
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048$as_echo_n "checking for $ac_word... " >&6; }
8049if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  if test -n "$ac_ct_NMEDIT"; then
8053  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8054else
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058  IFS=$as_save_IFS
8059  test -z "$as_dir" && as_dir=.
8060    for ac_exec_ext in '' $ac_executable_extensions; do
8061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064    break 2
8065  fi
8066done
8067  done
8068IFS=$as_save_IFS
8069
8070fi
8071fi
8072ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8073if test -n "$ac_ct_NMEDIT"; then
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8075$as_echo "$ac_ct_NMEDIT" >&6; }
8076else
8077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
8079fi
8080
8081  if test "x$ac_ct_NMEDIT" = x; then
8082    NMEDIT=":"
8083  else
8084    case $cross_compiling:$ac_tool_warned in
8085yes:)
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8088ac_tool_warned=yes ;;
8089esac
8090    NMEDIT=$ac_ct_NMEDIT
8091  fi
8092else
8093  NMEDIT="$ac_cv_prog_NMEDIT"
8094fi
8095
8096    if test -n "$ac_tool_prefix"; then
8097  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8098set dummy ${ac_tool_prefix}lipo; ac_word=$2
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if ${ac_cv_prog_LIPO+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  if test -n "$LIPO"; then
8105  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110  IFS=$as_save_IFS
8111  test -z "$as_dir" && as_dir=.
8112    for ac_exec_ext in '' $ac_executable_extensions; do
8113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116    break 2
8117  fi
8118done
8119  done
8120IFS=$as_save_IFS
8121
8122fi
8123fi
8124LIPO=$ac_cv_prog_LIPO
8125if test -n "$LIPO"; then
8126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8127$as_echo "$LIPO" >&6; }
8128else
8129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
8131fi
8132
8133
8134fi
8135if test -z "$ac_cv_prog_LIPO"; then
8136  ac_ct_LIPO=$LIPO
8137  # Extract the first word of "lipo", so it can be a program name with args.
8138set dummy lipo; ac_word=$2
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140$as_echo_n "checking for $ac_word... " >&6; }
8141if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  if test -n "$ac_ct_LIPO"; then
8145  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8146else
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150  IFS=$as_save_IFS
8151  test -z "$as_dir" && as_dir=.
8152    for ac_exec_ext in '' $ac_executable_extensions; do
8153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154    ac_cv_prog_ac_ct_LIPO="lipo"
8155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156    break 2
8157  fi
8158done
8159  done
8160IFS=$as_save_IFS
8161
8162fi
8163fi
8164ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8165if test -n "$ac_ct_LIPO"; then
8166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8167$as_echo "$ac_ct_LIPO" >&6; }
8168else
8169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170$as_echo "no" >&6; }
8171fi
8172
8173  if test "x$ac_ct_LIPO" = x; then
8174    LIPO=":"
8175  else
8176    case $cross_compiling:$ac_tool_warned in
8177yes:)
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8180ac_tool_warned=yes ;;
8181esac
8182    LIPO=$ac_ct_LIPO
8183  fi
8184else
8185  LIPO="$ac_cv_prog_LIPO"
8186fi
8187
8188    if test -n "$ac_tool_prefix"; then
8189  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8190set dummy ${ac_tool_prefix}otool; ac_word=$2
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192$as_echo_n "checking for $ac_word... " >&6; }
8193if ${ac_cv_prog_OTOOL+:} false; then :
8194  $as_echo_n "(cached) " >&6
8195else
8196  if test -n "$OTOOL"; then
8197  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8198else
8199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200for as_dir in $PATH
8201do
8202  IFS=$as_save_IFS
8203  test -z "$as_dir" && as_dir=.
8204    for ac_exec_ext in '' $ac_executable_extensions; do
8205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208    break 2
8209  fi
8210done
8211  done
8212IFS=$as_save_IFS
8213
8214fi
8215fi
8216OTOOL=$ac_cv_prog_OTOOL
8217if test -n "$OTOOL"; then
8218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8219$as_echo "$OTOOL" >&6; }
8220else
8221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222$as_echo "no" >&6; }
8223fi
8224
8225
8226fi
8227if test -z "$ac_cv_prog_OTOOL"; then
8228  ac_ct_OTOOL=$OTOOL
8229  # Extract the first word of "otool", so it can be a program name with args.
8230set dummy otool; ac_word=$2
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232$as_echo_n "checking for $ac_word... " >&6; }
8233if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8234  $as_echo_n "(cached) " >&6
8235else
8236  if test -n "$ac_ct_OTOOL"; then
8237  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8238else
8239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240for as_dir in $PATH
8241do
8242  IFS=$as_save_IFS
8243  test -z "$as_dir" && as_dir=.
8244    for ac_exec_ext in '' $ac_executable_extensions; do
8245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8246    ac_cv_prog_ac_ct_OTOOL="otool"
8247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248    break 2
8249  fi
8250done
8251  done
8252IFS=$as_save_IFS
8253
8254fi
8255fi
8256ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8257if test -n "$ac_ct_OTOOL"; then
8258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8259$as_echo "$ac_ct_OTOOL" >&6; }
8260else
8261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262$as_echo "no" >&6; }
8263fi
8264
8265  if test "x$ac_ct_OTOOL" = x; then
8266    OTOOL=":"
8267  else
8268    case $cross_compiling:$ac_tool_warned in
8269yes:)
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8272ac_tool_warned=yes ;;
8273esac
8274    OTOOL=$ac_ct_OTOOL
8275  fi
8276else
8277  OTOOL="$ac_cv_prog_OTOOL"
8278fi
8279
8280    if test -n "$ac_tool_prefix"; then
8281  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8282set dummy ${ac_tool_prefix}otool64; ac_word=$2
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284$as_echo_n "checking for $ac_word... " >&6; }
8285if ${ac_cv_prog_OTOOL64+:} false; then :
8286  $as_echo_n "(cached) " >&6
8287else
8288  if test -n "$OTOOL64"; then
8289  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8290else
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294  IFS=$as_save_IFS
8295  test -z "$as_dir" && as_dir=.
8296    for ac_exec_ext in '' $ac_executable_extensions; do
8297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300    break 2
8301  fi
8302done
8303  done
8304IFS=$as_save_IFS
8305
8306fi
8307fi
8308OTOOL64=$ac_cv_prog_OTOOL64
8309if test -n "$OTOOL64"; then
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8311$as_echo "$OTOOL64" >&6; }
8312else
8313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314$as_echo "no" >&6; }
8315fi
8316
8317
8318fi
8319if test -z "$ac_cv_prog_OTOOL64"; then
8320  ac_ct_OTOOL64=$OTOOL64
8321  # Extract the first word of "otool64", so it can be a program name with args.
8322set dummy otool64; ac_word=$2
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324$as_echo_n "checking for $ac_word... " >&6; }
8325if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8326  $as_echo_n "(cached) " >&6
8327else
8328  if test -n "$ac_ct_OTOOL64"; then
8329  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8330else
8331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332for as_dir in $PATH
8333do
8334  IFS=$as_save_IFS
8335  test -z "$as_dir" && as_dir=.
8336    for ac_exec_ext in '' $ac_executable_extensions; do
8337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8338    ac_cv_prog_ac_ct_OTOOL64="otool64"
8339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340    break 2
8341  fi
8342done
8343  done
8344IFS=$as_save_IFS
8345
8346fi
8347fi
8348ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8349if test -n "$ac_ct_OTOOL64"; then
8350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8351$as_echo "$ac_ct_OTOOL64" >&6; }
8352else
8353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354$as_echo "no" >&6; }
8355fi
8356
8357  if test "x$ac_ct_OTOOL64" = x; then
8358    OTOOL64=":"
8359  else
8360    case $cross_compiling:$ac_tool_warned in
8361yes:)
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8364ac_tool_warned=yes ;;
8365esac
8366    OTOOL64=$ac_ct_OTOOL64
8367  fi
8368else
8369  OTOOL64="$ac_cv_prog_OTOOL64"
8370fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8399$as_echo_n "checking for -single_module linker flag... " >&6; }
8400if ${lt_cv_apple_cc_single_mod+:} false; then :
8401  $as_echo_n "(cached) " >&6
8402else
8403  lt_cv_apple_cc_single_mod=no
8404      if test -z "${LT_MULTI_MODULE}"; then
8405	# By default we will add the -single_module flag. You can override
8406	# by either setting the environment variable LT_MULTI_MODULE
8407	# non-empty at configure time, or by adding -multi_module to the
8408	# link flags.
8409	rm -rf libconftest.dylib*
8410	echo "int foo(void){return 1;}" > conftest.c
8411	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8412-dynamiclib -Wl,-single_module conftest.c" >&5
8413	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8414	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8415        _lt_result=$?
8416	# If there is a non-empty error log, and "single_module"
8417	# appears in it, assume the flag caused a linker warning
8418        if test -s conftest.err && $GREP single_module conftest.err; then
8419	  cat conftest.err >&5
8420	# Otherwise, if the output was created with a 0 exit code from
8421	# the compiler, it worked.
8422	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8423	  lt_cv_apple_cc_single_mod=yes
8424	else
8425	  cat conftest.err >&5
8426	fi
8427	rm -rf libconftest.dylib*
8428	rm -f conftest.*
8429      fi
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8432$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8433
8434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8435$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8436if ${lt_cv_ld_exported_symbols_list+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  lt_cv_ld_exported_symbols_list=no
8440      save_LDFLAGS=$LDFLAGS
8441      echo "_main" > conftest.sym
8442      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8443      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445
8446int
8447main ()
8448{
8449
8450  ;
8451  return 0;
8452}
8453_ACEOF
8454if ac_fn_c_try_link "$LINENO"; then :
8455  lt_cv_ld_exported_symbols_list=yes
8456else
8457  lt_cv_ld_exported_symbols_list=no
8458fi
8459rm -f core conftest.err conftest.$ac_objext \
8460    conftest$ac_exeext conftest.$ac_ext
8461	LDFLAGS="$save_LDFLAGS"
8462
8463fi
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8465$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8466
8467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8468$as_echo_n "checking for -force_load linker flag... " >&6; }
8469if ${lt_cv_ld_force_load+:} false; then :
8470  $as_echo_n "(cached) " >&6
8471else
8472  lt_cv_ld_force_load=no
8473      cat > conftest.c << _LT_EOF
8474int forced_loaded() { return 2;}
8475_LT_EOF
8476      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8477      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8478      echo "$AR cru libconftest.a conftest.o" >&5
8479      $AR cru libconftest.a conftest.o 2>&5
8480      echo "$RANLIB libconftest.a" >&5
8481      $RANLIB libconftest.a 2>&5
8482      cat > conftest.c << _LT_EOF
8483int main() { return 0;}
8484_LT_EOF
8485      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8486      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8487      _lt_result=$?
8488      if test -s conftest.err && $GREP force_load conftest.err; then
8489	cat conftest.err >&5
8490      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8491	lt_cv_ld_force_load=yes
8492      else
8493	cat conftest.err >&5
8494      fi
8495        rm -f conftest.err libconftest.a conftest conftest.c
8496        rm -rf conftest.dSYM
8497
8498fi
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8500$as_echo "$lt_cv_ld_force_load" >&6; }
8501    case $host_os in
8502    rhapsody* | darwin1.[012])
8503      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8504    darwin1.*)
8505      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8506    darwin*) # darwin 5.x on
8507      # if running on 10.5 or later, the deployment target defaults
8508      # to the OS version, if on x86, and 10.4, the deployment
8509      # target defaults to 10.4. Don't you love it?
8510      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8511	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8512	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8513	10.[012]*)
8514	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8515	10.*)
8516	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8517      esac
8518    ;;
8519  esac
8520    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8521      _lt_dar_single_mod='$single_module'
8522    fi
8523    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8524      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8525    else
8526      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8527    fi
8528    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8529      _lt_dsymutil='~$DSYMUTIL $lib || :'
8530    else
8531      _lt_dsymutil=
8532    fi
8533    ;;
8534  esac
8535
8536for ac_header in dlfcn.h
8537do :
8538  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8539"
8540if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8541  cat >>confdefs.h <<_ACEOF
8542#define HAVE_DLFCN_H 1
8543_ACEOF
8544
8545fi
8546
8547done
8548
8549
8550
8551
8552
8553# Set options
8554
8555
8556
8557        enable_dlopen=no
8558
8559
8560  enable_win32_dll=no
8561
8562
8563            # Check whether --enable-shared was given.
8564if test "${enable_shared+set}" = set; then :
8565  enableval=$enable_shared; p=${PACKAGE-default}
8566    case $enableval in
8567    yes) enable_shared=yes ;;
8568    no) enable_shared=no ;;
8569    *)
8570      enable_shared=no
8571      # Look at the argument we got.  We use all the common list separators.
8572      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8573      for pkg in $enableval; do
8574	IFS="$lt_save_ifs"
8575	if test "X$pkg" = "X$p"; then
8576	  enable_shared=yes
8577	fi
8578      done
8579      IFS="$lt_save_ifs"
8580      ;;
8581    esac
8582else
8583  enable_shared=yes
8584fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594  # Check whether --enable-static was given.
8595if test "${enable_static+set}" = set; then :
8596  enableval=$enable_static; p=${PACKAGE-default}
8597    case $enableval in
8598    yes) enable_static=yes ;;
8599    no) enable_static=no ;;
8600    *)
8601     enable_static=no
8602      # Look at the argument we got.  We use all the common list separators.
8603      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8604      for pkg in $enableval; do
8605	IFS="$lt_save_ifs"
8606	if test "X$pkg" = "X$p"; then
8607	  enable_static=yes
8608	fi
8609      done
8610      IFS="$lt_save_ifs"
8611      ;;
8612    esac
8613else
8614  enable_static=yes
8615fi
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626# Check whether --with-pic was given.
8627if test "${with_pic+set}" = set; then :
8628  withval=$with_pic; lt_p=${PACKAGE-default}
8629    case $withval in
8630    yes|no) pic_mode=$withval ;;
8631    *)
8632      pic_mode=default
8633      # Look at the argument we got.  We use all the common list separators.
8634      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8635      for lt_pkg in $withval; do
8636	IFS="$lt_save_ifs"
8637	if test "X$lt_pkg" = "X$lt_p"; then
8638	  pic_mode=yes
8639	fi
8640      done
8641      IFS="$lt_save_ifs"
8642      ;;
8643    esac
8644else
8645  pic_mode=default
8646fi
8647
8648
8649test -z "$pic_mode" && pic_mode=default
8650
8651
8652
8653
8654
8655
8656
8657  # Check whether --enable-fast-install was given.
8658if test "${enable_fast_install+set}" = set; then :
8659  enableval=$enable_fast_install; p=${PACKAGE-default}
8660    case $enableval in
8661    yes) enable_fast_install=yes ;;
8662    no) enable_fast_install=no ;;
8663    *)
8664      enable_fast_install=no
8665      # Look at the argument we got.  We use all the common list separators.
8666      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8667      for pkg in $enableval; do
8668	IFS="$lt_save_ifs"
8669	if test "X$pkg" = "X$p"; then
8670	  enable_fast_install=yes
8671	fi
8672      done
8673      IFS="$lt_save_ifs"
8674      ;;
8675    esac
8676else
8677  enable_fast_install=yes
8678fi
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690# This can be used to rebuild libtool when needed
8691LIBTOOL_DEPS="$ltmain"
8692
8693# Always use our own libtool.
8694LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725test -z "$LN_S" && LN_S="ln -s"
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740if test -n "${ZSH_VERSION+set}" ; then
8741   setopt NO_GLOB_SUBST
8742fi
8743
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8745$as_echo_n "checking for objdir... " >&6; }
8746if ${lt_cv_objdir+:} false; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  rm -f .libs 2>/dev/null
8750mkdir .libs 2>/dev/null
8751if test -d .libs; then
8752  lt_cv_objdir=.libs
8753else
8754  # MS-DOS does not allow filenames that begin with a dot.
8755  lt_cv_objdir=_libs
8756fi
8757rmdir .libs 2>/dev/null
8758fi
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8760$as_echo "$lt_cv_objdir" >&6; }
8761objdir=$lt_cv_objdir
8762
8763
8764
8765
8766
8767cat >>confdefs.h <<_ACEOF
8768#define LT_OBJDIR "$lt_cv_objdir/"
8769_ACEOF
8770
8771
8772
8773
8774case $host_os in
8775aix3*)
8776  # AIX sometimes has problems with the GCC collect2 program.  For some
8777  # reason, if we set the COLLECT_NAMES environment variable, the problems
8778  # vanish in a puff of smoke.
8779  if test "X${COLLECT_NAMES+set}" != Xset; then
8780    COLLECT_NAMES=
8781    export COLLECT_NAMES
8782  fi
8783  ;;
8784esac
8785
8786# Global variables:
8787ofile=libtool
8788can_build_shared=yes
8789
8790# All known linkers require a `.a' archive for static linking (except MSVC,
8791# which needs '.lib').
8792libext=a
8793
8794with_gnu_ld="$lt_cv_prog_gnu_ld"
8795
8796old_CC="$CC"
8797old_CFLAGS="$CFLAGS"
8798
8799# Set sane defaults for various variables
8800test -z "$CC" && CC=cc
8801test -z "$LTCC" && LTCC=$CC
8802test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8803test -z "$LD" && LD=ld
8804test -z "$ac_objext" && ac_objext=o
8805
8806for cc_temp in $compiler""; do
8807  case $cc_temp in
8808    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8809    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8810    \-*) ;;
8811    *) break;;
8812  esac
8813done
8814cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8815
8816
8817# Only perform the check for file, if the check method requires it
8818test -z "$MAGIC_CMD" && MAGIC_CMD=file
8819case $deplibs_check_method in
8820file_magic*)
8821  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8823$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8824if ${lt_cv_path_MAGIC_CMD+:} false; then :
8825  $as_echo_n "(cached) " >&6
8826else
8827  case $MAGIC_CMD in
8828[\\/*] |  ?:[\\/]*)
8829  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8830  ;;
8831*)
8832  lt_save_MAGIC_CMD="$MAGIC_CMD"
8833  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8834  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8835  for ac_dir in $ac_dummy; do
8836    IFS="$lt_save_ifs"
8837    test -z "$ac_dir" && ac_dir=.
8838    if test -f $ac_dir/${ac_tool_prefix}file; then
8839      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8840      if test -n "$file_magic_test_file"; then
8841	case $deplibs_check_method in
8842	"file_magic "*)
8843	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8844	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8845	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8846	    $EGREP "$file_magic_regex" > /dev/null; then
8847	    :
8848	  else
8849	    cat <<_LT_EOF 1>&2
8850
8851*** Warning: the command libtool uses to detect shared libraries,
8852*** $file_magic_cmd, produces output that libtool cannot recognize.
8853*** The result is that libtool may fail to recognize shared libraries
8854*** as such.  This will affect the creation of libtool libraries that
8855*** depend on shared libraries, but programs linked with such libtool
8856*** libraries will work regardless of this problem.  Nevertheless, you
8857*** may want to report the problem to your system manager and/or to
8858*** bug-libtool@gnu.org
8859
8860_LT_EOF
8861	  fi ;;
8862	esac
8863      fi
8864      break
8865    fi
8866  done
8867  IFS="$lt_save_ifs"
8868  MAGIC_CMD="$lt_save_MAGIC_CMD"
8869  ;;
8870esac
8871fi
8872
8873MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8874if test -n "$MAGIC_CMD"; then
8875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8876$as_echo "$MAGIC_CMD" >&6; }
8877else
8878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879$as_echo "no" >&6; }
8880fi
8881
8882
8883
8884
8885
8886if test -z "$lt_cv_path_MAGIC_CMD"; then
8887  if test -n "$ac_tool_prefix"; then
8888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8889$as_echo_n "checking for file... " >&6; }
8890if ${lt_cv_path_MAGIC_CMD+:} false; then :
8891  $as_echo_n "(cached) " >&6
8892else
8893  case $MAGIC_CMD in
8894[\\/*] |  ?:[\\/]*)
8895  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8896  ;;
8897*)
8898  lt_save_MAGIC_CMD="$MAGIC_CMD"
8899  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8900  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8901  for ac_dir in $ac_dummy; do
8902    IFS="$lt_save_ifs"
8903    test -z "$ac_dir" && ac_dir=.
8904    if test -f $ac_dir/file; then
8905      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8906      if test -n "$file_magic_test_file"; then
8907	case $deplibs_check_method in
8908	"file_magic "*)
8909	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8910	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8911	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8912	    $EGREP "$file_magic_regex" > /dev/null; then
8913	    :
8914	  else
8915	    cat <<_LT_EOF 1>&2
8916
8917*** Warning: the command libtool uses to detect shared libraries,
8918*** $file_magic_cmd, produces output that libtool cannot recognize.
8919*** The result is that libtool may fail to recognize shared libraries
8920*** as such.  This will affect the creation of libtool libraries that
8921*** depend on shared libraries, but programs linked with such libtool
8922*** libraries will work regardless of this problem.  Nevertheless, you
8923*** may want to report the problem to your system manager and/or to
8924*** bug-libtool@gnu.org
8925
8926_LT_EOF
8927	  fi ;;
8928	esac
8929      fi
8930      break
8931    fi
8932  done
8933  IFS="$lt_save_ifs"
8934  MAGIC_CMD="$lt_save_MAGIC_CMD"
8935  ;;
8936esac
8937fi
8938
8939MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8940if test -n "$MAGIC_CMD"; then
8941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8942$as_echo "$MAGIC_CMD" >&6; }
8943else
8944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945$as_echo "no" >&6; }
8946fi
8947
8948
8949  else
8950    MAGIC_CMD=:
8951  fi
8952fi
8953
8954  fi
8955  ;;
8956esac
8957
8958# Use C for the default configuration in the libtool script
8959
8960lt_save_CC="$CC"
8961ac_ext=c
8962ac_cpp='$CPP $CPPFLAGS'
8963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8965ac_compiler_gnu=$ac_cv_c_compiler_gnu
8966
8967
8968# Source file extension for C test sources.
8969ac_ext=c
8970
8971# Object file extension for compiled C test sources.
8972objext=o
8973objext=$objext
8974
8975# Code to be used in simple compile tests
8976lt_simple_compile_test_code="int some_variable = 0;"
8977
8978# Code to be used in simple link tests
8979lt_simple_link_test_code='int main(){return(0);}'
8980
8981
8982
8983
8984
8985
8986
8987# If no C compiler was specified, use CC.
8988LTCC=${LTCC-"$CC"}
8989
8990# If no C compiler flags were specified, use CFLAGS.
8991LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8992
8993# Allow CC to be a program name with arguments.
8994compiler=$CC
8995
8996# Save the default compiler, since it gets overwritten when the other
8997# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8998compiler_DEFAULT=$CC
8999
9000# save warnings/boilerplate of simple test code
9001ac_outfile=conftest.$ac_objext
9002echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9003eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9004_lt_compiler_boilerplate=`cat conftest.err`
9005$RM conftest*
9006
9007ac_outfile=conftest.$ac_objext
9008echo "$lt_simple_link_test_code" >conftest.$ac_ext
9009eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9010_lt_linker_boilerplate=`cat conftest.err`
9011$RM -r conftest*
9012
9013
9014if test -n "$compiler"; then
9015
9016lt_prog_compiler_no_builtin_flag=
9017
9018if test "$GCC" = yes; then
9019  case $cc_basename in
9020  nvcc*)
9021    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9022  *)
9023    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9024  esac
9025
9026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9027$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9028if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9029  $as_echo_n "(cached) " >&6
9030else
9031  lt_cv_prog_compiler_rtti_exceptions=no
9032   ac_outfile=conftest.$ac_objext
9033   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034   lt_compiler_flag="-fno-rtti -fno-exceptions"
9035   # Insert the option either (1) after the last *FLAGS variable, or
9036   # (2) before a word containing "conftest.", or (3) at the end.
9037   # Note that $ac_compile itself does not contain backslashes and begins
9038   # with a dollar sign (not a hyphen), so the echo should work correctly.
9039   # The option is referenced via a variable to avoid confusing sed.
9040   lt_compile=`echo "$ac_compile" | $SED \
9041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043   -e 's:$: $lt_compiler_flag:'`
9044   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9045   (eval "$lt_compile" 2>conftest.err)
9046   ac_status=$?
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   if (exit $ac_status) && test -s "$ac_outfile"; then
9050     # The compiler can only warn and ignore the option if not recognized
9051     # So say no if there are warnings other than the usual output.
9052     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9053     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9054     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9055       lt_cv_prog_compiler_rtti_exceptions=yes
9056     fi
9057   fi
9058   $RM conftest*
9059
9060fi
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9062$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9063
9064if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9065    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9066else
9067    :
9068fi
9069
9070fi
9071
9072
9073
9074
9075
9076
9077  lt_prog_compiler_wl=
9078lt_prog_compiler_pic=
9079lt_prog_compiler_static=
9080
9081
9082  if test "$GCC" = yes; then
9083    lt_prog_compiler_wl='-Wl,'
9084    lt_prog_compiler_static='-static'
9085
9086    case $host_os in
9087      aix*)
9088      # All AIX code is PIC.
9089      if test "$host_cpu" = ia64; then
9090	# AIX 5 now supports IA64 processor
9091	lt_prog_compiler_static='-Bstatic'
9092      fi
9093      ;;
9094
9095    amigaos*)
9096      case $host_cpu in
9097      powerpc)
9098            # see comment about AmigaOS4 .so support
9099            lt_prog_compiler_pic='-fPIC'
9100        ;;
9101      m68k)
9102            # FIXME: we need at least 68020 code to build shared libraries, but
9103            # adding the `-m68020' flag to GCC prevents building anything better,
9104            # like `-m68040'.
9105            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9106        ;;
9107      esac
9108      ;;
9109
9110    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9111      # PIC is the default for these OSes.
9112      ;;
9113
9114    mingw* | cygwin* | pw32* | os2* | cegcc*)
9115      # This hack is so that the source file can tell whether it is being
9116      # built for inclusion in a dll (and should export symbols for example).
9117      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9118      # (--disable-auto-import) libraries
9119      lt_prog_compiler_pic='-DDLL_EXPORT'
9120      ;;
9121
9122    darwin* | rhapsody*)
9123      # PIC is the default on this platform
9124      # Common symbols not allowed in MH_DYLIB files
9125      lt_prog_compiler_pic='-fno-common'
9126      ;;
9127
9128    haiku*)
9129      # PIC is the default for Haiku.
9130      # The "-static" flag exists, but is broken.
9131      lt_prog_compiler_static=
9132      ;;
9133
9134    hpux*)
9135      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9136      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9137      # sets the default TLS model and affects inlining.
9138      case $host_cpu in
9139      hppa*64*)
9140	# +Z the default
9141	;;
9142      *)
9143	lt_prog_compiler_pic='-fPIC'
9144	;;
9145      esac
9146      ;;
9147
9148    interix[3-9]*)
9149      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9150      # Instead, we relocate shared libraries at runtime.
9151      ;;
9152
9153    msdosdjgpp*)
9154      # Just because we use GCC doesn't mean we suddenly get shared libraries
9155      # on systems that don't support them.
9156      lt_prog_compiler_can_build_shared=no
9157      enable_shared=no
9158      ;;
9159
9160    *nto* | *qnx*)
9161      # QNX uses GNU C++, but need to define -shared option too, otherwise
9162      # it will coredump.
9163      lt_prog_compiler_pic='-fPIC -shared'
9164      ;;
9165
9166    sysv4*MP*)
9167      if test -d /usr/nec; then
9168	lt_prog_compiler_pic=-Kconform_pic
9169      fi
9170      ;;
9171
9172    *)
9173      lt_prog_compiler_pic='-fPIC'
9174      ;;
9175    esac
9176
9177    case $cc_basename in
9178    nvcc*) # Cuda Compiler Driver 2.2
9179      lt_prog_compiler_wl='-Xlinker '
9180      if test -n "$lt_prog_compiler_pic"; then
9181        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9182      fi
9183      ;;
9184    esac
9185  else
9186    # PORTME Check for flag to pass linker flags through the system compiler.
9187    case $host_os in
9188    aix*)
9189      lt_prog_compiler_wl='-Wl,'
9190      if test "$host_cpu" = ia64; then
9191	# AIX 5 now supports IA64 processor
9192	lt_prog_compiler_static='-Bstatic'
9193      else
9194	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9195      fi
9196      ;;
9197
9198    mingw* | cygwin* | pw32* | os2* | cegcc*)
9199      # This hack is so that the source file can tell whether it is being
9200      # built for inclusion in a dll (and should export symbols for example).
9201      lt_prog_compiler_pic='-DDLL_EXPORT'
9202      ;;
9203
9204    hpux9* | hpux10* | hpux11*)
9205      lt_prog_compiler_wl='-Wl,'
9206      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9207      # not for PA HP-UX.
9208      case $host_cpu in
9209      hppa*64*|ia64*)
9210	# +Z the default
9211	;;
9212      *)
9213	lt_prog_compiler_pic='+Z'
9214	;;
9215      esac
9216      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9217      lt_prog_compiler_static='${wl}-a ${wl}archive'
9218      ;;
9219
9220    irix5* | irix6* | nonstopux*)
9221      lt_prog_compiler_wl='-Wl,'
9222      # PIC (with -KPIC) is the default.
9223      lt_prog_compiler_static='-non_shared'
9224      ;;
9225
9226    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9227      case $cc_basename in
9228      # old Intel for x86_64 which still supported -KPIC.
9229      ecc*)
9230	lt_prog_compiler_wl='-Wl,'
9231	lt_prog_compiler_pic='-KPIC'
9232	lt_prog_compiler_static='-static'
9233        ;;
9234      # icc used to be incompatible with GCC.
9235      # ICC 10 doesn't accept -KPIC any more.
9236      icc* | ifort*)
9237	lt_prog_compiler_wl='-Wl,'
9238	lt_prog_compiler_pic='-fPIC'
9239	lt_prog_compiler_static='-static'
9240        ;;
9241      # Lahey Fortran 8.1.
9242      lf95*)
9243	lt_prog_compiler_wl='-Wl,'
9244	lt_prog_compiler_pic='--shared'
9245	lt_prog_compiler_static='--static'
9246	;;
9247      nagfor*)
9248	# NAG Fortran compiler
9249	lt_prog_compiler_wl='-Wl,-Wl,,'
9250	lt_prog_compiler_pic='-PIC'
9251	lt_prog_compiler_static='-Bstatic'
9252	;;
9253      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9254        # Portland Group compilers (*not* the Pentium gcc compiler,
9255	# which looks to be a dead project)
9256	lt_prog_compiler_wl='-Wl,'
9257	lt_prog_compiler_pic='-fpic'
9258	lt_prog_compiler_static='-Bstatic'
9259        ;;
9260      ccc*)
9261        lt_prog_compiler_wl='-Wl,'
9262        # All Alpha code is PIC.
9263        lt_prog_compiler_static='-non_shared'
9264        ;;
9265      xl* | bgxl* | bgf* | mpixl*)
9266	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9267	lt_prog_compiler_wl='-Wl,'
9268	lt_prog_compiler_pic='-qpic'
9269	lt_prog_compiler_static='-qstaticlink'
9270	;;
9271      *)
9272	case `$CC -V 2>&1 | sed 5q` in
9273	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9274	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9275	  lt_prog_compiler_pic='-KPIC'
9276	  lt_prog_compiler_static='-Bstatic'
9277	  lt_prog_compiler_wl=''
9278	  ;;
9279	*Sun\ F* | *Sun*Fortran*)
9280	  lt_prog_compiler_pic='-KPIC'
9281	  lt_prog_compiler_static='-Bstatic'
9282	  lt_prog_compiler_wl='-Qoption ld '
9283	  ;;
9284	*Sun\ C*)
9285	  # Sun C 5.9
9286	  lt_prog_compiler_pic='-KPIC'
9287	  lt_prog_compiler_static='-Bstatic'
9288	  lt_prog_compiler_wl='-Wl,'
9289	  ;;
9290        *Intel*\ [CF]*Compiler*)
9291	  lt_prog_compiler_wl='-Wl,'
9292	  lt_prog_compiler_pic='-fPIC'
9293	  lt_prog_compiler_static='-static'
9294	  ;;
9295	*Portland\ Group*)
9296	  lt_prog_compiler_wl='-Wl,'
9297	  lt_prog_compiler_pic='-fpic'
9298	  lt_prog_compiler_static='-Bstatic'
9299	  ;;
9300	esac
9301	;;
9302      esac
9303      ;;
9304
9305    newsos6)
9306      lt_prog_compiler_pic='-KPIC'
9307      lt_prog_compiler_static='-Bstatic'
9308      ;;
9309
9310    *nto* | *qnx*)
9311      # QNX uses GNU C++, but need to define -shared option too, otherwise
9312      # it will coredump.
9313      lt_prog_compiler_pic='-fPIC -shared'
9314      ;;
9315
9316    osf3* | osf4* | osf5*)
9317      lt_prog_compiler_wl='-Wl,'
9318      # All OSF/1 code is PIC.
9319      lt_prog_compiler_static='-non_shared'
9320      ;;
9321
9322    rdos*)
9323      lt_prog_compiler_static='-non_shared'
9324      ;;
9325
9326    solaris*)
9327      lt_prog_compiler_pic='-KPIC'
9328      lt_prog_compiler_static='-Bstatic'
9329      case $cc_basename in
9330      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9331	lt_prog_compiler_wl='-Qoption ld ';;
9332      *)
9333	lt_prog_compiler_wl='-Wl,';;
9334      esac
9335      ;;
9336
9337    sunos4*)
9338      lt_prog_compiler_wl='-Qoption ld '
9339      lt_prog_compiler_pic='-PIC'
9340      lt_prog_compiler_static='-Bstatic'
9341      ;;
9342
9343    sysv4 | sysv4.2uw2* | sysv4.3*)
9344      lt_prog_compiler_wl='-Wl,'
9345      lt_prog_compiler_pic='-KPIC'
9346      lt_prog_compiler_static='-Bstatic'
9347      ;;
9348
9349    sysv4*MP*)
9350      if test -d /usr/nec ;then
9351	lt_prog_compiler_pic='-Kconform_pic'
9352	lt_prog_compiler_static='-Bstatic'
9353      fi
9354      ;;
9355
9356    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9357      lt_prog_compiler_wl='-Wl,'
9358      lt_prog_compiler_pic='-KPIC'
9359      lt_prog_compiler_static='-Bstatic'
9360      ;;
9361
9362    unicos*)
9363      lt_prog_compiler_wl='-Wl,'
9364      lt_prog_compiler_can_build_shared=no
9365      ;;
9366
9367    uts4*)
9368      lt_prog_compiler_pic='-pic'
9369      lt_prog_compiler_static='-Bstatic'
9370      ;;
9371
9372    *)
9373      lt_prog_compiler_can_build_shared=no
9374      ;;
9375    esac
9376  fi
9377
9378case $host_os in
9379  # For platforms which do not support PIC, -DPIC is meaningless:
9380  *djgpp*)
9381    lt_prog_compiler_pic=
9382    ;;
9383  *)
9384    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9385    ;;
9386esac
9387
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9389$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9390if ${lt_cv_prog_compiler_pic+:} false; then :
9391  $as_echo_n "(cached) " >&6
9392else
9393  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9394fi
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9396$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9397lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9398
9399#
9400# Check to make sure the PIC flag actually works.
9401#
9402if test -n "$lt_prog_compiler_pic"; then
9403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9404$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9405if ${lt_cv_prog_compiler_pic_works+:} false; then :
9406  $as_echo_n "(cached) " >&6
9407else
9408  lt_cv_prog_compiler_pic_works=no
9409   ac_outfile=conftest.$ac_objext
9410   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9412   # Insert the option either (1) after the last *FLAGS variable, or
9413   # (2) before a word containing "conftest.", or (3) at the end.
9414   # Note that $ac_compile itself does not contain backslashes and begins
9415   # with a dollar sign (not a hyphen), so the echo should work correctly.
9416   # The option is referenced via a variable to avoid confusing sed.
9417   lt_compile=`echo "$ac_compile" | $SED \
9418   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9419   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9420   -e 's:$: $lt_compiler_flag:'`
9421   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9422   (eval "$lt_compile" 2>conftest.err)
9423   ac_status=$?
9424   cat conftest.err >&5
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   if (exit $ac_status) && test -s "$ac_outfile"; then
9427     # The compiler can only warn and ignore the option if not recognized
9428     # So say no if there are warnings other than the usual output.
9429     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9430     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9431     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9432       lt_cv_prog_compiler_pic_works=yes
9433     fi
9434   fi
9435   $RM conftest*
9436
9437fi
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9439$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9440
9441if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9442    case $lt_prog_compiler_pic in
9443     "" | " "*) ;;
9444     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9445     esac
9446else
9447    lt_prog_compiler_pic=
9448     lt_prog_compiler_can_build_shared=no
9449fi
9450
9451fi
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463#
9464# Check to make sure the static flag actually works.
9465#
9466wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9468$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9469if ${lt_cv_prog_compiler_static_works+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  lt_cv_prog_compiler_static_works=no
9473   save_LDFLAGS="$LDFLAGS"
9474   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9475   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9476   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9477     # The linker can only warn and ignore the option if not recognized
9478     # So say no if there are warnings
9479     if test -s conftest.err; then
9480       # Append any errors to the config.log.
9481       cat conftest.err 1>&5
9482       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9483       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9484       if diff conftest.exp conftest.er2 >/dev/null; then
9485         lt_cv_prog_compiler_static_works=yes
9486       fi
9487     else
9488       lt_cv_prog_compiler_static_works=yes
9489     fi
9490   fi
9491   $RM -r conftest*
9492   LDFLAGS="$save_LDFLAGS"
9493
9494fi
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9496$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9497
9498if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9499    :
9500else
9501    lt_prog_compiler_static=
9502fi
9503
9504
9505
9506
9507
9508
9509
9510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9511$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9512if ${lt_cv_prog_compiler_c_o+:} false; then :
9513  $as_echo_n "(cached) " >&6
9514else
9515  lt_cv_prog_compiler_c_o=no
9516   $RM -r conftest 2>/dev/null
9517   mkdir conftest
9518   cd conftest
9519   mkdir out
9520   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9521
9522   lt_compiler_flag="-o out/conftest2.$ac_objext"
9523   # Insert the option either (1) after the last *FLAGS variable, or
9524   # (2) before a word containing "conftest.", or (3) at the end.
9525   # Note that $ac_compile itself does not contain backslashes and begins
9526   # with a dollar sign (not a hyphen), so the echo should work correctly.
9527   lt_compile=`echo "$ac_compile" | $SED \
9528   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9529   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9530   -e 's:$: $lt_compiler_flag:'`
9531   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9532   (eval "$lt_compile" 2>out/conftest.err)
9533   ac_status=$?
9534   cat out/conftest.err >&5
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9537   then
9538     # The compiler can only warn and ignore the option if not recognized
9539     # So say no if there are warnings
9540     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9541     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9542     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9543       lt_cv_prog_compiler_c_o=yes
9544     fi
9545   fi
9546   chmod u+w . 2>&5
9547   $RM conftest*
9548   # SGI C++ compiler will create directory out/ii_files/ for
9549   # template instantiation
9550   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9551   $RM out/* && rmdir out
9552   cd ..
9553   $RM -r conftest
9554   $RM conftest*
9555
9556fi
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9558$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9559
9560
9561
9562
9563
9564
9565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9566$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9567if ${lt_cv_prog_compiler_c_o+:} false; then :
9568  $as_echo_n "(cached) " >&6
9569else
9570  lt_cv_prog_compiler_c_o=no
9571   $RM -r conftest 2>/dev/null
9572   mkdir conftest
9573   cd conftest
9574   mkdir out
9575   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9576
9577   lt_compiler_flag="-o out/conftest2.$ac_objext"
9578   # Insert the option either (1) after the last *FLAGS variable, or
9579   # (2) before a word containing "conftest.", or (3) at the end.
9580   # Note that $ac_compile itself does not contain backslashes and begins
9581   # with a dollar sign (not a hyphen), so the echo should work correctly.
9582   lt_compile=`echo "$ac_compile" | $SED \
9583   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9584   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9585   -e 's:$: $lt_compiler_flag:'`
9586   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9587   (eval "$lt_compile" 2>out/conftest.err)
9588   ac_status=$?
9589   cat out/conftest.err >&5
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9592   then
9593     # The compiler can only warn and ignore the option if not recognized
9594     # So say no if there are warnings
9595     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9596     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9597     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9598       lt_cv_prog_compiler_c_o=yes
9599     fi
9600   fi
9601   chmod u+w . 2>&5
9602   $RM conftest*
9603   # SGI C++ compiler will create directory out/ii_files/ for
9604   # template instantiation
9605   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9606   $RM out/* && rmdir out
9607   cd ..
9608   $RM -r conftest
9609   $RM conftest*
9610
9611fi
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9613$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9614
9615
9616
9617
9618hard_links="nottested"
9619if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9620  # do not overwrite the value of need_locks provided by the user
9621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9622$as_echo_n "checking if we can lock with hard links... " >&6; }
9623  hard_links=yes
9624  $RM conftest*
9625  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9626  touch conftest.a
9627  ln conftest.a conftest.b 2>&5 || hard_links=no
9628  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9630$as_echo "$hard_links" >&6; }
9631  if test "$hard_links" = no; then
9632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9633$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9634    need_locks=warn
9635  fi
9636else
9637  need_locks=no
9638fi
9639
9640
9641
9642
9643
9644
9645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9646$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9647
9648  runpath_var=
9649  allow_undefined_flag=
9650  always_export_symbols=no
9651  archive_cmds=
9652  archive_expsym_cmds=
9653  compiler_needs_object=no
9654  enable_shared_with_static_runtimes=no
9655  export_dynamic_flag_spec=
9656  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9657  hardcode_automatic=no
9658  hardcode_direct=no
9659  hardcode_direct_absolute=no
9660  hardcode_libdir_flag_spec=
9661  hardcode_libdir_separator=
9662  hardcode_minus_L=no
9663  hardcode_shlibpath_var=unsupported
9664  inherit_rpath=no
9665  link_all_deplibs=unknown
9666  module_cmds=
9667  module_expsym_cmds=
9668  old_archive_from_new_cmds=
9669  old_archive_from_expsyms_cmds=
9670  thread_safe_flag_spec=
9671  whole_archive_flag_spec=
9672  # include_expsyms should be a list of space-separated symbols to be *always*
9673  # included in the symbol list
9674  include_expsyms=
9675  # exclude_expsyms can be an extended regexp of symbols to exclude
9676  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9677  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9678  # as well as any symbol that contains `d'.
9679  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9680  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9681  # platforms (ab)use it in PIC code, but their linkers get confused if
9682  # the symbol is explicitly referenced.  Since portable code cannot
9683  # rely on this symbol name, it's probably fine to never include it in
9684  # preloaded symbol tables.
9685  # Exclude shared library initialization/finalization symbols.
9686  extract_expsyms_cmds=
9687
9688  case $host_os in
9689  cygwin* | mingw* | pw32* | cegcc*)
9690    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9691    # When not using gcc, we currently assume that we are using
9692    # Microsoft Visual C++.
9693    if test "$GCC" != yes; then
9694      with_gnu_ld=no
9695    fi
9696    ;;
9697  interix*)
9698    # we just hope/assume this is gcc and not c89 (= MSVC++)
9699    with_gnu_ld=yes
9700    ;;
9701  openbsd*)
9702    with_gnu_ld=no
9703    ;;
9704  linux* | k*bsd*-gnu | gnu*)
9705    link_all_deplibs=no
9706    ;;
9707  esac
9708
9709  ld_shlibs=yes
9710
9711  # On some targets, GNU ld is compatible enough with the native linker
9712  # that we're better off using the native interface for both.
9713  lt_use_gnu_ld_interface=no
9714  if test "$with_gnu_ld" = yes; then
9715    case $host_os in
9716      aix*)
9717	# The AIX port of GNU ld has always aspired to compatibility
9718	# with the native linker.  However, as the warning in the GNU ld
9719	# block says, versions before 2.19.5* couldn't really create working
9720	# shared libraries, regardless of the interface used.
9721	case `$LD -v 2>&1` in
9722	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9723	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9724	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9725	  *)
9726	    lt_use_gnu_ld_interface=yes
9727	    ;;
9728	esac
9729	;;
9730      *)
9731	lt_use_gnu_ld_interface=yes
9732	;;
9733    esac
9734  fi
9735
9736  if test "$lt_use_gnu_ld_interface" = yes; then
9737    # If archive_cmds runs LD, not CC, wlarc should be empty
9738    wlarc='${wl}'
9739
9740    # Set some defaults for GNU ld with shared library support. These
9741    # are reset later if shared libraries are not supported. Putting them
9742    # here allows them to be overridden if necessary.
9743    runpath_var=LD_RUN_PATH
9744    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745    export_dynamic_flag_spec='${wl}--export-dynamic'
9746    # ancient GNU ld didn't support --whole-archive et. al.
9747    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9748      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9749    else
9750      whole_archive_flag_spec=
9751    fi
9752    supports_anon_versioning=no
9753    case `$LD -v 2>&1` in
9754      *GNU\ gold*) supports_anon_versioning=yes ;;
9755      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9756      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9757      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9758      *\ 2.11.*) ;; # other 2.11 versions
9759      *) supports_anon_versioning=yes ;;
9760    esac
9761
9762    # See if GNU ld supports shared libraries.
9763    case $host_os in
9764    aix[3-9]*)
9765      # On AIX/PPC, the GNU linker is very broken
9766      if test "$host_cpu" != ia64; then
9767	ld_shlibs=no
9768	cat <<_LT_EOF 1>&2
9769
9770*** Warning: the GNU linker, at least up to release 2.19, is reported
9771*** to be unable to reliably create shared libraries on AIX.
9772*** Therefore, libtool is disabling shared libraries support.  If you
9773*** really care for shared libraries, you may want to install binutils
9774*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9775*** You will then need to restart the configuration process.
9776
9777_LT_EOF
9778      fi
9779      ;;
9780
9781    amigaos*)
9782      case $host_cpu in
9783      powerpc)
9784            # see comment about AmigaOS4 .so support
9785            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9786            archive_expsym_cmds=''
9787        ;;
9788      m68k)
9789            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)'
9790            hardcode_libdir_flag_spec='-L$libdir'
9791            hardcode_minus_L=yes
9792        ;;
9793      esac
9794      ;;
9795
9796    beos*)
9797      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9798	allow_undefined_flag=unsupported
9799	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9800	# support --undefined.  This deserves some investigation.  FIXME
9801	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802      else
9803	ld_shlibs=no
9804      fi
9805      ;;
9806
9807    cygwin* | mingw* | pw32* | cegcc*)
9808      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9809      # as there is no search path for DLLs.
9810      hardcode_libdir_flag_spec='-L$libdir'
9811      export_dynamic_flag_spec='${wl}--export-all-symbols'
9812      allow_undefined_flag=unsupported
9813      always_export_symbols=no
9814      enable_shared_with_static_runtimes=yes
9815      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'
9816      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9817
9818      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9819        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9820	# If the export-symbols file already is a .def file (1st line
9821	# is EXPORTS), use it as is; otherwise, prepend...
9822	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9823	  cp $export_symbols $output_objdir/$soname.def;
9824	else
9825	  echo EXPORTS > $output_objdir/$soname.def;
9826	  cat $export_symbols >> $output_objdir/$soname.def;
9827	fi~
9828	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9829      else
9830	ld_shlibs=no
9831      fi
9832      ;;
9833
9834    haiku*)
9835      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836      link_all_deplibs=yes
9837      ;;
9838
9839    interix[3-9]*)
9840      hardcode_direct=no
9841      hardcode_shlibpath_var=no
9842      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9843      export_dynamic_flag_spec='${wl}-E'
9844      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9845      # Instead, shared libraries are loaded at an image base (0x10000000 by
9846      # default) and relocated if they conflict, which is a slow very memory
9847      # consuming and fragmenting process.  To avoid this, we pick a random,
9848      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9849      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9850      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9851      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'
9852      ;;
9853
9854    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9855      tmp_diet=no
9856      if test "$host_os" = linux-dietlibc; then
9857	case $cc_basename in
9858	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9859	esac
9860      fi
9861      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9862	 && test "$tmp_diet" = no
9863      then
9864	tmp_addflag=' $pic_flag'
9865	tmp_sharedflag='-shared'
9866	case $cc_basename,$host_cpu in
9867        pgcc*)				# Portland Group C compiler
9868	  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'
9869	  tmp_addflag=' $pic_flag'
9870	  ;;
9871	pgf77* | pgf90* | pgf95* | pgfortran*)
9872					# Portland Group f77 and f90 compilers
9873	  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'
9874	  tmp_addflag=' $pic_flag -Mnomain' ;;
9875	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9876	  tmp_addflag=' -i_dynamic' ;;
9877	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9878	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9879	ifc* | ifort*)			# Intel Fortran compiler
9880	  tmp_addflag=' -nofor_main' ;;
9881	lf95*)				# Lahey Fortran 8.1
9882	  whole_archive_flag_spec=
9883	  tmp_sharedflag='--shared' ;;
9884	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9885	  tmp_sharedflag='-qmkshrobj'
9886	  tmp_addflag= ;;
9887	nvcc*)	# Cuda Compiler Driver 2.2
9888	  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'
9889	  compiler_needs_object=yes
9890	  ;;
9891	esac
9892	case `$CC -V 2>&1 | sed 5q` in
9893	*Sun\ C*)			# Sun C 5.9
9894	  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'
9895	  compiler_needs_object=yes
9896	  tmp_sharedflag='-G' ;;
9897	*Sun\ F*)			# Sun Fortran 8.3
9898	  tmp_sharedflag='-G' ;;
9899	esac
9900	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9901
9902        if test "x$supports_anon_versioning" = xyes; then
9903          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9904	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9905	    echo "local: *; };" >> $output_objdir/$libname.ver~
9906	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9907        fi
9908
9909	case $cc_basename in
9910	xlf* | bgf* | bgxlf* | mpixlf*)
9911	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9912	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9913	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9914	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9915	  if test "x$supports_anon_versioning" = xyes; then
9916	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9917	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9918	      echo "local: *; };" >> $output_objdir/$libname.ver~
9919	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9920	  fi
9921	  ;;
9922	esac
9923      else
9924        ld_shlibs=no
9925      fi
9926      ;;
9927
9928    netbsd* | netbsdelf*-gnu)
9929      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9930	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9931	wlarc=
9932      else
9933	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9935      fi
9936      ;;
9937
9938    solaris*)
9939      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9940	ld_shlibs=no
9941	cat <<_LT_EOF 1>&2
9942
9943*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9944*** create shared libraries on Solaris systems.  Therefore, libtool
9945*** is disabling shared libraries support.  We urge you to upgrade GNU
9946*** binutils to release 2.9.1 or newer.  Another option is to modify
9947*** your PATH or compiler configuration so that the native linker is
9948*** used, and then restart.
9949
9950_LT_EOF
9951      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9952	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9954      else
9955	ld_shlibs=no
9956      fi
9957      ;;
9958
9959    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9960      case `$LD -v 2>&1` in
9961        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9962	ld_shlibs=no
9963	cat <<_LT_EOF 1>&2
9964
9965*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9966*** reliably create shared libraries on SCO systems.  Therefore, libtool
9967*** is disabling shared libraries support.  We urge you to upgrade GNU
9968*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9969*** your PATH or compiler configuration so that the native linker is
9970*** used, and then restart.
9971
9972_LT_EOF
9973	;;
9974	*)
9975	  # For security reasons, it is highly recommended that you always
9976	  # use absolute paths for naming shared libraries, and exclude the
9977	  # DT_RUNPATH tag from executables and libraries.  But doing so
9978	  # requires that you compile everything twice, which is a pain.
9979	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983	  else
9984	    ld_shlibs=no
9985	  fi
9986	;;
9987      esac
9988      ;;
9989
9990    sunos4*)
9991      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9992      wlarc=
9993      hardcode_direct=yes
9994      hardcode_shlibpath_var=no
9995      ;;
9996
9997    *)
9998      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10001      else
10002	ld_shlibs=no
10003      fi
10004      ;;
10005    esac
10006
10007    if test "$ld_shlibs" = no; then
10008      runpath_var=
10009      hardcode_libdir_flag_spec=
10010      export_dynamic_flag_spec=
10011      whole_archive_flag_spec=
10012    fi
10013  else
10014    # PORTME fill in a description of your system's linker (not GNU ld)
10015    case $host_os in
10016    aix3*)
10017      allow_undefined_flag=unsupported
10018      always_export_symbols=yes
10019      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'
10020      # Note: this linker hardcodes the directories in LIBPATH if there
10021      # are no directories specified by -L.
10022      hardcode_minus_L=yes
10023      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10024	# Neither direct hardcoding nor static linking is supported with a
10025	# broken collect2.
10026	hardcode_direct=unsupported
10027      fi
10028      ;;
10029
10030    aix[4-9]*)
10031      if test "$host_cpu" = ia64; then
10032	# On IA64, the linker does run time linking by default, so we don't
10033	# have to do anything special.
10034	aix_use_runtimelinking=no
10035	exp_sym_flag='-Bexport'
10036	no_entry_flag=""
10037      else
10038	# If we're using GNU nm, then we don't want the "-C" option.
10039	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10040	# Also, AIX nm treats weak defined symbols like other global
10041	# defined symbols, whereas GNU nm marks them as "W".
10042	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10043	  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'
10044	else
10045	  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'
10046	fi
10047	aix_use_runtimelinking=no
10048
10049	# Test if we are trying to use run time linking or normal
10050	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10051	# need to do runtime linking.
10052	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10053	  for ld_flag in $LDFLAGS; do
10054	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10055	    aix_use_runtimelinking=yes
10056	    break
10057	  fi
10058	  done
10059	  ;;
10060	esac
10061
10062	exp_sym_flag='-bexport'
10063	no_entry_flag='-bnoentry'
10064      fi
10065
10066      # When large executables or shared objects are built, AIX ld can
10067      # have problems creating the table of contents.  If linking a library
10068      # or program results in "error TOC overflow" add -mminimal-toc to
10069      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10070      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10071
10072      archive_cmds=''
10073      hardcode_direct=yes
10074      hardcode_direct_absolute=yes
10075      hardcode_libdir_separator=':'
10076      link_all_deplibs=yes
10077      file_list_spec='${wl}-f,'
10078
10079      if test "$GCC" = yes; then
10080	case $host_os in aix4.[012]|aix4.[012].*)
10081	# We only want to do this on AIX 4.2 and lower, the check
10082	# below for broken collect2 doesn't work under 4.3+
10083	  collect2name=`${CC} -print-prog-name=collect2`
10084	  if test -f "$collect2name" &&
10085	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10086	  then
10087	  # We have reworked collect2
10088	  :
10089	  else
10090	  # We have old collect2
10091	  hardcode_direct=unsupported
10092	  # It fails to find uninstalled libraries when the uninstalled
10093	  # path is not listed in the libpath.  Setting hardcode_minus_L
10094	  # to unsupported forces relinking
10095	  hardcode_minus_L=yes
10096	  hardcode_libdir_flag_spec='-L$libdir'
10097	  hardcode_libdir_separator=
10098	  fi
10099	  ;;
10100	esac
10101	shared_flag='-shared'
10102	if test "$aix_use_runtimelinking" = yes; then
10103	  shared_flag="$shared_flag "'${wl}-G'
10104	fi
10105	link_all_deplibs=no
10106      else
10107	# not using gcc
10108	if test "$host_cpu" = ia64; then
10109	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10110	# chokes on -Wl,-G. The following line is correct:
10111	  shared_flag='-G'
10112	else
10113	  if test "$aix_use_runtimelinking" = yes; then
10114	    shared_flag='${wl}-G'
10115	  else
10116	    shared_flag='${wl}-bM:SRE'
10117	  fi
10118	fi
10119      fi
10120
10121      export_dynamic_flag_spec='${wl}-bexpall'
10122      # It seems that -bexpall does not export symbols beginning with
10123      # underscore (_), so it is better to generate a list of symbols to export.
10124      always_export_symbols=yes
10125      if test "$aix_use_runtimelinking" = yes; then
10126	# Warning - without using the other runtime loading flags (-brtl),
10127	# -berok will link without error, but may produce a broken library.
10128	allow_undefined_flag='-berok'
10129        # Determine the default libpath from the value encoded in an
10130        # empty executable.
10131        if test "${lt_cv_aix_libpath+set}" = set; then
10132  aix_libpath=$lt_cv_aix_libpath
10133else
10134  if ${lt_cv_aix_libpath_+:} false; then :
10135  $as_echo_n "(cached) " >&6
10136else
10137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138/* end confdefs.h.  */
10139
10140int
10141main ()
10142{
10143
10144  ;
10145  return 0;
10146}
10147_ACEOF
10148if ac_fn_c_try_link "$LINENO"; then :
10149
10150  lt_aix_libpath_sed='
10151      /Import File Strings/,/^$/ {
10152	  /^0/ {
10153	      s/^0  *\([^ ]*\) *$/\1/
10154	      p
10155	  }
10156      }'
10157  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10158  # Check for a 64-bit object if we didn't find anything.
10159  if test -z "$lt_cv_aix_libpath_"; then
10160    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10161  fi
10162fi
10163rm -f core conftest.err conftest.$ac_objext \
10164    conftest$ac_exeext conftest.$ac_ext
10165  if test -z "$lt_cv_aix_libpath_"; then
10166    lt_cv_aix_libpath_="/usr/lib:/lib"
10167  fi
10168
10169fi
10170
10171  aix_libpath=$lt_cv_aix_libpath_
10172fi
10173
10174        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10175        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"
10176      else
10177	if test "$host_cpu" = ia64; then
10178	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10179	  allow_undefined_flag="-z nodefs"
10180	  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"
10181	else
10182	 # Determine the default libpath from the value encoded in an
10183	 # empty executable.
10184	 if test "${lt_cv_aix_libpath+set}" = set; then
10185  aix_libpath=$lt_cv_aix_libpath
10186else
10187  if ${lt_cv_aix_libpath_+:} false; then :
10188  $as_echo_n "(cached) " >&6
10189else
10190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191/* end confdefs.h.  */
10192
10193int
10194main ()
10195{
10196
10197  ;
10198  return 0;
10199}
10200_ACEOF
10201if ac_fn_c_try_link "$LINENO"; then :
10202
10203  lt_aix_libpath_sed='
10204      /Import File Strings/,/^$/ {
10205	  /^0/ {
10206	      s/^0  *\([^ ]*\) *$/\1/
10207	      p
10208	  }
10209      }'
10210  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10211  # Check for a 64-bit object if we didn't find anything.
10212  if test -z "$lt_cv_aix_libpath_"; then
10213    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10214  fi
10215fi
10216rm -f core conftest.err conftest.$ac_objext \
10217    conftest$ac_exeext conftest.$ac_ext
10218  if test -z "$lt_cv_aix_libpath_"; then
10219    lt_cv_aix_libpath_="/usr/lib:/lib"
10220  fi
10221
10222fi
10223
10224  aix_libpath=$lt_cv_aix_libpath_
10225fi
10226
10227	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10228	  # Warning - without using the other run time loading flags,
10229	  # -berok will link without error, but may produce a broken library.
10230	  no_undefined_flag=' ${wl}-bernotok'
10231	  allow_undefined_flag=' ${wl}-berok'
10232	  if test "$with_gnu_ld" = yes; then
10233	    # We only use this code for GNU lds that support --whole-archive.
10234	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10235	  else
10236	    # Exported symbols can be pulled into shared objects from archives
10237	    whole_archive_flag_spec='$convenience'
10238	  fi
10239	  archive_cmds_need_lc=yes
10240	  # This is similar to how AIX traditionally builds its shared libraries.
10241	  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'
10242	fi
10243      fi
10244      ;;
10245
10246    amigaos*)
10247      case $host_cpu in
10248      powerpc)
10249            # see comment about AmigaOS4 .so support
10250            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10251            archive_expsym_cmds=''
10252        ;;
10253      m68k)
10254            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)'
10255            hardcode_libdir_flag_spec='-L$libdir'
10256            hardcode_minus_L=yes
10257        ;;
10258      esac
10259      ;;
10260
10261    bsdi[45]*)
10262      export_dynamic_flag_spec=-rdynamic
10263      ;;
10264
10265    cygwin* | mingw* | pw32* | cegcc*)
10266      # When not using gcc, we currently assume that we are using
10267      # Microsoft Visual C++.
10268      # hardcode_libdir_flag_spec is actually meaningless, as there is
10269      # no search path for DLLs.
10270      case $cc_basename in
10271      cl*)
10272	# Native MSVC
10273	hardcode_libdir_flag_spec=' '
10274	allow_undefined_flag=unsupported
10275	always_export_symbols=yes
10276	file_list_spec='@'
10277	# Tell ltmain to make .lib files, not .a files.
10278	libext=lib
10279	# Tell ltmain to make .dll files, not .so files.
10280	shrext_cmds=".dll"
10281	# FIXME: Setting linknames here is a bad hack.
10282	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10283	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10284	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10285	  else
10286	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10287	  fi~
10288	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10289	  linknames='
10290	# The linker will not automatically build a static lib if we build a DLL.
10291	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10292	enable_shared_with_static_runtimes=yes
10293	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10294	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10295	# Don't use ranlib
10296	old_postinstall_cmds='chmod 644 $oldlib'
10297	postlink_cmds='lt_outputfile="@OUTPUT@"~
10298	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10299	  case $lt_outputfile in
10300	    *.exe|*.EXE) ;;
10301	    *)
10302	      lt_outputfile="$lt_outputfile.exe"
10303	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10304	      ;;
10305	  esac~
10306	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10307	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10308	    $RM "$lt_outputfile.manifest";
10309	  fi'
10310	;;
10311      *)
10312	# Assume MSVC wrapper
10313	hardcode_libdir_flag_spec=' '
10314	allow_undefined_flag=unsupported
10315	# Tell ltmain to make .lib files, not .a files.
10316	libext=lib
10317	# Tell ltmain to make .dll files, not .so files.
10318	shrext_cmds=".dll"
10319	# FIXME: Setting linknames here is a bad hack.
10320	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10321	# The linker will automatically build a .lib file if we build a DLL.
10322	old_archive_from_new_cmds='true'
10323	# FIXME: Should let the user specify the lib program.
10324	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10325	enable_shared_with_static_runtimes=yes
10326	;;
10327      esac
10328      ;;
10329
10330    darwin* | rhapsody*)
10331
10332
10333  archive_cmds_need_lc=no
10334  hardcode_direct=no
10335  hardcode_automatic=yes
10336  hardcode_shlibpath_var=unsupported
10337  if test "$lt_cv_ld_force_load" = "yes"; then
10338    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\"`'
10339
10340  else
10341    whole_archive_flag_spec=''
10342  fi
10343  link_all_deplibs=yes
10344  allow_undefined_flag="$_lt_dar_allow_undefined"
10345  case $cc_basename in
10346     ifort*) _lt_dar_can_shared=yes ;;
10347     *) _lt_dar_can_shared=$GCC ;;
10348  esac
10349  if test "$_lt_dar_can_shared" = "yes"; then
10350    output_verbose_link_cmd=func_echo_all
10351    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10352    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10353    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}"
10354    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}"
10355
10356  else
10357  ld_shlibs=no
10358  fi
10359
10360      ;;
10361
10362    dgux*)
10363      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364      hardcode_libdir_flag_spec='-L$libdir'
10365      hardcode_shlibpath_var=no
10366      ;;
10367
10368    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10369    # support.  Future versions do this automatically, but an explicit c++rt0.o
10370    # does not break anything, and helps significantly (at the cost of a little
10371    # extra space).
10372    freebsd2.2*)
10373      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10374      hardcode_libdir_flag_spec='-R$libdir'
10375      hardcode_direct=yes
10376      hardcode_shlibpath_var=no
10377      ;;
10378
10379    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10380    freebsd2.*)
10381      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10382      hardcode_direct=yes
10383      hardcode_minus_L=yes
10384      hardcode_shlibpath_var=no
10385      ;;
10386
10387    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10388    freebsd* | dragonfly*)
10389      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10390      hardcode_libdir_flag_spec='-R$libdir'
10391      hardcode_direct=yes
10392      hardcode_shlibpath_var=no
10393      ;;
10394
10395    hpux9*)
10396      if test "$GCC" = yes; then
10397	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'
10398      else
10399	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'
10400      fi
10401      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10402      hardcode_libdir_separator=:
10403      hardcode_direct=yes
10404
10405      # hardcode_minus_L: Not really in the search PATH,
10406      # but as the default location of the library.
10407      hardcode_minus_L=yes
10408      export_dynamic_flag_spec='${wl}-E'
10409      ;;
10410
10411    hpux10*)
10412      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10413	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10414      else
10415	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10416      fi
10417      if test "$with_gnu_ld" = no; then
10418	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10419	hardcode_libdir_separator=:
10420	hardcode_direct=yes
10421	hardcode_direct_absolute=yes
10422	export_dynamic_flag_spec='${wl}-E'
10423	# hardcode_minus_L: Not really in the search PATH,
10424	# but as the default location of the library.
10425	hardcode_minus_L=yes
10426      fi
10427      ;;
10428
10429    hpux11*)
10430      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10431	case $host_cpu in
10432	hppa*64*)
10433	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10434	  ;;
10435	ia64*)
10436	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10437	  ;;
10438	*)
10439	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10440	  ;;
10441	esac
10442      else
10443	case $host_cpu in
10444	hppa*64*)
10445	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10446	  ;;
10447	ia64*)
10448	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10449	  ;;
10450	*)
10451
10452	  # Older versions of the 11.00 compiler do not understand -b yet
10453	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10454	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10455$as_echo_n "checking if $CC understands -b... " >&6; }
10456if ${lt_cv_prog_compiler__b+:} false; then :
10457  $as_echo_n "(cached) " >&6
10458else
10459  lt_cv_prog_compiler__b=no
10460   save_LDFLAGS="$LDFLAGS"
10461   LDFLAGS="$LDFLAGS -b"
10462   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10463   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10464     # The linker can only warn and ignore the option if not recognized
10465     # So say no if there are warnings
10466     if test -s conftest.err; then
10467       # Append any errors to the config.log.
10468       cat conftest.err 1>&5
10469       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10470       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10471       if diff conftest.exp conftest.er2 >/dev/null; then
10472         lt_cv_prog_compiler__b=yes
10473       fi
10474     else
10475       lt_cv_prog_compiler__b=yes
10476     fi
10477   fi
10478   $RM -r conftest*
10479   LDFLAGS="$save_LDFLAGS"
10480
10481fi
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10483$as_echo "$lt_cv_prog_compiler__b" >&6; }
10484
10485if test x"$lt_cv_prog_compiler__b" = xyes; then
10486    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10487else
10488    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10489fi
10490
10491	  ;;
10492	esac
10493      fi
10494      if test "$with_gnu_ld" = no; then
10495	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10496	hardcode_libdir_separator=:
10497
10498	case $host_cpu in
10499	hppa*64*|ia64*)
10500	  hardcode_direct=no
10501	  hardcode_shlibpath_var=no
10502	  ;;
10503	*)
10504	  hardcode_direct=yes
10505	  hardcode_direct_absolute=yes
10506	  export_dynamic_flag_spec='${wl}-E'
10507
10508	  # hardcode_minus_L: Not really in the search PATH,
10509	  # but as the default location of the library.
10510	  hardcode_minus_L=yes
10511	  ;;
10512	esac
10513      fi
10514      ;;
10515
10516    irix5* | irix6* | nonstopux*)
10517      if test "$GCC" = yes; then
10518	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'
10519	# Try to use the -exported_symbol ld option, if it does not
10520	# work, assume that -exports_file does not work either and
10521	# implicitly export all symbols.
10522	# This should be the same for all languages, so no per-tag cache variable.
10523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10524$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10525if ${lt_cv_irix_exported_symbol+:} false; then :
10526  $as_echo_n "(cached) " >&6
10527else
10528  save_LDFLAGS="$LDFLAGS"
10529	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10530	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531/* end confdefs.h.  */
10532int foo (void) { return 0; }
10533_ACEOF
10534if ac_fn_c_try_link "$LINENO"; then :
10535  lt_cv_irix_exported_symbol=yes
10536else
10537  lt_cv_irix_exported_symbol=no
10538fi
10539rm -f core conftest.err conftest.$ac_objext \
10540    conftest$ac_exeext conftest.$ac_ext
10541           LDFLAGS="$save_LDFLAGS"
10542fi
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10544$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10545	if test "$lt_cv_irix_exported_symbol" = yes; then
10546          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'
10547	fi
10548      else
10549	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'
10550	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'
10551      fi
10552      archive_cmds_need_lc='no'
10553      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10554      hardcode_libdir_separator=:
10555      inherit_rpath=yes
10556      link_all_deplibs=yes
10557      ;;
10558
10559    netbsd* | netbsdelf*-gnu)
10560      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10561	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10562      else
10563	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10564      fi
10565      hardcode_libdir_flag_spec='-R$libdir'
10566      hardcode_direct=yes
10567      hardcode_shlibpath_var=no
10568      ;;
10569
10570    newsos6)
10571      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572      hardcode_direct=yes
10573      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10574      hardcode_libdir_separator=:
10575      hardcode_shlibpath_var=no
10576      ;;
10577
10578    *nto* | *qnx*)
10579      ;;
10580
10581    openbsd*)
10582      if test -f /usr/libexec/ld.so; then
10583	hardcode_direct=yes
10584	hardcode_shlibpath_var=no
10585	hardcode_direct_absolute=yes
10586	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10587	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10588	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10589	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10590	  export_dynamic_flag_spec='${wl}-E'
10591	else
10592	  case $host_os in
10593	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10594	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10595	     hardcode_libdir_flag_spec='-R$libdir'
10596	     ;;
10597	   *)
10598	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10599	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10600	     ;;
10601	  esac
10602	fi
10603      else
10604	ld_shlibs=no
10605      fi
10606      ;;
10607
10608    os2*)
10609      hardcode_libdir_flag_spec='-L$libdir'
10610      hardcode_minus_L=yes
10611      allow_undefined_flag=unsupported
10612      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'
10613      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10614      ;;
10615
10616    osf3*)
10617      if test "$GCC" = yes; then
10618	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10619	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'
10620      else
10621	allow_undefined_flag=' -expect_unresolved \*'
10622	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'
10623      fi
10624      archive_cmds_need_lc='no'
10625      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10626      hardcode_libdir_separator=:
10627      ;;
10628
10629    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10630      if test "$GCC" = yes; then
10631	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10632	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'
10633	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10634      else
10635	allow_undefined_flag=' -expect_unresolved \*'
10636	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'
10637	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~
10638	$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'
10639
10640	# Both c and cxx compiler support -rpath directly
10641	hardcode_libdir_flag_spec='-rpath $libdir'
10642      fi
10643      archive_cmds_need_lc='no'
10644      hardcode_libdir_separator=:
10645      ;;
10646
10647    solaris*)
10648      no_undefined_flag=' -z defs'
10649      if test "$GCC" = yes; then
10650	wlarc='${wl}'
10651	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10652	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10653	  $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'
10654      else
10655	case `$CC -V 2>&1` in
10656	*"Compilers 5.0"*)
10657	  wlarc=''
10658	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10659	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10660	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10661	  ;;
10662	*)
10663	  wlarc='${wl}'
10664	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10665	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10666	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10667	  ;;
10668	esac
10669      fi
10670      hardcode_libdir_flag_spec='-R$libdir'
10671      hardcode_shlibpath_var=no
10672      case $host_os in
10673      solaris2.[0-5] | solaris2.[0-5].*) ;;
10674      *)
10675	# The compiler driver will combine and reorder linker options,
10676	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10677	# but is careful enough not to reorder.
10678	# Supported since Solaris 2.6 (maybe 2.5.1?)
10679	if test "$GCC" = yes; then
10680	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10681	else
10682	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10683	fi
10684	;;
10685      esac
10686      link_all_deplibs=yes
10687      ;;
10688
10689    sunos4*)
10690      if test "x$host_vendor" = xsequent; then
10691	# Use $CC to link under sequent, because it throws in some extra .o
10692	# files that make .init and .fini sections work.
10693	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10694      else
10695	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10696      fi
10697      hardcode_libdir_flag_spec='-L$libdir'
10698      hardcode_direct=yes
10699      hardcode_minus_L=yes
10700      hardcode_shlibpath_var=no
10701      ;;
10702
10703    sysv4)
10704      case $host_vendor in
10705	sni)
10706	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707	  hardcode_direct=yes # is this really true???
10708	;;
10709	siemens)
10710	  ## LD is ld it makes a PLAMLIB
10711	  ## CC just makes a GrossModule.
10712	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10713	  reload_cmds='$CC -r -o $output$reload_objs'
10714	  hardcode_direct=no
10715        ;;
10716	motorola)
10717	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10719	;;
10720      esac
10721      runpath_var='LD_RUN_PATH'
10722      hardcode_shlibpath_var=no
10723      ;;
10724
10725    sysv4.3*)
10726      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10727      hardcode_shlibpath_var=no
10728      export_dynamic_flag_spec='-Bexport'
10729      ;;
10730
10731    sysv4*MP*)
10732      if test -d /usr/nec; then
10733	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734	hardcode_shlibpath_var=no
10735	runpath_var=LD_RUN_PATH
10736	hardcode_runpath_var=yes
10737	ld_shlibs=yes
10738      fi
10739      ;;
10740
10741    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10742      no_undefined_flag='${wl}-z,text'
10743      archive_cmds_need_lc=no
10744      hardcode_shlibpath_var=no
10745      runpath_var='LD_RUN_PATH'
10746
10747      if test "$GCC" = yes; then
10748	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10750      else
10751	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753      fi
10754      ;;
10755
10756    sysv5* | sco3.2v5* | sco5v6*)
10757      # Note: We can NOT use -z defs as we might desire, because we do not
10758      # link with -lc, and that would cause any symbols used from libc to
10759      # always be unresolved, which means just about no library would
10760      # ever link correctly.  If we're not using GNU ld we use -z text
10761      # though, which does catch some bad symbols but isn't as heavy-handed
10762      # as -z defs.
10763      no_undefined_flag='${wl}-z,text'
10764      allow_undefined_flag='${wl}-z,nodefs'
10765      archive_cmds_need_lc=no
10766      hardcode_shlibpath_var=no
10767      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10768      hardcode_libdir_separator=':'
10769      link_all_deplibs=yes
10770      export_dynamic_flag_spec='${wl}-Bexport'
10771      runpath_var='LD_RUN_PATH'
10772
10773      if test "$GCC" = yes; then
10774	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10776      else
10777	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10779      fi
10780      ;;
10781
10782    uts4*)
10783      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784      hardcode_libdir_flag_spec='-L$libdir'
10785      hardcode_shlibpath_var=no
10786      ;;
10787
10788    *)
10789      ld_shlibs=no
10790      ;;
10791    esac
10792
10793    if test x$host_vendor = xsni; then
10794      case $host in
10795      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10796	export_dynamic_flag_spec='${wl}-Blargedynsym'
10797	;;
10798      esac
10799    fi
10800  fi
10801
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10803$as_echo "$ld_shlibs" >&6; }
10804test "$ld_shlibs" = no && can_build_shared=no
10805
10806with_gnu_ld=$with_gnu_ld
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822#
10823# Do we need to explicitly link libc?
10824#
10825case "x$archive_cmds_need_lc" in
10826x|xyes)
10827  # Assume -lc should be added
10828  archive_cmds_need_lc=yes
10829
10830  if test "$enable_shared" = yes && test "$GCC" = yes; then
10831    case $archive_cmds in
10832    *'~'*)
10833      # FIXME: we may have to deal with multi-command sequences.
10834      ;;
10835    '$CC '*)
10836      # Test whether the compiler implicitly links with -lc since on some
10837      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10838      # to ld, don't add -lc before -lgcc.
10839      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10840$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10841if ${lt_cv_archive_cmds_need_lc+:} false; then :
10842  $as_echo_n "(cached) " >&6
10843else
10844  $RM conftest*
10845	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10846
10847	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10848  (eval $ac_compile) 2>&5
10849  ac_status=$?
10850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851  test $ac_status = 0; } 2>conftest.err; then
10852	  soname=conftest
10853	  lib=conftest
10854	  libobjs=conftest.$ac_objext
10855	  deplibs=
10856	  wl=$lt_prog_compiler_wl
10857	  pic_flag=$lt_prog_compiler_pic
10858	  compiler_flags=-v
10859	  linker_flags=-v
10860	  verstring=
10861	  output_objdir=.
10862	  libname=conftest
10863	  lt_save_allow_undefined_flag=$allow_undefined_flag
10864	  allow_undefined_flag=
10865	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10866  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10867  ac_status=$?
10868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10869  test $ac_status = 0; }
10870	  then
10871	    lt_cv_archive_cmds_need_lc=no
10872	  else
10873	    lt_cv_archive_cmds_need_lc=yes
10874	  fi
10875	  allow_undefined_flag=$lt_save_allow_undefined_flag
10876	else
10877	  cat conftest.err 1>&5
10878	fi
10879	$RM conftest*
10880
10881fi
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10883$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10884      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10885      ;;
10886    esac
10887  fi
10888  ;;
10889esac
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
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
11042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11043$as_echo_n "checking dynamic linker characteristics... " >&6; }
11044
11045if test "$GCC" = yes; then
11046  case $host_os in
11047    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11048    *) lt_awk_arg="/^libraries:/" ;;
11049  esac
11050  case $host_os in
11051    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11052    *) lt_sed_strip_eq="s,=/,/,g" ;;
11053  esac
11054  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11055  case $lt_search_path_spec in
11056  *\;*)
11057    # if the path contains ";" then we assume it to be the separator
11058    # otherwise default to the standard path separator (i.e. ":") - it is
11059    # assumed that no part of a normal pathname contains ";" but that should
11060    # okay in the real world where ";" in dirpaths is itself problematic.
11061    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11062    ;;
11063  *)
11064    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11065    ;;
11066  esac
11067  # Ok, now we have the path, separated by spaces, we can step through it
11068  # and add multilib dir if necessary.
11069  lt_tmp_lt_search_path_spec=
11070  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11071  for lt_sys_path in $lt_search_path_spec; do
11072    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11073      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11074    else
11075      test -d "$lt_sys_path" && \
11076	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11077    fi
11078  done
11079  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11080BEGIN {RS=" "; FS="/|\n";} {
11081  lt_foo="";
11082  lt_count=0;
11083  for (lt_i = NF; lt_i > 0; lt_i--) {
11084    if ($lt_i != "" && $lt_i != ".") {
11085      if ($lt_i == "..") {
11086        lt_count++;
11087      } else {
11088        if (lt_count == 0) {
11089          lt_foo="/" $lt_i lt_foo;
11090        } else {
11091          lt_count--;
11092        }
11093      }
11094    }
11095  }
11096  if (lt_foo != "") { lt_freq[lt_foo]++; }
11097  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11098}'`
11099  # AWK program above erroneously prepends '/' to C:/dos/paths
11100  # for these hosts.
11101  case $host_os in
11102    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11103      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11104  esac
11105  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11106else
11107  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11108fi
11109library_names_spec=
11110libname_spec='lib$name'
11111soname_spec=
11112shrext_cmds=".so"
11113postinstall_cmds=
11114postuninstall_cmds=
11115finish_cmds=
11116finish_eval=
11117shlibpath_var=
11118shlibpath_overrides_runpath=unknown
11119version_type=none
11120dynamic_linker="$host_os ld.so"
11121sys_lib_dlsearch_path_spec="/lib /usr/lib"
11122need_lib_prefix=unknown
11123hardcode_into_libs=no
11124
11125# when you set need_version to no, make sure it does not cause -set_version
11126# flags to be left without arguments
11127need_version=unknown
11128
11129case $host_os in
11130aix3*)
11131  version_type=linux # correct to gnu/linux during the next big refactor
11132  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11133  shlibpath_var=LIBPATH
11134
11135  # AIX 3 has no versioning support, so we append a major version to the name.
11136  soname_spec='${libname}${release}${shared_ext}$major'
11137  ;;
11138
11139aix[4-9]*)
11140  version_type=linux # correct to gnu/linux during the next big refactor
11141  need_lib_prefix=no
11142  need_version=no
11143  hardcode_into_libs=yes
11144  if test "$host_cpu" = ia64; then
11145    # AIX 5 supports IA64
11146    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11147    shlibpath_var=LD_LIBRARY_PATH
11148  else
11149    # With GCC up to 2.95.x, collect2 would create an import file
11150    # for dependence libraries.  The import file would start with
11151    # the line `#! .'.  This would cause the generated library to
11152    # depend on `.', always an invalid library.  This was fixed in
11153    # development snapshots of GCC prior to 3.0.
11154    case $host_os in
11155      aix4 | aix4.[01] | aix4.[01].*)
11156      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11157	   echo ' yes '
11158	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11159	:
11160      else
11161	can_build_shared=no
11162      fi
11163      ;;
11164    esac
11165    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11166    # soname into executable. Probably we can add versioning support to
11167    # collect2, so additional links can be useful in future.
11168    if test "$aix_use_runtimelinking" = yes; then
11169      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11170      # instead of lib<name>.a to let people know that these are not
11171      # typical AIX shared libraries.
11172      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173    else
11174      # We preserve .a as extension for shared libraries through AIX4.2
11175      # and later when we are not doing run time linking.
11176      library_names_spec='${libname}${release}.a $libname.a'
11177      soname_spec='${libname}${release}${shared_ext}$major'
11178    fi
11179    shlibpath_var=LIBPATH
11180  fi
11181  ;;
11182
11183amigaos*)
11184  case $host_cpu in
11185  powerpc)
11186    # Since July 2007 AmigaOS4 officially supports .so libraries.
11187    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11188    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189    ;;
11190  m68k)
11191    library_names_spec='$libname.ixlibrary $libname.a'
11192    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11193    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'
11194    ;;
11195  esac
11196  ;;
11197
11198beos*)
11199  library_names_spec='${libname}${shared_ext}'
11200  dynamic_linker="$host_os ld.so"
11201  shlibpath_var=LIBRARY_PATH
11202  ;;
11203
11204bsdi[45]*)
11205  version_type=linux # correct to gnu/linux during the next big refactor
11206  need_version=no
11207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208  soname_spec='${libname}${release}${shared_ext}$major'
11209  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11210  shlibpath_var=LD_LIBRARY_PATH
11211  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11212  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11213  # the default ld.so.conf also contains /usr/contrib/lib and
11214  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11215  # libtool to hard-code these into programs
11216  ;;
11217
11218cygwin* | mingw* | pw32* | cegcc*)
11219  version_type=windows
11220  shrext_cmds=".dll"
11221  need_version=no
11222  need_lib_prefix=no
11223
11224  case $GCC,$cc_basename in
11225  yes,*)
11226    # gcc
11227    library_names_spec='$libname.dll.a'
11228    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11229    postinstall_cmds='base_file=`basename \${file}`~
11230      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11231      dldir=$destdir/`dirname \$dlpath`~
11232      test -d \$dldir || mkdir -p \$dldir~
11233      $install_prog $dir/$dlname \$dldir/$dlname~
11234      chmod a+x \$dldir/$dlname~
11235      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11236        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11237      fi'
11238    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11239      dlpath=$dir/\$dldll~
11240       $RM \$dlpath'
11241    shlibpath_overrides_runpath=yes
11242
11243    case $host_os in
11244    cygwin*)
11245      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11246      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11247
11248      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11249      ;;
11250    mingw* | cegcc*)
11251      # MinGW DLLs use traditional 'lib' prefix
11252      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11253      ;;
11254    pw32*)
11255      # pw32 DLLs use 'pw' prefix rather than 'lib'
11256      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11257      ;;
11258    esac
11259    dynamic_linker='Win32 ld.exe'
11260    ;;
11261
11262  *,cl*)
11263    # Native MSVC
11264    libname_spec='$name'
11265    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11266    library_names_spec='${libname}.dll.lib'
11267
11268    case $build_os in
11269    mingw*)
11270      sys_lib_search_path_spec=
11271      lt_save_ifs=$IFS
11272      IFS=';'
11273      for lt_path in $LIB
11274      do
11275        IFS=$lt_save_ifs
11276        # Let DOS variable expansion print the short 8.3 style file name.
11277        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11278        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11279      done
11280      IFS=$lt_save_ifs
11281      # Convert to MSYS style.
11282      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11283      ;;
11284    cygwin*)
11285      # Convert to unix form, then to dos form, then back to unix form
11286      # but this time dos style (no spaces!) so that the unix form looks
11287      # like /cygdrive/c/PROGRA~1:/cygdr...
11288      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11289      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11290      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11291      ;;
11292    *)
11293      sys_lib_search_path_spec="$LIB"
11294      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11295        # It is most probably a Windows format PATH.
11296        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11297      else
11298        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11299      fi
11300      # FIXME: find the short name or the path components, as spaces are
11301      # common. (e.g. "Program Files" -> "PROGRA~1")
11302      ;;
11303    esac
11304
11305    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11306    postinstall_cmds='base_file=`basename \${file}`~
11307      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11308      dldir=$destdir/`dirname \$dlpath`~
11309      test -d \$dldir || mkdir -p \$dldir~
11310      $install_prog $dir/$dlname \$dldir/$dlname'
11311    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11312      dlpath=$dir/\$dldll~
11313       $RM \$dlpath'
11314    shlibpath_overrides_runpath=yes
11315    dynamic_linker='Win32 link.exe'
11316    ;;
11317
11318  *)
11319    # Assume MSVC wrapper
11320    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11321    dynamic_linker='Win32 ld.exe'
11322    ;;
11323  esac
11324  # FIXME: first we should search . and the directory the executable is in
11325  shlibpath_var=PATH
11326  ;;
11327
11328darwin* | rhapsody*)
11329  dynamic_linker="$host_os dyld"
11330  version_type=darwin
11331  need_lib_prefix=no
11332  need_version=no
11333  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11334  soname_spec='${libname}${release}${major}$shared_ext'
11335  shlibpath_overrides_runpath=yes
11336  shlibpath_var=DYLD_LIBRARY_PATH
11337  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11338
11339  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11340  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11341  ;;
11342
11343dgux*)
11344  version_type=linux # correct to gnu/linux during the next big refactor
11345  need_lib_prefix=no
11346  need_version=no
11347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11348  soname_spec='${libname}${release}${shared_ext}$major'
11349  shlibpath_var=LD_LIBRARY_PATH
11350  ;;
11351
11352freebsd* | dragonfly*)
11353  # DragonFly does not have aout.  When/if they implement a new
11354  # versioning mechanism, adjust this.
11355  if test -x /usr/bin/objformat; then
11356    objformat=`/usr/bin/objformat`
11357  else
11358    case $host_os in
11359    freebsd[23].*) objformat=aout ;;
11360    *) objformat=elf ;;
11361    esac
11362  fi
11363  version_type=freebsd-$objformat
11364  case $version_type in
11365    freebsd-elf*)
11366      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11367      need_version=no
11368      need_lib_prefix=no
11369      ;;
11370    freebsd-*)
11371      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11372      need_version=yes
11373      ;;
11374  esac
11375  shlibpath_var=LD_LIBRARY_PATH
11376  case $host_os in
11377  freebsd2.*)
11378    shlibpath_overrides_runpath=yes
11379    ;;
11380  freebsd3.[01]* | freebsdelf3.[01]*)
11381    shlibpath_overrides_runpath=yes
11382    hardcode_into_libs=yes
11383    ;;
11384  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11385  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11386    shlibpath_overrides_runpath=no
11387    hardcode_into_libs=yes
11388    ;;
11389  *) # from 4.6 on, and DragonFly
11390    shlibpath_overrides_runpath=yes
11391    hardcode_into_libs=yes
11392    ;;
11393  esac
11394  ;;
11395
11396haiku*)
11397  version_type=linux # correct to gnu/linux during the next big refactor
11398  need_lib_prefix=no
11399  need_version=no
11400  dynamic_linker="$host_os runtime_loader"
11401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11402  soname_spec='${libname}${release}${shared_ext}$major'
11403  shlibpath_var=LIBRARY_PATH
11404  shlibpath_overrides_runpath=yes
11405  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11406  hardcode_into_libs=yes
11407  ;;
11408
11409hpux9* | hpux10* | hpux11*)
11410  # Give a soname corresponding to the major version so that dld.sl refuses to
11411  # link against other versions.
11412  version_type=sunos
11413  need_lib_prefix=no
11414  need_version=no
11415  case $host_cpu in
11416  ia64*)
11417    shrext_cmds='.so'
11418    hardcode_into_libs=yes
11419    dynamic_linker="$host_os dld.so"
11420    shlibpath_var=LD_LIBRARY_PATH
11421    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11422    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423    soname_spec='${libname}${release}${shared_ext}$major'
11424    if test "X$HPUX_IA64_MODE" = X32; then
11425      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11426    else
11427      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11428    fi
11429    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11430    ;;
11431  hppa*64*)
11432    shrext_cmds='.sl'
11433    hardcode_into_libs=yes
11434    dynamic_linker="$host_os dld.sl"
11435    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11436    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11437    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438    soname_spec='${libname}${release}${shared_ext}$major'
11439    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11440    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11441    ;;
11442  *)
11443    shrext_cmds='.sl'
11444    dynamic_linker="$host_os dld.sl"
11445    shlibpath_var=SHLIB_PATH
11446    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448    soname_spec='${libname}${release}${shared_ext}$major'
11449    ;;
11450  esac
11451  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11452  postinstall_cmds='chmod 555 $lib'
11453  # or fails outright, so override atomically:
11454  install_override_mode=555
11455  ;;
11456
11457interix[3-9]*)
11458  version_type=linux # correct to gnu/linux during the next big refactor
11459  need_lib_prefix=no
11460  need_version=no
11461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11462  soname_spec='${libname}${release}${shared_ext}$major'
11463  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11464  shlibpath_var=LD_LIBRARY_PATH
11465  shlibpath_overrides_runpath=no
11466  hardcode_into_libs=yes
11467  ;;
11468
11469irix5* | irix6* | nonstopux*)
11470  case $host_os in
11471    nonstopux*) version_type=nonstopux ;;
11472    *)
11473	if test "$lt_cv_prog_gnu_ld" = yes; then
11474		version_type=linux # correct to gnu/linux during the next big refactor
11475	else
11476		version_type=irix
11477	fi ;;
11478  esac
11479  need_lib_prefix=no
11480  need_version=no
11481  soname_spec='${libname}${release}${shared_ext}$major'
11482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11483  case $host_os in
11484  irix5* | nonstopux*)
11485    libsuff= shlibsuff=
11486    ;;
11487  *)
11488    case $LD in # libtool.m4 will add one of these switches to LD
11489    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11490      libsuff= shlibsuff= libmagic=32-bit;;
11491    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11492      libsuff=32 shlibsuff=N32 libmagic=N32;;
11493    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11494      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11495    *) libsuff= shlibsuff= libmagic=never-match;;
11496    esac
11497    ;;
11498  esac
11499  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11500  shlibpath_overrides_runpath=no
11501  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11502  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11503  hardcode_into_libs=yes
11504  ;;
11505
11506# No shared lib support for Linux oldld, aout, or coff.
11507linux*oldld* | linux*aout* | linux*coff*)
11508  dynamic_linker=no
11509  ;;
11510
11511# This must be glibc/ELF.
11512linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11513  version_type=linux # correct to gnu/linux during the next big refactor
11514  need_lib_prefix=no
11515  need_version=no
11516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517  soname_spec='${libname}${release}${shared_ext}$major'
11518  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11519  shlibpath_var=LD_LIBRARY_PATH
11520  shlibpath_overrides_runpath=no
11521
11522  # Some binutils ld are patched to set DT_RUNPATH
11523  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11524  $as_echo_n "(cached) " >&6
11525else
11526  lt_cv_shlibpath_overrides_runpath=no
11527    save_LDFLAGS=$LDFLAGS
11528    save_libdir=$libdir
11529    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11530	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11531    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532/* end confdefs.h.  */
11533
11534int
11535main ()
11536{
11537
11538  ;
11539  return 0;
11540}
11541_ACEOF
11542if ac_fn_c_try_link "$LINENO"; then :
11543  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11544  lt_cv_shlibpath_overrides_runpath=yes
11545fi
11546fi
11547rm -f core conftest.err conftest.$ac_objext \
11548    conftest$ac_exeext conftest.$ac_ext
11549    LDFLAGS=$save_LDFLAGS
11550    libdir=$save_libdir
11551
11552fi
11553
11554  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11555
11556  # This implies no fast_install, which is unacceptable.
11557  # Some rework will be needed to allow for fast_install
11558  # before this can be enabled.
11559  hardcode_into_libs=yes
11560
11561  # Append ld.so.conf contents to the search path
11562  if test -f /etc/ld.so.conf; then
11563    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' ' '`
11564    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11565  fi
11566
11567  # We used to test for /lib/ld.so.1 and disable shared libraries on
11568  # powerpc, because MkLinux only supported shared libraries with the
11569  # GNU dynamic linker.  Since this was broken with cross compilers,
11570  # most powerpc-linux boxes support dynamic linking these days and
11571  # people can always --disable-shared, the test was removed, and we
11572  # assume the GNU/Linux dynamic linker is in use.
11573  dynamic_linker='GNU/Linux ld.so'
11574  ;;
11575
11576netbsdelf*-gnu)
11577  version_type=linux
11578  need_lib_prefix=no
11579  need_version=no
11580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11581  soname_spec='${libname}${release}${shared_ext}$major'
11582  shlibpath_var=LD_LIBRARY_PATH
11583  shlibpath_overrides_runpath=no
11584  hardcode_into_libs=yes
11585  dynamic_linker='NetBSD ld.elf_so'
11586  ;;
11587
11588netbsd*)
11589  version_type=sunos
11590  need_lib_prefix=no
11591  need_version=no
11592  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11593    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11594    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11595    dynamic_linker='NetBSD (a.out) ld.so'
11596  else
11597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11598    soname_spec='${libname}${release}${shared_ext}$major'
11599    dynamic_linker='NetBSD ld.elf_so'
11600  fi
11601  shlibpath_var=LD_LIBRARY_PATH
11602  shlibpath_overrides_runpath=yes
11603  hardcode_into_libs=yes
11604  ;;
11605
11606newsos6)
11607  version_type=linux # correct to gnu/linux during the next big refactor
11608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609  shlibpath_var=LD_LIBRARY_PATH
11610  shlibpath_overrides_runpath=yes
11611  ;;
11612
11613*nto* | *qnx*)
11614  version_type=qnx
11615  need_lib_prefix=no
11616  need_version=no
11617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618  soname_spec='${libname}${release}${shared_ext}$major'
11619  shlibpath_var=LD_LIBRARY_PATH
11620  shlibpath_overrides_runpath=no
11621  hardcode_into_libs=yes
11622  dynamic_linker='ldqnx.so'
11623  ;;
11624
11625openbsd*)
11626  version_type=sunos
11627  sys_lib_dlsearch_path_spec="/usr/lib"
11628  need_lib_prefix=no
11629  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11630  case $host_os in
11631    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11632    *)				need_version=no  ;;
11633  esac
11634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11635  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11636  shlibpath_var=LD_LIBRARY_PATH
11637  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11638    case $host_os in
11639      openbsd2.[89] | openbsd2.[89].*)
11640	shlibpath_overrides_runpath=no
11641	;;
11642      *)
11643	shlibpath_overrides_runpath=yes
11644	;;
11645      esac
11646  else
11647    shlibpath_overrides_runpath=yes
11648  fi
11649  ;;
11650
11651os2*)
11652  libname_spec='$name'
11653  shrext_cmds=".dll"
11654  need_lib_prefix=no
11655  library_names_spec='$libname${shared_ext} $libname.a'
11656  dynamic_linker='OS/2 ld.exe'
11657  shlibpath_var=LIBPATH
11658  ;;
11659
11660osf3* | osf4* | osf5*)
11661  version_type=osf
11662  need_lib_prefix=no
11663  need_version=no
11664  soname_spec='${libname}${release}${shared_ext}$major'
11665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666  shlibpath_var=LD_LIBRARY_PATH
11667  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11668  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11669  ;;
11670
11671rdos*)
11672  dynamic_linker=no
11673  ;;
11674
11675solaris*)
11676  version_type=linux # correct to gnu/linux during the next big refactor
11677  need_lib_prefix=no
11678  need_version=no
11679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680  soname_spec='${libname}${release}${shared_ext}$major'
11681  shlibpath_var=LD_LIBRARY_PATH
11682  shlibpath_overrides_runpath=yes
11683  hardcode_into_libs=yes
11684  # ldd complains unless libraries are executable
11685  postinstall_cmds='chmod +x $lib'
11686  ;;
11687
11688sunos4*)
11689  version_type=sunos
11690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11691  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11692  shlibpath_var=LD_LIBRARY_PATH
11693  shlibpath_overrides_runpath=yes
11694  if test "$with_gnu_ld" = yes; then
11695    need_lib_prefix=no
11696  fi
11697  need_version=yes
11698  ;;
11699
11700sysv4 | sysv4.3*)
11701  version_type=linux # correct to gnu/linux during the next big refactor
11702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703  soname_spec='${libname}${release}${shared_ext}$major'
11704  shlibpath_var=LD_LIBRARY_PATH
11705  case $host_vendor in
11706    sni)
11707      shlibpath_overrides_runpath=no
11708      need_lib_prefix=no
11709      runpath_var=LD_RUN_PATH
11710      ;;
11711    siemens)
11712      need_lib_prefix=no
11713      ;;
11714    motorola)
11715      need_lib_prefix=no
11716      need_version=no
11717      shlibpath_overrides_runpath=no
11718      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11719      ;;
11720  esac
11721  ;;
11722
11723sysv4*MP*)
11724  if test -d /usr/nec ;then
11725    version_type=linux # correct to gnu/linux during the next big refactor
11726    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11727    soname_spec='$libname${shared_ext}.$major'
11728    shlibpath_var=LD_LIBRARY_PATH
11729  fi
11730  ;;
11731
11732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11733  version_type=freebsd-elf
11734  need_lib_prefix=no
11735  need_version=no
11736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11737  soname_spec='${libname}${release}${shared_ext}$major'
11738  shlibpath_var=LD_LIBRARY_PATH
11739  shlibpath_overrides_runpath=yes
11740  hardcode_into_libs=yes
11741  if test "$with_gnu_ld" = yes; then
11742    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11743  else
11744    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11745    case $host_os in
11746      sco3.2v5*)
11747        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11748	;;
11749    esac
11750  fi
11751  sys_lib_dlsearch_path_spec='/usr/lib'
11752  ;;
11753
11754tpf*)
11755  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11756  version_type=linux # correct to gnu/linux during the next big refactor
11757  need_lib_prefix=no
11758  need_version=no
11759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760  shlibpath_var=LD_LIBRARY_PATH
11761  shlibpath_overrides_runpath=no
11762  hardcode_into_libs=yes
11763  ;;
11764
11765uts4*)
11766  version_type=linux # correct to gnu/linux during the next big refactor
11767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768  soname_spec='${libname}${release}${shared_ext}$major'
11769  shlibpath_var=LD_LIBRARY_PATH
11770  ;;
11771
11772*)
11773  dynamic_linker=no
11774  ;;
11775esac
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11777$as_echo "$dynamic_linker" >&6; }
11778test "$dynamic_linker" = no && can_build_shared=no
11779
11780variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11781if test "$GCC" = yes; then
11782  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11783fi
11784
11785if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11786  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11787fi
11788if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11789  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11790fi
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11884$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11885hardcode_action=
11886if test -n "$hardcode_libdir_flag_spec" ||
11887   test -n "$runpath_var" ||
11888   test "X$hardcode_automatic" = "Xyes" ; then
11889
11890  # We can hardcode non-existent directories.
11891  if test "$hardcode_direct" != no &&
11892     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11893     # have to relink, otherwise we might link with an installed library
11894     # when we should be linking with a yet-to-be-installed one
11895     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11896     test "$hardcode_minus_L" != no; then
11897    # Linking always hardcodes the temporary library directory.
11898    hardcode_action=relink
11899  else
11900    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11901    hardcode_action=immediate
11902  fi
11903else
11904  # We cannot hardcode anything, or else we can only hardcode existing
11905  # directories.
11906  hardcode_action=unsupported
11907fi
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11909$as_echo "$hardcode_action" >&6; }
11910
11911if test "$hardcode_action" = relink ||
11912   test "$inherit_rpath" = yes; then
11913  # Fast installation is not supported
11914  enable_fast_install=no
11915elif test "$shlibpath_overrides_runpath" = yes ||
11916     test "$enable_shared" = no; then
11917  # Fast installation is not necessary
11918  enable_fast_install=needless
11919fi
11920
11921
11922
11923
11924
11925
11926  if test "x$enable_dlopen" != xyes; then
11927  enable_dlopen=unknown
11928  enable_dlopen_self=unknown
11929  enable_dlopen_self_static=unknown
11930else
11931  lt_cv_dlopen=no
11932  lt_cv_dlopen_libs=
11933
11934  case $host_os in
11935  beos*)
11936    lt_cv_dlopen="load_add_on"
11937    lt_cv_dlopen_libs=
11938    lt_cv_dlopen_self=yes
11939    ;;
11940
11941  mingw* | pw32* | cegcc*)
11942    lt_cv_dlopen="LoadLibrary"
11943    lt_cv_dlopen_libs=
11944    ;;
11945
11946  cygwin*)
11947    lt_cv_dlopen="dlopen"
11948    lt_cv_dlopen_libs=
11949    ;;
11950
11951  darwin*)
11952  # if libdl is installed we need to link against it
11953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11954$as_echo_n "checking for dlopen in -ldl... " >&6; }
11955if ${ac_cv_lib_dl_dlopen+:} false; then :
11956  $as_echo_n "(cached) " >&6
11957else
11958  ac_check_lib_save_LIBS=$LIBS
11959LIBS="-ldl  $LIBS"
11960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961/* end confdefs.h.  */
11962
11963/* Override any GCC internal prototype to avoid an error.
11964   Use char because int might match the return type of a GCC
11965   builtin and then its argument prototype would still apply.  */
11966#ifdef __cplusplus
11967extern "C"
11968#endif
11969char dlopen ();
11970int
11971main ()
11972{
11973return dlopen ();
11974  ;
11975  return 0;
11976}
11977_ACEOF
11978if ac_fn_c_try_link "$LINENO"; then :
11979  ac_cv_lib_dl_dlopen=yes
11980else
11981  ac_cv_lib_dl_dlopen=no
11982fi
11983rm -f core conftest.err conftest.$ac_objext \
11984    conftest$ac_exeext conftest.$ac_ext
11985LIBS=$ac_check_lib_save_LIBS
11986fi
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11988$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11989if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11990  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11991else
11992
11993    lt_cv_dlopen="dyld"
11994    lt_cv_dlopen_libs=
11995    lt_cv_dlopen_self=yes
11996
11997fi
11998
11999    ;;
12000
12001  *)
12002    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12003if test "x$ac_cv_func_shl_load" = xyes; then :
12004  lt_cv_dlopen="shl_load"
12005else
12006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12007$as_echo_n "checking for shl_load in -ldld... " >&6; }
12008if ${ac_cv_lib_dld_shl_load+:} false; then :
12009  $as_echo_n "(cached) " >&6
12010else
12011  ac_check_lib_save_LIBS=$LIBS
12012LIBS="-ldld  $LIBS"
12013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014/* end confdefs.h.  */
12015
12016/* Override any GCC internal prototype to avoid an error.
12017   Use char because int might match the return type of a GCC
12018   builtin and then its argument prototype would still apply.  */
12019#ifdef __cplusplus
12020extern "C"
12021#endif
12022char shl_load ();
12023int
12024main ()
12025{
12026return shl_load ();
12027  ;
12028  return 0;
12029}
12030_ACEOF
12031if ac_fn_c_try_link "$LINENO"; then :
12032  ac_cv_lib_dld_shl_load=yes
12033else
12034  ac_cv_lib_dld_shl_load=no
12035fi
12036rm -f core conftest.err conftest.$ac_objext \
12037    conftest$ac_exeext conftest.$ac_ext
12038LIBS=$ac_check_lib_save_LIBS
12039fi
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12041$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12042if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12043  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12044else
12045  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12046if test "x$ac_cv_func_dlopen" = xyes; then :
12047  lt_cv_dlopen="dlopen"
12048else
12049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12050$as_echo_n "checking for dlopen in -ldl... " >&6; }
12051if ${ac_cv_lib_dl_dlopen+:} false; then :
12052  $as_echo_n "(cached) " >&6
12053else
12054  ac_check_lib_save_LIBS=$LIBS
12055LIBS="-ldl  $LIBS"
12056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057/* end confdefs.h.  */
12058
12059/* Override any GCC internal prototype to avoid an error.
12060   Use char because int might match the return type of a GCC
12061   builtin and then its argument prototype would still apply.  */
12062#ifdef __cplusplus
12063extern "C"
12064#endif
12065char dlopen ();
12066int
12067main ()
12068{
12069return dlopen ();
12070  ;
12071  return 0;
12072}
12073_ACEOF
12074if ac_fn_c_try_link "$LINENO"; then :
12075  ac_cv_lib_dl_dlopen=yes
12076else
12077  ac_cv_lib_dl_dlopen=no
12078fi
12079rm -f core conftest.err conftest.$ac_objext \
12080    conftest$ac_exeext conftest.$ac_ext
12081LIBS=$ac_check_lib_save_LIBS
12082fi
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12084$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12085if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12086  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12087else
12088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12089$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12090if ${ac_cv_lib_svld_dlopen+:} false; then :
12091  $as_echo_n "(cached) " >&6
12092else
12093  ac_check_lib_save_LIBS=$LIBS
12094LIBS="-lsvld  $LIBS"
12095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h.  */
12097
12098/* Override any GCC internal prototype to avoid an error.
12099   Use char because int might match the return type of a GCC
12100   builtin and then its argument prototype would still apply.  */
12101#ifdef __cplusplus
12102extern "C"
12103#endif
12104char dlopen ();
12105int
12106main ()
12107{
12108return dlopen ();
12109  ;
12110  return 0;
12111}
12112_ACEOF
12113if ac_fn_c_try_link "$LINENO"; then :
12114  ac_cv_lib_svld_dlopen=yes
12115else
12116  ac_cv_lib_svld_dlopen=no
12117fi
12118rm -f core conftest.err conftest.$ac_objext \
12119    conftest$ac_exeext conftest.$ac_ext
12120LIBS=$ac_check_lib_save_LIBS
12121fi
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12123$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12124if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12125  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12126else
12127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12128$as_echo_n "checking for dld_link in -ldld... " >&6; }
12129if ${ac_cv_lib_dld_dld_link+:} false; then :
12130  $as_echo_n "(cached) " >&6
12131else
12132  ac_check_lib_save_LIBS=$LIBS
12133LIBS="-ldld  $LIBS"
12134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136
12137/* Override any GCC internal prototype to avoid an error.
12138   Use char because int might match the return type of a GCC
12139   builtin and then its argument prototype would still apply.  */
12140#ifdef __cplusplus
12141extern "C"
12142#endif
12143char dld_link ();
12144int
12145main ()
12146{
12147return dld_link ();
12148  ;
12149  return 0;
12150}
12151_ACEOF
12152if ac_fn_c_try_link "$LINENO"; then :
12153  ac_cv_lib_dld_dld_link=yes
12154else
12155  ac_cv_lib_dld_dld_link=no
12156fi
12157rm -f core conftest.err conftest.$ac_objext \
12158    conftest$ac_exeext conftest.$ac_ext
12159LIBS=$ac_check_lib_save_LIBS
12160fi
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12162$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12163if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12164  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12165fi
12166
12167
12168fi
12169
12170
12171fi
12172
12173
12174fi
12175
12176
12177fi
12178
12179
12180fi
12181
12182    ;;
12183  esac
12184
12185  if test "x$lt_cv_dlopen" != xno; then
12186    enable_dlopen=yes
12187  else
12188    enable_dlopen=no
12189  fi
12190
12191  case $lt_cv_dlopen in
12192  dlopen)
12193    save_CPPFLAGS="$CPPFLAGS"
12194    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12195
12196    save_LDFLAGS="$LDFLAGS"
12197    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12198
12199    save_LIBS="$LIBS"
12200    LIBS="$lt_cv_dlopen_libs $LIBS"
12201
12202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12203$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12204if ${lt_cv_dlopen_self+:} false; then :
12205  $as_echo_n "(cached) " >&6
12206else
12207  	  if test "$cross_compiling" = yes; then :
12208  lt_cv_dlopen_self=cross
12209else
12210  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12211  lt_status=$lt_dlunknown
12212  cat > conftest.$ac_ext <<_LT_EOF
12213#line $LINENO "configure"
12214#include "confdefs.h"
12215
12216#if HAVE_DLFCN_H
12217#include <dlfcn.h>
12218#endif
12219
12220#include <stdio.h>
12221
12222#ifdef RTLD_GLOBAL
12223#  define LT_DLGLOBAL		RTLD_GLOBAL
12224#else
12225#  ifdef DL_GLOBAL
12226#    define LT_DLGLOBAL		DL_GLOBAL
12227#  else
12228#    define LT_DLGLOBAL		0
12229#  endif
12230#endif
12231
12232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12233   find out it does not work in some platform. */
12234#ifndef LT_DLLAZY_OR_NOW
12235#  ifdef RTLD_LAZY
12236#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12237#  else
12238#    ifdef DL_LAZY
12239#      define LT_DLLAZY_OR_NOW		DL_LAZY
12240#    else
12241#      ifdef RTLD_NOW
12242#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12243#      else
12244#        ifdef DL_NOW
12245#          define LT_DLLAZY_OR_NOW	DL_NOW
12246#        else
12247#          define LT_DLLAZY_OR_NOW	0
12248#        endif
12249#      endif
12250#    endif
12251#  endif
12252#endif
12253
12254/* When -fvisbility=hidden is used, assume the code has been annotated
12255   correspondingly for the symbols needed.  */
12256#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12257int fnord () __attribute__((visibility("default")));
12258#endif
12259
12260int fnord () { return 42; }
12261int main ()
12262{
12263  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12264  int status = $lt_dlunknown;
12265
12266  if (self)
12267    {
12268      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12269      else
12270        {
12271	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12272          else puts (dlerror ());
12273	}
12274      /* dlclose (self); */
12275    }
12276  else
12277    puts (dlerror ());
12278
12279  return status;
12280}
12281_LT_EOF
12282  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12283  (eval $ac_link) 2>&5
12284  ac_status=$?
12285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12286  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12287    (./conftest; exit; ) >&5 2>/dev/null
12288    lt_status=$?
12289    case x$lt_status in
12290      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12291      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12292      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12293    esac
12294  else :
12295    # compilation failed
12296    lt_cv_dlopen_self=no
12297  fi
12298fi
12299rm -fr conftest*
12300
12301
12302fi
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12304$as_echo "$lt_cv_dlopen_self" >&6; }
12305
12306    if test "x$lt_cv_dlopen_self" = xyes; then
12307      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12308      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12309$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12310if ${lt_cv_dlopen_self_static+:} false; then :
12311  $as_echo_n "(cached) " >&6
12312else
12313  	  if test "$cross_compiling" = yes; then :
12314  lt_cv_dlopen_self_static=cross
12315else
12316  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12317  lt_status=$lt_dlunknown
12318  cat > conftest.$ac_ext <<_LT_EOF
12319#line $LINENO "configure"
12320#include "confdefs.h"
12321
12322#if HAVE_DLFCN_H
12323#include <dlfcn.h>
12324#endif
12325
12326#include <stdio.h>
12327
12328#ifdef RTLD_GLOBAL
12329#  define LT_DLGLOBAL		RTLD_GLOBAL
12330#else
12331#  ifdef DL_GLOBAL
12332#    define LT_DLGLOBAL		DL_GLOBAL
12333#  else
12334#    define LT_DLGLOBAL		0
12335#  endif
12336#endif
12337
12338/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12339   find out it does not work in some platform. */
12340#ifndef LT_DLLAZY_OR_NOW
12341#  ifdef RTLD_LAZY
12342#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12343#  else
12344#    ifdef DL_LAZY
12345#      define LT_DLLAZY_OR_NOW		DL_LAZY
12346#    else
12347#      ifdef RTLD_NOW
12348#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12349#      else
12350#        ifdef DL_NOW
12351#          define LT_DLLAZY_OR_NOW	DL_NOW
12352#        else
12353#          define LT_DLLAZY_OR_NOW	0
12354#        endif
12355#      endif
12356#    endif
12357#  endif
12358#endif
12359
12360/* When -fvisbility=hidden is used, assume the code has been annotated
12361   correspondingly for the symbols needed.  */
12362#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12363int fnord () __attribute__((visibility("default")));
12364#endif
12365
12366int fnord () { return 42; }
12367int main ()
12368{
12369  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12370  int status = $lt_dlunknown;
12371
12372  if (self)
12373    {
12374      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12375      else
12376        {
12377	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12378          else puts (dlerror ());
12379	}
12380      /* dlclose (self); */
12381    }
12382  else
12383    puts (dlerror ());
12384
12385  return status;
12386}
12387_LT_EOF
12388  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12389  (eval $ac_link) 2>&5
12390  ac_status=$?
12391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12392  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12393    (./conftest; exit; ) >&5 2>/dev/null
12394    lt_status=$?
12395    case x$lt_status in
12396      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12397      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12398      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12399    esac
12400  else :
12401    # compilation failed
12402    lt_cv_dlopen_self_static=no
12403  fi
12404fi
12405rm -fr conftest*
12406
12407
12408fi
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12410$as_echo "$lt_cv_dlopen_self_static" >&6; }
12411    fi
12412
12413    CPPFLAGS="$save_CPPFLAGS"
12414    LDFLAGS="$save_LDFLAGS"
12415    LIBS="$save_LIBS"
12416    ;;
12417  esac
12418
12419  case $lt_cv_dlopen_self in
12420  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12421  *) enable_dlopen_self=unknown ;;
12422  esac
12423
12424  case $lt_cv_dlopen_self_static in
12425  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12426  *) enable_dlopen_self_static=unknown ;;
12427  esac
12428fi
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446striplib=
12447old_striplib=
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12449$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12450if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12451  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12452  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12454$as_echo "yes" >&6; }
12455else
12456# FIXME - insert some real tests, host_os isn't really good enough
12457  case $host_os in
12458  darwin*)
12459    if test -n "$STRIP" ; then
12460      striplib="$STRIP -x"
12461      old_striplib="$STRIP -S"
12462      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12463$as_echo "yes" >&6; }
12464    else
12465      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466$as_echo "no" >&6; }
12467    fi
12468    ;;
12469  *)
12470    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471$as_echo "no" >&6; }
12472    ;;
12473  esac
12474fi
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487  # Report which library types will actually be built
12488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12489$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12491$as_echo "$can_build_shared" >&6; }
12492
12493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12494$as_echo_n "checking whether to build shared libraries... " >&6; }
12495  test "$can_build_shared" = "no" && enable_shared=no
12496
12497  # On AIX, shared libraries and static libraries use the same namespace, and
12498  # are all built from PIC.
12499  case $host_os in
12500  aix3*)
12501    test "$enable_shared" = yes && enable_static=no
12502    if test -n "$RANLIB"; then
12503      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12504      postinstall_cmds='$RANLIB $lib'
12505    fi
12506    ;;
12507
12508  aix[4-9]*)
12509    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12510      test "$enable_shared" = yes && enable_static=no
12511    fi
12512    ;;
12513  esac
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12515$as_echo "$enable_shared" >&6; }
12516
12517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12518$as_echo_n "checking whether to build static libraries... " >&6; }
12519  # Make sure either enable_shared or enable_static is yes.
12520  test "$enable_shared" = yes || enable_static=yes
12521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12522$as_echo "$enable_static" >&6; }
12523
12524
12525
12526
12527fi
12528ac_ext=c
12529ac_cpp='$CPP $CPPFLAGS'
12530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12532ac_compiler_gnu=$ac_cv_c_compiler_gnu
12533
12534CC="$lt_save_CC"
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550        ac_config_commands="$ac_config_commands libtool"
12551
12552
12553
12554
12555# Only expand once:
12556
12557
12558
12559# Add X libs
12560LIBS="$LIBS $X_LIBS"
12561
12562
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
12564$as_echo_n "checking for dlopen in -lc... " >&6; }
12565if ${ac_cv_lib_c_dlopen+:} false; then :
12566  $as_echo_n "(cached) " >&6
12567else
12568  ac_check_lib_save_LIBS=$LIBS
12569LIBS="-lc  $LIBS"
12570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h.  */
12572
12573/* Override any GCC internal prototype to avoid an error.
12574   Use char because int might match the return type of a GCC
12575   builtin and then its argument prototype would still apply.  */
12576#ifdef __cplusplus
12577extern "C"
12578#endif
12579char dlopen ();
12580int
12581main ()
12582{
12583return dlopen ();
12584  ;
12585  return 0;
12586}
12587_ACEOF
12588if ac_fn_c_try_link "$LINENO"; then :
12589  ac_cv_lib_c_dlopen=yes
12590else
12591  ac_cv_lib_c_dlopen=no
12592fi
12593rm -f core conftest.err conftest.$ac_objext \
12594    conftest$ac_exeext conftest.$ac_ext
12595LIBS=$ac_check_lib_save_LIBS
12596fi
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
12598$as_echo "$ac_cv_lib_c_dlopen" >&6; }
12599if test "x$ac_cv_lib_c_dlopen" = xyes; then :
12600  LIBDL=""
12601else
12602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12603$as_echo_n "checking for dlopen in -ldl... " >&6; }
12604if ${ac_cv_lib_dl_dlopen+:} false; then :
12605  $as_echo_n "(cached) " >&6
12606else
12607  ac_check_lib_save_LIBS=$LIBS
12608LIBS="-ldl  $LIBS"
12609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610/* end confdefs.h.  */
12611
12612/* Override any GCC internal prototype to avoid an error.
12613   Use char because int might match the return type of a GCC
12614   builtin and then its argument prototype would still apply.  */
12615#ifdef __cplusplus
12616extern "C"
12617#endif
12618char dlopen ();
12619int
12620main ()
12621{
12622return dlopen ();
12623  ;
12624  return 0;
12625}
12626_ACEOF
12627if ac_fn_c_try_link "$LINENO"; then :
12628  ac_cv_lib_dl_dlopen=yes
12629else
12630  ac_cv_lib_dl_dlopen=no
12631fi
12632rm -f core conftest.err conftest.$ac_objext \
12633    conftest$ac_exeext conftest.$ac_ext
12634LIBS=$ac_check_lib_save_LIBS
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12637$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12638if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12639  LIBDL="-ldl"
12640fi
12641
12642fi
12643
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lc" >&5
12645$as_echo_n "checking for sem_init in -lc... " >&6; }
12646if ${ac_cv_lib_c_sem_init+:} false; then :
12647  $as_echo_n "(cached) " >&6
12648else
12649  ac_check_lib_save_LIBS=$LIBS
12650LIBS="-lc  $LIBS"
12651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652/* end confdefs.h.  */
12653
12654/* Override any GCC internal prototype to avoid an error.
12655   Use char because int might match the return type of a GCC
12656   builtin and then its argument prototype would still apply.  */
12657#ifdef __cplusplus
12658extern "C"
12659#endif
12660char sem_init ();
12661int
12662main ()
12663{
12664return sem_init ();
12665  ;
12666  return 0;
12667}
12668_ACEOF
12669if ac_fn_c_try_link "$LINENO"; then :
12670  ac_cv_lib_c_sem_init=yes
12671else
12672  ac_cv_lib_c_sem_init=no
12673fi
12674rm -f core conftest.err conftest.$ac_objext \
12675    conftest$ac_exeext conftest.$ac_ext
12676LIBS=$ac_check_lib_save_LIBS
12677fi
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sem_init" >&5
12679$as_echo "$ac_cv_lib_c_sem_init" >&6; }
12680if test "x$ac_cv_lib_c_sem_init" = xyes; then :
12681  LIBSEMA=""
12682else
12683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
12684$as_echo_n "checking for sem_init in -lpthread... " >&6; }
12685if ${ac_cv_lib_pthread_sem_init+:} false; then :
12686  $as_echo_n "(cached) " >&6
12687else
12688  ac_check_lib_save_LIBS=$LIBS
12689LIBS="-lpthread  $LIBS"
12690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691/* end confdefs.h.  */
12692
12693/* Override any GCC internal prototype to avoid an error.
12694   Use char because int might match the return type of a GCC
12695   builtin and then its argument prototype would still apply.  */
12696#ifdef __cplusplus
12697extern "C"
12698#endif
12699char sem_init ();
12700int
12701main ()
12702{
12703return sem_init ();
12704  ;
12705  return 0;
12706}
12707_ACEOF
12708if ac_fn_c_try_link "$LINENO"; then :
12709  ac_cv_lib_pthread_sem_init=yes
12710else
12711  ac_cv_lib_pthread_sem_init=no
12712fi
12713rm -f core conftest.err conftest.$ac_objext \
12714    conftest$ac_exeext conftest.$ac_ext
12715LIBS=$ac_check_lib_save_LIBS
12716fi
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
12718$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
12719if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
12720  LIBSEMA="-lpthread"
12721fi
12722
12723fi
12724
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestFakeMotionEvent in -lXtst" >&5
12726$as_echo_n "checking for XTestFakeMotionEvent in -lXtst... " >&6; }
12727if ${ac_cv_lib_Xtst_XTestFakeMotionEvent+:} false; then :
12728  $as_echo_n "(cached) " >&6
12729else
12730  ac_check_lib_save_LIBS=$LIBS
12731LIBS="-lXtst  $LIBS"
12732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733/* end confdefs.h.  */
12734
12735/* Override any GCC internal prototype to avoid an error.
12736   Use char because int might match the return type of a GCC
12737   builtin and then its argument prototype would still apply.  */
12738#ifdef __cplusplus
12739extern "C"
12740#endif
12741char XTestFakeMotionEvent ();
12742int
12743main ()
12744{
12745return XTestFakeMotionEvent ();
12746  ;
12747  return 0;
12748}
12749_ACEOF
12750if ac_fn_c_try_link "$LINENO"; then :
12751  ac_cv_lib_Xtst_XTestFakeMotionEvent=yes
12752else
12753  ac_cv_lib_Xtst_XTestFakeMotionEvent=no
12754fi
12755rm -f core conftest.err conftest.$ac_objext \
12756    conftest$ac_exeext conftest.$ac_ext
12757LIBS=$ac_check_lib_save_LIBS
12758fi
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestFakeMotionEvent" >&5
12760$as_echo "$ac_cv_lib_Xtst_XTestFakeMotionEvent" >&6; }
12761if test "x$ac_cv_lib_Xtst_XTestFakeMotionEvent" = xyes; then :
12762  LIBXTST="-lXtst"
12763else
12764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestFakeMotionEvent  in -lXext" >&5
12765$as_echo_n "checking for XTestFakeMotionEvent  in -lXext... " >&6; }
12766if ${ac_cv_lib_Xext_XTestFakeMotionEvent_+:} false; then :
12767  $as_echo_n "(cached) " >&6
12768else
12769  ac_check_lib_save_LIBS=$LIBS
12770LIBS="-lXext  $LIBS"
12771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772/* end confdefs.h.  */
12773
12774/* Override any GCC internal prototype to avoid an error.
12775   Use char because int might match the return type of a GCC
12776   builtin and then its argument prototype would still apply.  */
12777#ifdef __cplusplus
12778extern "C"
12779#endif
12780char XTestFakeMotionEvent  ();
12781int
12782main ()
12783{
12784return XTestFakeMotionEvent  ();
12785  ;
12786  return 0;
12787}
12788_ACEOF
12789if ac_fn_c_try_link "$LINENO"; then :
12790  ac_cv_lib_Xext_XTestFakeMotionEvent_=yes
12791else
12792  ac_cv_lib_Xext_XTestFakeMotionEvent_=no
12793fi
12794rm -f core conftest.err conftest.$ac_objext \
12795    conftest$ac_exeext conftest.$ac_ext
12796LIBS=$ac_check_lib_save_LIBS
12797fi
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XTestFakeMotionEvent_" >&5
12799$as_echo "$ac_cv_lib_Xext_XTestFakeMotionEvent_" >&6; }
12800if test "x$ac_cv_lib_Xext_XTestFakeMotionEvent_" = xyes; then :
12801  LIBXTST="-lXext"
12802fi
12803
12804fi
12805
12806
12807GENERATION_DIRS=""
12808
12809if test "x$LIBXTST" = "x" ;
12810then
12811    echo ""
12812    echo " **** ERROR **** "
12813    echo ""
12814    echo "Could not locate the needed X11 extensions:"
12815    echo ""
12816    echo "   RECORD"
12817    echo "   XTest"
12818    echo ""
12819    echo "Make sure you have them installed before building Xnee"
12820    echo ""
12821    echo "  ... on Debian based distros do: apt-get install libxtst-dev"
12822    echo " "
12823    exit 1
12824fi
12825
12826
12827# Check whether --enable-gui was given.
12828if test "${enable_gui+set}" = set; then :
12829  enableval=$enable_gui; case "${enableval}" in
12830	yes) buildgui=true ;;
12831	no)  buildgui=false ;;
12832	*) as_fn_error $? "bad value ${enableval} for --disable-gui" "$LINENO" 5 ;;
12833	    esac
12834else
12835  buildgui=true
12836fi
12837
12838
12839# Check whether --enable-gnome-applet was given.
12840if test "${enable_gnome_applet+set}" = set; then :
12841  enableval=$enable_gnome_applet; case "${enableval}" in
12842	yes) buildgapplet=true ;;
12843	no)  buildgapplet=false ;;
12844	*) as_fn_error $? "bad value ${enableval} for --disable-gnome-applet" "$LINENO" 5 ;;
12845	    esac
12846else
12847  buildgapplet=false
12848fi
12849
12850
12851# Check whether --enable-doc was given.
12852if test "${enable_doc+set}" = set; then :
12853  enableval=$enable_doc; case "${enableval}" in
12854	yes) builddoc=true ;;
12855	no)  builddoc=false ;;
12856	*) as_fn_error $? "bad value ${enableval} for --disable-doc" "$LINENO" 5 ;;
12857	    esac
12858else
12859  builddoc=false
12860fi
12861
12862
12863# Check whether --enable-man was given.
12864if test "${enable_man+set}" = set; then :
12865  enableval=$enable_man; case "${enableval}" in
12866	yes) buildman=true ;;
12867	no)  buildman=false ;;
12868	*) as_fn_error $? "bad value ${enableval} for --disable-man" "$LINENO" 5 ;;
12869	    esac
12870else
12871  buildman=false
12872fi
12873
12874
12875# Check whether --enable-doconly was given.
12876if test "${enable_doconly+set}" = set; then :
12877  enableval=$enable_doconly; case "${enableval}" in
12878	yes) doconly=true ;;
12879	no)  doconly=false ;;
12880	*) as_fn_error $? "bad value ${enableval} for --disable-doconly" "$LINENO" 5 ;;
12881	    esac
12882else
12883  doconly=false
12884fi
12885
12886
12887# Check whether --enable-xinput2 was given.
12888if test "${enable_xinput2+set}" = set; then :
12889  enableval=$enable_xinput2; case "${enableval}" in
12890	yes) use_xi2=true ;;
12891	no)  use_xi2=false ;;
12892	*) as_fn_error $? "bad value ${enableval} for --disable-xinput2" "$LINENO" 5 ;;
12893	    esac
12894else
12895  use_xi2=true
12896fi
12897
12898
12899# Check whether --enable-cli was given.
12900if test "${enable_cli+set}" = set; then :
12901  enableval=$enable_cli; case "${enableval}" in
12902	yes) buildcli=true ;;
12903	no)  buildcli=false ;;
12904	*) as_fn_error $? "bad value ${enableval} for --disable-cli" "$LINENO" 5 ;;
12905	    esac
12906else
12907  buildcli=true
12908fi
12909
12910
12911# Check whether --enable-lib was given.
12912if test "${enable_lib+set}" = set; then :
12913  enableval=$enable_lib; case "${enableval}" in
12914	yes) buildlib=true ;;
12915	no)  buildlib=false ;;
12916	*) as_fn_error $? "bad value ${enableval} for --disable-lib" "$LINENO" 5 ;;
12917	    esac
12918else
12919  buildlib=false
12920fi
12921
12922
12923# Check whether --enable-static-programs was given.
12924if test "${enable_static_programs+set}" = set; then :
12925  enableval=$enable_static_programs; case "${enableval}" in
12926	yes) makestatic=true ;;
12927	no)  makestatic=false ;;
12928	*) as_fn_error $? "bad value ${enableval} for --disable-static-programs" "$LINENO" 5 ;;
12929	    esac
12930else
12931  makestatic=true
12932fi
12933
12934
12935
12936# Check whether --enable-xosd was given.
12937if test "${enable_xosd+set}" = set; then :
12938  enableval=$enable_xosd; case "${enableval}" in
12939	yes) xosd=true ;;
12940	no)  xosd=false ;;
12941	*) as_fn_error $? "bad value ${enableval} for --disable-xosd" "$LINENO" 5 ;;
12942	    esac
12943else
12944  xosd=true
12945fi
12946
12947
12948# Check whether --enable-verbose was given.
12949if test "${enable_verbose+set}" = set; then :
12950  enableval=$enable_verbose; case "${enableval}" in
12951	yes) verbose=true ;;
12952	no)  verbose=false ;;
12953	*) as_fn_error $? "bad value ${enableval} for --disable-verbose" "$LINENO" 5 ;;
12954	    esac
12955else
12956  verbose=true
12957fi
12958
12959
12960# Check whether --enable-buffer_verbose was given.
12961if test "${enable_buffer_verbose+set}" = set; then :
12962  enableval=$enable_buffer_verbose; case "${enableval}" in
12963	yes) buffer_verbose=true ;;
12964	no)  buffer_verbose=false ;;
12965	*) as_fn_error $? "bad value ${enableval} for --disable-buffer_verbose" "$LINENO" 5 ;;
12966	    esac
12967else
12968  buffer_verbose=false
12969fi
12970
12971
12972# Check whether --enable-gcov was given.
12973if test "${enable_gcov+set}" = set; then :
12974  enableval=$enable_gcov; case "${enableval}" in
12975	yes) gcov=true ;;
12976	no)  gcov=false ;;
12977	*) as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
12978	    esac
12979else
12980  gcov=false
12981fi
12982
12983
12984# Check whether --enable-gprof was given.
12985if test "${enable_gprof+set}" = set; then :
12986  enableval=$enable_gprof; case "${enableval}" in
12987	yes) gprof=true ;;
12988	no)  gprof=false ;;
12989	*) as_fn_error $? "bad value ${enableval} for --enable-gprof" "$LINENO" 5 ;;
12990	    esac
12991else
12992  gprof=false
12993fi
12994
12995
12996# Check whether --enable-pedantic was given.
12997if test "${enable_pedantic+set}" = set; then :
12998  enableval=$enable_pedantic; case "${enableval}" in
12999	yes) pedantic=true ;;
13000	no)  pedantic=false ;;
13001	*) as_fn_error $? "bad value ${enableval} for --enable-pedantic" "$LINENO" 5 ;;
13002	    esac
13003else
13004  pedantic=false
13005fi
13006
13007
13008# Check whether --enable-paranoid-pedantic was given.
13009if test "${enable_paranoid_pedantic+set}" = set; then :
13010  enableval=$enable_paranoid_pedantic; case "${enableval}" in
13011	yes) para_pedantic=true ;;
13012	no)  para_pedantic=false ;;
13013	*) as_fn_error $? "bad value ${enableval} for --enable-paranoid-pedantic" "$LINENO" 5 ;;
13014	    esac
13015else
13016  para_pedantic=false
13017fi
13018
13019
13020
13021 if test x$buildgui = xtrue; then
13022  BUILDGUI_TRUE=
13023  BUILDGUI_FALSE='#'
13024else
13025  BUILDGUI_TRUE='#'
13026  BUILDGUI_FALSE=
13027fi
13028
13029 if test x$buildgapplet = xtrue; then
13030  BUILDPNEE_TRUE=
13031  BUILDPNEE_FALSE='#'
13032else
13033  BUILDPNEE_TRUE='#'
13034  BUILDPNEE_FALSE=
13035fi
13036
13037 if test x$builddoc = xtrue; then
13038  BUILDDOC_TRUE=
13039  BUILDDOC_FALSE='#'
13040else
13041  BUILDDOC_TRUE='#'
13042  BUILDDOC_FALSE=
13043fi
13044
13045 if test x$buildman = xtrue; then
13046  BUILDMAN_TRUE=
13047  BUILDMAN_FALSE='#'
13048else
13049  BUILDMAN_TRUE='#'
13050  BUILDMAN_FALSE=
13051fi
13052
13053 if test x$verbose = xtrue; then
13054  VERBOSE_TRUE=
13055  VERBOSE_FALSE='#'
13056else
13057  VERBOSE_TRUE='#'
13058  VERBOSE_FALSE=
13059fi
13060
13061 if test x$gcov = xtrue; then
13062  GCOV_TRUE=
13063  GCOV_FALSE='#'
13064else
13065  GCOV_TRUE='#'
13066  GCOV_FALSE=
13067fi
13068
13069 if test x$gprof = xtrue; then
13070  GPROF_TRUE=
13071  GPROF_FALSE='#'
13072else
13073  GPROF_TRUE='#'
13074  GPROF_FALSE=
13075fi
13076
13077 if test x$pedantic = xtrue; then
13078  PEDANTIC_TRUE=
13079  PEDANTIC_FALSE='#'
13080else
13081  PEDANTIC_TRUE='#'
13082  PEDANTIC_FALSE=
13083fi
13084
13085 if test x$buffer_verbose = xtrue; then
13086  BUF_VERBOSE_TRUE=
13087  BUF_VERBOSE_FALSE='#'
13088else
13089  BUF_VERBOSE_TRUE='#'
13090  BUF_VERBOSE_FALSE=
13091fi
13092
13093 if test x$xosd = xtrue; then
13094  XOSD_TRUE=
13095  XOSD_FALSE='#'
13096else
13097  XOSD_TRUE='#'
13098  XOSD_FALSE=
13099fi
13100
13101 if test x$doconly = xtrue; then
13102  DOCONLY_TRUE=
13103  DOCONLY_FALSE='#'
13104else
13105  DOCONLY_TRUE='#'
13106  DOCONLY_FALSE=
13107fi
13108
13109 if test x$makestatic = xtrue; then
13110  BUILD_STATIC_TRUE=
13111  BUILD_STATIC_FALSE='#'
13112else
13113  BUILD_STATIC_TRUE='#'
13114  BUILD_STATIC_FALSE=
13115fi
13116
13117 if test x$buildlib = xfalse; then
13118  NOT_INSTALL_LIBS_TRUE=
13119  NOT_INSTALL_LIBS_FALSE='#'
13120else
13121  NOT_INSTALL_LIBS_TRUE='#'
13122  NOT_INSTALL_LIBS_FALSE=
13123fi
13124
13125 if test x$use_xi2 = xtrue; then
13126  XNEE_XINPUT_SUPPORT_TRUE=
13127  XNEE_XINPUT_SUPPORT_FALSE='#'
13128else
13129  XNEE_XINPUT_SUPPORT_TRUE='#'
13130  XNEE_XINPUT_SUPPORT_FALSE=
13131fi
13132
13133
13134if test x$verbose = xtrue ;
13135then
13136    VERBOSE_FLAG=-DUSE_VERBOSE
13137else
13138    VERBOSE_FLAG=-DNO_VERBOSE
13139fi
13140
13141if test x$gcov = xtrue ;
13142then
13143    GCOV_FLAG=-fprofile-arcs -ftest-coverage
13144    CFLAGS=
13145else
13146    GCOV_FLAG=
13147fi
13148
13149if test x$gprof = xtrue ;
13150then
13151    GPROF_FLAG=-pg
13152    CFLAGS=
13153else
13154    GPROF_FLAG=
13155fi
13156
13157if test x$buffer_verbose = xtrue ;
13158then
13159    BUF_VERBOSE_FLAG=-DUSE_BUF_VERBOSE
13160else
13161    BUF_VERBOSE_FLAG=-DNO_BUF_VERBOSE
13162fi
13163
13164if test x$pedantic = xtrue ;
13165then
13166    PEDANTIC_FLAGS= -W -Wall -pedantic -pedantic-errors  -Werror
13167else
13168    PEDANTIC_FLAGS=
13169fi
13170
13171if test x$para_pedantic = xtrue ;
13172then
13173    PEDANTIC_FLAGS=
13174else
13175    PEDANTIC_FLAGS=
13176fi
13177
13178
13179 if test x$use_xi2 = xtrue; then
13180  XNEE_XINPUT_SUPPORT_TRUE=
13181  XNEE_XINPUT_SUPPORT_FALSE='#'
13182else
13183  XNEE_XINPUT_SUPPORT_TRUE='#'
13184  XNEE_XINPUT_SUPPORT_FALSE=
13185fi
13186
13187if test x$use_xi2 = xtrue;
13188then
13189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIQueryPointer in -lXtst" >&5
13190$as_echo_n "checking for XIQueryPointer in -lXtst... " >&6; }
13191if ${ac_cv_lib_Xtst_XIQueryPointer+:} false; then :
13192  $as_echo_n "(cached) " >&6
13193else
13194  ac_check_lib_save_LIBS=$LIBS
13195LIBS="-lXtst  $LIBS"
13196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197/* end confdefs.h.  */
13198
13199/* Override any GCC internal prototype to avoid an error.
13200   Use char because int might match the return type of a GCC
13201   builtin and then its argument prototype would still apply.  */
13202#ifdef __cplusplus
13203extern "C"
13204#endif
13205char XIQueryPointer ();
13206int
13207main ()
13208{
13209return XIQueryPointer ();
13210  ;
13211  return 0;
13212}
13213_ACEOF
13214if ac_fn_c_try_link "$LINENO"; then :
13215  ac_cv_lib_Xtst_XIQueryPointer=yes
13216else
13217  ac_cv_lib_Xtst_XIQueryPointer=no
13218fi
13219rm -f core conftest.err conftest.$ac_objext \
13220    conftest$ac_exeext conftest.$ac_ext
13221LIBS=$ac_check_lib_save_LIBS
13222fi
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XIQueryPointer" >&5
13224$as_echo "$ac_cv_lib_Xtst_XIQueryPointer" >&6; }
13225if test "x$ac_cv_lib_Xtst_XIQueryPointer" = xyes; then :
13226  LIBXI=""
13227else
13228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIQueryPointer in -lXi" >&5
13229$as_echo_n "checking for XIQueryPointer in -lXi... " >&6; }
13230if ${ac_cv_lib_Xi_XIQueryPointer+:} false; then :
13231  $as_echo_n "(cached) " >&6
13232else
13233  ac_check_lib_save_LIBS=$LIBS
13234LIBS="-lXi  $LIBS"
13235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236/* end confdefs.h.  */
13237
13238/* Override any GCC internal prototype to avoid an error.
13239   Use char because int might match the return type of a GCC
13240   builtin and then its argument prototype would still apply.  */
13241#ifdef __cplusplus
13242extern "C"
13243#endif
13244char XIQueryPointer ();
13245int
13246main ()
13247{
13248return XIQueryPointer ();
13249  ;
13250  return 0;
13251}
13252_ACEOF
13253if ac_fn_c_try_link "$LINENO"; then :
13254  ac_cv_lib_Xi_XIQueryPointer=yes
13255else
13256  ac_cv_lib_Xi_XIQueryPointer=no
13257fi
13258rm -f core conftest.err conftest.$ac_objext \
13259    conftest$ac_exeext conftest.$ac_ext
13260LIBS=$ac_check_lib_save_LIBS
13261fi
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XIQueryPointer" >&5
13263$as_echo "$ac_cv_lib_Xi_XIQueryPointer" >&6; }
13264if test "x$ac_cv_lib_Xi_XIQueryPointer" = xyes; then :
13265  LIBXI="-lXi"
13266fi
13267
13268fi
13269
13270    for ac_header in X11/extensions/XInput2.h
13271do :
13272  ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "$ac_includes_default"
13273if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
13274  cat >>confdefs.h <<_ACEOF
13275#define HAVE_X11_EXTENSIONS_XINPUT2_H 1
13276_ACEOF
13277 HAS_XI2="true"
13278else
13279  HAS_XI2="false"
13280fi
13281
13282done
13283
13284    XNEE_XINPUT_SUPPORT_FLAGS=-DXNEE_XINPUT_SUPPORT
13285else
13286    XNEE_XINPUT_SUPPORT_FLAGS=
13287fi
13288
13289
13290
13291
13292
13293X11_LIBS="-lX11 $LIBXTST $LIBXI"
13294
13295
13296
13297
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13299$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13300    # Check whether --enable-maintainer-mode was given.
13301if test "${enable_maintainer_mode+set}" = set; then :
13302  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13303else
13304  USE_MAINTAINER_MODE=no
13305fi
13306
13307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13308$as_echo "$USE_MAINTAINER_MODE" >&6; }
13309   if test $USE_MAINTAINER_MODE = yes; then
13310  MAINTAINER_MODE_TRUE=
13311  MAINTAINER_MODE_FALSE='#'
13312else
13313  MAINTAINER_MODE_TRUE='#'
13314  MAINTAINER_MODE_FALSE=
13315fi
13316
13317  MAINT=$MAINTAINER_MODE_TRUE
13318
13319
13320ac_config_headers="$ac_config_headers config.h"
13321
13322
13323CLI_DIR=
13324LIB_DIR=
13325DOC_DIR=
13326GUI_DIR=
13327
13328
13329check_program()
13330{
13331    PROG_VAR_TO_CHECK=$1
13332    PROG_TO_CHECK=$2
13333
13334    if test "x$PROG_VAR_TO_CHECK" = "x"
13335    then
13336	MISSING_PROGRAMS="$MISSING_PROGRAMS $PROG_TO_CHECK"
13337    fi
13338}
13339
13340DEBS_TO_INSTALL=""
13341check_doc_program()
13342{
13343    PROG_VAR_TO_CHECK=$1
13344    PROG_TO_CHECK=$2
13345    DEBS=$3
13346
13347    if test "x$PROG_VAR_TO_CHECK" = "x"
13348    then
13349	DOC_NOT_BUILT_WARNING=true
13350	MISSING_PROGRAMS="$MISSING_PROGRAMS $PROG_TO_CHECK"
13351	DEBS_TO_INSTALL="$DEBS_TO_INSTALL $DEBS"
13352    fi
13353}
13354
13355give_deb_hint()
13356{
13357    if test "x$DEBS_TO_INSTALL" != "x"
13358    then
13359	echo "  **       If you are using a Debian based distro "
13360	echo "  **       (e.g Trisquel, Debian, Gnewsense, Ubuntu), try:"
13361	echo "               apt-get install $DEBS_TO_INSTALL"
13362	echo "  **"
13363    fi
13364}
13365
13366
13367
13368help_on_missing_progrs()
13369{
13370    PROG=$1
13371    DISABLE_OPT=$2
13372    echo "  ** Suggested solutions:"
13373    echo "  **    1) Build Xnee without $PROG,"
13374    echo "  **      ./configure $DISABLE_OPT"
13375    echo "  **"
13376    echo "  **    2) Install the missing programs/packages"
13377    give_deb_hint
13378    echo "  **    3) If the programs/packages are installed (and not found) make sure they can be found in the PATH or other environment variable"
13379    echo "  **"
13380}
13381
13382if test x$buildgapplet = xtrue || test x$buildgui = xtrue  || test x$builddoc = xtrue  ;
13383then
13384    check_doc_program "$CONVERT" "convert" "imagemagick"
13385fi
13386
13387
13388
13389if test x$buildgapplet = xtrue || test x$buildgui = xtrue  ;
13390then
13391    # Extract the first word of "pkg-config", so it can be a program name with args.
13392set dummy pkg-config; ac_word=$2
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394$as_echo_n "checking for $ac_word... " >&6; }
13395if ${ac_cv_path_PKGCFG+:} false; then :
13396  $as_echo_n "(cached) " >&6
13397else
13398  case $PKGCFG in
13399  [\\/]* | ?:[\\/]*)
13400  ac_cv_path_PKGCFG="$PKGCFG" # Let the user override the test with a path.
13401  ;;
13402  *)
13403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404for as_dir in $PATH
13405do
13406  IFS=$as_save_IFS
13407  test -z "$as_dir" && as_dir=.
13408    for ac_exec_ext in '' $ac_executable_extensions; do
13409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13410    ac_cv_path_PKGCFG="$as_dir/$ac_word$ac_exec_ext"
13411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412    break 2
13413  fi
13414done
13415  done
13416IFS=$as_save_IFS
13417
13418  ;;
13419esac
13420fi
13421PKGCFG=$ac_cv_path_PKGCFG
13422if test -n "$PKGCFG"; then
13423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCFG" >&5
13424$as_echo "$PKGCFG" >&6; }
13425else
13426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427$as_echo "no" >&6; }
13428fi
13429
13430
13431    check_doc_program "$PKGCFG" "pkg-config" "pkg-config"
13432
13433    if test "x$PKGCFG" = "x"
13434    then
13435
13436	echo "  ********** ERROR **********"
13437	echo "  ** pnee and/or gnee can't be built ** "
13438	echo "  **   ..it is obsoleted and not cuurently supported"
13439	echo "  ** "
13440	echo "  ** The following program/package is missing:"
13441	echo "  **    pkg-config"
13442	echo "  ** "
13443	DEBS_TO_INSTALL="pkg-config"
13444	help_on_missing_progrs "pnee and gnee" "--disable-gnome-applet --disable-gui "
13445	echo "  ** "
13446	echo "  ********** ERROR **********"
13447	exit 1
13448    fi
13449fi
13450
13451PIXMAP_DIR=pixmap
13452
13453if test x$buildgapplet = xtrue || test x$buildgui = xtrue  ;
13454then
13455
13456    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
13457$as_echo_n "checking for library containing strerror... " >&6; }
13458if ${ac_cv_search_strerror+:} false; then :
13459  $as_echo_n "(cached) " >&6
13460else
13461  ac_func_search_save_LIBS=$LIBS
13462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463/* end confdefs.h.  */
13464
13465/* Override any GCC internal prototype to avoid an error.
13466   Use char because int might match the return type of a GCC
13467   builtin and then its argument prototype would still apply.  */
13468#ifdef __cplusplus
13469extern "C"
13470#endif
13471char strerror ();
13472int
13473main ()
13474{
13475return strerror ();
13476  ;
13477  return 0;
13478}
13479_ACEOF
13480for ac_lib in '' cposix; do
13481  if test -z "$ac_lib"; then
13482    ac_res="none required"
13483  else
13484    ac_res=-l$ac_lib
13485    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13486  fi
13487  if ac_fn_c_try_link "$LINENO"; then :
13488  ac_cv_search_strerror=$ac_res
13489fi
13490rm -f core conftest.err conftest.$ac_objext \
13491    conftest$ac_exeext
13492  if ${ac_cv_search_strerror+:} false; then :
13493  break
13494fi
13495done
13496if ${ac_cv_search_strerror+:} false; then :
13497
13498else
13499  ac_cv_search_strerror=no
13500fi
13501rm conftest.$ac_ext
13502LIBS=$ac_func_search_save_LIBS
13503fi
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
13505$as_echo "$ac_cv_search_strerror" >&6; }
13506ac_res=$ac_cv_search_strerror
13507if test "$ac_res" != no; then :
13508  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13509
13510fi
13511
13512    ac_ext=c
13513ac_cpp='$CPP $CPPFLAGS'
13514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13516ac_compiler_gnu=$ac_cv_c_compiler_gnu
13517if test -n "$ac_tool_prefix"; then
13518  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13519set dummy ${ac_tool_prefix}gcc; ac_word=$2
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521$as_echo_n "checking for $ac_word... " >&6; }
13522if ${ac_cv_prog_CC+:} false; then :
13523  $as_echo_n "(cached) " >&6
13524else
13525  if test -n "$CC"; then
13526  ac_cv_prog_CC="$CC" # Let the user override the test.
13527else
13528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531  IFS=$as_save_IFS
13532  test -z "$as_dir" && as_dir=.
13533    for ac_exec_ext in '' $ac_executable_extensions; do
13534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535    ac_cv_prog_CC="${ac_tool_prefix}gcc"
13536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537    break 2
13538  fi
13539done
13540  done
13541IFS=$as_save_IFS
13542
13543fi
13544fi
13545CC=$ac_cv_prog_CC
13546if test -n "$CC"; then
13547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13548$as_echo "$CC" >&6; }
13549else
13550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551$as_echo "no" >&6; }
13552fi
13553
13554
13555fi
13556if test -z "$ac_cv_prog_CC"; then
13557  ac_ct_CC=$CC
13558  # Extract the first word of "gcc", so it can be a program name with args.
13559set dummy gcc; ac_word=$2
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561$as_echo_n "checking for $ac_word... " >&6; }
13562if ${ac_cv_prog_ac_ct_CC+:} false; then :
13563  $as_echo_n "(cached) " >&6
13564else
13565  if test -n "$ac_ct_CC"; then
13566  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13567else
13568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569for as_dir in $PATH
13570do
13571  IFS=$as_save_IFS
13572  test -z "$as_dir" && as_dir=.
13573    for ac_exec_ext in '' $ac_executable_extensions; do
13574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13575    ac_cv_prog_ac_ct_CC="gcc"
13576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577    break 2
13578  fi
13579done
13580  done
13581IFS=$as_save_IFS
13582
13583fi
13584fi
13585ac_ct_CC=$ac_cv_prog_ac_ct_CC
13586if test -n "$ac_ct_CC"; then
13587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13588$as_echo "$ac_ct_CC" >&6; }
13589else
13590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591$as_echo "no" >&6; }
13592fi
13593
13594  if test "x$ac_ct_CC" = x; then
13595    CC=""
13596  else
13597    case $cross_compiling:$ac_tool_warned in
13598yes:)
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13601ac_tool_warned=yes ;;
13602esac
13603    CC=$ac_ct_CC
13604  fi
13605else
13606  CC="$ac_cv_prog_CC"
13607fi
13608
13609if test -z "$CC"; then
13610          if test -n "$ac_tool_prefix"; then
13611    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13612set dummy ${ac_tool_prefix}cc; ac_word=$2
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13614$as_echo_n "checking for $ac_word... " >&6; }
13615if ${ac_cv_prog_CC+:} false; then :
13616  $as_echo_n "(cached) " >&6
13617else
13618  if test -n "$CC"; then
13619  ac_cv_prog_CC="$CC" # Let the user override the test.
13620else
13621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13622for as_dir in $PATH
13623do
13624  IFS=$as_save_IFS
13625  test -z "$as_dir" && as_dir=.
13626    for ac_exec_ext in '' $ac_executable_extensions; do
13627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13628    ac_cv_prog_CC="${ac_tool_prefix}cc"
13629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13630    break 2
13631  fi
13632done
13633  done
13634IFS=$as_save_IFS
13635
13636fi
13637fi
13638CC=$ac_cv_prog_CC
13639if test -n "$CC"; then
13640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13641$as_echo "$CC" >&6; }
13642else
13643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644$as_echo "no" >&6; }
13645fi
13646
13647
13648  fi
13649fi
13650if test -z "$CC"; then
13651  # Extract the first word of "cc", so it can be a program name with args.
13652set dummy cc; ac_word=$2
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13654$as_echo_n "checking for $ac_word... " >&6; }
13655if ${ac_cv_prog_CC+:} false; then :
13656  $as_echo_n "(cached) " >&6
13657else
13658  if test -n "$CC"; then
13659  ac_cv_prog_CC="$CC" # Let the user override the test.
13660else
13661  ac_prog_rejected=no
13662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13663for as_dir in $PATH
13664do
13665  IFS=$as_save_IFS
13666  test -z "$as_dir" && as_dir=.
13667    for ac_exec_ext in '' $ac_executable_extensions; do
13668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13669    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13670       ac_prog_rejected=yes
13671       continue
13672     fi
13673    ac_cv_prog_CC="cc"
13674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675    break 2
13676  fi
13677done
13678  done
13679IFS=$as_save_IFS
13680
13681if test $ac_prog_rejected = yes; then
13682  # We found a bogon in the path, so make sure we never use it.
13683  set dummy $ac_cv_prog_CC
13684  shift
13685  if test $# != 0; then
13686    # We chose a different compiler from the bogus one.
13687    # However, it has the same basename, so the bogon will be chosen
13688    # first if we set CC to just the basename; use the full file name.
13689    shift
13690    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13691  fi
13692fi
13693fi
13694fi
13695CC=$ac_cv_prog_CC
13696if test -n "$CC"; then
13697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13698$as_echo "$CC" >&6; }
13699else
13700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701$as_echo "no" >&6; }
13702fi
13703
13704
13705fi
13706if test -z "$CC"; then
13707  if test -n "$ac_tool_prefix"; then
13708  for ac_prog in cl.exe
13709  do
13710    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13711set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713$as_echo_n "checking for $ac_word... " >&6; }
13714if ${ac_cv_prog_CC+:} false; then :
13715  $as_echo_n "(cached) " >&6
13716else
13717  if test -n "$CC"; then
13718  ac_cv_prog_CC="$CC" # Let the user override the test.
13719else
13720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721for as_dir in $PATH
13722do
13723  IFS=$as_save_IFS
13724  test -z "$as_dir" && as_dir=.
13725    for ac_exec_ext in '' $ac_executable_extensions; do
13726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729    break 2
13730  fi
13731done
13732  done
13733IFS=$as_save_IFS
13734
13735fi
13736fi
13737CC=$ac_cv_prog_CC
13738if test -n "$CC"; then
13739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13740$as_echo "$CC" >&6; }
13741else
13742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743$as_echo "no" >&6; }
13744fi
13745
13746
13747    test -n "$CC" && break
13748  done
13749fi
13750if test -z "$CC"; then
13751  ac_ct_CC=$CC
13752  for ac_prog in cl.exe
13753do
13754  # Extract the first word of "$ac_prog", so it can be a program name with args.
13755set dummy $ac_prog; ac_word=$2
13756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13757$as_echo_n "checking for $ac_word... " >&6; }
13758if ${ac_cv_prog_ac_ct_CC+:} false; then :
13759  $as_echo_n "(cached) " >&6
13760else
13761  if test -n "$ac_ct_CC"; then
13762  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13763else
13764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765for as_dir in $PATH
13766do
13767  IFS=$as_save_IFS
13768  test -z "$as_dir" && as_dir=.
13769    for ac_exec_ext in '' $ac_executable_extensions; do
13770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13771    ac_cv_prog_ac_ct_CC="$ac_prog"
13772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13773    break 2
13774  fi
13775done
13776  done
13777IFS=$as_save_IFS
13778
13779fi
13780fi
13781ac_ct_CC=$ac_cv_prog_ac_ct_CC
13782if test -n "$ac_ct_CC"; then
13783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13784$as_echo "$ac_ct_CC" >&6; }
13785else
13786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13787$as_echo "no" >&6; }
13788fi
13789
13790
13791  test -n "$ac_ct_CC" && break
13792done
13793
13794  if test "x$ac_ct_CC" = x; then
13795    CC=""
13796  else
13797    case $cross_compiling:$ac_tool_warned in
13798yes:)
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13801ac_tool_warned=yes ;;
13802esac
13803    CC=$ac_ct_CC
13804  fi
13805fi
13806
13807fi
13808
13809
13810test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13812as_fn_error $? "no acceptable C compiler found in \$PATH
13813See \`config.log' for more details" "$LINENO" 5; }
13814
13815# Provide some information about the compiler.
13816$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13817set X $ac_compile
13818ac_compiler=$2
13819for ac_option in --version -v -V -qversion; do
13820  { { ac_try="$ac_compiler $ac_option >&5"
13821case "(($ac_try" in
13822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823  *) ac_try_echo=$ac_try;;
13824esac
13825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13826$as_echo "$ac_try_echo"; } >&5
13827  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13828  ac_status=$?
13829  if test -s conftest.err; then
13830    sed '10a\
13831... rest of stderr output deleted ...
13832         10q' conftest.err >conftest.er1
13833    cat conftest.er1 >&5
13834  fi
13835  rm -f conftest.er1 conftest.err
13836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837  test $ac_status = 0; }
13838done
13839
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13841$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13842if ${ac_cv_c_compiler_gnu+:} false; then :
13843  $as_echo_n "(cached) " >&6
13844else
13845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846/* end confdefs.h.  */
13847
13848int
13849main ()
13850{
13851#ifndef __GNUC__
13852       choke me
13853#endif
13854
13855  ;
13856  return 0;
13857}
13858_ACEOF
13859if ac_fn_c_try_compile "$LINENO"; then :
13860  ac_compiler_gnu=yes
13861else
13862  ac_compiler_gnu=no
13863fi
13864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865ac_cv_c_compiler_gnu=$ac_compiler_gnu
13866
13867fi
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13869$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13870if test $ac_compiler_gnu = yes; then
13871  GCC=yes
13872else
13873  GCC=
13874fi
13875ac_test_CFLAGS=${CFLAGS+set}
13876ac_save_CFLAGS=$CFLAGS
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13878$as_echo_n "checking whether $CC accepts -g... " >&6; }
13879if ${ac_cv_prog_cc_g+:} false; then :
13880  $as_echo_n "(cached) " >&6
13881else
13882  ac_save_c_werror_flag=$ac_c_werror_flag
13883   ac_c_werror_flag=yes
13884   ac_cv_prog_cc_g=no
13885   CFLAGS="-g"
13886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887/* end confdefs.h.  */
13888
13889int
13890main ()
13891{
13892
13893  ;
13894  return 0;
13895}
13896_ACEOF
13897if ac_fn_c_try_compile "$LINENO"; then :
13898  ac_cv_prog_cc_g=yes
13899else
13900  CFLAGS=""
13901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902/* end confdefs.h.  */
13903
13904int
13905main ()
13906{
13907
13908  ;
13909  return 0;
13910}
13911_ACEOF
13912if ac_fn_c_try_compile "$LINENO"; then :
13913
13914else
13915  ac_c_werror_flag=$ac_save_c_werror_flag
13916	 CFLAGS="-g"
13917	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918/* end confdefs.h.  */
13919
13920int
13921main ()
13922{
13923
13924  ;
13925  return 0;
13926}
13927_ACEOF
13928if ac_fn_c_try_compile "$LINENO"; then :
13929  ac_cv_prog_cc_g=yes
13930fi
13931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932fi
13933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13934fi
13935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13936   ac_c_werror_flag=$ac_save_c_werror_flag
13937fi
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13939$as_echo "$ac_cv_prog_cc_g" >&6; }
13940if test "$ac_test_CFLAGS" = set; then
13941  CFLAGS=$ac_save_CFLAGS
13942elif test $ac_cv_prog_cc_g = yes; then
13943  if test "$GCC" = yes; then
13944    CFLAGS="-g -O2"
13945  else
13946    CFLAGS="-g"
13947  fi
13948else
13949  if test "$GCC" = yes; then
13950    CFLAGS="-O2"
13951  else
13952    CFLAGS=
13953  fi
13954fi
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13956$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13957if ${ac_cv_prog_cc_c89+:} false; then :
13958  $as_echo_n "(cached) " >&6
13959else
13960  ac_cv_prog_cc_c89=no
13961ac_save_CC=$CC
13962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963/* end confdefs.h.  */
13964#include <stdarg.h>
13965#include <stdio.h>
13966struct stat;
13967/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13968struct buf { int x; };
13969FILE * (*rcsopen) (struct buf *, struct stat *, int);
13970static char *e (p, i)
13971     char **p;
13972     int i;
13973{
13974  return p[i];
13975}
13976static char *f (char * (*g) (char **, int), char **p, ...)
13977{
13978  char *s;
13979  va_list v;
13980  va_start (v,p);
13981  s = g (p, va_arg (v,int));
13982  va_end (v);
13983  return s;
13984}
13985
13986/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13987   function prototypes and stuff, but not '\xHH' hex character constants.
13988   These don't provoke an error unfortunately, instead are silently treated
13989   as 'x'.  The following induces an error, until -std is added to get
13990   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13991   array size at least.  It's necessary to write '\x00'==0 to get something
13992   that's true only with -std.  */
13993int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13994
13995/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13996   inside strings and character constants.  */
13997#define FOO(x) 'x'
13998int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13999
14000int test (int i, double x);
14001struct s1 {int (*f) (int a);};
14002struct s2 {int (*f) (double a);};
14003int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14004int argc;
14005char **argv;
14006int
14007main ()
14008{
14009return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14010  ;
14011  return 0;
14012}
14013_ACEOF
14014for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14015	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14016do
14017  CC="$ac_save_CC $ac_arg"
14018  if ac_fn_c_try_compile "$LINENO"; then :
14019  ac_cv_prog_cc_c89=$ac_arg
14020fi
14021rm -f core conftest.err conftest.$ac_objext
14022  test "x$ac_cv_prog_cc_c89" != "xno" && break
14023done
14024rm -f conftest.$ac_ext
14025CC=$ac_save_CC
14026
14027fi
14028# AC_CACHE_VAL
14029case "x$ac_cv_prog_cc_c89" in
14030  x)
14031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14032$as_echo "none needed" >&6; } ;;
14033  xno)
14034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14035$as_echo "unsupported" >&6; } ;;
14036  *)
14037    CC="$CC $ac_cv_prog_cc_c89"
14038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14039$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14040esac
14041if test "x$ac_cv_prog_cc_c89" != xno; then :
14042
14043fi
14044
14045ac_ext=c
14046ac_cpp='$CPP $CPPFLAGS'
14047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14049ac_compiler_gnu=$ac_cv_c_compiler_gnu
14050
14051ac_ext=c
14052ac_cpp='$CPP $CPPFLAGS'
14053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14055ac_compiler_gnu=$ac_cv_c_compiler_gnu
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14057$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14058if ${am_cv_prog_cc_c_o+:} false; then :
14059  $as_echo_n "(cached) " >&6
14060else
14061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062/* end confdefs.h.  */
14063
14064int
14065main ()
14066{
14067
14068  ;
14069  return 0;
14070}
14071_ACEOF
14072  # Make sure it works both with $CC and with simple cc.
14073  # Following AC_PROG_CC_C_O, we do the test twice because some
14074  # compilers refuse to overwrite an existing .o file with -o,
14075  # though they will create one.
14076  am_cv_prog_cc_c_o=yes
14077  for am_i in 1 2; do
14078    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14079   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } \
14083         && test -f conftest2.$ac_objext; then
14084      : OK
14085    else
14086      am_cv_prog_cc_c_o=no
14087      break
14088    fi
14089  done
14090  rm -f core conftest*
14091  unset am_i
14092fi
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14094$as_echo "$am_cv_prog_cc_c_o" >&6; }
14095if test "$am_cv_prog_cc_c_o" != yes; then
14096   # Losing compiler, so override with the script.
14097   # FIXME: It is wrong to rewrite CC.
14098   # But if we don't then we get into trouble of one sort or another.
14099   # A longer-term fix would be to have automake use am__CC in this case,
14100   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14101   CC="$am_aux_dir/compile $CC"
14102fi
14103ac_ext=c
14104ac_cpp='$CPP $CPPFLAGS'
14105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14107ac_compiler_gnu=$ac_cv_c_compiler_gnu
14108
14109
14110depcc="$CC"   am_compiler_list=
14111
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14113$as_echo_n "checking dependency style of $depcc... " >&6; }
14114if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14115  $as_echo_n "(cached) " >&6
14116else
14117  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14118  # We make a subdir and do the tests there.  Otherwise we can end up
14119  # making bogus files that we don't know about and never remove.  For
14120  # instance it was reported that on HP-UX the gcc test will end up
14121  # making a dummy file named 'D' -- because '-MD' means "put the output
14122  # in D".
14123  rm -rf conftest.dir
14124  mkdir conftest.dir
14125  # Copy depcomp to subdir because otherwise we won't find it if we're
14126  # using a relative directory.
14127  cp "$am_depcomp" conftest.dir
14128  cd conftest.dir
14129  # We will build objects and dependencies in a subdirectory because
14130  # it helps to detect inapplicable dependency modes.  For instance
14131  # both Tru64's cc and ICC support -MD to output dependencies as a
14132  # side effect of compilation, but ICC will put the dependencies in
14133  # the current directory while Tru64 will put them in the object
14134  # directory.
14135  mkdir sub
14136
14137  am_cv_CC_dependencies_compiler_type=none
14138  if test "$am_compiler_list" = ""; then
14139     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14140  fi
14141  am__universal=false
14142  case " $depcc " in #(
14143     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14144     esac
14145
14146  for depmode in $am_compiler_list; do
14147    # Setup a source with many dependencies, because some compilers
14148    # like to wrap large dependency lists on column 80 (with \), and
14149    # we should not choose a depcomp mode which is confused by this.
14150    #
14151    # We need to recreate these files for each test, as the compiler may
14152    # overwrite some of them when testing with obscure command lines.
14153    # This happens at least with the AIX C compiler.
14154    : > sub/conftest.c
14155    for i in 1 2 3 4 5 6; do
14156      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14157      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14158      # Solaris 10 /bin/sh.
14159      echo '/* dummy */' > sub/conftst$i.h
14160    done
14161    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14162
14163    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14164    # mode.  It turns out that the SunPro C++ compiler does not properly
14165    # handle '-M -o', and we need to detect this.  Also, some Intel
14166    # versions had trouble with output in subdirs.
14167    am__obj=sub/conftest.${OBJEXT-o}
14168    am__minus_obj="-o $am__obj"
14169    case $depmode in
14170    gcc)
14171      # This depmode causes a compiler race in universal mode.
14172      test "$am__universal" = false || continue
14173      ;;
14174    nosideeffect)
14175      # After this tag, mechanisms are not by side-effect, so they'll
14176      # only be used when explicitly requested.
14177      if test "x$enable_dependency_tracking" = xyes; then
14178	continue
14179      else
14180	break
14181      fi
14182      ;;
14183    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14184      # This compiler won't grok '-c -o', but also, the minuso test has
14185      # not run yet.  These depmodes are late enough in the game, and
14186      # so weak that their functioning should not be impacted.
14187      am__obj=conftest.${OBJEXT-o}
14188      am__minus_obj=
14189      ;;
14190    none) break ;;
14191    esac
14192    if depmode=$depmode \
14193       source=sub/conftest.c object=$am__obj \
14194       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14195       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14196         >/dev/null 2>conftest.err &&
14197       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14198       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14199       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14200       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14201      # icc doesn't choke on unknown options, it will just issue warnings
14202      # or remarks (even with -Werror).  So we grep stderr for any message
14203      # that says an option was ignored or not supported.
14204      # When given -MP, icc 7.0 and 7.1 complain thusly:
14205      #   icc: Command line warning: ignoring option '-M'; no argument required
14206      # The diagnosis changed in icc 8.0:
14207      #   icc: Command line remark: option '-MP' not supported
14208      if (grep 'ignoring option' conftest.err ||
14209          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14210        am_cv_CC_dependencies_compiler_type=$depmode
14211        break
14212      fi
14213    fi
14214  done
14215
14216  cd ..
14217  rm -rf conftest.dir
14218else
14219  am_cv_CC_dependencies_compiler_type=none
14220fi
14221
14222fi
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14224$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14225CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14226
14227 if
14228  test "x$enable_dependency_tracking" != xno \
14229  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14230  am__fastdepCC_TRUE=
14231  am__fastdepCC_FALSE='#'
14232else
14233  am__fastdepCC_TRUE='#'
14234  am__fastdepCC_FALSE=
14235fi
14236
14237
14238    ac_ext=c
14239ac_cpp='$CPP $CPPFLAGS'
14240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14242ac_compiler_gnu=$ac_cv_c_compiler_gnu
14243if test -n "$ac_tool_prefix"; then
14244  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14245set dummy ${ac_tool_prefix}gcc; ac_word=$2
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14247$as_echo_n "checking for $ac_word... " >&6; }
14248if ${ac_cv_prog_CC+:} false; then :
14249  $as_echo_n "(cached) " >&6
14250else
14251  if test -n "$CC"; then
14252  ac_cv_prog_CC="$CC" # Let the user override the test.
14253else
14254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14255for as_dir in $PATH
14256do
14257  IFS=$as_save_IFS
14258  test -z "$as_dir" && as_dir=.
14259    for ac_exec_ext in '' $ac_executable_extensions; do
14260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14261    ac_cv_prog_CC="${ac_tool_prefix}gcc"
14262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14263    break 2
14264  fi
14265done
14266  done
14267IFS=$as_save_IFS
14268
14269fi
14270fi
14271CC=$ac_cv_prog_CC
14272if test -n "$CC"; then
14273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14274$as_echo "$CC" >&6; }
14275else
14276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277$as_echo "no" >&6; }
14278fi
14279
14280
14281fi
14282if test -z "$ac_cv_prog_CC"; then
14283  ac_ct_CC=$CC
14284  # Extract the first word of "gcc", so it can be a program name with args.
14285set dummy gcc; ac_word=$2
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14287$as_echo_n "checking for $ac_word... " >&6; }
14288if ${ac_cv_prog_ac_ct_CC+:} false; then :
14289  $as_echo_n "(cached) " >&6
14290else
14291  if test -n "$ac_ct_CC"; then
14292  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14293else
14294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295for as_dir in $PATH
14296do
14297  IFS=$as_save_IFS
14298  test -z "$as_dir" && as_dir=.
14299    for ac_exec_ext in '' $ac_executable_extensions; do
14300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14301    ac_cv_prog_ac_ct_CC="gcc"
14302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14303    break 2
14304  fi
14305done
14306  done
14307IFS=$as_save_IFS
14308
14309fi
14310fi
14311ac_ct_CC=$ac_cv_prog_ac_ct_CC
14312if test -n "$ac_ct_CC"; then
14313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14314$as_echo "$ac_ct_CC" >&6; }
14315else
14316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14317$as_echo "no" >&6; }
14318fi
14319
14320  if test "x$ac_ct_CC" = x; then
14321    CC=""
14322  else
14323    case $cross_compiling:$ac_tool_warned in
14324yes:)
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14327ac_tool_warned=yes ;;
14328esac
14329    CC=$ac_ct_CC
14330  fi
14331else
14332  CC="$ac_cv_prog_CC"
14333fi
14334
14335if test -z "$CC"; then
14336          if test -n "$ac_tool_prefix"; then
14337    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14338set dummy ${ac_tool_prefix}cc; ac_word=$2
14339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340$as_echo_n "checking for $ac_word... " >&6; }
14341if ${ac_cv_prog_CC+:} false; then :
14342  $as_echo_n "(cached) " >&6
14343else
14344  if test -n "$CC"; then
14345  ac_cv_prog_CC="$CC" # Let the user override the test.
14346else
14347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348for as_dir in $PATH
14349do
14350  IFS=$as_save_IFS
14351  test -z "$as_dir" && as_dir=.
14352    for ac_exec_ext in '' $ac_executable_extensions; do
14353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354    ac_cv_prog_CC="${ac_tool_prefix}cc"
14355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14356    break 2
14357  fi
14358done
14359  done
14360IFS=$as_save_IFS
14361
14362fi
14363fi
14364CC=$ac_cv_prog_CC
14365if test -n "$CC"; then
14366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14367$as_echo "$CC" >&6; }
14368else
14369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370$as_echo "no" >&6; }
14371fi
14372
14373
14374  fi
14375fi
14376if test -z "$CC"; then
14377  # Extract the first word of "cc", so it can be a program name with args.
14378set dummy cc; ac_word=$2
14379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14380$as_echo_n "checking for $ac_word... " >&6; }
14381if ${ac_cv_prog_CC+:} false; then :
14382  $as_echo_n "(cached) " >&6
14383else
14384  if test -n "$CC"; then
14385  ac_cv_prog_CC="$CC" # Let the user override the test.
14386else
14387  ac_prog_rejected=no
14388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389for as_dir in $PATH
14390do
14391  IFS=$as_save_IFS
14392  test -z "$as_dir" && as_dir=.
14393    for ac_exec_ext in '' $ac_executable_extensions; do
14394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14395    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14396       ac_prog_rejected=yes
14397       continue
14398     fi
14399    ac_cv_prog_CC="cc"
14400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14401    break 2
14402  fi
14403done
14404  done
14405IFS=$as_save_IFS
14406
14407if test $ac_prog_rejected = yes; then
14408  # We found a bogon in the path, so make sure we never use it.
14409  set dummy $ac_cv_prog_CC
14410  shift
14411  if test $# != 0; then
14412    # We chose a different compiler from the bogus one.
14413    # However, it has the same basename, so the bogon will be chosen
14414    # first if we set CC to just the basename; use the full file name.
14415    shift
14416    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14417  fi
14418fi
14419fi
14420fi
14421CC=$ac_cv_prog_CC
14422if test -n "$CC"; then
14423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14424$as_echo "$CC" >&6; }
14425else
14426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427$as_echo "no" >&6; }
14428fi
14429
14430
14431fi
14432if test -z "$CC"; then
14433  if test -n "$ac_tool_prefix"; then
14434  for ac_prog in cl.exe
14435  do
14436    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14437set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14439$as_echo_n "checking for $ac_word... " >&6; }
14440if ${ac_cv_prog_CC+:} false; then :
14441  $as_echo_n "(cached) " >&6
14442else
14443  if test -n "$CC"; then
14444  ac_cv_prog_CC="$CC" # Let the user override the test.
14445else
14446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447for as_dir in $PATH
14448do
14449  IFS=$as_save_IFS
14450  test -z "$as_dir" && as_dir=.
14451    for ac_exec_ext in '' $ac_executable_extensions; do
14452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14453    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455    break 2
14456  fi
14457done
14458  done
14459IFS=$as_save_IFS
14460
14461fi
14462fi
14463CC=$ac_cv_prog_CC
14464if test -n "$CC"; then
14465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14466$as_echo "$CC" >&6; }
14467else
14468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469$as_echo "no" >&6; }
14470fi
14471
14472
14473    test -n "$CC" && break
14474  done
14475fi
14476if test -z "$CC"; then
14477  ac_ct_CC=$CC
14478  for ac_prog in cl.exe
14479do
14480  # Extract the first word of "$ac_prog", so it can be a program name with args.
14481set dummy $ac_prog; ac_word=$2
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14483$as_echo_n "checking for $ac_word... " >&6; }
14484if ${ac_cv_prog_ac_ct_CC+:} false; then :
14485  $as_echo_n "(cached) " >&6
14486else
14487  if test -n "$ac_ct_CC"; then
14488  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14489else
14490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491for as_dir in $PATH
14492do
14493  IFS=$as_save_IFS
14494  test -z "$as_dir" && as_dir=.
14495    for ac_exec_ext in '' $ac_executable_extensions; do
14496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14497    ac_cv_prog_ac_ct_CC="$ac_prog"
14498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14499    break 2
14500  fi
14501done
14502  done
14503IFS=$as_save_IFS
14504
14505fi
14506fi
14507ac_ct_CC=$ac_cv_prog_ac_ct_CC
14508if test -n "$ac_ct_CC"; then
14509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14510$as_echo "$ac_ct_CC" >&6; }
14511else
14512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513$as_echo "no" >&6; }
14514fi
14515
14516
14517  test -n "$ac_ct_CC" && break
14518done
14519
14520  if test "x$ac_ct_CC" = x; then
14521    CC=""
14522  else
14523    case $cross_compiling:$ac_tool_warned in
14524yes:)
14525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14527ac_tool_warned=yes ;;
14528esac
14529    CC=$ac_ct_CC
14530  fi
14531fi
14532
14533fi
14534
14535
14536test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14538as_fn_error $? "no acceptable C compiler found in \$PATH
14539See \`config.log' for more details" "$LINENO" 5; }
14540
14541# Provide some information about the compiler.
14542$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14543set X $ac_compile
14544ac_compiler=$2
14545for ac_option in --version -v -V -qversion; do
14546  { { ac_try="$ac_compiler $ac_option >&5"
14547case "(($ac_try" in
14548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549  *) ac_try_echo=$ac_try;;
14550esac
14551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14552$as_echo "$ac_try_echo"; } >&5
14553  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14554  ac_status=$?
14555  if test -s conftest.err; then
14556    sed '10a\
14557... rest of stderr output deleted ...
14558         10q' conftest.err >conftest.er1
14559    cat conftest.er1 >&5
14560  fi
14561  rm -f conftest.er1 conftest.err
14562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14563  test $ac_status = 0; }
14564done
14565
14566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14567$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14568if ${ac_cv_c_compiler_gnu+:} false; then :
14569  $as_echo_n "(cached) " >&6
14570else
14571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572/* end confdefs.h.  */
14573
14574int
14575main ()
14576{
14577#ifndef __GNUC__
14578       choke me
14579#endif
14580
14581  ;
14582  return 0;
14583}
14584_ACEOF
14585if ac_fn_c_try_compile "$LINENO"; then :
14586  ac_compiler_gnu=yes
14587else
14588  ac_compiler_gnu=no
14589fi
14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591ac_cv_c_compiler_gnu=$ac_compiler_gnu
14592
14593fi
14594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14595$as_echo "$ac_cv_c_compiler_gnu" >&6; }
14596if test $ac_compiler_gnu = yes; then
14597  GCC=yes
14598else
14599  GCC=
14600fi
14601ac_test_CFLAGS=${CFLAGS+set}
14602ac_save_CFLAGS=$CFLAGS
14603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14604$as_echo_n "checking whether $CC accepts -g... " >&6; }
14605if ${ac_cv_prog_cc_g+:} false; then :
14606  $as_echo_n "(cached) " >&6
14607else
14608  ac_save_c_werror_flag=$ac_c_werror_flag
14609   ac_c_werror_flag=yes
14610   ac_cv_prog_cc_g=no
14611   CFLAGS="-g"
14612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613/* end confdefs.h.  */
14614
14615int
14616main ()
14617{
14618
14619  ;
14620  return 0;
14621}
14622_ACEOF
14623if ac_fn_c_try_compile "$LINENO"; then :
14624  ac_cv_prog_cc_g=yes
14625else
14626  CFLAGS=""
14627      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628/* end confdefs.h.  */
14629
14630int
14631main ()
14632{
14633
14634  ;
14635  return 0;
14636}
14637_ACEOF
14638if ac_fn_c_try_compile "$LINENO"; then :
14639
14640else
14641  ac_c_werror_flag=$ac_save_c_werror_flag
14642	 CFLAGS="-g"
14643	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644/* end confdefs.h.  */
14645
14646int
14647main ()
14648{
14649
14650  ;
14651  return 0;
14652}
14653_ACEOF
14654if ac_fn_c_try_compile "$LINENO"; then :
14655  ac_cv_prog_cc_g=yes
14656fi
14657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658fi
14659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660fi
14661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662   ac_c_werror_flag=$ac_save_c_werror_flag
14663fi
14664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14665$as_echo "$ac_cv_prog_cc_g" >&6; }
14666if test "$ac_test_CFLAGS" = set; then
14667  CFLAGS=$ac_save_CFLAGS
14668elif test $ac_cv_prog_cc_g = yes; then
14669  if test "$GCC" = yes; then
14670    CFLAGS="-g -O2"
14671  else
14672    CFLAGS="-g"
14673  fi
14674else
14675  if test "$GCC" = yes; then
14676    CFLAGS="-O2"
14677  else
14678    CFLAGS=
14679  fi
14680fi
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14682$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14683if ${ac_cv_prog_cc_c89+:} false; then :
14684  $as_echo_n "(cached) " >&6
14685else
14686  ac_cv_prog_cc_c89=no
14687ac_save_CC=$CC
14688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689/* end confdefs.h.  */
14690#include <stdarg.h>
14691#include <stdio.h>
14692struct stat;
14693/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14694struct buf { int x; };
14695FILE * (*rcsopen) (struct buf *, struct stat *, int);
14696static char *e (p, i)
14697     char **p;
14698     int i;
14699{
14700  return p[i];
14701}
14702static char *f (char * (*g) (char **, int), char **p, ...)
14703{
14704  char *s;
14705  va_list v;
14706  va_start (v,p);
14707  s = g (p, va_arg (v,int));
14708  va_end (v);
14709  return s;
14710}
14711
14712/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14713   function prototypes and stuff, but not '\xHH' hex character constants.
14714   These don't provoke an error unfortunately, instead are silently treated
14715   as 'x'.  The following induces an error, until -std is added to get
14716   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14717   array size at least.  It's necessary to write '\x00'==0 to get something
14718   that's true only with -std.  */
14719int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14720
14721/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14722   inside strings and character constants.  */
14723#define FOO(x) 'x'
14724int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14725
14726int test (int i, double x);
14727struct s1 {int (*f) (int a);};
14728struct s2 {int (*f) (double a);};
14729int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14730int argc;
14731char **argv;
14732int
14733main ()
14734{
14735return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14736  ;
14737  return 0;
14738}
14739_ACEOF
14740for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14741	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14742do
14743  CC="$ac_save_CC $ac_arg"
14744  if ac_fn_c_try_compile "$LINENO"; then :
14745  ac_cv_prog_cc_c89=$ac_arg
14746fi
14747rm -f core conftest.err conftest.$ac_objext
14748  test "x$ac_cv_prog_cc_c89" != "xno" && break
14749done
14750rm -f conftest.$ac_ext
14751CC=$ac_save_CC
14752
14753fi
14754# AC_CACHE_VAL
14755case "x$ac_cv_prog_cc_c89" in
14756  x)
14757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14758$as_echo "none needed" >&6; } ;;
14759  xno)
14760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14761$as_echo "unsupported" >&6; } ;;
14762  *)
14763    CC="$CC $ac_cv_prog_cc_c89"
14764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14765$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14766esac
14767if test "x$ac_cv_prog_cc_c89" != xno; then :
14768
14769fi
14770
14771ac_ext=c
14772ac_cpp='$CPP $CPPFLAGS'
14773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14775ac_compiler_gnu=$ac_cv_c_compiler_gnu
14776
14777ac_ext=c
14778ac_cpp='$CPP $CPPFLAGS'
14779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14781ac_compiler_gnu=$ac_cv_c_compiler_gnu
14782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14783$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14784if ${am_cv_prog_cc_c_o+:} false; then :
14785  $as_echo_n "(cached) " >&6
14786else
14787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788/* end confdefs.h.  */
14789
14790int
14791main ()
14792{
14793
14794  ;
14795  return 0;
14796}
14797_ACEOF
14798  # Make sure it works both with $CC and with simple cc.
14799  # Following AC_PROG_CC_C_O, we do the test twice because some
14800  # compilers refuse to overwrite an existing .o file with -o,
14801  # though they will create one.
14802  am_cv_prog_cc_c_o=yes
14803  for am_i in 1 2; do
14804    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14805   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); } \
14809         && test -f conftest2.$ac_objext; then
14810      : OK
14811    else
14812      am_cv_prog_cc_c_o=no
14813      break
14814    fi
14815  done
14816  rm -f core conftest*
14817  unset am_i
14818fi
14819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14820$as_echo "$am_cv_prog_cc_c_o" >&6; }
14821if test "$am_cv_prog_cc_c_o" != yes; then
14822   # Losing compiler, so override with the script.
14823   # FIXME: It is wrong to rewrite CC.
14824   # But if we don't then we get into trouble of one sort or another.
14825   # A longer-term fix would be to have automake use am__CC in this case,
14826   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14827   CC="$am_aux_dir/compile $CC"
14828fi
14829ac_ext=c
14830ac_cpp='$CPP $CPPFLAGS'
14831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14833ac_compiler_gnu=$ac_cv_c_compiler_gnu
14834
14835
14836depcc="$CC"   am_compiler_list=
14837
14838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14839$as_echo_n "checking dependency style of $depcc... " >&6; }
14840if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14841  $as_echo_n "(cached) " >&6
14842else
14843  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14844  # We make a subdir and do the tests there.  Otherwise we can end up
14845  # making bogus files that we don't know about and never remove.  For
14846  # instance it was reported that on HP-UX the gcc test will end up
14847  # making a dummy file named 'D' -- because '-MD' means "put the output
14848  # in D".
14849  rm -rf conftest.dir
14850  mkdir conftest.dir
14851  # Copy depcomp to subdir because otherwise we won't find it if we're
14852  # using a relative directory.
14853  cp "$am_depcomp" conftest.dir
14854  cd conftest.dir
14855  # We will build objects and dependencies in a subdirectory because
14856  # it helps to detect inapplicable dependency modes.  For instance
14857  # both Tru64's cc and ICC support -MD to output dependencies as a
14858  # side effect of compilation, but ICC will put the dependencies in
14859  # the current directory while Tru64 will put them in the object
14860  # directory.
14861  mkdir sub
14862
14863  am_cv_CC_dependencies_compiler_type=none
14864  if test "$am_compiler_list" = ""; then
14865     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14866  fi
14867  am__universal=false
14868  case " $depcc " in #(
14869     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14870     esac
14871
14872  for depmode in $am_compiler_list; do
14873    # Setup a source with many dependencies, because some compilers
14874    # like to wrap large dependency lists on column 80 (with \), and
14875    # we should not choose a depcomp mode which is confused by this.
14876    #
14877    # We need to recreate these files for each test, as the compiler may
14878    # overwrite some of them when testing with obscure command lines.
14879    # This happens at least with the AIX C compiler.
14880    : > sub/conftest.c
14881    for i in 1 2 3 4 5 6; do
14882      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14883      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14884      # Solaris 10 /bin/sh.
14885      echo '/* dummy */' > sub/conftst$i.h
14886    done
14887    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14888
14889    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14890    # mode.  It turns out that the SunPro C++ compiler does not properly
14891    # handle '-M -o', and we need to detect this.  Also, some Intel
14892    # versions had trouble with output in subdirs.
14893    am__obj=sub/conftest.${OBJEXT-o}
14894    am__minus_obj="-o $am__obj"
14895    case $depmode in
14896    gcc)
14897      # This depmode causes a compiler race in universal mode.
14898      test "$am__universal" = false || continue
14899      ;;
14900    nosideeffect)
14901      # After this tag, mechanisms are not by side-effect, so they'll
14902      # only be used when explicitly requested.
14903      if test "x$enable_dependency_tracking" = xyes; then
14904	continue
14905      else
14906	break
14907      fi
14908      ;;
14909    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14910      # This compiler won't grok '-c -o', but also, the minuso test has
14911      # not run yet.  These depmodes are late enough in the game, and
14912      # so weak that their functioning should not be impacted.
14913      am__obj=conftest.${OBJEXT-o}
14914      am__minus_obj=
14915      ;;
14916    none) break ;;
14917    esac
14918    if depmode=$depmode \
14919       source=sub/conftest.c object=$am__obj \
14920       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14921       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14922         >/dev/null 2>conftest.err &&
14923       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14924       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14925       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14926       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14927      # icc doesn't choke on unknown options, it will just issue warnings
14928      # or remarks (even with -Werror).  So we grep stderr for any message
14929      # that says an option was ignored or not supported.
14930      # When given -MP, icc 7.0 and 7.1 complain thusly:
14931      #   icc: Command line warning: ignoring option '-M'; no argument required
14932      # The diagnosis changed in icc 8.0:
14933      #   icc: Command line remark: option '-MP' not supported
14934      if (grep 'ignoring option' conftest.err ||
14935          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14936        am_cv_CC_dependencies_compiler_type=$depmode
14937        break
14938      fi
14939    fi
14940  done
14941
14942  cd ..
14943  rm -rf conftest.dir
14944else
14945  am_cv_CC_dependencies_compiler_type=none
14946fi
14947
14948fi
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14950$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14952
14953 if
14954  test "x$enable_dependency_tracking" != xno \
14955  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14956  am__fastdepCC_TRUE=
14957  am__fastdepCC_FALSE='#'
14958else
14959  am__fastdepCC_TRUE='#'
14960  am__fastdepCC_FALSE=
14961fi
14962
14963
14964am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
14965
14966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14967$as_echo_n "checking for ANSI C header files... " >&6; }
14968if ${ac_cv_header_stdc+:} false; then :
14969  $as_echo_n "(cached) " >&6
14970else
14971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972/* end confdefs.h.  */
14973#include <stdlib.h>
14974#include <stdarg.h>
14975#include <string.h>
14976#include <float.h>
14977
14978int
14979main ()
14980{
14981
14982  ;
14983  return 0;
14984}
14985_ACEOF
14986if ac_fn_c_try_compile "$LINENO"; then :
14987  ac_cv_header_stdc=yes
14988else
14989  ac_cv_header_stdc=no
14990fi
14991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14992
14993if test $ac_cv_header_stdc = yes; then
14994  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996/* end confdefs.h.  */
14997#include <string.h>
14998
14999_ACEOF
15000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15001  $EGREP "memchr" >/dev/null 2>&1; then :
15002
15003else
15004  ac_cv_header_stdc=no
15005fi
15006rm -f conftest*
15007
15008fi
15009
15010if test $ac_cv_header_stdc = yes; then
15011  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013/* end confdefs.h.  */
15014#include <stdlib.h>
15015
15016_ACEOF
15017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15018  $EGREP "free" >/dev/null 2>&1; then :
15019
15020else
15021  ac_cv_header_stdc=no
15022fi
15023rm -f conftest*
15024
15025fi
15026
15027if test $ac_cv_header_stdc = yes; then
15028  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15029  if test "$cross_compiling" = yes; then :
15030  :
15031else
15032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h.  */
15034#include <ctype.h>
15035#include <stdlib.h>
15036#if ((' ' & 0x0FF) == 0x020)
15037# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15038# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15039#else
15040# define ISLOWER(c) \
15041		   (('a' <= (c) && (c) <= 'i') \
15042		     || ('j' <= (c) && (c) <= 'r') \
15043		     || ('s' <= (c) && (c) <= 'z'))
15044# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15045#endif
15046
15047#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15048int
15049main ()
15050{
15051  int i;
15052  for (i = 0; i < 256; i++)
15053    if (XOR (islower (i), ISLOWER (i))
15054	|| toupper (i) != TOUPPER (i))
15055      return 2;
15056  return 0;
15057}
15058_ACEOF
15059if ac_fn_c_try_run "$LINENO"; then :
15060
15061else
15062  ac_cv_header_stdc=no
15063fi
15064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15065  conftest.$ac_objext conftest.beam conftest.$ac_ext
15066fi
15067
15068fi
15069fi
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15071$as_echo "$ac_cv_header_stdc" >&6; }
15072if test $ac_cv_header_stdc = yes; then
15073
15074$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15075
15076fi
15077
15078    if test "$no_x" = yes; then
15079  # Not all programs may use this symbol, but it does not hurt to define it.
15080
15081$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
15082
15083  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
15084else
15085  if test -n "$x_includes"; then
15086    X_CFLAGS="$X_CFLAGS -I$x_includes"
15087  fi
15088
15089  # It would also be nice to do this for all -L options, not just this one.
15090  if test -n "$x_libraries"; then
15091    X_LIBS="$X_LIBS -L$x_libraries"
15092    # For Solaris; some versions of Sun CC require a space after -R and
15093    # others require no space.  Words are not sufficient . . . .
15094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
15095$as_echo_n "checking whether -R must be followed by a space... " >&6; }
15096    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
15097    ac_xsave_c_werror_flag=$ac_c_werror_flag
15098    ac_c_werror_flag=yes
15099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100/* end confdefs.h.  */
15101
15102int
15103main ()
15104{
15105
15106  ;
15107  return 0;
15108}
15109_ACEOF
15110if ac_fn_c_try_link "$LINENO"; then :
15111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112$as_echo "no" >&6; }
15113       X_LIBS="$X_LIBS -R$x_libraries"
15114else
15115  LIBS="$ac_xsave_LIBS -R $x_libraries"
15116       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117/* end confdefs.h.  */
15118
15119int
15120main ()
15121{
15122
15123  ;
15124  return 0;
15125}
15126_ACEOF
15127if ac_fn_c_try_link "$LINENO"; then :
15128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15129$as_echo "yes" >&6; }
15130	  X_LIBS="$X_LIBS -R $x_libraries"
15131else
15132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
15133$as_echo "neither works" >&6; }
15134fi
15135rm -f core conftest.err conftest.$ac_objext \
15136    conftest$ac_exeext conftest.$ac_ext
15137fi
15138rm -f core conftest.err conftest.$ac_objext \
15139    conftest$ac_exeext conftest.$ac_ext
15140    ac_c_werror_flag=$ac_xsave_c_werror_flag
15141    LIBS=$ac_xsave_LIBS
15142  fi
15143
15144  # Check for system-dependent libraries X programs must link with.
15145  # Do this before checking for the system-independent R6 libraries
15146  # (-lICE), since we may need -lsocket or whatever for X linking.
15147
15148  if test "$ISC" = yes; then
15149    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
15150  else
15151    # Martyn Johnson says this is needed for Ultrix, if the X
15152    # libraries were built with DECnet support.  And Karl Berry says
15153    # the Alpha needs dnet_stub (dnet does not exist).
15154    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
15155    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156/* end confdefs.h.  */
15157
15158/* Override any GCC internal prototype to avoid an error.
15159   Use char because int might match the return type of a GCC
15160   builtin and then its argument prototype would still apply.  */
15161#ifdef __cplusplus
15162extern "C"
15163#endif
15164char XOpenDisplay ();
15165int
15166main ()
15167{
15168return XOpenDisplay ();
15169  ;
15170  return 0;
15171}
15172_ACEOF
15173if ac_fn_c_try_link "$LINENO"; then :
15174
15175else
15176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
15177$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
15178if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
15179  $as_echo_n "(cached) " >&6
15180else
15181  ac_check_lib_save_LIBS=$LIBS
15182LIBS="-ldnet  $LIBS"
15183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184/* end confdefs.h.  */
15185
15186/* Override any GCC internal prototype to avoid an error.
15187   Use char because int might match the return type of a GCC
15188   builtin and then its argument prototype would still apply.  */
15189#ifdef __cplusplus
15190extern "C"
15191#endif
15192char dnet_ntoa ();
15193int
15194main ()
15195{
15196return dnet_ntoa ();
15197  ;
15198  return 0;
15199}
15200_ACEOF
15201if ac_fn_c_try_link "$LINENO"; then :
15202  ac_cv_lib_dnet_dnet_ntoa=yes
15203else
15204  ac_cv_lib_dnet_dnet_ntoa=no
15205fi
15206rm -f core conftest.err conftest.$ac_objext \
15207    conftest$ac_exeext conftest.$ac_ext
15208LIBS=$ac_check_lib_save_LIBS
15209fi
15210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
15211$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
15212if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
15213  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
15214fi
15215
15216    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
15217      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
15218$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
15219if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
15220  $as_echo_n "(cached) " >&6
15221else
15222  ac_check_lib_save_LIBS=$LIBS
15223LIBS="-ldnet_stub  $LIBS"
15224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225/* end confdefs.h.  */
15226
15227/* Override any GCC internal prototype to avoid an error.
15228   Use char because int might match the return type of a GCC
15229   builtin and then its argument prototype would still apply.  */
15230#ifdef __cplusplus
15231extern "C"
15232#endif
15233char dnet_ntoa ();
15234int
15235main ()
15236{
15237return dnet_ntoa ();
15238  ;
15239  return 0;
15240}
15241_ACEOF
15242if ac_fn_c_try_link "$LINENO"; then :
15243  ac_cv_lib_dnet_stub_dnet_ntoa=yes
15244else
15245  ac_cv_lib_dnet_stub_dnet_ntoa=no
15246fi
15247rm -f core conftest.err conftest.$ac_objext \
15248    conftest$ac_exeext conftest.$ac_ext
15249LIBS=$ac_check_lib_save_LIBS
15250fi
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
15252$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
15253if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
15254  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
15255fi
15256
15257    fi
15258fi
15259rm -f core conftest.err conftest.$ac_objext \
15260    conftest$ac_exeext conftest.$ac_ext
15261    LIBS="$ac_xsave_LIBS"
15262
15263    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
15264    # to get the SysV transport functions.
15265    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
15266    # needs -lnsl.
15267    # The nsl library prevents programs from opening the X display
15268    # on Irix 5.2, according to T.E. Dickey.
15269    # The functions gethostbyname, getservbyname, and inet_addr are
15270    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
15271    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15272if test "x$ac_cv_func_gethostbyname" = xyes; then :
15273
15274fi
15275
15276    if test $ac_cv_func_gethostbyname = no; then
15277      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15278$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15279if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15280  $as_echo_n "(cached) " >&6
15281else
15282  ac_check_lib_save_LIBS=$LIBS
15283LIBS="-lnsl  $LIBS"
15284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h.  */
15286
15287/* Override any GCC internal prototype to avoid an error.
15288   Use char because int might match the return type of a GCC
15289   builtin and then its argument prototype would still apply.  */
15290#ifdef __cplusplus
15291extern "C"
15292#endif
15293char gethostbyname ();
15294int
15295main ()
15296{
15297return gethostbyname ();
15298  ;
15299  return 0;
15300}
15301_ACEOF
15302if ac_fn_c_try_link "$LINENO"; then :
15303  ac_cv_lib_nsl_gethostbyname=yes
15304else
15305  ac_cv_lib_nsl_gethostbyname=no
15306fi
15307rm -f core conftest.err conftest.$ac_objext \
15308    conftest$ac_exeext conftest.$ac_ext
15309LIBS=$ac_check_lib_save_LIBS
15310fi
15311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15312$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15313if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15314  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15315fi
15316
15317      if test $ac_cv_lib_nsl_gethostbyname = no; then
15318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
15319$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
15320if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
15321  $as_echo_n "(cached) " >&6
15322else
15323  ac_check_lib_save_LIBS=$LIBS
15324LIBS="-lbsd  $LIBS"
15325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326/* end confdefs.h.  */
15327
15328/* Override any GCC internal prototype to avoid an error.
15329   Use char because int might match the return type of a GCC
15330   builtin and then its argument prototype would still apply.  */
15331#ifdef __cplusplus
15332extern "C"
15333#endif
15334char gethostbyname ();
15335int
15336main ()
15337{
15338return gethostbyname ();
15339  ;
15340  return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_link "$LINENO"; then :
15344  ac_cv_lib_bsd_gethostbyname=yes
15345else
15346  ac_cv_lib_bsd_gethostbyname=no
15347fi
15348rm -f core conftest.err conftest.$ac_objext \
15349    conftest$ac_exeext conftest.$ac_ext
15350LIBS=$ac_check_lib_save_LIBS
15351fi
15352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
15353$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
15354if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
15355  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
15356fi
15357
15358      fi
15359    fi
15360
15361    # lieder@skyler.mavd.honeywell.com says without -lsocket,
15362    # socket/setsockopt and other routines are undefined under SCO ODT
15363    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
15364    # on later versions), says Simon Leinen: it contains gethostby*
15365    # variants that don't use the name server (or something).  -lsocket
15366    # must be given before -lnsl if both are needed.  We assume that
15367    # if connect needs -lnsl, so does gethostbyname.
15368    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15369if test "x$ac_cv_func_connect" = xyes; then :
15370
15371fi
15372
15373    if test $ac_cv_func_connect = no; then
15374      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15375$as_echo_n "checking for connect in -lsocket... " >&6; }
15376if ${ac_cv_lib_socket_connect+:} false; then :
15377  $as_echo_n "(cached) " >&6
15378else
15379  ac_check_lib_save_LIBS=$LIBS
15380LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382/* end confdefs.h.  */
15383
15384/* Override any GCC internal prototype to avoid an error.
15385   Use char because int might match the return type of a GCC
15386   builtin and then its argument prototype would still apply.  */
15387#ifdef __cplusplus
15388extern "C"
15389#endif
15390char connect ();
15391int
15392main ()
15393{
15394return connect ();
15395  ;
15396  return 0;
15397}
15398_ACEOF
15399if ac_fn_c_try_link "$LINENO"; then :
15400  ac_cv_lib_socket_connect=yes
15401else
15402  ac_cv_lib_socket_connect=no
15403fi
15404rm -f core conftest.err conftest.$ac_objext \
15405    conftest$ac_exeext conftest.$ac_ext
15406LIBS=$ac_check_lib_save_LIBS
15407fi
15408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15409$as_echo "$ac_cv_lib_socket_connect" >&6; }
15410if test "x$ac_cv_lib_socket_connect" = xyes; then :
15411  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15412fi
15413
15414    fi
15415
15416    # Guillermo Gomez says -lposix is necessary on A/UX.
15417    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
15418if test "x$ac_cv_func_remove" = xyes; then :
15419
15420fi
15421
15422    if test $ac_cv_func_remove = no; then
15423      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
15424$as_echo_n "checking for remove in -lposix... " >&6; }
15425if ${ac_cv_lib_posix_remove+:} false; then :
15426  $as_echo_n "(cached) " >&6
15427else
15428  ac_check_lib_save_LIBS=$LIBS
15429LIBS="-lposix  $LIBS"
15430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431/* end confdefs.h.  */
15432
15433/* Override any GCC internal prototype to avoid an error.
15434   Use char because int might match the return type of a GCC
15435   builtin and then its argument prototype would still apply.  */
15436#ifdef __cplusplus
15437extern "C"
15438#endif
15439char remove ();
15440int
15441main ()
15442{
15443return remove ();
15444  ;
15445  return 0;
15446}
15447_ACEOF
15448if ac_fn_c_try_link "$LINENO"; then :
15449  ac_cv_lib_posix_remove=yes
15450else
15451  ac_cv_lib_posix_remove=no
15452fi
15453rm -f core conftest.err conftest.$ac_objext \
15454    conftest$ac_exeext conftest.$ac_ext
15455LIBS=$ac_check_lib_save_LIBS
15456fi
15457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
15458$as_echo "$ac_cv_lib_posix_remove" >&6; }
15459if test "x$ac_cv_lib_posix_remove" = xyes; then :
15460  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15461fi
15462
15463    fi
15464
15465    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15466    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
15467if test "x$ac_cv_func_shmat" = xyes; then :
15468
15469fi
15470
15471    if test $ac_cv_func_shmat = no; then
15472      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
15473$as_echo_n "checking for shmat in -lipc... " >&6; }
15474if ${ac_cv_lib_ipc_shmat+:} false; then :
15475  $as_echo_n "(cached) " >&6
15476else
15477  ac_check_lib_save_LIBS=$LIBS
15478LIBS="-lipc  $LIBS"
15479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480/* end confdefs.h.  */
15481
15482/* Override any GCC internal prototype to avoid an error.
15483   Use char because int might match the return type of a GCC
15484   builtin and then its argument prototype would still apply.  */
15485#ifdef __cplusplus
15486extern "C"
15487#endif
15488char shmat ();
15489int
15490main ()
15491{
15492return shmat ();
15493  ;
15494  return 0;
15495}
15496_ACEOF
15497if ac_fn_c_try_link "$LINENO"; then :
15498  ac_cv_lib_ipc_shmat=yes
15499else
15500  ac_cv_lib_ipc_shmat=no
15501fi
15502rm -f core conftest.err conftest.$ac_objext \
15503    conftest$ac_exeext conftest.$ac_ext
15504LIBS=$ac_check_lib_save_LIBS
15505fi
15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
15507$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
15508if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
15509  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15510fi
15511
15512    fi
15513  fi
15514
15515  # Check for libraries that X11R6 Xt/Xaw programs need.
15516  ac_save_LDFLAGS=$LDFLAGS
15517  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15518  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15519  # check for ICE first), but we must link in the order -lSM -lICE or
15520  # we get undefined symbols.  So assume we have SM if we have ICE.
15521  # These have to be linked with before -lX11, unlike the other
15522  # libraries we check for below, so use a different variable.
15523  # John Interrante, Karl Berry
15524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
15525$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
15526if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
15527  $as_echo_n "(cached) " >&6
15528else
15529  ac_check_lib_save_LIBS=$LIBS
15530LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532/* end confdefs.h.  */
15533
15534/* Override any GCC internal prototype to avoid an error.
15535   Use char because int might match the return type of a GCC
15536   builtin and then its argument prototype would still apply.  */
15537#ifdef __cplusplus
15538extern "C"
15539#endif
15540char IceConnectionNumber ();
15541int
15542main ()
15543{
15544return IceConnectionNumber ();
15545  ;
15546  return 0;
15547}
15548_ACEOF
15549if ac_fn_c_try_link "$LINENO"; then :
15550  ac_cv_lib_ICE_IceConnectionNumber=yes
15551else
15552  ac_cv_lib_ICE_IceConnectionNumber=no
15553fi
15554rm -f core conftest.err conftest.$ac_objext \
15555    conftest$ac_exeext conftest.$ac_ext
15556LIBS=$ac_check_lib_save_LIBS
15557fi
15558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
15559$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
15560if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
15561  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15562fi
15563
15564  LDFLAGS=$ac_save_LDFLAGS
15565
15566fi
15567
15568    GTK_ERR=0
15569    GTK_MODULES=""
15570    GTK2_MODULE="gtk+-2.0 "
15571    GTK2_VERSION="2.0.0"
15572
15573    gtk_CFLAGS=`$PKGCFG --cflags $GTK2_MODULE `
15574    gtk_LIBS=`$PKGCFG --libs $GTK2_MODULE `
15575
15576
15577
15578
15579
15580    if `$PKGCFG --exists $GTK2_MODULE >= $GTK2_VERSION `
15581    then
15582	GTK_MODULES="$GTK2_MODULE"
15583	GTK_ERR=1
15584    fi
15585
15586
15587    GNOMEUI2_MODULE="libgnomeui-2.0"
15588    GNOMEUI2_VERSION="2.0.0"
15589
15590
15591    if `$PKGCFG --exists  $GNOMEUI2_MODULE >= $GNOMEUI2_VERSION`
15592    then
15593	GTK_MODULES="$GTK_MODULES $GNOMEUI2_MODULE"
15594	GTK_ERR=1
15595    fi
15596
15597    libgnomeui_CFLAGS=`$PKGCFG --cflags $GNOMEUI2_MODULE `
15598    libgnomeui_LIBS=`$PKGCFG --libs $GNOMEUI2_MODULE `
15599
15600
15601
15602
15603
15604    PIXMAP_DIR=pixmap
15605
15606
15607    if test x$buildgapplet = xtrue ;
15608    then
15609
15610      if test x$GTKCONF = x ;
15611      then
15612  	echo " **************************************** "
15613  	echo " * WARNING, missing program: gtk-config *"
15614  	echo " **************************************** "
15615  	echo ""
15616  	echo "     On Debian based distros, install sth like: libgtk2.0-dev"
15617  	echo ""
15618  	echo "However, I will try my best to continue without gtk-config. "
15619  	echo "Will not be able to check for gtk/gnome header files properly"
15620  	echo "On most platforms this implies no problem"
15621  	echo ""
15622      else
15623        GTK_PREFIX=`$GTKCONF --prefix`
15624        GTK_INC_PATH=$GTK_PREFIX/include/$GNOMEUI2_MODULE/
15625        GNOME_H_FILE=$GTK_INC_PATH/gnome.h
15626
15627        ls -l $GNOME_H_FILE 2>/dev/null >/dev/null
15628
15629        MISSING_GNOME_H=$?
15630
15631        if test x$MISSING_GNOME_H != x0  ;
15632        then
15633  	  echo "Missing GNOME header file (gnome.h), you need to install development packages"
15634	  echo "On a Debian based distro system do:"
15635  	  echo ""
15636  	  echo "     sudo apt-get install libgnome2-dev"
15637  	  echo ""
15638echo  	  exit 1
15639        fi
15640      fi
15641
15642  fi
15643fi
15644
15645
15646
15647if test x$buildgui = xtrue ;
15648then
15649
15650                GUI_DIR=gnee
15651
15652else
15653    GUI_DIR=
15654fi
15655
15656if test x$buildgapplet = xtrue;
15657then
15658
15659
15660                GNOME_APPLET_DIR=pnee
15661else
15662    GNOME_APPLET_DIR=
15663fi
15664
15665if test x$buildcli = xtrue
15666then
15667    CLI_DIR=cnee
15668else
15669    CLI_DIR=
15670fi
15671
15672
15673LIB_DIR=libxnee
15674if test x$buildlib = xtrue ;
15675then
15676    WANTED_LIBXNEE=libxnee.la
15677
15678else
15679    if test x$makestatic = xfalse ;
15680    then
15681	echo "  ********** ERROR **********"
15682	echo " You can't build the programs dynamic "
15683	echo " and not install the libs $makestatic"
15684	echo "  ********** ERROR **********"
15685	exit 1
15686    fi
15687    WANTED_LIBXNEE=libxnee.la
15688
15689fi
15690
15691
15692check_xinput2()
15693{
15694    if test x$use_xi2 = xtrue ;
15695	then
15696	if test x$HAS_XI2 = xfalse ;
15697	    then
15698	    echo "XInput2 not found"
15699	    echo "To compile GNU Xnee you have to:"
15700	    echo "  *  Install XInput2 (development package)"
15701	    echo "or"
15702	    echo "  *  Disable XInput2 support in GNU Xnee:"
15703	    echo "         ./configure --disable-xinput2"
15704	    echo " "
15705	    exit 1
15706	fi
15707   fi
15708}
15709
15710check_xinput2
15711
15712
15713
15714
15715FOO_DIR=foo
15716if test x$doconly = xtrue ;
15717then
15718    buildgui=false
15719    buildlib=false
15720    buildcli=false
15721    builddoc=false
15722    LIB_DIR=
15723    CLI_DIR=
15724    GUI_DIR=
15725    FOO_DIR=bar
15726    DOC_DIR=doc
15727    DOC_MAKEFILES=
15728fi
15729
15730DOC_DIR=doc
15731
15732
15733show_doc_program()
15734{
15735    PROG_VAR_TO_CHECK=$1
15736    PROG_TO_CHECK=$2
15737    MESS=$3
15738    if test "x$PROG_VAR_TO_CHECK" = "x"
15739    then
15740	echo "       ***** $PROG_TO_CHECK missing, $MESS"
15741    else
15742	echo "       $PROG_TO_CHECK  - $PROG_VAR_TO_CHECK"
15743    fi
15744}
15745
15746DOC_NOT_BUILT_WARNING=false
15747MISSING_PROGRAMS=""
15748
15749
15750
15751
15752
15753DOC_TARGETS="info txt"
15754if test x$builddoc = xtrue ;
15755then
15756    # Extract the first word of "dia", so it can be a program name with args.
15757set dummy dia; ac_word=$2
15758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15759$as_echo_n "checking for $ac_word... " >&6; }
15760if ${ac_cv_path_DIA+:} false; then :
15761  $as_echo_n "(cached) " >&6
15762else
15763  case $DIA in
15764  [\\/]* | ?:[\\/]*)
15765  ac_cv_path_DIA="$DIA" # Let the user override the test with a path.
15766  ;;
15767  *)
15768  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15769for as_dir in $PATH
15770do
15771  IFS=$as_save_IFS
15772  test -z "$as_dir" && as_dir=.
15773    for ac_exec_ext in '' $ac_executable_extensions; do
15774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15775    ac_cv_path_DIA="$as_dir/$ac_word$ac_exec_ext"
15776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15777    break 2
15778  fi
15779done
15780  done
15781IFS=$as_save_IFS
15782
15783  ;;
15784esac
15785fi
15786DIA=$ac_cv_path_DIA
15787if test -n "$DIA"; then
15788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIA" >&5
15789$as_echo "$DIA" >&6; }
15790else
15791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792$as_echo "no" >&6; }
15793fi
15794
15795
15796    check_doc_program "$DIA" "dia" "dia"
15797
15798    # Extract the first word of "texi2html", so it can be a program name with args.
15799set dummy texi2html; ac_word=$2
15800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15801$as_echo_n "checking for $ac_word... " >&6; }
15802if ${ac_cv_path_TEXI2HTML+:} false; then :
15803  $as_echo_n "(cached) " >&6
15804else
15805  case $TEXI2HTML in
15806  [\\/]* | ?:[\\/]*)
15807  ac_cv_path_TEXI2HTML="$TEXI2HTML" # Let the user override the test with a path.
15808  ;;
15809  *)
15810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15811for as_dir in $PATH
15812do
15813  IFS=$as_save_IFS
15814  test -z "$as_dir" && as_dir=.
15815    for ac_exec_ext in '' $ac_executable_extensions; do
15816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15817    ac_cv_path_TEXI2HTML="$as_dir/$ac_word$ac_exec_ext"
15818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15819    break 2
15820  fi
15821done
15822  done
15823IFS=$as_save_IFS
15824
15825  ;;
15826esac
15827fi
15828TEXI2HTML=$ac_cv_path_TEXI2HTML
15829if test -n "$TEXI2HTML"; then
15830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5
15831$as_echo "$TEXI2HTML" >&6; }
15832else
15833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834$as_echo "no" >&6; }
15835fi
15836
15837
15838    check_doc_program "$TEXI2HTML" "texi2html" "texi2html"
15839
15840#	AC_PATH_PROG(DVI2PS,dvi2ps,,)
15841#	check_doc_program "$DVI2PS" "dvi2ps" "dvi2ps"
15842
15843    # Extract the first word of "dvipdf", so it can be a program name with args.
15844set dummy dvipdf; ac_word=$2
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15846$as_echo_n "checking for $ac_word... " >&6; }
15847if ${ac_cv_path_DVIPDF+:} false; then :
15848  $as_echo_n "(cached) " >&6
15849else
15850  case $DVIPDF in
15851  [\\/]* | ?:[\\/]*)
15852  ac_cv_path_DVIPDF="$DVIPDF" # Let the user override the test with a path.
15853  ;;
15854  *)
15855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15856for as_dir in $PATH
15857do
15858  IFS=$as_save_IFS
15859  test -z "$as_dir" && as_dir=.
15860    for ac_exec_ext in '' $ac_executable_extensions; do
15861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15862    ac_cv_path_DVIPDF="$as_dir/$ac_word$ac_exec_ext"
15863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15864    break 2
15865  fi
15866done
15867  done
15868IFS=$as_save_IFS
15869
15870  ;;
15871esac
15872fi
15873DVIPDF=$ac_cv_path_DVIPDF
15874if test -n "$DVIPDF"; then
15875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPDF" >&5
15876$as_echo "$DVIPDF" >&6; }
15877else
15878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879$as_echo "no" >&6; }
15880fi
15881
15882
15883    check_doc_program "$DVIPDF" "dvipdf" "dvipdf"
15884
15885    # Extract the first word of "pdf2ps", so it can be a program name with args.
15886set dummy pdf2ps; ac_word=$2
15887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15888$as_echo_n "checking for $ac_word... " >&6; }
15889if ${ac_cv_path_PDF2PS+:} false; then :
15890  $as_echo_n "(cached) " >&6
15891else
15892  case $PDF2PS in
15893  [\\/]* | ?:[\\/]*)
15894  ac_cv_path_PDF2PS="$PDF2PS" # Let the user override the test with a path.
15895  ;;
15896  *)
15897  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15898for as_dir in $PATH
15899do
15900  IFS=$as_save_IFS
15901  test -z "$as_dir" && as_dir=.
15902    for ac_exec_ext in '' $ac_executable_extensions; do
15903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15904    ac_cv_path_PDF2PS="$as_dir/$ac_word$ac_exec_ext"
15905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15906    break 2
15907  fi
15908done
15909  done
15910IFS=$as_save_IFS
15911
15912  ;;
15913esac
15914fi
15915PDF2PS=$ac_cv_path_PDF2PS
15916if test -n "$PDF2PS"; then
15917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDF2PS" >&5
15918$as_echo "$PDF2PS" >&6; }
15919else
15920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15921$as_echo "no" >&6; }
15922fi
15923
15924
15925    check_doc_program "$PDF2PS" "pdf2ps" ""
15926
15927    # Extract the first word of "ps2pdf", so it can be a program name with args.
15928set dummy ps2pdf; ac_word=$2
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15930$as_echo_n "checking for $ac_word... " >&6; }
15931if ${ac_cv_path_PS2PDF+:} false; then :
15932  $as_echo_n "(cached) " >&6
15933else
15934  case $PS2PDF in
15935  [\\/]* | ?:[\\/]*)
15936  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
15937  ;;
15938  *)
15939  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15940for as_dir in $PATH
15941do
15942  IFS=$as_save_IFS
15943  test -z "$as_dir" && as_dir=.
15944    for ac_exec_ext in '' $ac_executable_extensions; do
15945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15946    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
15947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15948    break 2
15949  fi
15950done
15951  done
15952IFS=$as_save_IFS
15953
15954  test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="ps2pdf14"
15955  ;;
15956esac
15957fi
15958PS2PDF=$ac_cv_path_PS2PDF
15959if test -n "$PS2PDF"; then
15960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
15961$as_echo "$PS2PDF" >&6; }
15962else
15963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15964$as_echo "no" >&6; }
15965fi
15966
15967
15968    check_doc_program "$PS2PDF" "ps2pdf" "gs-common"
15969
15970    # Extract the first word of "texi2pdf", so it can be a program name with args.
15971set dummy texi2pdf; ac_word=$2
15972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15973$as_echo_n "checking for $ac_word... " >&6; }
15974if ${ac_cv_path_TEXI2PDF+:} false; then :
15975  $as_echo_n "(cached) " >&6
15976else
15977  case $TEXI2PDF in
15978  [\\/]* | ?:[\\/]*)
15979  ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
15980  ;;
15981  *)
15982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15983for as_dir in $PATH
15984do
15985  IFS=$as_save_IFS
15986  test -z "$as_dir" && as_dir=.
15987    for ac_exec_ext in '' $ac_executable_extensions; do
15988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15989    ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
15990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15991    break 2
15992  fi
15993done
15994  done
15995IFS=$as_save_IFS
15996
15997  ;;
15998esac
15999fi
16000TEXI2PDF=$ac_cv_path_TEXI2PDF
16001if test -n "$TEXI2PDF"; then
16002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
16003$as_echo "$TEXI2PDF" >&6; }
16004else
16005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16006$as_echo "no" >&6; }
16007fi
16008
16009
16010    check_doc_program "$TEXI2PDF" "texi2pdf" ""
16011
16012    # Extract the first word of "epstopdf", so it can be a program name with args.
16013set dummy epstopdf; ac_word=$2
16014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16015$as_echo_n "checking for $ac_word... " >&6; }
16016if ${ac_cv_path_EPSTOPDF+:} false; then :
16017  $as_echo_n "(cached) " >&6
16018else
16019  case $EPSTOPDF in
16020  [\\/]* | ?:[\\/]*)
16021  ac_cv_path_EPSTOPDF="$EPSTOPDF" # Let the user override the test with a path.
16022  ;;
16023  *)
16024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025for as_dir in $PATH
16026do
16027  IFS=$as_save_IFS
16028  test -z "$as_dir" && as_dir=.
16029    for ac_exec_ext in '' $ac_executable_extensions; do
16030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16031    ac_cv_path_EPSTOPDF="$as_dir/$ac_word$ac_exec_ext"
16032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16033    break 2
16034  fi
16035done
16036  done
16037IFS=$as_save_IFS
16038
16039  ;;
16040esac
16041fi
16042EPSTOPDF=$ac_cv_path_EPSTOPDF
16043if test -n "$EPSTOPDF"; then
16044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EPSTOPDF" >&5
16045$as_echo "$EPSTOPDF" >&6; }
16046else
16047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048$as_echo "no" >&6; }
16049fi
16050
16051
16052    check_doc_program "$EPSTOPDF" "epstopdf" "texlive-extra-utils texlive-font-utils"
16053
16054#	AC_PATH_PROG(DOXYGEN,doxygen,,)
16055#	check_doc_program "$DOXYGEN" "doxygen"  "doxygen"
16056
16057    check_doc_program "$MAKEINFO" "makeinfo" " texinfo"
16058
16059
16060    if test x$DOC_NOT_BUILT_WARNING = xtrue ;
16061    then
16062	echo " "
16063	echo "  ********** ERROR **********"
16064	echo "  ** Documents can't be built ** "
16065	echo "  ** "
16066	echo "  ** The following programs are missing:"
16067	for i in $MISSING_PROGRAMS
16068	do
16069	    echo "  **    $i "
16070	done
16071	echo "  ** "
16072	help_on_missing_progrs documentation "--disable-doc"
16073	echo "  ** "
16074	echo "  ********** ERROR **********"
16075	DOC_DIR=""
16076	DOC_TARGETS=""
16077	builddoc=false
16078	doconly=false
16079	CNEE_INFO=""
16080	echo "...  configuration failed"
16081	exit 1
16082    else
16083	DOC_TARGETS="images html info txt pdf ps"
16084	CNEE_INFO="cnee.info"
16085    fi
16086else
16087
16088    if test x$buildman = xtrue;
16089    then
16090	check_doc_program "$MAKEINFO" "makeinfo" "texi2html texinfo "
16091
16092        if test x$DOC_NOT_BUILT_WARNING = xtrue ;
16093        then
16094	 echo " "
16095	 echo "  ********** ERROR **********"
16096	 echo "  ** Man page(s) and images can't be built ** "
16097	 echo "  ** "
16098	 echo "  ** The following programs are missing:"
16099	 for i in $MISSING_PROGRAMS
16100	 do
16101	    echo "  **    $i "
16102	 done
16103	 echo "  ** "
16104	 help_on_missing_progrs documentation "--disable-doc"
16105         echo "  ** "
16106	 echo "  ********** ERROR **********"
16107	 DOC_DIR=""
16108	 DOC_TARGETS=""
16109	 builddoc=false
16110	 doconly=false
16111	 CNEE_INFO=""
16112	 echo "...  configuration failed"
16113	 exit 1
16114        else
16115	 DOC_TARGETS="info"
16116	 CNEE_INFO="cnee.info"
16117        fi
16118    fi
16119fi
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134MAKEFILES_TO_GEN=""
16135MAKEFILES_TO_GEN="$MAKEFILES_TO_GEN Makefile examples/Makefile sessions/Makefile share/Makefile"
16136
16137EXCLUDED_COMPONENTS=""
16138INCLUDED_COMPONENTS=""
16139add_excl()
16140{
16141    EXCLUDED_COMPONENTS="${EXCLUDED_COMPONENTS}\n        $1"
16142}
16143
16144add_incl()
16145{
16146    INCLUDED_COMPONENTS="${INCLUDED_COMPONENTS}\n        $1"
16147}
16148
16149if test x$doconly = xtrue || test x$builddoc = xtrue  ;
16150then
16151    MAKEFILES_TO_GEN="$MAKEFILES_TO_GEN doc/Makefile"
16152    add_incl "doc"
16153else
16154    add_excl "doc (docs are already included in dist file)"
16155fi
16156
16157if test x$buildlib = xtrue ;
16158then
16159        MAKEFILES_TO_GEN="$MAKEFILES_TO_GEN libxnee/Makefile libxnee/src/Makefile "
16160
16161fi
16162
16163if test x$buildgui = xtrue || test x$buildgapplet = xtrue  ;
16164then
16165    if test x$GTK_ERR != x0  ;
16166    then
16167	echo "  ********** ERROR **********"
16168	echo "  ** pnee and/or gnee can't be built ** "
16169	echo "  ** "
16170	echo "  ** The following program/package is missing:"
16171	echo "  **   $GTK_MODULES "
16172	echo "  ** "
16173	DEBS_TO_INSTALL="$GTK_MODULES"
16174	help_on_missing_progrs "pnee and gnee" "--diable-gui --disable-gnome-applet"
16175	echo "  ** "
16176	echo "  ********** ERROR **********"
16177	exit 1
16178    fi
16179
16180
16181
16182fi
16183
16184if test x$buildcli = xtrue ;
16185then
16186    MAKEFILES_TO_GEN="$MAKEFILES_TO_GEN cnee/Makefile cnee/src/Makefile"
16187    add_incl "cli"
16188else
16189    add_excl "cli"
16190fi
16191
16192if test x$buildgui = xtrue ;
16193then
16194    MAKEFILES_TO_GEN="$MAKEFILES_TO_GEN gnee/Makefile gnee/src/Makefile"
16195    add_incl "gnee"
16196else
16197    add_excl "gnee"
16198fi
16199
16200
16201if test x$buildgapplet = xtrue ;
16202then
16203#	AM_GCONF_SOURCE_2
16204    PANEL_APPLET_DIR="${prefix}/libexec"
16205    PANEL_SERVER_DIR="${prefix}/libdata/bonobo/servers"
16206
16207
16208#    AC_PATH_PROG(GCONFTOOL, gconftool-2)
16209    PANEL_APPLET=libpanelapplet-4.0
16210    PANEL_FLAGS=`$PKGCFG --cflags $PANEL_APPLET`
16211    PANEL_LD_FLAGS=`$PKGCFG  --libs $PANEL_APPLET`
16212    $PKGCFG $PANEL_APPLET
16213    if test x$? != x0 ;
16214    then
16215	echo "  ********** ERROR **********"
16216	echo "  ** pnee can't be built ** "
16217	echo "  ** "
16218	echo "  ** The following programs/packages are missing:"
16219	echo "  **    $PANEL_APPLET"
16220	echo "  ** "
16221	DEBS_TO_INSTALL=" libpanel-applet-4-dev"
16222	help_on_missing_progrs pnee "--disable-gnome-applet"
16223	echo "  ** "
16224	echo "  ********** ERROR **********"
16225echo	exit 1
16226    fi
16227
16228
16229#        AC_OUTPUT([ pnee/Makefile pnee/src/Makefile  pnee/pixmaps/Makefile ])
16230    MAKEFILES_TO_GEN="$MAKEFILES_TO_GEN pnee/Makefile pnee/data/Makefile pnee/src/Makefile pnee/pixmaps/Makefile"
16231    add_incl "pnee"
16232else
16233    add_excl "pnee"
16234fi
16235
16236
16237
16238
16239echo "Making the following Makefiles:"
16240echo "  $MAKEFILES_TO_GEN"
16241#AC_OUTPUT([ $MAKEFILES_TO_GEN ])
16242ac_config_files="$ac_config_files Makefile libxnee/Makefile libxnee/src/Makefile examples/Makefile libxnee/test/Makefile sessions/Makefile share/Makefile doc/Makefile cnee/Makefile cnee/src/Makefile gnee/Makefile gnee/src/Makefile gnee/man/Makefile pnee/Makefile pnee/src/Makefile pnee/pics/Makefile pnee/man/Makefile pnee/data/Makefile pixmap/Makefile man/Makefile"
16243
16244cat >confcache <<\_ACEOF
16245# This file is a shell script that caches the results of configure
16246# tests run on this system so they can be shared between configure
16247# scripts and configure runs, see configure's option --config-cache.
16248# It is not useful on other systems.  If it contains results you don't
16249# want to keep, you may remove or edit it.
16250#
16251# config.status only pays attention to the cache file if you give it
16252# the --recheck option to rerun configure.
16253#
16254# `ac_cv_env_foo' variables (set or unset) will be overridden when
16255# loading this file, other *unset* `ac_cv_foo' will be assigned the
16256# following values.
16257
16258_ACEOF
16259
16260# The following way of writing the cache mishandles newlines in values,
16261# but we know of no workaround that is simple, portable, and efficient.
16262# So, we kill variables containing newlines.
16263# Ultrix sh set writes to stderr and can't be redirected directly,
16264# and sets the high bit in the cache file unless we assign to the vars.
16265(
16266  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16267    eval ac_val=\$$ac_var
16268    case $ac_val in #(
16269    *${as_nl}*)
16270      case $ac_var in #(
16271      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16272$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16273      esac
16274      case $ac_var in #(
16275      _ | IFS | as_nl) ;; #(
16276      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16277      *) { eval $ac_var=; unset $ac_var;} ;;
16278      esac ;;
16279    esac
16280  done
16281
16282  (set) 2>&1 |
16283    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16284    *${as_nl}ac_space=\ *)
16285      # `set' does not quote correctly, so add quotes: double-quote
16286      # substitution turns \\\\ into \\, and sed turns \\ into \.
16287      sed -n \
16288	"s/'/'\\\\''/g;
16289	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16290      ;; #(
16291    *)
16292      # `set' quotes correctly as required by POSIX, so do not add quotes.
16293      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16294      ;;
16295    esac |
16296    sort
16297) |
16298  sed '
16299     /^ac_cv_env_/b end
16300     t clear
16301     :clear
16302     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16303     t end
16304     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16305     :end' >>confcache
16306if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16307  if test -w "$cache_file"; then
16308    if test "x$cache_file" != "x/dev/null"; then
16309      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16310$as_echo "$as_me: updating cache $cache_file" >&6;}
16311      if test ! -f "$cache_file" || test -h "$cache_file"; then
16312	cat confcache >"$cache_file"
16313      else
16314        case $cache_file in #(
16315        */* | ?:*)
16316	  mv -f confcache "$cache_file"$$ &&
16317	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16318        *)
16319	  mv -f confcache "$cache_file" ;;
16320	esac
16321      fi
16322    fi
16323  else
16324    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16325$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16326  fi
16327fi
16328rm -f confcache
16329
16330test "x$prefix" = xNONE && prefix=$ac_default_prefix
16331# Let make expand exec_prefix.
16332test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16333
16334DEFS=-DHAVE_CONFIG_H
16335
16336ac_libobjs=
16337ac_ltlibobjs=
16338for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16339  # 1. Remove the extension, and $U if already installed.
16340  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16341  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16342  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16343  #    will be set to the directory where LIBOBJS objects are built.
16344  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16345  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16346done
16347LIBOBJS=$ac_libobjs
16348
16349LTLIBOBJS=$ac_ltlibobjs
16350
16351
16352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16353$as_echo_n "checking that generated files are newer than configure... " >&6; }
16354   if test -n "$am_sleep_pid"; then
16355     # Hide warnings about reused PIDs.
16356     wait $am_sleep_pid 2>/dev/null
16357   fi
16358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16359$as_echo "done" >&6; }
16360 if test -n "$EXEEXT"; then
16361  am__EXEEXT_TRUE=
16362  am__EXEEXT_FALSE='#'
16363else
16364  am__EXEEXT_TRUE='#'
16365  am__EXEEXT_FALSE=
16366fi
16367
16368if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16369  as_fn_error $? "conditional \"AMDEP\" was never defined.
16370Usually this means the macro was only invoked conditionally." "$LINENO" 5
16371fi
16372if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16373  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16374Usually this means the macro was only invoked conditionally." "$LINENO" 5
16375fi
16376if test -z "${BUILDGUI_TRUE}" && test -z "${BUILDGUI_FALSE}"; then
16377  as_fn_error $? "conditional \"BUILDGUI\" was never defined.
16378Usually this means the macro was only invoked conditionally." "$LINENO" 5
16379fi
16380if test -z "${BUILDPNEE_TRUE}" && test -z "${BUILDPNEE_FALSE}"; then
16381  as_fn_error $? "conditional \"BUILDPNEE\" was never defined.
16382Usually this means the macro was only invoked conditionally." "$LINENO" 5
16383fi
16384if test -z "${BUILDDOC_TRUE}" && test -z "${BUILDDOC_FALSE}"; then
16385  as_fn_error $? "conditional \"BUILDDOC\" was never defined.
16386Usually this means the macro was only invoked conditionally." "$LINENO" 5
16387fi
16388if test -z "${BUILDMAN_TRUE}" && test -z "${BUILDMAN_FALSE}"; then
16389  as_fn_error $? "conditional \"BUILDMAN\" was never defined.
16390Usually this means the macro was only invoked conditionally." "$LINENO" 5
16391fi
16392if test -z "${VERBOSE_TRUE}" && test -z "${VERBOSE_FALSE}"; then
16393  as_fn_error $? "conditional \"VERBOSE\" was never defined.
16394Usually this means the macro was only invoked conditionally." "$LINENO" 5
16395fi
16396if test -z "${GCOV_TRUE}" && test -z "${GCOV_FALSE}"; then
16397  as_fn_error $? "conditional \"GCOV\" was never defined.
16398Usually this means the macro was only invoked conditionally." "$LINENO" 5
16399fi
16400if test -z "${GPROF_TRUE}" && test -z "${GPROF_FALSE}"; then
16401  as_fn_error $? "conditional \"GPROF\" was never defined.
16402Usually this means the macro was only invoked conditionally." "$LINENO" 5
16403fi
16404if test -z "${PEDANTIC_TRUE}" && test -z "${PEDANTIC_FALSE}"; then
16405  as_fn_error $? "conditional \"PEDANTIC\" was never defined.
16406Usually this means the macro was only invoked conditionally." "$LINENO" 5
16407fi
16408if test -z "${BUF_VERBOSE_TRUE}" && test -z "${BUF_VERBOSE_FALSE}"; then
16409  as_fn_error $? "conditional \"BUF_VERBOSE\" was never defined.
16410Usually this means the macro was only invoked conditionally." "$LINENO" 5
16411fi
16412if test -z "${XOSD_TRUE}" && test -z "${XOSD_FALSE}"; then
16413  as_fn_error $? "conditional \"XOSD\" was never defined.
16414Usually this means the macro was only invoked conditionally." "$LINENO" 5
16415fi
16416if test -z "${DOCONLY_TRUE}" && test -z "${DOCONLY_FALSE}"; then
16417  as_fn_error $? "conditional \"DOCONLY\" was never defined.
16418Usually this means the macro was only invoked conditionally." "$LINENO" 5
16419fi
16420if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
16421  as_fn_error $? "conditional \"BUILD_STATIC\" was never defined.
16422Usually this means the macro was only invoked conditionally." "$LINENO" 5
16423fi
16424if test -z "${NOT_INSTALL_LIBS_TRUE}" && test -z "${NOT_INSTALL_LIBS_FALSE}"; then
16425  as_fn_error $? "conditional \"NOT_INSTALL_LIBS\" was never defined.
16426Usually this means the macro was only invoked conditionally." "$LINENO" 5
16427fi
16428if test -z "${XNEE_XINPUT_SUPPORT_TRUE}" && test -z "${XNEE_XINPUT_SUPPORT_FALSE}"; then
16429  as_fn_error $? "conditional \"XNEE_XINPUT_SUPPORT\" was never defined.
16430Usually this means the macro was only invoked conditionally." "$LINENO" 5
16431fi
16432if test -z "${XNEE_XINPUT_SUPPORT_TRUE}" && test -z "${XNEE_XINPUT_SUPPORT_FALSE}"; then
16433  as_fn_error $? "conditional \"XNEE_XINPUT_SUPPORT\" was never defined.
16434Usually this means the macro was only invoked conditionally." "$LINENO" 5
16435fi
16436if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16437  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16438Usually this means the macro was only invoked conditionally." "$LINENO" 5
16439fi
16440if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16441  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16442Usually this means the macro was only invoked conditionally." "$LINENO" 5
16443fi
16444if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16445  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16446Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447fi
16448
16449: "${CONFIG_STATUS=./config.status}"
16450ac_write_fail=0
16451ac_clean_files_save=$ac_clean_files
16452ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16453{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16454$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16455as_write_fail=0
16456cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16457#! $SHELL
16458# Generated by $as_me.
16459# Run this file to recreate the current configuration.
16460# Compiler output produced by configure, useful for debugging
16461# configure, is in config.log if it exists.
16462
16463debug=false
16464ac_cs_recheck=false
16465ac_cs_silent=false
16466
16467SHELL=\${CONFIG_SHELL-$SHELL}
16468export SHELL
16469_ASEOF
16470cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16471## -------------------- ##
16472## M4sh Initialization. ##
16473## -------------------- ##
16474
16475# Be more Bourne compatible
16476DUALCASE=1; export DUALCASE # for MKS sh
16477if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16478  emulate sh
16479  NULLCMD=:
16480  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16481  # is contrary to our usage.  Disable this feature.
16482  alias -g '${1+"$@"}'='"$@"'
16483  setopt NO_GLOB_SUBST
16484else
16485  case `(set -o) 2>/dev/null` in #(
16486  *posix*) :
16487    set -o posix ;; #(
16488  *) :
16489     ;;
16490esac
16491fi
16492
16493
16494as_nl='
16495'
16496export as_nl
16497# Printing a long string crashes Solaris 7 /usr/bin/printf.
16498as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16499as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16500as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16501# Prefer a ksh shell builtin over an external printf program on Solaris,
16502# but without wasting forks for bash or zsh.
16503if test -z "$BASH_VERSION$ZSH_VERSION" \
16504    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16505  as_echo='print -r --'
16506  as_echo_n='print -rn --'
16507elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16508  as_echo='printf %s\n'
16509  as_echo_n='printf %s'
16510else
16511  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16512    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16513    as_echo_n='/usr/ucb/echo -n'
16514  else
16515    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16516    as_echo_n_body='eval
16517      arg=$1;
16518      case $arg in #(
16519      *"$as_nl"*)
16520	expr "X$arg" : "X\\(.*\\)$as_nl";
16521	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16522      esac;
16523      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16524    '
16525    export as_echo_n_body
16526    as_echo_n='sh -c $as_echo_n_body as_echo'
16527  fi
16528  export as_echo_body
16529  as_echo='sh -c $as_echo_body as_echo'
16530fi
16531
16532# The user is always right.
16533if test "${PATH_SEPARATOR+set}" != set; then
16534  PATH_SEPARATOR=:
16535  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16536    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16537      PATH_SEPARATOR=';'
16538  }
16539fi
16540
16541
16542# IFS
16543# We need space, tab and new line, in precisely that order.  Quoting is
16544# there to prevent editors from complaining about space-tab.
16545# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16546# splitting by setting IFS to empty value.)
16547IFS=" ""	$as_nl"
16548
16549# Find who we are.  Look in the path if we contain no directory separator.
16550as_myself=
16551case $0 in #((
16552  *[\\/]* ) as_myself=$0 ;;
16553  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16554for as_dir in $PATH
16555do
16556  IFS=$as_save_IFS
16557  test -z "$as_dir" && as_dir=.
16558    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16559  done
16560IFS=$as_save_IFS
16561
16562     ;;
16563esac
16564# We did not find ourselves, most probably we were run as `sh COMMAND'
16565# in which case we are not to be found in the path.
16566if test "x$as_myself" = x; then
16567  as_myself=$0
16568fi
16569if test ! -f "$as_myself"; then
16570  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16571  exit 1
16572fi
16573
16574# Unset variables that we do not need and which cause bugs (e.g. in
16575# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16576# suppresses any "Segmentation fault" message there.  '((' could
16577# trigger a bug in pdksh 5.2.14.
16578for as_var in BASH_ENV ENV MAIL MAILPATH
16579do eval test x\${$as_var+set} = xset \
16580  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16581done
16582PS1='$ '
16583PS2='> '
16584PS4='+ '
16585
16586# NLS nuisances.
16587LC_ALL=C
16588export LC_ALL
16589LANGUAGE=C
16590export LANGUAGE
16591
16592# CDPATH.
16593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16594
16595
16596# as_fn_error STATUS ERROR [LINENO LOG_FD]
16597# ----------------------------------------
16598# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16599# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16600# script with STATUS, using 1 if that was 0.
16601as_fn_error ()
16602{
16603  as_status=$1; test $as_status -eq 0 && as_status=1
16604  if test "$4"; then
16605    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16606    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16607  fi
16608  $as_echo "$as_me: error: $2" >&2
16609  as_fn_exit $as_status
16610} # as_fn_error
16611
16612
16613# as_fn_set_status STATUS
16614# -----------------------
16615# Set $? to STATUS, without forking.
16616as_fn_set_status ()
16617{
16618  return $1
16619} # as_fn_set_status
16620
16621# as_fn_exit STATUS
16622# -----------------
16623# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16624as_fn_exit ()
16625{
16626  set +e
16627  as_fn_set_status $1
16628  exit $1
16629} # as_fn_exit
16630
16631# as_fn_unset VAR
16632# ---------------
16633# Portably unset VAR.
16634as_fn_unset ()
16635{
16636  { eval $1=; unset $1;}
16637}
16638as_unset=as_fn_unset
16639# as_fn_append VAR VALUE
16640# ----------------------
16641# Append the text in VALUE to the end of the definition contained in VAR. Take
16642# advantage of any shell optimizations that allow amortized linear growth over
16643# repeated appends, instead of the typical quadratic growth present in naive
16644# implementations.
16645if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16646  eval 'as_fn_append ()
16647  {
16648    eval $1+=\$2
16649  }'
16650else
16651  as_fn_append ()
16652  {
16653    eval $1=\$$1\$2
16654  }
16655fi # as_fn_append
16656
16657# as_fn_arith ARG...
16658# ------------------
16659# Perform arithmetic evaluation on the ARGs, and store the result in the
16660# global $as_val. Take advantage of shells that can avoid forks. The arguments
16661# must be portable across $(()) and expr.
16662if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16663  eval 'as_fn_arith ()
16664  {
16665    as_val=$(( $* ))
16666  }'
16667else
16668  as_fn_arith ()
16669  {
16670    as_val=`expr "$@" || test $? -eq 1`
16671  }
16672fi # as_fn_arith
16673
16674
16675if expr a : '\(a\)' >/dev/null 2>&1 &&
16676   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16677  as_expr=expr
16678else
16679  as_expr=false
16680fi
16681
16682if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16683  as_basename=basename
16684else
16685  as_basename=false
16686fi
16687
16688if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16689  as_dirname=dirname
16690else
16691  as_dirname=false
16692fi
16693
16694as_me=`$as_basename -- "$0" ||
16695$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16696	 X"$0" : 'X\(//\)$' \| \
16697	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16698$as_echo X/"$0" |
16699    sed '/^.*\/\([^/][^/]*\)\/*$/{
16700	    s//\1/
16701	    q
16702	  }
16703	  /^X\/\(\/\/\)$/{
16704	    s//\1/
16705	    q
16706	  }
16707	  /^X\/\(\/\).*/{
16708	    s//\1/
16709	    q
16710	  }
16711	  s/.*/./; q'`
16712
16713# Avoid depending upon Character Ranges.
16714as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16715as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16716as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16717as_cr_digits='0123456789'
16718as_cr_alnum=$as_cr_Letters$as_cr_digits
16719
16720ECHO_C= ECHO_N= ECHO_T=
16721case `echo -n x` in #(((((
16722-n*)
16723  case `echo 'xy\c'` in
16724  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16725  xy)  ECHO_C='\c';;
16726  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16727       ECHO_T='	';;
16728  esac;;
16729*)
16730  ECHO_N='-n';;
16731esac
16732
16733rm -f conf$$ conf$$.exe conf$$.file
16734if test -d conf$$.dir; then
16735  rm -f conf$$.dir/conf$$.file
16736else
16737  rm -f conf$$.dir
16738  mkdir conf$$.dir 2>/dev/null
16739fi
16740if (echo >conf$$.file) 2>/dev/null; then
16741  if ln -s conf$$.file conf$$ 2>/dev/null; then
16742    as_ln_s='ln -s'
16743    # ... but there are two gotchas:
16744    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16745    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16746    # In both cases, we have to default to `cp -pR'.
16747    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16748      as_ln_s='cp -pR'
16749  elif ln conf$$.file conf$$ 2>/dev/null; then
16750    as_ln_s=ln
16751  else
16752    as_ln_s='cp -pR'
16753  fi
16754else
16755  as_ln_s='cp -pR'
16756fi
16757rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16758rmdir conf$$.dir 2>/dev/null
16759
16760
16761# as_fn_mkdir_p
16762# -------------
16763# Create "$as_dir" as a directory, including parents if necessary.
16764as_fn_mkdir_p ()
16765{
16766
16767  case $as_dir in #(
16768  -*) as_dir=./$as_dir;;
16769  esac
16770  test -d "$as_dir" || eval $as_mkdir_p || {
16771    as_dirs=
16772    while :; do
16773      case $as_dir in #(
16774      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16775      *) as_qdir=$as_dir;;
16776      esac
16777      as_dirs="'$as_qdir' $as_dirs"
16778      as_dir=`$as_dirname -- "$as_dir" ||
16779$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16780	 X"$as_dir" : 'X\(//\)[^/]' \| \
16781	 X"$as_dir" : 'X\(//\)$' \| \
16782	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16783$as_echo X"$as_dir" |
16784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16785	    s//\1/
16786	    q
16787	  }
16788	  /^X\(\/\/\)[^/].*/{
16789	    s//\1/
16790	    q
16791	  }
16792	  /^X\(\/\/\)$/{
16793	    s//\1/
16794	    q
16795	  }
16796	  /^X\(\/\).*/{
16797	    s//\1/
16798	    q
16799	  }
16800	  s/.*/./; q'`
16801      test -d "$as_dir" && break
16802    done
16803    test -z "$as_dirs" || eval "mkdir $as_dirs"
16804  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16805
16806
16807} # as_fn_mkdir_p
16808if mkdir -p . 2>/dev/null; then
16809  as_mkdir_p='mkdir -p "$as_dir"'
16810else
16811  test -d ./-p && rmdir ./-p
16812  as_mkdir_p=false
16813fi
16814
16815
16816# as_fn_executable_p FILE
16817# -----------------------
16818# Test if FILE is an executable regular file.
16819as_fn_executable_p ()
16820{
16821  test -f "$1" && test -x "$1"
16822} # as_fn_executable_p
16823as_test_x='test -x'
16824as_executable_p=as_fn_executable_p
16825
16826# Sed expression to map a string onto a valid CPP name.
16827as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16828
16829# Sed expression to map a string onto a valid variable name.
16830as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16831
16832
16833exec 6>&1
16834## ----------------------------------- ##
16835## Main body of $CONFIG_STATUS script. ##
16836## ----------------------------------- ##
16837_ASEOF
16838test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16839
16840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16841# Save the log message, to keep $0 and so on meaningful, and to
16842# report actual input values of CONFIG_FILES etc. instead of their
16843# values after options handling.
16844ac_log="
16845This file was extended by Xnee $as_me 3.19, which was
16846generated by GNU Autoconf 2.69.  Invocation command line was
16847
16848  CONFIG_FILES    = $CONFIG_FILES
16849  CONFIG_HEADERS  = $CONFIG_HEADERS
16850  CONFIG_LINKS    = $CONFIG_LINKS
16851  CONFIG_COMMANDS = $CONFIG_COMMANDS
16852  $ $0 $@
16853
16854on `(hostname || uname -n) 2>/dev/null | sed 1q`
16855"
16856
16857_ACEOF
16858
16859case $ac_config_files in *"
16860"*) set x $ac_config_files; shift; ac_config_files=$*;;
16861esac
16862
16863case $ac_config_headers in *"
16864"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16865esac
16866
16867
16868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16869# Files that config.status was made for.
16870config_files="$ac_config_files"
16871config_headers="$ac_config_headers"
16872config_commands="$ac_config_commands"
16873
16874_ACEOF
16875
16876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16877ac_cs_usage="\
16878\`$as_me' instantiates files and other configuration actions
16879from templates according to the current configuration.  Unless the files
16880and actions are specified as TAGs, all are instantiated by default.
16881
16882Usage: $0 [OPTION]... [TAG]...
16883
16884  -h, --help       print this help, then exit
16885  -V, --version    print version number and configuration settings, then exit
16886      --config     print configuration, then exit
16887  -q, --quiet, --silent
16888                   do not print progress messages
16889  -d, --debug      don't remove temporary files
16890      --recheck    update $as_me by reconfiguring in the same conditions
16891      --file=FILE[:TEMPLATE]
16892                   instantiate the configuration file FILE
16893      --header=FILE[:TEMPLATE]
16894                   instantiate the configuration header FILE
16895
16896Configuration files:
16897$config_files
16898
16899Configuration headers:
16900$config_headers
16901
16902Configuration commands:
16903$config_commands
16904
16905Report bugs to <bug-xnee@gnu.org>."
16906
16907_ACEOF
16908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16909ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16910ac_cs_version="\\
16911Xnee config.status 3.19
16912configured by $0, generated by GNU Autoconf 2.69,
16913  with options \\"\$ac_cs_config\\"
16914
16915Copyright (C) 2012 Free Software Foundation, Inc.
16916This config.status script is free software; the Free Software Foundation
16917gives unlimited permission to copy, distribute and modify it."
16918
16919ac_pwd='$ac_pwd'
16920srcdir='$srcdir'
16921INSTALL='$INSTALL'
16922MKDIR_P='$MKDIR_P'
16923AWK='$AWK'
16924test -n "\$AWK" || AWK=awk
16925_ACEOF
16926
16927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16928# The default lists apply if the user does not specify any file.
16929ac_need_defaults=:
16930while test $# != 0
16931do
16932  case $1 in
16933  --*=?*)
16934    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16935    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16936    ac_shift=:
16937    ;;
16938  --*=)
16939    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16940    ac_optarg=
16941    ac_shift=:
16942    ;;
16943  *)
16944    ac_option=$1
16945    ac_optarg=$2
16946    ac_shift=shift
16947    ;;
16948  esac
16949
16950  case $ac_option in
16951  # Handling of the options.
16952  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16953    ac_cs_recheck=: ;;
16954  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16955    $as_echo "$ac_cs_version"; exit ;;
16956  --config | --confi | --conf | --con | --co | --c )
16957    $as_echo "$ac_cs_config"; exit ;;
16958  --debug | --debu | --deb | --de | --d | -d )
16959    debug=: ;;
16960  --file | --fil | --fi | --f )
16961    $ac_shift
16962    case $ac_optarg in
16963    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16964    '') as_fn_error $? "missing file argument" ;;
16965    esac
16966    as_fn_append CONFIG_FILES " '$ac_optarg'"
16967    ac_need_defaults=false;;
16968  --header | --heade | --head | --hea )
16969    $ac_shift
16970    case $ac_optarg in
16971    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16972    esac
16973    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16974    ac_need_defaults=false;;
16975  --he | --h)
16976    # Conflict between --help and --header
16977    as_fn_error $? "ambiguous option: \`$1'
16978Try \`$0 --help' for more information.";;
16979  --help | --hel | -h )
16980    $as_echo "$ac_cs_usage"; exit ;;
16981  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16982  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16983    ac_cs_silent=: ;;
16984
16985  # This is an error.
16986  -*) as_fn_error $? "unrecognized option: \`$1'
16987Try \`$0 --help' for more information." ;;
16988
16989  *) as_fn_append ac_config_targets " $1"
16990     ac_need_defaults=false ;;
16991
16992  esac
16993  shift
16994done
16995
16996ac_configure_extra_args=
16997
16998if $ac_cs_silent; then
16999  exec 6>/dev/null
17000  ac_configure_extra_args="$ac_configure_extra_args --silent"
17001fi
17002
17003_ACEOF
17004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17005if \$ac_cs_recheck; then
17006  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17007  shift
17008  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17009  CONFIG_SHELL='$SHELL'
17010  export CONFIG_SHELL
17011  exec "\$@"
17012fi
17013
17014_ACEOF
17015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17016exec 5>>config.log
17017{
17018  echo
17019  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17020## Running $as_me. ##
17021_ASBOX
17022  $as_echo "$ac_log"
17023} >&5
17024
17025_ACEOF
17026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17027#
17028# INIT-COMMANDS
17029#
17030AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17031
17032
17033# The HP-UX ksh and POSIX shell print the target directory to stdout
17034# if CDPATH is set.
17035(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17036
17037sed_quote_subst='$sed_quote_subst'
17038double_quote_subst='$double_quote_subst'
17039delay_variable_subst='$delay_variable_subst'
17040macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17041macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17042enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17043enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17044pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17045enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17046SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17047ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17048PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17049host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17050host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17051host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17052build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17053build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17054build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17055SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17056Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17057GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17058EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17059FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17060LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17061NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17062LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17063max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17064ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17065exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17066lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17067lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17068lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17069lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17070lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17071reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17072reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17073OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17074deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17075file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17076file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17077want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17078DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17079sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17080AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17081AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17082archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17083STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17084RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17085old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17086old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17087old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17088lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17089CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17090CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17091compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17092GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17093lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17094lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17095lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17096lt_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"`'
17097nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17098lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17099objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17100MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17101lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17102lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17103lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17104lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17105lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17106need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17107MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17108DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17109NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17110LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17111OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17112OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17113libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17114shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17115extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17116archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17117enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17118export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17119whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17120compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17121old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17122old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17123archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17124archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17125module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17126module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17127with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17128allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17129no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17130hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17131hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17132hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17133hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17134hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17135hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17136hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17137inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17138link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17139always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17140export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17141exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17142include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17143prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17144postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17145file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17146variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17147need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17148need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17149version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17150runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17151shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17152shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17153libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17154library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17155soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17156install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17157postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17158postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17159finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17160finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17161hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17162sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17163sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17164hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17165enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17166enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17167enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17168old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17169striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17170
17171LTCC='$LTCC'
17172LTCFLAGS='$LTCFLAGS'
17173compiler='$compiler_DEFAULT'
17174
17175# A function that is used when there is no print builtin or printf.
17176func_fallback_echo ()
17177{
17178  eval 'cat <<_LTECHO_EOF
17179\$1
17180_LTECHO_EOF'
17181}
17182
17183# Quote evaled strings.
17184for var in SHELL \
17185ECHO \
17186PATH_SEPARATOR \
17187SED \
17188GREP \
17189EGREP \
17190FGREP \
17191LD \
17192NM \
17193LN_S \
17194lt_SP2NL \
17195lt_NL2SP \
17196reload_flag \
17197OBJDUMP \
17198deplibs_check_method \
17199file_magic_cmd \
17200file_magic_glob \
17201want_nocaseglob \
17202DLLTOOL \
17203sharedlib_from_linklib_cmd \
17204AR \
17205AR_FLAGS \
17206archiver_list_spec \
17207STRIP \
17208RANLIB \
17209CC \
17210CFLAGS \
17211compiler \
17212lt_cv_sys_global_symbol_pipe \
17213lt_cv_sys_global_symbol_to_cdecl \
17214lt_cv_sys_global_symbol_to_c_name_address \
17215lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17216nm_file_list_spec \
17217lt_prog_compiler_no_builtin_flag \
17218lt_prog_compiler_pic \
17219lt_prog_compiler_wl \
17220lt_prog_compiler_static \
17221lt_cv_prog_compiler_c_o \
17222need_locks \
17223MANIFEST_TOOL \
17224DSYMUTIL \
17225NMEDIT \
17226LIPO \
17227OTOOL \
17228OTOOL64 \
17229shrext_cmds \
17230export_dynamic_flag_spec \
17231whole_archive_flag_spec \
17232compiler_needs_object \
17233with_gnu_ld \
17234allow_undefined_flag \
17235no_undefined_flag \
17236hardcode_libdir_flag_spec \
17237hardcode_libdir_separator \
17238exclude_expsyms \
17239include_expsyms \
17240file_list_spec \
17241variables_saved_for_relink \
17242libname_spec \
17243library_names_spec \
17244soname_spec \
17245install_override_mode \
17246finish_eval \
17247old_striplib \
17248striplib; do
17249    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17250    *[\\\\\\\`\\"\\\$]*)
17251      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17252      ;;
17253    *)
17254      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17255      ;;
17256    esac
17257done
17258
17259# Double-quote double-evaled strings.
17260for var in reload_cmds \
17261old_postinstall_cmds \
17262old_postuninstall_cmds \
17263old_archive_cmds \
17264extract_expsyms_cmds \
17265old_archive_from_new_cmds \
17266old_archive_from_expsyms_cmds \
17267archive_cmds \
17268archive_expsym_cmds \
17269module_cmds \
17270module_expsym_cmds \
17271export_symbols_cmds \
17272prelink_cmds \
17273postlink_cmds \
17274postinstall_cmds \
17275postuninstall_cmds \
17276finish_cmds \
17277sys_lib_search_path_spec \
17278sys_lib_dlsearch_path_spec; do
17279    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17280    *[\\\\\\\`\\"\\\$]*)
17281      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17282      ;;
17283    *)
17284      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17285      ;;
17286    esac
17287done
17288
17289ac_aux_dir='$ac_aux_dir'
17290xsi_shell='$xsi_shell'
17291lt_shell_append='$lt_shell_append'
17292
17293# See if we are running on zsh, and set the options which allow our
17294# commands through without removal of \ escapes INIT.
17295if test -n "\${ZSH_VERSION+set}" ; then
17296   setopt NO_GLOB_SUBST
17297fi
17298
17299
17300    PACKAGE='$PACKAGE'
17301    VERSION='$VERSION'
17302    TIMESTAMP='$TIMESTAMP'
17303    RM='$RM'
17304    ofile='$ofile'
17305
17306
17307
17308
17309_ACEOF
17310
17311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17312
17313# Handling of arguments.
17314for ac_config_target in $ac_config_targets
17315do
17316  case $ac_config_target in
17317    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17318    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17319    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17320    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17321    "libxnee/Makefile") CONFIG_FILES="$CONFIG_FILES libxnee/Makefile" ;;
17322    "libxnee/src/Makefile") CONFIG_FILES="$CONFIG_FILES libxnee/src/Makefile" ;;
17323    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17324    "libxnee/test/Makefile") CONFIG_FILES="$CONFIG_FILES libxnee/test/Makefile" ;;
17325    "sessions/Makefile") CONFIG_FILES="$CONFIG_FILES sessions/Makefile" ;;
17326    "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
17327    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17328    "cnee/Makefile") CONFIG_FILES="$CONFIG_FILES cnee/Makefile" ;;
17329    "cnee/src/Makefile") CONFIG_FILES="$CONFIG_FILES cnee/src/Makefile" ;;
17330    "gnee/Makefile") CONFIG_FILES="$CONFIG_FILES gnee/Makefile" ;;
17331    "gnee/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnee/src/Makefile" ;;
17332    "gnee/man/Makefile") CONFIG_FILES="$CONFIG_FILES gnee/man/Makefile" ;;
17333    "pnee/Makefile") CONFIG_FILES="$CONFIG_FILES pnee/Makefile" ;;
17334    "pnee/src/Makefile") CONFIG_FILES="$CONFIG_FILES pnee/src/Makefile" ;;
17335    "pnee/pics/Makefile") CONFIG_FILES="$CONFIG_FILES pnee/pics/Makefile" ;;
17336    "pnee/man/Makefile") CONFIG_FILES="$CONFIG_FILES pnee/man/Makefile" ;;
17337    "pnee/data/Makefile") CONFIG_FILES="$CONFIG_FILES pnee/data/Makefile" ;;
17338    "pixmap/Makefile") CONFIG_FILES="$CONFIG_FILES pixmap/Makefile" ;;
17339    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17340
17341  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17342  esac
17343done
17344
17345
17346# If the user did not use the arguments to specify the items to instantiate,
17347# then the envvar interface is used.  Set only those that are not.
17348# We use the long form for the default assignment because of an extremely
17349# bizarre bug on SunOS 4.1.3.
17350if $ac_need_defaults; then
17351  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17352  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17353  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17354fi
17355
17356# Have a temporary directory for convenience.  Make it in the build tree
17357# simply because there is no reason against having it here, and in addition,
17358# creating and moving files from /tmp can sometimes cause problems.
17359# Hook for its removal unless debugging.
17360# Note that there is a small window in which the directory will not be cleaned:
17361# after its creation but before its name has been assigned to `$tmp'.
17362$debug ||
17363{
17364  tmp= ac_tmp=
17365  trap 'exit_status=$?
17366  : "${ac_tmp:=$tmp}"
17367  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17368' 0
17369  trap 'as_fn_exit 1' 1 2 13 15
17370}
17371# Create a (secure) tmp directory for tmp files.
17372
17373{
17374  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17375  test -d "$tmp"
17376}  ||
17377{
17378  tmp=./conf$$-$RANDOM
17379  (umask 077 && mkdir "$tmp")
17380} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17381ac_tmp=$tmp
17382
17383# Set up the scripts for CONFIG_FILES section.
17384# No need to generate them if there are no CONFIG_FILES.
17385# This happens for instance with `./config.status config.h'.
17386if test -n "$CONFIG_FILES"; then
17387
17388
17389ac_cr=`echo X | tr X '\015'`
17390# On cygwin, bash can eat \r inside `` if the user requested igncr.
17391# But we know of no other shell where ac_cr would be empty at this
17392# point, so we can use a bashism as a fallback.
17393if test "x$ac_cr" = x; then
17394  eval ac_cr=\$\'\\r\'
17395fi
17396ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17397if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17398  ac_cs_awk_cr='\\r'
17399else
17400  ac_cs_awk_cr=$ac_cr
17401fi
17402
17403echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17404_ACEOF
17405
17406
17407{
17408  echo "cat >conf$$subs.awk <<_ACEOF" &&
17409  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17410  echo "_ACEOF"
17411} >conf$$subs.sh ||
17412  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17413ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17414ac_delim='%!_!# '
17415for ac_last_try in false false false false false :; do
17416  . ./conf$$subs.sh ||
17417    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17418
17419  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17420  if test $ac_delim_n = $ac_delim_num; then
17421    break
17422  elif $ac_last_try; then
17423    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17424  else
17425    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17426  fi
17427done
17428rm -f conf$$subs.sh
17429
17430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17431cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17432_ACEOF
17433sed -n '
17434h
17435s/^/S["/; s/!.*/"]=/
17436p
17437g
17438s/^[^!]*!//
17439:repl
17440t repl
17441s/'"$ac_delim"'$//
17442t delim
17443:nl
17444h
17445s/\(.\{148\}\)..*/\1/
17446t more1
17447s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17448p
17449n
17450b repl
17451:more1
17452s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17453p
17454g
17455s/.\{148\}//
17456t nl
17457:delim
17458h
17459s/\(.\{148\}\)..*/\1/
17460t more2
17461s/["\\]/\\&/g; s/^/"/; s/$/"/
17462p
17463b
17464:more2
17465s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17466p
17467g
17468s/.\{148\}//
17469t delim
17470' <conf$$subs.awk | sed '
17471/^[^""]/{
17472  N
17473  s/\n//
17474}
17475' >>$CONFIG_STATUS || ac_write_fail=1
17476rm -f conf$$subs.awk
17477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17478_ACAWK
17479cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17480  for (key in S) S_is_set[key] = 1
17481  FS = ""
17482
17483}
17484{
17485  line = $ 0
17486  nfields = split(line, field, "@")
17487  substed = 0
17488  len = length(field[1])
17489  for (i = 2; i < nfields; i++) {
17490    key = field[i]
17491    keylen = length(key)
17492    if (S_is_set[key]) {
17493      value = S[key]
17494      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17495      len += length(value) + length(field[++i])
17496      substed = 1
17497    } else
17498      len += 1 + keylen
17499  }
17500
17501  print line
17502}
17503
17504_ACAWK
17505_ACEOF
17506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17507if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17508  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17509else
17510  cat
17511fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17512  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17513_ACEOF
17514
17515# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17516# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17517# trailing colons and then remove the whole line if VPATH becomes empty
17518# (actually we leave an empty line to preserve line numbers).
17519if test "x$srcdir" = x.; then
17520  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17521h
17522s///
17523s/^/:/
17524s/[	 ]*$/:/
17525s/:\$(srcdir):/:/g
17526s/:\${srcdir}:/:/g
17527s/:@srcdir@:/:/g
17528s/^:*//
17529s/:*$//
17530x
17531s/\(=[	 ]*\).*/\1/
17532G
17533s/\n//
17534s/^[^=]*=[	 ]*$//
17535}'
17536fi
17537
17538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17539fi # test -n "$CONFIG_FILES"
17540
17541# Set up the scripts for CONFIG_HEADERS section.
17542# No need to generate them if there are no CONFIG_HEADERS.
17543# This happens for instance with `./config.status Makefile'.
17544if test -n "$CONFIG_HEADERS"; then
17545cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17546BEGIN {
17547_ACEOF
17548
17549# Transform confdefs.h into an awk script `defines.awk', embedded as
17550# here-document in config.status, that substitutes the proper values into
17551# config.h.in to produce config.h.
17552
17553# Create a delimiter string that does not exist in confdefs.h, to ease
17554# handling of long lines.
17555ac_delim='%!_!# '
17556for ac_last_try in false false :; do
17557  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17558  if test -z "$ac_tt"; then
17559    break
17560  elif $ac_last_try; then
17561    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17562  else
17563    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17564  fi
17565done
17566
17567# For the awk script, D is an array of macro values keyed by name,
17568# likewise P contains macro parameters if any.  Preserve backslash
17569# newline sequences.
17570
17571ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17572sed -n '
17573s/.\{148\}/&'"$ac_delim"'/g
17574t rset
17575:rset
17576s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17577t def
17578d
17579:def
17580s/\\$//
17581t bsnl
17582s/["\\]/\\&/g
17583s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17584D["\1"]=" \3"/p
17585s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17586d
17587:bsnl
17588s/["\\]/\\&/g
17589s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17590D["\1"]=" \3\\\\\\n"\\/p
17591t cont
17592s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17593t cont
17594d
17595:cont
17596n
17597s/.\{148\}/&'"$ac_delim"'/g
17598t clear
17599:clear
17600s/\\$//
17601t bsnlc
17602s/["\\]/\\&/g; s/^/"/; s/$/"/p
17603d
17604:bsnlc
17605s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17606b cont
17607' <confdefs.h | sed '
17608s/'"$ac_delim"'/"\\\
17609"/g' >>$CONFIG_STATUS || ac_write_fail=1
17610
17611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17612  for (key in D) D_is_set[key] = 1
17613  FS = ""
17614}
17615/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17616  line = \$ 0
17617  split(line, arg, " ")
17618  if (arg[1] == "#") {
17619    defundef = arg[2]
17620    mac1 = arg[3]
17621  } else {
17622    defundef = substr(arg[1], 2)
17623    mac1 = arg[2]
17624  }
17625  split(mac1, mac2, "(") #)
17626  macro = mac2[1]
17627  prefix = substr(line, 1, index(line, defundef) - 1)
17628  if (D_is_set[macro]) {
17629    # Preserve the white space surrounding the "#".
17630    print prefix "define", macro P[macro] D[macro]
17631    next
17632  } else {
17633    # Replace #undef with comments.  This is necessary, for example,
17634    # in the case of _POSIX_SOURCE, which is predefined and required
17635    # on some systems where configure will not decide to define it.
17636    if (defundef == "undef") {
17637      print "/*", prefix defundef, macro, "*/"
17638      next
17639    }
17640  }
17641}
17642{ print }
17643_ACAWK
17644_ACEOF
17645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17646  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17647fi # test -n "$CONFIG_HEADERS"
17648
17649
17650eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17651shift
17652for ac_tag
17653do
17654  case $ac_tag in
17655  :[FHLC]) ac_mode=$ac_tag; continue;;
17656  esac
17657  case $ac_mode$ac_tag in
17658  :[FHL]*:*);;
17659  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17660  :[FH]-) ac_tag=-:-;;
17661  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17662  esac
17663  ac_save_IFS=$IFS
17664  IFS=:
17665  set x $ac_tag
17666  IFS=$ac_save_IFS
17667  shift
17668  ac_file=$1
17669  shift
17670
17671  case $ac_mode in
17672  :L) ac_source=$1;;
17673  :[FH])
17674    ac_file_inputs=
17675    for ac_f
17676    do
17677      case $ac_f in
17678      -) ac_f="$ac_tmp/stdin";;
17679      *) # Look for the file first in the build tree, then in the source tree
17680	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17681	 # because $ac_f cannot contain `:'.
17682	 test -f "$ac_f" ||
17683	   case $ac_f in
17684	   [\\/$]*) false;;
17685	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17686	   esac ||
17687	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17688      esac
17689      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17690      as_fn_append ac_file_inputs " '$ac_f'"
17691    done
17692
17693    # Let's still pretend it is `configure' which instantiates (i.e., don't
17694    # use $as_me), people would be surprised to read:
17695    #    /* config.h.  Generated by config.status.  */
17696    configure_input='Generated from '`
17697	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17698	`' by configure.'
17699    if test x"$ac_file" != x-; then
17700      configure_input="$ac_file.  $configure_input"
17701      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17702$as_echo "$as_me: creating $ac_file" >&6;}
17703    fi
17704    # Neutralize special characters interpreted by sed in replacement strings.
17705    case $configure_input in #(
17706    *\&* | *\|* | *\\* )
17707       ac_sed_conf_input=`$as_echo "$configure_input" |
17708       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17709    *) ac_sed_conf_input=$configure_input;;
17710    esac
17711
17712    case $ac_tag in
17713    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17714      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17715    esac
17716    ;;
17717  esac
17718
17719  ac_dir=`$as_dirname -- "$ac_file" ||
17720$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17721	 X"$ac_file" : 'X\(//\)[^/]' \| \
17722	 X"$ac_file" : 'X\(//\)$' \| \
17723	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17724$as_echo X"$ac_file" |
17725    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17726	    s//\1/
17727	    q
17728	  }
17729	  /^X\(\/\/\)[^/].*/{
17730	    s//\1/
17731	    q
17732	  }
17733	  /^X\(\/\/\)$/{
17734	    s//\1/
17735	    q
17736	  }
17737	  /^X\(\/\).*/{
17738	    s//\1/
17739	    q
17740	  }
17741	  s/.*/./; q'`
17742  as_dir="$ac_dir"; as_fn_mkdir_p
17743  ac_builddir=.
17744
17745case "$ac_dir" in
17746.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17747*)
17748  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17749  # A ".." for each directory in $ac_dir_suffix.
17750  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17751  case $ac_top_builddir_sub in
17752  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17753  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17754  esac ;;
17755esac
17756ac_abs_top_builddir=$ac_pwd
17757ac_abs_builddir=$ac_pwd$ac_dir_suffix
17758# for backward compatibility:
17759ac_top_builddir=$ac_top_build_prefix
17760
17761case $srcdir in
17762  .)  # We are building in place.
17763    ac_srcdir=.
17764    ac_top_srcdir=$ac_top_builddir_sub
17765    ac_abs_top_srcdir=$ac_pwd ;;
17766  [\\/]* | ?:[\\/]* )  # Absolute name.
17767    ac_srcdir=$srcdir$ac_dir_suffix;
17768    ac_top_srcdir=$srcdir
17769    ac_abs_top_srcdir=$srcdir ;;
17770  *) # Relative name.
17771    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17772    ac_top_srcdir=$ac_top_build_prefix$srcdir
17773    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17774esac
17775ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17776
17777
17778  case $ac_mode in
17779  :F)
17780  #
17781  # CONFIG_FILE
17782  #
17783
17784  case $INSTALL in
17785  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17786  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17787  esac
17788  ac_MKDIR_P=$MKDIR_P
17789  case $MKDIR_P in
17790  [\\/$]* | ?:[\\/]* ) ;;
17791  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17792  esac
17793_ACEOF
17794
17795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17796# If the template does not know about datarootdir, expand it.
17797# FIXME: This hack should be removed a few years after 2.60.
17798ac_datarootdir_hack=; ac_datarootdir_seen=
17799ac_sed_dataroot='
17800/datarootdir/ {
17801  p
17802  q
17803}
17804/@datadir@/p
17805/@docdir@/p
17806/@infodir@/p
17807/@localedir@/p
17808/@mandir@/p'
17809case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17810*datarootdir*) ac_datarootdir_seen=yes;;
17811*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17812  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17813$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17814_ACEOF
17815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17816  ac_datarootdir_hack='
17817  s&@datadir@&$datadir&g
17818  s&@docdir@&$docdir&g
17819  s&@infodir@&$infodir&g
17820  s&@localedir@&$localedir&g
17821  s&@mandir@&$mandir&g
17822  s&\\\${datarootdir}&$datarootdir&g' ;;
17823esac
17824_ACEOF
17825
17826# Neutralize VPATH when `$srcdir' = `.'.
17827# Shell code in configure.ac might set extrasub.
17828# FIXME: do we really want to maintain this feature?
17829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17830ac_sed_extra="$ac_vpsub
17831$extrasub
17832_ACEOF
17833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17834:t
17835/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17836s|@configure_input@|$ac_sed_conf_input|;t t
17837s&@top_builddir@&$ac_top_builddir_sub&;t t
17838s&@top_build_prefix@&$ac_top_build_prefix&;t t
17839s&@srcdir@&$ac_srcdir&;t t
17840s&@abs_srcdir@&$ac_abs_srcdir&;t t
17841s&@top_srcdir@&$ac_top_srcdir&;t t
17842s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17843s&@builddir@&$ac_builddir&;t t
17844s&@abs_builddir@&$ac_abs_builddir&;t t
17845s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17846s&@INSTALL@&$ac_INSTALL&;t t
17847s&@MKDIR_P@&$ac_MKDIR_P&;t t
17848$ac_datarootdir_hack
17849"
17850eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17851  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17852
17853test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17854  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17855  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17856      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17857  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17858which seems to be undefined.  Please make sure it is defined" >&5
17859$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17860which seems to be undefined.  Please make sure it is defined" >&2;}
17861
17862  rm -f "$ac_tmp/stdin"
17863  case $ac_file in
17864  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17865  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17866  esac \
17867  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17868 ;;
17869  :H)
17870  #
17871  # CONFIG_HEADER
17872  #
17873  if test x"$ac_file" != x-; then
17874    {
17875      $as_echo "/* $configure_input  */" \
17876      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17877    } >"$ac_tmp/config.h" \
17878      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17879    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17880      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17881$as_echo "$as_me: $ac_file is unchanged" >&6;}
17882    else
17883      rm -f "$ac_file"
17884      mv "$ac_tmp/config.h" "$ac_file" \
17885	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17886    fi
17887  else
17888    $as_echo "/* $configure_input  */" \
17889      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17890      || as_fn_error $? "could not create -" "$LINENO" 5
17891  fi
17892# Compute "$ac_file"'s index in $config_headers.
17893_am_arg="$ac_file"
17894_am_stamp_count=1
17895for _am_header in $config_headers :; do
17896  case $_am_header in
17897    $_am_arg | $_am_arg:* )
17898      break ;;
17899    * )
17900      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17901  esac
17902done
17903echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17904$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17905	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17906	 X"$_am_arg" : 'X\(//\)$' \| \
17907	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17908$as_echo X"$_am_arg" |
17909    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17910	    s//\1/
17911	    q
17912	  }
17913	  /^X\(\/\/\)[^/].*/{
17914	    s//\1/
17915	    q
17916	  }
17917	  /^X\(\/\/\)$/{
17918	    s//\1/
17919	    q
17920	  }
17921	  /^X\(\/\).*/{
17922	    s//\1/
17923	    q
17924	  }
17925	  s/.*/./; q'`/stamp-h$_am_stamp_count
17926 ;;
17927
17928  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17929$as_echo "$as_me: executing $ac_file commands" >&6;}
17930 ;;
17931  esac
17932
17933
17934  case $ac_file$ac_mode in
17935    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17936  # Older Autoconf quotes --file arguments for eval, but not when files
17937  # are listed without --file.  Let's play safe and only enable the eval
17938  # if we detect the quoting.
17939  case $CONFIG_FILES in
17940  *\'*) eval set x "$CONFIG_FILES" ;;
17941  *)   set x $CONFIG_FILES ;;
17942  esac
17943  shift
17944  for mf
17945  do
17946    # Strip MF so we end up with the name of the file.
17947    mf=`echo "$mf" | sed -e 's/:.*$//'`
17948    # Check whether this is an Automake generated Makefile or not.
17949    # We used to match only the files named 'Makefile.in', but
17950    # some people rename them; so instead we look at the file content.
17951    # Grep'ing the first line is not enough: some people post-process
17952    # each Makefile.in and add a new line on top of each file to say so.
17953    # Grep'ing the whole file is not good either: AIX grep has a line
17954    # limit of 2048, but all sed's we know have understand at least 4000.
17955    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17956      dirpart=`$as_dirname -- "$mf" ||
17957$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17958	 X"$mf" : 'X\(//\)[^/]' \| \
17959	 X"$mf" : 'X\(//\)$' \| \
17960	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17961$as_echo X"$mf" |
17962    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17963	    s//\1/
17964	    q
17965	  }
17966	  /^X\(\/\/\)[^/].*/{
17967	    s//\1/
17968	    q
17969	  }
17970	  /^X\(\/\/\)$/{
17971	    s//\1/
17972	    q
17973	  }
17974	  /^X\(\/\).*/{
17975	    s//\1/
17976	    q
17977	  }
17978	  s/.*/./; q'`
17979    else
17980      continue
17981    fi
17982    # Extract the definition of DEPDIR, am__include, and am__quote
17983    # from the Makefile without running 'make'.
17984    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17985    test -z "$DEPDIR" && continue
17986    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17987    test -z "$am__include" && continue
17988    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17989    # Find all dependency output files, they are included files with
17990    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17991    # simplest approach to changing $(DEPDIR) to its actual value in the
17992    # expansion.
17993    for file in `sed -n "
17994      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17995	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17996      # Make sure the directory exists.
17997      test -f "$dirpart/$file" && continue
17998      fdir=`$as_dirname -- "$file" ||
17999$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18000	 X"$file" : 'X\(//\)[^/]' \| \
18001	 X"$file" : 'X\(//\)$' \| \
18002	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18003$as_echo X"$file" |
18004    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18005	    s//\1/
18006	    q
18007	  }
18008	  /^X\(\/\/\)[^/].*/{
18009	    s//\1/
18010	    q
18011	  }
18012	  /^X\(\/\/\)$/{
18013	    s//\1/
18014	    q
18015	  }
18016	  /^X\(\/\).*/{
18017	    s//\1/
18018	    q
18019	  }
18020	  s/.*/./; q'`
18021      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18022      # echo "creating $dirpart/$file"
18023      echo '# dummy' > "$dirpart/$file"
18024    done
18025  done
18026}
18027 ;;
18028    "libtool":C)
18029
18030    # See if we are running on zsh, and set the options which allow our
18031    # commands through without removal of \ escapes.
18032    if test -n "${ZSH_VERSION+set}" ; then
18033      setopt NO_GLOB_SUBST
18034    fi
18035
18036    cfgfile="${ofile}T"
18037    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18038    $RM "$cfgfile"
18039
18040    cat <<_LT_EOF >> "$cfgfile"
18041#! $SHELL
18042
18043# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18044# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18045# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18046# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18047#
18048#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18049#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18050#                 Foundation, Inc.
18051#   Written by Gordon Matzigkeit, 1996
18052#
18053#   This file is part of GNU Libtool.
18054#
18055# GNU Libtool is free software; you can redistribute it and/or
18056# modify it under the terms of the GNU General Public License as
18057# published by the Free Software Foundation; either version 2 of
18058# the License, or (at your option) any later version.
18059#
18060# As a special exception to the GNU General Public License,
18061# if you distribute this file as part of a program or library that
18062# is built using GNU Libtool, you may include this file under the
18063# same distribution terms that you use for the rest of that program.
18064#
18065# GNU Libtool is distributed in the hope that it will be useful,
18066# but WITHOUT ANY WARRANTY; without even the implied warranty of
18067# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18068# GNU General Public License for more details.
18069#
18070# You should have received a copy of the GNU General Public License
18071# along with GNU Libtool; see the file COPYING.  If not, a copy
18072# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18073# obtained by writing to the Free Software Foundation, Inc.,
18074# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18075
18076
18077# The names of the tagged configurations supported by this script.
18078available_tags=""
18079
18080# ### BEGIN LIBTOOL CONFIG
18081
18082# Which release of libtool.m4 was used?
18083macro_version=$macro_version
18084macro_revision=$macro_revision
18085
18086# Whether or not to build shared libraries.
18087build_libtool_libs=$enable_shared
18088
18089# Whether or not to build static libraries.
18090build_old_libs=$enable_static
18091
18092# What type of objects to build.
18093pic_mode=$pic_mode
18094
18095# Whether or not to optimize for fast installation.
18096fast_install=$enable_fast_install
18097
18098# Shell to use when invoking shell scripts.
18099SHELL=$lt_SHELL
18100
18101# An echo program that protects backslashes.
18102ECHO=$lt_ECHO
18103
18104# The PATH separator for the build system.
18105PATH_SEPARATOR=$lt_PATH_SEPARATOR
18106
18107# The host system.
18108host_alias=$host_alias
18109host=$host
18110host_os=$host_os
18111
18112# The build system.
18113build_alias=$build_alias
18114build=$build
18115build_os=$build_os
18116
18117# A sed program that does not truncate output.
18118SED=$lt_SED
18119
18120# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18121Xsed="\$SED -e 1s/^X//"
18122
18123# A grep program that handles long lines.
18124GREP=$lt_GREP
18125
18126# An ERE matcher.
18127EGREP=$lt_EGREP
18128
18129# A literal string matcher.
18130FGREP=$lt_FGREP
18131
18132# A BSD- or MS-compatible name lister.
18133NM=$lt_NM
18134
18135# Whether we need soft or hard links.
18136LN_S=$lt_LN_S
18137
18138# What is the maximum length of a command?
18139max_cmd_len=$max_cmd_len
18140
18141# Object file suffix (normally "o").
18142objext=$ac_objext
18143
18144# Executable file suffix (normally "").
18145exeext=$exeext
18146
18147# whether the shell understands "unset".
18148lt_unset=$lt_unset
18149
18150# turn spaces into newlines.
18151SP2NL=$lt_lt_SP2NL
18152
18153# turn newlines into spaces.
18154NL2SP=$lt_lt_NL2SP
18155
18156# convert \$build file names to \$host format.
18157to_host_file_cmd=$lt_cv_to_host_file_cmd
18158
18159# convert \$build files to toolchain format.
18160to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18161
18162# An object symbol dumper.
18163OBJDUMP=$lt_OBJDUMP
18164
18165# Method to check whether dependent libraries are shared objects.
18166deplibs_check_method=$lt_deplibs_check_method
18167
18168# Command to use when deplibs_check_method = "file_magic".
18169file_magic_cmd=$lt_file_magic_cmd
18170
18171# How to find potential files when deplibs_check_method = "file_magic".
18172file_magic_glob=$lt_file_magic_glob
18173
18174# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18175want_nocaseglob=$lt_want_nocaseglob
18176
18177# DLL creation program.
18178DLLTOOL=$lt_DLLTOOL
18179
18180# Command to associate shared and link libraries.
18181sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18182
18183# The archiver.
18184AR=$lt_AR
18185
18186# Flags to create an archive.
18187AR_FLAGS=$lt_AR_FLAGS
18188
18189# How to feed a file listing to the archiver.
18190archiver_list_spec=$lt_archiver_list_spec
18191
18192# A symbol stripping program.
18193STRIP=$lt_STRIP
18194
18195# Commands used to install an old-style archive.
18196RANLIB=$lt_RANLIB
18197old_postinstall_cmds=$lt_old_postinstall_cmds
18198old_postuninstall_cmds=$lt_old_postuninstall_cmds
18199
18200# Whether to use a lock for old archive extraction.
18201lock_old_archive_extraction=$lock_old_archive_extraction
18202
18203# A C compiler.
18204LTCC=$lt_CC
18205
18206# LTCC compiler flags.
18207LTCFLAGS=$lt_CFLAGS
18208
18209# Take the output of nm and produce a listing of raw symbols and C names.
18210global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18211
18212# Transform the output of nm in a proper C declaration.
18213global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18214
18215# Transform the output of nm in a C name address pair.
18216global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18217
18218# Transform the output of nm in a C name address pair when lib prefix is needed.
18219global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18220
18221# Specify filename containing input files for \$NM.
18222nm_file_list_spec=$lt_nm_file_list_spec
18223
18224# The root where to search for dependent libraries,and in which our libraries should be installed.
18225lt_sysroot=$lt_sysroot
18226
18227# The name of the directory that contains temporary libtool files.
18228objdir=$objdir
18229
18230# Used to examine libraries when file_magic_cmd begins with "file".
18231MAGIC_CMD=$MAGIC_CMD
18232
18233# Must we lock files when doing compilation?
18234need_locks=$lt_need_locks
18235
18236# Manifest tool.
18237MANIFEST_TOOL=$lt_MANIFEST_TOOL
18238
18239# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18240DSYMUTIL=$lt_DSYMUTIL
18241
18242# Tool to change global to local symbols on Mac OS X.
18243NMEDIT=$lt_NMEDIT
18244
18245# Tool to manipulate fat objects and archives on Mac OS X.
18246LIPO=$lt_LIPO
18247
18248# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18249OTOOL=$lt_OTOOL
18250
18251# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18252OTOOL64=$lt_OTOOL64
18253
18254# Old archive suffix (normally "a").
18255libext=$libext
18256
18257# Shared library suffix (normally ".so").
18258shrext_cmds=$lt_shrext_cmds
18259
18260# The commands to extract the exported symbol list from a shared archive.
18261extract_expsyms_cmds=$lt_extract_expsyms_cmds
18262
18263# Variables whose values should be saved in libtool wrapper scripts and
18264# restored at link time.
18265variables_saved_for_relink=$lt_variables_saved_for_relink
18266
18267# Do we need the "lib" prefix for modules?
18268need_lib_prefix=$need_lib_prefix
18269
18270# Do we need a version for libraries?
18271need_version=$need_version
18272
18273# Library versioning type.
18274version_type=$version_type
18275
18276# Shared library runtime path variable.
18277runpath_var=$runpath_var
18278
18279# Shared library path variable.
18280shlibpath_var=$shlibpath_var
18281
18282# Is shlibpath searched before the hard-coded library search path?
18283shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18284
18285# Format of library name prefix.
18286libname_spec=$lt_libname_spec
18287
18288# List of archive names.  First name is the real one, the rest are links.
18289# The last name is the one that the linker finds with -lNAME
18290library_names_spec=$lt_library_names_spec
18291
18292# The coded name of the library, if different from the real name.
18293soname_spec=$lt_soname_spec
18294
18295# Permission mode override for installation of shared libraries.
18296install_override_mode=$lt_install_override_mode
18297
18298# Command to use after installation of a shared archive.
18299postinstall_cmds=$lt_postinstall_cmds
18300
18301# Command to use after uninstallation of a shared archive.
18302postuninstall_cmds=$lt_postuninstall_cmds
18303
18304# Commands used to finish a libtool library installation in a directory.
18305finish_cmds=$lt_finish_cmds
18306
18307# As "finish_cmds", except a single script fragment to be evaled but
18308# not shown.
18309finish_eval=$lt_finish_eval
18310
18311# Whether we should hardcode library paths into libraries.
18312hardcode_into_libs=$hardcode_into_libs
18313
18314# Compile-time system search path for libraries.
18315sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18316
18317# Run-time system search path for libraries.
18318sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18319
18320# Whether dlopen is supported.
18321dlopen_support=$enable_dlopen
18322
18323# Whether dlopen of programs is supported.
18324dlopen_self=$enable_dlopen_self
18325
18326# Whether dlopen of statically linked programs is supported.
18327dlopen_self_static=$enable_dlopen_self_static
18328
18329# Commands to strip libraries.
18330old_striplib=$lt_old_striplib
18331striplib=$lt_striplib
18332
18333
18334# The linker used to build libraries.
18335LD=$lt_LD
18336
18337# How to create reloadable object files.
18338reload_flag=$lt_reload_flag
18339reload_cmds=$lt_reload_cmds
18340
18341# Commands used to build an old-style archive.
18342old_archive_cmds=$lt_old_archive_cmds
18343
18344# A language specific compiler.
18345CC=$lt_compiler
18346
18347# Is the compiler the GNU compiler?
18348with_gcc=$GCC
18349
18350# Compiler flag to turn off builtin functions.
18351no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18352
18353# Additional compiler flags for building library objects.
18354pic_flag=$lt_lt_prog_compiler_pic
18355
18356# How to pass a linker flag through the compiler.
18357wl=$lt_lt_prog_compiler_wl
18358
18359# Compiler flag to prevent dynamic linking.
18360link_static_flag=$lt_lt_prog_compiler_static
18361
18362# Does compiler simultaneously support -c and -o options?
18363compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18364
18365# Whether or not to add -lc for building shared libraries.
18366build_libtool_need_lc=$archive_cmds_need_lc
18367
18368# Whether or not to disallow shared libs when runtime libs are static.
18369allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18370
18371# Compiler flag to allow reflexive dlopens.
18372export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18373
18374# Compiler flag to generate shared objects directly from archives.
18375whole_archive_flag_spec=$lt_whole_archive_flag_spec
18376
18377# Whether the compiler copes with passing no objects directly.
18378compiler_needs_object=$lt_compiler_needs_object
18379
18380# Create an old-style archive from a shared archive.
18381old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18382
18383# Create a temporary old-style archive to link instead of a shared archive.
18384old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18385
18386# Commands used to build a shared archive.
18387archive_cmds=$lt_archive_cmds
18388archive_expsym_cmds=$lt_archive_expsym_cmds
18389
18390# Commands used to build a loadable module if different from building
18391# a shared archive.
18392module_cmds=$lt_module_cmds
18393module_expsym_cmds=$lt_module_expsym_cmds
18394
18395# Whether we are building with GNU ld or not.
18396with_gnu_ld=$lt_with_gnu_ld
18397
18398# Flag that allows shared libraries with undefined symbols to be built.
18399allow_undefined_flag=$lt_allow_undefined_flag
18400
18401# Flag that enforces no undefined symbols.
18402no_undefined_flag=$lt_no_undefined_flag
18403
18404# Flag to hardcode \$libdir into a binary during linking.
18405# This must work even if \$libdir does not exist
18406hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18407
18408# Whether we need a single "-rpath" flag with a separated argument.
18409hardcode_libdir_separator=$lt_hardcode_libdir_separator
18410
18411# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18412# DIR into the resulting binary.
18413hardcode_direct=$hardcode_direct
18414
18415# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18416# DIR into the resulting binary and the resulting library dependency is
18417# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18418# library is relocated.
18419hardcode_direct_absolute=$hardcode_direct_absolute
18420
18421# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18422# into the resulting binary.
18423hardcode_minus_L=$hardcode_minus_L
18424
18425# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18426# into the resulting binary.
18427hardcode_shlibpath_var=$hardcode_shlibpath_var
18428
18429# Set to "yes" if building a shared library automatically hardcodes DIR
18430# into the library and all subsequent libraries and executables linked
18431# against it.
18432hardcode_automatic=$hardcode_automatic
18433
18434# Set to yes if linker adds runtime paths of dependent libraries
18435# to runtime path list.
18436inherit_rpath=$inherit_rpath
18437
18438# Whether libtool must link a program against all its dependency libraries.
18439link_all_deplibs=$link_all_deplibs
18440
18441# Set to "yes" if exported symbols are required.
18442always_export_symbols=$always_export_symbols
18443
18444# The commands to list exported symbols.
18445export_symbols_cmds=$lt_export_symbols_cmds
18446
18447# Symbols that should not be listed in the preloaded symbols.
18448exclude_expsyms=$lt_exclude_expsyms
18449
18450# Symbols that must always be exported.
18451include_expsyms=$lt_include_expsyms
18452
18453# Commands necessary for linking programs (against libraries) with templates.
18454prelink_cmds=$lt_prelink_cmds
18455
18456# Commands necessary for finishing linking programs.
18457postlink_cmds=$lt_postlink_cmds
18458
18459# Specify filename containing input files.
18460file_list_spec=$lt_file_list_spec
18461
18462# How to hardcode a shared library path into an executable.
18463hardcode_action=$hardcode_action
18464
18465# ### END LIBTOOL CONFIG
18466
18467_LT_EOF
18468
18469  case $host_os in
18470  aix3*)
18471    cat <<\_LT_EOF >> "$cfgfile"
18472# AIX sometimes has problems with the GCC collect2 program.  For some
18473# reason, if we set the COLLECT_NAMES environment variable, the problems
18474# vanish in a puff of smoke.
18475if test "X${COLLECT_NAMES+set}" != Xset; then
18476  COLLECT_NAMES=
18477  export COLLECT_NAMES
18478fi
18479_LT_EOF
18480    ;;
18481  esac
18482
18483
18484ltmain="$ac_aux_dir/ltmain.sh"
18485
18486
18487  # We use sed instead of cat because bash on DJGPP gets confused if
18488  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18489  # text mode, it properly converts lines to CR/LF.  This bash problem
18490  # is reportedly fixed, but why not run on old versions too?
18491  sed '$q' "$ltmain" >> "$cfgfile" \
18492     || (rm -f "$cfgfile"; exit 1)
18493
18494  if test x"$xsi_shell" = xyes; then
18495  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18496func_dirname ()\
18497{\
18498\    case ${1} in\
18499\      */*) func_dirname_result="${1%/*}${2}" ;;\
18500\      *  ) func_dirname_result="${3}" ;;\
18501\    esac\
18502} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18503  && mv -f "$cfgfile.tmp" "$cfgfile" \
18504    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18505test 0 -eq $? || _lt_function_replace_fail=:
18506
18507
18508  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18509func_basename ()\
18510{\
18511\    func_basename_result="${1##*/}"\
18512} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18513  && mv -f "$cfgfile.tmp" "$cfgfile" \
18514    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18515test 0 -eq $? || _lt_function_replace_fail=:
18516
18517
18518  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18519func_dirname_and_basename ()\
18520{\
18521\    case ${1} in\
18522\      */*) func_dirname_result="${1%/*}${2}" ;;\
18523\      *  ) func_dirname_result="${3}" ;;\
18524\    esac\
18525\    func_basename_result="${1##*/}"\
18526} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18527  && mv -f "$cfgfile.tmp" "$cfgfile" \
18528    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18529test 0 -eq $? || _lt_function_replace_fail=:
18530
18531
18532  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18533func_stripname ()\
18534{\
18535\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18536\    # positional parameters, so assign one to ordinary parameter first.\
18537\    func_stripname_result=${3}\
18538\    func_stripname_result=${func_stripname_result#"${1}"}\
18539\    func_stripname_result=${func_stripname_result%"${2}"}\
18540} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18541  && mv -f "$cfgfile.tmp" "$cfgfile" \
18542    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18543test 0 -eq $? || _lt_function_replace_fail=:
18544
18545
18546  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18547func_split_long_opt ()\
18548{\
18549\    func_split_long_opt_name=${1%%=*}\
18550\    func_split_long_opt_arg=${1#*=}\
18551} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18552  && mv -f "$cfgfile.tmp" "$cfgfile" \
18553    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18554test 0 -eq $? || _lt_function_replace_fail=:
18555
18556
18557  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18558func_split_short_opt ()\
18559{\
18560\    func_split_short_opt_arg=${1#??}\
18561\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18562} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18563  && mv -f "$cfgfile.tmp" "$cfgfile" \
18564    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18565test 0 -eq $? || _lt_function_replace_fail=:
18566
18567
18568  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18569func_lo2o ()\
18570{\
18571\    case ${1} in\
18572\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18573\      *)    func_lo2o_result=${1} ;;\
18574\    esac\
18575} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18576  && mv -f "$cfgfile.tmp" "$cfgfile" \
18577    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18578test 0 -eq $? || _lt_function_replace_fail=:
18579
18580
18581  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18582func_xform ()\
18583{\
18584    func_xform_result=${1%.*}.lo\
18585} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18586  && mv -f "$cfgfile.tmp" "$cfgfile" \
18587    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18588test 0 -eq $? || _lt_function_replace_fail=:
18589
18590
18591  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18592func_arith ()\
18593{\
18594    func_arith_result=$(( $* ))\
18595} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18596  && mv -f "$cfgfile.tmp" "$cfgfile" \
18597    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18598test 0 -eq $? || _lt_function_replace_fail=:
18599
18600
18601  sed -e '/^func_len ()$/,/^} # func_len /c\
18602func_len ()\
18603{\
18604    func_len_result=${#1}\
18605} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18606  && mv -f "$cfgfile.tmp" "$cfgfile" \
18607    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18608test 0 -eq $? || _lt_function_replace_fail=:
18609
18610fi
18611
18612if test x"$lt_shell_append" = xyes; then
18613  sed -e '/^func_append ()$/,/^} # func_append /c\
18614func_append ()\
18615{\
18616    eval "${1}+=\\${2}"\
18617} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18618  && mv -f "$cfgfile.tmp" "$cfgfile" \
18619    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18620test 0 -eq $? || _lt_function_replace_fail=:
18621
18622
18623  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18624func_append_quoted ()\
18625{\
18626\    func_quote_for_eval "${2}"\
18627\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18628} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18629  && mv -f "$cfgfile.tmp" "$cfgfile" \
18630    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18631test 0 -eq $? || _lt_function_replace_fail=:
18632
18633
18634  # Save a `func_append' function call where possible by direct use of '+='
18635  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18636    && mv -f "$cfgfile.tmp" "$cfgfile" \
18637      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18638  test 0 -eq $? || _lt_function_replace_fail=:
18639else
18640  # Save a `func_append' function call even when '+=' is not available
18641  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18642    && mv -f "$cfgfile.tmp" "$cfgfile" \
18643      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18644  test 0 -eq $? || _lt_function_replace_fail=:
18645fi
18646
18647if test x"$_lt_function_replace_fail" = x":"; then
18648  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18649$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18650fi
18651
18652
18653   mv -f "$cfgfile" "$ofile" ||
18654    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18655  chmod +x "$ofile"
18656
18657 ;;
18658
18659  esac
18660done # for ac_tag
18661
18662
18663as_fn_exit 0
18664_ACEOF
18665ac_clean_files=$ac_clean_files_save
18666
18667test $ac_write_fail = 0 ||
18668  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18669
18670
18671# configure is writing to config.log, and then calls config.status.
18672# config.status does its own redirection, appending to config.log.
18673# Unfortunately, on DOS this fails, as config.log is still kept open
18674# by configure, so config.status won't be able to write to it; its
18675# output is simply discarded.  So we exec the FD to /dev/null,
18676# effectively closing config.log, so it can be properly (re)opened and
18677# appended to by config.status.  When coming back to configure, we
18678# need to make the FD available again.
18679if test "$no_create" != yes; then
18680  ac_cs_success=:
18681  ac_config_status_args=
18682  test "$silent" = yes &&
18683    ac_config_status_args="$ac_config_status_args --quiet"
18684  exec 5>/dev/null
18685  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18686  exec 5>>config.log
18687  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18688  # would make configure fail if this is the last instruction.
18689  $ac_cs_success || as_fn_exit 1
18690fi
18691if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18692  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18693$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18694fi
18695
18696
18697#
18698# Final words
18699#
18700#
18701#
18702echo " "
18703echo " "
18704echo " Configuration of Xnee finished "
18705echo " ============================== "
18706echo "    PACKAGE              $PACKAGE"
18707echo "    VERSION              $VERSION"
18708echo " "
18709echo "   Xnee Developer flags"
18710echo "   -------------------------------------"
18711echo "    VERBOSE_FLAG         $VERBOSE_FLAG"
18712echo "    GCOV_FLAG            $GCOV_FLAG"
18713echo "    GPROF_FLAG           $GPROF_FLAG"
18714echo "    BUF_VERBOSE_FLAG     $BUF_VERBOSE_FLAG"
18715echo "    PEDANTIC_FLAGS       $PEDANTIC_FLAGS"
18716echo "    XNEE_XINPUT_SUPPORT_FLAGS $XNEE_XINPUT_SUPPORT_FLAGS"
18717echo "    LIBDL                $LIBDL"
18718echo "    LIBSEMA              $LIBSEMA"
18719echo "    X11_LIBS             $X11_LIBS"
18720echo "    PANEL_SERVER_DIR     $PANEL_SERVER_DIR"
18721echo "    PANEL_APPLET_DIR     $PANEL_APPLET_DIR"
18722echo "    PIXMAP_DIR           $PIXMAP_DIR"
18723echo "    CONVERT              $CONVERT"
18724#echo "    GUI_DIR              $GUI_DIR"
18725#echo "    GNOME_APPLET_DIR     $GNOME_APPLET_DIR"
18726#echo "    CLI_DIR              $CLI_DIR"
18727#echo "    LIB_DIR              $LIB_DIR"
18728#echo "    DOC_DIR              $DOC_DIR"
18729echo " "
18730if test x$builddoc = xtrue ;
18731then
18732    echo "   Programs used to build documentation and/or guis "
18733    echo "   -----------------------------------------------------"
18734    show_doc_program "$DIA" "dia"  "Can't generate pictures from dia sources"
18735    show_doc_program "$CONVERT" "convert"  "Can't convert image formats"
18736    show_doc_program "$TEXI2HTML" "texi2html"  "can't generate html pages"
18737#	show_doc_program "$DVI2PS" "dvi2ps"   "can't generate ps "
18738    show_doc_program "$DVIPDF" "dvipdf"   "can't generate pdf from dvi "
18739    show_doc_program "$PS2PDF" "ps2pdf"  "can't generate pdf"
18740    show_doc_program "$EPSTOPDF" "epstopdf"  "can't generate pdf"
18741    show_doc_program "$CONVERT" "convert"  "can't generate convert between formats"
18742    show_doc_program "$MAKEINFO" "makeinfo"  "can't make info pages"
18743fi
18744
18745if test x$buildgapplet = xtrue || test x$buildgui = xtrue  ;
18746then
18747    echo "   Programs used to build guis "
18748    echo "   -----------------------------------------------------"
18749    show_doc_program "$PKGCFG"   "pkg-config"  "can't get meta info from installed packages"
18750    show_doc_program "$GTKCONF"   "gtk-config"  "can't check for header files..."
18751fi
18752echo ""
18753echo "   Building the following components "
18754echo "   -------------------------------------"
18755printf "    $INCLUDED_COMPONENTS"
18756echo " "
18757echo " "
18758if test "x$EXCLUDED_COMPONENTS" != "x" ;
18759then
18760    echo "   Excluding the following components "
18761    echo "   -------------------------------------"
18762    printf "    $EXCLUDED_COMPONENTS"
18763    echo " "
18764fi
18765echo ""
18766echo "   Static or dynamic linking for programs ($makestatic)"
18767echo "   -------------------------------------"
18768echo "BUILD_STATIC:  $BUILD_STATIC"
18769if test "x$BUILD_STATIC" != "x" ;
18770then
18771    echo "        dynamic"
18772else
18773    echo "        static"
18774fi
18775echo ""
18776echo "   Support for XInput2"
18777echo "   -------------------------------------"
18778if test "x$XNEE_XINPUT_SUPPORT_FLAGS" = "x" ;
18779then
18780    echo "        disabled"
18781else
18782    echo "        enabled"
18783fi
18784echo " "
18785echo "   Settings ok?"
18786echo "   -------------------------------------"
18787echo "    If the settings are not ok, configure again"
18788echo "       ./configure <your options>"
18789echo " "
18790echo "    To list all the configure options: "
18791echo "       ./configure --help"
18792echo " "
18793echo "   Compile and install"
18794echo "   -------------------------------------"
18795echo "    If the above settings are ok, proceed with the build:"
18796echo "       make"
18797echo "    and (perhaps as root)"
18798echo "       make install"
18799echo " "
18800
18801