1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for guichan 0.8.2.
4#
5# Report bugs to <olof.naessen@gmail.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
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.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: olof.naessen@gmail.com about your system, including any
233$0: error possibly output before this message. Then install
234$0: a modern shell, or manually run the script under such a
235$0: shell if you do have one."
236  fi
237  exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255  { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264  return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272  set +e
273  as_fn_set_status $1
274  exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283  case $as_dir in #(
284  -*) as_dir=./$as_dir;;
285  esac
286  test -d "$as_dir" || eval $as_mkdir_p || {
287    as_dirs=
288    while :; do
289      case $as_dir in #(
290      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291      *) as_qdir=$as_dir;;
292      esac
293      as_dirs="'$as_qdir' $as_dirs"
294      as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296	 X"$as_dir" : 'X\(//\)[^/]' \| \
297	 X"$as_dir" : 'X\(//\)$' \| \
298	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301	    s//\1/
302	    q
303	  }
304	  /^X\(\/\/\)[^/].*/{
305	    s//\1/
306	    q
307	  }
308	  /^X\(\/\/\)$/{
309	    s//\1/
310	    q
311	  }
312	  /^X\(\/\).*/{
313	    s//\1/
314	    q
315	  }
316	  s/.*/./; q'`
317      test -d "$as_dir" && break
318    done
319    test -z "$as_dirs" || eval "mkdir $as_dirs"
320  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331  eval 'as_fn_append ()
332  {
333    eval $1+=\$2
334  }'
335else
336  as_fn_append ()
337  {
338    eval $1=\$$1\$2
339  }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348  eval 'as_fn_arith ()
349  {
350    as_val=$(( $* ))
351  }'
352else
353  as_fn_arith ()
354  {
355    as_val=`expr "$@" || test $? -eq 1`
356  }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367  as_status=$?; test $as_status -eq 0 && as_status=1
368  if test "$3"; then
369    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371  fi
372  $as_echo "$as_me: error: $1" >&2
373  as_fn_exit $as_status
374} # as_fn_error
375
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378  as_expr=expr
379else
380  as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384  as_basename=basename
385else
386  as_basename=false
387fi
388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390  as_dirname=dirname
391else
392  as_dirname=false
393fi
394
395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397	 X"$0" : 'X\(//\)$' \| \
398	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400    sed '/^.*\/\([^/][^/]*\)\/*$/{
401	    s//\1/
402	    q
403	  }
404	  /^X\/\(\/\/\)$/{
405	    s//\1/
406	    q
407	  }
408	  /^X\/\(\/\).*/{
409	    s//\1/
410	    q
411	  }
412	  s/.*/./; q'`
413
414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427  sed -n '
428    p
429    /[$]LINENO/=
430  ' <$as_myself |
431    sed '
432      s/[$]LINENO.*/&-/
433      t lineno
434      b
435      :lineno
436      N
437      :loop
438      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439      t loop
440      s/-\n.*//
441    ' >$as_me.lineno &&
442  chmod +x "$as_me.lineno" ||
443    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445  # Don't try to exec as it changes $[0], causing all sort of problems
446  # (the dirname of $[0] is not the place where we might find the
447  # original and so on.  Autoconf is especially sensitive to this).
448  . "./$as_me.lineno"
449  # Exit status is that of the last command.
450  exit
451}
452
453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #(((((
455-n*)
456  case `echo 'xy\c'` in
457  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
458  xy)  ECHO_C='\c';;
459  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460       ECHO_T='	';;
461  esac;;
462*)
463  ECHO_N='-n';;
464esac
465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468  rm -f conf$$.dir/conf$$.file
469else
470  rm -f conf$$.dir
471  mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474  if ln -s conf$$.file conf$$ 2>/dev/null; then
475    as_ln_s='ln -s'
476    # ... but there are two gotchas:
477    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479    # In both cases, we have to default to `cp -p'.
480    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481      as_ln_s='cp -p'
482  elif ln conf$$.file conf$$ 2>/dev/null; then
483    as_ln_s=ln
484  else
485    as_ln_s='cp -p'
486  fi
487else
488  as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
494  as_mkdir_p='mkdir -p "$as_dir"'
495else
496  test -d ./-p && rmdir ./-p
497  as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501  as_test_x='test -x'
502else
503  if ls -dL / >/dev/null 2>&1; then
504    as_ls_L_option=L
505  else
506    as_ls_L_option=
507  fi
508  as_test_x='
509    eval sh -c '\''
510      if test -d "$1"; then
511	test -d "$1/.";
512      else
513	case $1 in #(
514	-*)set "./$1";;
515	esac;
516	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517	???[sx]*):;;*)false;;esac;fi
518    '\'' sh
519  '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531# Check that we are running under the correct shell.
532SHELL=${CONFIG_SHELL-/bin/sh}
533
534case X$lt_ECHO in
535X*--fallback-echo)
536  # Remove one level of quotation (which was required for Make).
537  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538  ;;
539esac
540
541ECHO=${lt_ECHO-echo}
542if test "X$1" = X--no-reexec; then
543  # Discard the --no-reexec flag, and continue.
544  shift
545elif test "X$1" = X--fallback-echo; then
546  # Avoid inline document here, it may be left over
547  :
548elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549  # Yippee, $ECHO works!
550  :
551else
552  # Restart under the correct shell.
553  exec $SHELL "$0" --no-reexec ${1+"$@"}
554fi
555
556if test "X$1" = X--fallback-echo; then
557  # used as fallback echo
558  shift
559  cat <<_LT_EOF
560$*
561_LT_EOF
562  exit 0
563fi
564
565# The HP-UX ksh and POSIX shell print the target directory to stdout
566# if CDPATH is set.
567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569if test -z "$lt_ECHO"; then
570  if test "X${echo_test_string+set}" != Xset; then
571    # find a string as large as possible, as long as the shell can cope with it
572    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576      then
577        break
578      fi
579    done
580  fi
581
582  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584     test "X$echo_testing_string" = "X$echo_test_string"; then
585    :
586  else
587    # The Solaris, AIX, and Digital Unix default echo programs unquote
588    # backslashes.  This makes it impossible to quote backslashes using
589    #   echo "$something" | sed 's/\\/\\\\/g'
590    #
591    # So, first we look for a working echo in the user's PATH.
592
593    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594    for dir in $PATH /usr/ucb; do
595      IFS="$lt_save_ifs"
596      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599         test "X$echo_testing_string" = "X$echo_test_string"; then
600        ECHO="$dir/echo"
601        break
602      fi
603    done
604    IFS="$lt_save_ifs"
605
606    if test "X$ECHO" = Xecho; then
607      # We didn't find a better echo, so look for alternatives.
608      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610         test "X$echo_testing_string" = "X$echo_test_string"; then
611        # This shell has a builtin print -r that does the trick.
612        ECHO='print -r'
613      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614	   test "X$CONFIG_SHELL" != X/bin/ksh; then
615        # If we have ksh, try running configure again with it.
616        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617        export ORIGINAL_CONFIG_SHELL
618        CONFIG_SHELL=/bin/ksh
619        export CONFIG_SHELL
620        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621      else
622        # Try using printf.
623        ECHO='printf %s\n'
624        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626	   test "X$echo_testing_string" = "X$echo_test_string"; then
627	  # Cool, printf works
628	  :
629        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630	     test "X$echo_testing_string" = 'X\t' &&
631	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632	     test "X$echo_testing_string" = "X$echo_test_string"; then
633	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634	  export CONFIG_SHELL
635	  SHELL="$CONFIG_SHELL"
636	  export SHELL
637	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
638        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639	     test "X$echo_testing_string" = 'X\t' &&
640	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641	     test "X$echo_testing_string" = "X$echo_test_string"; then
642	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
643        else
644	  # maybe with a smaller string...
645	  prev=:
646
647	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649	    then
650	      break
651	    fi
652	    prev="$cmd"
653	  done
654
655	  if test "$prev" != 'sed 50q "$0"'; then
656	    echo_test_string=`eval $prev`
657	    export echo_test_string
658	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659	  else
660	    # Oops.  We lost completely, so just stick with echo.
661	    ECHO=echo
662	  fi
663        fi
664      fi
665    fi
666  fi
667fi
668
669# Copy echo and quote the copy suitably for passing to libtool from
670# the Makefile, instead of quoting the original, which is used later.
671lt_ECHO=$ECHO
672if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674fi
675
676
677
678
679exec 7<&0 </dev/null 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME='guichan'
700PACKAGE_TARNAME='guichan'
701PACKAGE_VERSION='0.8.2'
702PACKAGE_STRING='guichan 0.8.2'
703PACKAGE_BUGREPORT='olof.naessen@gmail.com'
704PACKAGE_URL=''
705
706ac_unique_file="src/gui.cpp"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747GUICHAN_EXTRADIRS
748HAVE_SDL
749HAVE_ALLEGRO
750CXXCPP
751CPP
752OTOOL64
753OTOOL
754LIPO
755NMEDIT
756DSYMUTIL
757lt_ECHO
758RANLIB
759AR
760LN_S
761NM
762ac_ct_DUMPBIN
763DUMPBIN
764LD
765FGREP
766EGREP
767GREP
768SED
769LIBTOOL
770OBJDUMP
771DLLTOOL
772AS
773am__fastdepCC_FALSE
774am__fastdepCC_TRUE
775CCDEPMODE
776ac_ct_CC
777CFLAGS
778CC
779am__fastdepCXX_FALSE
780am__fastdepCXX_TRUE
781CXXDEPMODE
782AMDEPBACKSLASH
783AMDEP_FALSE
784AMDEP_TRUE
785am__quote
786am__include
787DEPDIR
788OBJEXT
789EXEEXT
790ac_ct_CXX
791CPPFLAGS
792LDFLAGS
793CXXFLAGS
794CXX
795am__untar
796am__tar
797AMTAR
798am__leading_dot
799SET_MAKE
800AWK
801mkdir_p
802MKDIR_P
803INSTALL_STRIP_PROGRAM
804STRIP
805install_sh
806MAKEINFO
807AUTOHEADER
808AUTOMAKE
809AUTOCONF
810ACLOCAL
811VERSION
812PACKAGE
813CYGPATH_W
814am__isrc
815INSTALL_DATA
816INSTALL_SCRIPT
817INSTALL_PROGRAM
818LT_AGE
819LT_REVISION
820LT_CURRENT
821LT_RELEASE
822GUICHAN_VERSION
823GUICHAN_BINARY_AGE
824GUICHAN_INTERFACE_AGE
825GUICHAN_MICRO_VERSION
826GUICHAN_MINOR_VERSION
827GUICHAN_MAJOR_VERSION
828target_os
829target_vendor
830target_cpu
831target
832host_os
833host_vendor
834host_cpu
835host
836build_os
837build_vendor
838build_cpu
839build
840target_alias
841host_alias
842build_alias
843LIBS
844ECHO_T
845ECHO_N
846ECHO_C
847DEFS
848mandir
849localedir
850libdir
851psdir
852pdfdir
853dvidir
854htmldir
855infodir
856docdir
857oldincludedir
858includedir
859localstatedir
860sharedstatedir
861sysconfdir
862datadir
863datarootdir
864libexecdir
865sbindir
866bindir
867program_transform_name
868prefix
869exec_prefix
870PACKAGE_URL
871PACKAGE_BUGREPORT
872PACKAGE_STRING
873PACKAGE_VERSION
874PACKAGE_TARNAME
875PACKAGE_NAME
876PATH_SEPARATOR
877SHELL'
878ac_subst_files=''
879ac_user_opts='
880enable_option_checking
881enable_dependency_tracking
882enable_shared
883enable_static
884with_pic
885enable_fast_install
886with_gnu_ld
887enable_libtool_lock
888enable_opengl
889enable_force_opengl
890enable_sdlimage
891enable_force_sdlimage
892enable_allegro
893enable_force_allegro
894enable_sdl
895enable_force_sdl
896'
897      ac_precious_vars='build_alias
898host_alias
899target_alias
900CXX
901CXXFLAGS
902LDFLAGS
903LIBS
904CPPFLAGS
905CCC
906CC
907CFLAGS
908CPP
909CXXCPP'
910
911
912# Initialize some variables set by options.
913ac_init_help=
914ac_init_version=false
915ac_unrecognized_opts=
916ac_unrecognized_sep=
917# The variables have the same names as the options, with
918# dashes changed to underlines.
919cache_file=/dev/null
920exec_prefix=NONE
921no_create=
922no_recursion=
923prefix=NONE
924program_prefix=NONE
925program_suffix=NONE
926program_transform_name=s,x,x,
927silent=
928site=
929srcdir=
930verbose=
931x_includes=NONE
932x_libraries=NONE
933
934# Installation directory options.
935# These are left unexpanded so users can "make install exec_prefix=/foo"
936# and all the variables that are supposed to be based on exec_prefix
937# by default will actually change.
938# Use braces instead of parens because sh, perl, etc. also accept them.
939# (The list follows the same order as the GNU Coding Standards.)
940bindir='${exec_prefix}/bin'
941sbindir='${exec_prefix}/sbin'
942libexecdir='${exec_prefix}/libexec'
943datarootdir='${prefix}/share'
944datadir='${datarootdir}'
945sysconfdir='${prefix}/etc'
946sharedstatedir='${prefix}/com'
947localstatedir='${prefix}/var'
948includedir='${prefix}/include'
949oldincludedir='/usr/include'
950docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951infodir='${datarootdir}/info'
952htmldir='${docdir}'
953dvidir='${docdir}'
954pdfdir='${docdir}'
955psdir='${docdir}'
956libdir='${exec_prefix}/lib'
957localedir='${datarootdir}/locale'
958mandir='${datarootdir}/man'
959
960ac_prev=
961ac_dashdash=
962for ac_option
963do
964  # If the previous option needs an argument, assign it.
965  if test -n "$ac_prev"; then
966    eval $ac_prev=\$ac_option
967    ac_prev=
968    continue
969  fi
970
971  case $ac_option in
972  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973  *)	ac_optarg=yes ;;
974  esac
975
976  # Accept the important Cygnus configure options, so we can diagnose typos.
977
978  case $ac_dashdash$ac_option in
979  --)
980    ac_dashdash=yes ;;
981
982  -bindir | --bindir | --bindi | --bind | --bin | --bi)
983    ac_prev=bindir ;;
984  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985    bindir=$ac_optarg ;;
986
987  -build | --build | --buil | --bui | --bu)
988    ac_prev=build_alias ;;
989  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990    build_alias=$ac_optarg ;;
991
992  -cache-file | --cache-file | --cache-fil | --cache-fi \
993  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994    ac_prev=cache_file ;;
995  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997    cache_file=$ac_optarg ;;
998
999  --config-cache | -C)
1000    cache_file=config.cache ;;
1001
1002  -datadir | --datadir | --datadi | --datad)
1003    ac_prev=datadir ;;
1004  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005    datadir=$ac_optarg ;;
1006
1007  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008  | --dataroo | --dataro | --datar)
1009    ac_prev=datarootdir ;;
1010  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012    datarootdir=$ac_optarg ;;
1013
1014  -disable-* | --disable-*)
1015    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018      as_fn_error "invalid feature name: $ac_useropt"
1019    ac_useropt_orig=$ac_useropt
1020    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021    case $ac_user_opts in
1022      *"
1023"enable_$ac_useropt"
1024"*) ;;
1025      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026	 ac_unrecognized_sep=', ';;
1027    esac
1028    eval enable_$ac_useropt=no ;;
1029
1030  -docdir | --docdir | --docdi | --doc | --do)
1031    ac_prev=docdir ;;
1032  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033    docdir=$ac_optarg ;;
1034
1035  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036    ac_prev=dvidir ;;
1037  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038    dvidir=$ac_optarg ;;
1039
1040  -enable-* | --enable-*)
1041    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044      as_fn_error "invalid feature name: $ac_useropt"
1045    ac_useropt_orig=$ac_useropt
1046    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047    case $ac_user_opts in
1048      *"
1049"enable_$ac_useropt"
1050"*) ;;
1051      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052	 ac_unrecognized_sep=', ';;
1053    esac
1054    eval enable_$ac_useropt=\$ac_optarg ;;
1055
1056  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058  | --exec | --exe | --ex)
1059    ac_prev=exec_prefix ;;
1060  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062  | --exec=* | --exe=* | --ex=*)
1063    exec_prefix=$ac_optarg ;;
1064
1065  -gas | --gas | --ga | --g)
1066    # Obsolete; use --with-gas.
1067    with_gas=yes ;;
1068
1069  -help | --help | --hel | --he | -h)
1070    ac_init_help=long ;;
1071  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072    ac_init_help=recursive ;;
1073  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074    ac_init_help=short ;;
1075
1076  -host | --host | --hos | --ho)
1077    ac_prev=host_alias ;;
1078  -host=* | --host=* | --hos=* | --ho=*)
1079    host_alias=$ac_optarg ;;
1080
1081  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082    ac_prev=htmldir ;;
1083  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084  | --ht=*)
1085    htmldir=$ac_optarg ;;
1086
1087  -includedir | --includedir | --includedi | --included | --include \
1088  | --includ | --inclu | --incl | --inc)
1089    ac_prev=includedir ;;
1090  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091  | --includ=* | --inclu=* | --incl=* | --inc=*)
1092    includedir=$ac_optarg ;;
1093
1094  -infodir | --infodir | --infodi | --infod | --info | --inf)
1095    ac_prev=infodir ;;
1096  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097    infodir=$ac_optarg ;;
1098
1099  -libdir | --libdir | --libdi | --libd)
1100    ac_prev=libdir ;;
1101  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102    libdir=$ac_optarg ;;
1103
1104  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105  | --libexe | --libex | --libe)
1106    ac_prev=libexecdir ;;
1107  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108  | --libexe=* | --libex=* | --libe=*)
1109    libexecdir=$ac_optarg ;;
1110
1111  -localedir | --localedir | --localedi | --localed | --locale)
1112    ac_prev=localedir ;;
1113  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114    localedir=$ac_optarg ;;
1115
1116  -localstatedir | --localstatedir | --localstatedi | --localstated \
1117  | --localstate | --localstat | --localsta | --localst | --locals)
1118    ac_prev=localstatedir ;;
1119  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121    localstatedir=$ac_optarg ;;
1122
1123  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124    ac_prev=mandir ;;
1125  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126    mandir=$ac_optarg ;;
1127
1128  -nfp | --nfp | --nf)
1129    # Obsolete; use --without-fp.
1130    with_fp=no ;;
1131
1132  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133  | --no-cr | --no-c | -n)
1134    no_create=yes ;;
1135
1136  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138    no_recursion=yes ;;
1139
1140  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142  | --oldin | --oldi | --old | --ol | --o)
1143    ac_prev=oldincludedir ;;
1144  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147    oldincludedir=$ac_optarg ;;
1148
1149  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150    ac_prev=prefix ;;
1151  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152    prefix=$ac_optarg ;;
1153
1154  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155  | --program-pre | --program-pr | --program-p)
1156    ac_prev=program_prefix ;;
1157  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159    program_prefix=$ac_optarg ;;
1160
1161  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162  | --program-suf | --program-su | --program-s)
1163    ac_prev=program_suffix ;;
1164  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166    program_suffix=$ac_optarg ;;
1167
1168  -program-transform-name | --program-transform-name \
1169  | --program-transform-nam | --program-transform-na \
1170  | --program-transform-n | --program-transform- \
1171  | --program-transform | --program-transfor \
1172  | --program-transfo | --program-transf \
1173  | --program-trans | --program-tran \
1174  | --progr-tra | --program-tr | --program-t)
1175    ac_prev=program_transform_name ;;
1176  -program-transform-name=* | --program-transform-name=* \
1177  | --program-transform-nam=* | --program-transform-na=* \
1178  | --program-transform-n=* | --program-transform-=* \
1179  | --program-transform=* | --program-transfor=* \
1180  | --program-transfo=* | --program-transf=* \
1181  | --program-trans=* | --program-tran=* \
1182  | --progr-tra=* | --program-tr=* | --program-t=*)
1183    program_transform_name=$ac_optarg ;;
1184
1185  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186    ac_prev=pdfdir ;;
1187  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188    pdfdir=$ac_optarg ;;
1189
1190  -psdir | --psdir | --psdi | --psd | --ps)
1191    ac_prev=psdir ;;
1192  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193    psdir=$ac_optarg ;;
1194
1195  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196  | -silent | --silent | --silen | --sile | --sil)
1197    silent=yes ;;
1198
1199  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200    ac_prev=sbindir ;;
1201  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202  | --sbi=* | --sb=*)
1203    sbindir=$ac_optarg ;;
1204
1205  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207  | --sharedst | --shareds | --shared | --share | --shar \
1208  | --sha | --sh)
1209    ac_prev=sharedstatedir ;;
1210  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213  | --sha=* | --sh=*)
1214    sharedstatedir=$ac_optarg ;;
1215
1216  -site | --site | --sit)
1217    ac_prev=site ;;
1218  -site=* | --site=* | --sit=*)
1219    site=$ac_optarg ;;
1220
1221  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222    ac_prev=srcdir ;;
1223  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224    srcdir=$ac_optarg ;;
1225
1226  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227  | --syscon | --sysco | --sysc | --sys | --sy)
1228    ac_prev=sysconfdir ;;
1229  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231    sysconfdir=$ac_optarg ;;
1232
1233  -target | --target | --targe | --targ | --tar | --ta | --t)
1234    ac_prev=target_alias ;;
1235  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236    target_alias=$ac_optarg ;;
1237
1238  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239    verbose=yes ;;
1240
1241  -version | --version | --versio | --versi | --vers | -V)
1242    ac_init_version=: ;;
1243
1244  -with-* | --with-*)
1245    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246    # Reject names that are not valid shell variable names.
1247    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248      as_fn_error "invalid package name: $ac_useropt"
1249    ac_useropt_orig=$ac_useropt
1250    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251    case $ac_user_opts in
1252      *"
1253"with_$ac_useropt"
1254"*) ;;
1255      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256	 ac_unrecognized_sep=', ';;
1257    esac
1258    eval with_$ac_useropt=\$ac_optarg ;;
1259
1260  -without-* | --without-*)
1261    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262    # Reject names that are not valid shell variable names.
1263    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264      as_fn_error "invalid package name: $ac_useropt"
1265    ac_useropt_orig=$ac_useropt
1266    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267    case $ac_user_opts in
1268      *"
1269"with_$ac_useropt"
1270"*) ;;
1271      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272	 ac_unrecognized_sep=', ';;
1273    esac
1274    eval with_$ac_useropt=no ;;
1275
1276  --x)
1277    # Obsolete; use --with-x.
1278    with_x=yes ;;
1279
1280  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281  | --x-incl | --x-inc | --x-in | --x-i)
1282    ac_prev=x_includes ;;
1283  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1285    x_includes=$ac_optarg ;;
1286
1287  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1288  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289    ac_prev=x_libraries ;;
1290  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1292    x_libraries=$ac_optarg ;;
1293
1294  -*) as_fn_error "unrecognized option: \`$ac_option'
1295Try \`$0 --help' for more information."
1296    ;;
1297
1298  *=*)
1299    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1300    # Reject names that are not valid shell variable names.
1301    case $ac_envvar in #(
1302      '' | [0-9]* | *[!_$as_cr_alnum]* )
1303      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1304    esac
1305    eval $ac_envvar=\$ac_optarg
1306    export $ac_envvar ;;
1307
1308  *)
1309    # FIXME: should be removed in autoconf 3.0.
1310    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1314    ;;
1315
1316  esac
1317done
1318
1319if test -n "$ac_prev"; then
1320  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1321  as_fn_error "missing argument to $ac_option"
1322fi
1323
1324if test -n "$ac_unrecognized_opts"; then
1325  case $enable_option_checking in
1326    no) ;;
1327    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1328    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329  esac
1330fi
1331
1332# Check all directory arguments for consistency.
1333for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334		datadir sysconfdir sharedstatedir localstatedir includedir \
1335		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336		libdir localedir mandir
1337do
1338  eval ac_val=\$$ac_var
1339  # Remove trailing slashes.
1340  case $ac_val in
1341    */ )
1342      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343      eval $ac_var=\$ac_val;;
1344  esac
1345  # Be sure to have absolute directory names.
1346  case $ac_val in
1347    [\\/$]* | ?:[\\/]* )  continue;;
1348    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349  esac
1350  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1351done
1352
1353# There might be people who depend on the old broken behavior: `$host'
1354# used to hold the argument of --host etc.
1355# FIXME: To remove some day.
1356build=$build_alias
1357host=$host_alias
1358target=$target_alias
1359
1360# FIXME: To remove some day.
1361if test "x$host_alias" != x; then
1362  if test "x$build_alias" = x; then
1363    cross_compiling=maybe
1364    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365    If a cross compiler is detected then cross compile mode will be used." >&2
1366  elif test "x$build_alias" != "x$host_alias"; then
1367    cross_compiling=yes
1368  fi
1369fi
1370
1371ac_tool_prefix=
1372test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373
1374test "$silent" = yes && exec 6>/dev/null
1375
1376
1377ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378ac_ls_di=`ls -di .` &&
1379ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380  as_fn_error "working directory cannot be determined"
1381test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1382  as_fn_error "pwd does not report name of working directory"
1383
1384
1385# Find the source files, if location was not specified.
1386if test -z "$srcdir"; then
1387  ac_srcdir_defaulted=yes
1388  # Try the directory containing this script, then the parent directory.
1389  ac_confdir=`$as_dirname -- "$as_myself" ||
1390$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391	 X"$as_myself" : 'X\(//\)[^/]' \| \
1392	 X"$as_myself" : 'X\(//\)$' \| \
1393	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1394$as_echo X"$as_myself" |
1395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396	    s//\1/
1397	    q
1398	  }
1399	  /^X\(\/\/\)[^/].*/{
1400	    s//\1/
1401	    q
1402	  }
1403	  /^X\(\/\/\)$/{
1404	    s//\1/
1405	    q
1406	  }
1407	  /^X\(\/\).*/{
1408	    s//\1/
1409	    q
1410	  }
1411	  s/.*/./; q'`
1412  srcdir=$ac_confdir
1413  if test ! -r "$srcdir/$ac_unique_file"; then
1414    srcdir=..
1415  fi
1416else
1417  ac_srcdir_defaulted=no
1418fi
1419if test ! -r "$srcdir/$ac_unique_file"; then
1420  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1422fi
1423ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424ac_abs_confdir=`(
1425	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1426	pwd)`
1427# When building in place, set srcdir=.
1428if test "$ac_abs_confdir" = "$ac_pwd"; then
1429  srcdir=.
1430fi
1431# Remove unnecessary trailing slashes from srcdir.
1432# Double slashes in file names in object file debugging info
1433# mess up M-x gdb in Emacs.
1434case $srcdir in
1435*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436esac
1437for ac_var in $ac_precious_vars; do
1438  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439  eval ac_env_${ac_var}_value=\$${ac_var}
1440  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442done
1443
1444#
1445# Report the --help message.
1446#
1447if test "$ac_init_help" = "long"; then
1448  # Omit some internal or obsolete options to make the list less imposing.
1449  # This message is too long to be a string in the A/UX 3.1 sh.
1450  cat <<_ACEOF
1451\`configure' configures guichan 0.8.2 to adapt to many kinds of systems.
1452
1453Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456VAR=VALUE.  See below for descriptions of some of the useful variables.
1457
1458Defaults for the options are specified in brackets.
1459
1460Configuration:
1461  -h, --help              display this help and exit
1462      --help=short        display options specific to this package
1463      --help=recursive    display the short help of all the included packages
1464  -V, --version           display version information and exit
1465  -q, --quiet, --silent   do not print \`checking...' messages
1466      --cache-file=FILE   cache test results in FILE [disabled]
1467  -C, --config-cache      alias for \`--cache-file=config.cache'
1468  -n, --no-create         do not create output files
1469      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1470
1471Installation directories:
1472  --prefix=PREFIX         install architecture-independent files in PREFIX
1473                          [$ac_default_prefix]
1474  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1475                          [PREFIX]
1476
1477By default, \`make install' will install all the files in
1478\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1479an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480for instance \`--prefix=\$HOME'.
1481
1482For better control, use the options below.
1483
1484Fine tuning of the installation directories:
1485  --bindir=DIR            user executables [EPREFIX/bin]
1486  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1487  --libexecdir=DIR        program executables [EPREFIX/libexec]
1488  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1489  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1490  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1491  --libdir=DIR            object code libraries [EPREFIX/lib]
1492  --includedir=DIR        C header files [PREFIX/include]
1493  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1494  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1495  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1496  --infodir=DIR           info documentation [DATAROOTDIR/info]
1497  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1498  --mandir=DIR            man documentation [DATAROOTDIR/man]
1499  --docdir=DIR            documentation root [DATAROOTDIR/doc/guichan]
1500  --htmldir=DIR           html documentation [DOCDIR]
1501  --dvidir=DIR            dvi documentation [DOCDIR]
1502  --pdfdir=DIR            pdf documentation [DOCDIR]
1503  --psdir=DIR             ps documentation [DOCDIR]
1504_ACEOF
1505
1506  cat <<\_ACEOF
1507
1508Program names:
1509  --program-prefix=PREFIX            prepend PREFIX to installed program names
1510  --program-suffix=SUFFIX            append SUFFIX to installed program names
1511  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1512
1513System types:
1514  --build=BUILD     configure for building on BUILD [guessed]
1515  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516  --target=TARGET   configure for building compilers for TARGET [HOST]
1517_ACEOF
1518fi
1519
1520if test -n "$ac_init_help"; then
1521  case $ac_init_help in
1522     short | recursive ) echo "Configuration of guichan 0.8.2:";;
1523   esac
1524  cat <<\_ACEOF
1525
1526Optional Features:
1527  --disable-option-checking  ignore unrecognized --enable/--with options
1528  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1529  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1530  --disable-dependency-tracking  speeds up one-time build
1531  --enable-dependency-tracking   do not reject slow dependency extractors
1532  --enable-shared[=PKGS]  build shared libraries [default=yes]
1533  --enable-static[=PKGS]  build static libraries [default=yes]
1534  --enable-fast-install[=PKGS]
1535                          optimize for fast installation [default=yes]
1536  --disable-libtool-lock  avoid locking (might break parallel builds)
1537  --enable-opengl	Enable OpenGL support default=yes
1538  --enable-force-opengl     Force OpenGL support (skip checks for OpenGL) default=no
1539  --enable-sdlimage	Enable SDL_image support default=yes
1540  --enable-force-sdlimage     Force SDL Image support (skip checks for SDL Image) default=no
1541  --enable-allegro	  Enable Allegro support default=yes
1542  --enable-force-allegro     Force Allegro support (skip checks for Allegro) default=no
1543  --enable-sdl	  Enable SDL support default=yes
1544  --enable-force-sdl     Force SDL support (skip checks for SDL) default=no
1545
1546Optional Packages:
1547  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1548  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1549  --with-pic              try to use only PIC/non-PIC objects [default=use
1550                          both]
1551  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1552
1553Some influential environment variables:
1554  CXX         C++ compiler command
1555  CXXFLAGS    C++ compiler flags
1556  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557              nonstandard directory <lib dir>
1558  LIBS        libraries to pass to the linker, e.g. -l<library>
1559  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560              you have headers in a nonstandard directory <include dir>
1561  CC          C compiler command
1562  CFLAGS      C compiler flags
1563  CPP         C preprocessor
1564  CXXCPP      C++ preprocessor
1565
1566Use these variables to override the choices made by `configure' or to help
1567it to find libraries and programs with nonstandard names/locations.
1568
1569Report bugs to <olof.naessen@gmail.com>.
1570_ACEOF
1571ac_status=$?
1572fi
1573
1574if test "$ac_init_help" = "recursive"; then
1575  # If there are subdirs, report their specific --help.
1576  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577    test -d "$ac_dir" ||
1578      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579      continue
1580    ac_builddir=.
1581
1582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
1585  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586  # A ".." for each directory in $ac_dir_suffix.
1587  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588  case $ac_top_builddir_sub in
1589  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591  esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
1597
1598case $srcdir in
1599  .)  # We are building in place.
1600    ac_srcdir=.
1601    ac_top_srcdir=$ac_top_builddir_sub
1602    ac_abs_top_srcdir=$ac_pwd ;;
1603  [\\/]* | ?:[\\/]* )  # Absolute name.
1604    ac_srcdir=$srcdir$ac_dir_suffix;
1605    ac_top_srcdir=$srcdir
1606    ac_abs_top_srcdir=$srcdir ;;
1607  *) # Relative name.
1608    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609    ac_top_srcdir=$ac_top_build_prefix$srcdir
1610    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611esac
1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614    cd "$ac_dir" || { ac_status=$?; continue; }
1615    # Check for guested configure.
1616    if test -f "$ac_srcdir/configure.gnu"; then
1617      echo &&
1618      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619    elif test -f "$ac_srcdir/configure"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure" --help=recursive
1622    else
1623      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624    fi || ac_status=$?
1625    cd "$ac_pwd" || { ac_status=$?; break; }
1626  done
1627fi
1628
1629test -n "$ac_init_help" && exit $ac_status
1630if $ac_init_version; then
1631  cat <<\_ACEOF
1632guichan configure 0.8.2
1633generated by GNU Autoconf 2.64
1634
1635Copyright (C) 2009 Free Software Foundation, Inc.
1636This configure script is free software; the Free Software Foundation
1637gives unlimited permission to copy, distribute and modify it.
1638_ACEOF
1639  exit
1640fi
1641
1642## ------------------------ ##
1643## Autoconf initialization. ##
1644## ------------------------ ##
1645
1646# ac_fn_cxx_try_compile LINENO
1647# ----------------------------
1648# Try to compile conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_cxx_try_compile ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext
1653  if { { ac_try="$ac_compile"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_compile") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669	 test -z "$ac_cxx_werror_flag" ||
1670	 test ! -s conftest.err
1671       } && test -s conftest.$ac_objext; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677	ac_retval=1
1678fi
1679  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680  return $ac_retval
1681
1682} # ac_fn_cxx_try_compile
1683
1684# ac_fn_c_try_compile LINENO
1685# --------------------------
1686# Try to compile conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_c_try_compile ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  rm -f conftest.$ac_objext
1691  if { { ac_try="$ac_compile"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_compile") 2>conftest.err
1699  ac_status=$?
1700  if test -s conftest.err; then
1701    grep -v '^ *+' conftest.err >conftest.er1
1702    cat conftest.er1 >&5
1703    mv -f conftest.er1 conftest.err
1704  fi
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } && {
1707	 test -z "$ac_c_werror_flag" ||
1708	 test ! -s conftest.err
1709       } && test -s conftest.$ac_objext; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715	ac_retval=1
1716fi
1717  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718  return $ac_retval
1719
1720} # ac_fn_c_try_compile
1721
1722# ac_fn_c_try_link LINENO
1723# -----------------------
1724# Try to link conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_link ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  rm -f conftest.$ac_objext conftest$ac_exeext
1729  if { { ac_try="$ac_link"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_link") 2>conftest.err
1737  ac_status=$?
1738  if test -s conftest.err; then
1739    grep -v '^ *+' conftest.err >conftest.er1
1740    cat conftest.er1 >&5
1741    mv -f conftest.er1 conftest.err
1742  fi
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && {
1745	 test -z "$ac_c_werror_flag" ||
1746	 test ! -s conftest.err
1747       } && test -s conftest$ac_exeext && {
1748	 test "$cross_compiling" = yes ||
1749	 $as_test_x conftest$ac_exeext
1750       }; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756	ac_retval=1
1757fi
1758  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760  # interfere with the next link command; also delete a directory that is
1761  # left behind by Apple's compiler.  We do this before executing the actions.
1762  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764  return $ac_retval
1765
1766} # ac_fn_c_try_link
1767
1768# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769# -------------------------------------------------------
1770# Tests whether HEADER exists and can be compiled using the include files in
1771# INCLUDES, setting the cache variable VAR accordingly.
1772ac_fn_c_check_header_compile ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
1777if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778  $as_echo_n "(cached) " >&6
1779else
1780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h.  */
1782$4
1783#include <$2>
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786  eval "$3=yes"
1787else
1788  eval "$3=no"
1789fi
1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796
1797} # ac_fn_c_check_header_compile
1798
1799# ac_fn_c_try_cpp LINENO
1800# ----------------------
1801# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_cpp ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  if { { ac_try="$ac_cpp conftest.$ac_ext"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813  ac_status=$?
1814  if test -s conftest.err; then
1815    grep -v '^ *+' conftest.err >conftest.er1
1816    cat conftest.er1 >&5
1817    mv -f conftest.er1 conftest.err
1818  fi
1819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } >/dev/null && {
1821	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822	 test ! -s conftest.err
1823       }; then :
1824  ac_retval=0
1825else
1826  $as_echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829    ac_retval=1
1830fi
1831  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832  return $ac_retval
1833
1834} # ac_fn_c_try_cpp
1835
1836# ac_fn_c_try_run LINENO
1837# ----------------------
1838# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1839# that executables *can* be run.
1840ac_fn_c_try_run ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  if { { ac_try="$ac_link"
1844case "(($ac_try" in
1845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846  *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850  (eval "$ac_link") 2>&5
1851  ac_status=$?
1852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854  { { case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860  (eval "$ac_try") 2>&5
1861  ac_status=$?
1862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; }; }; then :
1864  ac_retval=0
1865else
1866  $as_echo "$as_me: program exited with status $ac_status" >&5
1867       $as_echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870       ac_retval=$ac_status
1871fi
1872  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874  return $ac_retval
1875
1876} # ac_fn_c_try_run
1877
1878# ac_fn_c_check_func LINENO FUNC VAR
1879# ----------------------------------
1880# Tests whether FUNC exists, setting the cache variable VAR accordingly
1881ac_fn_c_check_func ()
1882{
1883  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887  $as_echo_n "(cached) " >&6
1888else
1889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1893#define $2 innocuous_$2
1894
1895/* System header to define __stub macros and hopefully few prototypes,
1896    which can conflict with char $2 (); below.
1897    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898    <limits.h> exists even on freestanding compilers.  */
1899
1900#ifdef __STDC__
1901# include <limits.h>
1902#else
1903# include <assert.h>
1904#endif
1905
1906#undef $2
1907
1908/* Override any GCC internal prototype to avoid an error.
1909   Use char because int might match the return type of a GCC
1910   builtin and then its argument prototype would still apply.  */
1911#ifdef __cplusplus
1912extern "C"
1913#endif
1914char $2 ();
1915/* The GNU C library defines this for functions which it implements
1916    to always fail with ENOSYS.  Some functions are actually named
1917    something starting with __ and the normal name is an alias.  */
1918#if defined __stub_$2 || defined __stub___$2
1919choke me
1920#endif
1921
1922int
1923main ()
1924{
1925return $2 ();
1926  ;
1927  return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_link "$LINENO"; then :
1931  eval "$3=yes"
1932else
1933  eval "$3=no"
1934fi
1935rm -f core conftest.err conftest.$ac_objext \
1936    conftest$ac_exeext conftest.$ac_ext
1937fi
1938eval ac_res=\$$3
1939	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940$as_echo "$ac_res" >&6; }
1941  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1942
1943} # ac_fn_c_check_func
1944
1945# ac_fn_cxx_try_cpp LINENO
1946# ------------------------
1947# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948ac_fn_cxx_try_cpp ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  if { { ac_try="$ac_cpp conftest.$ac_ext"
1952case "(($ac_try" in
1953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954  *) ac_try_echo=$ac_try;;
1955esac
1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957$as_echo "$ac_try_echo"; } >&5
1958  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959  ac_status=$?
1960  if test -s conftest.err; then
1961    grep -v '^ *+' conftest.err >conftest.er1
1962    cat conftest.er1 >&5
1963    mv -f conftest.er1 conftest.err
1964  fi
1965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966  test $ac_status = 0; } >/dev/null && {
1967	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968	 test ! -s conftest.err
1969       }; then :
1970  ac_retval=0
1971else
1972  $as_echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
1974
1975    ac_retval=1
1976fi
1977  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978  return $ac_retval
1979
1980} # ac_fn_cxx_try_cpp
1981
1982# ac_fn_cxx_try_link LINENO
1983# -------------------------
1984# Try to link conftest.$ac_ext, and return whether this succeeded.
1985ac_fn_cxx_try_link ()
1986{
1987  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988  rm -f conftest.$ac_objext conftest$ac_exeext
1989  if { { ac_try="$ac_link"
1990case "(($ac_try" in
1991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992  *) ac_try_echo=$ac_try;;
1993esac
1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995$as_echo "$ac_try_echo"; } >&5
1996  (eval "$ac_link") 2>conftest.err
1997  ac_status=$?
1998  if test -s conftest.err; then
1999    grep -v '^ *+' conftest.err >conftest.er1
2000    cat conftest.er1 >&5
2001    mv -f conftest.er1 conftest.err
2002  fi
2003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004  test $ac_status = 0; } && {
2005	 test -z "$ac_cxx_werror_flag" ||
2006	 test ! -s conftest.err
2007       } && test -s conftest$ac_exeext && {
2008	 test "$cross_compiling" = yes ||
2009	 $as_test_x conftest$ac_exeext
2010       }; then :
2011  ac_retval=0
2012else
2013  $as_echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016	ac_retval=1
2017fi
2018  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020  # interfere with the next link command; also delete a directory that is
2021  # left behind by Apple's compiler.  We do this before executing the actions.
2022  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024  return $ac_retval
2025
2026} # ac_fn_cxx_try_link
2027
2028# ac_fn_cxx_try_run LINENO
2029# ------------------------
2030# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2031# that executables *can* be run.
2032ac_fn_cxx_try_run ()
2033{
2034  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035  if { { ac_try="$ac_link"
2036case "(($ac_try" in
2037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038  *) ac_try_echo=$ac_try;;
2039esac
2040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041$as_echo "$ac_try_echo"; } >&5
2042  (eval "$ac_link") 2>&5
2043  ac_status=$?
2044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2046  { { case "(($ac_try" in
2047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048  *) ac_try_echo=$ac_try;;
2049esac
2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051$as_echo "$ac_try_echo"; } >&5
2052  (eval "$ac_try") 2>&5
2053  ac_status=$?
2054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055  test $ac_status = 0; }; }; then :
2056  ac_retval=0
2057else
2058  $as_echo "$as_me: program exited with status $ac_status" >&5
2059       $as_echo "$as_me: failed program was:" >&5
2060sed 's/^/| /' conftest.$ac_ext >&5
2061
2062       ac_retval=$ac_status
2063fi
2064  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2065  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066  return $ac_retval
2067
2068} # ac_fn_cxx_try_run
2069
2070# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2071# ---------------------------------------------------------
2072# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2073# the include files in INCLUDES and setting the cache variable VAR
2074# accordingly.
2075ac_fn_cxx_check_header_mongrel ()
2076{
2077  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080$as_echo_n "checking for $2... " >&6; }
2081if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2082  $as_echo_n "(cached) " >&6
2083fi
2084eval ac_res=\$$3
2085	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086$as_echo "$ac_res" >&6; }
2087else
2088  # Is the header compilable?
2089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2090$as_echo_n "checking $2 usability... " >&6; }
2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$4
2094#include <$2>
2095_ACEOF
2096if ac_fn_cxx_try_compile "$LINENO"; then :
2097  ac_header_compiler=yes
2098else
2099  ac_header_compiler=no
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2103$as_echo "$ac_header_compiler" >&6; }
2104
2105# Is the header present?
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2107$as_echo_n "checking $2 presence... " >&6; }
2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h.  */
2110#include <$2>
2111_ACEOF
2112if ac_fn_cxx_try_cpp "$LINENO"; then :
2113  ac_header_preproc=yes
2114else
2115  ac_header_preproc=no
2116fi
2117rm -f conftest.err conftest.$ac_ext
2118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2119$as_echo "$ac_header_preproc" >&6; }
2120
2121# So?  What about this header?
2122case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2123  yes:no: )
2124    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2125$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2126    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2127$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2128    ;;
2129  no:yes:* )
2130    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2131$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2132    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2133$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2134    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2135$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2136    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2137$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2138    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2140( cat <<\_ASBOX
2141## ------------------------------------- ##
2142## Report this to olof.naessen@gmail.com ##
2143## ------------------------------------- ##
2144_ASBOX
2145     ) | sed "s/^/$as_me: WARNING:     /" >&2
2146    ;;
2147esac
2148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149$as_echo_n "checking for $2... " >&6; }
2150if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2151  $as_echo_n "(cached) " >&6
2152else
2153  eval "$3=\$ac_header_compiler"
2154fi
2155eval ac_res=\$$3
2156	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157$as_echo "$ac_res" >&6; }
2158fi
2159  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2160
2161} # ac_fn_cxx_check_header_mongrel
2162cat >config.log <<_ACEOF
2163This file contains any messages produced by compilers while
2164running configure, to aid debugging if configure makes a mistake.
2165
2166It was created by guichan $as_me 0.8.2, which was
2167generated by GNU Autoconf 2.64.  Invocation command line was
2168
2169  $ $0 $@
2170
2171_ACEOF
2172exec 5>>config.log
2173{
2174cat <<_ASUNAME
2175## --------- ##
2176## Platform. ##
2177## --------- ##
2178
2179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2187
2188/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2189/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2192/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2193/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2194/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2195
2196_ASUNAME
2197
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201  IFS=$as_save_IFS
2202  test -z "$as_dir" && as_dir=.
2203    $as_echo "PATH: $as_dir"
2204  done
2205IFS=$as_save_IFS
2206
2207} >&5
2208
2209cat >&5 <<_ACEOF
2210
2211
2212## ----------- ##
2213## Core tests. ##
2214## ----------- ##
2215
2216_ACEOF
2217
2218
2219# Keep a trace of the command line.
2220# Strip out --no-create and --no-recursion so they do not pile up.
2221# Strip out --silent because we don't want to record it for future runs.
2222# Also quote any args containing shell meta-characters.
2223# Make two passes to allow for proper duplicate-argument suppression.
2224ac_configure_args=
2225ac_configure_args0=
2226ac_configure_args1=
2227ac_must_keep_next=false
2228for ac_pass in 1 2
2229do
2230  for ac_arg
2231  do
2232    case $ac_arg in
2233    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235    | -silent | --silent | --silen | --sile | --sil)
2236      continue ;;
2237    *\'*)
2238      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239    esac
2240    case $ac_pass in
2241    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2242    2)
2243      as_fn_append ac_configure_args1 " '$ac_arg'"
2244      if test $ac_must_keep_next = true; then
2245	ac_must_keep_next=false # Got value, back to normal.
2246      else
2247	case $ac_arg in
2248	  *=* | --config-cache | -C | -disable-* | --disable-* \
2249	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251	  | -with-* | --with-* | -without-* | --without-* | --x)
2252	    case "$ac_configure_args0 " in
2253	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254	    esac
2255	    ;;
2256	  -* ) ac_must_keep_next=true ;;
2257	esac
2258      fi
2259      as_fn_append ac_configure_args " '$ac_arg'"
2260      ;;
2261    esac
2262  done
2263done
2264{ ac_configure_args0=; unset ac_configure_args0;}
2265{ ac_configure_args1=; unset ac_configure_args1;}
2266
2267# When interrupted or exit'd, cleanup temporary files, and complete
2268# config.log.  We remove comments because anyway the quotes in there
2269# would cause problems or look ugly.
2270# WARNING: Use '\'' to represent an apostrophe within the trap.
2271# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272trap 'exit_status=$?
2273  # Save into config.log some information that might help in debugging.
2274  {
2275    echo
2276
2277    cat <<\_ASBOX
2278## ---------------- ##
2279## Cache variables. ##
2280## ---------------- ##
2281_ASBOX
2282    echo
2283    # The following way of writing the cache mishandles newlines in values,
2284(
2285  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2286    eval ac_val=\$$ac_var
2287    case $ac_val in #(
2288    *${as_nl}*)
2289      case $ac_var in #(
2290      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292      esac
2293      case $ac_var in #(
2294      _ | IFS | as_nl) ;; #(
2295      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296      *) { eval $ac_var=; unset $ac_var;} ;;
2297      esac ;;
2298    esac
2299  done
2300  (set) 2>&1 |
2301    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2302    *${as_nl}ac_space=\ *)
2303      sed -n \
2304	"s/'\''/'\''\\\\'\'''\''/g;
2305	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306      ;; #(
2307    *)
2308      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2309      ;;
2310    esac |
2311    sort
2312)
2313    echo
2314
2315    cat <<\_ASBOX
2316## ----------------- ##
2317## Output variables. ##
2318## ----------------- ##
2319_ASBOX
2320    echo
2321    for ac_var in $ac_subst_vars
2322    do
2323      eval ac_val=\$$ac_var
2324      case $ac_val in
2325      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326      esac
2327      $as_echo "$ac_var='\''$ac_val'\''"
2328    done | sort
2329    echo
2330
2331    if test -n "$ac_subst_files"; then
2332      cat <<\_ASBOX
2333## ------------------- ##
2334## File substitutions. ##
2335## ------------------- ##
2336_ASBOX
2337      echo
2338      for ac_var in $ac_subst_files
2339      do
2340	eval ac_val=\$$ac_var
2341	case $ac_val in
2342	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343	esac
2344	$as_echo "$ac_var='\''$ac_val'\''"
2345      done | sort
2346      echo
2347    fi
2348
2349    if test -s confdefs.h; then
2350      cat <<\_ASBOX
2351## ----------- ##
2352## confdefs.h. ##
2353## ----------- ##
2354_ASBOX
2355      echo
2356      cat confdefs.h
2357      echo
2358    fi
2359    test "$ac_signal" != 0 &&
2360      $as_echo "$as_me: caught signal $ac_signal"
2361    $as_echo "$as_me: exit $exit_status"
2362  } >&5
2363  rm -f core *.core core.conftest.* &&
2364    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2365    exit $exit_status
2366' 0
2367for ac_signal in 1 2 13 15; do
2368  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2369done
2370ac_signal=0
2371
2372# confdefs.h avoids OS command line length limits that DEFS can exceed.
2373rm -f -r conftest* confdefs.h
2374
2375$as_echo "/* confdefs.h */" > confdefs.h
2376
2377# Predefined preprocessor variables.
2378
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_NAME "$PACKAGE_NAME"
2381_ACEOF
2382
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2385_ACEOF
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_VERSION "$PACKAGE_VERSION"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_STRING "$PACKAGE_STRING"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_URL "$PACKAGE_URL"
2401_ACEOF
2402
2403
2404# Let the site file select an alternate cache file if it wants to.
2405# Prefer an explicitly selected file to automatically selected ones.
2406ac_site_file1=NONE
2407ac_site_file2=NONE
2408if test -n "$CONFIG_SITE"; then
2409  ac_site_file1=$CONFIG_SITE
2410elif test "x$prefix" != xNONE; then
2411  ac_site_file1=$prefix/share/config.site
2412  ac_site_file2=$prefix/etc/config.site
2413else
2414  ac_site_file1=$ac_default_prefix/share/config.site
2415  ac_site_file2=$ac_default_prefix/etc/config.site
2416fi
2417for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2418do
2419  test "x$ac_site_file" = xNONE && continue
2420  if test -r "$ac_site_file"; then
2421    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2422$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2423    sed 's/^/| /' "$ac_site_file" >&5
2424    . "$ac_site_file"
2425  fi
2426done
2427
2428if test -r "$cache_file"; then
2429  # Some versions of bash will fail to source /dev/null (special
2430  # files actually), so we avoid doing that.
2431  if test -f "$cache_file"; then
2432    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2433$as_echo "$as_me: loading cache $cache_file" >&6;}
2434    case $cache_file in
2435      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2436      *)                      . "./$cache_file";;
2437    esac
2438  fi
2439else
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2441$as_echo "$as_me: creating cache $cache_file" >&6;}
2442  >$cache_file
2443fi
2444
2445# Check that the precious variables saved in the cache have kept the same
2446# value.
2447ac_cache_corrupted=false
2448for ac_var in $ac_precious_vars; do
2449  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2450  eval ac_new_set=\$ac_env_${ac_var}_set
2451  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2452  eval ac_new_val=\$ac_env_${ac_var}_value
2453  case $ac_old_set,$ac_new_set in
2454    set,)
2455      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2456$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2457      ac_cache_corrupted=: ;;
2458    ,set)
2459      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2460$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2461      ac_cache_corrupted=: ;;
2462    ,);;
2463    *)
2464      if test "x$ac_old_val" != "x$ac_new_val"; then
2465	# differences in whitespace do not lead to failure.
2466	ac_old_val_w=`echo x $ac_old_val`
2467	ac_new_val_w=`echo x $ac_new_val`
2468	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2469	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2470$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2471	  ac_cache_corrupted=:
2472	else
2473	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2474$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2475	  eval $ac_var=\$ac_old_val
2476	fi
2477	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2478$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2479	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2480$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2481      fi;;
2482  esac
2483  # Pass precious variables to config.status.
2484  if test "$ac_new_set" = set; then
2485    case $ac_new_val in
2486    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2487    *) ac_arg=$ac_var=$ac_new_val ;;
2488    esac
2489    case " $ac_configure_args " in
2490      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2491      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2492    esac
2493  fi
2494done
2495if $ac_cache_corrupted; then
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2500  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501fi
2502## -------------------- ##
2503## Main body of script. ##
2504## -------------------- ##
2505
2506ac_ext=c
2507ac_cpp='$CPP $CPPFLAGS'
2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511
2512
2513
2514ac_aux_dir=
2515for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2516  for ac_t in install-sh install.sh shtool; do
2517    if test -f "$ac_dir/$ac_t"; then
2518      ac_aux_dir=$ac_dir
2519      ac_install_sh="$ac_aux_dir/$ac_t -c"
2520      break 2
2521    fi
2522  done
2523done
2524if test -z "$ac_aux_dir"; then
2525  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2526fi
2527
2528# These three variables are undocumented and unsupported,
2529# and are intended to be withdrawn in a future Autoconf release.
2530# They can cause serious problems if a builder's source tree is in a directory
2531# whose full name contains unusual characters.
2532ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2533ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2534ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2535
2536
2537# Make sure we can run config.sub.
2538$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2539  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2540
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2542$as_echo_n "checking build system type... " >&6; }
2543if test "${ac_cv_build+set}" = set; then :
2544  $as_echo_n "(cached) " >&6
2545else
2546  ac_build_alias=$build_alias
2547test "x$ac_build_alias" = x &&
2548  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2549test "x$ac_build_alias" = x &&
2550  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2551ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2552  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2553
2554fi
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2556$as_echo "$ac_cv_build" >&6; }
2557case $ac_cv_build in
2558*-*-*) ;;
2559*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2560esac
2561build=$ac_cv_build
2562ac_save_IFS=$IFS; IFS='-'
2563set x $ac_cv_build
2564shift
2565build_cpu=$1
2566build_vendor=$2
2567shift; shift
2568# Remember, the first character of IFS is used to create $*,
2569# except with old shells:
2570build_os=$*
2571IFS=$ac_save_IFS
2572case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2573
2574
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2576$as_echo_n "checking host system type... " >&6; }
2577if test "${ac_cv_host+set}" = set; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  if test "x$host_alias" = x; then
2581  ac_cv_host=$ac_cv_build
2582else
2583  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2584    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2585fi
2586
2587fi
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2589$as_echo "$ac_cv_host" >&6; }
2590case $ac_cv_host in
2591*-*-*) ;;
2592*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2593esac
2594host=$ac_cv_host
2595ac_save_IFS=$IFS; IFS='-'
2596set x $ac_cv_host
2597shift
2598host_cpu=$1
2599host_vendor=$2
2600shift; shift
2601# Remember, the first character of IFS is used to create $*,
2602# except with old shells:
2603host_os=$*
2604IFS=$ac_save_IFS
2605case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2606
2607
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2609$as_echo_n "checking target system type... " >&6; }
2610if test "${ac_cv_target+set}" = set; then :
2611  $as_echo_n "(cached) " >&6
2612else
2613  if test "x$target_alias" = x; then
2614  ac_cv_target=$ac_cv_host
2615else
2616  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2617    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2618fi
2619
2620fi
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2622$as_echo "$ac_cv_target" >&6; }
2623case $ac_cv_target in
2624*-*-*) ;;
2625*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2626esac
2627target=$ac_cv_target
2628ac_save_IFS=$IFS; IFS='-'
2629set x $ac_cv_target
2630shift
2631target_cpu=$1
2632target_vendor=$2
2633shift; shift
2634# Remember, the first character of IFS is used to create $*,
2635# except with old shells:
2636target_os=$*
2637IFS=$ac_save_IFS
2638case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2639
2640
2641# The aliases save the names the user supplied, while $host etc.
2642# will get canonicalized.
2643test -n "$target_alias" &&
2644  test "$program_prefix$program_suffix$program_transform_name" = \
2645    NONENONEs,x,x, &&
2646  program_prefix=${target_alias}-
2647
2648
2649
2650ALLEGRO="disabled"
2651OPENGL="disabled"
2652SDL="disabled"
2653SDLIMAGE="disabled"
2654
2655GUICHAN_MAJOR_VERSION=0
2656GUICHAN_MINOR_VERSION=8
2657GUICHAN_MICRO_VERSION=2
2658GUICHAN_INTERFACE_AGE=0
2659GUICHAN_BINARY_AGE=1
2660GUICHAN_VERSION=$GUICHAN_MAJOR_VERSION.$GUICHAN_MINOR_VERSION.$GUICHAN_MICRO_VERSION
2661
2662
2663
2664
2665
2666
2667
2668
2669LT_RELEASE=$GUICHAN_MAJOR_VERSION.$GUICHAN_MINOR_VERSION.1
2670LT_CURRENT=`expr $GUICHAN_MICRO_VERSION - $GUICHAN_INTERFACE_AGE`
2671LT_REVISION=$GUICHAN_INTERFACE_AGE
2672LT_AGE=`expr $GUICHAN_BINARY_AGE - $GUICHAN_INTERFACE_AGE`
2673
2674
2675
2676
2677
2678
2679am__api_version='1.11'
2680
2681# Find a good install program.  We prefer a C program (faster),
2682# so one script is as good as another.  But avoid the broken or
2683# incompatible versions:
2684# SysV /etc/install, /usr/sbin/install
2685# SunOS /usr/etc/install
2686# IRIX /sbin/install
2687# AIX /bin/install
2688# AmigaOS /C/install, which installs bootblocks on floppy discs
2689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2690# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2692# OS/2's system install, which has a completely different semantic
2693# ./install, which can be erroneously created by make from ./install.sh.
2694# Reject install programs that cannot install multiple files.
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2696$as_echo_n "checking for a BSD-compatible install... " >&6; }
2697if test -z "$INSTALL"; then
2698if test "${ac_cv_path_install+set}" = set; then :
2699  $as_echo_n "(cached) " >&6
2700else
2701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706    # Account for people who put trailing slashes in PATH elements.
2707case $as_dir/ in #((
2708  ./ | .// | /[cC]/* | \
2709  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2710  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2711  /usr/ucb/* ) ;;
2712  *)
2713    # OSF1 and SCO ODT 3.0 have their own names for install.
2714    # Don't use installbsd from OSF since it installs stuff as root
2715    # by default.
2716    for ac_prog in ginstall scoinst install; do
2717      for ac_exec_ext in '' $ac_executable_extensions; do
2718	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2719	  if test $ac_prog = install &&
2720	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721	    # AIX install.  It has an incompatible calling convention.
2722	    :
2723	  elif test $ac_prog = install &&
2724	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725	    # program-specific install script used by HP pwplus--don't use.
2726	    :
2727	  else
2728	    rm -rf conftest.one conftest.two conftest.dir
2729	    echo one > conftest.one
2730	    echo two > conftest.two
2731	    mkdir conftest.dir
2732	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2733	      test -s conftest.one && test -s conftest.two &&
2734	      test -s conftest.dir/conftest.one &&
2735	      test -s conftest.dir/conftest.two
2736	    then
2737	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2738	      break 3
2739	    fi
2740	  fi
2741	fi
2742      done
2743    done
2744    ;;
2745esac
2746
2747  done
2748IFS=$as_save_IFS
2749
2750rm -rf conftest.one conftest.two conftest.dir
2751
2752fi
2753  if test "${ac_cv_path_install+set}" = set; then
2754    INSTALL=$ac_cv_path_install
2755  else
2756    # As a last resort, use the slow shell script.  Don't cache a
2757    # value for INSTALL within a source directory, because that will
2758    # break other packages using the cache if that directory is
2759    # removed, or if the value is a relative name.
2760    INSTALL=$ac_install_sh
2761  fi
2762fi
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2764$as_echo "$INSTALL" >&6; }
2765
2766# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2767# It thinks the first close brace ends the variable substitution.
2768test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2769
2770test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2771
2772test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2773
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2775$as_echo_n "checking whether build environment is sane... " >&6; }
2776# Just in case
2777sleep 1
2778echo timestamp > conftest.file
2779# Reject unsafe characters in $srcdir or the absolute working directory
2780# name.  Accept space and tab only in the latter.
2781am_lf='
2782'
2783case `pwd` in
2784  *[\\\"\#\$\&\'\`$am_lf]*)
2785    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2786esac
2787case $srcdir in
2788  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2789    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2790esac
2791
2792# Do `set' in a subshell so we don't clobber the current shell's
2793# arguments.  Must try -L first in case configure is actually a
2794# symlink; some systems play weird games with the mod time of symlinks
2795# (eg FreeBSD returns the mod time of the symlink's containing
2796# directory).
2797if (
2798   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2799   if test "$*" = "X"; then
2800      # -L didn't work.
2801      set X `ls -t "$srcdir/configure" conftest.file`
2802   fi
2803   rm -f conftest.file
2804   if test "$*" != "X $srcdir/configure conftest.file" \
2805      && test "$*" != "X conftest.file $srcdir/configure"; then
2806
2807      # If neither matched, then we have a broken ls.  This can happen
2808      # if, for instance, CONFIG_SHELL is bash and it inherits a
2809      # broken ls alias from the environment.  This has actually
2810      # happened.  Such a system could not be considered "sane".
2811      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2812alias in your environment" "$LINENO" 5
2813   fi
2814
2815   test "$2" = conftest.file
2816   )
2817then
2818   # Ok.
2819   :
2820else
2821   as_fn_error "newly created file is older than distributed files!
2822Check your system clock" "$LINENO" 5
2823fi
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2825$as_echo "yes" >&6; }
2826test "$program_prefix" != NONE &&
2827  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2828# Use a double $ so make ignores it.
2829test "$program_suffix" != NONE &&
2830  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2831# Double any \ or $.
2832# By default was `s,x,x', remove it if useless.
2833ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2834program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2835
2836# expand $ac_aux_dir to an absolute path
2837am_aux_dir=`cd $ac_aux_dir && pwd`
2838
2839if test x"${MISSING+set}" != xset; then
2840  case $am_aux_dir in
2841  *\ * | *\	*)
2842    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2843  *)
2844    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2845  esac
2846fi
2847# Use eval to expand $SHELL
2848if eval "$MISSING --run true"; then
2849  am_missing_run="$MISSING --run "
2850else
2851  am_missing_run=
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2853$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2854fi
2855
2856if test x"${install_sh}" != xset; then
2857  case $am_aux_dir in
2858  *\ * | *\	*)
2859    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2860  *)
2861    install_sh="\${SHELL} $am_aux_dir/install-sh"
2862  esac
2863fi
2864
2865# Installed binaries are usually stripped using `strip' when the user
2866# run `make install-strip'.  However `strip' might not be the right
2867# tool to use in cross-compilation environments, therefore Automake
2868# will honor the `STRIP' environment variable to overrule this program.
2869if test "$cross_compiling" != no; then
2870  if test -n "$ac_tool_prefix"; then
2871  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}strip; ac_word=$2
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if test "${ac_cv_prog_STRIP+set}" = set; then :
2876  $as_echo_n "(cached) " >&6
2877else
2878  if test -n "$STRIP"; then
2879  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  test -z "$as_dir" && as_dir=.
2886    for ac_exec_ext in '' $ac_executable_extensions; do
2887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890    break 2
2891  fi
2892done
2893  done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
2898STRIP=$ac_cv_prog_STRIP
2899if test -n "$STRIP"; then
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2901$as_echo "$STRIP" >&6; }
2902else
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907
2908fi
2909if test -z "$ac_cv_prog_STRIP"; then
2910  ac_ct_STRIP=$STRIP
2911  # Extract the first word of "strip", so it can be a program name with args.
2912set dummy strip; ac_word=$2
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2916  $as_echo_n "(cached) " >&6
2917else
2918  if test -n "$ac_ct_STRIP"; then
2919  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926    for ac_exec_ext in '' $ac_executable_extensions; do
2927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928    ac_cv_prog_ac_ct_STRIP="strip"
2929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933  done
2934IFS=$as_save_IFS
2935
2936fi
2937fi
2938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2939if test -n "$ac_ct_STRIP"; then
2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2941$as_echo "$ac_ct_STRIP" >&6; }
2942else
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947  if test "x$ac_ct_STRIP" = x; then
2948    STRIP=":"
2949  else
2950    case $cross_compiling:$ac_tool_warned in
2951yes:)
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954ac_tool_warned=yes ;;
2955esac
2956    STRIP=$ac_ct_STRIP
2957  fi
2958else
2959  STRIP="$ac_cv_prog_STRIP"
2960fi
2961
2962fi
2963INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2964
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2966$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2967if test -z "$MKDIR_P"; then
2968  if test "${ac_cv_path_mkdir+set}" = set; then :
2969  $as_echo_n "(cached) " >&6
2970else
2971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2973do
2974  IFS=$as_save_IFS
2975  test -z "$as_dir" && as_dir=.
2976    for ac_prog in mkdir gmkdir; do
2977	 for ac_exec_ext in '' $ac_executable_extensions; do
2978	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2979	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2980	     'mkdir (GNU coreutils) '* | \
2981	     'mkdir (coreutils) '* | \
2982	     'mkdir (fileutils) '4.1*)
2983	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2984	       break 3;;
2985	   esac
2986	 done
2987       done
2988  done
2989IFS=$as_save_IFS
2990
2991fi
2992
2993  if test "${ac_cv_path_mkdir+set}" = set; then
2994    MKDIR_P="$ac_cv_path_mkdir -p"
2995  else
2996    # As a last resort, use the slow shell script.  Don't cache a
2997    # value for MKDIR_P within a source directory, because that will
2998    # break other packages using the cache if that directory is
2999    # removed, or if the value is a relative name.
3000    test -d ./--version && rmdir ./--version
3001    MKDIR_P="$ac_install_sh -d"
3002  fi
3003fi
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3005$as_echo "$MKDIR_P" >&6; }
3006
3007mkdir_p="$MKDIR_P"
3008case $mkdir_p in
3009  [\\/$]* | ?:[\\/]*) ;;
3010  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3011esac
3012
3013for ac_prog in gawk mawk nawk awk
3014do
3015  # Extract the first word of "$ac_prog", so it can be a program name with args.
3016set dummy $ac_prog; ac_word=$2
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018$as_echo_n "checking for $ac_word... " >&6; }
3019if test "${ac_cv_prog_AWK+set}" = set; then :
3020  $as_echo_n "(cached) " >&6
3021else
3022  if test -n "$AWK"; then
3023  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3024else
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028  IFS=$as_save_IFS
3029  test -z "$as_dir" && as_dir=.
3030    for ac_exec_ext in '' $ac_executable_extensions; do
3031  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032    ac_cv_prog_AWK="$ac_prog"
3033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034    break 2
3035  fi
3036done
3037  done
3038IFS=$as_save_IFS
3039
3040fi
3041fi
3042AWK=$ac_cv_prog_AWK
3043if test -n "$AWK"; then
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3045$as_echo "$AWK" >&6; }
3046else
3047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
3049fi
3050
3051
3052  test -n "$AWK" && break
3053done
3054
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3056$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3057set x ${MAKE-make}
3058ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3059if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3060  $as_echo_n "(cached) " >&6
3061else
3062  cat >conftest.make <<\_ACEOF
3063SHELL = /bin/sh
3064all:
3065	@echo '@@@%%%=$(MAKE)=@@@%%%'
3066_ACEOF
3067# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3068case `${MAKE-make} -f conftest.make 2>/dev/null` in
3069  *@@@%%%=?*=@@@%%%*)
3070    eval ac_cv_prog_make_${ac_make}_set=yes;;
3071  *)
3072    eval ac_cv_prog_make_${ac_make}_set=no;;
3073esac
3074rm -f conftest.make
3075fi
3076if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3078$as_echo "yes" >&6; }
3079  SET_MAKE=
3080else
3081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082$as_echo "no" >&6; }
3083  SET_MAKE="MAKE=${MAKE-make}"
3084fi
3085
3086rm -rf .tst 2>/dev/null
3087mkdir .tst 2>/dev/null
3088if test -d .tst; then
3089  am__leading_dot=.
3090else
3091  am__leading_dot=_
3092fi
3093rmdir .tst 2>/dev/null
3094
3095if test "`cd $srcdir && pwd`" != "`pwd`"; then
3096  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3097  # is not polluted with repeated "-I."
3098  am__isrc=' -I$(srcdir)'
3099  # test to see if srcdir already configured
3100  if test -f $srcdir/config.status; then
3101    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3102  fi
3103fi
3104
3105# test whether we have cygpath
3106if test -z "$CYGPATH_W"; then
3107  if (cygpath --version) >/dev/null 2>/dev/null; then
3108    CYGPATH_W='cygpath -w'
3109  else
3110    CYGPATH_W=echo
3111  fi
3112fi
3113
3114
3115# Define the identity of the package.
3116 PACKAGE=guichan
3117 VERSION=$GUICHAN_VERSION
3118
3119
3120cat >>confdefs.h <<_ACEOF
3121#define PACKAGE "$PACKAGE"
3122_ACEOF
3123
3124
3125cat >>confdefs.h <<_ACEOF
3126#define VERSION "$VERSION"
3127_ACEOF
3128
3129# Some tools Automake needs.
3130
3131ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3132
3133
3134AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3135
3136
3137AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3138
3139
3140AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3141
3142
3143MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3144
3145# We need awk for the "check" target.  The system "awk" is bad on
3146# some platforms.
3147# Always define AMTAR for backward compatibility.
3148
3149AMTAR=${AMTAR-"${am_missing_run}tar"}
3150
3151am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3152
3153
3154
3155
3156
3157ac_config_headers="$ac_config_headers include/config.hpp"
3158
3159
3160
3161
3162ac_ext=cpp
3163ac_cpp='$CXXCPP $CPPFLAGS'
3164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3167if test -z "$CXX"; then
3168  if test -n "$CCC"; then
3169    CXX=$CCC
3170  else
3171    if test -n "$ac_tool_prefix"; then
3172  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3173  do
3174    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
3178if test "${ac_cv_prog_CXX+set}" = set; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181  if test -n "$CXX"; then
3182  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3183else
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187  IFS=$as_save_IFS
3188  test -z "$as_dir" && as_dir=.
3189    for ac_exec_ext in '' $ac_executable_extensions; do
3190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193    break 2
3194  fi
3195done
3196  done
3197IFS=$as_save_IFS
3198
3199fi
3200fi
3201CXX=$ac_cv_prog_CXX
3202if test -n "$CXX"; then
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3204$as_echo "$CXX" >&6; }
3205else
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208fi
3209
3210
3211    test -n "$CXX" && break
3212  done
3213fi
3214if test -z "$CXX"; then
3215  ac_ct_CXX=$CXX
3216  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3217do
3218  # Extract the first word of "$ac_prog", so it can be a program name with args.
3219set dummy $ac_prog; ac_word=$2
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221$as_echo_n "checking for $ac_word... " >&6; }
3222if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3223  $as_echo_n "(cached) " >&6
3224else
3225  if test -n "$ac_ct_CXX"; then
3226  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231  IFS=$as_save_IFS
3232  test -z "$as_dir" && as_dir=.
3233    for ac_exec_ext in '' $ac_executable_extensions; do
3234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235    ac_cv_prog_ac_ct_CXX="$ac_prog"
3236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237    break 2
3238  fi
3239done
3240  done
3241IFS=$as_save_IFS
3242
3243fi
3244fi
3245ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3246if test -n "$ac_ct_CXX"; then
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3248$as_echo "$ac_ct_CXX" >&6; }
3249else
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
3252fi
3253
3254
3255  test -n "$ac_ct_CXX" && break
3256done
3257
3258  if test "x$ac_ct_CXX" = x; then
3259    CXX="g++"
3260  else
3261    case $cross_compiling:$ac_tool_warned in
3262yes:)
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265ac_tool_warned=yes ;;
3266esac
3267    CXX=$ac_ct_CXX
3268  fi
3269fi
3270
3271  fi
3272fi
3273# Provide some information about the compiler.
3274$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3275set X $ac_compile
3276ac_compiler=$2
3277for ac_option in --version -v -V -qversion; do
3278  { { ac_try="$ac_compiler $ac_option >&5"
3279case "(($ac_try" in
3280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281  *) ac_try_echo=$ac_try;;
3282esac
3283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284$as_echo "$ac_try_echo"; } >&5
3285  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3286  ac_status=$?
3287  if test -s conftest.err; then
3288    sed '10a\
3289... rest of stderr output deleted ...
3290         10q' conftest.err >conftest.er1
3291    cat conftest.er1 >&5
3292    rm -f conftest.er1 conftest.err
3293  fi
3294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295  test $ac_status = 0; }
3296done
3297
3298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299/* end confdefs.h.  */
3300#include <stdio.h>
3301int
3302main ()
3303{
3304FILE *f = fopen ("conftest.out", "w");
3305 return ferror (f) || fclose (f) != 0;
3306
3307  ;
3308  return 0;
3309}
3310_ACEOF
3311ac_clean_files_save=$ac_clean_files
3312ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3313# Try to create an executable without -o first, disregard a.out.
3314# It will help us diagnose broken compilers, and finding out an intuition
3315# of exeext.
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3317$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3318ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3319
3320# The possible output files:
3321ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3322
3323ac_rmfiles=
3324for ac_file in $ac_files
3325do
3326  case $ac_file in
3327    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3328    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3329  esac
3330done
3331rm -f $ac_rmfiles
3332
3333if { { ac_try="$ac_link_default"
3334case "(($ac_try" in
3335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336  *) ac_try_echo=$ac_try;;
3337esac
3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339$as_echo "$ac_try_echo"; } >&5
3340  (eval "$ac_link_default") 2>&5
3341  ac_status=$?
3342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343  test $ac_status = 0; }; then :
3344  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3345# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3346# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3347# so that the user can short-circuit this test for compilers unknown to
3348# Autoconf.
3349for ac_file in $ac_files ''
3350do
3351  test -f "$ac_file" || continue
3352  case $ac_file in
3353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3354	;;
3355    [ab].out )
3356	# We found the default executable, but exeext='' is most
3357	# certainly right.
3358	break;;
3359    *.* )
3360	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3361	then :; else
3362	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363	fi
3364	# We set ac_cv_exeext here because the later test for it is not
3365	# safe: cross compilers may not add the suffix if given an `-o'
3366	# argument, so we may need to know it at that point already.
3367	# Even if this section looks crufty: it has the advantage of
3368	# actually working.
3369	break;;
3370    * )
3371	break;;
3372  esac
3373done
3374test "$ac_cv_exeext" = no && ac_cv_exeext=
3375
3376else
3377  ac_file=''
3378fi
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3380$as_echo "$ac_file" >&6; }
3381if test -z "$ac_file"; then :
3382  $as_echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
3385{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387{ as_fn_set_status 77
3388as_fn_error "C++ compiler cannot create executables
3389See \`config.log' for more details." "$LINENO" 5; }; }
3390fi
3391ac_exeext=$ac_cv_exeext
3392
3393# Check that the compiler produces executables we can run.  If not, either
3394# the compiler is broken, or we cross compile.
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3396$as_echo_n "checking whether the C++ compiler works... " >&6; }
3397# If not cross compiling, check that we can run a simple program.
3398if test "$cross_compiling" != yes; then
3399  if { ac_try='./$ac_file'
3400  { { case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405$as_echo "$ac_try_echo"; } >&5
3406  (eval "$ac_try") 2>&5
3407  ac_status=$?
3408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409  test $ac_status = 0; }; }; then
3410    cross_compiling=no
3411  else
3412    if test "$cross_compiling" = maybe; then
3413	cross_compiling=yes
3414    else
3415	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417as_fn_error "cannot run C++ compiled programs.
3418If you meant to cross compile, use \`--host'.
3419See \`config.log' for more details." "$LINENO" 5; }
3420    fi
3421  fi
3422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3424$as_echo "yes" >&6; }
3425
3426rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3427ac_clean_files=$ac_clean_files_save
3428# Check that the compiler produces executables we can run.  If not, either
3429# the compiler is broken, or we cross compile.
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3431$as_echo_n "checking whether we are cross compiling... " >&6; }
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3433$as_echo "$cross_compiling" >&6; }
3434
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3436$as_echo_n "checking for suffix of executables... " >&6; }
3437if { { ac_try="$ac_link"
3438case "(($ac_try" in
3439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440  *) ac_try_echo=$ac_try;;
3441esac
3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
3444  (eval "$ac_link") 2>&5
3445  ac_status=$?
3446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447  test $ac_status = 0; }; then :
3448  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3449# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3450# work properly (i.e., refer to `conftest.exe'), while it won't with
3451# `rm'.
3452for ac_file in conftest.exe conftest conftest.*; do
3453  test -f "$ac_file" || continue
3454  case $ac_file in
3455    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3456    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457	  break;;
3458    * ) break;;
3459  esac
3460done
3461else
3462  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464as_fn_error "cannot compute suffix of executables: cannot compile and link
3465See \`config.log' for more details." "$LINENO" 5; }
3466fi
3467rm -f conftest$ac_cv_exeext
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3469$as_echo "$ac_cv_exeext" >&6; }
3470
3471rm -f conftest.$ac_ext
3472EXEEXT=$ac_cv_exeext
3473ac_exeext=$EXEEXT
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3475$as_echo_n "checking for suffix of object files... " >&6; }
3476if test "${ac_cv_objext+set}" = set; then :
3477  $as_echo_n "(cached) " >&6
3478else
3479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h.  */
3481
3482int
3483main ()
3484{
3485
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490rm -f conftest.o conftest.obj
3491if { { ac_try="$ac_compile"
3492case "(($ac_try" in
3493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494  *) ac_try_echo=$ac_try;;
3495esac
3496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497$as_echo "$ac_try_echo"; } >&5
3498  (eval "$ac_compile") 2>&5
3499  ac_status=$?
3500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501  test $ac_status = 0; }; then :
3502  for ac_file in conftest.o conftest.obj conftest.*; do
3503  test -f "$ac_file" || continue;
3504  case $ac_file in
3505    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3506    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507       break;;
3508  esac
3509done
3510else
3511  $as_echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516as_fn_error "cannot compute suffix of object files: cannot compile
3517See \`config.log' for more details." "$LINENO" 5; }
3518fi
3519rm -f conftest.$ac_cv_objext conftest.$ac_ext
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3522$as_echo "$ac_cv_objext" >&6; }
3523OBJEXT=$ac_cv_objext
3524ac_objext=$OBJEXT
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3526$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3527if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h.  */
3532
3533int
3534main ()
3535{
3536#ifndef __GNUC__
3537       choke me
3538#endif
3539
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544if ac_fn_cxx_try_compile "$LINENO"; then :
3545  ac_compiler_gnu=yes
3546else
3547  ac_compiler_gnu=no
3548fi
3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3551
3552fi
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3554$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3555if test $ac_compiler_gnu = yes; then
3556  GXX=yes
3557else
3558  GXX=
3559fi
3560ac_test_CXXFLAGS=${CXXFLAGS+set}
3561ac_save_CXXFLAGS=$CXXFLAGS
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3563$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3564if test "${ac_cv_prog_cxx_g+set}" = set; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3568   ac_cxx_werror_flag=yes
3569   ac_cv_prog_cxx_g=no
3570   CXXFLAGS="-g"
3571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h.  */
3573
3574int
3575main ()
3576{
3577
3578  ;
3579  return 0;
3580}
3581_ACEOF
3582if ac_fn_cxx_try_compile "$LINENO"; then :
3583  ac_cv_prog_cxx_g=yes
3584else
3585  CXXFLAGS=""
3586      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597if ac_fn_cxx_try_compile "$LINENO"; then :
3598
3599else
3600  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3601	 CXXFLAGS="-g"
3602	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h.  */
3604
3605int
3606main ()
3607{
3608
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613if ac_fn_cxx_try_compile "$LINENO"; then :
3614  ac_cv_prog_cxx_g=yes
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619fi
3620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3624$as_echo "$ac_cv_prog_cxx_g" >&6; }
3625if test "$ac_test_CXXFLAGS" = set; then
3626  CXXFLAGS=$ac_save_CXXFLAGS
3627elif test $ac_cv_prog_cxx_g = yes; then
3628  if test "$GXX" = yes; then
3629    CXXFLAGS="-g -O2"
3630  else
3631    CXXFLAGS="-g"
3632  fi
3633else
3634  if test "$GXX" = yes; then
3635    CXXFLAGS="-O2"
3636  else
3637    CXXFLAGS=
3638  fi
3639fi
3640ac_ext=c
3641ac_cpp='$CPP $CPPFLAGS'
3642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645DEPDIR="${am__leading_dot}deps"
3646
3647ac_config_commands="$ac_config_commands depfiles"
3648
3649
3650am_make=${MAKE-make}
3651cat > confinc << 'END'
3652am__doit:
3653	@echo this is the am__doit target
3654.PHONY: am__doit
3655END
3656# If we don't find an include directive, just comment out the code.
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3658$as_echo_n "checking for style of include used by $am_make... " >&6; }
3659am__include="#"
3660am__quote=
3661_am_result=none
3662# First try GNU make style include.
3663echo "include confinc" > confmf
3664# Ignore all kinds of additional output from `make'.
3665case `$am_make -s -f confmf 2> /dev/null` in #(
3666*the\ am__doit\ target*)
3667  am__include=include
3668  am__quote=
3669  _am_result=GNU
3670  ;;
3671esac
3672# Now try BSD make style include.
3673if test "$am__include" = "#"; then
3674   echo '.include "confinc"' > confmf
3675   case `$am_make -s -f confmf 2> /dev/null` in #(
3676   *the\ am__doit\ target*)
3677     am__include=.include
3678     am__quote="\""
3679     _am_result=BSD
3680     ;;
3681   esac
3682fi
3683
3684
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3686$as_echo "$_am_result" >&6; }
3687rm -f confinc confmf
3688
3689# Check whether --enable-dependency-tracking was given.
3690if test "${enable_dependency_tracking+set}" = set; then :
3691  enableval=$enable_dependency_tracking;
3692fi
3693
3694if test "x$enable_dependency_tracking" != xno; then
3695  am_depcomp="$ac_aux_dir/depcomp"
3696  AMDEPBACKSLASH='\'
3697fi
3698 if test "x$enable_dependency_tracking" != xno; then
3699  AMDEP_TRUE=
3700  AMDEP_FALSE='#'
3701else
3702  AMDEP_TRUE='#'
3703  AMDEP_FALSE=
3704fi
3705
3706
3707
3708depcc="$CXX"  am_compiler_list=
3709
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3711$as_echo_n "checking dependency style of $depcc... " >&6; }
3712if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3713  $as_echo_n "(cached) " >&6
3714else
3715  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716  # We make a subdir and do the tests there.  Otherwise we can end up
3717  # making bogus files that we don't know about and never remove.  For
3718  # instance it was reported that on HP-UX the gcc test will end up
3719  # making a dummy file named `D' -- because `-MD' means `put the output
3720  # in D'.
3721  mkdir conftest.dir
3722  # Copy depcomp to subdir because otherwise we won't find it if we're
3723  # using a relative directory.
3724  cp "$am_depcomp" conftest.dir
3725  cd conftest.dir
3726  # We will build objects and dependencies in a subdirectory because
3727  # it helps to detect inapplicable dependency modes.  For instance
3728  # both Tru64's cc and ICC support -MD to output dependencies as a
3729  # side effect of compilation, but ICC will put the dependencies in
3730  # the current directory while Tru64 will put them in the object
3731  # directory.
3732  mkdir sub
3733
3734  am_cv_CXX_dependencies_compiler_type=none
3735  if test "$am_compiler_list" = ""; then
3736     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737  fi
3738  am__universal=false
3739  case " $depcc " in #(
3740     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3741     esac
3742
3743  for depmode in $am_compiler_list; do
3744    # Setup a source with many dependencies, because some compilers
3745    # like to wrap large dependency lists on column 80 (with \), and
3746    # we should not choose a depcomp mode which is confused by this.
3747    #
3748    # We need to recreate these files for each test, as the compiler may
3749    # overwrite some of them when testing with obscure command lines.
3750    # This happens at least with the AIX C compiler.
3751    : > sub/conftest.c
3752    for i in 1 2 3 4 5 6; do
3753      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3754      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3755      # Solaris 8's {/usr,}/bin/sh.
3756      touch sub/conftst$i.h
3757    done
3758    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3759
3760    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3761    # mode.  It turns out that the SunPro C++ compiler does not properly
3762    # handle `-M -o', and we need to detect this.  Also, some Intel
3763    # versions had trouble with output in subdirs
3764    am__obj=sub/conftest.${OBJEXT-o}
3765    am__minus_obj="-o $am__obj"
3766    case $depmode in
3767    gcc)
3768      # This depmode causes a compiler race in universal mode.
3769      test "$am__universal" = false || continue
3770      ;;
3771    nosideeffect)
3772      # after this tag, mechanisms are not by side-effect, so they'll
3773      # only be used when explicitly requested
3774      if test "x$enable_dependency_tracking" = xyes; then
3775	continue
3776      else
3777	break
3778      fi
3779      ;;
3780    msvisualcpp | msvcmsys)
3781      # This compiler won't grok `-c -o', but also, the minuso test has
3782      # not run yet.  These depmodes are late enough in the game, and
3783      # so weak that their functioning should not be impacted.
3784      am__obj=conftest.${OBJEXT-o}
3785      am__minus_obj=
3786      ;;
3787    none) break ;;
3788    esac
3789    if depmode=$depmode \
3790       source=sub/conftest.c object=$am__obj \
3791       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3792       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3793         >/dev/null 2>conftest.err &&
3794       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3795       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3796       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3797       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3798      # icc doesn't choke on unknown options, it will just issue warnings
3799      # or remarks (even with -Werror).  So we grep stderr for any message
3800      # that says an option was ignored or not supported.
3801      # When given -MP, icc 7.0 and 7.1 complain thusly:
3802      #   icc: Command line warning: ignoring option '-M'; no argument required
3803      # The diagnosis changed in icc 8.0:
3804      #   icc: Command line remark: option '-MP' not supported
3805      if (grep 'ignoring option' conftest.err ||
3806          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3807        am_cv_CXX_dependencies_compiler_type=$depmode
3808        break
3809      fi
3810    fi
3811  done
3812
3813  cd ..
3814  rm -rf conftest.dir
3815else
3816  am_cv_CXX_dependencies_compiler_type=none
3817fi
3818
3819fi
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3821$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3822CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3823
3824 if
3825  test "x$enable_dependency_tracking" != xno \
3826  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3827  am__fastdepCXX_TRUE=
3828  am__fastdepCXX_FALSE='#'
3829else
3830  am__fastdepCXX_TRUE='#'
3831  am__fastdepCXX_FALSE=
3832fi
3833
3834
3835ac_ext=c
3836ac_cpp='$CPP $CPPFLAGS'
3837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840if test -n "$ac_tool_prefix"; then
3841  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3842set dummy ${ac_tool_prefix}gcc; ac_word=$2
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844$as_echo_n "checking for $ac_word... " >&6; }
3845if test "${ac_cv_prog_CC+set}" = set; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  if test -n "$CC"; then
3849  ac_cv_prog_CC="$CC" # Let the user override the test.
3850else
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854  IFS=$as_save_IFS
3855  test -z "$as_dir" && as_dir=.
3856    for ac_exec_ext in '' $ac_executable_extensions; do
3857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860    break 2
3861  fi
3862done
3863  done
3864IFS=$as_save_IFS
3865
3866fi
3867fi
3868CC=$ac_cv_prog_CC
3869if test -n "$CC"; then
3870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3871$as_echo "$CC" >&6; }
3872else
3873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
3875fi
3876
3877
3878fi
3879if test -z "$ac_cv_prog_CC"; then
3880  ac_ct_CC=$CC
3881  # Extract the first word of "gcc", so it can be a program name with args.
3882set dummy gcc; ac_word=$2
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884$as_echo_n "checking for $ac_word... " >&6; }
3885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3886  $as_echo_n "(cached) " >&6
3887else
3888  if test -n "$ac_ct_CC"; then
3889  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3890else
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894  IFS=$as_save_IFS
3895  test -z "$as_dir" && as_dir=.
3896    for ac_exec_ext in '' $ac_executable_extensions; do
3897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898    ac_cv_prog_ac_ct_CC="gcc"
3899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900    break 2
3901  fi
3902done
3903  done
3904IFS=$as_save_IFS
3905
3906fi
3907fi
3908ac_ct_CC=$ac_cv_prog_ac_ct_CC
3909if test -n "$ac_ct_CC"; then
3910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3911$as_echo "$ac_ct_CC" >&6; }
3912else
3913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914$as_echo "no" >&6; }
3915fi
3916
3917  if test "x$ac_ct_CC" = x; then
3918    CC=""
3919  else
3920    case $cross_compiling:$ac_tool_warned in
3921yes:)
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3924ac_tool_warned=yes ;;
3925esac
3926    CC=$ac_ct_CC
3927  fi
3928else
3929  CC="$ac_cv_prog_CC"
3930fi
3931
3932if test -z "$CC"; then
3933          if test -n "$ac_tool_prefix"; then
3934    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3935set dummy ${ac_tool_prefix}cc; ac_word=$2
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
3938if test "${ac_cv_prog_CC+set}" = set; then :
3939  $as_echo_n "(cached) " >&6
3940else
3941  if test -n "$CC"; then
3942  ac_cv_prog_CC="$CC" # Let the user override the test.
3943else
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947  IFS=$as_save_IFS
3948  test -z "$as_dir" && as_dir=.
3949    for ac_exec_ext in '' $ac_executable_extensions; do
3950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951    ac_cv_prog_CC="${ac_tool_prefix}cc"
3952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953    break 2
3954  fi
3955done
3956  done
3957IFS=$as_save_IFS
3958
3959fi
3960fi
3961CC=$ac_cv_prog_CC
3962if test -n "$CC"; then
3963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964$as_echo "$CC" >&6; }
3965else
3966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967$as_echo "no" >&6; }
3968fi
3969
3970
3971  fi
3972fi
3973if test -z "$CC"; then
3974  # Extract the first word of "cc", so it can be a program name with args.
3975set dummy cc; ac_word=$2
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977$as_echo_n "checking for $ac_word... " >&6; }
3978if test "${ac_cv_prog_CC+set}" = set; then :
3979  $as_echo_n "(cached) " >&6
3980else
3981  if test -n "$CC"; then
3982  ac_cv_prog_CC="$CC" # Let the user override the test.
3983else
3984  ac_prog_rejected=no
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
3987do
3988  IFS=$as_save_IFS
3989  test -z "$as_dir" && as_dir=.
3990    for ac_exec_ext in '' $ac_executable_extensions; do
3991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3993       ac_prog_rejected=yes
3994       continue
3995     fi
3996    ac_cv_prog_CC="cc"
3997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998    break 2
3999  fi
4000done
4001  done
4002IFS=$as_save_IFS
4003
4004if test $ac_prog_rejected = yes; then
4005  # We found a bogon in the path, so make sure we never use it.
4006  set dummy $ac_cv_prog_CC
4007  shift
4008  if test $# != 0; then
4009    # We chose a different compiler from the bogus one.
4010    # However, it has the same basename, so the bogon will be chosen
4011    # first if we set CC to just the basename; use the full file name.
4012    shift
4013    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4014  fi
4015fi
4016fi
4017fi
4018CC=$ac_cv_prog_CC
4019if test -n "$CC"; then
4020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4021$as_echo "$CC" >&6; }
4022else
4023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024$as_echo "no" >&6; }
4025fi
4026
4027
4028fi
4029if test -z "$CC"; then
4030  if test -n "$ac_tool_prefix"; then
4031  for ac_prog in cl.exe
4032  do
4033    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4034set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036$as_echo_n "checking for $ac_word... " >&6; }
4037if test "${ac_cv_prog_CC+set}" = set; then :
4038  $as_echo_n "(cached) " >&6
4039else
4040  if test -n "$CC"; then
4041  ac_cv_prog_CC="$CC" # Let the user override the test.
4042else
4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046  IFS=$as_save_IFS
4047  test -z "$as_dir" && as_dir=.
4048    for ac_exec_ext in '' $ac_executable_extensions; do
4049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052    break 2
4053  fi
4054done
4055  done
4056IFS=$as_save_IFS
4057
4058fi
4059fi
4060CC=$ac_cv_prog_CC
4061if test -n "$CC"; then
4062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4063$as_echo "$CC" >&6; }
4064else
4065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066$as_echo "no" >&6; }
4067fi
4068
4069
4070    test -n "$CC" && break
4071  done
4072fi
4073if test -z "$CC"; then
4074  ac_ct_CC=$CC
4075  for ac_prog in cl.exe
4076do
4077  # Extract the first word of "$ac_prog", so it can be a program name with args.
4078set dummy $ac_prog; ac_word=$2
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080$as_echo_n "checking for $ac_word... " >&6; }
4081if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4082  $as_echo_n "(cached) " >&6
4083else
4084  if test -n "$ac_ct_CC"; then
4085  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4086else
4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090  IFS=$as_save_IFS
4091  test -z "$as_dir" && as_dir=.
4092    for ac_exec_ext in '' $ac_executable_extensions; do
4093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4094    ac_cv_prog_ac_ct_CC="$ac_prog"
4095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096    break 2
4097  fi
4098done
4099  done
4100IFS=$as_save_IFS
4101
4102fi
4103fi
4104ac_ct_CC=$ac_cv_prog_ac_ct_CC
4105if test -n "$ac_ct_CC"; then
4106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4107$as_echo "$ac_ct_CC" >&6; }
4108else
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110$as_echo "no" >&6; }
4111fi
4112
4113
4114  test -n "$ac_ct_CC" && break
4115done
4116
4117  if test "x$ac_ct_CC" = x; then
4118    CC=""
4119  else
4120    case $cross_compiling:$ac_tool_warned in
4121yes:)
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4124ac_tool_warned=yes ;;
4125esac
4126    CC=$ac_ct_CC
4127  fi
4128fi
4129
4130fi
4131
4132
4133test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4135as_fn_error "no acceptable C compiler found in \$PATH
4136See \`config.log' for more details." "$LINENO" 5; }
4137
4138# Provide some information about the compiler.
4139$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4140set X $ac_compile
4141ac_compiler=$2
4142for ac_option in --version -v -V -qversion; do
4143  { { ac_try="$ac_compiler $ac_option >&5"
4144case "(($ac_try" in
4145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146  *) ac_try_echo=$ac_try;;
4147esac
4148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149$as_echo "$ac_try_echo"; } >&5
4150  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4151  ac_status=$?
4152  if test -s conftest.err; then
4153    sed '10a\
4154... rest of stderr output deleted ...
4155         10q' conftest.err >conftest.er1
4156    cat conftest.er1 >&5
4157    rm -f conftest.er1 conftest.err
4158  fi
4159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4160  test $ac_status = 0; }
4161done
4162
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4164$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4165if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4166  $as_echo_n "(cached) " >&6
4167else
4168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170
4171int
4172main ()
4173{
4174#ifndef __GNUC__
4175       choke me
4176#endif
4177
4178  ;
4179  return 0;
4180}
4181_ACEOF
4182if ac_fn_c_try_compile "$LINENO"; then :
4183  ac_compiler_gnu=yes
4184else
4185  ac_compiler_gnu=no
4186fi
4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188ac_cv_c_compiler_gnu=$ac_compiler_gnu
4189
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4192$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4193if test $ac_compiler_gnu = yes; then
4194  GCC=yes
4195else
4196  GCC=
4197fi
4198ac_test_CFLAGS=${CFLAGS+set}
4199ac_save_CFLAGS=$CFLAGS
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4201$as_echo_n "checking whether $CC accepts -g... " >&6; }
4202if test "${ac_cv_prog_cc_g+set}" = set; then :
4203  $as_echo_n "(cached) " >&6
4204else
4205  ac_save_c_werror_flag=$ac_c_werror_flag
4206   ac_c_werror_flag=yes
4207   ac_cv_prog_cc_g=no
4208   CFLAGS="-g"
4209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211
4212int
4213main ()
4214{
4215
4216  ;
4217  return 0;
4218}
4219_ACEOF
4220if ac_fn_c_try_compile "$LINENO"; then :
4221  ac_cv_prog_cc_g=yes
4222else
4223  CFLAGS=""
4224      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226
4227int
4228main ()
4229{
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_compile "$LINENO"; then :
4236
4237else
4238  ac_c_werror_flag=$ac_save_c_werror_flag
4239	 CFLAGS="-g"
4240	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h.  */
4242
4243int
4244main ()
4245{
4246
4247  ;
4248  return 0;
4249}
4250_ACEOF
4251if ac_fn_c_try_compile "$LINENO"; then :
4252  ac_cv_prog_cc_g=yes
4253fi
4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255fi
4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257fi
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259   ac_c_werror_flag=$ac_save_c_werror_flag
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4262$as_echo "$ac_cv_prog_cc_g" >&6; }
4263if test "$ac_test_CFLAGS" = set; then
4264  CFLAGS=$ac_save_CFLAGS
4265elif test $ac_cv_prog_cc_g = yes; then
4266  if test "$GCC" = yes; then
4267    CFLAGS="-g -O2"
4268  else
4269    CFLAGS="-g"
4270  fi
4271else
4272  if test "$GCC" = yes; then
4273    CFLAGS="-O2"
4274  else
4275    CFLAGS=
4276  fi
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4279$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4280if test "${ac_cv_prog_cc_c89+set}" = set; then :
4281  $as_echo_n "(cached) " >&6
4282else
4283  ac_cv_prog_cc_c89=no
4284ac_save_CC=$CC
4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286/* end confdefs.h.  */
4287#include <stdarg.h>
4288#include <stdio.h>
4289#include <sys/types.h>
4290#include <sys/stat.h>
4291/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4292struct buf { int x; };
4293FILE * (*rcsopen) (struct buf *, struct stat *, int);
4294static char *e (p, i)
4295     char **p;
4296     int i;
4297{
4298  return p[i];
4299}
4300static char *f (char * (*g) (char **, int), char **p, ...)
4301{
4302  char *s;
4303  va_list v;
4304  va_start (v,p);
4305  s = g (p, va_arg (v,int));
4306  va_end (v);
4307  return s;
4308}
4309
4310/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4311   function prototypes and stuff, but not '\xHH' hex character constants.
4312   These don't provoke an error unfortunately, instead are silently treated
4313   as 'x'.  The following induces an error, until -std is added to get
4314   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4315   array size at least.  It's necessary to write '\x00'==0 to get something
4316   that's true only with -std.  */
4317int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4318
4319/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4320   inside strings and character constants.  */
4321#define FOO(x) 'x'
4322int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4323
4324int test (int i, double x);
4325struct s1 {int (*f) (int a);};
4326struct s2 {int (*f) (double a);};
4327int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4328int argc;
4329char **argv;
4330int
4331main ()
4332{
4333return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4334  ;
4335  return 0;
4336}
4337_ACEOF
4338for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4339	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4340do
4341  CC="$ac_save_CC $ac_arg"
4342  if ac_fn_c_try_compile "$LINENO"; then :
4343  ac_cv_prog_cc_c89=$ac_arg
4344fi
4345rm -f core conftest.err conftest.$ac_objext
4346  test "x$ac_cv_prog_cc_c89" != "xno" && break
4347done
4348rm -f conftest.$ac_ext
4349CC=$ac_save_CC
4350
4351fi
4352# AC_CACHE_VAL
4353case "x$ac_cv_prog_cc_c89" in
4354  x)
4355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4356$as_echo "none needed" >&6; } ;;
4357  xno)
4358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4359$as_echo "unsupported" >&6; } ;;
4360  *)
4361    CC="$CC $ac_cv_prog_cc_c89"
4362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4363$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4364esac
4365if test "x$ac_cv_prog_cc_c89" != xno; then :
4366
4367fi
4368
4369ac_ext=c
4370ac_cpp='$CPP $CPPFLAGS'
4371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
4375depcc="$CC"   am_compiler_list=
4376
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4378$as_echo_n "checking dependency style of $depcc... " >&6; }
4379if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4380  $as_echo_n "(cached) " >&6
4381else
4382  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4383  # We make a subdir and do the tests there.  Otherwise we can end up
4384  # making bogus files that we don't know about and never remove.  For
4385  # instance it was reported that on HP-UX the gcc test will end up
4386  # making a dummy file named `D' -- because `-MD' means `put the output
4387  # in D'.
4388  mkdir conftest.dir
4389  # Copy depcomp to subdir because otherwise we won't find it if we're
4390  # using a relative directory.
4391  cp "$am_depcomp" conftest.dir
4392  cd conftest.dir
4393  # We will build objects and dependencies in a subdirectory because
4394  # it helps to detect inapplicable dependency modes.  For instance
4395  # both Tru64's cc and ICC support -MD to output dependencies as a
4396  # side effect of compilation, but ICC will put the dependencies in
4397  # the current directory while Tru64 will put them in the object
4398  # directory.
4399  mkdir sub
4400
4401  am_cv_CC_dependencies_compiler_type=none
4402  if test "$am_compiler_list" = ""; then
4403     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4404  fi
4405  am__universal=false
4406  case " $depcc " in #(
4407     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4408     esac
4409
4410  for depmode in $am_compiler_list; do
4411    # Setup a source with many dependencies, because some compilers
4412    # like to wrap large dependency lists on column 80 (with \), and
4413    # we should not choose a depcomp mode which is confused by this.
4414    #
4415    # We need to recreate these files for each test, as the compiler may
4416    # overwrite some of them when testing with obscure command lines.
4417    # This happens at least with the AIX C compiler.
4418    : > sub/conftest.c
4419    for i in 1 2 3 4 5 6; do
4420      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4421      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4422      # Solaris 8's {/usr,}/bin/sh.
4423      touch sub/conftst$i.h
4424    done
4425    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4426
4427    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4428    # mode.  It turns out that the SunPro C++ compiler does not properly
4429    # handle `-M -o', and we need to detect this.  Also, some Intel
4430    # versions had trouble with output in subdirs
4431    am__obj=sub/conftest.${OBJEXT-o}
4432    am__minus_obj="-o $am__obj"
4433    case $depmode in
4434    gcc)
4435      # This depmode causes a compiler race in universal mode.
4436      test "$am__universal" = false || continue
4437      ;;
4438    nosideeffect)
4439      # after this tag, mechanisms are not by side-effect, so they'll
4440      # only be used when explicitly requested
4441      if test "x$enable_dependency_tracking" = xyes; then
4442	continue
4443      else
4444	break
4445      fi
4446      ;;
4447    msvisualcpp | msvcmsys)
4448      # This compiler won't grok `-c -o', but also, the minuso test has
4449      # not run yet.  These depmodes are late enough in the game, and
4450      # so weak that their functioning should not be impacted.
4451      am__obj=conftest.${OBJEXT-o}
4452      am__minus_obj=
4453      ;;
4454    none) break ;;
4455    esac
4456    if depmode=$depmode \
4457       source=sub/conftest.c object=$am__obj \
4458       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4459       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4460         >/dev/null 2>conftest.err &&
4461       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4462       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4463       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4464       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4465      # icc doesn't choke on unknown options, it will just issue warnings
4466      # or remarks (even with -Werror).  So we grep stderr for any message
4467      # that says an option was ignored or not supported.
4468      # When given -MP, icc 7.0 and 7.1 complain thusly:
4469      #   icc: Command line warning: ignoring option '-M'; no argument required
4470      # The diagnosis changed in icc 8.0:
4471      #   icc: Command line remark: option '-MP' not supported
4472      if (grep 'ignoring option' conftest.err ||
4473          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4474        am_cv_CC_dependencies_compiler_type=$depmode
4475        break
4476      fi
4477    fi
4478  done
4479
4480  cd ..
4481  rm -rf conftest.dir
4482else
4483  am_cv_CC_dependencies_compiler_type=none
4484fi
4485
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4488$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4489CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4490
4491 if
4492  test "x$enable_dependency_tracking" != xno \
4493  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4494  am__fastdepCC_TRUE=
4495  am__fastdepCC_FALSE='#'
4496else
4497  am__fastdepCC_TRUE='#'
4498  am__fastdepCC_FALSE=
4499fi
4500
4501
4502
4503enable_win32_dll=yes
4504
4505case $host in
4506*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4507  if test -n "$ac_tool_prefix"; then
4508  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4509set dummy ${ac_tool_prefix}as; ac_word=$2
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511$as_echo_n "checking for $ac_word... " >&6; }
4512if test "${ac_cv_prog_AS+set}" = set; then :
4513  $as_echo_n "(cached) " >&6
4514else
4515  if test -n "$AS"; then
4516  ac_cv_prog_AS="$AS" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521  IFS=$as_save_IFS
4522  test -z "$as_dir" && as_dir=.
4523    for ac_exec_ext in '' $ac_executable_extensions; do
4524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525    ac_cv_prog_AS="${ac_tool_prefix}as"
4526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527    break 2
4528  fi
4529done
4530  done
4531IFS=$as_save_IFS
4532
4533fi
4534fi
4535AS=$ac_cv_prog_AS
4536if test -n "$AS"; then
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4538$as_echo "$AS" >&6; }
4539else
4540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541$as_echo "no" >&6; }
4542fi
4543
4544
4545fi
4546if test -z "$ac_cv_prog_AS"; then
4547  ac_ct_AS=$AS
4548  # Extract the first word of "as", so it can be a program name with args.
4549set dummy as; ac_word=$2
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551$as_echo_n "checking for $ac_word... " >&6; }
4552if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4553  $as_echo_n "(cached) " >&6
4554else
4555  if test -n "$ac_ct_AS"; then
4556  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561  IFS=$as_save_IFS
4562  test -z "$as_dir" && as_dir=.
4563    for ac_exec_ext in '' $ac_executable_extensions; do
4564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565    ac_cv_prog_ac_ct_AS="as"
4566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567    break 2
4568  fi
4569done
4570  done
4571IFS=$as_save_IFS
4572
4573fi
4574fi
4575ac_ct_AS=$ac_cv_prog_ac_ct_AS
4576if test -n "$ac_ct_AS"; then
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4578$as_echo "$ac_ct_AS" >&6; }
4579else
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582fi
4583
4584  if test "x$ac_ct_AS" = x; then
4585    AS="false"
4586  else
4587    case $cross_compiling:$ac_tool_warned in
4588yes:)
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591ac_tool_warned=yes ;;
4592esac
4593    AS=$ac_ct_AS
4594  fi
4595else
4596  AS="$ac_cv_prog_AS"
4597fi
4598
4599  if test -n "$ac_tool_prefix"; then
4600  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4601set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603$as_echo_n "checking for $ac_word... " >&6; }
4604if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  if test -n "$DLLTOOL"; then
4608  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4609else
4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH
4612do
4613  IFS=$as_save_IFS
4614  test -z "$as_dir" && as_dir=.
4615    for ac_exec_ext in '' $ac_executable_extensions; do
4616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619    break 2
4620  fi
4621done
4622  done
4623IFS=$as_save_IFS
4624
4625fi
4626fi
4627DLLTOOL=$ac_cv_prog_DLLTOOL
4628if test -n "$DLLTOOL"; then
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4630$as_echo "$DLLTOOL" >&6; }
4631else
4632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633$as_echo "no" >&6; }
4634fi
4635
4636
4637fi
4638if test -z "$ac_cv_prog_DLLTOOL"; then
4639  ac_ct_DLLTOOL=$DLLTOOL
4640  # Extract the first word of "dlltool", so it can be a program name with args.
4641set dummy dlltool; ac_word=$2
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643$as_echo_n "checking for $ac_word... " >&6; }
4644if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  if test -n "$ac_ct_DLLTOOL"; then
4648  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653  IFS=$as_save_IFS
4654  test -z "$as_dir" && as_dir=.
4655    for ac_exec_ext in '' $ac_executable_extensions; do
4656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659    break 2
4660  fi
4661done
4662  done
4663IFS=$as_save_IFS
4664
4665fi
4666fi
4667ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4668if test -n "$ac_ct_DLLTOOL"; then
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4670$as_echo "$ac_ct_DLLTOOL" >&6; }
4671else
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673$as_echo "no" >&6; }
4674fi
4675
4676  if test "x$ac_ct_DLLTOOL" = x; then
4677    DLLTOOL="false"
4678  else
4679    case $cross_compiling:$ac_tool_warned in
4680yes:)
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683ac_tool_warned=yes ;;
4684esac
4685    DLLTOOL=$ac_ct_DLLTOOL
4686  fi
4687else
4688  DLLTOOL="$ac_cv_prog_DLLTOOL"
4689fi
4690
4691  if test -n "$ac_tool_prefix"; then
4692  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4693set dummy ${ac_tool_prefix}objdump; ac_word=$2
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695$as_echo_n "checking for $ac_word... " >&6; }
4696if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  if test -n "$OBJDUMP"; then
4700  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705  IFS=$as_save_IFS
4706  test -z "$as_dir" && as_dir=.
4707    for ac_exec_ext in '' $ac_executable_extensions; do
4708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711    break 2
4712  fi
4713done
4714  done
4715IFS=$as_save_IFS
4716
4717fi
4718fi
4719OBJDUMP=$ac_cv_prog_OBJDUMP
4720if test -n "$OBJDUMP"; then
4721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4722$as_echo "$OBJDUMP" >&6; }
4723else
4724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725$as_echo "no" >&6; }
4726fi
4727
4728
4729fi
4730if test -z "$ac_cv_prog_OBJDUMP"; then
4731  ac_ct_OBJDUMP=$OBJDUMP
4732  # Extract the first word of "objdump", so it can be a program name with args.
4733set dummy objdump; ac_word=$2
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735$as_echo_n "checking for $ac_word... " >&6; }
4736if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4737  $as_echo_n "(cached) " >&6
4738else
4739  if test -n "$ac_ct_OBJDUMP"; then
4740  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4741else
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745  IFS=$as_save_IFS
4746  test -z "$as_dir" && as_dir=.
4747    for ac_exec_ext in '' $ac_executable_extensions; do
4748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751    break 2
4752  fi
4753done
4754  done
4755IFS=$as_save_IFS
4756
4757fi
4758fi
4759ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4760if test -n "$ac_ct_OBJDUMP"; then
4761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4762$as_echo "$ac_ct_OBJDUMP" >&6; }
4763else
4764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765$as_echo "no" >&6; }
4766fi
4767
4768  if test "x$ac_ct_OBJDUMP" = x; then
4769    OBJDUMP="false"
4770  else
4771    case $cross_compiling:$ac_tool_warned in
4772yes:)
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775ac_tool_warned=yes ;;
4776esac
4777    OBJDUMP=$ac_ct_OBJDUMP
4778  fi
4779else
4780  OBJDUMP="$ac_cv_prog_OBJDUMP"
4781fi
4782
4783  ;;
4784esac
4785
4786test -z "$AS" && AS=as
4787
4788
4789
4790
4791
4792test -z "$DLLTOOL" && DLLTOOL=dlltool
4793
4794
4795
4796
4797
4798test -z "$OBJDUMP" && OBJDUMP=objdump
4799
4800
4801
4802
4803
4804
4805
4806case `pwd` in
4807  *\ * | *\	*)
4808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4809$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4810esac
4811
4812
4813
4814macro_version='2.2.6'
4815macro_revision='1.3012'
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829ltmain="$ac_aux_dir/ltmain.sh"
4830
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4832$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4833if test "${ac_cv_path_SED+set}" = set; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4837     for ac_i in 1 2 3 4 5 6 7; do
4838       ac_script="$ac_script$as_nl$ac_script"
4839     done
4840     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4841     { ac_script=; unset ac_script;}
4842     if test -z "$SED"; then
4843  ac_path_SED_found=false
4844  # Loop through the user's path and test for each of PROGNAME-LIST
4845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848  IFS=$as_save_IFS
4849  test -z "$as_dir" && as_dir=.
4850    for ac_prog in sed gsed; do
4851    for ac_exec_ext in '' $ac_executable_extensions; do
4852      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4853      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4854# Check for GNU ac_path_SED and select it if it is found.
4855  # Check for GNU $ac_path_SED
4856case `"$ac_path_SED" --version 2>&1` in
4857*GNU*)
4858  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4859*)
4860  ac_count=0
4861  $as_echo_n 0123456789 >"conftest.in"
4862  while :
4863  do
4864    cat "conftest.in" "conftest.in" >"conftest.tmp"
4865    mv "conftest.tmp" "conftest.in"
4866    cp "conftest.in" "conftest.nl"
4867    $as_echo '' >> "conftest.nl"
4868    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870    as_fn_arith $ac_count + 1 && ac_count=$as_val
4871    if test $ac_count -gt ${ac_path_SED_max-0}; then
4872      # Best one so far, save it but keep looking for a better one
4873      ac_cv_path_SED="$ac_path_SED"
4874      ac_path_SED_max=$ac_count
4875    fi
4876    # 10*(2^10) chars as input seems more than enough
4877    test $ac_count -gt 10 && break
4878  done
4879  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880esac
4881
4882      $ac_path_SED_found && break 3
4883    done
4884  done
4885  done
4886IFS=$as_save_IFS
4887  if test -z "$ac_cv_path_SED"; then
4888    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4889  fi
4890else
4891  ac_cv_path_SED=$SED
4892fi
4893
4894fi
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4896$as_echo "$ac_cv_path_SED" >&6; }
4897 SED="$ac_cv_path_SED"
4898  rm -f conftest.sed
4899
4900test -z "$SED" && SED=sed
4901Xsed="$SED -e 1s/^X//"
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4914$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4915if test "${ac_cv_path_GREP+set}" = set; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  if test -z "$GREP"; then
4919  ac_path_GREP_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 grep ggrep; do
4927    for ac_exec_ext in '' $ac_executable_extensions; do
4928      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4929      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4930# Check for GNU ac_path_GREP and select it if it is found.
4931  # Check for GNU $ac_path_GREP
4932case `"$ac_path_GREP" --version 2>&1` in
4933*GNU*)
4934  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "conftest.nl"
4944    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "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_GREP_max-0}; then
4948      # Best one so far, save it but keep looking for a better one
4949      ac_cv_path_GREP="$ac_path_GREP"
4950      ac_path_GREP_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_GREP_found && break 3
4959    done
4960  done
4961  done
4962IFS=$as_save_IFS
4963  if test -z "$ac_cv_path_GREP"; then
4964    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4965  fi
4966else
4967  ac_cv_path_GREP=$GREP
4968fi
4969
4970fi
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4972$as_echo "$ac_cv_path_GREP" >&6; }
4973 GREP="$ac_cv_path_GREP"
4974
4975
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4977$as_echo_n "checking for egrep... " >&6; }
4978if test "${ac_cv_path_EGREP+set}" = set; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4982   then ac_cv_path_EGREP="$GREP -E"
4983   else
4984     if test -z "$EGREP"; then
4985  ac_path_EGREP_found=false
4986  # Loop through the user's path and test for each of PROGNAME-LIST
4987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4989do
4990  IFS=$as_save_IFS
4991  test -z "$as_dir" && as_dir=.
4992    for ac_prog in egrep; do
4993    for ac_exec_ext in '' $ac_executable_extensions; do
4994      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4995      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4996# Check for GNU ac_path_EGREP and select it if it is found.
4997  # Check for GNU $ac_path_EGREP
4998case `"$ac_path_EGREP" --version 2>&1` in
4999*GNU*)
5000  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5001*)
5002  ac_count=0
5003  $as_echo_n 0123456789 >"conftest.in"
5004  while :
5005  do
5006    cat "conftest.in" "conftest.in" >"conftest.tmp"
5007    mv "conftest.tmp" "conftest.in"
5008    cp "conftest.in" "conftest.nl"
5009    $as_echo 'EGREP' >> "conftest.nl"
5010    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012    as_fn_arith $ac_count + 1 && ac_count=$as_val
5013    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5014      # Best one so far, save it but keep looking for a better one
5015      ac_cv_path_EGREP="$ac_path_EGREP"
5016      ac_path_EGREP_max=$ac_count
5017    fi
5018    # 10*(2^10) chars as input seems more than enough
5019    test $ac_count -gt 10 && break
5020  done
5021  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022esac
5023
5024      $ac_path_EGREP_found && break 3
5025    done
5026  done
5027  done
5028IFS=$as_save_IFS
5029  if test -z "$ac_cv_path_EGREP"; then
5030    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5031  fi
5032else
5033  ac_cv_path_EGREP=$EGREP
5034fi
5035
5036   fi
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5039$as_echo "$ac_cv_path_EGREP" >&6; }
5040 EGREP="$ac_cv_path_EGREP"
5041
5042
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5044$as_echo_n "checking for fgrep... " >&6; }
5045if test "${ac_cv_path_FGREP+set}" = set; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5049   then ac_cv_path_FGREP="$GREP -F"
5050   else
5051     if test -z "$FGREP"; then
5052  ac_path_FGREP_found=false
5053  # Loop through the user's path and test for each of PROGNAME-LIST
5054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5056do
5057  IFS=$as_save_IFS
5058  test -z "$as_dir" && as_dir=.
5059    for ac_prog in fgrep; do
5060    for ac_exec_ext in '' $ac_executable_extensions; do
5061      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5062      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5063# Check for GNU ac_path_FGREP and select it if it is found.
5064  # Check for GNU $ac_path_FGREP
5065case `"$ac_path_FGREP" --version 2>&1` in
5066*GNU*)
5067  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5068*)
5069  ac_count=0
5070  $as_echo_n 0123456789 >"conftest.in"
5071  while :
5072  do
5073    cat "conftest.in" "conftest.in" >"conftest.tmp"
5074    mv "conftest.tmp" "conftest.in"
5075    cp "conftest.in" "conftest.nl"
5076    $as_echo 'FGREP' >> "conftest.nl"
5077    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5078    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5079    as_fn_arith $ac_count + 1 && ac_count=$as_val
5080    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5081      # Best one so far, save it but keep looking for a better one
5082      ac_cv_path_FGREP="$ac_path_FGREP"
5083      ac_path_FGREP_max=$ac_count
5084    fi
5085    # 10*(2^10) chars as input seems more than enough
5086    test $ac_count -gt 10 && break
5087  done
5088  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5089esac
5090
5091      $ac_path_FGREP_found && break 3
5092    done
5093  done
5094  done
5095IFS=$as_save_IFS
5096  if test -z "$ac_cv_path_FGREP"; then
5097    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5098  fi
5099else
5100  ac_cv_path_FGREP=$FGREP
5101fi
5102
5103   fi
5104fi
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5106$as_echo "$ac_cv_path_FGREP" >&6; }
5107 FGREP="$ac_cv_path_FGREP"
5108
5109
5110test -z "$GREP" && GREP=grep
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130# Check whether --with-gnu-ld was given.
5131if test "${with_gnu_ld+set}" = set; then :
5132  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5133else
5134  with_gnu_ld=no
5135fi
5136
5137ac_prog=ld
5138if test "$GCC" = yes; then
5139  # Check if gcc -print-prog-name=ld gives a path.
5140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5141$as_echo_n "checking for ld used by $CC... " >&6; }
5142  case $host in
5143  *-*-mingw*)
5144    # gcc leaves a trailing carriage return which upsets mingw
5145    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5146  *)
5147    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5148  esac
5149  case $ac_prog in
5150    # Accept absolute paths.
5151    [\\/]* | ?:[\\/]*)
5152      re_direlt='/[^/][^/]*/\.\./'
5153      # Canonicalize the pathname of ld
5154      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5155      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5156	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5157      done
5158      test -z "$LD" && LD="$ac_prog"
5159      ;;
5160  "")
5161    # If it fails, then pretend we aren't using GCC.
5162    ac_prog=ld
5163    ;;
5164  *)
5165    # If it is relative, then search for the first ld in PATH.
5166    with_gnu_ld=unknown
5167    ;;
5168  esac
5169elif test "$with_gnu_ld" = yes; then
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5171$as_echo_n "checking for GNU ld... " >&6; }
5172else
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5174$as_echo_n "checking for non-GNU ld... " >&6; }
5175fi
5176if test "${lt_cv_path_LD+set}" = set; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  if test -z "$LD"; then
5180  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5181  for ac_dir in $PATH; do
5182    IFS="$lt_save_ifs"
5183    test -z "$ac_dir" && ac_dir=.
5184    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5185      lt_cv_path_LD="$ac_dir/$ac_prog"
5186      # Check to see if the program is GNU ld.  I'd rather use --version,
5187      # but apparently some variants of GNU ld only accept -v.
5188      # Break only if it was the GNU/non-GNU ld that we prefer.
5189      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5190      *GNU* | *'with BFD'*)
5191	test "$with_gnu_ld" != no && break
5192	;;
5193      *)
5194	test "$with_gnu_ld" != yes && break
5195	;;
5196      esac
5197    fi
5198  done
5199  IFS="$lt_save_ifs"
5200else
5201  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5202fi
5203fi
5204
5205LD="$lt_cv_path_LD"
5206if test -n "$LD"; then
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5208$as_echo "$LD" >&6; }
5209else
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5215$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5216if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5217  $as_echo_n "(cached) " >&6
5218else
5219  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5220case `$LD -v 2>&1 </dev/null` in
5221*GNU* | *'with BFD'*)
5222  lt_cv_prog_gnu_ld=yes
5223  ;;
5224*)
5225  lt_cv_prog_gnu_ld=no
5226  ;;
5227esac
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5230$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5231with_gnu_ld=$lt_cv_prog_gnu_ld
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5242$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5243if test "${lt_cv_path_NM+set}" = set; then :
5244  $as_echo_n "(cached) " >&6
5245else
5246  if test -n "$NM"; then
5247  # Let the user override the test.
5248  lt_cv_path_NM="$NM"
5249else
5250  lt_nm_to_check="${ac_tool_prefix}nm"
5251  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5252    lt_nm_to_check="$lt_nm_to_check nm"
5253  fi
5254  for lt_tmp_nm in $lt_nm_to_check; do
5255    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5256    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5257      IFS="$lt_save_ifs"
5258      test -z "$ac_dir" && ac_dir=.
5259      tmp_nm="$ac_dir/$lt_tmp_nm"
5260      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5261	# Check to see if the nm accepts a BSD-compat flag.
5262	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5263	#   nm: unknown option "B" ignored
5264	# Tru64's nm complains that /dev/null is an invalid object file
5265	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5266	*/dev/null* | *'Invalid file or object type'*)
5267	  lt_cv_path_NM="$tmp_nm -B"
5268	  break
5269	  ;;
5270	*)
5271	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5272	  */dev/null*)
5273	    lt_cv_path_NM="$tmp_nm -p"
5274	    break
5275	    ;;
5276	  *)
5277	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5278	    continue # so that we can try to find one that supports BSD flags
5279	    ;;
5280	  esac
5281	  ;;
5282	esac
5283      fi
5284    done
5285    IFS="$lt_save_ifs"
5286  done
5287  : ${lt_cv_path_NM=no}
5288fi
5289fi
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5291$as_echo "$lt_cv_path_NM" >&6; }
5292if test "$lt_cv_path_NM" != "no"; then
5293  NM="$lt_cv_path_NM"
5294else
5295  # Didn't find any BSD compatible name lister, look for dumpbin.
5296  if test -n "$ac_tool_prefix"; then
5297  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5298  do
5299    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5300set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
5303if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  if test -n "$DUMPBIN"; then
5307  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312  IFS=$as_save_IFS
5313  test -z "$as_dir" && as_dir=.
5314    for ac_exec_ext in '' $ac_executable_extensions; do
5315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318    break 2
5319  fi
5320done
5321  done
5322IFS=$as_save_IFS
5323
5324fi
5325fi
5326DUMPBIN=$ac_cv_prog_DUMPBIN
5327if test -n "$DUMPBIN"; then
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5329$as_echo "$DUMPBIN" >&6; }
5330else
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
5333fi
5334
5335
5336    test -n "$DUMPBIN" && break
5337  done
5338fi
5339if test -z "$DUMPBIN"; then
5340  ac_ct_DUMPBIN=$DUMPBIN
5341  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5342do
5343  # Extract the first word of "$ac_prog", so it can be a program name with args.
5344set dummy $ac_prog; ac_word=$2
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346$as_echo_n "checking for $ac_word... " >&6; }
5347if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  if test -n "$ac_ct_DUMPBIN"; then
5351  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356  IFS=$as_save_IFS
5357  test -z "$as_dir" && as_dir=.
5358    for ac_exec_ext in '' $ac_executable_extensions; do
5359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362    break 2
5363  fi
5364done
5365  done
5366IFS=$as_save_IFS
5367
5368fi
5369fi
5370ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5371if test -n "$ac_ct_DUMPBIN"; then
5372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5373$as_echo "$ac_ct_DUMPBIN" >&6; }
5374else
5375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376$as_echo "no" >&6; }
5377fi
5378
5379
5380  test -n "$ac_ct_DUMPBIN" && break
5381done
5382
5383  if test "x$ac_ct_DUMPBIN" = x; then
5384    DUMPBIN=":"
5385  else
5386    case $cross_compiling:$ac_tool_warned in
5387yes:)
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5390ac_tool_warned=yes ;;
5391esac
5392    DUMPBIN=$ac_ct_DUMPBIN
5393  fi
5394fi
5395
5396
5397  if test "$DUMPBIN" != ":"; then
5398    NM="$DUMPBIN"
5399  fi
5400fi
5401test -z "$NM" && NM=nm
5402
5403
5404
5405
5406
5407
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5409$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5410if test "${lt_cv_nm_interface+set}" = set; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413  lt_cv_nm_interface="BSD nm"
5414  echo "int some_variable = 0;" > conftest.$ac_ext
5415  (eval echo "\"\$as_me:5415: $ac_compile\"" >&5)
5416  (eval "$ac_compile" 2>conftest.err)
5417  cat conftest.err >&5
5418  (eval echo "\"\$as_me:5418: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5419  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5420  cat conftest.err >&5
5421  (eval echo "\"\$as_me:5421: output\"" >&5)
5422  cat conftest.out >&5
5423  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5424    lt_cv_nm_interface="MS dumpbin"
5425  fi
5426  rm -f conftest*
5427fi
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5429$as_echo "$lt_cv_nm_interface" >&6; }
5430
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5432$as_echo_n "checking whether ln -s works... " >&6; }
5433LN_S=$as_ln_s
5434if test "$LN_S" = "ln -s"; then
5435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436$as_echo "yes" >&6; }
5437else
5438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5439$as_echo "no, using $LN_S" >&6; }
5440fi
5441
5442# find the maximum length of command line arguments
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5444$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5445if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448    i=0
5449  teststring="ABCD"
5450
5451  case $build_os in
5452  msdosdjgpp*)
5453    # On DJGPP, this test can blow up pretty badly due to problems in libc
5454    # (any single argument exceeding 2000 bytes causes a buffer overrun
5455    # during glob expansion).  Even if it were fixed, the result of this
5456    # check would be larger than it should be.
5457    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5458    ;;
5459
5460  gnu*)
5461    # Under GNU Hurd, this test is not required because there is
5462    # no limit to the length of command line arguments.
5463    # Libtool will interpret -1 as no limit whatsoever
5464    lt_cv_sys_max_cmd_len=-1;
5465    ;;
5466
5467  cygwin* | mingw* | cegcc*)
5468    # On Win9x/ME, this test blows up -- it succeeds, but takes
5469    # about 5 minutes as the teststring grows exponentially.
5470    # Worse, since 9x/ME are not pre-emptively multitasking,
5471    # you end up with a "frozen" computer, even though with patience
5472    # the test eventually succeeds (with a max line length of 256k).
5473    # Instead, let's just punt: use the minimum linelength reported by
5474    # all of the supported platforms: 8192 (on NT/2K/XP).
5475    lt_cv_sys_max_cmd_len=8192;
5476    ;;
5477
5478  amigaos*)
5479    # On AmigaOS with pdksh, this test takes hours, literally.
5480    # So we just punt and use a minimum line length of 8192.
5481    lt_cv_sys_max_cmd_len=8192;
5482    ;;
5483
5484  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5485    # This has been around since 386BSD, at least.  Likely further.
5486    if test -x /sbin/sysctl; then
5487      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5488    elif test -x /usr/sbin/sysctl; then
5489      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5490    else
5491      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5492    fi
5493    # And add a safety zone
5494    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5495    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5496    ;;
5497
5498  interix*)
5499    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5500    lt_cv_sys_max_cmd_len=196608
5501    ;;
5502
5503  osf*)
5504    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5505    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5506    # nice to cause kernel panics so lets avoid the loop below.
5507    # First set a reasonable default.
5508    lt_cv_sys_max_cmd_len=16384
5509    #
5510    if test -x /sbin/sysconfig; then
5511      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5512        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5513      esac
5514    fi
5515    ;;
5516  sco3.2v5*)
5517    lt_cv_sys_max_cmd_len=102400
5518    ;;
5519  sysv5* | sco5v6* | sysv4.2uw2*)
5520    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5521    if test -n "$kargmax"; then
5522      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5523    else
5524      lt_cv_sys_max_cmd_len=32768
5525    fi
5526    ;;
5527  *)
5528    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5529    if test -n "$lt_cv_sys_max_cmd_len"; then
5530      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5531      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5532    else
5533      # Make teststring a little bigger before we do anything with it.
5534      # a 1K string should be a reasonable start.
5535      for i in 1 2 3 4 5 6 7 8 ; do
5536        teststring=$teststring$teststring
5537      done
5538      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5539      # If test is not a shell built-in, we'll probably end up computing a
5540      # maximum length that is only half of the actual maximum length, but
5541      # we can't tell.
5542      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5543	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5544	      test $i != 17 # 1/2 MB should be enough
5545      do
5546        i=`expr $i + 1`
5547        teststring=$teststring$teststring
5548      done
5549      # Only check the string length outside the loop.
5550      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5551      teststring=
5552      # Add a significant safety factor because C++ compilers can tack on
5553      # massive amounts of additional arguments before passing them to the
5554      # linker.  It appears as though 1/2 is a usable value.
5555      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5556    fi
5557    ;;
5558  esac
5559
5560fi
5561
5562if test -n $lt_cv_sys_max_cmd_len ; then
5563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5564$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5565else
5566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5567$as_echo "none" >&6; }
5568fi
5569max_cmd_len=$lt_cv_sys_max_cmd_len
5570
5571
5572
5573
5574
5575
5576: ${CP="cp -f"}
5577: ${MV="mv -f"}
5578: ${RM="rm -f"}
5579
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5581$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5582# Try some XSI features
5583xsi_shell=no
5584( _lt_dummy="a/b/c"
5585  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5586      = c,a/b,, \
5587    && eval 'test $(( 1 + 1 )) -eq 2 \
5588    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5589  && xsi_shell=yes
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5591$as_echo "$xsi_shell" >&6; }
5592
5593
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5595$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5596lt_shell_append=no
5597( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5598    >/dev/null 2>&1 \
5599  && lt_shell_append=yes
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5601$as_echo "$lt_shell_append" >&6; }
5602
5603
5604if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5605  lt_unset=unset
5606else
5607  lt_unset=false
5608fi
5609
5610
5611
5612
5613
5614# test EBCDIC or ASCII
5615case `echo X|tr X '\101'` in
5616 A) # ASCII based system
5617    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5618  lt_SP2NL='tr \040 \012'
5619  lt_NL2SP='tr \015\012 \040\040'
5620  ;;
5621 *) # EBCDIC based system
5622  lt_SP2NL='tr \100 \n'
5623  lt_NL2SP='tr \r\n \100\100'
5624  ;;
5625esac
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5636$as_echo_n "checking for $LD option to reload object files... " >&6; }
5637if test "${lt_cv_ld_reload_flag+set}" = set; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  lt_cv_ld_reload_flag='-r'
5641fi
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5643$as_echo "$lt_cv_ld_reload_flag" >&6; }
5644reload_flag=$lt_cv_ld_reload_flag
5645case $reload_flag in
5646"" | " "*) ;;
5647*) reload_flag=" $reload_flag" ;;
5648esac
5649reload_cmds='$LD$reload_flag -o $output$reload_objs'
5650case $host_os in
5651  darwin*)
5652    if test "$GCC" = yes; then
5653      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5654    else
5655      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5656    fi
5657    ;;
5658esac
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668if test -n "$ac_tool_prefix"; then
5669  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5670set dummy ${ac_tool_prefix}objdump; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  if test -n "$OBJDUMP"; then
5677  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682  IFS=$as_save_IFS
5683  test -z "$as_dir" && as_dir=.
5684    for ac_exec_ext in '' $ac_executable_extensions; do
5685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688    break 2
5689  fi
5690done
5691  done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696OBJDUMP=$ac_cv_prog_OBJDUMP
5697if test -n "$OBJDUMP"; then
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5699$as_echo "$OBJDUMP" >&6; }
5700else
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705
5706fi
5707if test -z "$ac_cv_prog_OBJDUMP"; then
5708  ac_ct_OBJDUMP=$OBJDUMP
5709  # Extract the first word of "objdump", so it can be a program name with args.
5710set dummy objdump; ac_word=$2
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712$as_echo_n "checking for $ac_word... " >&6; }
5713if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  if test -n "$ac_ct_OBJDUMP"; then
5717  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724    for ac_exec_ext in '' $ac_executable_extensions; do
5725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731  done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5737if test -n "$ac_ct_OBJDUMP"; then
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5739$as_echo "$ac_ct_OBJDUMP" >&6; }
5740else
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743fi
5744
5745  if test "x$ac_ct_OBJDUMP" = x; then
5746    OBJDUMP="false"
5747  else
5748    case $cross_compiling:$ac_tool_warned in
5749yes:)
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752ac_tool_warned=yes ;;
5753esac
5754    OBJDUMP=$ac_ct_OBJDUMP
5755  fi
5756else
5757  OBJDUMP="$ac_cv_prog_OBJDUMP"
5758fi
5759
5760test -z "$OBJDUMP" && OBJDUMP=objdump
5761
5762
5763
5764
5765
5766
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5768$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5769if test "${lt_cv_deplibs_check_method+set}" = set; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  lt_cv_file_magic_cmd='$MAGIC_CMD'
5773lt_cv_file_magic_test_file=
5774lt_cv_deplibs_check_method='unknown'
5775# Need to set the preceding variable on all platforms that support
5776# interlibrary dependencies.
5777# 'none' -- dependencies not supported.
5778# `unknown' -- same as none, but documents that we really don't know.
5779# 'pass_all' -- all dependencies passed with no checks.
5780# 'test_compile' -- check by making test program.
5781# 'file_magic [[regex]]' -- check by looking for files in library path
5782# which responds to the $file_magic_cmd with a given extended regex.
5783# If you have `file' or equivalent on your system and you're not sure
5784# whether `pass_all' will *always* work, you probably want this one.
5785
5786case $host_os in
5787aix[4-9]*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790
5791beos*)
5792  lt_cv_deplibs_check_method=pass_all
5793  ;;
5794
5795bsdi[45]*)
5796  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5797  lt_cv_file_magic_cmd='/usr/bin/file -L'
5798  lt_cv_file_magic_test_file=/shlib/libc.so
5799  ;;
5800
5801cygwin*)
5802  # func_win32_libid is a shell function defined in ltmain.sh
5803  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5804  lt_cv_file_magic_cmd='func_win32_libid'
5805  ;;
5806
5807mingw* | pw32*)
5808  # Base MSYS/MinGW do not provide the 'file' command needed by
5809  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5810  # unless we find 'file', for example because we are cross-compiling.
5811  if ( file / ) >/dev/null 2>&1; then
5812    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5813    lt_cv_file_magic_cmd='func_win32_libid'
5814  else
5815    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5816    lt_cv_file_magic_cmd='$OBJDUMP -f'
5817  fi
5818  ;;
5819
5820cegcc)
5821  # use the weaker test based on 'objdump'. See mingw*.
5822  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5823  lt_cv_file_magic_cmd='$OBJDUMP -f'
5824  ;;
5825
5826darwin* | rhapsody*)
5827  lt_cv_deplibs_check_method=pass_all
5828  ;;
5829
5830freebsd* | dragonfly*)
5831  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5832    case $host_cpu in
5833    i*86 )
5834      # Not sure whether the presence of OpenBSD here was a mistake.
5835      # Let's accept both of them until this is cleared up.
5836      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5837      lt_cv_file_magic_cmd=/usr/bin/file
5838      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5839      ;;
5840    esac
5841  else
5842    lt_cv_deplibs_check_method=pass_all
5843  fi
5844  ;;
5845
5846gnu*)
5847  lt_cv_deplibs_check_method=pass_all
5848  ;;
5849
5850hpux10.20* | hpux11*)
5851  lt_cv_file_magic_cmd=/usr/bin/file
5852  case $host_cpu in
5853  ia64*)
5854    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5855    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5856    ;;
5857  hppa*64*)
5858    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5859    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5860    ;;
5861  *)
5862    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5863    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5864    ;;
5865  esac
5866  ;;
5867
5868interix[3-9]*)
5869  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5870  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5871  ;;
5872
5873irix5* | irix6* | nonstopux*)
5874  case $LD in
5875  *-32|*"-32 ") libmagic=32-bit;;
5876  *-n32|*"-n32 ") libmagic=N32;;
5877  *-64|*"-64 ") libmagic=64-bit;;
5878  *) libmagic=never-match;;
5879  esac
5880  lt_cv_deplibs_check_method=pass_all
5881  ;;
5882
5883# This must be Linux ELF.
5884linux* | k*bsd*-gnu)
5885  lt_cv_deplibs_check_method=pass_all
5886  ;;
5887
5888netbsd*)
5889  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5890    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5891  else
5892    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5893  fi
5894  ;;
5895
5896newos6*)
5897  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5898  lt_cv_file_magic_cmd=/usr/bin/file
5899  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5900  ;;
5901
5902*nto* | *qnx*)
5903  lt_cv_deplibs_check_method=pass_all
5904  ;;
5905
5906openbsd*)
5907  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5908    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5909  else
5910    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5911  fi
5912  ;;
5913
5914osf3* | osf4* | osf5*)
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917
5918rdos*)
5919  lt_cv_deplibs_check_method=pass_all
5920  ;;
5921
5922solaris*)
5923  lt_cv_deplibs_check_method=pass_all
5924  ;;
5925
5926sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5927  lt_cv_deplibs_check_method=pass_all
5928  ;;
5929
5930sysv4 | sysv4.3*)
5931  case $host_vendor in
5932  motorola)
5933    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]'
5934    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5935    ;;
5936  ncr)
5937    lt_cv_deplibs_check_method=pass_all
5938    ;;
5939  sequent)
5940    lt_cv_file_magic_cmd='/bin/file'
5941    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5942    ;;
5943  sni)
5944    lt_cv_file_magic_cmd='/bin/file'
5945    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5946    lt_cv_file_magic_test_file=/lib/libc.so
5947    ;;
5948  siemens)
5949    lt_cv_deplibs_check_method=pass_all
5950    ;;
5951  pc)
5952    lt_cv_deplibs_check_method=pass_all
5953    ;;
5954  esac
5955  ;;
5956
5957tpf*)
5958  lt_cv_deplibs_check_method=pass_all
5959  ;;
5960esac
5961
5962fi
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5964$as_echo "$lt_cv_deplibs_check_method" >&6; }
5965file_magic_cmd=$lt_cv_file_magic_cmd
5966deplibs_check_method=$lt_cv_deplibs_check_method
5967test -z "$deplibs_check_method" && deplibs_check_method=unknown
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980if test -n "$ac_tool_prefix"; then
5981  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5982set dummy ${ac_tool_prefix}ar; ac_word=$2
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984$as_echo_n "checking for $ac_word... " >&6; }
5985if test "${ac_cv_prog_AR+set}" = set; then :
5986  $as_echo_n "(cached) " >&6
5987else
5988  if test -n "$AR"; then
5989  ac_cv_prog_AR="$AR" # Let the user override the test.
5990else
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994  IFS=$as_save_IFS
5995  test -z "$as_dir" && as_dir=.
5996    for ac_exec_ext in '' $ac_executable_extensions; do
5997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5998    ac_cv_prog_AR="${ac_tool_prefix}ar"
5999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000    break 2
6001  fi
6002done
6003  done
6004IFS=$as_save_IFS
6005
6006fi
6007fi
6008AR=$ac_cv_prog_AR
6009if test -n "$AR"; then
6010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6011$as_echo "$AR" >&6; }
6012else
6013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014$as_echo "no" >&6; }
6015fi
6016
6017
6018fi
6019if test -z "$ac_cv_prog_AR"; then
6020  ac_ct_AR=$AR
6021  # Extract the first word of "ar", so it can be a program name with args.
6022set dummy ar; ac_word=$2
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024$as_echo_n "checking for $ac_word... " >&6; }
6025if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  if test -n "$ac_ct_AR"; then
6029  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6030else
6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032for as_dir in $PATH
6033do
6034  IFS=$as_save_IFS
6035  test -z "$as_dir" && as_dir=.
6036    for ac_exec_ext in '' $ac_executable_extensions; do
6037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038    ac_cv_prog_ac_ct_AR="ar"
6039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040    break 2
6041  fi
6042done
6043  done
6044IFS=$as_save_IFS
6045
6046fi
6047fi
6048ac_ct_AR=$ac_cv_prog_ac_ct_AR
6049if test -n "$ac_ct_AR"; then
6050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6051$as_echo "$ac_ct_AR" >&6; }
6052else
6053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054$as_echo "no" >&6; }
6055fi
6056
6057  if test "x$ac_ct_AR" = x; then
6058    AR="false"
6059  else
6060    case $cross_compiling:$ac_tool_warned in
6061yes:)
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6064ac_tool_warned=yes ;;
6065esac
6066    AR=$ac_ct_AR
6067  fi
6068else
6069  AR="$ac_cv_prog_AR"
6070fi
6071
6072test -z "$AR" && AR=ar
6073test -z "$AR_FLAGS" && AR_FLAGS=cru
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085if test -n "$ac_tool_prefix"; then
6086  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6087set dummy ${ac_tool_prefix}strip; ac_word=$2
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_STRIP+set}" = set; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  if test -n "$STRIP"; then
6094  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099  IFS=$as_save_IFS
6100  test -z "$as_dir" && as_dir=.
6101    for ac_exec_ext in '' $ac_executable_extensions; do
6102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105    break 2
6106  fi
6107done
6108  done
6109IFS=$as_save_IFS
6110
6111fi
6112fi
6113STRIP=$ac_cv_prog_STRIP
6114if test -n "$STRIP"; then
6115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6116$as_echo "$STRIP" >&6; }
6117else
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119$as_echo "no" >&6; }
6120fi
6121
6122
6123fi
6124if test -z "$ac_cv_prog_STRIP"; then
6125  ac_ct_STRIP=$STRIP
6126  # Extract the first word of "strip", so it can be a program name with args.
6127set dummy strip; ac_word=$2
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129$as_echo_n "checking for $ac_word... " >&6; }
6130if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6131  $as_echo_n "(cached) " >&6
6132else
6133  if test -n "$ac_ct_STRIP"; then
6134  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139  IFS=$as_save_IFS
6140  test -z "$as_dir" && as_dir=.
6141    for ac_exec_ext in '' $ac_executable_extensions; do
6142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143    ac_cv_prog_ac_ct_STRIP="strip"
6144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145    break 2
6146  fi
6147done
6148  done
6149IFS=$as_save_IFS
6150
6151fi
6152fi
6153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6154if test -n "$ac_ct_STRIP"; then
6155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6156$as_echo "$ac_ct_STRIP" >&6; }
6157else
6158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159$as_echo "no" >&6; }
6160fi
6161
6162  if test "x$ac_ct_STRIP" = x; then
6163    STRIP=":"
6164  else
6165    case $cross_compiling:$ac_tool_warned in
6166yes:)
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169ac_tool_warned=yes ;;
6170esac
6171    STRIP=$ac_ct_STRIP
6172  fi
6173else
6174  STRIP="$ac_cv_prog_STRIP"
6175fi
6176
6177test -z "$STRIP" && STRIP=:
6178
6179
6180
6181
6182
6183
6184if test -n "$ac_tool_prefix"; then
6185  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6186set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188$as_echo_n "checking for $ac_word... " >&6; }
6189if test "${ac_cv_prog_RANLIB+set}" = set; then :
6190  $as_echo_n "(cached) " >&6
6191else
6192  if test -n "$RANLIB"; then
6193  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198  IFS=$as_save_IFS
6199  test -z "$as_dir" && as_dir=.
6200    for ac_exec_ext in '' $ac_executable_extensions; do
6201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204    break 2
6205  fi
6206done
6207  done
6208IFS=$as_save_IFS
6209
6210fi
6211fi
6212RANLIB=$ac_cv_prog_RANLIB
6213if test -n "$RANLIB"; then
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6215$as_echo "$RANLIB" >&6; }
6216else
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218$as_echo "no" >&6; }
6219fi
6220
6221
6222fi
6223if test -z "$ac_cv_prog_RANLIB"; then
6224  ac_ct_RANLIB=$RANLIB
6225  # Extract the first word of "ranlib", so it can be a program name with args.
6226set dummy ranlib; ac_word=$2
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228$as_echo_n "checking for $ac_word... " >&6; }
6229if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  if test -n "$ac_ct_RANLIB"; then
6233  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6234else
6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
6238  IFS=$as_save_IFS
6239  test -z "$as_dir" && as_dir=.
6240    for ac_exec_ext in '' $ac_executable_extensions; do
6241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242    ac_cv_prog_ac_ct_RANLIB="ranlib"
6243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244    break 2
6245  fi
6246done
6247  done
6248IFS=$as_save_IFS
6249
6250fi
6251fi
6252ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6253if test -n "$ac_ct_RANLIB"; then
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6255$as_echo "$ac_ct_RANLIB" >&6; }
6256else
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258$as_echo "no" >&6; }
6259fi
6260
6261  if test "x$ac_ct_RANLIB" = x; then
6262    RANLIB=":"
6263  else
6264    case $cross_compiling:$ac_tool_warned in
6265yes:)
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268ac_tool_warned=yes ;;
6269esac
6270    RANLIB=$ac_ct_RANLIB
6271  fi
6272else
6273  RANLIB="$ac_cv_prog_RANLIB"
6274fi
6275
6276test -z "$RANLIB" && RANLIB=:
6277
6278
6279
6280
6281
6282
6283# Determine commands to create old-style static archives.
6284old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6285old_postinstall_cmds='chmod 644 $oldlib'
6286old_postuninstall_cmds=
6287
6288if test -n "$RANLIB"; then
6289  case $host_os in
6290  openbsd*)
6291    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6292    ;;
6293  *)
6294    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6295    ;;
6296  esac
6297  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6298fi
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333# If no C compiler was specified, use CC.
6334LTCC=${LTCC-"$CC"}
6335
6336# If no C compiler flags were specified, use CFLAGS.
6337LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6338
6339# Allow CC to be a program name with arguments.
6340compiler=$CC
6341
6342
6343# Check for command to grab the raw symbol name followed by C symbol from nm.
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6345$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6346if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349
6350# These are sane defaults that work on at least a few old systems.
6351# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6352
6353# Character class describing NM global symbol codes.
6354symcode='[BCDEGRST]'
6355
6356# Regexp to match symbols that can be accessed directly from C.
6357sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6358
6359# Define system-specific variables.
6360case $host_os in
6361aix*)
6362  symcode='[BCDT]'
6363  ;;
6364cygwin* | mingw* | pw32* | cegcc*)
6365  symcode='[ABCDGISTW]'
6366  ;;
6367hpux*)
6368  if test "$host_cpu" = ia64; then
6369    symcode='[ABCDEGRST]'
6370  fi
6371  ;;
6372irix* | nonstopux*)
6373  symcode='[BCDEGRST]'
6374  ;;
6375osf*)
6376  symcode='[BCDEGQRST]'
6377  ;;
6378solaris*)
6379  symcode='[BDRT]'
6380  ;;
6381sco3.2v5*)
6382  symcode='[DT]'
6383  ;;
6384sysv4.2uw2*)
6385  symcode='[DT]'
6386  ;;
6387sysv5* | sco5v6* | unixware* | OpenUNIX*)
6388  symcode='[ABDT]'
6389  ;;
6390sysv4)
6391  symcode='[DFNSTU]'
6392  ;;
6393esac
6394
6395# If we're using GNU nm, then use its standard symbol codes.
6396case `$NM -V 2>&1` in
6397*GNU* | *'with BFD'*)
6398  symcode='[ABCDGIRSTW]' ;;
6399esac
6400
6401# Transform an extracted symbol line into a proper C declaration.
6402# Some systems (esp. on ia64) link data and code symbols differently,
6403# so use this general approach.
6404lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6405
6406# Transform an extracted symbol line into symbol name and symbol address
6407lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6408lt_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'"
6409
6410# Handle CRLF in mingw tool chain
6411opt_cr=
6412case $build_os in
6413mingw*)
6414  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6415  ;;
6416esac
6417
6418# Try without a prefix underscore, then with it.
6419for ac_symprfx in "" "_"; do
6420
6421  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6422  symxfrm="\\1 $ac_symprfx\\2 \\2"
6423
6424  # Write the raw and C identifiers.
6425  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6426    # Fake it for dumpbin and say T for any non-static function
6427    # and D for any global variable.
6428    # Also find C++ and __fastcall symbols from MSVC++,
6429    # which start with @ or ?.
6430    lt_cv_sys_global_symbol_pipe="$AWK '"\
6431"     {last_section=section; section=\$ 3};"\
6432"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6433"     \$ 0!~/External *\|/{next};"\
6434"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6435"     {if(hide[section]) next};"\
6436"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6437"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6438"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6439"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6440"     ' prfx=^$ac_symprfx"
6441  else
6442    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6443  fi
6444
6445  # Check to see that the pipe works correctly.
6446  pipe_works=no
6447
6448  rm -f conftest*
6449  cat > conftest.$ac_ext <<_LT_EOF
6450#ifdef __cplusplus
6451extern "C" {
6452#endif
6453char nm_test_var;
6454void nm_test_func(void);
6455void nm_test_func(void){}
6456#ifdef __cplusplus
6457}
6458#endif
6459int main(){nm_test_var='a';nm_test_func();return(0);}
6460_LT_EOF
6461
6462  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463  (eval $ac_compile) 2>&5
6464  ac_status=$?
6465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466  test $ac_status = 0; }; then
6467    # Now try to grab the symbols.
6468    nlist=conftest.nm
6469    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6470  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6471  ac_status=$?
6472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473  test $ac_status = 0; } && test -s "$nlist"; then
6474      # Try sorting and uniquifying the output.
6475      if sort "$nlist" | uniq > "$nlist"T; then
6476	mv -f "$nlist"T "$nlist"
6477      else
6478	rm -f "$nlist"T
6479      fi
6480
6481      # Make sure that we snagged all the symbols we need.
6482      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6483	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6484	  cat <<_LT_EOF > conftest.$ac_ext
6485#ifdef __cplusplus
6486extern "C" {
6487#endif
6488
6489_LT_EOF
6490	  # Now generate the symbol file.
6491	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6492
6493	  cat <<_LT_EOF >> conftest.$ac_ext
6494
6495/* The mapping between symbol names and symbols.  */
6496const struct {
6497  const char *name;
6498  void       *address;
6499}
6500lt__PROGRAM__LTX_preloaded_symbols[] =
6501{
6502  { "@PROGRAM@", (void *) 0 },
6503_LT_EOF
6504	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6505	  cat <<\_LT_EOF >> conftest.$ac_ext
6506  {0, (void *) 0}
6507};
6508
6509/* This works around a problem in FreeBSD linker */
6510#ifdef FREEBSD_WORKAROUND
6511static const void *lt_preloaded_setup() {
6512  return lt__PROGRAM__LTX_preloaded_symbols;
6513}
6514#endif
6515
6516#ifdef __cplusplus
6517}
6518#endif
6519_LT_EOF
6520	  # Now try linking the two files.
6521	  mv conftest.$ac_objext conftstm.$ac_objext
6522	  lt_save_LIBS="$LIBS"
6523	  lt_save_CFLAGS="$CFLAGS"
6524	  LIBS="conftstm.$ac_objext"
6525	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6526	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6527  (eval $ac_link) 2>&5
6528  ac_status=$?
6529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6531	    pipe_works=yes
6532	  fi
6533	  LIBS="$lt_save_LIBS"
6534	  CFLAGS="$lt_save_CFLAGS"
6535	else
6536	  echo "cannot find nm_test_func in $nlist" >&5
6537	fi
6538      else
6539	echo "cannot find nm_test_var in $nlist" >&5
6540      fi
6541    else
6542      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6543    fi
6544  else
6545    echo "$progname: failed program was:" >&5
6546    cat conftest.$ac_ext >&5
6547  fi
6548  rm -rf conftest* conftst*
6549
6550  # Do not use the global_symbol_pipe unless it works.
6551  if test "$pipe_works" = yes; then
6552    break
6553  else
6554    lt_cv_sys_global_symbol_pipe=
6555  fi
6556done
6557
6558fi
6559
6560if test -z "$lt_cv_sys_global_symbol_pipe"; then
6561  lt_cv_sys_global_symbol_to_cdecl=
6562fi
6563if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6565$as_echo "failed" >&6; }
6566else
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6568$as_echo "ok" >&6; }
6569fi
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593# Check whether --enable-libtool-lock was given.
6594if test "${enable_libtool_lock+set}" = set; then :
6595  enableval=$enable_libtool_lock;
6596fi
6597
6598test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6599
6600# Some flags need to be propagated to the compiler or linker for good
6601# libtool support.
6602case $host in
6603ia64-*-hpux*)
6604  # Find out which ABI we are using.
6605  echo 'int i;' > conftest.$ac_ext
6606  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6607  (eval $ac_compile) 2>&5
6608  ac_status=$?
6609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610  test $ac_status = 0; }; then
6611    case `/usr/bin/file conftest.$ac_objext` in
6612      *ELF-32*)
6613	HPUX_IA64_MODE="32"
6614	;;
6615      *ELF-64*)
6616	HPUX_IA64_MODE="64"
6617	;;
6618    esac
6619  fi
6620  rm -rf conftest*
6621  ;;
6622*-*-irix6*)
6623  # Find out which ABI we are using.
6624  echo '#line 6624 "configure"' > conftest.$ac_ext
6625  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6626  (eval $ac_compile) 2>&5
6627  ac_status=$?
6628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629  test $ac_status = 0; }; then
6630    if test "$lt_cv_prog_gnu_ld" = yes; then
6631      case `/usr/bin/file conftest.$ac_objext` in
6632	*32-bit*)
6633	  LD="${LD-ld} -melf32bsmip"
6634	  ;;
6635	*N32*)
6636	  LD="${LD-ld} -melf32bmipn32"
6637	  ;;
6638	*64-bit*)
6639	  LD="${LD-ld} -melf64bmip"
6640	;;
6641      esac
6642    else
6643      case `/usr/bin/file conftest.$ac_objext` in
6644	*32-bit*)
6645	  LD="${LD-ld} -32"
6646	  ;;
6647	*N32*)
6648	  LD="${LD-ld} -n32"
6649	  ;;
6650	*64-bit*)
6651	  LD="${LD-ld} -64"
6652	  ;;
6653      esac
6654    fi
6655  fi
6656  rm -rf conftest*
6657  ;;
6658
6659x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6660s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6661  # Find out which ABI we are using.
6662  echo 'int i;' > conftest.$ac_ext
6663  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6664  (eval $ac_compile) 2>&5
6665  ac_status=$?
6666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667  test $ac_status = 0; }; then
6668    case `/usr/bin/file conftest.o` in
6669      *32-bit*)
6670	case $host in
6671	  x86_64-*kfreebsd*-gnu)
6672	    LD="${LD-ld} -m elf_i386_fbsd"
6673	    ;;
6674	  x86_64-*linux*)
6675	    LD="${LD-ld} -m elf_i386"
6676	    ;;
6677	  ppc64-*linux*|powerpc64-*linux*)
6678	    LD="${LD-ld} -m elf32ppclinux"
6679	    ;;
6680	  s390x-*linux*)
6681	    LD="${LD-ld} -m elf_s390"
6682	    ;;
6683	  sparc64-*linux*)
6684	    LD="${LD-ld} -m elf32_sparc"
6685	    ;;
6686	esac
6687	;;
6688      *64-bit*)
6689	case $host in
6690	  x86_64-*kfreebsd*-gnu)
6691	    LD="${LD-ld} -m elf_x86_64_fbsd"
6692	    ;;
6693	  x86_64-*linux*)
6694	    LD="${LD-ld} -m elf_x86_64"
6695	    ;;
6696	  ppc*-*linux*|powerpc*-*linux*)
6697	    LD="${LD-ld} -m elf64ppc"
6698	    ;;
6699	  s390*-*linux*|s390*-*tpf*)
6700	    LD="${LD-ld} -m elf64_s390"
6701	    ;;
6702	  sparc*-*linux*)
6703	    LD="${LD-ld} -m elf64_sparc"
6704	    ;;
6705	esac
6706	;;
6707    esac
6708  fi
6709  rm -rf conftest*
6710  ;;
6711
6712*-*-sco3.2v5*)
6713  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6714  SAVE_CFLAGS="$CFLAGS"
6715  CFLAGS="$CFLAGS -belf"
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6717$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6718if test "${lt_cv_cc_needs_belf+set}" = set; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  ac_ext=c
6722ac_cpp='$CPP $CPPFLAGS'
6723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725ac_compiler_gnu=$ac_cv_c_compiler_gnu
6726
6727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729
6730int
6731main ()
6732{
6733
6734  ;
6735  return 0;
6736}
6737_ACEOF
6738if ac_fn_c_try_link "$LINENO"; then :
6739  lt_cv_cc_needs_belf=yes
6740else
6741  lt_cv_cc_needs_belf=no
6742fi
6743rm -f core conftest.err conftest.$ac_objext \
6744    conftest$ac_exeext conftest.$ac_ext
6745     ac_ext=c
6746ac_cpp='$CPP $CPPFLAGS'
6747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751fi
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6753$as_echo "$lt_cv_cc_needs_belf" >&6; }
6754  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6755    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6756    CFLAGS="$SAVE_CFLAGS"
6757  fi
6758  ;;
6759sparc*-*solaris*)
6760  # Find out which ABI we are using.
6761  echo 'int i;' > conftest.$ac_ext
6762  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6763  (eval $ac_compile) 2>&5
6764  ac_status=$?
6765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766  test $ac_status = 0; }; then
6767    case `/usr/bin/file conftest.o` in
6768    *64-bit*)
6769      case $lt_cv_prog_gnu_ld in
6770      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6771      *)
6772	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6773	  LD="${LD-ld} -64"
6774	fi
6775	;;
6776      esac
6777      ;;
6778    esac
6779  fi
6780  rm -rf conftest*
6781  ;;
6782esac
6783
6784need_locks="$enable_libtool_lock"
6785
6786
6787  case $host_os in
6788    rhapsody* | darwin*)
6789    if test -n "$ac_tool_prefix"; then
6790  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6791set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797  if test -n "$DSYMUTIL"; then
6798  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817DSYMUTIL=$ac_cv_prog_DSYMUTIL
6818if test -n "$DSYMUTIL"; then
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6820$as_echo "$DSYMUTIL" >&6; }
6821else
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824fi
6825
6826
6827fi
6828if test -z "$ac_cv_prog_DSYMUTIL"; then
6829  ac_ct_DSYMUTIL=$DSYMUTIL
6830  # Extract the first word of "dsymutil", so it can be a program name with args.
6831set dummy dsymutil; ac_word=$2
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833$as_echo_n "checking for $ac_word... " >&6; }
6834if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  if test -n "$ac_ct_DSYMUTIL"; then
6838  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  test -z "$as_dir" && as_dir=.
6845    for ac_exec_ext in '' $ac_executable_extensions; do
6846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849    break 2
6850  fi
6851done
6852  done
6853IFS=$as_save_IFS
6854
6855fi
6856fi
6857ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6858if test -n "$ac_ct_DSYMUTIL"; then
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6860$as_echo "$ac_ct_DSYMUTIL" >&6; }
6861else
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
6864fi
6865
6866  if test "x$ac_ct_DSYMUTIL" = x; then
6867    DSYMUTIL=":"
6868  else
6869    case $cross_compiling:$ac_tool_warned in
6870yes:)
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873ac_tool_warned=yes ;;
6874esac
6875    DSYMUTIL=$ac_ct_DSYMUTIL
6876  fi
6877else
6878  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6879fi
6880
6881    if test -n "$ac_tool_prefix"; then
6882  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6883set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885$as_echo_n "checking for $ac_word... " >&6; }
6886if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6887  $as_echo_n "(cached) " >&6
6888else
6889  if test -n "$NMEDIT"; then
6890  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6891else
6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895  IFS=$as_save_IFS
6896  test -z "$as_dir" && as_dir=.
6897    for ac_exec_ext in '' $ac_executable_extensions; do
6898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901    break 2
6902  fi
6903done
6904  done
6905IFS=$as_save_IFS
6906
6907fi
6908fi
6909NMEDIT=$ac_cv_prog_NMEDIT
6910if test -n "$NMEDIT"; then
6911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6912$as_echo "$NMEDIT" >&6; }
6913else
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915$as_echo "no" >&6; }
6916fi
6917
6918
6919fi
6920if test -z "$ac_cv_prog_NMEDIT"; then
6921  ac_ct_NMEDIT=$NMEDIT
6922  # Extract the first word of "nmedit", so it can be a program name with args.
6923set dummy nmedit; ac_word=$2
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925$as_echo_n "checking for $ac_word... " >&6; }
6926if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6927  $as_echo_n "(cached) " >&6
6928else
6929  if test -n "$ac_ct_NMEDIT"; then
6930  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6931else
6932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935  IFS=$as_save_IFS
6936  test -z "$as_dir" && as_dir=.
6937    for ac_exec_ext in '' $ac_executable_extensions; do
6938  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941    break 2
6942  fi
6943done
6944  done
6945IFS=$as_save_IFS
6946
6947fi
6948fi
6949ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6950if test -n "$ac_ct_NMEDIT"; then
6951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6952$as_echo "$ac_ct_NMEDIT" >&6; }
6953else
6954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955$as_echo "no" >&6; }
6956fi
6957
6958  if test "x$ac_ct_NMEDIT" = x; then
6959    NMEDIT=":"
6960  else
6961    case $cross_compiling:$ac_tool_warned in
6962yes:)
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965ac_tool_warned=yes ;;
6966esac
6967    NMEDIT=$ac_ct_NMEDIT
6968  fi
6969else
6970  NMEDIT="$ac_cv_prog_NMEDIT"
6971fi
6972
6973    if test -n "$ac_tool_prefix"; then
6974  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6975set dummy ${ac_tool_prefix}lipo; ac_word=$2
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977$as_echo_n "checking for $ac_word... " >&6; }
6978if test "${ac_cv_prog_LIPO+set}" = set; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  if test -n "$LIPO"; then
6982  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987  IFS=$as_save_IFS
6988  test -z "$as_dir" && as_dir=.
6989    for ac_exec_ext in '' $ac_executable_extensions; do
6990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993    break 2
6994  fi
6995done
6996  done
6997IFS=$as_save_IFS
6998
6999fi
7000fi
7001LIPO=$ac_cv_prog_LIPO
7002if test -n "$LIPO"; then
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7004$as_echo "$LIPO" >&6; }
7005else
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007$as_echo "no" >&6; }
7008fi
7009
7010
7011fi
7012if test -z "$ac_cv_prog_LIPO"; then
7013  ac_ct_LIPO=$LIPO
7014  # Extract the first word of "lipo", so it can be a program name with args.
7015set dummy lipo; ac_word=$2
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017$as_echo_n "checking for $ac_word... " >&6; }
7018if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7019  $as_echo_n "(cached) " >&6
7020else
7021  if test -n "$ac_ct_LIPO"; then
7022  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027  IFS=$as_save_IFS
7028  test -z "$as_dir" && as_dir=.
7029    for ac_exec_ext in '' $ac_executable_extensions; do
7030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031    ac_cv_prog_ac_ct_LIPO="lipo"
7032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033    break 2
7034  fi
7035done
7036  done
7037IFS=$as_save_IFS
7038
7039fi
7040fi
7041ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7042if test -n "$ac_ct_LIPO"; then
7043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7044$as_echo "$ac_ct_LIPO" >&6; }
7045else
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047$as_echo "no" >&6; }
7048fi
7049
7050  if test "x$ac_ct_LIPO" = x; then
7051    LIPO=":"
7052  else
7053    case $cross_compiling:$ac_tool_warned in
7054yes:)
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057ac_tool_warned=yes ;;
7058esac
7059    LIPO=$ac_ct_LIPO
7060  fi
7061else
7062  LIPO="$ac_cv_prog_LIPO"
7063fi
7064
7065    if test -n "$ac_tool_prefix"; then
7066  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7067set dummy ${ac_tool_prefix}otool; ac_word=$2
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069$as_echo_n "checking for $ac_word... " >&6; }
7070if test "${ac_cv_prog_OTOOL+set}" = set; then :
7071  $as_echo_n "(cached) " >&6
7072else
7073  if test -n "$OTOOL"; then
7074  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079  IFS=$as_save_IFS
7080  test -z "$as_dir" && as_dir=.
7081    for ac_exec_ext in '' $ac_executable_extensions; do
7082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085    break 2
7086  fi
7087done
7088  done
7089IFS=$as_save_IFS
7090
7091fi
7092fi
7093OTOOL=$ac_cv_prog_OTOOL
7094if test -n "$OTOOL"; then
7095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7096$as_echo "$OTOOL" >&6; }
7097else
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099$as_echo "no" >&6; }
7100fi
7101
7102
7103fi
7104if test -z "$ac_cv_prog_OTOOL"; then
7105  ac_ct_OTOOL=$OTOOL
7106  # Extract the first word of "otool", so it can be a program name with args.
7107set dummy otool; ac_word=$2
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109$as_echo_n "checking for $ac_word... " >&6; }
7110if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  if test -n "$ac_ct_OTOOL"; then
7114  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119  IFS=$as_save_IFS
7120  test -z "$as_dir" && as_dir=.
7121    for ac_exec_ext in '' $ac_executable_extensions; do
7122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7123    ac_cv_prog_ac_ct_OTOOL="otool"
7124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125    break 2
7126  fi
7127done
7128  done
7129IFS=$as_save_IFS
7130
7131fi
7132fi
7133ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7134if test -n "$ac_ct_OTOOL"; then
7135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7136$as_echo "$ac_ct_OTOOL" >&6; }
7137else
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139$as_echo "no" >&6; }
7140fi
7141
7142  if test "x$ac_ct_OTOOL" = x; then
7143    OTOOL=":"
7144  else
7145    case $cross_compiling:$ac_tool_warned in
7146yes:)
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149ac_tool_warned=yes ;;
7150esac
7151    OTOOL=$ac_ct_OTOOL
7152  fi
7153else
7154  OTOOL="$ac_cv_prog_OTOOL"
7155fi
7156
7157    if test -n "$ac_tool_prefix"; then
7158  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7159set dummy ${ac_tool_prefix}otool64; ac_word=$2
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161$as_echo_n "checking for $ac_word... " >&6; }
7162if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7163  $as_echo_n "(cached) " >&6
7164else
7165  if test -n "$OTOOL64"; then
7166  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171  IFS=$as_save_IFS
7172  test -z "$as_dir" && as_dir=.
7173    for ac_exec_ext in '' $ac_executable_extensions; do
7174  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177    break 2
7178  fi
7179done
7180  done
7181IFS=$as_save_IFS
7182
7183fi
7184fi
7185OTOOL64=$ac_cv_prog_OTOOL64
7186if test -n "$OTOOL64"; then
7187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7188$as_echo "$OTOOL64" >&6; }
7189else
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
7192fi
7193
7194
7195fi
7196if test -z "$ac_cv_prog_OTOOL64"; then
7197  ac_ct_OTOOL64=$OTOOL64
7198  # Extract the first word of "otool64", so it can be a program name with args.
7199set dummy otool64; ac_word=$2
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201$as_echo_n "checking for $ac_word... " >&6; }
7202if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  if test -n "$ac_ct_OTOOL64"; then
7206  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211  IFS=$as_save_IFS
7212  test -z "$as_dir" && as_dir=.
7213    for ac_exec_ext in '' $ac_executable_extensions; do
7214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7215    ac_cv_prog_ac_ct_OTOOL64="otool64"
7216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217    break 2
7218  fi
7219done
7220  done
7221IFS=$as_save_IFS
7222
7223fi
7224fi
7225ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7226if test -n "$ac_ct_OTOOL64"; then
7227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7228$as_echo "$ac_ct_OTOOL64" >&6; }
7229else
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231$as_echo "no" >&6; }
7232fi
7233
7234  if test "x$ac_ct_OTOOL64" = x; then
7235    OTOOL64=":"
7236  else
7237    case $cross_compiling:$ac_tool_warned in
7238yes:)
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241ac_tool_warned=yes ;;
7242esac
7243    OTOOL64=$ac_ct_OTOOL64
7244  fi
7245else
7246  OTOOL64="$ac_cv_prog_OTOOL64"
7247fi
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7276$as_echo_n "checking for -single_module linker flag... " >&6; }
7277if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  lt_cv_apple_cc_single_mod=no
7281      if test -z "${LT_MULTI_MODULE}"; then
7282	# By default we will add the -single_module flag. You can override
7283	# by either setting the environment variable LT_MULTI_MODULE
7284	# non-empty at configure time, or by adding -multi_module to the
7285	# link flags.
7286	rm -rf libconftest.dylib*
7287	echo "int foo(void){return 1;}" > conftest.c
7288	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289-dynamiclib -Wl,-single_module conftest.c" >&5
7290	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7291	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7292        _lt_result=$?
7293	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7294	  lt_cv_apple_cc_single_mod=yes
7295	else
7296	  cat conftest.err >&5
7297	fi
7298	rm -rf libconftest.dylib*
7299	rm -f conftest.*
7300      fi
7301fi
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7303$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7305$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7306if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  lt_cv_ld_exported_symbols_list=no
7310      save_LDFLAGS=$LDFLAGS
7311      echo "_main" > conftest.sym
7312      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7313      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h.  */
7315
7316int
7317main ()
7318{
7319
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_link "$LINENO"; then :
7325  lt_cv_ld_exported_symbols_list=yes
7326else
7327  lt_cv_ld_exported_symbols_list=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext \
7330    conftest$ac_exeext conftest.$ac_ext
7331	LDFLAGS="$save_LDFLAGS"
7332
7333fi
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7335$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7336    case $host_os in
7337    rhapsody* | darwin1.[012])
7338      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7339    darwin1.*)
7340      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7341    darwin*) # darwin 5.x on
7342      # if running on 10.5 or later, the deployment target defaults
7343      # to the OS version, if on x86, and 10.4, the deployment
7344      # target defaults to 10.4. Don't you love it?
7345      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7346	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7347	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7348	10.[012]*)
7349	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7350	10.*)
7351	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7352      esac
7353    ;;
7354  esac
7355    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7356      _lt_dar_single_mod='$single_module'
7357    fi
7358    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7359      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7360    else
7361      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7362    fi
7363    if test "$DSYMUTIL" != ":"; then
7364      _lt_dsymutil='~$DSYMUTIL $lib || :'
7365    else
7366      _lt_dsymutil=
7367    fi
7368    ;;
7369  esac
7370
7371ac_ext=c
7372ac_cpp='$CPP $CPPFLAGS'
7373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7377$as_echo_n "checking how to run the C preprocessor... " >&6; }
7378# On Suns, sometimes $CPP names a directory.
7379if test -n "$CPP" && test -d "$CPP"; then
7380  CPP=
7381fi
7382if test -z "$CPP"; then
7383  if test "${ac_cv_prog_CPP+set}" = set; then :
7384  $as_echo_n "(cached) " >&6
7385else
7386      # Double quotes because CPP needs to be expanded
7387    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7388    do
7389      ac_preproc_ok=false
7390for ac_c_preproc_warn_flag in '' yes
7391do
7392  # Use a header file that comes with gcc, so configuring glibc
7393  # with a fresh cross-compiler works.
7394  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7395  # <limits.h> exists even on freestanding compilers.
7396  # On the NeXT, cc -E runs the code through the compiler's parser,
7397  # not just through cpp. "Syntax error" is here to catch this case.
7398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400#ifdef __STDC__
7401# include <limits.h>
7402#else
7403# include <assert.h>
7404#endif
7405		     Syntax error
7406_ACEOF
7407if ac_fn_c_try_cpp "$LINENO"; then :
7408
7409else
7410  # Broken: fails on valid input.
7411continue
7412fi
7413rm -f conftest.err conftest.$ac_ext
7414
7415  # OK, works on sane cases.  Now check whether nonexistent headers
7416  # can be detected and how.
7417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418/* end confdefs.h.  */
7419#include <ac_nonexistent.h>
7420_ACEOF
7421if ac_fn_c_try_cpp "$LINENO"; then :
7422  # Broken: success on invalid input.
7423continue
7424else
7425  # Passes both tests.
7426ac_preproc_ok=:
7427break
7428fi
7429rm -f conftest.err conftest.$ac_ext
7430
7431done
7432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7433rm -f conftest.err conftest.$ac_ext
7434if $ac_preproc_ok; then :
7435  break
7436fi
7437
7438    done
7439    ac_cv_prog_CPP=$CPP
7440
7441fi
7442  CPP=$ac_cv_prog_CPP
7443else
7444  ac_cv_prog_CPP=$CPP
7445fi
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7447$as_echo "$CPP" >&6; }
7448ac_preproc_ok=false
7449for ac_c_preproc_warn_flag in '' yes
7450do
7451  # Use a header file that comes with gcc, so configuring glibc
7452  # with a fresh cross-compiler works.
7453  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454  # <limits.h> exists even on freestanding compilers.
7455  # On the NeXT, cc -E runs the code through the compiler's parser,
7456  # not just through cpp. "Syntax error" is here to catch this case.
7457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458/* end confdefs.h.  */
7459#ifdef __STDC__
7460# include <limits.h>
7461#else
7462# include <assert.h>
7463#endif
7464		     Syntax error
7465_ACEOF
7466if ac_fn_c_try_cpp "$LINENO"; then :
7467
7468else
7469  # Broken: fails on valid input.
7470continue
7471fi
7472rm -f conftest.err conftest.$ac_ext
7473
7474  # OK, works on sane cases.  Now check whether nonexistent headers
7475  # can be detected and how.
7476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477/* end confdefs.h.  */
7478#include <ac_nonexistent.h>
7479_ACEOF
7480if ac_fn_c_try_cpp "$LINENO"; then :
7481  # Broken: success on invalid input.
7482continue
7483else
7484  # Passes both tests.
7485ac_preproc_ok=:
7486break
7487fi
7488rm -f conftest.err conftest.$ac_ext
7489
7490done
7491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7492rm -f conftest.err conftest.$ac_ext
7493if $ac_preproc_ok; then :
7494
7495else
7496  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7498as_fn_error "C preprocessor \"$CPP\" fails sanity check
7499See \`config.log' for more details." "$LINENO" 5; }
7500fi
7501
7502ac_ext=c
7503ac_cpp='$CPP $CPPFLAGS'
7504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507
7508
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7510$as_echo_n "checking for ANSI C header files... " >&6; }
7511if test "${ac_cv_header_stdc+set}" = set; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515/* end confdefs.h.  */
7516#include <stdlib.h>
7517#include <stdarg.h>
7518#include <string.h>
7519#include <float.h>
7520
7521int
7522main ()
7523{
7524
7525  ;
7526  return 0;
7527}
7528_ACEOF
7529if ac_fn_c_try_compile "$LINENO"; then :
7530  ac_cv_header_stdc=yes
7531else
7532  ac_cv_header_stdc=no
7533fi
7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535
7536if test $ac_cv_header_stdc = yes; then
7537  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539/* end confdefs.h.  */
7540#include <string.h>
7541
7542_ACEOF
7543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544  $EGREP "memchr" >/dev/null 2>&1; then :
7545
7546else
7547  ac_cv_header_stdc=no
7548fi
7549rm -f conftest*
7550
7551fi
7552
7553if test $ac_cv_header_stdc = yes; then
7554  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557#include <stdlib.h>
7558
7559_ACEOF
7560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561  $EGREP "free" >/dev/null 2>&1; then :
7562
7563else
7564  ac_cv_header_stdc=no
7565fi
7566rm -f conftest*
7567
7568fi
7569
7570if test $ac_cv_header_stdc = yes; then
7571  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7572  if test "$cross_compiling" = yes; then :
7573  :
7574else
7575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576/* end confdefs.h.  */
7577#include <ctype.h>
7578#include <stdlib.h>
7579#if ((' ' & 0x0FF) == 0x020)
7580# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7581# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7582#else
7583# define ISLOWER(c) \
7584		   (('a' <= (c) && (c) <= 'i') \
7585		     || ('j' <= (c) && (c) <= 'r') \
7586		     || ('s' <= (c) && (c) <= 'z'))
7587# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7588#endif
7589
7590#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7591int
7592main ()
7593{
7594  int i;
7595  for (i = 0; i < 256; i++)
7596    if (XOR (islower (i), ISLOWER (i))
7597	|| toupper (i) != TOUPPER (i))
7598      return 2;
7599  return 0;
7600}
7601_ACEOF
7602if ac_fn_c_try_run "$LINENO"; then :
7603
7604else
7605  ac_cv_header_stdc=no
7606fi
7607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7608  conftest.$ac_objext conftest.beam conftest.$ac_ext
7609fi
7610
7611fi
7612fi
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7614$as_echo "$ac_cv_header_stdc" >&6; }
7615if test $ac_cv_header_stdc = yes; then
7616
7617$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7618
7619fi
7620
7621# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7622for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7623		  inttypes.h stdint.h unistd.h
7624do :
7625  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7626ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7627"
7628eval as_val=\$$as_ac_Header
7629   if test "x$as_val" = x""yes; then :
7630  cat >>confdefs.h <<_ACEOF
7631#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7632_ACEOF
7633
7634fi
7635
7636done
7637
7638
7639for ac_header in dlfcn.h
7640do :
7641  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7642"
7643if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7644  cat >>confdefs.h <<_ACEOF
7645#define HAVE_DLFCN_H 1
7646_ACEOF
7647
7648fi
7649
7650done
7651
7652
7653
7654ac_ext=cpp
7655ac_cpp='$CXXCPP $CPPFLAGS'
7656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7659if test -z "$CXX"; then
7660  if test -n "$CCC"; then
7661    CXX=$CCC
7662  else
7663    if test -n "$ac_tool_prefix"; then
7664  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7665  do
7666    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7667set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669$as_echo_n "checking for $ac_word... " >&6; }
7670if test "${ac_cv_prog_CXX+set}" = set; then :
7671  $as_echo_n "(cached) " >&6
7672else
7673  if test -n "$CXX"; then
7674  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7675else
7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679  IFS=$as_save_IFS
7680  test -z "$as_dir" && as_dir=.
7681    for ac_exec_ext in '' $ac_executable_extensions; do
7682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7683    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685    break 2
7686  fi
7687done
7688  done
7689IFS=$as_save_IFS
7690
7691fi
7692fi
7693CXX=$ac_cv_prog_CXX
7694if test -n "$CXX"; then
7695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7696$as_echo "$CXX" >&6; }
7697else
7698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699$as_echo "no" >&6; }
7700fi
7701
7702
7703    test -n "$CXX" && break
7704  done
7705fi
7706if test -z "$CXX"; then
7707  ac_ct_CXX=$CXX
7708  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7709do
7710  # Extract the first word of "$ac_prog", so it can be a program name with args.
7711set dummy $ac_prog; ac_word=$2
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713$as_echo_n "checking for $ac_word... " >&6; }
7714if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717  if test -n "$ac_ct_CXX"; then
7718  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  test -z "$as_dir" && as_dir=.
7725    for ac_exec_ext in '' $ac_executable_extensions; do
7726  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727    ac_cv_prog_ac_ct_CXX="$ac_prog"
7728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729    break 2
7730  fi
7731done
7732  done
7733IFS=$as_save_IFS
7734
7735fi
7736fi
7737ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7738if test -n "$ac_ct_CXX"; then
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7740$as_echo "$ac_ct_CXX" >&6; }
7741else
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743$as_echo "no" >&6; }
7744fi
7745
7746
7747  test -n "$ac_ct_CXX" && break
7748done
7749
7750  if test "x$ac_ct_CXX" = x; then
7751    CXX="g++"
7752  else
7753    case $cross_compiling:$ac_tool_warned in
7754yes:)
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7757ac_tool_warned=yes ;;
7758esac
7759    CXX=$ac_ct_CXX
7760  fi
7761fi
7762
7763  fi
7764fi
7765# Provide some information about the compiler.
7766$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7767set X $ac_compile
7768ac_compiler=$2
7769for ac_option in --version -v -V -qversion; do
7770  { { ac_try="$ac_compiler $ac_option >&5"
7771case "(($ac_try" in
7772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773  *) ac_try_echo=$ac_try;;
7774esac
7775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7776$as_echo "$ac_try_echo"; } >&5
7777  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7778  ac_status=$?
7779  if test -s conftest.err; then
7780    sed '10a\
7781... rest of stderr output deleted ...
7782         10q' conftest.err >conftest.er1
7783    cat conftest.er1 >&5
7784    rm -f conftest.er1 conftest.err
7785  fi
7786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7787  test $ac_status = 0; }
7788done
7789
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7791$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7792if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797
7798int
7799main ()
7800{
7801#ifndef __GNUC__
7802       choke me
7803#endif
7804
7805  ;
7806  return 0;
7807}
7808_ACEOF
7809if ac_fn_cxx_try_compile "$LINENO"; then :
7810  ac_compiler_gnu=yes
7811else
7812  ac_compiler_gnu=no
7813fi
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7816
7817fi
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7819$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7820if test $ac_compiler_gnu = yes; then
7821  GXX=yes
7822else
7823  GXX=
7824fi
7825ac_test_CXXFLAGS=${CXXFLAGS+set}
7826ac_save_CXXFLAGS=$CXXFLAGS
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7828$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7829if test "${ac_cv_prog_cxx_g+set}" = set; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7833   ac_cxx_werror_flag=yes
7834   ac_cv_prog_cxx_g=no
7835   CXXFLAGS="-g"
7836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838
7839int
7840main ()
7841{
7842
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847if ac_fn_cxx_try_compile "$LINENO"; then :
7848  ac_cv_prog_cxx_g=yes
7849else
7850  CXXFLAGS=""
7851      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h.  */
7853
7854int
7855main ()
7856{
7857
7858  ;
7859  return 0;
7860}
7861_ACEOF
7862if ac_fn_cxx_try_compile "$LINENO"; then :
7863
7864else
7865  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7866	 CXXFLAGS="-g"
7867	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h.  */
7869
7870int
7871main ()
7872{
7873
7874  ;
7875  return 0;
7876}
7877_ACEOF
7878if ac_fn_cxx_try_compile "$LINENO"; then :
7879  ac_cv_prog_cxx_g=yes
7880fi
7881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882fi
7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884fi
7885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7887fi
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7889$as_echo "$ac_cv_prog_cxx_g" >&6; }
7890if test "$ac_test_CXXFLAGS" = set; then
7891  CXXFLAGS=$ac_save_CXXFLAGS
7892elif test $ac_cv_prog_cxx_g = yes; then
7893  if test "$GXX" = yes; then
7894    CXXFLAGS="-g -O2"
7895  else
7896    CXXFLAGS="-g"
7897  fi
7898else
7899  if test "$GXX" = yes; then
7900    CXXFLAGS="-O2"
7901  else
7902    CXXFLAGS=
7903  fi
7904fi
7905ac_ext=c
7906ac_cpp='$CPP $CPPFLAGS'
7907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910
7911depcc="$CXX"  am_compiler_list=
7912
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7914$as_echo_n "checking dependency style of $depcc... " >&6; }
7915if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7916  $as_echo_n "(cached) " >&6
7917else
7918  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7919  # We make a subdir and do the tests there.  Otherwise we can end up
7920  # making bogus files that we don't know about and never remove.  For
7921  # instance it was reported that on HP-UX the gcc test will end up
7922  # making a dummy file named `D' -- because `-MD' means `put the output
7923  # in D'.
7924  mkdir conftest.dir
7925  # Copy depcomp to subdir because otherwise we won't find it if we're
7926  # using a relative directory.
7927  cp "$am_depcomp" conftest.dir
7928  cd conftest.dir
7929  # We will build objects and dependencies in a subdirectory because
7930  # it helps to detect inapplicable dependency modes.  For instance
7931  # both Tru64's cc and ICC support -MD to output dependencies as a
7932  # side effect of compilation, but ICC will put the dependencies in
7933  # the current directory while Tru64 will put them in the object
7934  # directory.
7935  mkdir sub
7936
7937  am_cv_CXX_dependencies_compiler_type=none
7938  if test "$am_compiler_list" = ""; then
7939     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7940  fi
7941  am__universal=false
7942  case " $depcc " in #(
7943     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7944     esac
7945
7946  for depmode in $am_compiler_list; do
7947    # Setup a source with many dependencies, because some compilers
7948    # like to wrap large dependency lists on column 80 (with \), and
7949    # we should not choose a depcomp mode which is confused by this.
7950    #
7951    # We need to recreate these files for each test, as the compiler may
7952    # overwrite some of them when testing with obscure command lines.
7953    # This happens at least with the AIX C compiler.
7954    : > sub/conftest.c
7955    for i in 1 2 3 4 5 6; do
7956      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7957      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7958      # Solaris 8's {/usr,}/bin/sh.
7959      touch sub/conftst$i.h
7960    done
7961    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7962
7963    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7964    # mode.  It turns out that the SunPro C++ compiler does not properly
7965    # handle `-M -o', and we need to detect this.  Also, some Intel
7966    # versions had trouble with output in subdirs
7967    am__obj=sub/conftest.${OBJEXT-o}
7968    am__minus_obj="-o $am__obj"
7969    case $depmode in
7970    gcc)
7971      # This depmode causes a compiler race in universal mode.
7972      test "$am__universal" = false || continue
7973      ;;
7974    nosideeffect)
7975      # after this tag, mechanisms are not by side-effect, so they'll
7976      # only be used when explicitly requested
7977      if test "x$enable_dependency_tracking" = xyes; then
7978	continue
7979      else
7980	break
7981      fi
7982      ;;
7983    msvisualcpp | msvcmsys)
7984      # This compiler won't grok `-c -o', but also, the minuso test has
7985      # not run yet.  These depmodes are late enough in the game, and
7986      # so weak that their functioning should not be impacted.
7987      am__obj=conftest.${OBJEXT-o}
7988      am__minus_obj=
7989      ;;
7990    none) break ;;
7991    esac
7992    if depmode=$depmode \
7993       source=sub/conftest.c object=$am__obj \
7994       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7995       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7996         >/dev/null 2>conftest.err &&
7997       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7998       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7999       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8000       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8001      # icc doesn't choke on unknown options, it will just issue warnings
8002      # or remarks (even with -Werror).  So we grep stderr for any message
8003      # that says an option was ignored or not supported.
8004      # When given -MP, icc 7.0 and 7.1 complain thusly:
8005      #   icc: Command line warning: ignoring option '-M'; no argument required
8006      # The diagnosis changed in icc 8.0:
8007      #   icc: Command line remark: option '-MP' not supported
8008      if (grep 'ignoring option' conftest.err ||
8009          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8010        am_cv_CXX_dependencies_compiler_type=$depmode
8011        break
8012      fi
8013    fi
8014  done
8015
8016  cd ..
8017  rm -rf conftest.dir
8018else
8019  am_cv_CXX_dependencies_compiler_type=none
8020fi
8021
8022fi
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8024$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8025CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8026
8027 if
8028  test "x$enable_dependency_tracking" != xno \
8029  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8030  am__fastdepCXX_TRUE=
8031  am__fastdepCXX_FALSE='#'
8032else
8033  am__fastdepCXX_TRUE='#'
8034  am__fastdepCXX_FALSE=
8035fi
8036
8037
8038if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8039    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8040    (test "X$CXX" != "Xg++"))) ; then
8041  ac_ext=cpp
8042ac_cpp='$CXXCPP $CPPFLAGS'
8043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8047$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8048if test -z "$CXXCPP"; then
8049  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052      # Double quotes because CXXCPP needs to be expanded
8053    for CXXCPP in "$CXX -E" "/lib/cpp"
8054    do
8055      ac_preproc_ok=false
8056for ac_cxx_preproc_warn_flag in '' yes
8057do
8058  # Use a header file that comes with gcc, so configuring glibc
8059  # with a fresh cross-compiler works.
8060  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8061  # <limits.h> exists even on freestanding compilers.
8062  # On the NeXT, cc -E runs the code through the compiler's parser,
8063  # not just through cpp. "Syntax error" is here to catch this case.
8064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h.  */
8066#ifdef __STDC__
8067# include <limits.h>
8068#else
8069# include <assert.h>
8070#endif
8071		     Syntax error
8072_ACEOF
8073if ac_fn_cxx_try_cpp "$LINENO"; then :
8074
8075else
8076  # Broken: fails on valid input.
8077continue
8078fi
8079rm -f conftest.err conftest.$ac_ext
8080
8081  # OK, works on sane cases.  Now check whether nonexistent headers
8082  # can be detected and how.
8083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h.  */
8085#include <ac_nonexistent.h>
8086_ACEOF
8087if ac_fn_cxx_try_cpp "$LINENO"; then :
8088  # Broken: success on invalid input.
8089continue
8090else
8091  # Passes both tests.
8092ac_preproc_ok=:
8093break
8094fi
8095rm -f conftest.err conftest.$ac_ext
8096
8097done
8098# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8099rm -f conftest.err conftest.$ac_ext
8100if $ac_preproc_ok; then :
8101  break
8102fi
8103
8104    done
8105    ac_cv_prog_CXXCPP=$CXXCPP
8106
8107fi
8108  CXXCPP=$ac_cv_prog_CXXCPP
8109else
8110  ac_cv_prog_CXXCPP=$CXXCPP
8111fi
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8113$as_echo "$CXXCPP" >&6; }
8114ac_preproc_ok=false
8115for ac_cxx_preproc_warn_flag in '' yes
8116do
8117  # Use a header file that comes with gcc, so configuring glibc
8118  # with a fresh cross-compiler works.
8119  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8120  # <limits.h> exists even on freestanding compilers.
8121  # On the NeXT, cc -E runs the code through the compiler's parser,
8122  # not just through cpp. "Syntax error" is here to catch this case.
8123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124/* end confdefs.h.  */
8125#ifdef __STDC__
8126# include <limits.h>
8127#else
8128# include <assert.h>
8129#endif
8130		     Syntax error
8131_ACEOF
8132if ac_fn_cxx_try_cpp "$LINENO"; then :
8133
8134else
8135  # Broken: fails on valid input.
8136continue
8137fi
8138rm -f conftest.err conftest.$ac_ext
8139
8140  # OK, works on sane cases.  Now check whether nonexistent headers
8141  # can be detected and how.
8142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143/* end confdefs.h.  */
8144#include <ac_nonexistent.h>
8145_ACEOF
8146if ac_fn_cxx_try_cpp "$LINENO"; then :
8147  # Broken: success on invalid input.
8148continue
8149else
8150  # Passes both tests.
8151ac_preproc_ok=:
8152break
8153fi
8154rm -f conftest.err conftest.$ac_ext
8155
8156done
8157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8158rm -f conftest.err conftest.$ac_ext
8159if $ac_preproc_ok; then :
8160
8161else
8162  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8164_lt_caught_CXX_error=yes; }
8165fi
8166
8167ac_ext=c
8168ac_cpp='$CPP $CPPFLAGS'
8169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8171ac_compiler_gnu=$ac_cv_c_compiler_gnu
8172
8173else
8174  _lt_caught_CXX_error=yes
8175fi
8176
8177
8178
8179
8180
8181# Set options
8182
8183
8184
8185        enable_dlopen=no
8186
8187
8188
8189            # Check whether --enable-shared was given.
8190if test "${enable_shared+set}" = set; then :
8191  enableval=$enable_shared; p=${PACKAGE-default}
8192    case $enableval in
8193    yes) enable_shared=yes ;;
8194    no) enable_shared=no ;;
8195    *)
8196      enable_shared=no
8197      # Look at the argument we got.  We use all the common list separators.
8198      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8199      for pkg in $enableval; do
8200	IFS="$lt_save_ifs"
8201	if test "X$pkg" = "X$p"; then
8202	  enable_shared=yes
8203	fi
8204      done
8205      IFS="$lt_save_ifs"
8206      ;;
8207    esac
8208else
8209  enable_shared=yes
8210fi
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220  # Check whether --enable-static was given.
8221if test "${enable_static+set}" = set; then :
8222  enableval=$enable_static; p=${PACKAGE-default}
8223    case $enableval in
8224    yes) enable_static=yes ;;
8225    no) enable_static=no ;;
8226    *)
8227     enable_static=no
8228      # Look at the argument we got.  We use all the common list separators.
8229      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8230      for pkg in $enableval; do
8231	IFS="$lt_save_ifs"
8232	if test "X$pkg" = "X$p"; then
8233	  enable_static=yes
8234	fi
8235      done
8236      IFS="$lt_save_ifs"
8237      ;;
8238    esac
8239else
8240  enable_static=yes
8241fi
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252# Check whether --with-pic was given.
8253if test "${with_pic+set}" = set; then :
8254  withval=$with_pic; pic_mode="$withval"
8255else
8256  pic_mode=default
8257fi
8258
8259
8260test -z "$pic_mode" && pic_mode=default
8261
8262
8263
8264
8265
8266
8267
8268  # Check whether --enable-fast-install was given.
8269if test "${enable_fast_install+set}" = set; then :
8270  enableval=$enable_fast_install; p=${PACKAGE-default}
8271    case $enableval in
8272    yes) enable_fast_install=yes ;;
8273    no) enable_fast_install=no ;;
8274    *)
8275      enable_fast_install=no
8276      # Look at the argument we got.  We use all the common list separators.
8277      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8278      for pkg in $enableval; do
8279	IFS="$lt_save_ifs"
8280	if test "X$pkg" = "X$p"; then
8281	  enable_fast_install=yes
8282	fi
8283      done
8284      IFS="$lt_save_ifs"
8285      ;;
8286    esac
8287else
8288  enable_fast_install=yes
8289fi
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301# This can be used to rebuild libtool when needed
8302LIBTOOL_DEPS="$ltmain"
8303
8304# Always use our own libtool.
8305LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331test -z "$LN_S" && LN_S="ln -s"
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346if test -n "${ZSH_VERSION+set}" ; then
8347   setopt NO_GLOB_SUBST
8348fi
8349
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8351$as_echo_n "checking for objdir... " >&6; }
8352if test "${lt_cv_objdir+set}" = set; then :
8353  $as_echo_n "(cached) " >&6
8354else
8355  rm -f .libs 2>/dev/null
8356mkdir .libs 2>/dev/null
8357if test -d .libs; then
8358  lt_cv_objdir=.libs
8359else
8360  # MS-DOS does not allow filenames that begin with a dot.
8361  lt_cv_objdir=_libs
8362fi
8363rmdir .libs 2>/dev/null
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8366$as_echo "$lt_cv_objdir" >&6; }
8367objdir=$lt_cv_objdir
8368
8369
8370
8371
8372
8373cat >>confdefs.h <<_ACEOF
8374#define LT_OBJDIR "$lt_cv_objdir/"
8375_ACEOF
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393case $host_os in
8394aix3*)
8395  # AIX sometimes has problems with the GCC collect2 program.  For some
8396  # reason, if we set the COLLECT_NAMES environment variable, the problems
8397  # vanish in a puff of smoke.
8398  if test "X${COLLECT_NAMES+set}" != Xset; then
8399    COLLECT_NAMES=
8400    export COLLECT_NAMES
8401  fi
8402  ;;
8403esac
8404
8405# Sed substitution that helps us do robust quoting.  It backslashifies
8406# metacharacters that are still active within double-quoted strings.
8407sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8408
8409# Same as above, but do not quote variable references.
8410double_quote_subst='s/\(["`\\]\)/\\\1/g'
8411
8412# Sed substitution to delay expansion of an escaped shell variable in a
8413# double_quote_subst'ed string.
8414delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8415
8416# Sed substitution to delay expansion of an escaped single quote.
8417delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8418
8419# Sed substitution to avoid accidental globbing in evaled expressions
8420no_glob_subst='s/\*/\\\*/g'
8421
8422# Global variables:
8423ofile=libtool
8424can_build_shared=yes
8425
8426# All known linkers require a `.a' archive for static linking (except MSVC,
8427# which needs '.lib').
8428libext=a
8429
8430with_gnu_ld="$lt_cv_prog_gnu_ld"
8431
8432old_CC="$CC"
8433old_CFLAGS="$CFLAGS"
8434
8435# Set sane defaults for various variables
8436test -z "$CC" && CC=cc
8437test -z "$LTCC" && LTCC=$CC
8438test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8439test -z "$LD" && LD=ld
8440test -z "$ac_objext" && ac_objext=o
8441
8442for cc_temp in $compiler""; do
8443  case $cc_temp in
8444    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8445    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8446    \-*) ;;
8447    *) break;;
8448  esac
8449done
8450cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8451
8452
8453# Only perform the check for file, if the check method requires it
8454test -z "$MAGIC_CMD" && MAGIC_CMD=file
8455case $deplibs_check_method in
8456file_magic*)
8457  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8458    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8459$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8460if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  case $MAGIC_CMD in
8464[\\/*] |  ?:[\\/]*)
8465  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8466  ;;
8467*)
8468  lt_save_MAGIC_CMD="$MAGIC_CMD"
8469  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8470  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8471  for ac_dir in $ac_dummy; do
8472    IFS="$lt_save_ifs"
8473    test -z "$ac_dir" && ac_dir=.
8474    if test -f $ac_dir/${ac_tool_prefix}file; then
8475      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8476      if test -n "$file_magic_test_file"; then
8477	case $deplibs_check_method in
8478	"file_magic "*)
8479	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8480	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8481	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8482	    $EGREP "$file_magic_regex" > /dev/null; then
8483	    :
8484	  else
8485	    cat <<_LT_EOF 1>&2
8486
8487*** Warning: the command libtool uses to detect shared libraries,
8488*** $file_magic_cmd, produces output that libtool cannot recognize.
8489*** The result is that libtool may fail to recognize shared libraries
8490*** as such.  This will affect the creation of libtool libraries that
8491*** depend on shared libraries, but programs linked with such libtool
8492*** libraries will work regardless of this problem.  Nevertheless, you
8493*** may want to report the problem to your system manager and/or to
8494*** bug-libtool@gnu.org
8495
8496_LT_EOF
8497	  fi ;;
8498	esac
8499      fi
8500      break
8501    fi
8502  done
8503  IFS="$lt_save_ifs"
8504  MAGIC_CMD="$lt_save_MAGIC_CMD"
8505  ;;
8506esac
8507fi
8508
8509MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8510if test -n "$MAGIC_CMD"; then
8511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8512$as_echo "$MAGIC_CMD" >&6; }
8513else
8514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515$as_echo "no" >&6; }
8516fi
8517
8518
8519
8520
8521
8522if test -z "$lt_cv_path_MAGIC_CMD"; then
8523  if test -n "$ac_tool_prefix"; then
8524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8525$as_echo_n "checking for file... " >&6; }
8526if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8527  $as_echo_n "(cached) " >&6
8528else
8529  case $MAGIC_CMD in
8530[\\/*] |  ?:[\\/]*)
8531  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8532  ;;
8533*)
8534  lt_save_MAGIC_CMD="$MAGIC_CMD"
8535  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537  for ac_dir in $ac_dummy; do
8538    IFS="$lt_save_ifs"
8539    test -z "$ac_dir" && ac_dir=.
8540    if test -f $ac_dir/file; then
8541      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8542      if test -n "$file_magic_test_file"; then
8543	case $deplibs_check_method in
8544	"file_magic "*)
8545	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548	    $EGREP "$file_magic_regex" > /dev/null; then
8549	    :
8550	  else
8551	    cat <<_LT_EOF 1>&2
8552
8553*** Warning: the command libtool uses to detect shared libraries,
8554*** $file_magic_cmd, produces output that libtool cannot recognize.
8555*** The result is that libtool may fail to recognize shared libraries
8556*** as such.  This will affect the creation of libtool libraries that
8557*** depend on shared libraries, but programs linked with such libtool
8558*** libraries will work regardless of this problem.  Nevertheless, you
8559*** may want to report the problem to your system manager and/or to
8560*** bug-libtool@gnu.org
8561
8562_LT_EOF
8563	  fi ;;
8564	esac
8565      fi
8566      break
8567    fi
8568  done
8569  IFS="$lt_save_ifs"
8570  MAGIC_CMD="$lt_save_MAGIC_CMD"
8571  ;;
8572esac
8573fi
8574
8575MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576if test -n "$MAGIC_CMD"; then
8577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8578$as_echo "$MAGIC_CMD" >&6; }
8579else
8580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
8582fi
8583
8584
8585  else
8586    MAGIC_CMD=:
8587  fi
8588fi
8589
8590  fi
8591  ;;
8592esac
8593
8594# Use C for the default configuration in the libtool script
8595
8596lt_save_CC="$CC"
8597ac_ext=c
8598ac_cpp='$CPP $CPPFLAGS'
8599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8601ac_compiler_gnu=$ac_cv_c_compiler_gnu
8602
8603
8604# Source file extension for C test sources.
8605ac_ext=c
8606
8607# Object file extension for compiled C test sources.
8608objext=o
8609objext=$objext
8610
8611# Code to be used in simple compile tests
8612lt_simple_compile_test_code="int some_variable = 0;"
8613
8614# Code to be used in simple link tests
8615lt_simple_link_test_code='int main(){return(0);}'
8616
8617
8618
8619
8620
8621
8622
8623# If no C compiler was specified, use CC.
8624LTCC=${LTCC-"$CC"}
8625
8626# If no C compiler flags were specified, use CFLAGS.
8627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8628
8629# Allow CC to be a program name with arguments.
8630compiler=$CC
8631
8632# Save the default compiler, since it gets overwritten when the other
8633# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8634compiler_DEFAULT=$CC
8635
8636# save warnings/boilerplate of simple test code
8637ac_outfile=conftest.$ac_objext
8638echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8640_lt_compiler_boilerplate=`cat conftest.err`
8641$RM conftest*
8642
8643ac_outfile=conftest.$ac_objext
8644echo "$lt_simple_link_test_code" >conftest.$ac_ext
8645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8646_lt_linker_boilerplate=`cat conftest.err`
8647$RM -r conftest*
8648
8649
8650if test -n "$compiler"; then
8651
8652lt_prog_compiler_no_builtin_flag=
8653
8654if test "$GCC" = yes; then
8655  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8656
8657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8658$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8659if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8660  $as_echo_n "(cached) " >&6
8661else
8662  lt_cv_prog_compiler_rtti_exceptions=no
8663   ac_outfile=conftest.$ac_objext
8664   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8665   lt_compiler_flag="-fno-rtti -fno-exceptions"
8666   # Insert the option either (1) after the last *FLAGS variable, or
8667   # (2) before a word containing "conftest.", or (3) at the end.
8668   # Note that $ac_compile itself does not contain backslashes and begins
8669   # with a dollar sign (not a hyphen), so the echo should work correctly.
8670   # The option is referenced via a variable to avoid confusing sed.
8671   lt_compile=`echo "$ac_compile" | $SED \
8672   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8674   -e 's:$: $lt_compiler_flag:'`
8675   (eval echo "\"\$as_me:8675: $lt_compile\"" >&5)
8676   (eval "$lt_compile" 2>conftest.err)
8677   ac_status=$?
8678   cat conftest.err >&5
8679   echo "$as_me:8679: \$? = $ac_status" >&5
8680   if (exit $ac_status) && test -s "$ac_outfile"; then
8681     # The compiler can only warn and ignore the option if not recognized
8682     # So say no if there are warnings other than the usual output.
8683     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8684     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8685     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8686       lt_cv_prog_compiler_rtti_exceptions=yes
8687     fi
8688   fi
8689   $RM conftest*
8690
8691fi
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8693$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8694
8695if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8696    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8697else
8698    :
8699fi
8700
8701fi
8702
8703
8704
8705
8706
8707
8708  lt_prog_compiler_wl=
8709lt_prog_compiler_pic=
8710lt_prog_compiler_static=
8711
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8713$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8714
8715  if test "$GCC" = yes; then
8716    lt_prog_compiler_wl='-Wl,'
8717    lt_prog_compiler_static='-static'
8718
8719    case $host_os in
8720      aix*)
8721      # All AIX code is PIC.
8722      if test "$host_cpu" = ia64; then
8723	# AIX 5 now supports IA64 processor
8724	lt_prog_compiler_static='-Bstatic'
8725      fi
8726      ;;
8727
8728    amigaos*)
8729      case $host_cpu in
8730      powerpc)
8731            # see comment about AmigaOS4 .so support
8732            lt_prog_compiler_pic='-fPIC'
8733        ;;
8734      m68k)
8735            # FIXME: we need at least 68020 code to build shared libraries, but
8736            # adding the `-m68020' flag to GCC prevents building anything better,
8737            # like `-m68040'.
8738            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8739        ;;
8740      esac
8741      ;;
8742
8743    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8744      # PIC is the default for these OSes.
8745      ;;
8746
8747    mingw* | cygwin* | pw32* | os2* | cegcc*)
8748      # This hack is so that the source file can tell whether it is being
8749      # built for inclusion in a dll (and should export symbols for example).
8750      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8751      # (--disable-auto-import) libraries
8752      lt_prog_compiler_pic='-DDLL_EXPORT'
8753      ;;
8754
8755    darwin* | rhapsody*)
8756      # PIC is the default on this platform
8757      # Common symbols not allowed in MH_DYLIB files
8758      lt_prog_compiler_pic='-fno-common'
8759      ;;
8760
8761    hpux*)
8762      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8763      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8764      # sets the default TLS model and affects inlining.
8765      case $host_cpu in
8766      hppa*64*)
8767	# +Z the default
8768	;;
8769      *)
8770	lt_prog_compiler_pic='-fPIC'
8771	;;
8772      esac
8773      ;;
8774
8775    interix[3-9]*)
8776      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8777      # Instead, we relocate shared libraries at runtime.
8778      ;;
8779
8780    msdosdjgpp*)
8781      # Just because we use GCC doesn't mean we suddenly get shared libraries
8782      # on systems that don't support them.
8783      lt_prog_compiler_can_build_shared=no
8784      enable_shared=no
8785      ;;
8786
8787    *nto* | *qnx*)
8788      # QNX uses GNU C++, but need to define -shared option too, otherwise
8789      # it will coredump.
8790      lt_prog_compiler_pic='-fPIC -shared'
8791      ;;
8792
8793    sysv4*MP*)
8794      if test -d /usr/nec; then
8795	lt_prog_compiler_pic=-Kconform_pic
8796      fi
8797      ;;
8798
8799    *)
8800      lt_prog_compiler_pic='-fPIC'
8801      ;;
8802    esac
8803  else
8804    # PORTME Check for flag to pass linker flags through the system compiler.
8805    case $host_os in
8806    aix*)
8807      lt_prog_compiler_wl='-Wl,'
8808      if test "$host_cpu" = ia64; then
8809	# AIX 5 now supports IA64 processor
8810	lt_prog_compiler_static='-Bstatic'
8811      else
8812	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8813      fi
8814      ;;
8815
8816    mingw* | cygwin* | pw32* | os2* | cegcc*)
8817      # This hack is so that the source file can tell whether it is being
8818      # built for inclusion in a dll (and should export symbols for example).
8819      lt_prog_compiler_pic='-DDLL_EXPORT'
8820      ;;
8821
8822    hpux9* | hpux10* | hpux11*)
8823      lt_prog_compiler_wl='-Wl,'
8824      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8825      # not for PA HP-UX.
8826      case $host_cpu in
8827      hppa*64*|ia64*)
8828	# +Z the default
8829	;;
8830      *)
8831	lt_prog_compiler_pic='+Z'
8832	;;
8833      esac
8834      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8835      lt_prog_compiler_static='${wl}-a ${wl}archive'
8836      ;;
8837
8838    irix5* | irix6* | nonstopux*)
8839      lt_prog_compiler_wl='-Wl,'
8840      # PIC (with -KPIC) is the default.
8841      lt_prog_compiler_static='-non_shared'
8842      ;;
8843
8844    linux* | k*bsd*-gnu)
8845      case $cc_basename in
8846      # old Intel for x86_64 which still supported -KPIC.
8847      ecc*)
8848	lt_prog_compiler_wl='-Wl,'
8849	lt_prog_compiler_pic='-KPIC'
8850	lt_prog_compiler_static='-static'
8851        ;;
8852      # icc used to be incompatible with GCC.
8853      # ICC 10 doesn't accept -KPIC any more.
8854      icc* | ifort*)
8855	lt_prog_compiler_wl='-Wl,'
8856	lt_prog_compiler_pic='-fPIC'
8857	lt_prog_compiler_static='-static'
8858        ;;
8859      # Lahey Fortran 8.1.
8860      lf95*)
8861	lt_prog_compiler_wl='-Wl,'
8862	lt_prog_compiler_pic='--shared'
8863	lt_prog_compiler_static='--static'
8864	;;
8865      pgcc* | pgf77* | pgf90* | pgf95*)
8866        # Portland Group compilers (*not* the Pentium gcc compiler,
8867	# which looks to be a dead project)
8868	lt_prog_compiler_wl='-Wl,'
8869	lt_prog_compiler_pic='-fpic'
8870	lt_prog_compiler_static='-Bstatic'
8871        ;;
8872      ccc*)
8873        lt_prog_compiler_wl='-Wl,'
8874        # All Alpha code is PIC.
8875        lt_prog_compiler_static='-non_shared'
8876        ;;
8877      xl*)
8878	# IBM XL C 8.0/Fortran 10.1 on PPC
8879	lt_prog_compiler_wl='-Wl,'
8880	lt_prog_compiler_pic='-qpic'
8881	lt_prog_compiler_static='-qstaticlink'
8882	;;
8883      *)
8884	case `$CC -V 2>&1 | sed 5q` in
8885	*Sun\ C*)
8886	  # Sun C 5.9
8887	  lt_prog_compiler_pic='-KPIC'
8888	  lt_prog_compiler_static='-Bstatic'
8889	  lt_prog_compiler_wl='-Wl,'
8890	  ;;
8891	*Sun\ F*)
8892	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8893	  lt_prog_compiler_pic='-KPIC'
8894	  lt_prog_compiler_static='-Bstatic'
8895	  lt_prog_compiler_wl=''
8896	  ;;
8897	esac
8898	;;
8899      esac
8900      ;;
8901
8902    newsos6)
8903      lt_prog_compiler_pic='-KPIC'
8904      lt_prog_compiler_static='-Bstatic'
8905      ;;
8906
8907    *nto* | *qnx*)
8908      # QNX uses GNU C++, but need to define -shared option too, otherwise
8909      # it will coredump.
8910      lt_prog_compiler_pic='-fPIC -shared'
8911      ;;
8912
8913    osf3* | osf4* | osf5*)
8914      lt_prog_compiler_wl='-Wl,'
8915      # All OSF/1 code is PIC.
8916      lt_prog_compiler_static='-non_shared'
8917      ;;
8918
8919    rdos*)
8920      lt_prog_compiler_static='-non_shared'
8921      ;;
8922
8923    solaris*)
8924      lt_prog_compiler_pic='-KPIC'
8925      lt_prog_compiler_static='-Bstatic'
8926      case $cc_basename in
8927      f77* | f90* | f95*)
8928	lt_prog_compiler_wl='-Qoption ld ';;
8929      *)
8930	lt_prog_compiler_wl='-Wl,';;
8931      esac
8932      ;;
8933
8934    sunos4*)
8935      lt_prog_compiler_wl='-Qoption ld '
8936      lt_prog_compiler_pic='-PIC'
8937      lt_prog_compiler_static='-Bstatic'
8938      ;;
8939
8940    sysv4 | sysv4.2uw2* | sysv4.3*)
8941      lt_prog_compiler_wl='-Wl,'
8942      lt_prog_compiler_pic='-KPIC'
8943      lt_prog_compiler_static='-Bstatic'
8944      ;;
8945
8946    sysv4*MP*)
8947      if test -d /usr/nec ;then
8948	lt_prog_compiler_pic='-Kconform_pic'
8949	lt_prog_compiler_static='-Bstatic'
8950      fi
8951      ;;
8952
8953    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8954      lt_prog_compiler_wl='-Wl,'
8955      lt_prog_compiler_pic='-KPIC'
8956      lt_prog_compiler_static='-Bstatic'
8957      ;;
8958
8959    unicos*)
8960      lt_prog_compiler_wl='-Wl,'
8961      lt_prog_compiler_can_build_shared=no
8962      ;;
8963
8964    uts4*)
8965      lt_prog_compiler_pic='-pic'
8966      lt_prog_compiler_static='-Bstatic'
8967      ;;
8968
8969    *)
8970      lt_prog_compiler_can_build_shared=no
8971      ;;
8972    esac
8973  fi
8974
8975case $host_os in
8976  # For platforms which do not support PIC, -DPIC is meaningless:
8977  *djgpp*)
8978    lt_prog_compiler_pic=
8979    ;;
8980  *)
8981    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8982    ;;
8983esac
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8985$as_echo "$lt_prog_compiler_pic" >&6; }
8986
8987
8988
8989
8990
8991
8992#
8993# Check to make sure the PIC flag actually works.
8994#
8995if test -n "$lt_prog_compiler_pic"; then
8996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8997$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8998if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8999  $as_echo_n "(cached) " >&6
9000else
9001  lt_cv_prog_compiler_pic_works=no
9002   ac_outfile=conftest.$ac_objext
9003   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9004   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9005   # Insert the option either (1) after the last *FLAGS variable, or
9006   # (2) before a word containing "conftest.", or (3) at the end.
9007   # Note that $ac_compile itself does not contain backslashes and begins
9008   # with a dollar sign (not a hyphen), so the echo should work correctly.
9009   # The option is referenced via a variable to avoid confusing sed.
9010   lt_compile=`echo "$ac_compile" | $SED \
9011   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9012   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9013   -e 's:$: $lt_compiler_flag:'`
9014   (eval echo "\"\$as_me:9014: $lt_compile\"" >&5)
9015   (eval "$lt_compile" 2>conftest.err)
9016   ac_status=$?
9017   cat conftest.err >&5
9018   echo "$as_me:9018: \$? = $ac_status" >&5
9019   if (exit $ac_status) && test -s "$ac_outfile"; then
9020     # The compiler can only warn and ignore the option if not recognized
9021     # So say no if there are warnings other than the usual output.
9022     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9023     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9024     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9025       lt_cv_prog_compiler_pic_works=yes
9026     fi
9027   fi
9028   $RM conftest*
9029
9030fi
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9032$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9033
9034if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9035    case $lt_prog_compiler_pic in
9036     "" | " "*) ;;
9037     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9038     esac
9039else
9040    lt_prog_compiler_pic=
9041     lt_prog_compiler_can_build_shared=no
9042fi
9043
9044fi
9045
9046
9047
9048
9049
9050
9051#
9052# Check to make sure the static flag actually works.
9053#
9054wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9056$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9057if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060  lt_cv_prog_compiler_static_works=no
9061   save_LDFLAGS="$LDFLAGS"
9062   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9063   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9064   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9065     # The linker can only warn and ignore the option if not recognized
9066     # So say no if there are warnings
9067     if test -s conftest.err; then
9068       # Append any errors to the config.log.
9069       cat conftest.err 1>&5
9070       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9071       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9072       if diff conftest.exp conftest.er2 >/dev/null; then
9073         lt_cv_prog_compiler_static_works=yes
9074       fi
9075     else
9076       lt_cv_prog_compiler_static_works=yes
9077     fi
9078   fi
9079   $RM -r conftest*
9080   LDFLAGS="$save_LDFLAGS"
9081
9082fi
9083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9084$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9085
9086if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9087    :
9088else
9089    lt_prog_compiler_static=
9090fi
9091
9092
9093
9094
9095
9096
9097
9098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9099$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9100if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9101  $as_echo_n "(cached) " >&6
9102else
9103  lt_cv_prog_compiler_c_o=no
9104   $RM -r conftest 2>/dev/null
9105   mkdir conftest
9106   cd conftest
9107   mkdir out
9108   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9109
9110   lt_compiler_flag="-o out/conftest2.$ac_objext"
9111   # Insert the option either (1) after the last *FLAGS variable, or
9112   # (2) before a word containing "conftest.", or (3) at the end.
9113   # Note that $ac_compile itself does not contain backslashes and begins
9114   # with a dollar sign (not a hyphen), so the echo should work correctly.
9115   lt_compile=`echo "$ac_compile" | $SED \
9116   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9117   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9118   -e 's:$: $lt_compiler_flag:'`
9119   (eval echo "\"\$as_me:9119: $lt_compile\"" >&5)
9120   (eval "$lt_compile" 2>out/conftest.err)
9121   ac_status=$?
9122   cat out/conftest.err >&5
9123   echo "$as_me:9123: \$? = $ac_status" >&5
9124   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9125   then
9126     # The compiler can only warn and ignore the option if not recognized
9127     # So say no if there are warnings
9128     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9129     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9130     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9131       lt_cv_prog_compiler_c_o=yes
9132     fi
9133   fi
9134   chmod u+w . 2>&5
9135   $RM conftest*
9136   # SGI C++ compiler will create directory out/ii_files/ for
9137   # template instantiation
9138   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9139   $RM out/* && rmdir out
9140   cd ..
9141   $RM -r conftest
9142   $RM conftest*
9143
9144fi
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9146$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9147
9148
9149
9150
9151
9152
9153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9154$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9155if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9156  $as_echo_n "(cached) " >&6
9157else
9158  lt_cv_prog_compiler_c_o=no
9159   $RM -r conftest 2>/dev/null
9160   mkdir conftest
9161   cd conftest
9162   mkdir out
9163   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9164
9165   lt_compiler_flag="-o out/conftest2.$ac_objext"
9166   # Insert the option either (1) after the last *FLAGS variable, or
9167   # (2) before a word containing "conftest.", or (3) at the end.
9168   # Note that $ac_compile itself does not contain backslashes and begins
9169   # with a dollar sign (not a hyphen), so the echo should work correctly.
9170   lt_compile=`echo "$ac_compile" | $SED \
9171   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173   -e 's:$: $lt_compiler_flag:'`
9174   (eval echo "\"\$as_me:9174: $lt_compile\"" >&5)
9175   (eval "$lt_compile" 2>out/conftest.err)
9176   ac_status=$?
9177   cat out/conftest.err >&5
9178   echo "$as_me:9178: \$? = $ac_status" >&5
9179   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9180   then
9181     # The compiler can only warn and ignore the option if not recognized
9182     # So say no if there are warnings
9183     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9184     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9185     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9186       lt_cv_prog_compiler_c_o=yes
9187     fi
9188   fi
9189   chmod u+w . 2>&5
9190   $RM conftest*
9191   # SGI C++ compiler will create directory out/ii_files/ for
9192   # template instantiation
9193   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9194   $RM out/* && rmdir out
9195   cd ..
9196   $RM -r conftest
9197   $RM conftest*
9198
9199fi
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9201$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9202
9203
9204
9205
9206hard_links="nottested"
9207if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9208  # do not overwrite the value of need_locks provided by the user
9209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9210$as_echo_n "checking if we can lock with hard links... " >&6; }
9211  hard_links=yes
9212  $RM conftest*
9213  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9214  touch conftest.a
9215  ln conftest.a conftest.b 2>&5 || hard_links=no
9216  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9218$as_echo "$hard_links" >&6; }
9219  if test "$hard_links" = no; then
9220    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9221$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9222    need_locks=warn
9223  fi
9224else
9225  need_locks=no
9226fi
9227
9228
9229
9230
9231
9232
9233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9234$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9235
9236  runpath_var=
9237  allow_undefined_flag=
9238  always_export_symbols=no
9239  archive_cmds=
9240  archive_expsym_cmds=
9241  compiler_needs_object=no
9242  enable_shared_with_static_runtimes=no
9243  export_dynamic_flag_spec=
9244  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9245  hardcode_automatic=no
9246  hardcode_direct=no
9247  hardcode_direct_absolute=no
9248  hardcode_libdir_flag_spec=
9249  hardcode_libdir_flag_spec_ld=
9250  hardcode_libdir_separator=
9251  hardcode_minus_L=no
9252  hardcode_shlibpath_var=unsupported
9253  inherit_rpath=no
9254  link_all_deplibs=unknown
9255  module_cmds=
9256  module_expsym_cmds=
9257  old_archive_from_new_cmds=
9258  old_archive_from_expsyms_cmds=
9259  thread_safe_flag_spec=
9260  whole_archive_flag_spec=
9261  # include_expsyms should be a list of space-separated symbols to be *always*
9262  # included in the symbol list
9263  include_expsyms=
9264  # exclude_expsyms can be an extended regexp of symbols to exclude
9265  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9266  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9267  # as well as any symbol that contains `d'.
9268  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9269  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9270  # platforms (ab)use it in PIC code, but their linkers get confused if
9271  # the symbol is explicitly referenced.  Since portable code cannot
9272  # rely on this symbol name, it's probably fine to never include it in
9273  # preloaded symbol tables.
9274  # Exclude shared library initialization/finalization symbols.
9275  extract_expsyms_cmds=
9276
9277  case $host_os in
9278  cygwin* | mingw* | pw32* | cegcc*)
9279    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9280    # When not using gcc, we currently assume that we are using
9281    # Microsoft Visual C++.
9282    if test "$GCC" != yes; then
9283      with_gnu_ld=no
9284    fi
9285    ;;
9286  interix*)
9287    # we just hope/assume this is gcc and not c89 (= MSVC++)
9288    with_gnu_ld=yes
9289    ;;
9290  openbsd*)
9291    with_gnu_ld=no
9292    ;;
9293  esac
9294
9295  ld_shlibs=yes
9296  if test "$with_gnu_ld" = yes; then
9297    # If archive_cmds runs LD, not CC, wlarc should be empty
9298    wlarc='${wl}'
9299
9300    # Set some defaults for GNU ld with shared library support. These
9301    # are reset later if shared libraries are not supported. Putting them
9302    # here allows them to be overridden if necessary.
9303    runpath_var=LD_RUN_PATH
9304    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305    export_dynamic_flag_spec='${wl}--export-dynamic'
9306    # ancient GNU ld didn't support --whole-archive et. al.
9307    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9308      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9309    else
9310      whole_archive_flag_spec=
9311    fi
9312    supports_anon_versioning=no
9313    case `$LD -v 2>&1` in
9314      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9315      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9316      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9317      *\ 2.11.*) ;; # other 2.11 versions
9318      *) supports_anon_versioning=yes ;;
9319    esac
9320
9321    # See if GNU ld supports shared libraries.
9322    case $host_os in
9323    aix[3-9]*)
9324      # On AIX/PPC, the GNU linker is very broken
9325      if test "$host_cpu" != ia64; then
9326	ld_shlibs=no
9327	cat <<_LT_EOF 1>&2
9328
9329*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9330*** to be unable to reliably create shared libraries on AIX.
9331*** Therefore, libtool is disabling shared libraries support.  If you
9332*** really care for shared libraries, you may want to modify your PATH
9333*** so that a non-GNU linker is found, and then restart.
9334
9335_LT_EOF
9336      fi
9337      ;;
9338
9339    amigaos*)
9340      case $host_cpu in
9341      powerpc)
9342            # see comment about AmigaOS4 .so support
9343            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9344            archive_expsym_cmds=''
9345        ;;
9346      m68k)
9347            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)'
9348            hardcode_libdir_flag_spec='-L$libdir'
9349            hardcode_minus_L=yes
9350        ;;
9351      esac
9352      ;;
9353
9354    beos*)
9355      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9356	allow_undefined_flag=unsupported
9357	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9358	# support --undefined.  This deserves some investigation.  FIXME
9359	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360      else
9361	ld_shlibs=no
9362      fi
9363      ;;
9364
9365    cygwin* | mingw* | pw32* | cegcc*)
9366      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9367      # as there is no search path for DLLs.
9368      hardcode_libdir_flag_spec='-L$libdir'
9369      allow_undefined_flag=unsupported
9370      always_export_symbols=no
9371      enable_shared_with_static_runtimes=yes
9372      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9373
9374      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9375        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376	# If the export-symbols file already is a .def file (1st line
9377	# is EXPORTS), use it as is; otherwise, prepend...
9378	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9379	  cp $export_symbols $output_objdir/$soname.def;
9380	else
9381	  echo EXPORTS > $output_objdir/$soname.def;
9382	  cat $export_symbols >> $output_objdir/$soname.def;
9383	fi~
9384	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385      else
9386	ld_shlibs=no
9387      fi
9388      ;;
9389
9390    interix[3-9]*)
9391      hardcode_direct=no
9392      hardcode_shlibpath_var=no
9393      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9394      export_dynamic_flag_spec='${wl}-E'
9395      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9396      # Instead, shared libraries are loaded at an image base (0x10000000 by
9397      # default) and relocated if they conflict, which is a slow very memory
9398      # consuming and fragmenting process.  To avoid this, we pick a random,
9399      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9400      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9401      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9402      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'
9403      ;;
9404
9405    gnu* | linux* | tpf* | k*bsd*-gnu)
9406      tmp_diet=no
9407      if test "$host_os" = linux-dietlibc; then
9408	case $cc_basename in
9409	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9410	esac
9411      fi
9412      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9413	 && test "$tmp_diet" = no
9414      then
9415	tmp_addflag=
9416	tmp_sharedflag='-shared'
9417	case $cc_basename,$host_cpu in
9418        pgcc*)				# Portland Group C compiler
9419	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9420	  tmp_addflag=' $pic_flag'
9421	  ;;
9422	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9423	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9424	  tmp_addflag=' $pic_flag -Mnomain' ;;
9425	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9426	  tmp_addflag=' -i_dynamic' ;;
9427	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9428	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9429	ifc* | ifort*)			# Intel Fortran compiler
9430	  tmp_addflag=' -nofor_main' ;;
9431	lf95*)				# Lahey Fortran 8.1
9432	  whole_archive_flag_spec=
9433	  tmp_sharedflag='--shared' ;;
9434	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9435	  tmp_sharedflag='-qmkshrobj'
9436	  tmp_addflag= ;;
9437	esac
9438	case `$CC -V 2>&1 | sed 5q` in
9439	*Sun\ C*)			# Sun C 5.9
9440	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9441	  compiler_needs_object=yes
9442	  tmp_sharedflag='-G' ;;
9443	*Sun\ F*)			# Sun Fortran 8.3
9444	  tmp_sharedflag='-G' ;;
9445	esac
9446	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447
9448        if test "x$supports_anon_versioning" = xyes; then
9449          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9450	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9451	    echo "local: *; };" >> $output_objdir/$libname.ver~
9452	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9453        fi
9454
9455	case $cc_basename in
9456	xlf*)
9457	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9458	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9459	  hardcode_libdir_flag_spec=
9460	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9461	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9462	  if test "x$supports_anon_versioning" = xyes; then
9463	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9464	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9465	      echo "local: *; };" >> $output_objdir/$libname.ver~
9466	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9467	  fi
9468	  ;;
9469	esac
9470      else
9471        ld_shlibs=no
9472      fi
9473      ;;
9474
9475    netbsd*)
9476      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9477	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9478	wlarc=
9479      else
9480	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9482      fi
9483      ;;
9484
9485    solaris*)
9486      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9487	ld_shlibs=no
9488	cat <<_LT_EOF 1>&2
9489
9490*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9491*** create shared libraries on Solaris systems.  Therefore, libtool
9492*** is disabling shared libraries support.  We urge you to upgrade GNU
9493*** binutils to release 2.9.1 or newer.  Another option is to modify
9494*** your PATH or compiler configuration so that the native linker is
9495*** used, and then restart.
9496
9497_LT_EOF
9498      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9499	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9501      else
9502	ld_shlibs=no
9503      fi
9504      ;;
9505
9506    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9507      case `$LD -v 2>&1` in
9508        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9509	ld_shlibs=no
9510	cat <<_LT_EOF 1>&2
9511
9512*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9513*** reliably create shared libraries on SCO systems.  Therefore, libtool
9514*** is disabling shared libraries support.  We urge you to upgrade GNU
9515*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9516*** your PATH or compiler configuration so that the native linker is
9517*** used, and then restart.
9518
9519_LT_EOF
9520	;;
9521	*)
9522	  # For security reasons, it is highly recommended that you always
9523	  # use absolute paths for naming shared libraries, and exclude the
9524	  # DT_RUNPATH tag from executables and libraries.  But doing so
9525	  # requires that you compile everything twice, which is a pain.
9526	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9530	  else
9531	    ld_shlibs=no
9532	  fi
9533	;;
9534      esac
9535      ;;
9536
9537    sunos4*)
9538      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9539      wlarc=
9540      hardcode_direct=yes
9541      hardcode_shlibpath_var=no
9542      ;;
9543
9544    *)
9545      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548      else
9549	ld_shlibs=no
9550      fi
9551      ;;
9552    esac
9553
9554    if test "$ld_shlibs" = no; then
9555      runpath_var=
9556      hardcode_libdir_flag_spec=
9557      export_dynamic_flag_spec=
9558      whole_archive_flag_spec=
9559    fi
9560  else
9561    # PORTME fill in a description of your system's linker (not GNU ld)
9562    case $host_os in
9563    aix3*)
9564      allow_undefined_flag=unsupported
9565      always_export_symbols=yes
9566      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'
9567      # Note: this linker hardcodes the directories in LIBPATH if there
9568      # are no directories specified by -L.
9569      hardcode_minus_L=yes
9570      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9571	# Neither direct hardcoding nor static linking is supported with a
9572	# broken collect2.
9573	hardcode_direct=unsupported
9574      fi
9575      ;;
9576
9577    aix[4-9]*)
9578      if test "$host_cpu" = ia64; then
9579	# On IA64, the linker does run time linking by default, so we don't
9580	# have to do anything special.
9581	aix_use_runtimelinking=no
9582	exp_sym_flag='-Bexport'
9583	no_entry_flag=""
9584      else
9585	# If we're using GNU nm, then we don't want the "-C" option.
9586	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9587	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9588	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9589	else
9590	  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'
9591	fi
9592	aix_use_runtimelinking=no
9593
9594	# Test if we are trying to use run time linking or normal
9595	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9596	# need to do runtime linking.
9597	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9598	  for ld_flag in $LDFLAGS; do
9599	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9600	    aix_use_runtimelinking=yes
9601	    break
9602	  fi
9603	  done
9604	  ;;
9605	esac
9606
9607	exp_sym_flag='-bexport'
9608	no_entry_flag='-bnoentry'
9609      fi
9610
9611      # When large executables or shared objects are built, AIX ld can
9612      # have problems creating the table of contents.  If linking a library
9613      # or program results in "error TOC overflow" add -mminimal-toc to
9614      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9615      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9616
9617      archive_cmds=''
9618      hardcode_direct=yes
9619      hardcode_direct_absolute=yes
9620      hardcode_libdir_separator=':'
9621      link_all_deplibs=yes
9622      file_list_spec='${wl}-f,'
9623
9624      if test "$GCC" = yes; then
9625	case $host_os in aix4.[012]|aix4.[012].*)
9626	# We only want to do this on AIX 4.2 and lower, the check
9627	# below for broken collect2 doesn't work under 4.3+
9628	  collect2name=`${CC} -print-prog-name=collect2`
9629	  if test -f "$collect2name" &&
9630	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9631	  then
9632	  # We have reworked collect2
9633	  :
9634	  else
9635	  # We have old collect2
9636	  hardcode_direct=unsupported
9637	  # It fails to find uninstalled libraries when the uninstalled
9638	  # path is not listed in the libpath.  Setting hardcode_minus_L
9639	  # to unsupported forces relinking
9640	  hardcode_minus_L=yes
9641	  hardcode_libdir_flag_spec='-L$libdir'
9642	  hardcode_libdir_separator=
9643	  fi
9644	  ;;
9645	esac
9646	shared_flag='-shared'
9647	if test "$aix_use_runtimelinking" = yes; then
9648	  shared_flag="$shared_flag "'${wl}-G'
9649	fi
9650      else
9651	# not using gcc
9652	if test "$host_cpu" = ia64; then
9653	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9654	# chokes on -Wl,-G. The following line is correct:
9655	  shared_flag='-G'
9656	else
9657	  if test "$aix_use_runtimelinking" = yes; then
9658	    shared_flag='${wl}-G'
9659	  else
9660	    shared_flag='${wl}-bM:SRE'
9661	  fi
9662	fi
9663      fi
9664
9665      export_dynamic_flag_spec='${wl}-bexpall'
9666      # It seems that -bexpall does not export symbols beginning with
9667      # underscore (_), so it is better to generate a list of symbols to export.
9668      always_export_symbols=yes
9669      if test "$aix_use_runtimelinking" = yes; then
9670	# Warning - without using the other runtime loading flags (-brtl),
9671	# -berok will link without error, but may produce a broken library.
9672	allow_undefined_flag='-berok'
9673        # Determine the default libpath from the value encoded in an
9674        # empty executable.
9675        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676/* end confdefs.h.  */
9677
9678int
9679main ()
9680{
9681
9682  ;
9683  return 0;
9684}
9685_ACEOF
9686if ac_fn_c_try_link "$LINENO"; then :
9687
9688lt_aix_libpath_sed='
9689    /Import File Strings/,/^$/ {
9690	/^0/ {
9691	    s/^0  *\(.*\)$/\1/
9692	    p
9693	}
9694    }'
9695aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9696# Check for a 64-bit object if we didn't find anything.
9697if test -z "$aix_libpath"; then
9698  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699fi
9700fi
9701rm -f core conftest.err conftest.$ac_objext \
9702    conftest$ac_exeext conftest.$ac_ext
9703if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9704
9705        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9706        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9707      else
9708	if test "$host_cpu" = ia64; then
9709	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9710	  allow_undefined_flag="-z nodefs"
9711	  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"
9712	else
9713	 # Determine the default libpath from the value encoded in an
9714	 # empty executable.
9715	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716/* end confdefs.h.  */
9717
9718int
9719main ()
9720{
9721
9722  ;
9723  return 0;
9724}
9725_ACEOF
9726if ac_fn_c_try_link "$LINENO"; then :
9727
9728lt_aix_libpath_sed='
9729    /Import File Strings/,/^$/ {
9730	/^0/ {
9731	    s/^0  *\(.*\)$/\1/
9732	    p
9733	}
9734    }'
9735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9736# Check for a 64-bit object if we didn't find anything.
9737if test -z "$aix_libpath"; then
9738  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9739fi
9740fi
9741rm -f core conftest.err conftest.$ac_objext \
9742    conftest$ac_exeext conftest.$ac_ext
9743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9744
9745	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9746	  # Warning - without using the other run time loading flags,
9747	  # -berok will link without error, but may produce a broken library.
9748	  no_undefined_flag=' ${wl}-bernotok'
9749	  allow_undefined_flag=' ${wl}-berok'
9750	  # Exported symbols can be pulled into shared objects from archives
9751	  whole_archive_flag_spec='$convenience'
9752	  archive_cmds_need_lc=yes
9753	  # This is similar to how AIX traditionally builds its shared libraries.
9754	  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'
9755	fi
9756      fi
9757      ;;
9758
9759    amigaos*)
9760      case $host_cpu in
9761      powerpc)
9762            # see comment about AmigaOS4 .so support
9763            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764            archive_expsym_cmds=''
9765        ;;
9766      m68k)
9767            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)'
9768            hardcode_libdir_flag_spec='-L$libdir'
9769            hardcode_minus_L=yes
9770        ;;
9771      esac
9772      ;;
9773
9774    bsdi[45]*)
9775      export_dynamic_flag_spec=-rdynamic
9776      ;;
9777
9778    cygwin* | mingw* | pw32* | cegcc*)
9779      # When not using gcc, we currently assume that we are using
9780      # Microsoft Visual C++.
9781      # hardcode_libdir_flag_spec is actually meaningless, as there is
9782      # no search path for DLLs.
9783      hardcode_libdir_flag_spec=' '
9784      allow_undefined_flag=unsupported
9785      # Tell ltmain to make .lib files, not .a files.
9786      libext=lib
9787      # Tell ltmain to make .dll files, not .so files.
9788      shrext_cmds=".dll"
9789      # FIXME: Setting linknames here is a bad hack.
9790      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9791      # The linker will automatically build a .lib file if we build a DLL.
9792      old_archive_from_new_cmds='true'
9793      # FIXME: Should let the user specify the lib program.
9794      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9795      fix_srcfile_path='`cygpath -w "$srcfile"`'
9796      enable_shared_with_static_runtimes=yes
9797      ;;
9798
9799    darwin* | rhapsody*)
9800
9801
9802  archive_cmds_need_lc=no
9803  hardcode_direct=no
9804  hardcode_automatic=yes
9805  hardcode_shlibpath_var=unsupported
9806  whole_archive_flag_spec=''
9807  link_all_deplibs=yes
9808  allow_undefined_flag="$_lt_dar_allow_undefined"
9809  case $cc_basename in
9810     ifort*) _lt_dar_can_shared=yes ;;
9811     *) _lt_dar_can_shared=$GCC ;;
9812  esac
9813  if test "$_lt_dar_can_shared" = "yes"; then
9814    output_verbose_link_cmd=echo
9815    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9816    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9817    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}"
9818    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}"
9819
9820  else
9821  ld_shlibs=no
9822  fi
9823
9824      ;;
9825
9826    dgux*)
9827      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828      hardcode_libdir_flag_spec='-L$libdir'
9829      hardcode_shlibpath_var=no
9830      ;;
9831
9832    freebsd1*)
9833      ld_shlibs=no
9834      ;;
9835
9836    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9837    # support.  Future versions do this automatically, but an explicit c++rt0.o
9838    # does not break anything, and helps significantly (at the cost of a little
9839    # extra space).
9840    freebsd2.2*)
9841      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9842      hardcode_libdir_flag_spec='-R$libdir'
9843      hardcode_direct=yes
9844      hardcode_shlibpath_var=no
9845      ;;
9846
9847    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9848    freebsd2*)
9849      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9850      hardcode_direct=yes
9851      hardcode_minus_L=yes
9852      hardcode_shlibpath_var=no
9853      ;;
9854
9855    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9856    freebsd* | dragonfly*)
9857      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9858      hardcode_libdir_flag_spec='-R$libdir'
9859      hardcode_direct=yes
9860      hardcode_shlibpath_var=no
9861      ;;
9862
9863    hpux9*)
9864      if test "$GCC" = yes; then
9865	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9866      else
9867	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'
9868      fi
9869      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9870      hardcode_libdir_separator=:
9871      hardcode_direct=yes
9872
9873      # hardcode_minus_L: Not really in the search PATH,
9874      # but as the default location of the library.
9875      hardcode_minus_L=yes
9876      export_dynamic_flag_spec='${wl}-E'
9877      ;;
9878
9879    hpux10*)
9880      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9881	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9882      else
9883	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9884      fi
9885      if test "$with_gnu_ld" = no; then
9886	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9887	hardcode_libdir_flag_spec_ld='+b $libdir'
9888	hardcode_libdir_separator=:
9889	hardcode_direct=yes
9890	hardcode_direct_absolute=yes
9891	export_dynamic_flag_spec='${wl}-E'
9892	# hardcode_minus_L: Not really in the search PATH,
9893	# but as the default location of the library.
9894	hardcode_minus_L=yes
9895      fi
9896      ;;
9897
9898    hpux11*)
9899      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9900	case $host_cpu in
9901	hppa*64*)
9902	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9903	  ;;
9904	ia64*)
9905	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9906	  ;;
9907	*)
9908	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9909	  ;;
9910	esac
9911      else
9912	case $host_cpu in
9913	hppa*64*)
9914	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915	  ;;
9916	ia64*)
9917	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9918	  ;;
9919	*)
9920	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9921	  ;;
9922	esac
9923      fi
9924      if test "$with_gnu_ld" = no; then
9925	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9926	hardcode_libdir_separator=:
9927
9928	case $host_cpu in
9929	hppa*64*|ia64*)
9930	  hardcode_direct=no
9931	  hardcode_shlibpath_var=no
9932	  ;;
9933	*)
9934	  hardcode_direct=yes
9935	  hardcode_direct_absolute=yes
9936	  export_dynamic_flag_spec='${wl}-E'
9937
9938	  # hardcode_minus_L: Not really in the search PATH,
9939	  # but as the default location of the library.
9940	  hardcode_minus_L=yes
9941	  ;;
9942	esac
9943      fi
9944      ;;
9945
9946    irix5* | irix6* | nonstopux*)
9947      if test "$GCC" = yes; then
9948	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9949	# Try to use the -exported_symbol ld option, if it does not
9950	# work, assume that -exports_file does not work either and
9951	# implicitly export all symbols.
9952        save_LDFLAGS="$LDFLAGS"
9953        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9954        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h.  */
9956int foo(void) {}
9957_ACEOF
9958if ac_fn_c_try_link "$LINENO"; then :
9959  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9960
9961fi
9962rm -f core conftest.err conftest.$ac_objext \
9963    conftest$ac_exeext conftest.$ac_ext
9964        LDFLAGS="$save_LDFLAGS"
9965      else
9966	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9967	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9968      fi
9969      archive_cmds_need_lc='no'
9970      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971      hardcode_libdir_separator=:
9972      inherit_rpath=yes
9973      link_all_deplibs=yes
9974      ;;
9975
9976    netbsd*)
9977      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9978	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9979      else
9980	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9981      fi
9982      hardcode_libdir_flag_spec='-R$libdir'
9983      hardcode_direct=yes
9984      hardcode_shlibpath_var=no
9985      ;;
9986
9987    newsos6)
9988      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989      hardcode_direct=yes
9990      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9991      hardcode_libdir_separator=:
9992      hardcode_shlibpath_var=no
9993      ;;
9994
9995    *nto* | *qnx*)
9996      ;;
9997
9998    openbsd*)
9999      if test -f /usr/libexec/ld.so; then
10000	hardcode_direct=yes
10001	hardcode_shlibpath_var=no
10002	hardcode_direct_absolute=yes
10003	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10004	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10005	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10006	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10007	  export_dynamic_flag_spec='${wl}-E'
10008	else
10009	  case $host_os in
10010	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10011	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10012	     hardcode_libdir_flag_spec='-R$libdir'
10013	     ;;
10014	   *)
10015	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10016	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10017	     ;;
10018	  esac
10019	fi
10020      else
10021	ld_shlibs=no
10022      fi
10023      ;;
10024
10025    os2*)
10026      hardcode_libdir_flag_spec='-L$libdir'
10027      hardcode_minus_L=yes
10028      allow_undefined_flag=unsupported
10029      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'
10030      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10031      ;;
10032
10033    osf3*)
10034      if test "$GCC" = yes; then
10035	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10036	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10037      else
10038	allow_undefined_flag=' -expect_unresolved \*'
10039	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10040      fi
10041      archive_cmds_need_lc='no'
10042      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043      hardcode_libdir_separator=:
10044      ;;
10045
10046    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10047      if test "$GCC" = yes; then
10048	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10049	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10050	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051      else
10052	allow_undefined_flag=' -expect_unresolved \*'
10053	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10054	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~
10055	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10056
10057	# Both c and cxx compiler support -rpath directly
10058	hardcode_libdir_flag_spec='-rpath $libdir'
10059      fi
10060      archive_cmds_need_lc='no'
10061      hardcode_libdir_separator=:
10062      ;;
10063
10064    solaris*)
10065      no_undefined_flag=' -z defs'
10066      if test "$GCC" = yes; then
10067	wlarc='${wl}'
10068	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10069	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10071      else
10072	case `$CC -V 2>&1` in
10073	*"Compilers 5.0"*)
10074	  wlarc=''
10075	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10077	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10078	  ;;
10079	*)
10080	  wlarc='${wl}'
10081	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10082	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10083	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10084	  ;;
10085	esac
10086      fi
10087      hardcode_libdir_flag_spec='-R$libdir'
10088      hardcode_shlibpath_var=no
10089      case $host_os in
10090      solaris2.[0-5] | solaris2.[0-5].*) ;;
10091      *)
10092	# The compiler driver will combine and reorder linker options,
10093	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10094	# but is careful enough not to reorder.
10095	# Supported since Solaris 2.6 (maybe 2.5.1?)
10096	if test "$GCC" = yes; then
10097	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10098	else
10099	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10100	fi
10101	;;
10102      esac
10103      link_all_deplibs=yes
10104      ;;
10105
10106    sunos4*)
10107      if test "x$host_vendor" = xsequent; then
10108	# Use $CC to link under sequent, because it throws in some extra .o
10109	# files that make .init and .fini sections work.
10110	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10111      else
10112	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10113      fi
10114      hardcode_libdir_flag_spec='-L$libdir'
10115      hardcode_direct=yes
10116      hardcode_minus_L=yes
10117      hardcode_shlibpath_var=no
10118      ;;
10119
10120    sysv4)
10121      case $host_vendor in
10122	sni)
10123	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124	  hardcode_direct=yes # is this really true???
10125	;;
10126	siemens)
10127	  ## LD is ld it makes a PLAMLIB
10128	  ## CC just makes a GrossModule.
10129	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10130	  reload_cmds='$CC -r -o $output$reload_objs'
10131	  hardcode_direct=no
10132        ;;
10133	motorola)
10134	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10136	;;
10137      esac
10138      runpath_var='LD_RUN_PATH'
10139      hardcode_shlibpath_var=no
10140      ;;
10141
10142    sysv4.3*)
10143      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144      hardcode_shlibpath_var=no
10145      export_dynamic_flag_spec='-Bexport'
10146      ;;
10147
10148    sysv4*MP*)
10149      if test -d /usr/nec; then
10150	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151	hardcode_shlibpath_var=no
10152	runpath_var=LD_RUN_PATH
10153	hardcode_runpath_var=yes
10154	ld_shlibs=yes
10155      fi
10156      ;;
10157
10158    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10159      no_undefined_flag='${wl}-z,text'
10160      archive_cmds_need_lc=no
10161      hardcode_shlibpath_var=no
10162      runpath_var='LD_RUN_PATH'
10163
10164      if test "$GCC" = yes; then
10165	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167      else
10168	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170      fi
10171      ;;
10172
10173    sysv5* | sco3.2v5* | sco5v6*)
10174      # Note: We can NOT use -z defs as we might desire, because we do not
10175      # link with -lc, and that would cause any symbols used from libc to
10176      # always be unresolved, which means just about no library would
10177      # ever link correctly.  If we're not using GNU ld we use -z text
10178      # though, which does catch some bad symbols but isn't as heavy-handed
10179      # as -z defs.
10180      no_undefined_flag='${wl}-z,text'
10181      allow_undefined_flag='${wl}-z,nodefs'
10182      archive_cmds_need_lc=no
10183      hardcode_shlibpath_var=no
10184      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10185      hardcode_libdir_separator=':'
10186      link_all_deplibs=yes
10187      export_dynamic_flag_spec='${wl}-Bexport'
10188      runpath_var='LD_RUN_PATH'
10189
10190      if test "$GCC" = yes; then
10191	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193      else
10194	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196      fi
10197      ;;
10198
10199    uts4*)
10200      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201      hardcode_libdir_flag_spec='-L$libdir'
10202      hardcode_shlibpath_var=no
10203      ;;
10204
10205    *)
10206      ld_shlibs=no
10207      ;;
10208    esac
10209
10210    if test x$host_vendor = xsni; then
10211      case $host in
10212      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10213	export_dynamic_flag_spec='${wl}-Blargedynsym'
10214	;;
10215      esac
10216    fi
10217  fi
10218
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10220$as_echo "$ld_shlibs" >&6; }
10221test "$ld_shlibs" = no && can_build_shared=no
10222
10223with_gnu_ld=$with_gnu_ld
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239#
10240# Do we need to explicitly link libc?
10241#
10242case "x$archive_cmds_need_lc" in
10243x|xyes)
10244  # Assume -lc should be added
10245  archive_cmds_need_lc=yes
10246
10247  if test "$enable_shared" = yes && test "$GCC" = yes; then
10248    case $archive_cmds in
10249    *'~'*)
10250      # FIXME: we may have to deal with multi-command sequences.
10251      ;;
10252    '$CC '*)
10253      # Test whether the compiler implicitly links with -lc since on some
10254      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10255      # to ld, don't add -lc before -lgcc.
10256      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10257$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10258      $RM conftest*
10259      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10260
10261      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10262  (eval $ac_compile) 2>&5
10263  ac_status=$?
10264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10265  test $ac_status = 0; } 2>conftest.err; then
10266        soname=conftest
10267        lib=conftest
10268        libobjs=conftest.$ac_objext
10269        deplibs=
10270        wl=$lt_prog_compiler_wl
10271	pic_flag=$lt_prog_compiler_pic
10272        compiler_flags=-v
10273        linker_flags=-v
10274        verstring=
10275        output_objdir=.
10276        libname=conftest
10277        lt_save_allow_undefined_flag=$allow_undefined_flag
10278        allow_undefined_flag=
10279        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10280  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10281  ac_status=$?
10282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10283  test $ac_status = 0; }
10284        then
10285	  archive_cmds_need_lc=no
10286        else
10287	  archive_cmds_need_lc=yes
10288        fi
10289        allow_undefined_flag=$lt_save_allow_undefined_flag
10290      else
10291        cat conftest.err 1>&5
10292      fi
10293      $RM conftest*
10294      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10295$as_echo "$archive_cmds_need_lc" >&6; }
10296      ;;
10297    esac
10298  fi
10299  ;;
10300esac
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10459$as_echo_n "checking dynamic linker characteristics... " >&6; }
10460
10461if test "$GCC" = yes; then
10462  case $host_os in
10463    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10464    *) lt_awk_arg="/^libraries:/" ;;
10465  esac
10466  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10467  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10468    # if the path contains ";" then we assume it to be the separator
10469    # otherwise default to the standard path separator (i.e. ":") - it is
10470    # assumed that no part of a normal pathname contains ";" but that should
10471    # okay in the real world where ";" in dirpaths is itself problematic.
10472    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10473  else
10474    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10475  fi
10476  # Ok, now we have the path, separated by spaces, we can step through it
10477  # and add multilib dir if necessary.
10478  lt_tmp_lt_search_path_spec=
10479  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10480  for lt_sys_path in $lt_search_path_spec; do
10481    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10482      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10483    else
10484      test -d "$lt_sys_path" && \
10485	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10486    fi
10487  done
10488  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10489BEGIN {RS=" "; FS="/|\n";} {
10490  lt_foo="";
10491  lt_count=0;
10492  for (lt_i = NF; lt_i > 0; lt_i--) {
10493    if ($lt_i != "" && $lt_i != ".") {
10494      if ($lt_i == "..") {
10495        lt_count++;
10496      } else {
10497        if (lt_count == 0) {
10498          lt_foo="/" $lt_i lt_foo;
10499        } else {
10500          lt_count--;
10501        }
10502      }
10503    }
10504  }
10505  if (lt_foo != "") { lt_freq[lt_foo]++; }
10506  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10507}'`
10508  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10509else
10510  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10511fi
10512library_names_spec=
10513libname_spec='lib$name'
10514soname_spec=
10515shrext_cmds=".so"
10516postinstall_cmds=
10517postuninstall_cmds=
10518finish_cmds=
10519finish_eval=
10520shlibpath_var=
10521shlibpath_overrides_runpath=unknown
10522version_type=none
10523dynamic_linker="$host_os ld.so"
10524sys_lib_dlsearch_path_spec="/lib /usr/lib"
10525need_lib_prefix=unknown
10526hardcode_into_libs=no
10527
10528# when you set need_version to no, make sure it does not cause -set_version
10529# flags to be left without arguments
10530need_version=unknown
10531
10532case $host_os in
10533aix3*)
10534  version_type=linux
10535  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10536  shlibpath_var=LIBPATH
10537
10538  # AIX 3 has no versioning support, so we append a major version to the name.
10539  soname_spec='${libname}${release}${shared_ext}$major'
10540  ;;
10541
10542aix[4-9]*)
10543  version_type=linux
10544  need_lib_prefix=no
10545  need_version=no
10546  hardcode_into_libs=yes
10547  if test "$host_cpu" = ia64; then
10548    # AIX 5 supports IA64
10549    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10550    shlibpath_var=LD_LIBRARY_PATH
10551  else
10552    # With GCC up to 2.95.x, collect2 would create an import file
10553    # for dependence libraries.  The import file would start with
10554    # the line `#! .'.  This would cause the generated library to
10555    # depend on `.', always an invalid library.  This was fixed in
10556    # development snapshots of GCC prior to 3.0.
10557    case $host_os in
10558      aix4 | aix4.[01] | aix4.[01].*)
10559      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10560	   echo ' yes '
10561	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10562	:
10563      else
10564	can_build_shared=no
10565      fi
10566      ;;
10567    esac
10568    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10569    # soname into executable. Probably we can add versioning support to
10570    # collect2, so additional links can be useful in future.
10571    if test "$aix_use_runtimelinking" = yes; then
10572      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10573      # instead of lib<name>.a to let people know that these are not
10574      # typical AIX shared libraries.
10575      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576    else
10577      # We preserve .a as extension for shared libraries through AIX4.2
10578      # and later when we are not doing run time linking.
10579      library_names_spec='${libname}${release}.a $libname.a'
10580      soname_spec='${libname}${release}${shared_ext}$major'
10581    fi
10582    shlibpath_var=LIBPATH
10583  fi
10584  ;;
10585
10586amigaos*)
10587  case $host_cpu in
10588  powerpc)
10589    # Since July 2007 AmigaOS4 officially supports .so libraries.
10590    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10591    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592    ;;
10593  m68k)
10594    library_names_spec='$libname.ixlibrary $libname.a'
10595    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10596    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10597    ;;
10598  esac
10599  ;;
10600
10601beos*)
10602  library_names_spec='${libname}${shared_ext}'
10603  dynamic_linker="$host_os ld.so"
10604  shlibpath_var=LIBRARY_PATH
10605  ;;
10606
10607bsdi[45]*)
10608  version_type=linux
10609  need_version=no
10610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611  soname_spec='${libname}${release}${shared_ext}$major'
10612  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10613  shlibpath_var=LD_LIBRARY_PATH
10614  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10615  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10616  # the default ld.so.conf also contains /usr/contrib/lib and
10617  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10618  # libtool to hard-code these into programs
10619  ;;
10620
10621cygwin* | mingw* | pw32* | cegcc*)
10622  version_type=windows
10623  shrext_cmds=".dll"
10624  need_version=no
10625  need_lib_prefix=no
10626
10627  case $GCC,$host_os in
10628  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10629    library_names_spec='$libname.dll.a'
10630    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10631    postinstall_cmds='base_file=`basename \${file}`~
10632      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10633      dldir=$destdir/`dirname \$dlpath`~
10634      test -d \$dldir || mkdir -p \$dldir~
10635      $install_prog $dir/$dlname \$dldir/$dlname~
10636      chmod a+x \$dldir/$dlname~
10637      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10638        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10639      fi'
10640    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10641      dlpath=$dir/\$dldll~
10642       $RM \$dlpath'
10643    shlibpath_overrides_runpath=yes
10644
10645    case $host_os in
10646    cygwin*)
10647      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10648      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10649      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10650      ;;
10651    mingw* | cegcc*)
10652      # MinGW DLLs use traditional 'lib' prefix
10653      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10654      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10655      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10656        # It is most probably a Windows format PATH printed by
10657        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10658        # path with ; separators, and with drive letters. We can handle the
10659        # drive letters (cygwin fileutils understands them), so leave them,
10660        # especially as we might pass files found there to a mingw objdump,
10661        # which wouldn't understand a cygwinified path. Ahh.
10662        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10663      else
10664        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10665      fi
10666      ;;
10667    pw32*)
10668      # pw32 DLLs use 'pw' prefix rather than 'lib'
10669      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670      ;;
10671    esac
10672    ;;
10673
10674  *)
10675    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10676    ;;
10677  esac
10678  dynamic_linker='Win32 ld.exe'
10679  # FIXME: first we should search . and the directory the executable is in
10680  shlibpath_var=PATH
10681  ;;
10682
10683darwin* | rhapsody*)
10684  dynamic_linker="$host_os dyld"
10685  version_type=darwin
10686  need_lib_prefix=no
10687  need_version=no
10688  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10689  soname_spec='${libname}${release}${major}$shared_ext'
10690  shlibpath_overrides_runpath=yes
10691  shlibpath_var=DYLD_LIBRARY_PATH
10692  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10693
10694  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10695  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10696  ;;
10697
10698dgux*)
10699  version_type=linux
10700  need_lib_prefix=no
10701  need_version=no
10702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10703  soname_spec='${libname}${release}${shared_ext}$major'
10704  shlibpath_var=LD_LIBRARY_PATH
10705  ;;
10706
10707freebsd1*)
10708  dynamic_linker=no
10709  ;;
10710
10711freebsd* | dragonfly*)
10712  # DragonFly does not have aout.  When/if they implement a new
10713  # versioning mechanism, adjust this.
10714  if test -x /usr/bin/objformat; then
10715    objformat=`/usr/bin/objformat`
10716  else
10717    case $host_os in
10718    freebsd[123]*) objformat=aout ;;
10719    *) objformat=elf ;;
10720    esac
10721  fi
10722  version_type=freebsd-$objformat
10723  case $version_type in
10724    freebsd-elf*)
10725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10726      need_version=no
10727      need_lib_prefix=no
10728      ;;
10729    freebsd-*)
10730      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10731      need_version=yes
10732      ;;
10733  esac
10734  shlibpath_var=LD_LIBRARY_PATH
10735  case $host_os in
10736  freebsd2*)
10737    shlibpath_overrides_runpath=yes
10738    ;;
10739  freebsd3.[01]* | freebsdelf3.[01]*)
10740    shlibpath_overrides_runpath=yes
10741    hardcode_into_libs=yes
10742    ;;
10743  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10744  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10745    shlibpath_overrides_runpath=no
10746    hardcode_into_libs=yes
10747    ;;
10748  *) # from 4.6 on, and DragonFly
10749    shlibpath_overrides_runpath=yes
10750    hardcode_into_libs=yes
10751    ;;
10752  esac
10753  ;;
10754
10755gnu*)
10756  version_type=linux
10757  need_lib_prefix=no
10758  need_version=no
10759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10760  soname_spec='${libname}${release}${shared_ext}$major'
10761  shlibpath_var=LD_LIBRARY_PATH
10762  hardcode_into_libs=yes
10763  ;;
10764
10765hpux9* | hpux10* | hpux11*)
10766  # Give a soname corresponding to the major version so that dld.sl refuses to
10767  # link against other versions.
10768  version_type=sunos
10769  need_lib_prefix=no
10770  need_version=no
10771  case $host_cpu in
10772  ia64*)
10773    shrext_cmds='.so'
10774    hardcode_into_libs=yes
10775    dynamic_linker="$host_os dld.so"
10776    shlibpath_var=LD_LIBRARY_PATH
10777    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10778    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779    soname_spec='${libname}${release}${shared_ext}$major'
10780    if test "X$HPUX_IA64_MODE" = X32; then
10781      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10782    else
10783      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10784    fi
10785    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10786    ;;
10787  hppa*64*)
10788    shrext_cmds='.sl'
10789    hardcode_into_libs=yes
10790    dynamic_linker="$host_os dld.sl"
10791    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10792    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10793    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794    soname_spec='${libname}${release}${shared_ext}$major'
10795    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10796    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10797    ;;
10798  *)
10799    shrext_cmds='.sl'
10800    dynamic_linker="$host_os dld.sl"
10801    shlibpath_var=SHLIB_PATH
10802    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804    soname_spec='${libname}${release}${shared_ext}$major'
10805    ;;
10806  esac
10807  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10808  postinstall_cmds='chmod 555 $lib'
10809  ;;
10810
10811interix[3-9]*)
10812  version_type=linux
10813  need_lib_prefix=no
10814  need_version=no
10815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10816  soname_spec='${libname}${release}${shared_ext}$major'
10817  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10818  shlibpath_var=LD_LIBRARY_PATH
10819  shlibpath_overrides_runpath=no
10820  hardcode_into_libs=yes
10821  ;;
10822
10823irix5* | irix6* | nonstopux*)
10824  case $host_os in
10825    nonstopux*) version_type=nonstopux ;;
10826    *)
10827	if test "$lt_cv_prog_gnu_ld" = yes; then
10828		version_type=linux
10829	else
10830		version_type=irix
10831	fi ;;
10832  esac
10833  need_lib_prefix=no
10834  need_version=no
10835  soname_spec='${libname}${release}${shared_ext}$major'
10836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10837  case $host_os in
10838  irix5* | nonstopux*)
10839    libsuff= shlibsuff=
10840    ;;
10841  *)
10842    case $LD in # libtool.m4 will add one of these switches to LD
10843    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10844      libsuff= shlibsuff= libmagic=32-bit;;
10845    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10846      libsuff=32 shlibsuff=N32 libmagic=N32;;
10847    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10848      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10849    *) libsuff= shlibsuff= libmagic=never-match;;
10850    esac
10851    ;;
10852  esac
10853  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10854  shlibpath_overrides_runpath=no
10855  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10856  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10857  hardcode_into_libs=yes
10858  ;;
10859
10860# No shared lib support for Linux oldld, aout, or coff.
10861linux*oldld* | linux*aout* | linux*coff*)
10862  dynamic_linker=no
10863  ;;
10864
10865# This must be Linux ELF.
10866linux* | k*bsd*-gnu)
10867  version_type=linux
10868  need_lib_prefix=no
10869  need_version=no
10870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10871  soname_spec='${libname}${release}${shared_ext}$major'
10872  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10873  shlibpath_var=LD_LIBRARY_PATH
10874  shlibpath_overrides_runpath=no
10875  # Some binutils ld are patched to set DT_RUNPATH
10876  save_LDFLAGS=$LDFLAGS
10877  save_libdir=$libdir
10878  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10879       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881/* end confdefs.h.  */
10882
10883int
10884main ()
10885{
10886
10887  ;
10888  return 0;
10889}
10890_ACEOF
10891if ac_fn_c_try_link "$LINENO"; then :
10892  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10893  shlibpath_overrides_runpath=yes
10894fi
10895fi
10896rm -f core conftest.err conftest.$ac_objext \
10897    conftest$ac_exeext conftest.$ac_ext
10898  LDFLAGS=$save_LDFLAGS
10899  libdir=$save_libdir
10900
10901  # This implies no fast_install, which is unacceptable.
10902  # Some rework will be needed to allow for fast_install
10903  # before this can be enabled.
10904  hardcode_into_libs=yes
10905
10906  # Append ld.so.conf contents to the search path
10907  if test -f /etc/ld.so.conf; then
10908    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;/^$/d' | tr '\n' ' '`
10909    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10910  fi
10911
10912  # We used to test for /lib/ld.so.1 and disable shared libraries on
10913  # powerpc, because MkLinux only supported shared libraries with the
10914  # GNU dynamic linker.  Since this was broken with cross compilers,
10915  # most powerpc-linux boxes support dynamic linking these days and
10916  # people can always --disable-shared, the test was removed, and we
10917  # assume the GNU/Linux dynamic linker is in use.
10918  dynamic_linker='GNU/Linux ld.so'
10919  ;;
10920
10921netbsd*)
10922  version_type=sunos
10923  need_lib_prefix=no
10924  need_version=no
10925  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10927    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10928    dynamic_linker='NetBSD (a.out) ld.so'
10929  else
10930    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10931    soname_spec='${libname}${release}${shared_ext}$major'
10932    dynamic_linker='NetBSD ld.elf_so'
10933  fi
10934  shlibpath_var=LD_LIBRARY_PATH
10935  shlibpath_overrides_runpath=yes
10936  hardcode_into_libs=yes
10937  ;;
10938
10939newsos6)
10940  version_type=linux
10941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942  shlibpath_var=LD_LIBRARY_PATH
10943  shlibpath_overrides_runpath=yes
10944  ;;
10945
10946*nto* | *qnx*)
10947  version_type=qnx
10948  need_lib_prefix=no
10949  need_version=no
10950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951  soname_spec='${libname}${release}${shared_ext}$major'
10952  shlibpath_var=LD_LIBRARY_PATH
10953  shlibpath_overrides_runpath=no
10954  hardcode_into_libs=yes
10955  dynamic_linker='ldqnx.so'
10956  ;;
10957
10958openbsd*)
10959  version_type=sunos
10960  sys_lib_dlsearch_path_spec="/usr/lib"
10961  need_lib_prefix=no
10962  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10963  case $host_os in
10964    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10965    *)				need_version=no  ;;
10966  esac
10967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10968  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10969  shlibpath_var=LD_LIBRARY_PATH
10970  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10971    case $host_os in
10972      openbsd2.[89] | openbsd2.[89].*)
10973	shlibpath_overrides_runpath=no
10974	;;
10975      *)
10976	shlibpath_overrides_runpath=yes
10977	;;
10978      esac
10979  else
10980    shlibpath_overrides_runpath=yes
10981  fi
10982  ;;
10983
10984os2*)
10985  libname_spec='$name'
10986  shrext_cmds=".dll"
10987  need_lib_prefix=no
10988  library_names_spec='$libname${shared_ext} $libname.a'
10989  dynamic_linker='OS/2 ld.exe'
10990  shlibpath_var=LIBPATH
10991  ;;
10992
10993osf3* | osf4* | osf5*)
10994  version_type=osf
10995  need_lib_prefix=no
10996  need_version=no
10997  soname_spec='${libname}${release}${shared_ext}$major'
10998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10999  shlibpath_var=LD_LIBRARY_PATH
11000  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11001  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11002  ;;
11003
11004rdos*)
11005  dynamic_linker=no
11006  ;;
11007
11008solaris*)
11009  version_type=linux
11010  need_lib_prefix=no
11011  need_version=no
11012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013  soname_spec='${libname}${release}${shared_ext}$major'
11014  shlibpath_var=LD_LIBRARY_PATH
11015  shlibpath_overrides_runpath=yes
11016  hardcode_into_libs=yes
11017  # ldd complains unless libraries are executable
11018  postinstall_cmds='chmod +x $lib'
11019  ;;
11020
11021sunos4*)
11022  version_type=sunos
11023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11024  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11025  shlibpath_var=LD_LIBRARY_PATH
11026  shlibpath_overrides_runpath=yes
11027  if test "$with_gnu_ld" = yes; then
11028    need_lib_prefix=no
11029  fi
11030  need_version=yes
11031  ;;
11032
11033sysv4 | sysv4.3*)
11034  version_type=linux
11035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036  soname_spec='${libname}${release}${shared_ext}$major'
11037  shlibpath_var=LD_LIBRARY_PATH
11038  case $host_vendor in
11039    sni)
11040      shlibpath_overrides_runpath=no
11041      need_lib_prefix=no
11042      runpath_var=LD_RUN_PATH
11043      ;;
11044    siemens)
11045      need_lib_prefix=no
11046      ;;
11047    motorola)
11048      need_lib_prefix=no
11049      need_version=no
11050      shlibpath_overrides_runpath=no
11051      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11052      ;;
11053  esac
11054  ;;
11055
11056sysv4*MP*)
11057  if test -d /usr/nec ;then
11058    version_type=linux
11059    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11060    soname_spec='$libname${shared_ext}.$major'
11061    shlibpath_var=LD_LIBRARY_PATH
11062  fi
11063  ;;
11064
11065sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11066  version_type=freebsd-elf
11067  need_lib_prefix=no
11068  need_version=no
11069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11070  soname_spec='${libname}${release}${shared_ext}$major'
11071  shlibpath_var=LD_LIBRARY_PATH
11072  shlibpath_overrides_runpath=yes
11073  hardcode_into_libs=yes
11074  if test "$with_gnu_ld" = yes; then
11075    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11076  else
11077    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11078    case $host_os in
11079      sco3.2v5*)
11080        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11081	;;
11082    esac
11083  fi
11084  sys_lib_dlsearch_path_spec='/usr/lib'
11085  ;;
11086
11087tpf*)
11088  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11089  version_type=linux
11090  need_lib_prefix=no
11091  need_version=no
11092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093  shlibpath_var=LD_LIBRARY_PATH
11094  shlibpath_overrides_runpath=no
11095  hardcode_into_libs=yes
11096  ;;
11097
11098uts4*)
11099  version_type=linux
11100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101  soname_spec='${libname}${release}${shared_ext}$major'
11102  shlibpath_var=LD_LIBRARY_PATH
11103  ;;
11104
11105*)
11106  dynamic_linker=no
11107  ;;
11108esac
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11110$as_echo "$dynamic_linker" >&6; }
11111test "$dynamic_linker" = no && can_build_shared=no
11112
11113variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11114if test "$GCC" = yes; then
11115  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11116fi
11117
11118if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11119  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11120fi
11121if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11122  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11123fi
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11212$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11213hardcode_action=
11214if test -n "$hardcode_libdir_flag_spec" ||
11215   test -n "$runpath_var" ||
11216   test "X$hardcode_automatic" = "Xyes" ; then
11217
11218  # We can hardcode non-existent directories.
11219  if test "$hardcode_direct" != no &&
11220     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11221     # have to relink, otherwise we might link with an installed library
11222     # when we should be linking with a yet-to-be-installed one
11223     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11224     test "$hardcode_minus_L" != no; then
11225    # Linking always hardcodes the temporary library directory.
11226    hardcode_action=relink
11227  else
11228    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11229    hardcode_action=immediate
11230  fi
11231else
11232  # We cannot hardcode anything, or else we can only hardcode existing
11233  # directories.
11234  hardcode_action=unsupported
11235fi
11236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11237$as_echo "$hardcode_action" >&6; }
11238
11239if test "$hardcode_action" = relink ||
11240   test "$inherit_rpath" = yes; then
11241  # Fast installation is not supported
11242  enable_fast_install=no
11243elif test "$shlibpath_overrides_runpath" = yes ||
11244     test "$enable_shared" = no; then
11245  # Fast installation is not necessary
11246  enable_fast_install=needless
11247fi
11248
11249
11250
11251
11252
11253
11254  if test "x$enable_dlopen" != xyes; then
11255  enable_dlopen=unknown
11256  enable_dlopen_self=unknown
11257  enable_dlopen_self_static=unknown
11258else
11259  lt_cv_dlopen=no
11260  lt_cv_dlopen_libs=
11261
11262  case $host_os in
11263  beos*)
11264    lt_cv_dlopen="load_add_on"
11265    lt_cv_dlopen_libs=
11266    lt_cv_dlopen_self=yes
11267    ;;
11268
11269  mingw* | pw32* | cegcc*)
11270    lt_cv_dlopen="LoadLibrary"
11271    lt_cv_dlopen_libs=
11272    ;;
11273
11274  cygwin*)
11275    lt_cv_dlopen="dlopen"
11276    lt_cv_dlopen_libs=
11277    ;;
11278
11279  darwin*)
11280  # if libdl is installed we need to link against it
11281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11282$as_echo_n "checking for dlopen in -ldl... " >&6; }
11283if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11284  $as_echo_n "(cached) " >&6
11285else
11286  ac_check_lib_save_LIBS=$LIBS
11287LIBS="-ldl  $LIBS"
11288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h.  */
11290
11291/* Override any GCC internal prototype to avoid an error.
11292   Use char because int might match the return type of a GCC
11293   builtin and then its argument prototype would still apply.  */
11294#ifdef __cplusplus
11295extern "C"
11296#endif
11297char dlopen ();
11298int
11299main ()
11300{
11301return dlopen ();
11302  ;
11303  return 0;
11304}
11305_ACEOF
11306if ac_fn_c_try_link "$LINENO"; then :
11307  ac_cv_lib_dl_dlopen=yes
11308else
11309  ac_cv_lib_dl_dlopen=no
11310fi
11311rm -f core conftest.err conftest.$ac_objext \
11312    conftest$ac_exeext conftest.$ac_ext
11313LIBS=$ac_check_lib_save_LIBS
11314fi
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11316$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11317if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11318  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11319else
11320
11321    lt_cv_dlopen="dyld"
11322    lt_cv_dlopen_libs=
11323    lt_cv_dlopen_self=yes
11324
11325fi
11326
11327    ;;
11328
11329  *)
11330    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11331if test "x$ac_cv_func_shl_load" = x""yes; then :
11332  lt_cv_dlopen="shl_load"
11333else
11334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11335$as_echo_n "checking for shl_load in -ldld... " >&6; }
11336if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11337  $as_echo_n "(cached) " >&6
11338else
11339  ac_check_lib_save_LIBS=$LIBS
11340LIBS="-ldld  $LIBS"
11341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342/* end confdefs.h.  */
11343
11344/* Override any GCC internal prototype to avoid an error.
11345   Use char because int might match the return type of a GCC
11346   builtin and then its argument prototype would still apply.  */
11347#ifdef __cplusplus
11348extern "C"
11349#endif
11350char shl_load ();
11351int
11352main ()
11353{
11354return shl_load ();
11355  ;
11356  return 0;
11357}
11358_ACEOF
11359if ac_fn_c_try_link "$LINENO"; then :
11360  ac_cv_lib_dld_shl_load=yes
11361else
11362  ac_cv_lib_dld_shl_load=no
11363fi
11364rm -f core conftest.err conftest.$ac_objext \
11365    conftest$ac_exeext conftest.$ac_ext
11366LIBS=$ac_check_lib_save_LIBS
11367fi
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11369$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11370if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11371  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11372else
11373  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11374if test "x$ac_cv_func_dlopen" = x""yes; then :
11375  lt_cv_dlopen="dlopen"
11376else
11377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11378$as_echo_n "checking for dlopen in -ldl... " >&6; }
11379if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11380  $as_echo_n "(cached) " >&6
11381else
11382  ac_check_lib_save_LIBS=$LIBS
11383LIBS="-ldl  $LIBS"
11384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385/* end confdefs.h.  */
11386
11387/* Override any GCC internal prototype to avoid an error.
11388   Use char because int might match the return type of a GCC
11389   builtin and then its argument prototype would still apply.  */
11390#ifdef __cplusplus
11391extern "C"
11392#endif
11393char dlopen ();
11394int
11395main ()
11396{
11397return dlopen ();
11398  ;
11399  return 0;
11400}
11401_ACEOF
11402if ac_fn_c_try_link "$LINENO"; then :
11403  ac_cv_lib_dl_dlopen=yes
11404else
11405  ac_cv_lib_dl_dlopen=no
11406fi
11407rm -f core conftest.err conftest.$ac_objext \
11408    conftest$ac_exeext conftest.$ac_ext
11409LIBS=$ac_check_lib_save_LIBS
11410fi
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11412$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11413if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11414  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11415else
11416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11417$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11418if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11419  $as_echo_n "(cached) " >&6
11420else
11421  ac_check_lib_save_LIBS=$LIBS
11422LIBS="-lsvld  $LIBS"
11423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424/* end confdefs.h.  */
11425
11426/* Override any GCC internal prototype to avoid an error.
11427   Use char because int might match the return type of a GCC
11428   builtin and then its argument prototype would still apply.  */
11429#ifdef __cplusplus
11430extern "C"
11431#endif
11432char dlopen ();
11433int
11434main ()
11435{
11436return dlopen ();
11437  ;
11438  return 0;
11439}
11440_ACEOF
11441if ac_fn_c_try_link "$LINENO"; then :
11442  ac_cv_lib_svld_dlopen=yes
11443else
11444  ac_cv_lib_svld_dlopen=no
11445fi
11446rm -f core conftest.err conftest.$ac_objext \
11447    conftest$ac_exeext conftest.$ac_ext
11448LIBS=$ac_check_lib_save_LIBS
11449fi
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11451$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11452if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11453  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11454else
11455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11456$as_echo_n "checking for dld_link in -ldld... " >&6; }
11457if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11458  $as_echo_n "(cached) " >&6
11459else
11460  ac_check_lib_save_LIBS=$LIBS
11461LIBS="-ldld  $LIBS"
11462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463/* end confdefs.h.  */
11464
11465/* Override any GCC internal prototype to avoid an error.
11466   Use char because int might match the return type of a GCC
11467   builtin and then its argument prototype would still apply.  */
11468#ifdef __cplusplus
11469extern "C"
11470#endif
11471char dld_link ();
11472int
11473main ()
11474{
11475return dld_link ();
11476  ;
11477  return 0;
11478}
11479_ACEOF
11480if ac_fn_c_try_link "$LINENO"; then :
11481  ac_cv_lib_dld_dld_link=yes
11482else
11483  ac_cv_lib_dld_dld_link=no
11484fi
11485rm -f core conftest.err conftest.$ac_objext \
11486    conftest$ac_exeext conftest.$ac_ext
11487LIBS=$ac_check_lib_save_LIBS
11488fi
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11490$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11491if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11492  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11493fi
11494
11495
11496fi
11497
11498
11499fi
11500
11501
11502fi
11503
11504
11505fi
11506
11507
11508fi
11509
11510    ;;
11511  esac
11512
11513  if test "x$lt_cv_dlopen" != xno; then
11514    enable_dlopen=yes
11515  else
11516    enable_dlopen=no
11517  fi
11518
11519  case $lt_cv_dlopen in
11520  dlopen)
11521    save_CPPFLAGS="$CPPFLAGS"
11522    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11523
11524    save_LDFLAGS="$LDFLAGS"
11525    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11526
11527    save_LIBS="$LIBS"
11528    LIBS="$lt_cv_dlopen_libs $LIBS"
11529
11530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11531$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11532if test "${lt_cv_dlopen_self+set}" = set; then :
11533  $as_echo_n "(cached) " >&6
11534else
11535  	  if test "$cross_compiling" = yes; then :
11536  lt_cv_dlopen_self=cross
11537else
11538  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11539  lt_status=$lt_dlunknown
11540  cat > conftest.$ac_ext <<_LT_EOF
11541#line 11541 "configure"
11542#include "confdefs.h"
11543
11544#if HAVE_DLFCN_H
11545#include <dlfcn.h>
11546#endif
11547
11548#include <stdio.h>
11549
11550#ifdef RTLD_GLOBAL
11551#  define LT_DLGLOBAL		RTLD_GLOBAL
11552#else
11553#  ifdef DL_GLOBAL
11554#    define LT_DLGLOBAL		DL_GLOBAL
11555#  else
11556#    define LT_DLGLOBAL		0
11557#  endif
11558#endif
11559
11560/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11561   find out it does not work in some platform. */
11562#ifndef LT_DLLAZY_OR_NOW
11563#  ifdef RTLD_LAZY
11564#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11565#  else
11566#    ifdef DL_LAZY
11567#      define LT_DLLAZY_OR_NOW		DL_LAZY
11568#    else
11569#      ifdef RTLD_NOW
11570#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11571#      else
11572#        ifdef DL_NOW
11573#          define LT_DLLAZY_OR_NOW	DL_NOW
11574#        else
11575#          define LT_DLLAZY_OR_NOW	0
11576#        endif
11577#      endif
11578#    endif
11579#  endif
11580#endif
11581
11582void fnord() { int i=42;}
11583int main ()
11584{
11585  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11586  int status = $lt_dlunknown;
11587
11588  if (self)
11589    {
11590      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11591      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11592      /* dlclose (self); */
11593    }
11594  else
11595    puts (dlerror ());
11596
11597  return status;
11598}
11599_LT_EOF
11600  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11601  (eval $ac_link) 2>&5
11602  ac_status=$?
11603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11604  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11605    (./conftest; exit; ) >&5 2>/dev/null
11606    lt_status=$?
11607    case x$lt_status in
11608      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11609      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11610      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11611    esac
11612  else :
11613    # compilation failed
11614    lt_cv_dlopen_self=no
11615  fi
11616fi
11617rm -fr conftest*
11618
11619
11620fi
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11622$as_echo "$lt_cv_dlopen_self" >&6; }
11623
11624    if test "x$lt_cv_dlopen_self" = xyes; then
11625      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11626      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11627$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11628if test "${lt_cv_dlopen_self_static+set}" = set; then :
11629  $as_echo_n "(cached) " >&6
11630else
11631  	  if test "$cross_compiling" = yes; then :
11632  lt_cv_dlopen_self_static=cross
11633else
11634  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11635  lt_status=$lt_dlunknown
11636  cat > conftest.$ac_ext <<_LT_EOF
11637#line 11637 "configure"
11638#include "confdefs.h"
11639
11640#if HAVE_DLFCN_H
11641#include <dlfcn.h>
11642#endif
11643
11644#include <stdio.h>
11645
11646#ifdef RTLD_GLOBAL
11647#  define LT_DLGLOBAL		RTLD_GLOBAL
11648#else
11649#  ifdef DL_GLOBAL
11650#    define LT_DLGLOBAL		DL_GLOBAL
11651#  else
11652#    define LT_DLGLOBAL		0
11653#  endif
11654#endif
11655
11656/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11657   find out it does not work in some platform. */
11658#ifndef LT_DLLAZY_OR_NOW
11659#  ifdef RTLD_LAZY
11660#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11661#  else
11662#    ifdef DL_LAZY
11663#      define LT_DLLAZY_OR_NOW		DL_LAZY
11664#    else
11665#      ifdef RTLD_NOW
11666#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11667#      else
11668#        ifdef DL_NOW
11669#          define LT_DLLAZY_OR_NOW	DL_NOW
11670#        else
11671#          define LT_DLLAZY_OR_NOW	0
11672#        endif
11673#      endif
11674#    endif
11675#  endif
11676#endif
11677
11678void fnord() { int i=42;}
11679int main ()
11680{
11681  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11682  int status = $lt_dlunknown;
11683
11684  if (self)
11685    {
11686      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11687      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11688      /* dlclose (self); */
11689    }
11690  else
11691    puts (dlerror ());
11692
11693  return status;
11694}
11695_LT_EOF
11696  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11697  (eval $ac_link) 2>&5
11698  ac_status=$?
11699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11700  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11701    (./conftest; exit; ) >&5 2>/dev/null
11702    lt_status=$?
11703    case x$lt_status in
11704      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11705      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11706      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11707    esac
11708  else :
11709    # compilation failed
11710    lt_cv_dlopen_self_static=no
11711  fi
11712fi
11713rm -fr conftest*
11714
11715
11716fi
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11718$as_echo "$lt_cv_dlopen_self_static" >&6; }
11719    fi
11720
11721    CPPFLAGS="$save_CPPFLAGS"
11722    LDFLAGS="$save_LDFLAGS"
11723    LIBS="$save_LIBS"
11724    ;;
11725  esac
11726
11727  case $lt_cv_dlopen_self in
11728  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11729  *) enable_dlopen_self=unknown ;;
11730  esac
11731
11732  case $lt_cv_dlopen_self_static in
11733  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11734  *) enable_dlopen_self_static=unknown ;;
11735  esac
11736fi
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754striplib=
11755old_striplib=
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11757$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11758if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11759  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11760  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762$as_echo "yes" >&6; }
11763else
11764# FIXME - insert some real tests, host_os isn't really good enough
11765  case $host_os in
11766  darwin*)
11767    if test -n "$STRIP" ; then
11768      striplib="$STRIP -x"
11769      old_striplib="$STRIP -S"
11770      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11771$as_echo "yes" >&6; }
11772    else
11773      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775    fi
11776    ;;
11777  *)
11778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779$as_echo "no" >&6; }
11780    ;;
11781  esac
11782fi
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795  # Report which library types will actually be built
11796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11797$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11799$as_echo "$can_build_shared" >&6; }
11800
11801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11802$as_echo_n "checking whether to build shared libraries... " >&6; }
11803  test "$can_build_shared" = "no" && enable_shared=no
11804
11805  # On AIX, shared libraries and static libraries use the same namespace, and
11806  # are all built from PIC.
11807  case $host_os in
11808  aix3*)
11809    test "$enable_shared" = yes && enable_static=no
11810    if test -n "$RANLIB"; then
11811      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11812      postinstall_cmds='$RANLIB $lib'
11813    fi
11814    ;;
11815
11816  aix[4-9]*)
11817    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11818      test "$enable_shared" = yes && enable_static=no
11819    fi
11820    ;;
11821  esac
11822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11823$as_echo "$enable_shared" >&6; }
11824
11825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11826$as_echo_n "checking whether to build static libraries... " >&6; }
11827  # Make sure either enable_shared or enable_static is yes.
11828  test "$enable_shared" = yes || enable_static=yes
11829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11830$as_echo "$enable_static" >&6; }
11831
11832
11833
11834
11835fi
11836ac_ext=c
11837ac_cpp='$CPP $CPPFLAGS'
11838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11840ac_compiler_gnu=$ac_cv_c_compiler_gnu
11841
11842CC="$lt_save_CC"
11843
11844
11845ac_ext=cpp
11846ac_cpp='$CXXCPP $CPPFLAGS'
11847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11850
11851archive_cmds_need_lc_CXX=no
11852allow_undefined_flag_CXX=
11853always_export_symbols_CXX=no
11854archive_expsym_cmds_CXX=
11855compiler_needs_object_CXX=no
11856export_dynamic_flag_spec_CXX=
11857hardcode_direct_CXX=no
11858hardcode_direct_absolute_CXX=no
11859hardcode_libdir_flag_spec_CXX=
11860hardcode_libdir_flag_spec_ld_CXX=
11861hardcode_libdir_separator_CXX=
11862hardcode_minus_L_CXX=no
11863hardcode_shlibpath_var_CXX=unsupported
11864hardcode_automatic_CXX=no
11865inherit_rpath_CXX=no
11866module_cmds_CXX=
11867module_expsym_cmds_CXX=
11868link_all_deplibs_CXX=unknown
11869old_archive_cmds_CXX=$old_archive_cmds
11870no_undefined_flag_CXX=
11871whole_archive_flag_spec_CXX=
11872enable_shared_with_static_runtimes_CXX=no
11873
11874# Source file extension for C++ test sources.
11875ac_ext=cpp
11876
11877# Object file extension for compiled C++ test sources.
11878objext=o
11879objext_CXX=$objext
11880
11881# No sense in running all these tests if we already determined that
11882# the CXX compiler isn't working.  Some variables (like enable_shared)
11883# are currently assumed to apply to all compilers on this platform,
11884# and will be corrupted by setting them based on a non-working compiler.
11885if test "$_lt_caught_CXX_error" != yes; then
11886  # Code to be used in simple compile tests
11887  lt_simple_compile_test_code="int some_variable = 0;"
11888
11889  # Code to be used in simple link tests
11890  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11891
11892  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11893
11894
11895
11896
11897
11898
11899# If no C compiler was specified, use CC.
11900LTCC=${LTCC-"$CC"}
11901
11902# If no C compiler flags were specified, use CFLAGS.
11903LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11904
11905# Allow CC to be a program name with arguments.
11906compiler=$CC
11907
11908
11909  # save warnings/boilerplate of simple test code
11910  ac_outfile=conftest.$ac_objext
11911echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11912eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11913_lt_compiler_boilerplate=`cat conftest.err`
11914$RM conftest*
11915
11916  ac_outfile=conftest.$ac_objext
11917echo "$lt_simple_link_test_code" >conftest.$ac_ext
11918eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11919_lt_linker_boilerplate=`cat conftest.err`
11920$RM -r conftest*
11921
11922
11923  # Allow CC to be a program name with arguments.
11924  lt_save_CC=$CC
11925  lt_save_LD=$LD
11926  lt_save_GCC=$GCC
11927  GCC=$GXX
11928  lt_save_with_gnu_ld=$with_gnu_ld
11929  lt_save_path_LD=$lt_cv_path_LD
11930  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11931    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11932  else
11933    $as_unset lt_cv_prog_gnu_ld
11934  fi
11935  if test -n "${lt_cv_path_LDCXX+set}"; then
11936    lt_cv_path_LD=$lt_cv_path_LDCXX
11937  else
11938    $as_unset lt_cv_path_LD
11939  fi
11940  test -z "${LDCXX+set}" || LD=$LDCXX
11941  CC=${CXX-"c++"}
11942  compiler=$CC
11943  compiler_CXX=$CC
11944  for cc_temp in $compiler""; do
11945  case $cc_temp in
11946    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11947    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11948    \-*) ;;
11949    *) break;;
11950  esac
11951done
11952cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11953
11954
11955  if test -n "$compiler"; then
11956    # We don't want -fno-exception when compiling C++ code, so set the
11957    # no_builtin_flag separately
11958    if test "$GXX" = yes; then
11959      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11960    else
11961      lt_prog_compiler_no_builtin_flag_CXX=
11962    fi
11963
11964    if test "$GXX" = yes; then
11965      # Set up default GNU C++ configuration
11966
11967
11968
11969# Check whether --with-gnu-ld was given.
11970if test "${with_gnu_ld+set}" = set; then :
11971  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11972else
11973  with_gnu_ld=no
11974fi
11975
11976ac_prog=ld
11977if test "$GCC" = yes; then
11978  # Check if gcc -print-prog-name=ld gives a path.
11979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11980$as_echo_n "checking for ld used by $CC... " >&6; }
11981  case $host in
11982  *-*-mingw*)
11983    # gcc leaves a trailing carriage return which upsets mingw
11984    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11985  *)
11986    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11987  esac
11988  case $ac_prog in
11989    # Accept absolute paths.
11990    [\\/]* | ?:[\\/]*)
11991      re_direlt='/[^/][^/]*/\.\./'
11992      # Canonicalize the pathname of ld
11993      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11994      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11995	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11996      done
11997      test -z "$LD" && LD="$ac_prog"
11998      ;;
11999  "")
12000    # If it fails, then pretend we aren't using GCC.
12001    ac_prog=ld
12002    ;;
12003  *)
12004    # If it is relative, then search for the first ld in PATH.
12005    with_gnu_ld=unknown
12006    ;;
12007  esac
12008elif test "$with_gnu_ld" = yes; then
12009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12010$as_echo_n "checking for GNU ld... " >&6; }
12011else
12012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12013$as_echo_n "checking for non-GNU ld... " >&6; }
12014fi
12015if test "${lt_cv_path_LD+set}" = set; then :
12016  $as_echo_n "(cached) " >&6
12017else
12018  if test -z "$LD"; then
12019  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12020  for ac_dir in $PATH; do
12021    IFS="$lt_save_ifs"
12022    test -z "$ac_dir" && ac_dir=.
12023    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12024      lt_cv_path_LD="$ac_dir/$ac_prog"
12025      # Check to see if the program is GNU ld.  I'd rather use --version,
12026      # but apparently some variants of GNU ld only accept -v.
12027      # Break only if it was the GNU/non-GNU ld that we prefer.
12028      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12029      *GNU* | *'with BFD'*)
12030	test "$with_gnu_ld" != no && break
12031	;;
12032      *)
12033	test "$with_gnu_ld" != yes && break
12034	;;
12035      esac
12036    fi
12037  done
12038  IFS="$lt_save_ifs"
12039else
12040  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12041fi
12042fi
12043
12044LD="$lt_cv_path_LD"
12045if test -n "$LD"; then
12046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12047$as_echo "$LD" >&6; }
12048else
12049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050$as_echo "no" >&6; }
12051fi
12052test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12054$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12055if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12056  $as_echo_n "(cached) " >&6
12057else
12058  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12059case `$LD -v 2>&1 </dev/null` in
12060*GNU* | *'with BFD'*)
12061  lt_cv_prog_gnu_ld=yes
12062  ;;
12063*)
12064  lt_cv_prog_gnu_ld=no
12065  ;;
12066esac
12067fi
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12069$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12070with_gnu_ld=$lt_cv_prog_gnu_ld
12071
12072
12073
12074
12075
12076
12077
12078      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12079      # archiving commands below assume that GNU ld is being used.
12080      if test "$with_gnu_ld" = yes; then
12081        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12082        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12083
12084        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12085        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12086
12087        # If archive_cmds runs LD, not CC, wlarc should be empty
12088        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12089        #     investigate it a little bit more. (MM)
12090        wlarc='${wl}'
12091
12092        # ancient GNU ld didn't support --whole-archive et. al.
12093        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12094	  $GREP 'no-whole-archive' > /dev/null; then
12095          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12096        else
12097          whole_archive_flag_spec_CXX=
12098        fi
12099      else
12100        with_gnu_ld=no
12101        wlarc=
12102
12103        # A generic and very simple default shared library creation
12104        # command for GNU C++ for the case where it uses the native
12105        # linker, instead of GNU ld.  If possible, this setting should
12106        # overridden to take advantage of the native linker features on
12107        # the platform it is being used on.
12108        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12109      fi
12110
12111      # Commands to make compiler produce verbose output that lists
12112      # what "hidden" libraries, object files and flags are used when
12113      # linking a shared library.
12114      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12115
12116    else
12117      GXX=no
12118      with_gnu_ld=no
12119      wlarc=
12120    fi
12121
12122    # PORTME: fill in a description of your system's C++ link characteristics
12123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12124$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12125    ld_shlibs_CXX=yes
12126    case $host_os in
12127      aix3*)
12128        # FIXME: insert proper C++ library support
12129        ld_shlibs_CXX=no
12130        ;;
12131      aix[4-9]*)
12132        if test "$host_cpu" = ia64; then
12133          # On IA64, the linker does run time linking by default, so we don't
12134          # have to do anything special.
12135          aix_use_runtimelinking=no
12136          exp_sym_flag='-Bexport'
12137          no_entry_flag=""
12138        else
12139          aix_use_runtimelinking=no
12140
12141          # Test if we are trying to use run time linking or normal
12142          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12143          # need to do runtime linking.
12144          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12145	    for ld_flag in $LDFLAGS; do
12146	      case $ld_flag in
12147	      *-brtl*)
12148	        aix_use_runtimelinking=yes
12149	        break
12150	        ;;
12151	      esac
12152	    done
12153	    ;;
12154          esac
12155
12156          exp_sym_flag='-bexport'
12157          no_entry_flag='-bnoentry'
12158        fi
12159
12160        # When large executables or shared objects are built, AIX ld can
12161        # have problems creating the table of contents.  If linking a library
12162        # or program results in "error TOC overflow" add -mminimal-toc to
12163        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12164        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12165
12166        archive_cmds_CXX=''
12167        hardcode_direct_CXX=yes
12168        hardcode_direct_absolute_CXX=yes
12169        hardcode_libdir_separator_CXX=':'
12170        link_all_deplibs_CXX=yes
12171        file_list_spec_CXX='${wl}-f,'
12172
12173        if test "$GXX" = yes; then
12174          case $host_os in aix4.[012]|aix4.[012].*)
12175          # We only want to do this on AIX 4.2 and lower, the check
12176          # below for broken collect2 doesn't work under 4.3+
12177	  collect2name=`${CC} -print-prog-name=collect2`
12178	  if test -f "$collect2name" &&
12179	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12180	  then
12181	    # We have reworked collect2
12182	    :
12183	  else
12184	    # We have old collect2
12185	    hardcode_direct_CXX=unsupported
12186	    # It fails to find uninstalled libraries when the uninstalled
12187	    # path is not listed in the libpath.  Setting hardcode_minus_L
12188	    # to unsupported forces relinking
12189	    hardcode_minus_L_CXX=yes
12190	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12191	    hardcode_libdir_separator_CXX=
12192	  fi
12193          esac
12194          shared_flag='-shared'
12195	  if test "$aix_use_runtimelinking" = yes; then
12196	    shared_flag="$shared_flag "'${wl}-G'
12197	  fi
12198        else
12199          # not using gcc
12200          if test "$host_cpu" = ia64; then
12201	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12202	  # chokes on -Wl,-G. The following line is correct:
12203	  shared_flag='-G'
12204          else
12205	    if test "$aix_use_runtimelinking" = yes; then
12206	      shared_flag='${wl}-G'
12207	    else
12208	      shared_flag='${wl}-bM:SRE'
12209	    fi
12210          fi
12211        fi
12212
12213        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12214        # It seems that -bexpall does not export symbols beginning with
12215        # underscore (_), so it is better to generate a list of symbols to
12216	# export.
12217        always_export_symbols_CXX=yes
12218        if test "$aix_use_runtimelinking" = yes; then
12219          # Warning - without using the other runtime loading flags (-brtl),
12220          # -berok will link without error, but may produce a broken library.
12221          allow_undefined_flag_CXX='-berok'
12222          # Determine the default libpath from the value encoded in an empty
12223          # executable.
12224          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h.  */
12226
12227int
12228main ()
12229{
12230
12231  ;
12232  return 0;
12233}
12234_ACEOF
12235if ac_fn_cxx_try_link "$LINENO"; then :
12236
12237lt_aix_libpath_sed='
12238    /Import File Strings/,/^$/ {
12239	/^0/ {
12240	    s/^0  *\(.*\)$/\1/
12241	    p
12242	}
12243    }'
12244aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12245# Check for a 64-bit object if we didn't find anything.
12246if test -z "$aix_libpath"; then
12247  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12248fi
12249fi
12250rm -f core conftest.err conftest.$ac_objext \
12251    conftest$ac_exeext conftest.$ac_ext
12252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12253
12254          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12255
12256          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12257        else
12258          if test "$host_cpu" = ia64; then
12259	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12260	    allow_undefined_flag_CXX="-z nodefs"
12261	    archive_expsym_cmds_CXX="\$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"
12262          else
12263	    # Determine the default libpath from the value encoded in an
12264	    # empty executable.
12265	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266/* end confdefs.h.  */
12267
12268int
12269main ()
12270{
12271
12272  ;
12273  return 0;
12274}
12275_ACEOF
12276if ac_fn_cxx_try_link "$LINENO"; then :
12277
12278lt_aix_libpath_sed='
12279    /Import File Strings/,/^$/ {
12280	/^0/ {
12281	    s/^0  *\(.*\)$/\1/
12282	    p
12283	}
12284    }'
12285aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12286# Check for a 64-bit object if we didn't find anything.
12287if test -z "$aix_libpath"; then
12288  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12289fi
12290fi
12291rm -f core conftest.err conftest.$ac_objext \
12292    conftest$ac_exeext conftest.$ac_ext
12293if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12294
12295	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12296	    # Warning - without using the other run time loading flags,
12297	    # -berok will link without error, but may produce a broken library.
12298	    no_undefined_flag_CXX=' ${wl}-bernotok'
12299	    allow_undefined_flag_CXX=' ${wl}-berok'
12300	    # Exported symbols can be pulled into shared objects from archives
12301	    whole_archive_flag_spec_CXX='$convenience'
12302	    archive_cmds_need_lc_CXX=yes
12303	    # This is similar to how AIX traditionally builds its shared
12304	    # libraries.
12305	    archive_expsym_cmds_CXX="\$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'
12306          fi
12307        fi
12308        ;;
12309
12310      beos*)
12311	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12312	  allow_undefined_flag_CXX=unsupported
12313	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12314	  # support --undefined.  This deserves some investigation.  FIXME
12315	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12316	else
12317	  ld_shlibs_CXX=no
12318	fi
12319	;;
12320
12321      chorus*)
12322        case $cc_basename in
12323          *)
12324	  # FIXME: insert proper C++ library support
12325	  ld_shlibs_CXX=no
12326	  ;;
12327        esac
12328        ;;
12329
12330      cygwin* | mingw* | pw32* | cegcc*)
12331        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12332        # as there is no search path for DLLs.
12333        hardcode_libdir_flag_spec_CXX='-L$libdir'
12334        allow_undefined_flag_CXX=unsupported
12335        always_export_symbols_CXX=no
12336        enable_shared_with_static_runtimes_CXX=yes
12337
12338        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12339          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12340          # If the export-symbols file already is a .def file (1st line
12341          # is EXPORTS), use it as is; otherwise, prepend...
12342          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12343	    cp $export_symbols $output_objdir/$soname.def;
12344          else
12345	    echo EXPORTS > $output_objdir/$soname.def;
12346	    cat $export_symbols >> $output_objdir/$soname.def;
12347          fi~
12348          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12349        else
12350          ld_shlibs_CXX=no
12351        fi
12352        ;;
12353      darwin* | rhapsody*)
12354
12355
12356  archive_cmds_need_lc_CXX=no
12357  hardcode_direct_CXX=no
12358  hardcode_automatic_CXX=yes
12359  hardcode_shlibpath_var_CXX=unsupported
12360  whole_archive_flag_spec_CXX=''
12361  link_all_deplibs_CXX=yes
12362  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12363  case $cc_basename in
12364     ifort*) _lt_dar_can_shared=yes ;;
12365     *) _lt_dar_can_shared=$GCC ;;
12366  esac
12367  if test "$_lt_dar_can_shared" = "yes"; then
12368    output_verbose_link_cmd=echo
12369    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12370    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12371    archive_expsym_cmds_CXX="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}"
12372    module_expsym_cmds_CXX="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}"
12373       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12374      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12375      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12376    fi
12377
12378  else
12379  ld_shlibs_CXX=no
12380  fi
12381
12382	;;
12383
12384      dgux*)
12385        case $cc_basename in
12386          ec++*)
12387	    # FIXME: insert proper C++ library support
12388	    ld_shlibs_CXX=no
12389	    ;;
12390          ghcx*)
12391	    # Green Hills C++ Compiler
12392	    # FIXME: insert proper C++ library support
12393	    ld_shlibs_CXX=no
12394	    ;;
12395          *)
12396	    # FIXME: insert proper C++ library support
12397	    ld_shlibs_CXX=no
12398	    ;;
12399        esac
12400        ;;
12401
12402      freebsd[12]*)
12403        # C++ shared libraries reported to be fairly broken before
12404	# switch to ELF
12405        ld_shlibs_CXX=no
12406        ;;
12407
12408      freebsd-elf*)
12409        archive_cmds_need_lc_CXX=no
12410        ;;
12411
12412      freebsd* | dragonfly*)
12413        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12414        # conventions
12415        ld_shlibs_CXX=yes
12416        ;;
12417
12418      gnu*)
12419        ;;
12420
12421      hpux9*)
12422        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12423        hardcode_libdir_separator_CXX=:
12424        export_dynamic_flag_spec_CXX='${wl}-E'
12425        hardcode_direct_CXX=yes
12426        hardcode_minus_L_CXX=yes # Not in the search PATH,
12427				             # but as the default
12428				             # location of the library.
12429
12430        case $cc_basename in
12431          CC*)
12432            # FIXME: insert proper C++ library support
12433            ld_shlibs_CXX=no
12434            ;;
12435          aCC*)
12436            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12437            # Commands to make compiler produce verbose output that lists
12438            # what "hidden" libraries, object files and flags are used when
12439            # linking a shared library.
12440            #
12441            # There doesn't appear to be a way to prevent this compiler from
12442            # explicitly linking system object files so we need to strip them
12443            # from the output so that they don't get included in the library
12444            # dependencies.
12445            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12446            ;;
12447          *)
12448            if test "$GXX" = yes; then
12449              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12450            else
12451              # FIXME: insert proper C++ library support
12452              ld_shlibs_CXX=no
12453            fi
12454            ;;
12455        esac
12456        ;;
12457
12458      hpux10*|hpux11*)
12459        if test $with_gnu_ld = no; then
12460	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12461	  hardcode_libdir_separator_CXX=:
12462
12463          case $host_cpu in
12464            hppa*64*|ia64*)
12465              ;;
12466            *)
12467	      export_dynamic_flag_spec_CXX='${wl}-E'
12468              ;;
12469          esac
12470        fi
12471        case $host_cpu in
12472          hppa*64*|ia64*)
12473            hardcode_direct_CXX=no
12474            hardcode_shlibpath_var_CXX=no
12475            ;;
12476          *)
12477            hardcode_direct_CXX=yes
12478            hardcode_direct_absolute_CXX=yes
12479            hardcode_minus_L_CXX=yes # Not in the search PATH,
12480					         # but as the default
12481					         # location of the library.
12482            ;;
12483        esac
12484
12485        case $cc_basename in
12486          CC*)
12487	    # FIXME: insert proper C++ library support
12488	    ld_shlibs_CXX=no
12489	    ;;
12490          aCC*)
12491	    case $host_cpu in
12492	      hppa*64*)
12493	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12494	        ;;
12495	      ia64*)
12496	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12497	        ;;
12498	      *)
12499	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12500	        ;;
12501	    esac
12502	    # Commands to make compiler produce verbose output that lists
12503	    # what "hidden" libraries, object files and flags are used when
12504	    # linking a shared library.
12505	    #
12506	    # There doesn't appear to be a way to prevent this compiler from
12507	    # explicitly linking system object files so we need to strip them
12508	    # from the output so that they don't get included in the library
12509	    # dependencies.
12510	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12511	    ;;
12512          *)
12513	    if test "$GXX" = yes; then
12514	      if test $with_gnu_ld = no; then
12515	        case $host_cpu in
12516	          hppa*64*)
12517	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12518	            ;;
12519	          ia64*)
12520	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12521	            ;;
12522	          *)
12523	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12524	            ;;
12525	        esac
12526	      fi
12527	    else
12528	      # FIXME: insert proper C++ library support
12529	      ld_shlibs_CXX=no
12530	    fi
12531	    ;;
12532        esac
12533        ;;
12534
12535      interix[3-9]*)
12536	hardcode_direct_CXX=no
12537	hardcode_shlibpath_var_CXX=no
12538	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12539	export_dynamic_flag_spec_CXX='${wl}-E'
12540	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12541	# Instead, shared libraries are loaded at an image base (0x10000000 by
12542	# default) and relocated if they conflict, which is a slow very memory
12543	# consuming and fragmenting process.  To avoid this, we pick a random,
12544	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12545	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12546	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12547	archive_expsym_cmds_CXX='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'
12548	;;
12549      irix5* | irix6*)
12550        case $cc_basename in
12551          CC*)
12552	    # SGI C++
12553	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12554
12555	    # Archives containing C++ object files must be created using
12556	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12557	    # necessary to make sure instantiated templates are included
12558	    # in the archive.
12559	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12560	    ;;
12561          *)
12562	    if test "$GXX" = yes; then
12563	      if test "$with_gnu_ld" = no; then
12564	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12565	      else
12566	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12567	      fi
12568	    fi
12569	    link_all_deplibs_CXX=yes
12570	    ;;
12571        esac
12572        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12573        hardcode_libdir_separator_CXX=:
12574        inherit_rpath_CXX=yes
12575        ;;
12576
12577      linux* | k*bsd*-gnu)
12578        case $cc_basename in
12579          KCC*)
12580	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12581
12582	    # KCC will only create a shared library if the output file
12583	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12584	    # to its proper name (with version) after linking.
12585	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12586	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12587	    # Commands to make compiler produce verbose output that lists
12588	    # what "hidden" libraries, object files and flags are used when
12589	    # linking a shared library.
12590	    #
12591	    # There doesn't appear to be a way to prevent this compiler from
12592	    # explicitly linking system object files so we need to strip them
12593	    # from the output so that they don't get included in the library
12594	    # dependencies.
12595	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12596
12597	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12598	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12599
12600	    # Archives containing C++ object files must be created using
12601	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12602	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12603	    ;;
12604	  icpc* | ecpc* )
12605	    # Intel C++
12606	    with_gnu_ld=yes
12607	    # version 8.0 and above of icpc choke on multiply defined symbols
12608	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12609	    # earlier do not add the objects themselves.
12610	    case `$CC -V 2>&1` in
12611	      *"Version 7."*)
12612	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12613		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12614		;;
12615	      *)  # Version 8.0 or newer
12616	        tmp_idyn=
12617	        case $host_cpu in
12618		  ia64*) tmp_idyn=' -i_dynamic';;
12619		esac
12620	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12621		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12622		;;
12623	    esac
12624	    archive_cmds_need_lc_CXX=no
12625	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12626	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12627	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12628	    ;;
12629          pgCC* | pgcpp*)
12630            # Portland Group C++ compiler
12631	    case `$CC -V` in
12632	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12633	      prelink_cmds_CXX='tpldir=Template.dir~
12634		rm -rf $tpldir~
12635		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12636		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12637	      old_archive_cmds_CXX='tpldir=Template.dir~
12638		rm -rf $tpldir~
12639		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12640		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12641		$RANLIB $oldlib'
12642	      archive_cmds_CXX='tpldir=Template.dir~
12643		rm -rf $tpldir~
12644		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12645		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12646	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12647		rm -rf $tpldir~
12648		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12649		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12650	      ;;
12651	    *) # Version 6 will use weak symbols
12652	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12653	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12654	      ;;
12655	    esac
12656
12657	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12658	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12659	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12660            ;;
12661	  cxx*)
12662	    # Compaq C++
12663	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12665
12666	    runpath_var=LD_RUN_PATH
12667	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12668	    hardcode_libdir_separator_CXX=:
12669
12670	    # Commands to make compiler produce verbose output that lists
12671	    # what "hidden" libraries, object files and flags are used when
12672	    # linking a shared library.
12673	    #
12674	    # There doesn't appear to be a way to prevent this compiler from
12675	    # explicitly linking system object files so we need to strip them
12676	    # from the output so that they don't get included in the library
12677	    # dependencies.
12678	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12679	    ;;
12680	  xl*)
12681	    # IBM XL 8.0 on PPC, with GNU ld
12682	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12683	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12684	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12685	    if test "x$supports_anon_versioning" = xyes; then
12686	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12687		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12688		echo "local: *; };" >> $output_objdir/$libname.ver~
12689		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12690	    fi
12691	    ;;
12692	  *)
12693	    case `$CC -V 2>&1 | sed 5q` in
12694	    *Sun\ C*)
12695	      # Sun C++ 5.9
12696	      no_undefined_flag_CXX=' -zdefs'
12697	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12698	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12699	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12700	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12701	      compiler_needs_object_CXX=yes
12702
12703	      # Not sure whether something based on
12704	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12705	      # would be better.
12706	      output_verbose_link_cmd='echo'
12707
12708	      # Archives containing C++ object files must be created using
12709	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12710	      # necessary to make sure instantiated templates are included
12711	      # in the archive.
12712	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12713	      ;;
12714	    esac
12715	    ;;
12716	esac
12717	;;
12718
12719      lynxos*)
12720        # FIXME: insert proper C++ library support
12721	ld_shlibs_CXX=no
12722	;;
12723
12724      m88k*)
12725        # FIXME: insert proper C++ library support
12726        ld_shlibs_CXX=no
12727	;;
12728
12729      mvs*)
12730        case $cc_basename in
12731          cxx*)
12732	    # FIXME: insert proper C++ library support
12733	    ld_shlibs_CXX=no
12734	    ;;
12735	  *)
12736	    # FIXME: insert proper C++ library support
12737	    ld_shlibs_CXX=no
12738	    ;;
12739	esac
12740	;;
12741
12742      netbsd*)
12743        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12744	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12745	  wlarc=
12746	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12747	  hardcode_direct_CXX=yes
12748	  hardcode_shlibpath_var_CXX=no
12749	fi
12750	# Workaround some broken pre-1.5 toolchains
12751	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12752	;;
12753
12754      *nto* | *qnx*)
12755        ld_shlibs_CXX=yes
12756	;;
12757
12758      openbsd2*)
12759        # C++ shared libraries are fairly broken
12760	ld_shlibs_CXX=no
12761	;;
12762
12763      openbsd*)
12764	if test -f /usr/libexec/ld.so; then
12765	  hardcode_direct_CXX=yes
12766	  hardcode_shlibpath_var_CXX=no
12767	  hardcode_direct_absolute_CXX=yes
12768	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12769	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12770	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12771	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12772	    export_dynamic_flag_spec_CXX='${wl}-E'
12773	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12774	  fi
12775	  output_verbose_link_cmd=echo
12776	else
12777	  ld_shlibs_CXX=no
12778	fi
12779	;;
12780
12781      osf3* | osf4* | osf5*)
12782        case $cc_basename in
12783          KCC*)
12784	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12785
12786	    # KCC will only create a shared library if the output file
12787	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12788	    # to its proper name (with version) after linking.
12789	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12790
12791	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12792	    hardcode_libdir_separator_CXX=:
12793
12794	    # Archives containing C++ object files must be created using
12795	    # the KAI C++ compiler.
12796	    case $host in
12797	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12798	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12799	    esac
12800	    ;;
12801          RCC*)
12802	    # Rational C++ 2.4.1
12803	    # FIXME: insert proper C++ library support
12804	    ld_shlibs_CXX=no
12805	    ;;
12806          cxx*)
12807	    case $host in
12808	      osf3*)
12809	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12810	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12811	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12812		;;
12813	      *)
12814	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12815	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12816	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12817	          echo "-hidden">> $lib.exp~
12818	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12819	          $RM $lib.exp'
12820	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12821		;;
12822	    esac
12823
12824	    hardcode_libdir_separator_CXX=:
12825
12826	    # Commands to make compiler produce verbose output that lists
12827	    # what "hidden" libraries, object files and flags are used when
12828	    # linking a shared library.
12829	    #
12830	    # There doesn't appear to be a way to prevent this compiler from
12831	    # explicitly linking system object files so we need to strip them
12832	    # from the output so that they don't get included in the library
12833	    # dependencies.
12834	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12835	    ;;
12836	  *)
12837	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12838	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12839	      case $host in
12840	        osf3*)
12841	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12842		  ;;
12843	        *)
12844	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12845		  ;;
12846	      esac
12847
12848	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12849	      hardcode_libdir_separator_CXX=:
12850
12851	      # Commands to make compiler produce verbose output that lists
12852	      # what "hidden" libraries, object files and flags are used when
12853	      # linking a shared library.
12854	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12855
12856	    else
12857	      # FIXME: insert proper C++ library support
12858	      ld_shlibs_CXX=no
12859	    fi
12860	    ;;
12861        esac
12862        ;;
12863
12864      psos*)
12865        # FIXME: insert proper C++ library support
12866        ld_shlibs_CXX=no
12867        ;;
12868
12869      sunos4*)
12870        case $cc_basename in
12871          CC*)
12872	    # Sun C++ 4.x
12873	    # FIXME: insert proper C++ library support
12874	    ld_shlibs_CXX=no
12875	    ;;
12876          lcc*)
12877	    # Lucid
12878	    # FIXME: insert proper C++ library support
12879	    ld_shlibs_CXX=no
12880	    ;;
12881          *)
12882	    # FIXME: insert proper C++ library support
12883	    ld_shlibs_CXX=no
12884	    ;;
12885        esac
12886        ;;
12887
12888      solaris*)
12889        case $cc_basename in
12890          CC*)
12891	    # Sun C++ 4.2, 5.x and Centerline C++
12892            archive_cmds_need_lc_CXX=yes
12893	    no_undefined_flag_CXX=' -zdefs'
12894	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12895	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12896	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12897
12898	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12899	    hardcode_shlibpath_var_CXX=no
12900	    case $host_os in
12901	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12902	      *)
12903		# The compiler driver will combine and reorder linker options,
12904		# but understands `-z linker_flag'.
12905	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12906		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12907	        ;;
12908	    esac
12909	    link_all_deplibs_CXX=yes
12910
12911	    output_verbose_link_cmd='echo'
12912
12913	    # Archives containing C++ object files must be created using
12914	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12915	    # necessary to make sure instantiated templates are included
12916	    # in the archive.
12917	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12918	    ;;
12919          gcx*)
12920	    # Green Hills C++ Compiler
12921	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12922
12923	    # The C++ compiler must be used to create the archive.
12924	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12925	    ;;
12926          *)
12927	    # GNU C++ compiler with Solaris linker
12928	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12929	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12930	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12931	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12932	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12933		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12934
12935	        # Commands to make compiler produce verbose output that lists
12936	        # what "hidden" libraries, object files and flags are used when
12937	        # linking a shared library.
12938	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12939	      else
12940	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12941	        # platform.
12942	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12943	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12944		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12945
12946	        # Commands to make compiler produce verbose output that lists
12947	        # what "hidden" libraries, object files and flags are used when
12948	        # linking a shared library.
12949	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12950	      fi
12951
12952	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12953	      case $host_os in
12954		solaris2.[0-5] | solaris2.[0-5].*) ;;
12955		*)
12956		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12957		  ;;
12958	      esac
12959	    fi
12960	    ;;
12961        esac
12962        ;;
12963
12964    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12965      no_undefined_flag_CXX='${wl}-z,text'
12966      archive_cmds_need_lc_CXX=no
12967      hardcode_shlibpath_var_CXX=no
12968      runpath_var='LD_RUN_PATH'
12969
12970      case $cc_basename in
12971        CC*)
12972	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12973	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12974	  ;;
12975	*)
12976	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12977	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12978	  ;;
12979      esac
12980      ;;
12981
12982      sysv5* | sco3.2v5* | sco5v6*)
12983	# Note: We can NOT use -z defs as we might desire, because we do not
12984	# link with -lc, and that would cause any symbols used from libc to
12985	# always be unresolved, which means just about no library would
12986	# ever link correctly.  If we're not using GNU ld we use -z text
12987	# though, which does catch some bad symbols but isn't as heavy-handed
12988	# as -z defs.
12989	no_undefined_flag_CXX='${wl}-z,text'
12990	allow_undefined_flag_CXX='${wl}-z,nodefs'
12991	archive_cmds_need_lc_CXX=no
12992	hardcode_shlibpath_var_CXX=no
12993	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12994	hardcode_libdir_separator_CXX=':'
12995	link_all_deplibs_CXX=yes
12996	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12997	runpath_var='LD_RUN_PATH'
12998
12999	case $cc_basename in
13000          CC*)
13001	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13002	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13003	    ;;
13004	  *)
13005	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13006	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13007	    ;;
13008	esac
13009      ;;
13010
13011      tandem*)
13012        case $cc_basename in
13013          NCC*)
13014	    # NonStop-UX NCC 3.20
13015	    # FIXME: insert proper C++ library support
13016	    ld_shlibs_CXX=no
13017	    ;;
13018          *)
13019	    # FIXME: insert proper C++ library support
13020	    ld_shlibs_CXX=no
13021	    ;;
13022        esac
13023        ;;
13024
13025      vxworks*)
13026        # FIXME: insert proper C++ library support
13027        ld_shlibs_CXX=no
13028        ;;
13029
13030      *)
13031        # FIXME: insert proper C++ library support
13032        ld_shlibs_CXX=no
13033        ;;
13034    esac
13035
13036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13037$as_echo "$ld_shlibs_CXX" >&6; }
13038    test "$ld_shlibs_CXX" = no && can_build_shared=no
13039
13040    GCC_CXX="$GXX"
13041    LD_CXX="$LD"
13042
13043    ## CAVEAT EMPTOR:
13044    ## There is no encapsulation within the following macros, do not change
13045    ## the running order or otherwise move them around unless you know exactly
13046    ## what you are doing...
13047    # Dependencies to place before and after the object being linked:
13048predep_objects_CXX=
13049postdep_objects_CXX=
13050predeps_CXX=
13051postdeps_CXX=
13052compiler_lib_search_path_CXX=
13053
13054cat > conftest.$ac_ext <<_LT_EOF
13055class Foo
13056{
13057public:
13058  Foo (void) { a = 0; }
13059private:
13060  int a;
13061};
13062_LT_EOF
13063
13064if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13065  (eval $ac_compile) 2>&5
13066  ac_status=$?
13067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13068  test $ac_status = 0; }; then
13069  # Parse the compiler output and extract the necessary
13070  # objects, libraries and library flags.
13071
13072  # Sentinel used to keep track of whether or not we are before
13073  # the conftest object file.
13074  pre_test_object_deps_done=no
13075
13076  for p in `eval "$output_verbose_link_cmd"`; do
13077    case $p in
13078
13079    -L* | -R* | -l*)
13080       # Some compilers place space between "-{L,R}" and the path.
13081       # Remove the space.
13082       if test $p = "-L" ||
13083          test $p = "-R"; then
13084	 prev=$p
13085	 continue
13086       else
13087	 prev=
13088       fi
13089
13090       if test "$pre_test_object_deps_done" = no; then
13091	 case $p in
13092	 -L* | -R*)
13093	   # Internal compiler library paths should come after those
13094	   # provided the user.  The postdeps already come after the
13095	   # user supplied libs so there is no need to process them.
13096	   if test -z "$compiler_lib_search_path_CXX"; then
13097	     compiler_lib_search_path_CXX="${prev}${p}"
13098	   else
13099	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13100	   fi
13101	   ;;
13102	 # The "-l" case would never come before the object being
13103	 # linked, so don't bother handling this case.
13104	 esac
13105       else
13106	 if test -z "$postdeps_CXX"; then
13107	   postdeps_CXX="${prev}${p}"
13108	 else
13109	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13110	 fi
13111       fi
13112       ;;
13113
13114    *.$objext)
13115       # This assumes that the test object file only shows up
13116       # once in the compiler output.
13117       if test "$p" = "conftest.$objext"; then
13118	 pre_test_object_deps_done=yes
13119	 continue
13120       fi
13121
13122       if test "$pre_test_object_deps_done" = no; then
13123	 if test -z "$predep_objects_CXX"; then
13124	   predep_objects_CXX="$p"
13125	 else
13126	   predep_objects_CXX="$predep_objects_CXX $p"
13127	 fi
13128       else
13129	 if test -z "$postdep_objects_CXX"; then
13130	   postdep_objects_CXX="$p"
13131	 else
13132	   postdep_objects_CXX="$postdep_objects_CXX $p"
13133	 fi
13134       fi
13135       ;;
13136
13137    *) ;; # Ignore the rest.
13138
13139    esac
13140  done
13141
13142  # Clean up.
13143  rm -f a.out a.exe
13144else
13145  echo "libtool.m4: error: problem compiling CXX test program"
13146fi
13147
13148$RM -f confest.$objext
13149
13150# PORTME: override above test on systems where it is broken
13151case $host_os in
13152interix[3-9]*)
13153  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13154  # hack all around it, let's just trust "g++" to DTRT.
13155  predep_objects_CXX=
13156  postdep_objects_CXX=
13157  postdeps_CXX=
13158  ;;
13159
13160linux*)
13161  case `$CC -V 2>&1 | sed 5q` in
13162  *Sun\ C*)
13163    # Sun C++ 5.9
13164
13165    # The more standards-conforming stlport4 library is
13166    # incompatible with the Cstd library. Avoid specifying
13167    # it if it's in CXXFLAGS. Ignore libCrun as
13168    # -library=stlport4 depends on it.
13169    case " $CXX $CXXFLAGS " in
13170    *" -library=stlport4 "*)
13171      solaris_use_stlport4=yes
13172      ;;
13173    esac
13174
13175    if test "$solaris_use_stlport4" != yes; then
13176      postdeps_CXX='-library=Cstd -library=Crun'
13177    fi
13178    ;;
13179  esac
13180  ;;
13181
13182solaris*)
13183  case $cc_basename in
13184  CC*)
13185    # The more standards-conforming stlport4 library is
13186    # incompatible with the Cstd library. Avoid specifying
13187    # it if it's in CXXFLAGS. Ignore libCrun as
13188    # -library=stlport4 depends on it.
13189    case " $CXX $CXXFLAGS " in
13190    *" -library=stlport4 "*)
13191      solaris_use_stlport4=yes
13192      ;;
13193    esac
13194
13195    # Adding this requires a known-good setup of shared libraries for
13196    # Sun compiler versions before 5.6, else PIC objects from an old
13197    # archive will be linked into the output, leading to subtle bugs.
13198    if test "$solaris_use_stlport4" != yes; then
13199      postdeps_CXX='-library=Cstd -library=Crun'
13200    fi
13201    ;;
13202  esac
13203  ;;
13204esac
13205
13206
13207case " $postdeps_CXX " in
13208*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13209esac
13210 compiler_lib_search_dirs_CXX=
13211if test -n "${compiler_lib_search_path_CXX}"; then
13212 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13213fi
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245    lt_prog_compiler_wl_CXX=
13246lt_prog_compiler_pic_CXX=
13247lt_prog_compiler_static_CXX=
13248
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13250$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13251
13252  # C++ specific cases for pic, static, wl, etc.
13253  if test "$GXX" = yes; then
13254    lt_prog_compiler_wl_CXX='-Wl,'
13255    lt_prog_compiler_static_CXX='-static'
13256
13257    case $host_os in
13258    aix*)
13259      # All AIX code is PIC.
13260      if test "$host_cpu" = ia64; then
13261	# AIX 5 now supports IA64 processor
13262	lt_prog_compiler_static_CXX='-Bstatic'
13263      fi
13264      ;;
13265
13266    amigaos*)
13267      case $host_cpu in
13268      powerpc)
13269            # see comment about AmigaOS4 .so support
13270            lt_prog_compiler_pic_CXX='-fPIC'
13271        ;;
13272      m68k)
13273            # FIXME: we need at least 68020 code to build shared libraries, but
13274            # adding the `-m68020' flag to GCC prevents building anything better,
13275            # like `-m68040'.
13276            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13277        ;;
13278      esac
13279      ;;
13280
13281    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13282      # PIC is the default for these OSes.
13283      ;;
13284    mingw* | cygwin* | os2* | pw32* | cegcc*)
13285      # This hack is so that the source file can tell whether it is being
13286      # built for inclusion in a dll (and should export symbols for example).
13287      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13288      # (--disable-auto-import) libraries
13289      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13290      ;;
13291    darwin* | rhapsody*)
13292      # PIC is the default on this platform
13293      # Common symbols not allowed in MH_DYLIB files
13294      lt_prog_compiler_pic_CXX='-fno-common'
13295      ;;
13296    *djgpp*)
13297      # DJGPP does not support shared libraries at all
13298      lt_prog_compiler_pic_CXX=
13299      ;;
13300    interix[3-9]*)
13301      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13302      # Instead, we relocate shared libraries at runtime.
13303      ;;
13304    sysv4*MP*)
13305      if test -d /usr/nec; then
13306	lt_prog_compiler_pic_CXX=-Kconform_pic
13307      fi
13308      ;;
13309    hpux*)
13310      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13311      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13312      # sets the default TLS model and affects inlining.
13313      case $host_cpu in
13314      hppa*64*)
13315	;;
13316      *)
13317	lt_prog_compiler_pic_CXX='-fPIC'
13318	;;
13319      esac
13320      ;;
13321    *qnx* | *nto*)
13322      # QNX uses GNU C++, but need to define -shared option too, otherwise
13323      # it will coredump.
13324      lt_prog_compiler_pic_CXX='-fPIC -shared'
13325      ;;
13326    *)
13327      lt_prog_compiler_pic_CXX='-fPIC'
13328      ;;
13329    esac
13330  else
13331    case $host_os in
13332      aix[4-9]*)
13333	# All AIX code is PIC.
13334	if test "$host_cpu" = ia64; then
13335	  # AIX 5 now supports IA64 processor
13336	  lt_prog_compiler_static_CXX='-Bstatic'
13337	else
13338	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13339	fi
13340	;;
13341      chorus*)
13342	case $cc_basename in
13343	cxch68*)
13344	  # Green Hills C++ Compiler
13345	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13346	  ;;
13347	esac
13348	;;
13349      dgux*)
13350	case $cc_basename in
13351	  ec++*)
13352	    lt_prog_compiler_pic_CXX='-KPIC'
13353	    ;;
13354	  ghcx*)
13355	    # Green Hills C++ Compiler
13356	    lt_prog_compiler_pic_CXX='-pic'
13357	    ;;
13358	  *)
13359	    ;;
13360	esac
13361	;;
13362      freebsd* | dragonfly*)
13363	# FreeBSD uses GNU C++
13364	;;
13365      hpux9* | hpux10* | hpux11*)
13366	case $cc_basename in
13367	  CC*)
13368	    lt_prog_compiler_wl_CXX='-Wl,'
13369	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13370	    if test "$host_cpu" != ia64; then
13371	      lt_prog_compiler_pic_CXX='+Z'
13372	    fi
13373	    ;;
13374	  aCC*)
13375	    lt_prog_compiler_wl_CXX='-Wl,'
13376	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13377	    case $host_cpu in
13378	    hppa*64*|ia64*)
13379	      # +Z the default
13380	      ;;
13381	    *)
13382	      lt_prog_compiler_pic_CXX='+Z'
13383	      ;;
13384	    esac
13385	    ;;
13386	  *)
13387	    ;;
13388	esac
13389	;;
13390      interix*)
13391	# This is c89, which is MS Visual C++ (no shared libs)
13392	# Anyone wants to do a port?
13393	;;
13394      irix5* | irix6* | nonstopux*)
13395	case $cc_basename in
13396	  CC*)
13397	    lt_prog_compiler_wl_CXX='-Wl,'
13398	    lt_prog_compiler_static_CXX='-non_shared'
13399	    # CC pic flag -KPIC is the default.
13400	    ;;
13401	  *)
13402	    ;;
13403	esac
13404	;;
13405      linux* | k*bsd*-gnu)
13406	case $cc_basename in
13407	  KCC*)
13408	    # KAI C++ Compiler
13409	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13410	    lt_prog_compiler_pic_CXX='-fPIC'
13411	    ;;
13412	  ecpc* )
13413	    # old Intel C++ for x86_64 which still supported -KPIC.
13414	    lt_prog_compiler_wl_CXX='-Wl,'
13415	    lt_prog_compiler_pic_CXX='-KPIC'
13416	    lt_prog_compiler_static_CXX='-static'
13417	    ;;
13418	  icpc* )
13419	    # Intel C++, used to be incompatible with GCC.
13420	    # ICC 10 doesn't accept -KPIC any more.
13421	    lt_prog_compiler_wl_CXX='-Wl,'
13422	    lt_prog_compiler_pic_CXX='-fPIC'
13423	    lt_prog_compiler_static_CXX='-static'
13424	    ;;
13425	  pgCC* | pgcpp*)
13426	    # Portland Group C++ compiler
13427	    lt_prog_compiler_wl_CXX='-Wl,'
13428	    lt_prog_compiler_pic_CXX='-fpic'
13429	    lt_prog_compiler_static_CXX='-Bstatic'
13430	    ;;
13431	  cxx*)
13432	    # Compaq C++
13433	    # Make sure the PIC flag is empty.  It appears that all Alpha
13434	    # Linux and Compaq Tru64 Unix objects are PIC.
13435	    lt_prog_compiler_pic_CXX=
13436	    lt_prog_compiler_static_CXX='-non_shared'
13437	    ;;
13438	  xlc* | xlC*)
13439	    # IBM XL 8.0 on PPC
13440	    lt_prog_compiler_wl_CXX='-Wl,'
13441	    lt_prog_compiler_pic_CXX='-qpic'
13442	    lt_prog_compiler_static_CXX='-qstaticlink'
13443	    ;;
13444	  *)
13445	    case `$CC -V 2>&1 | sed 5q` in
13446	    *Sun\ C*)
13447	      # Sun C++ 5.9
13448	      lt_prog_compiler_pic_CXX='-KPIC'
13449	      lt_prog_compiler_static_CXX='-Bstatic'
13450	      lt_prog_compiler_wl_CXX='-Qoption ld '
13451	      ;;
13452	    esac
13453	    ;;
13454	esac
13455	;;
13456      lynxos*)
13457	;;
13458      m88k*)
13459	;;
13460      mvs*)
13461	case $cc_basename in
13462	  cxx*)
13463	    lt_prog_compiler_pic_CXX='-W c,exportall'
13464	    ;;
13465	  *)
13466	    ;;
13467	esac
13468	;;
13469      netbsd*)
13470	;;
13471      *qnx* | *nto*)
13472        # QNX uses GNU C++, but need to define -shared option too, otherwise
13473        # it will coredump.
13474        lt_prog_compiler_pic_CXX='-fPIC -shared'
13475        ;;
13476      osf3* | osf4* | osf5*)
13477	case $cc_basename in
13478	  KCC*)
13479	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13480	    ;;
13481	  RCC*)
13482	    # Rational C++ 2.4.1
13483	    lt_prog_compiler_pic_CXX='-pic'
13484	    ;;
13485	  cxx*)
13486	    # Digital/Compaq C++
13487	    lt_prog_compiler_wl_CXX='-Wl,'
13488	    # Make sure the PIC flag is empty.  It appears that all Alpha
13489	    # Linux and Compaq Tru64 Unix objects are PIC.
13490	    lt_prog_compiler_pic_CXX=
13491	    lt_prog_compiler_static_CXX='-non_shared'
13492	    ;;
13493	  *)
13494	    ;;
13495	esac
13496	;;
13497      psos*)
13498	;;
13499      solaris*)
13500	case $cc_basename in
13501	  CC*)
13502	    # Sun C++ 4.2, 5.x and Centerline C++
13503	    lt_prog_compiler_pic_CXX='-KPIC'
13504	    lt_prog_compiler_static_CXX='-Bstatic'
13505	    lt_prog_compiler_wl_CXX='-Qoption ld '
13506	    ;;
13507	  gcx*)
13508	    # Green Hills C++ Compiler
13509	    lt_prog_compiler_pic_CXX='-PIC'
13510	    ;;
13511	  *)
13512	    ;;
13513	esac
13514	;;
13515      sunos4*)
13516	case $cc_basename in
13517	  CC*)
13518	    # Sun C++ 4.x
13519	    lt_prog_compiler_pic_CXX='-pic'
13520	    lt_prog_compiler_static_CXX='-Bstatic'
13521	    ;;
13522	  lcc*)
13523	    # Lucid
13524	    lt_prog_compiler_pic_CXX='-pic'
13525	    ;;
13526	  *)
13527	    ;;
13528	esac
13529	;;
13530      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13531	case $cc_basename in
13532	  CC*)
13533	    lt_prog_compiler_wl_CXX='-Wl,'
13534	    lt_prog_compiler_pic_CXX='-KPIC'
13535	    lt_prog_compiler_static_CXX='-Bstatic'
13536	    ;;
13537	esac
13538	;;
13539      tandem*)
13540	case $cc_basename in
13541	  NCC*)
13542	    # NonStop-UX NCC 3.20
13543	    lt_prog_compiler_pic_CXX='-KPIC'
13544	    ;;
13545	  *)
13546	    ;;
13547	esac
13548	;;
13549      vxworks*)
13550	;;
13551      *)
13552	lt_prog_compiler_can_build_shared_CXX=no
13553	;;
13554    esac
13555  fi
13556
13557case $host_os in
13558  # For platforms which do not support PIC, -DPIC is meaningless:
13559  *djgpp*)
13560    lt_prog_compiler_pic_CXX=
13561    ;;
13562  *)
13563    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13564    ;;
13565esac
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13567$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13568
13569
13570
13571#
13572# Check to make sure the PIC flag actually works.
13573#
13574if test -n "$lt_prog_compiler_pic_CXX"; then
13575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13576$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13577if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13578  $as_echo_n "(cached) " >&6
13579else
13580  lt_cv_prog_compiler_pic_works_CXX=no
13581   ac_outfile=conftest.$ac_objext
13582   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13583   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13584   # Insert the option either (1) after the last *FLAGS variable, or
13585   # (2) before a word containing "conftest.", or (3) at the end.
13586   # Note that $ac_compile itself does not contain backslashes and begins
13587   # with a dollar sign (not a hyphen), so the echo should work correctly.
13588   # The option is referenced via a variable to avoid confusing sed.
13589   lt_compile=`echo "$ac_compile" | $SED \
13590   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13591   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13592   -e 's:$: $lt_compiler_flag:'`
13593   (eval echo "\"\$as_me:13593: $lt_compile\"" >&5)
13594   (eval "$lt_compile" 2>conftest.err)
13595   ac_status=$?
13596   cat conftest.err >&5
13597   echo "$as_me:13597: \$? = $ac_status" >&5
13598   if (exit $ac_status) && test -s "$ac_outfile"; then
13599     # The compiler can only warn and ignore the option if not recognized
13600     # So say no if there are warnings other than the usual output.
13601     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13602     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13603     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13604       lt_cv_prog_compiler_pic_works_CXX=yes
13605     fi
13606   fi
13607   $RM conftest*
13608
13609fi
13610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13611$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13612
13613if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13614    case $lt_prog_compiler_pic_CXX in
13615     "" | " "*) ;;
13616     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13617     esac
13618else
13619    lt_prog_compiler_pic_CXX=
13620     lt_prog_compiler_can_build_shared_CXX=no
13621fi
13622
13623fi
13624
13625
13626
13627#
13628# Check to make sure the static flag actually works.
13629#
13630wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13632$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13633if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13634  $as_echo_n "(cached) " >&6
13635else
13636  lt_cv_prog_compiler_static_works_CXX=no
13637   save_LDFLAGS="$LDFLAGS"
13638   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13639   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13640   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13641     # The linker can only warn and ignore the option if not recognized
13642     # So say no if there are warnings
13643     if test -s conftest.err; then
13644       # Append any errors to the config.log.
13645       cat conftest.err 1>&5
13646       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13647       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13648       if diff conftest.exp conftest.er2 >/dev/null; then
13649         lt_cv_prog_compiler_static_works_CXX=yes
13650       fi
13651     else
13652       lt_cv_prog_compiler_static_works_CXX=yes
13653     fi
13654   fi
13655   $RM -r conftest*
13656   LDFLAGS="$save_LDFLAGS"
13657
13658fi
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13660$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13661
13662if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13663    :
13664else
13665    lt_prog_compiler_static_CXX=
13666fi
13667
13668
13669
13670
13671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13672$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13673if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13674  $as_echo_n "(cached) " >&6
13675else
13676  lt_cv_prog_compiler_c_o_CXX=no
13677   $RM -r conftest 2>/dev/null
13678   mkdir conftest
13679   cd conftest
13680   mkdir out
13681   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13682
13683   lt_compiler_flag="-o out/conftest2.$ac_objext"
13684   # Insert the option either (1) after the last *FLAGS variable, or
13685   # (2) before a word containing "conftest.", or (3) at the end.
13686   # Note that $ac_compile itself does not contain backslashes and begins
13687   # with a dollar sign (not a hyphen), so the echo should work correctly.
13688   lt_compile=`echo "$ac_compile" | $SED \
13689   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13690   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13691   -e 's:$: $lt_compiler_flag:'`
13692   (eval echo "\"\$as_me:13692: $lt_compile\"" >&5)
13693   (eval "$lt_compile" 2>out/conftest.err)
13694   ac_status=$?
13695   cat out/conftest.err >&5
13696   echo "$as_me:13696: \$? = $ac_status" >&5
13697   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13698   then
13699     # The compiler can only warn and ignore the option if not recognized
13700     # So say no if there are warnings
13701     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13702     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13703     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13704       lt_cv_prog_compiler_c_o_CXX=yes
13705     fi
13706   fi
13707   chmod u+w . 2>&5
13708   $RM conftest*
13709   # SGI C++ compiler will create directory out/ii_files/ for
13710   # template instantiation
13711   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13712   $RM out/* && rmdir out
13713   cd ..
13714   $RM -r conftest
13715   $RM conftest*
13716
13717fi
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13719$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13720
13721
13722
13723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13724$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13725if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13726  $as_echo_n "(cached) " >&6
13727else
13728  lt_cv_prog_compiler_c_o_CXX=no
13729   $RM -r conftest 2>/dev/null
13730   mkdir conftest
13731   cd conftest
13732   mkdir out
13733   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13734
13735   lt_compiler_flag="-o out/conftest2.$ac_objext"
13736   # Insert the option either (1) after the last *FLAGS variable, or
13737   # (2) before a word containing "conftest.", or (3) at the end.
13738   # Note that $ac_compile itself does not contain backslashes and begins
13739   # with a dollar sign (not a hyphen), so the echo should work correctly.
13740   lt_compile=`echo "$ac_compile" | $SED \
13741   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13742   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13743   -e 's:$: $lt_compiler_flag:'`
13744   (eval echo "\"\$as_me:13744: $lt_compile\"" >&5)
13745   (eval "$lt_compile" 2>out/conftest.err)
13746   ac_status=$?
13747   cat out/conftest.err >&5
13748   echo "$as_me:13748: \$? = $ac_status" >&5
13749   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13750   then
13751     # The compiler can only warn and ignore the option if not recognized
13752     # So say no if there are warnings
13753     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13754     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13755     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13756       lt_cv_prog_compiler_c_o_CXX=yes
13757     fi
13758   fi
13759   chmod u+w . 2>&5
13760   $RM conftest*
13761   # SGI C++ compiler will create directory out/ii_files/ for
13762   # template instantiation
13763   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13764   $RM out/* && rmdir out
13765   cd ..
13766   $RM -r conftest
13767   $RM conftest*
13768
13769fi
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13771$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13772
13773
13774
13775
13776hard_links="nottested"
13777if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13778  # do not overwrite the value of need_locks provided by the user
13779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13780$as_echo_n "checking if we can lock with hard links... " >&6; }
13781  hard_links=yes
13782  $RM conftest*
13783  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13784  touch conftest.a
13785  ln conftest.a conftest.b 2>&5 || hard_links=no
13786  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13788$as_echo "$hard_links" >&6; }
13789  if test "$hard_links" = no; then
13790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13791$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13792    need_locks=warn
13793  fi
13794else
13795  need_locks=no
13796fi
13797
13798
13799
13800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13801$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13802
13803  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13804  case $host_os in
13805  aix[4-9]*)
13806    # If we're using GNU nm, then we don't want the "-C" option.
13807    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13808    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13809      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13810    else
13811      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13812    fi
13813    ;;
13814  pw32*)
13815    export_symbols_cmds_CXX="$ltdll_cmds"
13816  ;;
13817  cygwin* | mingw* | cegcc*)
13818    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13819  ;;
13820  *)
13821    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13822  ;;
13823  esac
13824  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13825
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13827$as_echo "$ld_shlibs_CXX" >&6; }
13828test "$ld_shlibs_CXX" = no && can_build_shared=no
13829
13830with_gnu_ld_CXX=$with_gnu_ld
13831
13832
13833
13834
13835
13836
13837#
13838# Do we need to explicitly link libc?
13839#
13840case "x$archive_cmds_need_lc_CXX" in
13841x|xyes)
13842  # Assume -lc should be added
13843  archive_cmds_need_lc_CXX=yes
13844
13845  if test "$enable_shared" = yes && test "$GCC" = yes; then
13846    case $archive_cmds_CXX in
13847    *'~'*)
13848      # FIXME: we may have to deal with multi-command sequences.
13849      ;;
13850    '$CC '*)
13851      # Test whether the compiler implicitly links with -lc since on some
13852      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13853      # to ld, don't add -lc before -lgcc.
13854      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13855$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13856      $RM conftest*
13857      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13858
13859      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13860  (eval $ac_compile) 2>&5
13861  ac_status=$?
13862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13863  test $ac_status = 0; } 2>conftest.err; then
13864        soname=conftest
13865        lib=conftest
13866        libobjs=conftest.$ac_objext
13867        deplibs=
13868        wl=$lt_prog_compiler_wl_CXX
13869	pic_flag=$lt_prog_compiler_pic_CXX
13870        compiler_flags=-v
13871        linker_flags=-v
13872        verstring=
13873        output_objdir=.
13874        libname=conftest
13875        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13876        allow_undefined_flag_CXX=
13877        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13878  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13879  ac_status=$?
13880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13881  test $ac_status = 0; }
13882        then
13883	  archive_cmds_need_lc_CXX=no
13884        else
13885	  archive_cmds_need_lc_CXX=yes
13886        fi
13887        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13888      else
13889        cat conftest.err 1>&5
13890      fi
13891      $RM conftest*
13892      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13893$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13894      ;;
13895    esac
13896  fi
13897  ;;
13898esac
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13964$as_echo_n "checking dynamic linker characteristics... " >&6; }
13965
13966library_names_spec=
13967libname_spec='lib$name'
13968soname_spec=
13969shrext_cmds=".so"
13970postinstall_cmds=
13971postuninstall_cmds=
13972finish_cmds=
13973finish_eval=
13974shlibpath_var=
13975shlibpath_overrides_runpath=unknown
13976version_type=none
13977dynamic_linker="$host_os ld.so"
13978sys_lib_dlsearch_path_spec="/lib /usr/lib"
13979need_lib_prefix=unknown
13980hardcode_into_libs=no
13981
13982# when you set need_version to no, make sure it does not cause -set_version
13983# flags to be left without arguments
13984need_version=unknown
13985
13986case $host_os in
13987aix3*)
13988  version_type=linux
13989  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13990  shlibpath_var=LIBPATH
13991
13992  # AIX 3 has no versioning support, so we append a major version to the name.
13993  soname_spec='${libname}${release}${shared_ext}$major'
13994  ;;
13995
13996aix[4-9]*)
13997  version_type=linux
13998  need_lib_prefix=no
13999  need_version=no
14000  hardcode_into_libs=yes
14001  if test "$host_cpu" = ia64; then
14002    # AIX 5 supports IA64
14003    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14004    shlibpath_var=LD_LIBRARY_PATH
14005  else
14006    # With GCC up to 2.95.x, collect2 would create an import file
14007    # for dependence libraries.  The import file would start with
14008    # the line `#! .'.  This would cause the generated library to
14009    # depend on `.', always an invalid library.  This was fixed in
14010    # development snapshots of GCC prior to 3.0.
14011    case $host_os in
14012      aix4 | aix4.[01] | aix4.[01].*)
14013      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14014	   echo ' yes '
14015	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14016	:
14017      else
14018	can_build_shared=no
14019      fi
14020      ;;
14021    esac
14022    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14023    # soname into executable. Probably we can add versioning support to
14024    # collect2, so additional links can be useful in future.
14025    if test "$aix_use_runtimelinking" = yes; then
14026      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14027      # instead of lib<name>.a to let people know that these are not
14028      # typical AIX shared libraries.
14029      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14030    else
14031      # We preserve .a as extension for shared libraries through AIX4.2
14032      # and later when we are not doing run time linking.
14033      library_names_spec='${libname}${release}.a $libname.a'
14034      soname_spec='${libname}${release}${shared_ext}$major'
14035    fi
14036    shlibpath_var=LIBPATH
14037  fi
14038  ;;
14039
14040amigaos*)
14041  case $host_cpu in
14042  powerpc)
14043    # Since July 2007 AmigaOS4 officially supports .so libraries.
14044    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14045    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14046    ;;
14047  m68k)
14048    library_names_spec='$libname.ixlibrary $libname.a'
14049    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14050    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14051    ;;
14052  esac
14053  ;;
14054
14055beos*)
14056  library_names_spec='${libname}${shared_ext}'
14057  dynamic_linker="$host_os ld.so"
14058  shlibpath_var=LIBRARY_PATH
14059  ;;
14060
14061bsdi[45]*)
14062  version_type=linux
14063  need_version=no
14064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14065  soname_spec='${libname}${release}${shared_ext}$major'
14066  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14067  shlibpath_var=LD_LIBRARY_PATH
14068  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14069  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14070  # the default ld.so.conf also contains /usr/contrib/lib and
14071  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14072  # libtool to hard-code these into programs
14073  ;;
14074
14075cygwin* | mingw* | pw32* | cegcc*)
14076  version_type=windows
14077  shrext_cmds=".dll"
14078  need_version=no
14079  need_lib_prefix=no
14080
14081  case $GCC,$host_os in
14082  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14083    library_names_spec='$libname.dll.a'
14084    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14085    postinstall_cmds='base_file=`basename \${file}`~
14086      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14087      dldir=$destdir/`dirname \$dlpath`~
14088      test -d \$dldir || mkdir -p \$dldir~
14089      $install_prog $dir/$dlname \$dldir/$dlname~
14090      chmod a+x \$dldir/$dlname~
14091      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14092        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14093      fi'
14094    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14095      dlpath=$dir/\$dldll~
14096       $RM \$dlpath'
14097    shlibpath_overrides_runpath=yes
14098
14099    case $host_os in
14100    cygwin*)
14101      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14102      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14103      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14104      ;;
14105    mingw* | cegcc*)
14106      # MinGW DLLs use traditional 'lib' prefix
14107      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14108      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14109      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14110        # It is most probably a Windows format PATH printed by
14111        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14112        # path with ; separators, and with drive letters. We can handle the
14113        # drive letters (cygwin fileutils understands them), so leave them,
14114        # especially as we might pass files found there to a mingw objdump,
14115        # which wouldn't understand a cygwinified path. Ahh.
14116        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14117      else
14118        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14119      fi
14120      ;;
14121    pw32*)
14122      # pw32 DLLs use 'pw' prefix rather than 'lib'
14123      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14124      ;;
14125    esac
14126    ;;
14127
14128  *)
14129    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14130    ;;
14131  esac
14132  dynamic_linker='Win32 ld.exe'
14133  # FIXME: first we should search . and the directory the executable is in
14134  shlibpath_var=PATH
14135  ;;
14136
14137darwin* | rhapsody*)
14138  dynamic_linker="$host_os dyld"
14139  version_type=darwin
14140  need_lib_prefix=no
14141  need_version=no
14142  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14143  soname_spec='${libname}${release}${major}$shared_ext'
14144  shlibpath_overrides_runpath=yes
14145  shlibpath_var=DYLD_LIBRARY_PATH
14146  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14147
14148  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14149  ;;
14150
14151dgux*)
14152  version_type=linux
14153  need_lib_prefix=no
14154  need_version=no
14155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14156  soname_spec='${libname}${release}${shared_ext}$major'
14157  shlibpath_var=LD_LIBRARY_PATH
14158  ;;
14159
14160freebsd1*)
14161  dynamic_linker=no
14162  ;;
14163
14164freebsd* | dragonfly*)
14165  # DragonFly does not have aout.  When/if they implement a new
14166  # versioning mechanism, adjust this.
14167  if test -x /usr/bin/objformat; then
14168    objformat=`/usr/bin/objformat`
14169  else
14170    case $host_os in
14171    freebsd[123]*) objformat=aout ;;
14172    *) objformat=elf ;;
14173    esac
14174  fi
14175  version_type=freebsd-$objformat
14176  case $version_type in
14177    freebsd-elf*)
14178      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14179      need_version=no
14180      need_lib_prefix=no
14181      ;;
14182    freebsd-*)
14183      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14184      need_version=yes
14185      ;;
14186  esac
14187  shlibpath_var=LD_LIBRARY_PATH
14188  case $host_os in
14189  freebsd2*)
14190    shlibpath_overrides_runpath=yes
14191    ;;
14192  freebsd3.[01]* | freebsdelf3.[01]*)
14193    shlibpath_overrides_runpath=yes
14194    hardcode_into_libs=yes
14195    ;;
14196  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14197  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14198    shlibpath_overrides_runpath=no
14199    hardcode_into_libs=yes
14200    ;;
14201  *) # from 4.6 on, and DragonFly
14202    shlibpath_overrides_runpath=yes
14203    hardcode_into_libs=yes
14204    ;;
14205  esac
14206  ;;
14207
14208gnu*)
14209  version_type=linux
14210  need_lib_prefix=no
14211  need_version=no
14212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14213  soname_spec='${libname}${release}${shared_ext}$major'
14214  shlibpath_var=LD_LIBRARY_PATH
14215  hardcode_into_libs=yes
14216  ;;
14217
14218hpux9* | hpux10* | hpux11*)
14219  # Give a soname corresponding to the major version so that dld.sl refuses to
14220  # link against other versions.
14221  version_type=sunos
14222  need_lib_prefix=no
14223  need_version=no
14224  case $host_cpu in
14225  ia64*)
14226    shrext_cmds='.so'
14227    hardcode_into_libs=yes
14228    dynamic_linker="$host_os dld.so"
14229    shlibpath_var=LD_LIBRARY_PATH
14230    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14231    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14232    soname_spec='${libname}${release}${shared_ext}$major'
14233    if test "X$HPUX_IA64_MODE" = X32; then
14234      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14235    else
14236      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14237    fi
14238    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14239    ;;
14240  hppa*64*)
14241    shrext_cmds='.sl'
14242    hardcode_into_libs=yes
14243    dynamic_linker="$host_os dld.sl"
14244    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14245    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14246    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247    soname_spec='${libname}${release}${shared_ext}$major'
14248    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14249    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14250    ;;
14251  *)
14252    shrext_cmds='.sl'
14253    dynamic_linker="$host_os dld.sl"
14254    shlibpath_var=SHLIB_PATH
14255    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14256    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257    soname_spec='${libname}${release}${shared_ext}$major'
14258    ;;
14259  esac
14260  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14261  postinstall_cmds='chmod 555 $lib'
14262  ;;
14263
14264interix[3-9]*)
14265  version_type=linux
14266  need_lib_prefix=no
14267  need_version=no
14268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14269  soname_spec='${libname}${release}${shared_ext}$major'
14270  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14271  shlibpath_var=LD_LIBRARY_PATH
14272  shlibpath_overrides_runpath=no
14273  hardcode_into_libs=yes
14274  ;;
14275
14276irix5* | irix6* | nonstopux*)
14277  case $host_os in
14278    nonstopux*) version_type=nonstopux ;;
14279    *)
14280	if test "$lt_cv_prog_gnu_ld" = yes; then
14281		version_type=linux
14282	else
14283		version_type=irix
14284	fi ;;
14285  esac
14286  need_lib_prefix=no
14287  need_version=no
14288  soname_spec='${libname}${release}${shared_ext}$major'
14289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14290  case $host_os in
14291  irix5* | nonstopux*)
14292    libsuff= shlibsuff=
14293    ;;
14294  *)
14295    case $LD in # libtool.m4 will add one of these switches to LD
14296    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14297      libsuff= shlibsuff= libmagic=32-bit;;
14298    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14299      libsuff=32 shlibsuff=N32 libmagic=N32;;
14300    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14301      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14302    *) libsuff= shlibsuff= libmagic=never-match;;
14303    esac
14304    ;;
14305  esac
14306  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14307  shlibpath_overrides_runpath=no
14308  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14309  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14310  hardcode_into_libs=yes
14311  ;;
14312
14313# No shared lib support for Linux oldld, aout, or coff.
14314linux*oldld* | linux*aout* | linux*coff*)
14315  dynamic_linker=no
14316  ;;
14317
14318# This must be Linux ELF.
14319linux* | k*bsd*-gnu)
14320  version_type=linux
14321  need_lib_prefix=no
14322  need_version=no
14323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324  soname_spec='${libname}${release}${shared_ext}$major'
14325  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14326  shlibpath_var=LD_LIBRARY_PATH
14327  shlibpath_overrides_runpath=no
14328  # Some binutils ld are patched to set DT_RUNPATH
14329  save_LDFLAGS=$LDFLAGS
14330  save_libdir=$libdir
14331  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14332       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334/* end confdefs.h.  */
14335
14336int
14337main ()
14338{
14339
14340  ;
14341  return 0;
14342}
14343_ACEOF
14344if ac_fn_cxx_try_link "$LINENO"; then :
14345  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14346  shlibpath_overrides_runpath=yes
14347fi
14348fi
14349rm -f core conftest.err conftest.$ac_objext \
14350    conftest$ac_exeext conftest.$ac_ext
14351  LDFLAGS=$save_LDFLAGS
14352  libdir=$save_libdir
14353
14354  # This implies no fast_install, which is unacceptable.
14355  # Some rework will be needed to allow for fast_install
14356  # before this can be enabled.
14357  hardcode_into_libs=yes
14358
14359  # Append ld.so.conf contents to the search path
14360  if test -f /etc/ld.so.conf; then
14361    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;/^$/d' | tr '\n' ' '`
14362    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14363  fi
14364
14365  # We used to test for /lib/ld.so.1 and disable shared libraries on
14366  # powerpc, because MkLinux only supported shared libraries with the
14367  # GNU dynamic linker.  Since this was broken with cross compilers,
14368  # most powerpc-linux boxes support dynamic linking these days and
14369  # people can always --disable-shared, the test was removed, and we
14370  # assume the GNU/Linux dynamic linker is in use.
14371  dynamic_linker='GNU/Linux ld.so'
14372  ;;
14373
14374netbsd*)
14375  version_type=sunos
14376  need_lib_prefix=no
14377  need_version=no
14378  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14379    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14380    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14381    dynamic_linker='NetBSD (a.out) ld.so'
14382  else
14383    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14384    soname_spec='${libname}${release}${shared_ext}$major'
14385    dynamic_linker='NetBSD ld.elf_so'
14386  fi
14387  shlibpath_var=LD_LIBRARY_PATH
14388  shlibpath_overrides_runpath=yes
14389  hardcode_into_libs=yes
14390  ;;
14391
14392newsos6)
14393  version_type=linux
14394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395  shlibpath_var=LD_LIBRARY_PATH
14396  shlibpath_overrides_runpath=yes
14397  ;;
14398
14399*nto* | *qnx*)
14400  version_type=qnx
14401  need_lib_prefix=no
14402  need_version=no
14403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404  soname_spec='${libname}${release}${shared_ext}$major'
14405  shlibpath_var=LD_LIBRARY_PATH
14406  shlibpath_overrides_runpath=no
14407  hardcode_into_libs=yes
14408  dynamic_linker='ldqnx.so'
14409  ;;
14410
14411openbsd*)
14412  version_type=sunos
14413  sys_lib_dlsearch_path_spec="/usr/lib"
14414  need_lib_prefix=no
14415  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14416  case $host_os in
14417    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14418    *)				need_version=no  ;;
14419  esac
14420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14421  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14422  shlibpath_var=LD_LIBRARY_PATH
14423  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14424    case $host_os in
14425      openbsd2.[89] | openbsd2.[89].*)
14426	shlibpath_overrides_runpath=no
14427	;;
14428      *)
14429	shlibpath_overrides_runpath=yes
14430	;;
14431      esac
14432  else
14433    shlibpath_overrides_runpath=yes
14434  fi
14435  ;;
14436
14437os2*)
14438  libname_spec='$name'
14439  shrext_cmds=".dll"
14440  need_lib_prefix=no
14441  library_names_spec='$libname${shared_ext} $libname.a'
14442  dynamic_linker='OS/2 ld.exe'
14443  shlibpath_var=LIBPATH
14444  ;;
14445
14446osf3* | osf4* | osf5*)
14447  version_type=osf
14448  need_lib_prefix=no
14449  need_version=no
14450  soname_spec='${libname}${release}${shared_ext}$major'
14451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14452  shlibpath_var=LD_LIBRARY_PATH
14453  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14454  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14455  ;;
14456
14457rdos*)
14458  dynamic_linker=no
14459  ;;
14460
14461solaris*)
14462  version_type=linux
14463  need_lib_prefix=no
14464  need_version=no
14465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466  soname_spec='${libname}${release}${shared_ext}$major'
14467  shlibpath_var=LD_LIBRARY_PATH
14468  shlibpath_overrides_runpath=yes
14469  hardcode_into_libs=yes
14470  # ldd complains unless libraries are executable
14471  postinstall_cmds='chmod +x $lib'
14472  ;;
14473
14474sunos4*)
14475  version_type=sunos
14476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14477  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14478  shlibpath_var=LD_LIBRARY_PATH
14479  shlibpath_overrides_runpath=yes
14480  if test "$with_gnu_ld" = yes; then
14481    need_lib_prefix=no
14482  fi
14483  need_version=yes
14484  ;;
14485
14486sysv4 | sysv4.3*)
14487  version_type=linux
14488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489  soname_spec='${libname}${release}${shared_ext}$major'
14490  shlibpath_var=LD_LIBRARY_PATH
14491  case $host_vendor in
14492    sni)
14493      shlibpath_overrides_runpath=no
14494      need_lib_prefix=no
14495      runpath_var=LD_RUN_PATH
14496      ;;
14497    siemens)
14498      need_lib_prefix=no
14499      ;;
14500    motorola)
14501      need_lib_prefix=no
14502      need_version=no
14503      shlibpath_overrides_runpath=no
14504      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14505      ;;
14506  esac
14507  ;;
14508
14509sysv4*MP*)
14510  if test -d /usr/nec ;then
14511    version_type=linux
14512    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14513    soname_spec='$libname${shared_ext}.$major'
14514    shlibpath_var=LD_LIBRARY_PATH
14515  fi
14516  ;;
14517
14518sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14519  version_type=freebsd-elf
14520  need_lib_prefix=no
14521  need_version=no
14522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14523  soname_spec='${libname}${release}${shared_ext}$major'
14524  shlibpath_var=LD_LIBRARY_PATH
14525  shlibpath_overrides_runpath=yes
14526  hardcode_into_libs=yes
14527  if test "$with_gnu_ld" = yes; then
14528    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14529  else
14530    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14531    case $host_os in
14532      sco3.2v5*)
14533        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14534	;;
14535    esac
14536  fi
14537  sys_lib_dlsearch_path_spec='/usr/lib'
14538  ;;
14539
14540tpf*)
14541  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14542  version_type=linux
14543  need_lib_prefix=no
14544  need_version=no
14545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546  shlibpath_var=LD_LIBRARY_PATH
14547  shlibpath_overrides_runpath=no
14548  hardcode_into_libs=yes
14549  ;;
14550
14551uts4*)
14552  version_type=linux
14553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14554  soname_spec='${libname}${release}${shared_ext}$major'
14555  shlibpath_var=LD_LIBRARY_PATH
14556  ;;
14557
14558*)
14559  dynamic_linker=no
14560  ;;
14561esac
14562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14563$as_echo "$dynamic_linker" >&6; }
14564test "$dynamic_linker" = no && can_build_shared=no
14565
14566variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14567if test "$GCC" = yes; then
14568  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14569fi
14570
14571if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14572  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14573fi
14574if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14575  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14576fi
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14614$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14615hardcode_action_CXX=
14616if test -n "$hardcode_libdir_flag_spec_CXX" ||
14617   test -n "$runpath_var_CXX" ||
14618   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14619
14620  # We can hardcode non-existent directories.
14621  if test "$hardcode_direct_CXX" != no &&
14622     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14623     # have to relink, otherwise we might link with an installed library
14624     # when we should be linking with a yet-to-be-installed one
14625     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14626     test "$hardcode_minus_L_CXX" != no; then
14627    # Linking always hardcodes the temporary library directory.
14628    hardcode_action_CXX=relink
14629  else
14630    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14631    hardcode_action_CXX=immediate
14632  fi
14633else
14634  # We cannot hardcode anything, or else we can only hardcode existing
14635  # directories.
14636  hardcode_action_CXX=unsupported
14637fi
14638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14639$as_echo "$hardcode_action_CXX" >&6; }
14640
14641if test "$hardcode_action_CXX" = relink ||
14642   test "$inherit_rpath_CXX" = yes; then
14643  # Fast installation is not supported
14644  enable_fast_install=no
14645elif test "$shlibpath_overrides_runpath" = yes ||
14646     test "$enable_shared" = no; then
14647  # Fast installation is not necessary
14648  enable_fast_install=needless
14649fi
14650
14651
14652
14653
14654
14655
14656
14657  fi # test -n "$compiler"
14658
14659  CC=$lt_save_CC
14660  LDCXX=$LD
14661  LD=$lt_save_LD
14662  GCC=$lt_save_GCC
14663  with_gnu_ld=$lt_save_with_gnu_ld
14664  lt_cv_path_LDCXX=$lt_cv_path_LD
14665  lt_cv_path_LD=$lt_save_path_LD
14666  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14667  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14668fi # test "$_lt_caught_CXX_error" != yes
14669
14670ac_ext=c
14671ac_cpp='$CPP $CPPFLAGS'
14672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14674ac_compiler_gnu=$ac_cv_c_compiler_gnu
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688        ac_config_commands="$ac_config_commands libtool"
14689
14690
14691
14692
14693# Only expand once:
14694
14695
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14697$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14698set x ${MAKE-make}
14699ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14700if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14701  $as_echo_n "(cached) " >&6
14702else
14703  cat >conftest.make <<\_ACEOF
14704SHELL = /bin/sh
14705all:
14706	@echo '@@@%%%=$(MAKE)=@@@%%%'
14707_ACEOF
14708# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14709case `${MAKE-make} -f conftest.make 2>/dev/null` in
14710  *@@@%%%=?*=@@@%%%*)
14711    eval ac_cv_prog_make_${ac_make}_set=yes;;
14712  *)
14713    eval ac_cv_prog_make_${ac_make}_set=no;;
14714esac
14715rm -f conftest.make
14716fi
14717if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14719$as_echo "yes" >&6; }
14720  SET_MAKE=
14721else
14722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14723$as_echo "no" >&6; }
14724  SET_MAKE="MAKE=${MAKE-make}"
14725fi
14726
14727ac_ext=cpp
14728ac_cpp='$CXXCPP $CPPFLAGS'
14729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14732
14733
14734
14735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14736$as_echo_n "checking for ANSI C header files... " >&6; }
14737if test "${ac_cv_header_stdc+set}" = set; then :
14738  $as_echo_n "(cached) " >&6
14739else
14740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741/* end confdefs.h.  */
14742#include <stdlib.h>
14743#include <stdarg.h>
14744#include <string.h>
14745#include <float.h>
14746
14747int
14748main ()
14749{
14750
14751  ;
14752  return 0;
14753}
14754_ACEOF
14755if ac_fn_cxx_try_compile "$LINENO"; then :
14756  ac_cv_header_stdc=yes
14757else
14758  ac_cv_header_stdc=no
14759fi
14760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761
14762if test $ac_cv_header_stdc = yes; then
14763  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765/* end confdefs.h.  */
14766#include <string.h>
14767
14768_ACEOF
14769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14770  $EGREP "memchr" >/dev/null 2>&1; then :
14771
14772else
14773  ac_cv_header_stdc=no
14774fi
14775rm -f conftest*
14776
14777fi
14778
14779if test $ac_cv_header_stdc = yes; then
14780  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782/* end confdefs.h.  */
14783#include <stdlib.h>
14784
14785_ACEOF
14786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14787  $EGREP "free" >/dev/null 2>&1; then :
14788
14789else
14790  ac_cv_header_stdc=no
14791fi
14792rm -f conftest*
14793
14794fi
14795
14796if test $ac_cv_header_stdc = yes; then
14797  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14798  if test "$cross_compiling" = yes; then :
14799  :
14800else
14801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802/* end confdefs.h.  */
14803#include <ctype.h>
14804#include <stdlib.h>
14805#if ((' ' & 0x0FF) == 0x020)
14806# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14807# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14808#else
14809# define ISLOWER(c) \
14810		   (('a' <= (c) && (c) <= 'i') \
14811		     || ('j' <= (c) && (c) <= 'r') \
14812		     || ('s' <= (c) && (c) <= 'z'))
14813# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14814#endif
14815
14816#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14817int
14818main ()
14819{
14820  int i;
14821  for (i = 0; i < 256; i++)
14822    if (XOR (islower (i), ISLOWER (i))
14823	|| toupper (i) != TOUPPER (i))
14824      return 2;
14825  return 0;
14826}
14827_ACEOF
14828if ac_fn_cxx_try_run "$LINENO"; then :
14829
14830else
14831  ac_cv_header_stdc=no
14832fi
14833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14834  conftest.$ac_objext conftest.beam conftest.$ac_ext
14835fi
14836
14837fi
14838fi
14839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14840$as_echo "$ac_cv_header_stdc" >&6; }
14841if test $ac_cv_header_stdc = yes; then
14842
14843$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14844
14845fi
14846
14847
14848CXXFLAGS="$CXXFLAGS -Wall -Wno-unused -DGUICHAN_BUILD"
14849
14850
14851
14852NoOpenGL()
14853{
14854  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenGL support skipped when OpenGL not found." >&5
14855$as_echo "$as_me: WARNING: OpenGL support skipped when OpenGL not found." >&2;}
14856  OPENGL="no"
14857}
14858
14859HaveOpenGL()
14860{
14861  OPENGL="yes"
14862  GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS opengl"
14863}
14864
14865ForceOpenGL()
14866{
14867  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenGL support forced." >&5
14868$as_echo "$as_me: WARNING: OpenGL support forced." >&2;}
14869  OPENGL="forced"
14870  GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS opengl"
14871}
14872
14873
14874
14875
14876NoSDLImage()
14877{
14878  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL_image support skipped when SDL_image not found." >&5
14879$as_echo "$as_me: WARNING: SDL_image support skipped when SDL_image not found." >&2;}
14880  SDLIMAGE="no"
14881}
14882
14883HaveSDLImage()
14884{
14885  SDLIMAGE="yes"
14886  SDL_LIBS="$SDL_LIBS -lSDL_image"
14887  CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
14888}
14889
14890ForceSDLImage()
14891{
14892  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL Image support forced." >&5
14893$as_echo "$as_me: WARNING: SDL Image support forced." >&2;}
14894  SDLIMAGE="forced"
14895}
14896
14897HaveSDL()
14898{
14899  GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS sdl"
14900}
14901
14902ForceSDL()
14903{
14904  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support forced." >&5
14905$as_echo "$as_me: WARNING: SDL support forced." >&2;}
14906  GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS sdl"
14907}
14908
14909NoAllegro()
14910{
14911  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Allegro support skipped when Allegro not found." >&5
14912$as_echo "$as_me: WARNING: Allegro support skipped when Allegro not found." >&2;}
14913}
14914
14915HaveAllegro()
14916{
14917  ALLEGRO="yes"
14918  GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS allegro"
14919}
14920
14921ForceAllegro()
14922{
14923  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Allegro support forced." >&5
14924$as_echo "$as_me: WARNING: Allegro support forced." >&2;}
14925  ALLEGRO="forced"
14926  GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS allegro"
14927}
14928
14929
14930# Check whether --enable-opengl was given.
14931if test "${enable_opengl+set}" = set; then :
14932  enableval=$enable_opengl;
14933else
14934  enable_opengl=yes
14935fi
14936
14937# Check whether --enable-force_opengl was given.
14938if test "${enable_force_opengl+set}" = set; then :
14939  enableval=$enable_force_opengl;
14940else
14941  enable_force_opengl=no
14942fi
14943
14944if test x$enable_opengl = xyes; then
14945  if test x$enable_force_opengl = xno; then
14946    for ac_header in GL/gl.h
14947do :
14948  ac_fn_cxx_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
14949if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
14950  cat >>confdefs.h <<_ACEOF
14951#define HAVE_GL_GL_H 1
14952_ACEOF
14953
14954fi
14955
14956done
14957
14958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
14959$as_echo_n "checking for glBegin in -lGL... " >&6; }
14960if test "${ac_cv_lib_GL_glBegin+set}" = set; then :
14961  $as_echo_n "(cached) " >&6
14962else
14963  ac_check_lib_save_LIBS=$LIBS
14964LIBS="-lGL  $LIBS"
14965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h.  */
14967
14968/* Override any GCC internal prototype to avoid an error.
14969   Use char because int might match the return type of a GCC
14970   builtin and then its argument prototype would still apply.  */
14971#ifdef __cplusplus
14972extern "C"
14973#endif
14974char glBegin ();
14975int
14976main ()
14977{
14978return glBegin ();
14979  ;
14980  return 0;
14981}
14982_ACEOF
14983if ac_fn_cxx_try_link "$LINENO"; then :
14984  ac_cv_lib_GL_glBegin=yes
14985else
14986  ac_cv_lib_GL_glBegin=no
14987fi
14988rm -f core conftest.err conftest.$ac_objext \
14989    conftest$ac_exeext conftest.$ac_ext
14990LIBS=$ac_check_lib_save_LIBS
14991fi
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
14993$as_echo "$ac_cv_lib_GL_glBegin" >&6; }
14994if test "x$ac_cv_lib_GL_glBegin" = x""yes; then :
14995  HaveOpenGL
14996else
14997  NoOpenGL
14998fi
14999
15000  else
15001    ForceOpenGL
15002  fi
15003fi
15004
15005
15006# Check whether --enable-sdlimage was given.
15007if test "${enable_sdlimage+set}" = set; then :
15008  enableval=$enable_sdlimage;
15009else
15010  enable_sdlimage=yes
15011fi
15012
15013# Check whether --enable-force_sdlimage was given.
15014if test "${enable_force_sdlimage+set}" = set; then :
15015  enableval=$enable_force_sdlimage;
15016else
15017  enable_force_sdlimage=no
15018fi
15019
15020if test x$enable_sdlimage = xyes; then
15021  if test x$enable_force_sdlimage = xno; then
15022    for ac_header in SDL/SDL_image.h
15023do :
15024  ac_fn_cxx_check_header_mongrel "$LINENO" "SDL/SDL_image.h" "ac_cv_header_SDL_SDL_image_h" "$ac_includes_default"
15025if test "x$ac_cv_header_SDL_SDL_image_h" = x""yes; then :
15026  cat >>confdefs.h <<_ACEOF
15027#define HAVE_SDL_SDL_IMAGE_H 1
15028_ACEOF
15029
15030fi
15031
15032done
15033
15034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
15035$as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
15036if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
15037  $as_echo_n "(cached) " >&6
15038else
15039  ac_check_lib_save_LIBS=$LIBS
15040LIBS="-lSDL_image  $LIBS"
15041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042/* end confdefs.h.  */
15043
15044/* Override any GCC internal prototype to avoid an error.
15045   Use char because int might match the return type of a GCC
15046   builtin and then its argument prototype would still apply.  */
15047#ifdef __cplusplus
15048extern "C"
15049#endif
15050char IMG_Load ();
15051int
15052main ()
15053{
15054return IMG_Load ();
15055  ;
15056  return 0;
15057}
15058_ACEOF
15059if ac_fn_cxx_try_link "$LINENO"; then :
15060  ac_cv_lib_SDL_image_IMG_Load=yes
15061else
15062  ac_cv_lib_SDL_image_IMG_Load=no
15063fi
15064rm -f core conftest.err conftest.$ac_objext \
15065    conftest$ac_exeext conftest.$ac_ext
15066LIBS=$ac_check_lib_save_LIBS
15067fi
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
15069$as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
15070if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
15071  HaveSDLImage
15072else
15073  NoSDLImage
15074fi
15075
15076  else
15077    ForceSDLImage
15078  fi
15079fi
15080
15081# Check whether --enable-allegro was given.
15082if test "${enable_allegro+set}" = set; then :
15083  enableval=$enable_allegro;
15084else
15085  enable_allegro=yes
15086fi
15087
15088# Check whether --enable-force_allegro was given.
15089if test "${enable_force_allegro+set}" = set; then :
15090  enableval=$enable_force_allegro;
15091else
15092  enable_force_allegro=no
15093fi
15094
15095if test x$enable_allegro = xyes; then
15096  if test x$enable_force_allegro = xno; then
15097    for ac_header in allegro.h
15098do :
15099  ac_fn_cxx_check_header_mongrel "$LINENO" "allegro.h" "ac_cv_header_allegro_h" "$ac_includes_default"
15100if test "x$ac_cv_header_allegro_h" = x""yes; then :
15101  cat >>confdefs.h <<_ACEOF
15102#define HAVE_ALLEGRO_H 1
15103_ACEOF
15104
15105fi
15106
15107done
15108
15109    # Extract the first word of "allegro-config", so it can be a program name with args.
15110set dummy allegro-config; ac_word=$2
15111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15112$as_echo_n "checking for $ac_word... " >&6; }
15113if test "${ac_cv_prog_HAVE_ALLEGRO+set}" = set; then :
15114  $as_echo_n "(cached) " >&6
15115else
15116  if test -n "$HAVE_ALLEGRO"; then
15117  ac_cv_prog_HAVE_ALLEGRO="$HAVE_ALLEGRO" # Let the user override the test.
15118else
15119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120for as_dir in $PATH
15121do
15122  IFS=$as_save_IFS
15123  test -z "$as_dir" && as_dir=.
15124    for ac_exec_ext in '' $ac_executable_extensions; do
15125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15126    ac_cv_prog_HAVE_ALLEGRO="yes"
15127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15128    break 2
15129  fi
15130done
15131  done
15132IFS=$as_save_IFS
15133
15134fi
15135fi
15136HAVE_ALLEGRO=$ac_cv_prog_HAVE_ALLEGRO
15137if test -n "$HAVE_ALLEGRO"; then
15138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALLEGRO" >&5
15139$as_echo "$HAVE_ALLEGRO" >&6; }
15140else
15141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142$as_echo "no" >&6; }
15143fi
15144
15145
15146    if test "x$HAVE_ALLEGRO" != "xyes"; then
15147      NoAllegro
15148    else
15149      HaveAllegro
15150    fi
15151  else
15152    ForceAllegro
15153  fi
15154fi
15155
15156# Check whether --enable-sdl was given.
15157if test "${enable_sdl+set}" = set; then :
15158  enableval=$enable_sdl;
15159else
15160  enable_sdl=yes
15161fi
15162
15163# Check whether --enable-force_sdl was given.
15164if test "${enable_force_sdl+set}" = set; then :
15165  enableval=$enable_force_sdl;
15166else
15167  enable_force_sdl=no
15168fi
15169
15170if test x$enable_sdl = xyes; then
15171  if test x$enable_force_sdl = xno; then
15172    for ac_header in SDL/SDL.h
15173do :
15174  ac_fn_cxx_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
15175if test "x$ac_cv_header_SDL_SDL_h" = x""yes; then :
15176  cat >>confdefs.h <<_ACEOF
15177#define HAVE_SDL_SDL_H 1
15178_ACEOF
15179
15180fi
15181
15182done
15183
15184    # Extract the first word of "sdl-config", so it can be a program name with args.
15185set dummy sdl-config; ac_word=$2
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15187$as_echo_n "checking for $ac_word... " >&6; }
15188if test "${ac_cv_prog_HAVE_SDL+set}" = set; then :
15189  $as_echo_n "(cached) " >&6
15190else
15191  if test -n "$HAVE_SDL"; then
15192  ac_cv_prog_HAVE_SDL="$HAVE_SDL" # Let the user override the test.
15193else
15194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195for as_dir in $PATH
15196do
15197  IFS=$as_save_IFS
15198  test -z "$as_dir" && as_dir=.
15199    for ac_exec_ext in '' $ac_executable_extensions; do
15200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15201    ac_cv_prog_HAVE_SDL="yes"
15202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15203    break 2
15204  fi
15205done
15206  done
15207IFS=$as_save_IFS
15208
15209fi
15210fi
15211HAVE_SDL=$ac_cv_prog_HAVE_SDL
15212if test -n "$HAVE_SDL"; then
15213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL" >&5
15214$as_echo "$HAVE_SDL" >&6; }
15215else
15216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15217$as_echo "no" >&6; }
15218fi
15219
15220
15221    if test "x$HAVE_SDL" != "xyes"; then
15222      SDL="no"
15223    else
15224      SDL="yes"
15225    fi
15226  else
15227    SDL="forced"
15228    ForceSDL
15229  fi
15230fi
15231
15232if test $SDL = "yes"; then
15233  if test $SDLIMAGE = "no"; then
15234    SDL="no"
15235    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support skipped when SDL_image not found." >&5
15236$as_echo "$as_me: WARNING: SDL support skipped when SDL_image not found." >&2;}
15237  else
15238    HaveSDL
15239  fi
15240else
15241  SDL="no"
15242  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support skipped when SDL not found." >&5
15243$as_echo "$as_me: WARNING: SDL support skipped when SDL not found." >&2;}
15244fi
15245
15246
15247
15248ac_config_files="$ac_config_files Makefile guichan-0.8.pc examples/Makefile include/Makefile include/guichan/Makefile include/guichan/allegro/Makefile include/guichan/contrib/Makefile include/guichan/contrib/allegro/Makefile include/guichan/contrib/opengl/Makefile include/guichan/contrib/sdl/Makefile include/guichan/contrib/widgets/Makefile include/guichan/hge/Makefile include/guichan/opengl/Makefile include/guichan/openlayer/Makefile include/guichan/sdl/Makefile include/guichan/widgets/Makefile src/Makefile src/allegro/Makefile src/contrib/Makefile src/contrib/allegro/Makefile src/contrib/opengl/Makefile src/contrib/sdl/Makefile src/contrib/widgets/Makefile src/hge/Makefile src/opengl/Makefile src/opengl/guichan_opengl-0.8.pc src/openlayer/Makefile src/sdl/Makefile src/sdl/guichan_sdl-0.8.pc src/widgets/Makefile"
15249
15250cat >confcache <<\_ACEOF
15251# This file is a shell script that caches the results of configure
15252# tests run on this system so they can be shared between configure
15253# scripts and configure runs, see configure's option --config-cache.
15254# It is not useful on other systems.  If it contains results you don't
15255# want to keep, you may remove or edit it.
15256#
15257# config.status only pays attention to the cache file if you give it
15258# the --recheck option to rerun configure.
15259#
15260# `ac_cv_env_foo' variables (set or unset) will be overridden when
15261# loading this file, other *unset* `ac_cv_foo' will be assigned the
15262# following values.
15263
15264_ACEOF
15265
15266# The following way of writing the cache mishandles newlines in values,
15267# but we know of no workaround that is simple, portable, and efficient.
15268# So, we kill variables containing newlines.
15269# Ultrix sh set writes to stderr and can't be redirected directly,
15270# and sets the high bit in the cache file unless we assign to the vars.
15271(
15272  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15273    eval ac_val=\$$ac_var
15274    case $ac_val in #(
15275    *${as_nl}*)
15276      case $ac_var in #(
15277      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15278$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15279      esac
15280      case $ac_var in #(
15281      _ | IFS | as_nl) ;; #(
15282      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15283      *) { eval $ac_var=; unset $ac_var;} ;;
15284      esac ;;
15285    esac
15286  done
15287
15288  (set) 2>&1 |
15289    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15290    *${as_nl}ac_space=\ *)
15291      # `set' does not quote correctly, so add quotes: double-quote
15292      # substitution turns \\\\ into \\, and sed turns \\ into \.
15293      sed -n \
15294	"s/'/'\\\\''/g;
15295	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15296      ;; #(
15297    *)
15298      # `set' quotes correctly as required by POSIX, so do not add quotes.
15299      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15300      ;;
15301    esac |
15302    sort
15303) |
15304  sed '
15305     /^ac_cv_env_/b end
15306     t clear
15307     :clear
15308     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15309     t end
15310     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15311     :end' >>confcache
15312if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15313  if test -w "$cache_file"; then
15314    test "x$cache_file" != "x/dev/null" &&
15315      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15316$as_echo "$as_me: updating cache $cache_file" >&6;}
15317    cat confcache >$cache_file
15318  else
15319    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15320$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15321  fi
15322fi
15323rm -f confcache
15324
15325test "x$prefix" = xNONE && prefix=$ac_default_prefix
15326# Let make expand exec_prefix.
15327test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15328
15329DEFS=-DHAVE_CONFIG_H
15330
15331ac_libobjs=
15332ac_ltlibobjs=
15333for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15334  # 1. Remove the extension, and $U if already installed.
15335  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15336  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15337  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15338  #    will be set to the directory where LIBOBJS objects are built.
15339  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15340  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15341done
15342LIBOBJS=$ac_libobjs
15343
15344LTLIBOBJS=$ac_ltlibobjs
15345
15346
15347 if test -n "$EXEEXT"; then
15348  am__EXEEXT_TRUE=
15349  am__EXEEXT_FALSE='#'
15350else
15351  am__EXEEXT_TRUE='#'
15352  am__EXEEXT_FALSE=
15353fi
15354
15355if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15356  as_fn_error "conditional \"AMDEP\" was never defined.
15357Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358fi
15359if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15360  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15361Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362fi
15363if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15364  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15365Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366fi
15367if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15368  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15369Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370fi
15371
15372: ${CONFIG_STATUS=./config.status}
15373ac_write_fail=0
15374ac_clean_files_save=$ac_clean_files
15375ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15376{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15377$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15378as_write_fail=0
15379cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15380#! $SHELL
15381# Generated by $as_me.
15382# Run this file to recreate the current configuration.
15383# Compiler output produced by configure, useful for debugging
15384# configure, is in config.log if it exists.
15385
15386debug=false
15387ac_cs_recheck=false
15388ac_cs_silent=false
15389
15390SHELL=\${CONFIG_SHELL-$SHELL}
15391export SHELL
15392_ASEOF
15393cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15394## -------------------- ##
15395## M4sh Initialization. ##
15396## -------------------- ##
15397
15398# Be more Bourne compatible
15399DUALCASE=1; export DUALCASE # for MKS sh
15400if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15401  emulate sh
15402  NULLCMD=:
15403  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15404  # is contrary to our usage.  Disable this feature.
15405  alias -g '${1+"$@"}'='"$@"'
15406  setopt NO_GLOB_SUBST
15407else
15408  case `(set -o) 2>/dev/null` in #(
15409  *posix*) :
15410    set -o posix ;; #(
15411  *) :
15412     ;;
15413esac
15414fi
15415
15416
15417as_nl='
15418'
15419export as_nl
15420# Printing a long string crashes Solaris 7 /usr/bin/printf.
15421as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15422as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15423as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15424# Prefer a ksh shell builtin over an external printf program on Solaris,
15425# but without wasting forks for bash or zsh.
15426if test -z "$BASH_VERSION$ZSH_VERSION" \
15427    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15428  as_echo='print -r --'
15429  as_echo_n='print -rn --'
15430elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15431  as_echo='printf %s\n'
15432  as_echo_n='printf %s'
15433else
15434  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15435    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15436    as_echo_n='/usr/ucb/echo -n'
15437  else
15438    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15439    as_echo_n_body='eval
15440      arg=$1;
15441      case $arg in #(
15442      *"$as_nl"*)
15443	expr "X$arg" : "X\\(.*\\)$as_nl";
15444	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15445      esac;
15446      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15447    '
15448    export as_echo_n_body
15449    as_echo_n='sh -c $as_echo_n_body as_echo'
15450  fi
15451  export as_echo_body
15452  as_echo='sh -c $as_echo_body as_echo'
15453fi
15454
15455# The user is always right.
15456if test "${PATH_SEPARATOR+set}" != set; then
15457  PATH_SEPARATOR=:
15458  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15459    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15460      PATH_SEPARATOR=';'
15461  }
15462fi
15463
15464
15465# IFS
15466# We need space, tab and new line, in precisely that order.  Quoting is
15467# there to prevent editors from complaining about space-tab.
15468# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15469# splitting by setting IFS to empty value.)
15470IFS=" ""	$as_nl"
15471
15472# Find who we are.  Look in the path if we contain no directory separator.
15473case $0 in #((
15474  *[\\/]* ) as_myself=$0 ;;
15475  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15476for as_dir in $PATH
15477do
15478  IFS=$as_save_IFS
15479  test -z "$as_dir" && as_dir=.
15480    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15481  done
15482IFS=$as_save_IFS
15483
15484     ;;
15485esac
15486# We did not find ourselves, most probably we were run as `sh COMMAND'
15487# in which case we are not to be found in the path.
15488if test "x$as_myself" = x; then
15489  as_myself=$0
15490fi
15491if test ! -f "$as_myself"; then
15492  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15493  exit 1
15494fi
15495
15496# Unset variables that we do not need and which cause bugs (e.g. in
15497# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15498# suppresses any "Segmentation fault" message there.  '((' could
15499# trigger a bug in pdksh 5.2.14.
15500for as_var in BASH_ENV ENV MAIL MAILPATH
15501do eval test x\${$as_var+set} = xset \
15502  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15503done
15504PS1='$ '
15505PS2='> '
15506PS4='+ '
15507
15508# NLS nuisances.
15509LC_ALL=C
15510export LC_ALL
15511LANGUAGE=C
15512export LANGUAGE
15513
15514# CDPATH.
15515(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15516
15517
15518# as_fn_error ERROR [LINENO LOG_FD]
15519# ---------------------------------
15520# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15521# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15522# script with status $?, using 1 if that was 0.
15523as_fn_error ()
15524{
15525  as_status=$?; test $as_status -eq 0 && as_status=1
15526  if test "$3"; then
15527    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15528    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15529  fi
15530  $as_echo "$as_me: error: $1" >&2
15531  as_fn_exit $as_status
15532} # as_fn_error
15533
15534
15535# as_fn_set_status STATUS
15536# -----------------------
15537# Set $? to STATUS, without forking.
15538as_fn_set_status ()
15539{
15540  return $1
15541} # as_fn_set_status
15542
15543# as_fn_exit STATUS
15544# -----------------
15545# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15546as_fn_exit ()
15547{
15548  set +e
15549  as_fn_set_status $1
15550  exit $1
15551} # as_fn_exit
15552
15553# as_fn_unset VAR
15554# ---------------
15555# Portably unset VAR.
15556as_fn_unset ()
15557{
15558  { eval $1=; unset $1;}
15559}
15560as_unset=as_fn_unset
15561# as_fn_append VAR VALUE
15562# ----------------------
15563# Append the text in VALUE to the end of the definition contained in VAR. Take
15564# advantage of any shell optimizations that allow amortized linear growth over
15565# repeated appends, instead of the typical quadratic growth present in naive
15566# implementations.
15567if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15568  eval 'as_fn_append ()
15569  {
15570    eval $1+=\$2
15571  }'
15572else
15573  as_fn_append ()
15574  {
15575    eval $1=\$$1\$2
15576  }
15577fi # as_fn_append
15578
15579# as_fn_arith ARG...
15580# ------------------
15581# Perform arithmetic evaluation on the ARGs, and store the result in the
15582# global $as_val. Take advantage of shells that can avoid forks. The arguments
15583# must be portable across $(()) and expr.
15584if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15585  eval 'as_fn_arith ()
15586  {
15587    as_val=$(( $* ))
15588  }'
15589else
15590  as_fn_arith ()
15591  {
15592    as_val=`expr "$@" || test $? -eq 1`
15593  }
15594fi # as_fn_arith
15595
15596
15597if expr a : '\(a\)' >/dev/null 2>&1 &&
15598   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15599  as_expr=expr
15600else
15601  as_expr=false
15602fi
15603
15604if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15605  as_basename=basename
15606else
15607  as_basename=false
15608fi
15609
15610if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15611  as_dirname=dirname
15612else
15613  as_dirname=false
15614fi
15615
15616as_me=`$as_basename -- "$0" ||
15617$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15618	 X"$0" : 'X\(//\)$' \| \
15619	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15620$as_echo X/"$0" |
15621    sed '/^.*\/\([^/][^/]*\)\/*$/{
15622	    s//\1/
15623	    q
15624	  }
15625	  /^X\/\(\/\/\)$/{
15626	    s//\1/
15627	    q
15628	  }
15629	  /^X\/\(\/\).*/{
15630	    s//\1/
15631	    q
15632	  }
15633	  s/.*/./; q'`
15634
15635# Avoid depending upon Character Ranges.
15636as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15637as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15638as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15639as_cr_digits='0123456789'
15640as_cr_alnum=$as_cr_Letters$as_cr_digits
15641
15642ECHO_C= ECHO_N= ECHO_T=
15643case `echo -n x` in #(((((
15644-n*)
15645  case `echo 'xy\c'` in
15646  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15647  xy)  ECHO_C='\c';;
15648  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15649       ECHO_T='	';;
15650  esac;;
15651*)
15652  ECHO_N='-n';;
15653esac
15654
15655rm -f conf$$ conf$$.exe conf$$.file
15656if test -d conf$$.dir; then
15657  rm -f conf$$.dir/conf$$.file
15658else
15659  rm -f conf$$.dir
15660  mkdir conf$$.dir 2>/dev/null
15661fi
15662if (echo >conf$$.file) 2>/dev/null; then
15663  if ln -s conf$$.file conf$$ 2>/dev/null; then
15664    as_ln_s='ln -s'
15665    # ... but there are two gotchas:
15666    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15667    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15668    # In both cases, we have to default to `cp -p'.
15669    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15670      as_ln_s='cp -p'
15671  elif ln conf$$.file conf$$ 2>/dev/null; then
15672    as_ln_s=ln
15673  else
15674    as_ln_s='cp -p'
15675  fi
15676else
15677  as_ln_s='cp -p'
15678fi
15679rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15680rmdir conf$$.dir 2>/dev/null
15681
15682
15683# as_fn_mkdir_p
15684# -------------
15685# Create "$as_dir" as a directory, including parents if necessary.
15686as_fn_mkdir_p ()
15687{
15688
15689  case $as_dir in #(
15690  -*) as_dir=./$as_dir;;
15691  esac
15692  test -d "$as_dir" || eval $as_mkdir_p || {
15693    as_dirs=
15694    while :; do
15695      case $as_dir in #(
15696      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15697      *) as_qdir=$as_dir;;
15698      esac
15699      as_dirs="'$as_qdir' $as_dirs"
15700      as_dir=`$as_dirname -- "$as_dir" ||
15701$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15702	 X"$as_dir" : 'X\(//\)[^/]' \| \
15703	 X"$as_dir" : 'X\(//\)$' \| \
15704	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15705$as_echo X"$as_dir" |
15706    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15707	    s//\1/
15708	    q
15709	  }
15710	  /^X\(\/\/\)[^/].*/{
15711	    s//\1/
15712	    q
15713	  }
15714	  /^X\(\/\/\)$/{
15715	    s//\1/
15716	    q
15717	  }
15718	  /^X\(\/\).*/{
15719	    s//\1/
15720	    q
15721	  }
15722	  s/.*/./; q'`
15723      test -d "$as_dir" && break
15724    done
15725    test -z "$as_dirs" || eval "mkdir $as_dirs"
15726  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15727
15728
15729} # as_fn_mkdir_p
15730if mkdir -p . 2>/dev/null; then
15731  as_mkdir_p='mkdir -p "$as_dir"'
15732else
15733  test -d ./-p && rmdir ./-p
15734  as_mkdir_p=false
15735fi
15736
15737if test -x / >/dev/null 2>&1; then
15738  as_test_x='test -x'
15739else
15740  if ls -dL / >/dev/null 2>&1; then
15741    as_ls_L_option=L
15742  else
15743    as_ls_L_option=
15744  fi
15745  as_test_x='
15746    eval sh -c '\''
15747      if test -d "$1"; then
15748	test -d "$1/.";
15749      else
15750	case $1 in #(
15751	-*)set "./$1";;
15752	esac;
15753	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15754	???[sx]*):;;*)false;;esac;fi
15755    '\'' sh
15756  '
15757fi
15758as_executable_p=$as_test_x
15759
15760# Sed expression to map a string onto a valid CPP name.
15761as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15762
15763# Sed expression to map a string onto a valid variable name.
15764as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15765
15766
15767exec 6>&1
15768## ----------------------------------- ##
15769## Main body of $CONFIG_STATUS script. ##
15770## ----------------------------------- ##
15771_ASEOF
15772test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15773
15774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15775# Save the log message, to keep $0 and so on meaningful, and to
15776# report actual input values of CONFIG_FILES etc. instead of their
15777# values after options handling.
15778ac_log="
15779This file was extended by guichan $as_me 0.8.2, which was
15780generated by GNU Autoconf 2.64.  Invocation command line was
15781
15782  CONFIG_FILES    = $CONFIG_FILES
15783  CONFIG_HEADERS  = $CONFIG_HEADERS
15784  CONFIG_LINKS    = $CONFIG_LINKS
15785  CONFIG_COMMANDS = $CONFIG_COMMANDS
15786  $ $0 $@
15787
15788on `(hostname || uname -n) 2>/dev/null | sed 1q`
15789"
15790
15791_ACEOF
15792
15793case $ac_config_files in *"
15794"*) set x $ac_config_files; shift; ac_config_files=$*;;
15795esac
15796
15797case $ac_config_headers in *"
15798"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15799esac
15800
15801
15802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15803# Files that config.status was made for.
15804config_files="$ac_config_files"
15805config_headers="$ac_config_headers"
15806config_commands="$ac_config_commands"
15807
15808_ACEOF
15809
15810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811ac_cs_usage="\
15812\`$as_me' instantiates files and other configuration actions
15813from templates according to the current configuration.  Unless the files
15814and actions are specified as TAGs, all are instantiated by default.
15815
15816Usage: $0 [OPTION]... [TAG]...
15817
15818  -h, --help       print this help, then exit
15819  -V, --version    print version number and configuration settings, then exit
15820  -q, --quiet, --silent
15821                   do not print progress messages
15822  -d, --debug      don't remove temporary files
15823      --recheck    update $as_me by reconfiguring in the same conditions
15824      --file=FILE[:TEMPLATE]
15825                   instantiate the configuration file FILE
15826      --header=FILE[:TEMPLATE]
15827                   instantiate the configuration header FILE
15828
15829Configuration files:
15830$config_files
15831
15832Configuration headers:
15833$config_headers
15834
15835Configuration commands:
15836$config_commands
15837
15838Report bugs to <olof.naessen@gmail.com>."
15839
15840_ACEOF
15841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15842ac_cs_version="\\
15843guichan config.status 0.8.2
15844configured by $0, generated by GNU Autoconf 2.64,
15845  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15846
15847Copyright (C) 2009 Free Software Foundation, Inc.
15848This config.status script is free software; the Free Software Foundation
15849gives unlimited permission to copy, distribute and modify it."
15850
15851ac_pwd='$ac_pwd'
15852srcdir='$srcdir'
15853INSTALL='$INSTALL'
15854MKDIR_P='$MKDIR_P'
15855AWK='$AWK'
15856test -n "\$AWK" || AWK=awk
15857_ACEOF
15858
15859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15860# The default lists apply if the user does not specify any file.
15861ac_need_defaults=:
15862while test $# != 0
15863do
15864  case $1 in
15865  --*=*)
15866    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15867    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15868    ac_shift=:
15869    ;;
15870  *)
15871    ac_option=$1
15872    ac_optarg=$2
15873    ac_shift=shift
15874    ;;
15875  esac
15876
15877  case $ac_option in
15878  # Handling of the options.
15879  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15880    ac_cs_recheck=: ;;
15881  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15882    $as_echo "$ac_cs_version"; exit ;;
15883  --debug | --debu | --deb | --de | --d | -d )
15884    debug=: ;;
15885  --file | --fil | --fi | --f )
15886    $ac_shift
15887    case $ac_optarg in
15888    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15889    esac
15890    as_fn_append CONFIG_FILES " '$ac_optarg'"
15891    ac_need_defaults=false;;
15892  --header | --heade | --head | --hea )
15893    $ac_shift
15894    case $ac_optarg in
15895    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15896    esac
15897    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15898    ac_need_defaults=false;;
15899  --he | --h)
15900    # Conflict between --help and --header
15901    as_fn_error "ambiguous option: \`$1'
15902Try \`$0 --help' for more information.";;
15903  --help | --hel | -h )
15904    $as_echo "$ac_cs_usage"; exit ;;
15905  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15906  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15907    ac_cs_silent=: ;;
15908
15909  # This is an error.
15910  -*) as_fn_error "unrecognized option: \`$1'
15911Try \`$0 --help' for more information." ;;
15912
15913  *) as_fn_append ac_config_targets " $1"
15914     ac_need_defaults=false ;;
15915
15916  esac
15917  shift
15918done
15919
15920ac_configure_extra_args=
15921
15922if $ac_cs_silent; then
15923  exec 6>/dev/null
15924  ac_configure_extra_args="$ac_configure_extra_args --silent"
15925fi
15926
15927_ACEOF
15928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15929if \$ac_cs_recheck; then
15930  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15931  shift
15932  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15933  CONFIG_SHELL='$SHELL'
15934  export CONFIG_SHELL
15935  exec "\$@"
15936fi
15937
15938_ACEOF
15939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15940exec 5>>config.log
15941{
15942  echo
15943  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15944## Running $as_me. ##
15945_ASBOX
15946  $as_echo "$ac_log"
15947} >&5
15948
15949_ACEOF
15950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15951#
15952# INIT-COMMANDS
15953#
15954AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15955
15956
15957# The HP-UX ksh and POSIX shell print the target directory to stdout
15958# if CDPATH is set.
15959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15960
15961sed_quote_subst='$sed_quote_subst'
15962double_quote_subst='$double_quote_subst'
15963delay_variable_subst='$delay_variable_subst'
15964AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15965DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15966OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15967macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15968macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15969enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15970enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15971pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15972enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15973host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15974host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15975host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15976build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15977build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15978build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15979SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15980Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15981GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15982EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15983FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15984LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15985NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15986LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15987max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15988ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15989exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15990lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15991lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15992lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15993reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15994reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15995deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15996file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15997AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15998AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15999STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16000RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16001old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16002old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16003old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16004CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16005CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16006compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16007GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16008lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16009lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16010lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16011lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16012objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16013SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16014ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16015MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16016lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16017lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16018lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16019lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16020lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16021need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16022DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16023NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16024LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16025OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16026OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16027libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16028shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16029extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16030archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16031enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16032export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16033whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16034compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16035old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16036old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16037archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16038archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16039module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16040module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16041with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16042allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16043no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16044hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16045hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16046hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16047hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16048hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16049hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16050hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16051hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16052inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16053link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16054fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16055always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16056export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16057exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16058include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16059prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16060file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16061variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16062need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16063need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16064version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16065runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16066shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16067shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16068libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16069library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16070soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16071postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16072postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16073finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16074finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16075hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16076sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16077sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16078hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16079enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16080enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16081enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16082old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16083striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16084compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16085predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16086postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16087predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16088postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16089compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16090LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16091old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16092compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16093GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16094lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16095lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16096lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16097lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16098lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16099archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16100enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16101export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16102whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16103compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16104old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16105old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16106archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16107archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16108module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16109module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16110with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16111allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16112no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16113hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16114hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16115hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16116hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16117hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16118hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16119hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16120hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16121inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16122link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16123fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16124always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16125export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16126exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16127include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16128prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16129file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16130hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16131compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16132predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16133postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16134predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16135postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16136compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16137
16138LTCC='$LTCC'
16139LTCFLAGS='$LTCFLAGS'
16140compiler='$compiler_DEFAULT'
16141
16142# Quote evaled strings.
16143for var in SED \
16144GREP \
16145EGREP \
16146FGREP \
16147LD \
16148NM \
16149LN_S \
16150lt_SP2NL \
16151lt_NL2SP \
16152reload_flag \
16153deplibs_check_method \
16154file_magic_cmd \
16155AR \
16156AR_FLAGS \
16157STRIP \
16158RANLIB \
16159CC \
16160CFLAGS \
16161compiler \
16162lt_cv_sys_global_symbol_pipe \
16163lt_cv_sys_global_symbol_to_cdecl \
16164lt_cv_sys_global_symbol_to_c_name_address \
16165lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16166SHELL \
16167ECHO \
16168lt_prog_compiler_no_builtin_flag \
16169lt_prog_compiler_wl \
16170lt_prog_compiler_pic \
16171lt_prog_compiler_static \
16172lt_cv_prog_compiler_c_o \
16173need_locks \
16174DSYMUTIL \
16175NMEDIT \
16176LIPO \
16177OTOOL \
16178OTOOL64 \
16179shrext_cmds \
16180export_dynamic_flag_spec \
16181whole_archive_flag_spec \
16182compiler_needs_object \
16183with_gnu_ld \
16184allow_undefined_flag \
16185no_undefined_flag \
16186hardcode_libdir_flag_spec \
16187hardcode_libdir_flag_spec_ld \
16188hardcode_libdir_separator \
16189fix_srcfile_path \
16190exclude_expsyms \
16191include_expsyms \
16192file_list_spec \
16193variables_saved_for_relink \
16194libname_spec \
16195library_names_spec \
16196soname_spec \
16197finish_eval \
16198old_striplib \
16199striplib \
16200compiler_lib_search_dirs \
16201predep_objects \
16202postdep_objects \
16203predeps \
16204postdeps \
16205compiler_lib_search_path \
16206LD_CXX \
16207compiler_CXX \
16208lt_prog_compiler_no_builtin_flag_CXX \
16209lt_prog_compiler_wl_CXX \
16210lt_prog_compiler_pic_CXX \
16211lt_prog_compiler_static_CXX \
16212lt_cv_prog_compiler_c_o_CXX \
16213export_dynamic_flag_spec_CXX \
16214whole_archive_flag_spec_CXX \
16215compiler_needs_object_CXX \
16216with_gnu_ld_CXX \
16217allow_undefined_flag_CXX \
16218no_undefined_flag_CXX \
16219hardcode_libdir_flag_spec_CXX \
16220hardcode_libdir_flag_spec_ld_CXX \
16221hardcode_libdir_separator_CXX \
16222fix_srcfile_path_CXX \
16223exclude_expsyms_CXX \
16224include_expsyms_CXX \
16225file_list_spec_CXX \
16226compiler_lib_search_dirs_CXX \
16227predep_objects_CXX \
16228postdep_objects_CXX \
16229predeps_CXX \
16230postdeps_CXX \
16231compiler_lib_search_path_CXX; do
16232    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16233    *[\\\\\\\`\\"\\\$]*)
16234      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16235      ;;
16236    *)
16237      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16238      ;;
16239    esac
16240done
16241
16242# Double-quote double-evaled strings.
16243for var in reload_cmds \
16244old_postinstall_cmds \
16245old_postuninstall_cmds \
16246old_archive_cmds \
16247extract_expsyms_cmds \
16248old_archive_from_new_cmds \
16249old_archive_from_expsyms_cmds \
16250archive_cmds \
16251archive_expsym_cmds \
16252module_cmds \
16253module_expsym_cmds \
16254export_symbols_cmds \
16255prelink_cmds \
16256postinstall_cmds \
16257postuninstall_cmds \
16258finish_cmds \
16259sys_lib_search_path_spec \
16260sys_lib_dlsearch_path_spec \
16261old_archive_cmds_CXX \
16262old_archive_from_new_cmds_CXX \
16263old_archive_from_expsyms_cmds_CXX \
16264archive_cmds_CXX \
16265archive_expsym_cmds_CXX \
16266module_cmds_CXX \
16267module_expsym_cmds_CXX \
16268export_symbols_cmds_CXX \
16269prelink_cmds_CXX; do
16270    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16271    *[\\\\\\\`\\"\\\$]*)
16272      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16273      ;;
16274    *)
16275      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16276      ;;
16277    esac
16278done
16279
16280# Fix-up fallback echo if it was mangled by the above quoting rules.
16281case \$lt_ECHO in
16282*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16283  ;;
16284esac
16285
16286ac_aux_dir='$ac_aux_dir'
16287xsi_shell='$xsi_shell'
16288lt_shell_append='$lt_shell_append'
16289
16290# See if we are running on zsh, and set the options which allow our
16291# commands through without removal of \ escapes INIT.
16292if test -n "\${ZSH_VERSION+set}" ; then
16293   setopt NO_GLOB_SUBST
16294fi
16295
16296
16297    PACKAGE='$PACKAGE'
16298    VERSION='$VERSION'
16299    TIMESTAMP='$TIMESTAMP'
16300    RM='$RM'
16301    ofile='$ofile'
16302
16303
16304
16305
16306
16307
16308_ACEOF
16309
16310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16311
16312# Handling of arguments.
16313for ac_config_target in $ac_config_targets
16314do
16315  case $ac_config_target in
16316    "include/config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS include/config.hpp" ;;
16317    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16318    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16319    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16320    "guichan-0.8.pc") CONFIG_FILES="$CONFIG_FILES guichan-0.8.pc" ;;
16321    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16322    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16323    "include/guichan/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/Makefile" ;;
16324    "include/guichan/allegro/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/allegro/Makefile" ;;
16325    "include/guichan/contrib/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/Makefile" ;;
16326    "include/guichan/contrib/allegro/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/allegro/Makefile" ;;
16327    "include/guichan/contrib/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/opengl/Makefile" ;;
16328    "include/guichan/contrib/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/sdl/Makefile" ;;
16329    "include/guichan/contrib/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/widgets/Makefile" ;;
16330    "include/guichan/hge/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/hge/Makefile" ;;
16331    "include/guichan/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/opengl/Makefile" ;;
16332    "include/guichan/openlayer/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/openlayer/Makefile" ;;
16333    "include/guichan/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/sdl/Makefile" ;;
16334    "include/guichan/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/widgets/Makefile" ;;
16335    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16336    "src/allegro/Makefile") CONFIG_FILES="$CONFIG_FILES src/allegro/Makefile" ;;
16337    "src/contrib/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/Makefile" ;;
16338    "src/contrib/allegro/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/allegro/Makefile" ;;
16339    "src/contrib/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/opengl/Makefile" ;;
16340    "src/contrib/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/sdl/Makefile" ;;
16341    "src/contrib/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/widgets/Makefile" ;;
16342    "src/hge/Makefile") CONFIG_FILES="$CONFIG_FILES src/hge/Makefile" ;;
16343    "src/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES src/opengl/Makefile" ;;
16344    "src/opengl/guichan_opengl-0.8.pc") CONFIG_FILES="$CONFIG_FILES src/opengl/guichan_opengl-0.8.pc" ;;
16345    "src/openlayer/Makefile") CONFIG_FILES="$CONFIG_FILES src/openlayer/Makefile" ;;
16346    "src/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/sdl/Makefile" ;;
16347    "src/sdl/guichan_sdl-0.8.pc") CONFIG_FILES="$CONFIG_FILES src/sdl/guichan_sdl-0.8.pc" ;;
16348    "src/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES src/widgets/Makefile" ;;
16349
16350  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16351  esac
16352done
16353
16354
16355# If the user did not use the arguments to specify the items to instantiate,
16356# then the envvar interface is used.  Set only those that are not.
16357# We use the long form for the default assignment because of an extremely
16358# bizarre bug on SunOS 4.1.3.
16359if $ac_need_defaults; then
16360  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16361  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16362  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16363fi
16364
16365# Have a temporary directory for convenience.  Make it in the build tree
16366# simply because there is no reason against having it here, and in addition,
16367# creating and moving files from /tmp can sometimes cause problems.
16368# Hook for its removal unless debugging.
16369# Note that there is a small window in which the directory will not be cleaned:
16370# after its creation but before its name has been assigned to `$tmp'.
16371$debug ||
16372{
16373  tmp=
16374  trap 'exit_status=$?
16375  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16376' 0
16377  trap 'as_fn_exit 1' 1 2 13 15
16378}
16379# Create a (secure) tmp directory for tmp files.
16380
16381{
16382  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16383  test -n "$tmp" && test -d "$tmp"
16384}  ||
16385{
16386  tmp=./conf$$-$RANDOM
16387  (umask 077 && mkdir "$tmp")
16388} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16389
16390# Set up the scripts for CONFIG_FILES section.
16391# No need to generate them if there are no CONFIG_FILES.
16392# This happens for instance with `./config.status config.h'.
16393if test -n "$CONFIG_FILES"; then
16394
16395
16396ac_cr=`echo X | tr X '\015'`
16397# On cygwin, bash can eat \r inside `` if the user requested igncr.
16398# But we know of no other shell where ac_cr would be empty at this
16399# point, so we can use a bashism as a fallback.
16400if test "x$ac_cr" = x; then
16401  eval ac_cr=\$\'\\r\'
16402fi
16403ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16404if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16405  ac_cs_awk_cr='\r'
16406else
16407  ac_cs_awk_cr=$ac_cr
16408fi
16409
16410echo 'BEGIN {' >"$tmp/subs1.awk" &&
16411_ACEOF
16412
16413
16414{
16415  echo "cat >conf$$subs.awk <<_ACEOF" &&
16416  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16417  echo "_ACEOF"
16418} >conf$$subs.sh ||
16419  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16420ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16421ac_delim='%!_!# '
16422for ac_last_try in false false false false false :; do
16423  . ./conf$$subs.sh ||
16424    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16425
16426  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16427  if test $ac_delim_n = $ac_delim_num; then
16428    break
16429  elif $ac_last_try; then
16430    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16431  else
16432    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16433  fi
16434done
16435rm -f conf$$subs.sh
16436
16437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16438cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16439_ACEOF
16440sed -n '
16441h
16442s/^/S["/; s/!.*/"]=/
16443p
16444g
16445s/^[^!]*!//
16446:repl
16447t repl
16448s/'"$ac_delim"'$//
16449t delim
16450:nl
16451h
16452s/\(.\{148\}\).*/\1/
16453t more1
16454s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16455p
16456n
16457b repl
16458:more1
16459s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16460p
16461g
16462s/.\{148\}//
16463t nl
16464:delim
16465h
16466s/\(.\{148\}\).*/\1/
16467t more2
16468s/["\\]/\\&/g; s/^/"/; s/$/"/
16469p
16470b
16471:more2
16472s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16473p
16474g
16475s/.\{148\}//
16476t delim
16477' <conf$$subs.awk | sed '
16478/^[^""]/{
16479  N
16480  s/\n//
16481}
16482' >>$CONFIG_STATUS || ac_write_fail=1
16483rm -f conf$$subs.awk
16484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16485_ACAWK
16486cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16487  for (key in S) S_is_set[key] = 1
16488  FS = ""
16489
16490}
16491{
16492  line = $ 0
16493  nfields = split(line, field, "@")
16494  substed = 0
16495  len = length(field[1])
16496  for (i = 2; i < nfields; i++) {
16497    key = field[i]
16498    keylen = length(key)
16499    if (S_is_set[key]) {
16500      value = S[key]
16501      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16502      len += length(value) + length(field[++i])
16503      substed = 1
16504    } else
16505      len += 1 + keylen
16506  }
16507
16508  print line
16509}
16510
16511_ACAWK
16512_ACEOF
16513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16514if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16515  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16516else
16517  cat
16518fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16519  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16520_ACEOF
16521
16522# VPATH may cause trouble with some makes, so we remove $(srcdir),
16523# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16524# trailing colons and then remove the whole line if VPATH becomes empty
16525# (actually we leave an empty line to preserve line numbers).
16526if test "x$srcdir" = x.; then
16527  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16528s/:*\$(srcdir):*/:/
16529s/:*\${srcdir}:*/:/
16530s/:*@srcdir@:*/:/
16531s/^\([^=]*=[	 ]*\):*/\1/
16532s/:*$//
16533s/^[^=]*=[	 ]*$//
16534}'
16535fi
16536
16537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16538fi # test -n "$CONFIG_FILES"
16539
16540# Set up the scripts for CONFIG_HEADERS section.
16541# No need to generate them if there are no CONFIG_HEADERS.
16542# This happens for instance with `./config.status Makefile'.
16543if test -n "$CONFIG_HEADERS"; then
16544cat >"$tmp/defines.awk" <<\_ACAWK ||
16545BEGIN {
16546_ACEOF
16547
16548# Transform confdefs.h into an awk script `defines.awk', embedded as
16549# here-document in config.status, that substitutes the proper values into
16550# config.h.in to produce config.h.
16551
16552# Create a delimiter string that does not exist in confdefs.h, to ease
16553# handling of long lines.
16554ac_delim='%!_!# '
16555for ac_last_try in false false :; do
16556  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16557  if test -z "$ac_t"; then
16558    break
16559  elif $ac_last_try; then
16560    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16561  else
16562    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16563  fi
16564done
16565
16566# For the awk script, D is an array of macro values keyed by name,
16567# likewise P contains macro parameters if any.  Preserve backslash
16568# newline sequences.
16569
16570ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16571sed -n '
16572s/.\{148\}/&'"$ac_delim"'/g
16573t rset
16574:rset
16575s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16576t def
16577d
16578:def
16579s/\\$//
16580t bsnl
16581s/["\\]/\\&/g
16582s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16583D["\1"]=" \3"/p
16584s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16585d
16586:bsnl
16587s/["\\]/\\&/g
16588s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16589D["\1"]=" \3\\\\\\n"\\/p
16590t cont
16591s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16592t cont
16593d
16594:cont
16595n
16596s/.\{148\}/&'"$ac_delim"'/g
16597t clear
16598:clear
16599s/\\$//
16600t bsnlc
16601s/["\\]/\\&/g; s/^/"/; s/$/"/p
16602d
16603:bsnlc
16604s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16605b cont
16606' <confdefs.h | sed '
16607s/'"$ac_delim"'/"\\\
16608"/g' >>$CONFIG_STATUS || ac_write_fail=1
16609
16610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16611  for (key in D) D_is_set[key] = 1
16612  FS = ""
16613}
16614/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16615  line = \$ 0
16616  split(line, arg, " ")
16617  if (arg[1] == "#") {
16618    defundef = arg[2]
16619    mac1 = arg[3]
16620  } else {
16621    defundef = substr(arg[1], 2)
16622    mac1 = arg[2]
16623  }
16624  split(mac1, mac2, "(") #)
16625  macro = mac2[1]
16626  prefix = substr(line, 1, index(line, defundef) - 1)
16627  if (D_is_set[macro]) {
16628    # Preserve the white space surrounding the "#".
16629    print prefix "define", macro P[macro] D[macro]
16630    next
16631  } else {
16632    # Replace #undef with comments.  This is necessary, for example,
16633    # in the case of _POSIX_SOURCE, which is predefined and required
16634    # on some systems where configure will not decide to define it.
16635    if (defundef == "undef") {
16636      print "/*", prefix defundef, macro, "*/"
16637      next
16638    }
16639  }
16640}
16641{ print }
16642_ACAWK
16643_ACEOF
16644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16645  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16646fi # test -n "$CONFIG_HEADERS"
16647
16648
16649eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16650shift
16651for ac_tag
16652do
16653  case $ac_tag in
16654  :[FHLC]) ac_mode=$ac_tag; continue;;
16655  esac
16656  case $ac_mode$ac_tag in
16657  :[FHL]*:*);;
16658  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16659  :[FH]-) ac_tag=-:-;;
16660  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16661  esac
16662  ac_save_IFS=$IFS
16663  IFS=:
16664  set x $ac_tag
16665  IFS=$ac_save_IFS
16666  shift
16667  ac_file=$1
16668  shift
16669
16670  case $ac_mode in
16671  :L) ac_source=$1;;
16672  :[FH])
16673    ac_file_inputs=
16674    for ac_f
16675    do
16676      case $ac_f in
16677      -) ac_f="$tmp/stdin";;
16678      *) # Look for the file first in the build tree, then in the source tree
16679	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16680	 # because $ac_f cannot contain `:'.
16681	 test -f "$ac_f" ||
16682	   case $ac_f in
16683	   [\\/$]*) false;;
16684	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16685	   esac ||
16686	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16687      esac
16688      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16689      as_fn_append ac_file_inputs " '$ac_f'"
16690    done
16691
16692    # Let's still pretend it is `configure' which instantiates (i.e., don't
16693    # use $as_me), people would be surprised to read:
16694    #    /* config.h.  Generated by config.status.  */
16695    configure_input='Generated from '`
16696	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16697	`' by configure.'
16698    if test x"$ac_file" != x-; then
16699      configure_input="$ac_file.  $configure_input"
16700      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16701$as_echo "$as_me: creating $ac_file" >&6;}
16702    fi
16703    # Neutralize special characters interpreted by sed in replacement strings.
16704    case $configure_input in #(
16705    *\&* | *\|* | *\\* )
16706       ac_sed_conf_input=`$as_echo "$configure_input" |
16707       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16708    *) ac_sed_conf_input=$configure_input;;
16709    esac
16710
16711    case $ac_tag in
16712    *:-:* | *:-) cat >"$tmp/stdin" \
16713      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16714    esac
16715    ;;
16716  esac
16717
16718  ac_dir=`$as_dirname -- "$ac_file" ||
16719$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16720	 X"$ac_file" : 'X\(//\)[^/]' \| \
16721	 X"$ac_file" : 'X\(//\)$' \| \
16722	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16723$as_echo X"$ac_file" |
16724    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16725	    s//\1/
16726	    q
16727	  }
16728	  /^X\(\/\/\)[^/].*/{
16729	    s//\1/
16730	    q
16731	  }
16732	  /^X\(\/\/\)$/{
16733	    s//\1/
16734	    q
16735	  }
16736	  /^X\(\/\).*/{
16737	    s//\1/
16738	    q
16739	  }
16740	  s/.*/./; q'`
16741  as_dir="$ac_dir"; as_fn_mkdir_p
16742  ac_builddir=.
16743
16744case "$ac_dir" in
16745.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16746*)
16747  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16748  # A ".." for each directory in $ac_dir_suffix.
16749  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16750  case $ac_top_builddir_sub in
16751  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16752  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16753  esac ;;
16754esac
16755ac_abs_top_builddir=$ac_pwd
16756ac_abs_builddir=$ac_pwd$ac_dir_suffix
16757# for backward compatibility:
16758ac_top_builddir=$ac_top_build_prefix
16759
16760case $srcdir in
16761  .)  # We are building in place.
16762    ac_srcdir=.
16763    ac_top_srcdir=$ac_top_builddir_sub
16764    ac_abs_top_srcdir=$ac_pwd ;;
16765  [\\/]* | ?:[\\/]* )  # Absolute name.
16766    ac_srcdir=$srcdir$ac_dir_suffix;
16767    ac_top_srcdir=$srcdir
16768    ac_abs_top_srcdir=$srcdir ;;
16769  *) # Relative name.
16770    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16771    ac_top_srcdir=$ac_top_build_prefix$srcdir
16772    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16773esac
16774ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16775
16776
16777  case $ac_mode in
16778  :F)
16779  #
16780  # CONFIG_FILE
16781  #
16782
16783  case $INSTALL in
16784  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16785  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16786  esac
16787  ac_MKDIR_P=$MKDIR_P
16788  case $MKDIR_P in
16789  [\\/$]* | ?:[\\/]* ) ;;
16790  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16791  esac
16792_ACEOF
16793
16794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16795# If the template does not know about datarootdir, expand it.
16796# FIXME: This hack should be removed a few years after 2.60.
16797ac_datarootdir_hack=; ac_datarootdir_seen=
16798ac_sed_dataroot='
16799/datarootdir/ {
16800  p
16801  q
16802}
16803/@datadir@/p
16804/@docdir@/p
16805/@infodir@/p
16806/@localedir@/p
16807/@mandir@/p'
16808case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16809*datarootdir*) ac_datarootdir_seen=yes;;
16810*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16811  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16812$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16813_ACEOF
16814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16815  ac_datarootdir_hack='
16816  s&@datadir@&$datadir&g
16817  s&@docdir@&$docdir&g
16818  s&@infodir@&$infodir&g
16819  s&@localedir@&$localedir&g
16820  s&@mandir@&$mandir&g
16821  s&\\\${datarootdir}&$datarootdir&g' ;;
16822esac
16823_ACEOF
16824
16825# Neutralize VPATH when `$srcdir' = `.'.
16826# Shell code in configure.ac might set extrasub.
16827# FIXME: do we really want to maintain this feature?
16828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16829ac_sed_extra="$ac_vpsub
16830$extrasub
16831_ACEOF
16832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16833:t
16834/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16835s|@configure_input@|$ac_sed_conf_input|;t t
16836s&@top_builddir@&$ac_top_builddir_sub&;t t
16837s&@top_build_prefix@&$ac_top_build_prefix&;t t
16838s&@srcdir@&$ac_srcdir&;t t
16839s&@abs_srcdir@&$ac_abs_srcdir&;t t
16840s&@top_srcdir@&$ac_top_srcdir&;t t
16841s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16842s&@builddir@&$ac_builddir&;t t
16843s&@abs_builddir@&$ac_abs_builddir&;t t
16844s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16845s&@INSTALL@&$ac_INSTALL&;t t
16846s&@MKDIR_P@&$ac_MKDIR_P&;t t
16847$ac_datarootdir_hack
16848"
16849eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16850  || as_fn_error "could not create $ac_file" "$LINENO" 5
16851
16852test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16853  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16854  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16855  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16856which seems to be undefined.  Please make sure it is defined." >&5
16857$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16858which seems to be undefined.  Please make sure it is defined." >&2;}
16859
16860  rm -f "$tmp/stdin"
16861  case $ac_file in
16862  -) cat "$tmp/out" && rm -f "$tmp/out";;
16863  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16864  esac \
16865  || as_fn_error "could not create $ac_file" "$LINENO" 5
16866 ;;
16867  :H)
16868  #
16869  # CONFIG_HEADER
16870  #
16871  if test x"$ac_file" != x-; then
16872    {
16873      $as_echo "/* $configure_input  */" \
16874      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16875    } >"$tmp/config.h" \
16876      || as_fn_error "could not create $ac_file" "$LINENO" 5
16877    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16878      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16879$as_echo "$as_me: $ac_file is unchanged" >&6;}
16880    else
16881      rm -f "$ac_file"
16882      mv "$tmp/config.h" "$ac_file" \
16883	|| as_fn_error "could not create $ac_file" "$LINENO" 5
16884    fi
16885  else
16886    $as_echo "/* $configure_input  */" \
16887      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16888      || as_fn_error "could not create -" "$LINENO" 5
16889  fi
16890# Compute "$ac_file"'s index in $config_headers.
16891_am_arg="$ac_file"
16892_am_stamp_count=1
16893for _am_header in $config_headers :; do
16894  case $_am_header in
16895    $_am_arg | $_am_arg:* )
16896      break ;;
16897    * )
16898      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16899  esac
16900done
16901echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16902$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16903	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16904	 X"$_am_arg" : 'X\(//\)$' \| \
16905	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16906$as_echo X"$_am_arg" |
16907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16908	    s//\1/
16909	    q
16910	  }
16911	  /^X\(\/\/\)[^/].*/{
16912	    s//\1/
16913	    q
16914	  }
16915	  /^X\(\/\/\)$/{
16916	    s//\1/
16917	    q
16918	  }
16919	  /^X\(\/\).*/{
16920	    s//\1/
16921	    q
16922	  }
16923	  s/.*/./; q'`/stamp-h$_am_stamp_count
16924 ;;
16925
16926  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16927$as_echo "$as_me: executing $ac_file commands" >&6;}
16928 ;;
16929  esac
16930
16931
16932  case $ac_file$ac_mode in
16933    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16934  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16935  # are listed without --file.  Let's play safe and only enable the eval
16936  # if we detect the quoting.
16937  case $CONFIG_FILES in
16938  *\'*) eval set x "$CONFIG_FILES" ;;
16939  *)   set x $CONFIG_FILES ;;
16940  esac
16941  shift
16942  for mf
16943  do
16944    # Strip MF so we end up with the name of the file.
16945    mf=`echo "$mf" | sed -e 's/:.*$//'`
16946    # Check whether this is an Automake generated Makefile or not.
16947    # We used to match only the files named `Makefile.in', but
16948    # some people rename them; so instead we look at the file content.
16949    # Grep'ing the first line is not enough: some people post-process
16950    # each Makefile.in and add a new line on top of each file to say so.
16951    # Grep'ing the whole file is not good either: AIX grep has a line
16952    # limit of 2048, but all sed's we know have understand at least 4000.
16953    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16954      dirpart=`$as_dirname -- "$mf" ||
16955$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16956	 X"$mf" : 'X\(//\)[^/]' \| \
16957	 X"$mf" : 'X\(//\)$' \| \
16958	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16959$as_echo X"$mf" |
16960    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16961	    s//\1/
16962	    q
16963	  }
16964	  /^X\(\/\/\)[^/].*/{
16965	    s//\1/
16966	    q
16967	  }
16968	  /^X\(\/\/\)$/{
16969	    s//\1/
16970	    q
16971	  }
16972	  /^X\(\/\).*/{
16973	    s//\1/
16974	    q
16975	  }
16976	  s/.*/./; q'`
16977    else
16978      continue
16979    fi
16980    # Extract the definition of DEPDIR, am__include, and am__quote
16981    # from the Makefile without running `make'.
16982    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16983    test -z "$DEPDIR" && continue
16984    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16985    test -z "am__include" && continue
16986    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16987    # When using ansi2knr, U may be empty or an underscore; expand it
16988    U=`sed -n 's/^U = //p' < "$mf"`
16989    # Find all dependency output files, they are included files with
16990    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16991    # simplest approach to changing $(DEPDIR) to its actual value in the
16992    # expansion.
16993    for file in `sed -n "
16994      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16995	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16996      # Make sure the directory exists.
16997      test -f "$dirpart/$file" && continue
16998      fdir=`$as_dirname -- "$file" ||
16999$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17000	 X"$file" : 'X\(//\)[^/]' \| \
17001	 X"$file" : 'X\(//\)$' \| \
17002	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17003$as_echo X"$file" |
17004    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17005	    s//\1/
17006	    q
17007	  }
17008	  /^X\(\/\/\)[^/].*/{
17009	    s//\1/
17010	    q
17011	  }
17012	  /^X\(\/\/\)$/{
17013	    s//\1/
17014	    q
17015	  }
17016	  /^X\(\/\).*/{
17017	    s//\1/
17018	    q
17019	  }
17020	  s/.*/./; q'`
17021      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17022      # echo "creating $dirpart/$file"
17023      echo '# dummy' > "$dirpart/$file"
17024    done
17025  done
17026}
17027 ;;
17028    "libtool":C)
17029
17030    # See if we are running on zsh, and set the options which allow our
17031    # commands through without removal of \ escapes.
17032    if test -n "${ZSH_VERSION+set}" ; then
17033      setopt NO_GLOB_SUBST
17034    fi
17035
17036    cfgfile="${ofile}T"
17037    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17038    $RM "$cfgfile"
17039
17040    cat <<_LT_EOF >> "$cfgfile"
17041#! $SHELL
17042
17043# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17044# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17045# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17046# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17047#
17048#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17049#                 2006, 2007, 2008 Free Software Foundation, Inc.
17050#   Written by Gordon Matzigkeit, 1996
17051#
17052#   This file is part of GNU Libtool.
17053#
17054# GNU Libtool is free software; you can redistribute it and/or
17055# modify it under the terms of the GNU General Public License as
17056# published by the Free Software Foundation; either version 2 of
17057# the License, or (at your option) any later version.
17058#
17059# As a special exception to the GNU General Public License,
17060# if you distribute this file as part of a program or library that
17061# is built using GNU Libtool, you may include this file under the
17062# same distribution terms that you use for the rest of that program.
17063#
17064# GNU Libtool is distributed in the hope that it will be useful,
17065# but WITHOUT ANY WARRANTY; without even the implied warranty of
17066# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17067# GNU General Public License for more details.
17068#
17069# You should have received a copy of the GNU General Public License
17070# along with GNU Libtool; see the file COPYING.  If not, a copy
17071# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17072# obtained by writing to the Free Software Foundation, Inc.,
17073# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17074
17075
17076# The names of the tagged configurations supported by this script.
17077available_tags="CXX "
17078
17079# ### BEGIN LIBTOOL CONFIG
17080
17081# Assembler program.
17082AS=$AS
17083
17084# DLL creation program.
17085DLLTOOL=$DLLTOOL
17086
17087# Object dumper program.
17088OBJDUMP=$OBJDUMP
17089
17090# Which release of libtool.m4 was used?
17091macro_version=$macro_version
17092macro_revision=$macro_revision
17093
17094# Whether or not to build shared libraries.
17095build_libtool_libs=$enable_shared
17096
17097# Whether or not to build static libraries.
17098build_old_libs=$enable_static
17099
17100# What type of objects to build.
17101pic_mode=$pic_mode
17102
17103# Whether or not to optimize for fast installation.
17104fast_install=$enable_fast_install
17105
17106# The host system.
17107host_alias=$host_alias
17108host=$host
17109host_os=$host_os
17110
17111# The build system.
17112build_alias=$build_alias
17113build=$build
17114build_os=$build_os
17115
17116# A sed program that does not truncate output.
17117SED=$lt_SED
17118
17119# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17120Xsed="\$SED -e 1s/^X//"
17121
17122# A grep program that handles long lines.
17123GREP=$lt_GREP
17124
17125# An ERE matcher.
17126EGREP=$lt_EGREP
17127
17128# A literal string matcher.
17129FGREP=$lt_FGREP
17130
17131# A BSD- or MS-compatible name lister.
17132NM=$lt_NM
17133
17134# Whether we need soft or hard links.
17135LN_S=$lt_LN_S
17136
17137# What is the maximum length of a command?
17138max_cmd_len=$max_cmd_len
17139
17140# Object file suffix (normally "o").
17141objext=$ac_objext
17142
17143# Executable file suffix (normally "").
17144exeext=$exeext
17145
17146# whether the shell understands "unset".
17147lt_unset=$lt_unset
17148
17149# turn spaces into newlines.
17150SP2NL=$lt_lt_SP2NL
17151
17152# turn newlines into spaces.
17153NL2SP=$lt_lt_NL2SP
17154
17155# How to create reloadable object files.
17156reload_flag=$lt_reload_flag
17157reload_cmds=$lt_reload_cmds
17158
17159# Method to check whether dependent libraries are shared objects.
17160deplibs_check_method=$lt_deplibs_check_method
17161
17162# Command to use when deplibs_check_method == "file_magic".
17163file_magic_cmd=$lt_file_magic_cmd
17164
17165# The archiver.
17166AR=$lt_AR
17167AR_FLAGS=$lt_AR_FLAGS
17168
17169# A symbol stripping program.
17170STRIP=$lt_STRIP
17171
17172# Commands used to install an old-style archive.
17173RANLIB=$lt_RANLIB
17174old_postinstall_cmds=$lt_old_postinstall_cmds
17175old_postuninstall_cmds=$lt_old_postuninstall_cmds
17176
17177# A C compiler.
17178LTCC=$lt_CC
17179
17180# LTCC compiler flags.
17181LTCFLAGS=$lt_CFLAGS
17182
17183# Take the output of nm and produce a listing of raw symbols and C names.
17184global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17185
17186# Transform the output of nm in a proper C declaration.
17187global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17188
17189# Transform the output of nm in a C name address pair.
17190global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17191
17192# Transform the output of nm in a C name address pair when lib prefix is needed.
17193global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17194
17195# The name of the directory that contains temporary libtool files.
17196objdir=$objdir
17197
17198# Shell to use when invoking shell scripts.
17199SHELL=$lt_SHELL
17200
17201# An echo program that does not interpret backslashes.
17202ECHO=$lt_ECHO
17203
17204# Used to examine libraries when file_magic_cmd begins with "file".
17205MAGIC_CMD=$MAGIC_CMD
17206
17207# Must we lock files when doing compilation?
17208need_locks=$lt_need_locks
17209
17210# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17211DSYMUTIL=$lt_DSYMUTIL
17212
17213# Tool to change global to local symbols on Mac OS X.
17214NMEDIT=$lt_NMEDIT
17215
17216# Tool to manipulate fat objects and archives on Mac OS X.
17217LIPO=$lt_LIPO
17218
17219# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17220OTOOL=$lt_OTOOL
17221
17222# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17223OTOOL64=$lt_OTOOL64
17224
17225# Old archive suffix (normally "a").
17226libext=$libext
17227
17228# Shared library suffix (normally ".so").
17229shrext_cmds=$lt_shrext_cmds
17230
17231# The commands to extract the exported symbol list from a shared archive.
17232extract_expsyms_cmds=$lt_extract_expsyms_cmds
17233
17234# Variables whose values should be saved in libtool wrapper scripts and
17235# restored at link time.
17236variables_saved_for_relink=$lt_variables_saved_for_relink
17237
17238# Do we need the "lib" prefix for modules?
17239need_lib_prefix=$need_lib_prefix
17240
17241# Do we need a version for libraries?
17242need_version=$need_version
17243
17244# Library versioning type.
17245version_type=$version_type
17246
17247# Shared library runtime path variable.
17248runpath_var=$runpath_var
17249
17250# Shared library path variable.
17251shlibpath_var=$shlibpath_var
17252
17253# Is shlibpath searched before the hard-coded library search path?
17254shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17255
17256# Format of library name prefix.
17257libname_spec=$lt_libname_spec
17258
17259# List of archive names.  First name is the real one, the rest are links.
17260# The last name is the one that the linker finds with -lNAME
17261library_names_spec=$lt_library_names_spec
17262
17263# The coded name of the library, if different from the real name.
17264soname_spec=$lt_soname_spec
17265
17266# Command to use after installation of a shared archive.
17267postinstall_cmds=$lt_postinstall_cmds
17268
17269# Command to use after uninstallation of a shared archive.
17270postuninstall_cmds=$lt_postuninstall_cmds
17271
17272# Commands used to finish a libtool library installation in a directory.
17273finish_cmds=$lt_finish_cmds
17274
17275# As "finish_cmds", except a single script fragment to be evaled but
17276# not shown.
17277finish_eval=$lt_finish_eval
17278
17279# Whether we should hardcode library paths into libraries.
17280hardcode_into_libs=$hardcode_into_libs
17281
17282# Compile-time system search path for libraries.
17283sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17284
17285# Run-time system search path for libraries.
17286sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17287
17288# Whether dlopen is supported.
17289dlopen_support=$enable_dlopen
17290
17291# Whether dlopen of programs is supported.
17292dlopen_self=$enable_dlopen_self
17293
17294# Whether dlopen of statically linked programs is supported.
17295dlopen_self_static=$enable_dlopen_self_static
17296
17297# Commands to strip libraries.
17298old_striplib=$lt_old_striplib
17299striplib=$lt_striplib
17300
17301
17302# The linker used to build libraries.
17303LD=$lt_LD
17304
17305# Commands used to build an old-style archive.
17306old_archive_cmds=$lt_old_archive_cmds
17307
17308# A language specific compiler.
17309CC=$lt_compiler
17310
17311# Is the compiler the GNU compiler?
17312with_gcc=$GCC
17313
17314# Compiler flag to turn off builtin functions.
17315no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17316
17317# How to pass a linker flag through the compiler.
17318wl=$lt_lt_prog_compiler_wl
17319
17320# Additional compiler flags for building library objects.
17321pic_flag=$lt_lt_prog_compiler_pic
17322
17323# Compiler flag to prevent dynamic linking.
17324link_static_flag=$lt_lt_prog_compiler_static
17325
17326# Does compiler simultaneously support -c and -o options?
17327compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17328
17329# Whether or not to add -lc for building shared libraries.
17330build_libtool_need_lc=$archive_cmds_need_lc
17331
17332# Whether or not to disallow shared libs when runtime libs are static.
17333allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17334
17335# Compiler flag to allow reflexive dlopens.
17336export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17337
17338# Compiler flag to generate shared objects directly from archives.
17339whole_archive_flag_spec=$lt_whole_archive_flag_spec
17340
17341# Whether the compiler copes with passing no objects directly.
17342compiler_needs_object=$lt_compiler_needs_object
17343
17344# Create an old-style archive from a shared archive.
17345old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17346
17347# Create a temporary old-style archive to link instead of a shared archive.
17348old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17349
17350# Commands used to build a shared archive.
17351archive_cmds=$lt_archive_cmds
17352archive_expsym_cmds=$lt_archive_expsym_cmds
17353
17354# Commands used to build a loadable module if different from building
17355# a shared archive.
17356module_cmds=$lt_module_cmds
17357module_expsym_cmds=$lt_module_expsym_cmds
17358
17359# Whether we are building with GNU ld or not.
17360with_gnu_ld=$lt_with_gnu_ld
17361
17362# Flag that allows shared libraries with undefined symbols to be built.
17363allow_undefined_flag=$lt_allow_undefined_flag
17364
17365# Flag that enforces no undefined symbols.
17366no_undefined_flag=$lt_no_undefined_flag
17367
17368# Flag to hardcode \$libdir into a binary during linking.
17369# This must work even if \$libdir does not exist
17370hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17371
17372# If ld is used when linking, flag to hardcode \$libdir into a binary
17373# during linking.  This must work even if \$libdir does not exist.
17374hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17375
17376# Whether we need a single "-rpath" flag with a separated argument.
17377hardcode_libdir_separator=$lt_hardcode_libdir_separator
17378
17379# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17380# DIR into the resulting binary.
17381hardcode_direct=$hardcode_direct
17382
17383# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17384# DIR into the resulting binary and the resulting library dependency is
17385# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17386# library is relocated.
17387hardcode_direct_absolute=$hardcode_direct_absolute
17388
17389# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17390# into the resulting binary.
17391hardcode_minus_L=$hardcode_minus_L
17392
17393# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17394# into the resulting binary.
17395hardcode_shlibpath_var=$hardcode_shlibpath_var
17396
17397# Set to "yes" if building a shared library automatically hardcodes DIR
17398# into the library and all subsequent libraries and executables linked
17399# against it.
17400hardcode_automatic=$hardcode_automatic
17401
17402# Set to yes if linker adds runtime paths of dependent libraries
17403# to runtime path list.
17404inherit_rpath=$inherit_rpath
17405
17406# Whether libtool must link a program against all its dependency libraries.
17407link_all_deplibs=$link_all_deplibs
17408
17409# Fix the shell variable \$srcfile for the compiler.
17410fix_srcfile_path=$lt_fix_srcfile_path
17411
17412# Set to "yes" if exported symbols are required.
17413always_export_symbols=$always_export_symbols
17414
17415# The commands to list exported symbols.
17416export_symbols_cmds=$lt_export_symbols_cmds
17417
17418# Symbols that should not be listed in the preloaded symbols.
17419exclude_expsyms=$lt_exclude_expsyms
17420
17421# Symbols that must always be exported.
17422include_expsyms=$lt_include_expsyms
17423
17424# Commands necessary for linking programs (against libraries) with templates.
17425prelink_cmds=$lt_prelink_cmds
17426
17427# Specify filename containing input files.
17428file_list_spec=$lt_file_list_spec
17429
17430# How to hardcode a shared library path into an executable.
17431hardcode_action=$hardcode_action
17432
17433# The directories searched by this compiler when creating a shared library.
17434compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17435
17436# Dependencies to place before and after the objects being linked to
17437# create a shared library.
17438predep_objects=$lt_predep_objects
17439postdep_objects=$lt_postdep_objects
17440predeps=$lt_predeps
17441postdeps=$lt_postdeps
17442
17443# The library search path used internally by the compiler when linking
17444# a shared library.
17445compiler_lib_search_path=$lt_compiler_lib_search_path
17446
17447# ### END LIBTOOL CONFIG
17448
17449_LT_EOF
17450
17451  case $host_os in
17452  aix3*)
17453    cat <<\_LT_EOF >> "$cfgfile"
17454# AIX sometimes has problems with the GCC collect2 program.  For some
17455# reason, if we set the COLLECT_NAMES environment variable, the problems
17456# vanish in a puff of smoke.
17457if test "X${COLLECT_NAMES+set}" != Xset; then
17458  COLLECT_NAMES=
17459  export COLLECT_NAMES
17460fi
17461_LT_EOF
17462    ;;
17463  esac
17464
17465
17466ltmain="$ac_aux_dir/ltmain.sh"
17467
17468
17469  # We use sed instead of cat because bash on DJGPP gets confused if
17470  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17471  # text mode, it properly converts lines to CR/LF.  This bash problem
17472  # is reportedly fixed, but why not run on old versions too?
17473  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17474    || (rm -f "$cfgfile"; exit 1)
17475
17476  case $xsi_shell in
17477  yes)
17478    cat << \_LT_EOF >> "$cfgfile"
17479
17480# func_dirname file append nondir_replacement
17481# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17482# otherwise set result to NONDIR_REPLACEMENT.
17483func_dirname ()
17484{
17485  case ${1} in
17486    */*) func_dirname_result="${1%/*}${2}" ;;
17487    *  ) func_dirname_result="${3}" ;;
17488  esac
17489}
17490
17491# func_basename file
17492func_basename ()
17493{
17494  func_basename_result="${1##*/}"
17495}
17496
17497# func_dirname_and_basename file append nondir_replacement
17498# perform func_basename and func_dirname in a single function
17499# call:
17500#   dirname:  Compute the dirname of FILE.  If nonempty,
17501#             add APPEND to the result, otherwise set result
17502#             to NONDIR_REPLACEMENT.
17503#             value returned in "$func_dirname_result"
17504#   basename: Compute filename of FILE.
17505#             value retuned in "$func_basename_result"
17506# Implementation must be kept synchronized with func_dirname
17507# and func_basename. For efficiency, we do not delegate to
17508# those functions but instead duplicate the functionality here.
17509func_dirname_and_basename ()
17510{
17511  case ${1} in
17512    */*) func_dirname_result="${1%/*}${2}" ;;
17513    *  ) func_dirname_result="${3}" ;;
17514  esac
17515  func_basename_result="${1##*/}"
17516}
17517
17518# func_stripname prefix suffix name
17519# strip PREFIX and SUFFIX off of NAME.
17520# PREFIX and SUFFIX must not contain globbing or regex special
17521# characters, hashes, percent signs, but SUFFIX may contain a leading
17522# dot (in which case that matches only a dot).
17523func_stripname ()
17524{
17525  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17526  # positional parameters, so assign one to ordinary parameter first.
17527  func_stripname_result=${3}
17528  func_stripname_result=${func_stripname_result#"${1}"}
17529  func_stripname_result=${func_stripname_result%"${2}"}
17530}
17531
17532# func_opt_split
17533func_opt_split ()
17534{
17535  func_opt_split_opt=${1%%=*}
17536  func_opt_split_arg=${1#*=}
17537}
17538
17539# func_lo2o object
17540func_lo2o ()
17541{
17542  case ${1} in
17543    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17544    *)    func_lo2o_result=${1} ;;
17545  esac
17546}
17547
17548# func_xform libobj-or-source
17549func_xform ()
17550{
17551  func_xform_result=${1%.*}.lo
17552}
17553
17554# func_arith arithmetic-term...
17555func_arith ()
17556{
17557  func_arith_result=$(( $* ))
17558}
17559
17560# func_len string
17561# STRING may not start with a hyphen.
17562func_len ()
17563{
17564  func_len_result=${#1}
17565}
17566
17567_LT_EOF
17568    ;;
17569  *) # Bourne compatible functions.
17570    cat << \_LT_EOF >> "$cfgfile"
17571
17572# func_dirname file append nondir_replacement
17573# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17574# otherwise set result to NONDIR_REPLACEMENT.
17575func_dirname ()
17576{
17577  # Extract subdirectory from the argument.
17578  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17579  if test "X$func_dirname_result" = "X${1}"; then
17580    func_dirname_result="${3}"
17581  else
17582    func_dirname_result="$func_dirname_result${2}"
17583  fi
17584}
17585
17586# func_basename file
17587func_basename ()
17588{
17589  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17590}
17591
17592
17593# func_stripname prefix suffix name
17594# strip PREFIX and SUFFIX off of NAME.
17595# PREFIX and SUFFIX must not contain globbing or regex special
17596# characters, hashes, percent signs, but SUFFIX may contain a leading
17597# dot (in which case that matches only a dot).
17598# func_strip_suffix prefix name
17599func_stripname ()
17600{
17601  case ${2} in
17602    .*) func_stripname_result=`$ECHO "X${3}" \
17603           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17604    *)  func_stripname_result=`$ECHO "X${3}" \
17605           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17606  esac
17607}
17608
17609# sed scripts:
17610my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17611my_sed_long_arg='1s/^-[^=]*=//'
17612
17613# func_opt_split
17614func_opt_split ()
17615{
17616  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17617  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17618}
17619
17620# func_lo2o object
17621func_lo2o ()
17622{
17623  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17624}
17625
17626# func_xform libobj-or-source
17627func_xform ()
17628{
17629  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17630}
17631
17632# func_arith arithmetic-term...
17633func_arith ()
17634{
17635  func_arith_result=`expr "$@"`
17636}
17637
17638# func_len string
17639# STRING may not start with a hyphen.
17640func_len ()
17641{
17642  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17643}
17644
17645_LT_EOF
17646esac
17647
17648case $lt_shell_append in
17649  yes)
17650    cat << \_LT_EOF >> "$cfgfile"
17651
17652# func_append var value
17653# Append VALUE to the end of shell variable VAR.
17654func_append ()
17655{
17656  eval "$1+=\$2"
17657}
17658_LT_EOF
17659    ;;
17660  *)
17661    cat << \_LT_EOF >> "$cfgfile"
17662
17663# func_append var value
17664# Append VALUE to the end of shell variable VAR.
17665func_append ()
17666{
17667  eval "$1=\$$1\$2"
17668}
17669
17670_LT_EOF
17671    ;;
17672  esac
17673
17674
17675  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17676    || (rm -f "$cfgfile"; exit 1)
17677
17678  mv -f "$cfgfile" "$ofile" ||
17679    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17680  chmod +x "$ofile"
17681
17682
17683    cat <<_LT_EOF >> "$ofile"
17684
17685# ### BEGIN LIBTOOL TAG CONFIG: CXX
17686
17687# The linker used to build libraries.
17688LD=$lt_LD_CXX
17689
17690# Commands used to build an old-style archive.
17691old_archive_cmds=$lt_old_archive_cmds_CXX
17692
17693# A language specific compiler.
17694CC=$lt_compiler_CXX
17695
17696# Is the compiler the GNU compiler?
17697with_gcc=$GCC_CXX
17698
17699# Compiler flag to turn off builtin functions.
17700no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17701
17702# How to pass a linker flag through the compiler.
17703wl=$lt_lt_prog_compiler_wl_CXX
17704
17705# Additional compiler flags for building library objects.
17706pic_flag=$lt_lt_prog_compiler_pic_CXX
17707
17708# Compiler flag to prevent dynamic linking.
17709link_static_flag=$lt_lt_prog_compiler_static_CXX
17710
17711# Does compiler simultaneously support -c and -o options?
17712compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17713
17714# Whether or not to add -lc for building shared libraries.
17715build_libtool_need_lc=$archive_cmds_need_lc_CXX
17716
17717# Whether or not to disallow shared libs when runtime libs are static.
17718allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17719
17720# Compiler flag to allow reflexive dlopens.
17721export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17722
17723# Compiler flag to generate shared objects directly from archives.
17724whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17725
17726# Whether the compiler copes with passing no objects directly.
17727compiler_needs_object=$lt_compiler_needs_object_CXX
17728
17729# Create an old-style archive from a shared archive.
17730old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17731
17732# Create a temporary old-style archive to link instead of a shared archive.
17733old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17734
17735# Commands used to build a shared archive.
17736archive_cmds=$lt_archive_cmds_CXX
17737archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17738
17739# Commands used to build a loadable module if different from building
17740# a shared archive.
17741module_cmds=$lt_module_cmds_CXX
17742module_expsym_cmds=$lt_module_expsym_cmds_CXX
17743
17744# Whether we are building with GNU ld or not.
17745with_gnu_ld=$lt_with_gnu_ld_CXX
17746
17747# Flag that allows shared libraries with undefined symbols to be built.
17748allow_undefined_flag=$lt_allow_undefined_flag_CXX
17749
17750# Flag that enforces no undefined symbols.
17751no_undefined_flag=$lt_no_undefined_flag_CXX
17752
17753# Flag to hardcode \$libdir into a binary during linking.
17754# This must work even if \$libdir does not exist
17755hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17756
17757# If ld is used when linking, flag to hardcode \$libdir into a binary
17758# during linking.  This must work even if \$libdir does not exist.
17759hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17760
17761# Whether we need a single "-rpath" flag with a separated argument.
17762hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17763
17764# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17765# DIR into the resulting binary.
17766hardcode_direct=$hardcode_direct_CXX
17767
17768# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17769# DIR into the resulting binary and the resulting library dependency is
17770# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17771# library is relocated.
17772hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17773
17774# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17775# into the resulting binary.
17776hardcode_minus_L=$hardcode_minus_L_CXX
17777
17778# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17779# into the resulting binary.
17780hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17781
17782# Set to "yes" if building a shared library automatically hardcodes DIR
17783# into the library and all subsequent libraries and executables linked
17784# against it.
17785hardcode_automatic=$hardcode_automatic_CXX
17786
17787# Set to yes if linker adds runtime paths of dependent libraries
17788# to runtime path list.
17789inherit_rpath=$inherit_rpath_CXX
17790
17791# Whether libtool must link a program against all its dependency libraries.
17792link_all_deplibs=$link_all_deplibs_CXX
17793
17794# Fix the shell variable \$srcfile for the compiler.
17795fix_srcfile_path=$lt_fix_srcfile_path_CXX
17796
17797# Set to "yes" if exported symbols are required.
17798always_export_symbols=$always_export_symbols_CXX
17799
17800# The commands to list exported symbols.
17801export_symbols_cmds=$lt_export_symbols_cmds_CXX
17802
17803# Symbols that should not be listed in the preloaded symbols.
17804exclude_expsyms=$lt_exclude_expsyms_CXX
17805
17806# Symbols that must always be exported.
17807include_expsyms=$lt_include_expsyms_CXX
17808
17809# Commands necessary for linking programs (against libraries) with templates.
17810prelink_cmds=$lt_prelink_cmds_CXX
17811
17812# Specify filename containing input files.
17813file_list_spec=$lt_file_list_spec_CXX
17814
17815# How to hardcode a shared library path into an executable.
17816hardcode_action=$hardcode_action_CXX
17817
17818# The directories searched by this compiler when creating a shared library.
17819compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17820
17821# Dependencies to place before and after the objects being linked to
17822# create a shared library.
17823predep_objects=$lt_predep_objects_CXX
17824postdep_objects=$lt_postdep_objects_CXX
17825predeps=$lt_predeps_CXX
17826postdeps=$lt_postdeps_CXX
17827
17828# The library search path used internally by the compiler when linking
17829# a shared library.
17830compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17831
17832# ### END LIBTOOL TAG CONFIG: CXX
17833_LT_EOF
17834
17835 ;;
17836
17837  esac
17838done # for ac_tag
17839
17840
17841as_fn_exit 0
17842_ACEOF
17843ac_clean_files=$ac_clean_files_save
17844
17845test $ac_write_fail = 0 ||
17846  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17847
17848
17849# configure is writing to config.log, and then calls config.status.
17850# config.status does its own redirection, appending to config.log.
17851# Unfortunately, on DOS this fails, as config.log is still kept open
17852# by configure, so config.status won't be able to write to it; its
17853# output is simply discarded.  So we exec the FD to /dev/null,
17854# effectively closing config.log, so it can be properly (re)opened and
17855# appended to by config.status.  When coming back to configure, we
17856# need to make the FD available again.
17857if test "$no_create" != yes; then
17858  ac_cs_success=:
17859  ac_config_status_args=
17860  test "$silent" = yes &&
17861    ac_config_status_args="$ac_config_status_args --quiet"
17862  exec 5>/dev/null
17863  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17864  exec 5>>config.log
17865  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17866  # would make configure fail if this is the last instruction.
17867  $ac_cs_success || as_fn_exit $?
17868fi
17869if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17870  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17871$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17872fi
17873
17874echo ""
17875echo "IMPORTANT! You are about install a BETA version of Guichan"
17876echo "which most likely will lose binary compatibility with the"
17877echo "future stable release. This release should only be used"
17878echo "for testing."
17879echo ""
17880echo "-------------------------------"
17881echo "Guichan ready for compilation!"
17882echo "-------------------------------"
17883echo "* Allegro   = "$ALLEGRO
17884echo "* HGE       = no (Windows specific and cannot be built)"
17885echo "* OpenGL    = "$OPENGL
17886echo "* OpenLayer = no (Requires static build and cannot be built)"
17887echo "* SDL       = "$SDL
17888echo "* SDL Image = "$SDLIMAGE
17889echo "--------------------------------"
17890