1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for gbemol 0.3.2.
4#
5# Report bugs to <http://gbemol.sourceforge.net>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (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# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='gbemol'
747PACKAGE_TARNAME='gbemol'
748PACKAGE_VERSION='0.3.2'
749PACKAGE_STRING='gbemol 0.3.2'
750PACKAGE_BUGREPORT='http://gbemol.sourceforge.net'
751
752# Factoring default headers for most tests.
753ac_includes_default="\
754#include <stdio.h>
755#ifdef HAVE_SYS_TYPES_H
756# include <sys/types.h>
757#endif
758#ifdef HAVE_SYS_STAT_H
759# include <sys/stat.h>
760#endif
761#ifdef STDC_HEADERS
762# include <stdlib.h>
763# include <stddef.h>
764#else
765# ifdef HAVE_STDLIB_H
766#  include <stdlib.h>
767# endif
768#endif
769#ifdef HAVE_STRING_H
770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771#  include <memory.h>
772# endif
773# include <string.h>
774#endif
775#ifdef HAVE_STRINGS_H
776# include <strings.h>
777#endif
778#ifdef HAVE_INTTYPES_H
779# include <inttypes.h>
780#endif
781#ifdef HAVE_STDINT_H
782# include <stdint.h>
783#endif
784#ifdef HAVE_UNISTD_H
785# include <unistd.h>
786#endif"
787
788ac_subst_vars='LTLIBOBJS
789LIBOBJS
790GTK_LIBS
791GTK_CFLAGS
792LIBXML_LIBS
793LIBXML_CFLAGS
794CURL_LIBS
795CURL_CFLAGS
796GTHREAD_LIBS
797GTHREAD_CFLAGS
798PKG_CONFIG
799OTOOL64
800OTOOL
801LIPO
802NMEDIT
803DSYMUTIL
804lt_ECHO
805RANLIB
806AR
807OBJDUMP
808LN_S
809NM
810ac_ct_DUMPBIN
811DUMPBIN
812LD
813FGREP
814SED
815host_os
816host_vendor
817host_cpu
818host
819build_os
820build_vendor
821build_cpu
822build
823LIBTOOL
824ALL_LINGUAS
825INTLTOOL_PERL
826MSGMERGE
827INTLTOOL_POLICY_RULE
828INTLTOOL_SERVICE_RULE
829INTLTOOL_THEME_RULE
830INTLTOOL_SCHEMAS_RULE
831INTLTOOL_CAVES_RULE
832INTLTOOL_XML_NOMERGE_RULE
833INTLTOOL_XML_RULE
834INTLTOOL_KBD_RULE
835INTLTOOL_XAM_RULE
836INTLTOOL_UI_RULE
837INTLTOOL_SOUNDLIST_RULE
838INTLTOOL_SHEET_RULE
839INTLTOOL_SERVER_RULE
840INTLTOOL_PONG_RULE
841INTLTOOL_OAF_RULE
842INTLTOOL_PROP_RULE
843INTLTOOL_KEYS_RULE
844INTLTOOL_DIRECTORY_RULE
845INTLTOOL_DESKTOP_RULE
846INTLTOOL_EXTRACT
847INTLTOOL_MERGE
848INTLTOOL_UPDATE
849MKINSTALLDIRS
850POSUB
851POFILES
852PO_IN_DATADIR_FALSE
853PO_IN_DATADIR_TRUE
854INTLLIBS
855INSTOBJEXT
856GMOFILES
857DATADIRNAME
858CATOBJEXT
859CATALOGS
860XGETTEXT
861GMSGFMT
862MSGFMT_OPTS
863MSGFMT
864USE_NLS
865GETTEXT_PACKAGE
866EGREP
867GREP
868CPP
869am__fastdepCC_FALSE
870am__fastdepCC_TRUE
871CCDEPMODE
872AMDEPBACKSLASH
873AMDEP_FALSE
874AMDEP_TRUE
875am__quote
876am__include
877DEPDIR
878OBJEXT
879EXEEXT
880ac_ct_CC
881CPPFLAGS
882LDFLAGS
883CFLAGS
884CC
885MAINT
886MAINTAINER_MODE_FALSE
887MAINTAINER_MODE_TRUE
888am__untar
889am__tar
890AMTAR
891am__leading_dot
892SET_MAKE
893AWK
894mkdir_p
895MKDIR_P
896INSTALL_STRIP_PROGRAM
897STRIP
898install_sh
899MAKEINFO
900AUTOHEADER
901AUTOMAKE
902AUTOCONF
903ACLOCAL
904VERSION
905PACKAGE
906CYGPATH_W
907am__isrc
908INSTALL_DATA
909INSTALL_SCRIPT
910INSTALL_PROGRAM
911PIXMAPS_DIR
912target_alias
913host_alias
914build_alias
915LIBS
916ECHO_T
917ECHO_N
918ECHO_C
919DEFS
920mandir
921localedir
922libdir
923psdir
924pdfdir
925dvidir
926htmldir
927infodir
928docdir
929oldincludedir
930includedir
931localstatedir
932sharedstatedir
933sysconfdir
934datadir
935datarootdir
936libexecdir
937sbindir
938bindir
939program_transform_name
940prefix
941exec_prefix
942PACKAGE_BUGREPORT
943PACKAGE_STRING
944PACKAGE_VERSION
945PACKAGE_TARNAME
946PACKAGE_NAME
947PATH_SEPARATOR
948SHELL'
949ac_subst_files=''
950ac_user_opts='
951enable_option_checking
952enable_maintainer_mode
953enable_dependency_tracking
954enable_nls
955enable_shared
956enable_static
957with_pic
958enable_fast_install
959with_gnu_ld
960enable_libtool_lock
961'
962      ac_precious_vars='build_alias
963host_alias
964target_alias
965CC
966CFLAGS
967LDFLAGS
968LIBS
969CPPFLAGS
970CPP
971PKG_CONFIG
972GTHREAD_CFLAGS
973GTHREAD_LIBS
974CURL_CFLAGS
975CURL_LIBS
976LIBXML_CFLAGS
977LIBXML_LIBS
978GTK_CFLAGS
979GTK_LIBS'
980
981
982# Initialize some variables set by options.
983ac_init_help=
984ac_init_version=false
985ac_unrecognized_opts=
986ac_unrecognized_sep=
987# The variables have the same names as the options, with
988# dashes changed to underlines.
989cache_file=/dev/null
990exec_prefix=NONE
991no_create=
992no_recursion=
993prefix=NONE
994program_prefix=NONE
995program_suffix=NONE
996program_transform_name=s,x,x,
997silent=
998site=
999srcdir=
1000verbose=
1001x_includes=NONE
1002x_libraries=NONE
1003
1004# Installation directory options.
1005# These are left unexpanded so users can "make install exec_prefix=/foo"
1006# and all the variables that are supposed to be based on exec_prefix
1007# by default will actually change.
1008# Use braces instead of parens because sh, perl, etc. also accept them.
1009# (The list follows the same order as the GNU Coding Standards.)
1010bindir='${exec_prefix}/bin'
1011sbindir='${exec_prefix}/sbin'
1012libexecdir='${exec_prefix}/libexec'
1013datarootdir='${prefix}/share'
1014datadir='${datarootdir}'
1015sysconfdir='${prefix}/etc'
1016sharedstatedir='${prefix}/com'
1017localstatedir='${prefix}/var'
1018includedir='${prefix}/include'
1019oldincludedir='/usr/include'
1020docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1021infodir='${datarootdir}/info'
1022htmldir='${docdir}'
1023dvidir='${docdir}'
1024pdfdir='${docdir}'
1025psdir='${docdir}'
1026libdir='${exec_prefix}/lib'
1027localedir='${datarootdir}/locale'
1028mandir='${datarootdir}/man'
1029
1030ac_prev=
1031ac_dashdash=
1032for ac_option
1033do
1034  # If the previous option needs an argument, assign it.
1035  if test -n "$ac_prev"; then
1036    eval $ac_prev=\$ac_option
1037    ac_prev=
1038    continue
1039  fi
1040
1041  case $ac_option in
1042  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043  *)	ac_optarg=yes ;;
1044  esac
1045
1046  # Accept the important Cygnus configure options, so we can diagnose typos.
1047
1048  case $ac_dashdash$ac_option in
1049  --)
1050    ac_dashdash=yes ;;
1051
1052  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053    ac_prev=bindir ;;
1054  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055    bindir=$ac_optarg ;;
1056
1057  -build | --build | --buil | --bui | --bu)
1058    ac_prev=build_alias ;;
1059  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060    build_alias=$ac_optarg ;;
1061
1062  -cache-file | --cache-file | --cache-fil | --cache-fi \
1063  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064    ac_prev=cache_file ;;
1065  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067    cache_file=$ac_optarg ;;
1068
1069  --config-cache | -C)
1070    cache_file=config.cache ;;
1071
1072  -datadir | --datadir | --datadi | --datad)
1073    ac_prev=datadir ;;
1074  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075    datadir=$ac_optarg ;;
1076
1077  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078  | --dataroo | --dataro | --datar)
1079    ac_prev=datarootdir ;;
1080  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082    datarootdir=$ac_optarg ;;
1083
1084  -disable-* | --disable-*)
1085    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086    # Reject names that are not valid shell variable names.
1087    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1089   { (exit 1); exit 1; }; }
1090    ac_useropt_orig=$ac_useropt
1091    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092    case $ac_user_opts in
1093      *"
1094"enable_$ac_useropt"
1095"*) ;;
1096      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1097	 ac_unrecognized_sep=', ';;
1098    esac
1099    eval enable_$ac_useropt=no ;;
1100
1101  -docdir | --docdir | --docdi | --doc | --do)
1102    ac_prev=docdir ;;
1103  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1104    docdir=$ac_optarg ;;
1105
1106  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107    ac_prev=dvidir ;;
1108  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1109    dvidir=$ac_optarg ;;
1110
1111  -enable-* | --enable-*)
1112    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1116   { (exit 1); exit 1; }; }
1117    ac_useropt_orig=$ac_useropt
1118    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119    case $ac_user_opts in
1120      *"
1121"enable_$ac_useropt"
1122"*) ;;
1123      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1124	 ac_unrecognized_sep=', ';;
1125    esac
1126    eval enable_$ac_useropt=\$ac_optarg ;;
1127
1128  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130  | --exec | --exe | --ex)
1131    ac_prev=exec_prefix ;;
1132  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134  | --exec=* | --exe=* | --ex=*)
1135    exec_prefix=$ac_optarg ;;
1136
1137  -gas | --gas | --ga | --g)
1138    # Obsolete; use --with-gas.
1139    with_gas=yes ;;
1140
1141  -help | --help | --hel | --he | -h)
1142    ac_init_help=long ;;
1143  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144    ac_init_help=recursive ;;
1145  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146    ac_init_help=short ;;
1147
1148  -host | --host | --hos | --ho)
1149    ac_prev=host_alias ;;
1150  -host=* | --host=* | --hos=* | --ho=*)
1151    host_alias=$ac_optarg ;;
1152
1153  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1154    ac_prev=htmldir ;;
1155  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1156  | --ht=*)
1157    htmldir=$ac_optarg ;;
1158
1159  -includedir | --includedir | --includedi | --included | --include \
1160  | --includ | --inclu | --incl | --inc)
1161    ac_prev=includedir ;;
1162  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163  | --includ=* | --inclu=* | --incl=* | --inc=*)
1164    includedir=$ac_optarg ;;
1165
1166  -infodir | --infodir | --infodi | --infod | --info | --inf)
1167    ac_prev=infodir ;;
1168  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169    infodir=$ac_optarg ;;
1170
1171  -libdir | --libdir | --libdi | --libd)
1172    ac_prev=libdir ;;
1173  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174    libdir=$ac_optarg ;;
1175
1176  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177  | --libexe | --libex | --libe)
1178    ac_prev=libexecdir ;;
1179  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180  | --libexe=* | --libex=* | --libe=*)
1181    libexecdir=$ac_optarg ;;
1182
1183  -localedir | --localedir | --localedi | --localed | --locale)
1184    ac_prev=localedir ;;
1185  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186    localedir=$ac_optarg ;;
1187
1188  -localstatedir | --localstatedir | --localstatedi | --localstated \
1189  | --localstate | --localstat | --localsta | --localst | --locals)
1190    ac_prev=localstatedir ;;
1191  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193    localstatedir=$ac_optarg ;;
1194
1195  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1196    ac_prev=mandir ;;
1197  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198    mandir=$ac_optarg ;;
1199
1200  -nfp | --nfp | --nf)
1201    # Obsolete; use --without-fp.
1202    with_fp=no ;;
1203
1204  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205  | --no-cr | --no-c | -n)
1206    no_create=yes ;;
1207
1208  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210    no_recursion=yes ;;
1211
1212  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214  | --oldin | --oldi | --old | --ol | --o)
1215    ac_prev=oldincludedir ;;
1216  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219    oldincludedir=$ac_optarg ;;
1220
1221  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1222    ac_prev=prefix ;;
1223  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224    prefix=$ac_optarg ;;
1225
1226  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227  | --program-pre | --program-pr | --program-p)
1228    ac_prev=program_prefix ;;
1229  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231    program_prefix=$ac_optarg ;;
1232
1233  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234  | --program-suf | --program-su | --program-s)
1235    ac_prev=program_suffix ;;
1236  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238    program_suffix=$ac_optarg ;;
1239
1240  -program-transform-name | --program-transform-name \
1241  | --program-transform-nam | --program-transform-na \
1242  | --program-transform-n | --program-transform- \
1243  | --program-transform | --program-transfor \
1244  | --program-transfo | --program-transf \
1245  | --program-trans | --program-tran \
1246  | --progr-tra | --program-tr | --program-t)
1247    ac_prev=program_transform_name ;;
1248  -program-transform-name=* | --program-transform-name=* \
1249  | --program-transform-nam=* | --program-transform-na=* \
1250  | --program-transform-n=* | --program-transform-=* \
1251  | --program-transform=* | --program-transfor=* \
1252  | --program-transfo=* | --program-transf=* \
1253  | --program-trans=* | --program-tran=* \
1254  | --progr-tra=* | --program-tr=* | --program-t=*)
1255    program_transform_name=$ac_optarg ;;
1256
1257  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1258    ac_prev=pdfdir ;;
1259  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260    pdfdir=$ac_optarg ;;
1261
1262  -psdir | --psdir | --psdi | --psd | --ps)
1263    ac_prev=psdir ;;
1264  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265    psdir=$ac_optarg ;;
1266
1267  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268  | -silent | --silent | --silen | --sile | --sil)
1269    silent=yes ;;
1270
1271  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1272    ac_prev=sbindir ;;
1273  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1274  | --sbi=* | --sb=*)
1275    sbindir=$ac_optarg ;;
1276
1277  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279  | --sharedst | --shareds | --shared | --share | --shar \
1280  | --sha | --sh)
1281    ac_prev=sharedstatedir ;;
1282  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1285  | --sha=* | --sh=*)
1286    sharedstatedir=$ac_optarg ;;
1287
1288  -site | --site | --sit)
1289    ac_prev=site ;;
1290  -site=* | --site=* | --sit=*)
1291    site=$ac_optarg ;;
1292
1293  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294    ac_prev=srcdir ;;
1295  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296    srcdir=$ac_optarg ;;
1297
1298  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299  | --syscon | --sysco | --sysc | --sys | --sy)
1300    ac_prev=sysconfdir ;;
1301  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303    sysconfdir=$ac_optarg ;;
1304
1305  -target | --target | --targe | --targ | --tar | --ta | --t)
1306    ac_prev=target_alias ;;
1307  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308    target_alias=$ac_optarg ;;
1309
1310  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311    verbose=yes ;;
1312
1313  -version | --version | --versio | --versi | --vers | -V)
1314    ac_init_version=: ;;
1315
1316  -with-* | --with-*)
1317    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318    # Reject names that are not valid shell variable names.
1319    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321   { (exit 1); exit 1; }; }
1322    ac_useropt_orig=$ac_useropt
1323    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324    case $ac_user_opts in
1325      *"
1326"with_$ac_useropt"
1327"*) ;;
1328      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329	 ac_unrecognized_sep=', ';;
1330    esac
1331    eval with_$ac_useropt=\$ac_optarg ;;
1332
1333  -without-* | --without-*)
1334    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335    # Reject names that are not valid shell variable names.
1336    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338   { (exit 1); exit 1; }; }
1339    ac_useropt_orig=$ac_useropt
1340    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341    case $ac_user_opts in
1342      *"
1343"with_$ac_useropt"
1344"*) ;;
1345      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346	 ac_unrecognized_sep=', ';;
1347    esac
1348    eval with_$ac_useropt=no ;;
1349
1350  --x)
1351    # Obsolete; use --with-x.
1352    with_x=yes ;;
1353
1354  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355  | --x-incl | --x-inc | --x-in | --x-i)
1356    ac_prev=x_includes ;;
1357  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359    x_includes=$ac_optarg ;;
1360
1361  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363    ac_prev=x_libraries ;;
1364  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366    x_libraries=$ac_optarg ;;
1367
1368  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1369Try \`$0 --help' for more information." >&2
1370   { (exit 1); exit 1; }; }
1371    ;;
1372
1373  *=*)
1374    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375    # Reject names that are not valid shell variable names.
1376    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1377      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1378   { (exit 1); exit 1; }; }
1379    eval $ac_envvar=\$ac_optarg
1380    export $ac_envvar ;;
1381
1382  *)
1383    # FIXME: should be removed in autoconf 3.0.
1384    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388    ;;
1389
1390  esac
1391done
1392
1393if test -n "$ac_prev"; then
1394  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1396   { (exit 1); exit 1; }; }
1397fi
1398
1399if test -n "$ac_unrecognized_opts"; then
1400  case $enable_option_checking in
1401    no) ;;
1402    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1403   { (exit 1); exit 1; }; } ;;
1404    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405  esac
1406fi
1407
1408# Check all directory arguments for consistency.
1409for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1410		datadir sysconfdir sharedstatedir localstatedir includedir \
1411		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1412		libdir localedir mandir
1413do
1414  eval ac_val=\$$ac_var
1415  # Remove trailing slashes.
1416  case $ac_val in
1417    */ )
1418      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1419      eval $ac_var=\$ac_val;;
1420  esac
1421  # Be sure to have absolute directory names.
1422  case $ac_val in
1423    [\\/$]* | ?:[\\/]* )  continue;;
1424    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425  esac
1426  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1427   { (exit 1); exit 1; }; }
1428done
1429
1430# There might be people who depend on the old broken behavior: `$host'
1431# used to hold the argument of --host etc.
1432# FIXME: To remove some day.
1433build=$build_alias
1434host=$host_alias
1435target=$target_alias
1436
1437# FIXME: To remove some day.
1438if test "x$host_alias" != x; then
1439  if test "x$build_alias" = x; then
1440    cross_compiling=maybe
1441    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1442    If a cross compiler is detected then cross compile mode will be used." >&2
1443  elif test "x$build_alias" != "x$host_alias"; then
1444    cross_compiling=yes
1445  fi
1446fi
1447
1448ac_tool_prefix=
1449test -n "$host_alias" && ac_tool_prefix=$host_alias-
1450
1451test "$silent" = yes && exec 6>/dev/null
1452
1453
1454ac_pwd=`pwd` && test -n "$ac_pwd" &&
1455ac_ls_di=`ls -di .` &&
1456ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1457  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1458   { (exit 1); exit 1; }; }
1459test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1461   { (exit 1); exit 1; }; }
1462
1463
1464# Find the source files, if location was not specified.
1465if test -z "$srcdir"; then
1466  ac_srcdir_defaulted=yes
1467  # Try the directory containing this script, then the parent directory.
1468  ac_confdir=`$as_dirname -- "$as_myself" ||
1469$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1470	 X"$as_myself" : 'X\(//\)[^/]' \| \
1471	 X"$as_myself" : 'X\(//\)$' \| \
1472	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1473$as_echo X"$as_myself" |
1474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475	    s//\1/
1476	    q
1477	  }
1478	  /^X\(\/\/\)[^/].*/{
1479	    s//\1/
1480	    q
1481	  }
1482	  /^X\(\/\/\)$/{
1483	    s//\1/
1484	    q
1485	  }
1486	  /^X\(\/\).*/{
1487	    s//\1/
1488	    q
1489	  }
1490	  s/.*/./; q'`
1491  srcdir=$ac_confdir
1492  if test ! -r "$srcdir/$ac_unique_file"; then
1493    srcdir=..
1494  fi
1495else
1496  ac_srcdir_defaulted=no
1497fi
1498if test ! -r "$srcdir/$ac_unique_file"; then
1499  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1500  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1501   { (exit 1); exit 1; }; }
1502fi
1503ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504ac_abs_confdir=`(
1505	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1506   { (exit 1); exit 1; }; }
1507	pwd)`
1508# When building in place, set srcdir=.
1509if test "$ac_abs_confdir" = "$ac_pwd"; then
1510  srcdir=.
1511fi
1512# Remove unnecessary trailing slashes from srcdir.
1513# Double slashes in file names in object file debugging info
1514# mess up M-x gdb in Emacs.
1515case $srcdir in
1516*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517esac
1518for ac_var in $ac_precious_vars; do
1519  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520  eval ac_env_${ac_var}_value=\$${ac_var}
1521  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523done
1524
1525#
1526# Report the --help message.
1527#
1528if test "$ac_init_help" = "long"; then
1529  # Omit some internal or obsolete options to make the list less imposing.
1530  # This message is too long to be a string in the A/UX 3.1 sh.
1531  cat <<_ACEOF
1532\`configure' configures gbemol 0.3.2 to adapt to many kinds of systems.
1533
1534Usage: $0 [OPTION]... [VAR=VALUE]...
1535
1536To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537VAR=VALUE.  See below for descriptions of some of the useful variables.
1538
1539Defaults for the options are specified in brackets.
1540
1541Configuration:
1542  -h, --help              display this help and exit
1543      --help=short        display options specific to this package
1544      --help=recursive    display the short help of all the included packages
1545  -V, --version           display version information and exit
1546  -q, --quiet, --silent   do not print \`checking...' messages
1547      --cache-file=FILE   cache test results in FILE [disabled]
1548  -C, --config-cache      alias for \`--cache-file=config.cache'
1549  -n, --no-create         do not create output files
1550      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1551
1552Installation directories:
1553  --prefix=PREFIX         install architecture-independent files in PREFIX
1554                          [$ac_default_prefix]
1555  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1556                          [PREFIX]
1557
1558By default, \`make install' will install all the files in
1559\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1560an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561for instance \`--prefix=\$HOME'.
1562
1563For better control, use the options below.
1564
1565Fine tuning of the installation directories:
1566  --bindir=DIR            user executables [EPREFIX/bin]
1567  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1568  --libexecdir=DIR        program executables [EPREFIX/libexec]
1569  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1570  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1571  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1572  --libdir=DIR            object code libraries [EPREFIX/lib]
1573  --includedir=DIR        C header files [PREFIX/include]
1574  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1575  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1576  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1577  --infodir=DIR           info documentation [DATAROOTDIR/info]
1578  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1579  --mandir=DIR            man documentation [DATAROOTDIR/man]
1580  --docdir=DIR            documentation root [DATAROOTDIR/doc/gbemol]
1581  --htmldir=DIR           html documentation [DOCDIR]
1582  --dvidir=DIR            dvi documentation [DOCDIR]
1583  --pdfdir=DIR            pdf documentation [DOCDIR]
1584  --psdir=DIR             ps documentation [DOCDIR]
1585_ACEOF
1586
1587  cat <<\_ACEOF
1588
1589Program names:
1590  --program-prefix=PREFIX            prepend PREFIX to installed program names
1591  --program-suffix=SUFFIX            append SUFFIX to installed program names
1592  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1593
1594System types:
1595  --build=BUILD     configure for building on BUILD [guessed]
1596  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1597_ACEOF
1598fi
1599
1600if test -n "$ac_init_help"; then
1601  case $ac_init_help in
1602     short | recursive ) echo "Configuration of gbemol 0.3.2:";;
1603   esac
1604  cat <<\_ACEOF
1605
1606Optional Features:
1607  --disable-option-checking  ignore unrecognized --enable/--with options
1608  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1609  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1610  --enable-maintainer-mode  enable make rules and dependencies not useful
1611			  (and sometimes confusing) to the casual installer
1612  --disable-dependency-tracking  speeds up one-time build
1613  --enable-dependency-tracking   do not reject slow dependency extractors
1614  --disable-nls           do not use Native Language Support
1615  --enable-shared[=PKGS]  build shared libraries [default=yes]
1616  --enable-static[=PKGS]  build static libraries [default=yes]
1617  --enable-fast-install[=PKGS]
1618                          optimize for fast installation [default=yes]
1619  --disable-libtool-lock  avoid locking (might break parallel builds)
1620
1621Optional Packages:
1622  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1623  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1624  --with-pic              try to use only PIC/non-PIC objects [default=use
1625                          both]
1626  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1627
1628Some influential environment variables:
1629  CC          C compiler command
1630  CFLAGS      C compiler flags
1631  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1632              nonstandard directory <lib dir>
1633  LIBS        libraries to pass to the linker, e.g. -l<library>
1634  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1635              you have headers in a nonstandard directory <include dir>
1636  CPP         C preprocessor
1637  PKG_CONFIG  path to pkg-config utility
1638  GTHREAD_CFLAGS
1639              C compiler flags for GTHREAD, overriding pkg-config
1640  GTHREAD_LIBS
1641              linker flags for GTHREAD, overriding pkg-config
1642  CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1643  CURL_LIBS   linker flags for CURL, overriding pkg-config
1644  LIBXML_CFLAGS
1645              C compiler flags for LIBXML, overriding pkg-config
1646  LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1647  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1648  GTK_LIBS    linker flags for GTK, overriding pkg-config
1649
1650Use these variables to override the choices made by `configure' or to help
1651it to find libraries and programs with nonstandard names/locations.
1652
1653Report bugs to <http://gbemol.sourceforge.net>.
1654_ACEOF
1655ac_status=$?
1656fi
1657
1658if test "$ac_init_help" = "recursive"; then
1659  # If there are subdirs, report their specific --help.
1660  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661    test -d "$ac_dir" ||
1662      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663      continue
1664    ac_builddir=.
1665
1666case "$ac_dir" in
1667.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668*)
1669  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670  # A ".." for each directory in $ac_dir_suffix.
1671  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672  case $ac_top_builddir_sub in
1673  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675  esac ;;
1676esac
1677ac_abs_top_builddir=$ac_pwd
1678ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679# for backward compatibility:
1680ac_top_builddir=$ac_top_build_prefix
1681
1682case $srcdir in
1683  .)  # We are building in place.
1684    ac_srcdir=.
1685    ac_top_srcdir=$ac_top_builddir_sub
1686    ac_abs_top_srcdir=$ac_pwd ;;
1687  [\\/]* | ?:[\\/]* )  # Absolute name.
1688    ac_srcdir=$srcdir$ac_dir_suffix;
1689    ac_top_srcdir=$srcdir
1690    ac_abs_top_srcdir=$srcdir ;;
1691  *) # Relative name.
1692    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693    ac_top_srcdir=$ac_top_build_prefix$srcdir
1694    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695esac
1696ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697
1698    cd "$ac_dir" || { ac_status=$?; continue; }
1699    # Check for guested configure.
1700    if test -f "$ac_srcdir/configure.gnu"; then
1701      echo &&
1702      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703    elif test -f "$ac_srcdir/configure"; then
1704      echo &&
1705      $SHELL "$ac_srcdir/configure" --help=recursive
1706    else
1707      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708    fi || ac_status=$?
1709    cd "$ac_pwd" || { ac_status=$?; break; }
1710  done
1711fi
1712
1713test -n "$ac_init_help" && exit $ac_status
1714if $ac_init_version; then
1715  cat <<\_ACEOF
1716gbemol configure 0.3.2
1717generated by GNU Autoconf 2.63
1718
1719Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17202002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1721This configure script is free software; the Free Software Foundation
1722gives unlimited permission to copy, distribute and modify it.
1723_ACEOF
1724  exit
1725fi
1726cat >config.log <<_ACEOF
1727This file contains any messages produced by compilers while
1728running configure, to aid debugging if configure makes a mistake.
1729
1730It was created by gbemol $as_me 0.3.2, which was
1731generated by GNU Autoconf 2.63.  Invocation command line was
1732
1733  $ $0 $@
1734
1735_ACEOF
1736exec 5>>config.log
1737{
1738cat <<_ASUNAME
1739## --------- ##
1740## Platform. ##
1741## --------- ##
1742
1743hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1744uname -m = `(uname -m) 2>/dev/null || echo unknown`
1745uname -r = `(uname -r) 2>/dev/null || echo unknown`
1746uname -s = `(uname -s) 2>/dev/null || echo unknown`
1747uname -v = `(uname -v) 2>/dev/null || echo unknown`
1748
1749/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1750/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1751
1752/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1753/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1754/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1755/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1756/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1757/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1758/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1759
1760_ASUNAME
1761
1762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763for as_dir in $PATH
1764do
1765  IFS=$as_save_IFS
1766  test -z "$as_dir" && as_dir=.
1767  $as_echo "PATH: $as_dir"
1768done
1769IFS=$as_save_IFS
1770
1771} >&5
1772
1773cat >&5 <<_ACEOF
1774
1775
1776## ----------- ##
1777## Core tests. ##
1778## ----------- ##
1779
1780_ACEOF
1781
1782
1783# Keep a trace of the command line.
1784# Strip out --no-create and --no-recursion so they do not pile up.
1785# Strip out --silent because we don't want to record it for future runs.
1786# Also quote any args containing shell meta-characters.
1787# Make two passes to allow for proper duplicate-argument suppression.
1788ac_configure_args=
1789ac_configure_args0=
1790ac_configure_args1=
1791ac_must_keep_next=false
1792for ac_pass in 1 2
1793do
1794  for ac_arg
1795  do
1796    case $ac_arg in
1797    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1798    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1799    | -silent | --silent | --silen | --sile | --sil)
1800      continue ;;
1801    *\'*)
1802      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803    esac
1804    case $ac_pass in
1805    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1806    2)
1807      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1808      if test $ac_must_keep_next = true; then
1809	ac_must_keep_next=false # Got value, back to normal.
1810      else
1811	case $ac_arg in
1812	  *=* | --config-cache | -C | -disable-* | --disable-* \
1813	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1814	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1815	  | -with-* | --with-* | -without-* | --without-* | --x)
1816	    case "$ac_configure_args0 " in
1817	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1818	    esac
1819	    ;;
1820	  -* ) ac_must_keep_next=true ;;
1821	esac
1822      fi
1823      ac_configure_args="$ac_configure_args '$ac_arg'"
1824      ;;
1825    esac
1826  done
1827done
1828$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1829$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1830
1831# When interrupted or exit'd, cleanup temporary files, and complete
1832# config.log.  We remove comments because anyway the quotes in there
1833# would cause problems or look ugly.
1834# WARNING: Use '\'' to represent an apostrophe within the trap.
1835# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1836trap 'exit_status=$?
1837  # Save into config.log some information that might help in debugging.
1838  {
1839    echo
1840
1841    cat <<\_ASBOX
1842## ---------------- ##
1843## Cache variables. ##
1844## ---------------- ##
1845_ASBOX
1846    echo
1847    # The following way of writing the cache mishandles newlines in values,
1848(
1849  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1850    eval ac_val=\$$ac_var
1851    case $ac_val in #(
1852    *${as_nl}*)
1853      case $ac_var in #(
1854      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1855$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1856      esac
1857      case $ac_var in #(
1858      _ | IFS | as_nl) ;; #(
1859      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1860      *) $as_unset $ac_var ;;
1861      esac ;;
1862    esac
1863  done
1864  (set) 2>&1 |
1865    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1866    *${as_nl}ac_space=\ *)
1867      sed -n \
1868	"s/'\''/'\''\\\\'\'''\''/g;
1869	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1870      ;; #(
1871    *)
1872      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1873      ;;
1874    esac |
1875    sort
1876)
1877    echo
1878
1879    cat <<\_ASBOX
1880## ----------------- ##
1881## Output variables. ##
1882## ----------------- ##
1883_ASBOX
1884    echo
1885    for ac_var in $ac_subst_vars
1886    do
1887      eval ac_val=\$$ac_var
1888      case $ac_val in
1889      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890      esac
1891      $as_echo "$ac_var='\''$ac_val'\''"
1892    done | sort
1893    echo
1894
1895    if test -n "$ac_subst_files"; then
1896      cat <<\_ASBOX
1897## ------------------- ##
1898## File substitutions. ##
1899## ------------------- ##
1900_ASBOX
1901      echo
1902      for ac_var in $ac_subst_files
1903      do
1904	eval ac_val=\$$ac_var
1905	case $ac_val in
1906	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907	esac
1908	$as_echo "$ac_var='\''$ac_val'\''"
1909      done | sort
1910      echo
1911    fi
1912
1913    if test -s confdefs.h; then
1914      cat <<\_ASBOX
1915## ----------- ##
1916## confdefs.h. ##
1917## ----------- ##
1918_ASBOX
1919      echo
1920      cat confdefs.h
1921      echo
1922    fi
1923    test "$ac_signal" != 0 &&
1924      $as_echo "$as_me: caught signal $ac_signal"
1925    $as_echo "$as_me: exit $exit_status"
1926  } >&5
1927  rm -f core *.core core.conftest.* &&
1928    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1929    exit $exit_status
1930' 0
1931for ac_signal in 1 2 13 15; do
1932  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1933done
1934ac_signal=0
1935
1936# confdefs.h avoids OS command line length limits that DEFS can exceed.
1937rm -f -r conftest* confdefs.h
1938
1939# Predefined preprocessor variables.
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_NAME "$PACKAGE_NAME"
1943_ACEOF
1944
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948_ACEOF
1949
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_VERSION "$PACKAGE_VERSION"
1953_ACEOF
1954
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_STRING "$PACKAGE_STRING"
1958_ACEOF
1959
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963_ACEOF
1964
1965
1966# Let the site file select an alternate cache file if it wants to.
1967# Prefer an explicitly selected file to automatically selected ones.
1968ac_site_file1=NONE
1969ac_site_file2=NONE
1970if test -n "$CONFIG_SITE"; then
1971  ac_site_file1=$CONFIG_SITE
1972elif test "x$prefix" != xNONE; then
1973  ac_site_file1=$prefix/share/config.site
1974  ac_site_file2=$prefix/etc/config.site
1975else
1976  ac_site_file1=$ac_default_prefix/share/config.site
1977  ac_site_file2=$ac_default_prefix/etc/config.site
1978fi
1979for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1980do
1981  test "x$ac_site_file" = xNONE && continue
1982  if test -r "$ac_site_file"; then
1983    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1984$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1985    sed 's/^/| /' "$ac_site_file" >&5
1986    . "$ac_site_file"
1987  fi
1988done
1989
1990if test -r "$cache_file"; then
1991  # Some versions of bash will fail to source /dev/null (special
1992  # files actually), so we avoid doing that.
1993  if test -f "$cache_file"; then
1994    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1995$as_echo "$as_me: loading cache $cache_file" >&6;}
1996    case $cache_file in
1997      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1998      *)                      . "./$cache_file";;
1999    esac
2000  fi
2001else
2002  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2003$as_echo "$as_me: creating cache $cache_file" >&6;}
2004  >$cache_file
2005fi
2006
2007# Check that the precious variables saved in the cache have kept the same
2008# value.
2009ac_cache_corrupted=false
2010for ac_var in $ac_precious_vars; do
2011  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2012  eval ac_new_set=\$ac_env_${ac_var}_set
2013  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2014  eval ac_new_val=\$ac_env_${ac_var}_value
2015  case $ac_old_set,$ac_new_set in
2016    set,)
2017      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2018$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2019      ac_cache_corrupted=: ;;
2020    ,set)
2021      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2022$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2023      ac_cache_corrupted=: ;;
2024    ,);;
2025    *)
2026      if test "x$ac_old_val" != "x$ac_new_val"; then
2027	# differences in whitespace do not lead to failure.
2028	ac_old_val_w=`echo x $ac_old_val`
2029	ac_new_val_w=`echo x $ac_new_val`
2030	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2031	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2032$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2033	  ac_cache_corrupted=:
2034	else
2035	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2036$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2037	  eval $ac_var=\$ac_old_val
2038	fi
2039	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2040$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2041	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2042$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2043      fi;;
2044  esac
2045  # Pass precious variables to config.status.
2046  if test "$ac_new_set" = set; then
2047    case $ac_new_val in
2048    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2049    *) ac_arg=$ac_var=$ac_new_val ;;
2050    esac
2051    case " $ac_configure_args " in
2052      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2053      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2054    esac
2055  fi
2056done
2057if $ac_cache_corrupted; then
2058  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2061$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2062  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2063$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2064   { (exit 1); exit 1; }; }
2065fi
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091ac_ext=c
2092ac_cpp='$CPP $CPPFLAGS'
2093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096
2097
2098
2099PIXMAPS_DIR=${prefix}/share/pixmaps
2100
2101
2102am__api_version='1.10'
2103
2104ac_aux_dir=
2105for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2106  if test -f "$ac_dir/install-sh"; then
2107    ac_aux_dir=$ac_dir
2108    ac_install_sh="$ac_aux_dir/install-sh -c"
2109    break
2110  elif test -f "$ac_dir/install.sh"; then
2111    ac_aux_dir=$ac_dir
2112    ac_install_sh="$ac_aux_dir/install.sh -c"
2113    break
2114  elif test -f "$ac_dir/shtool"; then
2115    ac_aux_dir=$ac_dir
2116    ac_install_sh="$ac_aux_dir/shtool install -c"
2117    break
2118  fi
2119done
2120if test -z "$ac_aux_dir"; then
2121  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2122$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2123   { (exit 1); exit 1; }; }
2124fi
2125
2126# These three variables are undocumented and unsupported,
2127# and are intended to be withdrawn in a future Autoconf release.
2128# They can cause serious problems if a builder's source tree is in a directory
2129# whose full name contains unusual characters.
2130ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2131ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2132ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2133
2134
2135# Find a good install program.  We prefer a C program (faster),
2136# so one script is as good as another.  But avoid the broken or
2137# incompatible versions:
2138# SysV /etc/install, /usr/sbin/install
2139# SunOS /usr/etc/install
2140# IRIX /sbin/install
2141# AIX /bin/install
2142# AmigaOS /C/install, which installs bootblocks on floppy discs
2143# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2144# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2145# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2146# OS/2's system install, which has a completely different semantic
2147# ./install, which can be erroneously created by make from ./install.sh.
2148# Reject install programs that cannot install multiple files.
2149{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2150$as_echo_n "checking for a BSD-compatible install... " >&6; }
2151if test -z "$INSTALL"; then
2152if test "${ac_cv_path_install+set}" = set; then
2153  $as_echo_n "(cached) " >&6
2154else
2155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH
2157do
2158  IFS=$as_save_IFS
2159  test -z "$as_dir" && as_dir=.
2160  # Account for people who put trailing slashes in PATH elements.
2161case $as_dir/ in
2162  ./ | .// | /cC/* | \
2163  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2164  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2165  /usr/ucb/* ) ;;
2166  *)
2167    # OSF1 and SCO ODT 3.0 have their own names for install.
2168    # Don't use installbsd from OSF since it installs stuff as root
2169    # by default.
2170    for ac_prog in ginstall scoinst install; do
2171      for ac_exec_ext in '' $ac_executable_extensions; do
2172	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2173	  if test $ac_prog = install &&
2174	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175	    # AIX install.  It has an incompatible calling convention.
2176	    :
2177	  elif test $ac_prog = install &&
2178	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2179	    # program-specific install script used by HP pwplus--don't use.
2180	    :
2181	  else
2182	    rm -rf conftest.one conftest.two conftest.dir
2183	    echo one > conftest.one
2184	    echo two > conftest.two
2185	    mkdir conftest.dir
2186	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2187	      test -s conftest.one && test -s conftest.two &&
2188	      test -s conftest.dir/conftest.one &&
2189	      test -s conftest.dir/conftest.two
2190	    then
2191	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2192	      break 3
2193	    fi
2194	  fi
2195	fi
2196      done
2197    done
2198    ;;
2199esac
2200
2201done
2202IFS=$as_save_IFS
2203
2204rm -rf conftest.one conftest.two conftest.dir
2205
2206fi
2207  if test "${ac_cv_path_install+set}" = set; then
2208    INSTALL=$ac_cv_path_install
2209  else
2210    # As a last resort, use the slow shell script.  Don't cache a
2211    # value for INSTALL within a source directory, because that will
2212    # break other packages using the cache if that directory is
2213    # removed, or if the value is a relative name.
2214    INSTALL=$ac_install_sh
2215  fi
2216fi
2217{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2218$as_echo "$INSTALL" >&6; }
2219
2220# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2221# It thinks the first close brace ends the variable substitution.
2222test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2223
2224test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2225
2226test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2227
2228{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2229$as_echo_n "checking whether build environment is sane... " >&6; }
2230# Just in case
2231sleep 1
2232echo timestamp > conftest.file
2233# Do `set' in a subshell so we don't clobber the current shell's
2234# arguments.  Must try -L first in case configure is actually a
2235# symlink; some systems play weird games with the mod time of symlinks
2236# (eg FreeBSD returns the mod time of the symlink's containing
2237# directory).
2238if (
2239   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2240   if test "$*" = "X"; then
2241      # -L didn't work.
2242      set X `ls -t $srcdir/configure conftest.file`
2243   fi
2244   rm -f conftest.file
2245   if test "$*" != "X $srcdir/configure conftest.file" \
2246      && test "$*" != "X conftest.file $srcdir/configure"; then
2247
2248      # If neither matched, then we have a broken ls.  This can happen
2249      # if, for instance, CONFIG_SHELL is bash and it inherits a
2250      # broken ls alias from the environment.  This has actually
2251      # happened.  Such a system could not be considered "sane".
2252      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2253alias in your environment" >&5
2254$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2255alias in your environment" >&2;}
2256   { (exit 1); exit 1; }; }
2257   fi
2258
2259   test "$2" = conftest.file
2260   )
2261then
2262   # Ok.
2263   :
2264else
2265   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2266Check your system clock" >&5
2267$as_echo "$as_me: error: newly created file is older than distributed files!
2268Check your system clock" >&2;}
2269   { (exit 1); exit 1; }; }
2270fi
2271{ $as_echo "$as_me:$LINENO: result: yes" >&5
2272$as_echo "yes" >&6; }
2273test "$program_prefix" != NONE &&
2274  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2275# Use a double $ so make ignores it.
2276test "$program_suffix" != NONE &&
2277  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2278# Double any \ or $.
2279# By default was `s,x,x', remove it if useless.
2280ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2281program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2282
2283# expand $ac_aux_dir to an absolute path
2284am_aux_dir=`cd $ac_aux_dir && pwd`
2285
2286test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2287# Use eval to expand $SHELL
2288if eval "$MISSING --run true"; then
2289  am_missing_run="$MISSING --run "
2290else
2291  am_missing_run=
2292  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2293$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2294fi
2295
2296{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2297$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2298if test -z "$MKDIR_P"; then
2299  if test "${ac_cv_path_mkdir+set}" = set; then
2300  $as_echo_n "(cached) " >&6
2301else
2302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2304do
2305  IFS=$as_save_IFS
2306  test -z "$as_dir" && as_dir=.
2307  for ac_prog in mkdir gmkdir; do
2308	 for ac_exec_ext in '' $ac_executable_extensions; do
2309	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2310	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2311	     'mkdir (GNU coreutils) '* | \
2312	     'mkdir (coreutils) '* | \
2313	     'mkdir (fileutils) '4.1*)
2314	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2315	       break 3;;
2316	   esac
2317	 done
2318       done
2319done
2320IFS=$as_save_IFS
2321
2322fi
2323
2324  if test "${ac_cv_path_mkdir+set}" = set; then
2325    MKDIR_P="$ac_cv_path_mkdir -p"
2326  else
2327    # As a last resort, use the slow shell script.  Don't cache a
2328    # value for MKDIR_P within a source directory, because that will
2329    # break other packages using the cache if that directory is
2330    # removed, or if the value is a relative name.
2331    test -d ./--version && rmdir ./--version
2332    MKDIR_P="$ac_install_sh -d"
2333  fi
2334fi
2335{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2336$as_echo "$MKDIR_P" >&6; }
2337
2338mkdir_p="$MKDIR_P"
2339case $mkdir_p in
2340  [\\/$]* | ?:[\\/]*) ;;
2341  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2342esac
2343
2344for ac_prog in gawk mawk nawk awk
2345do
2346  # Extract the first word of "$ac_prog", so it can be a program name with args.
2347set dummy $ac_prog; ac_word=$2
2348{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2349$as_echo_n "checking for $ac_word... " >&6; }
2350if test "${ac_cv_prog_AWK+set}" = set; then
2351  $as_echo_n "(cached) " >&6
2352else
2353  if test -n "$AWK"; then
2354  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2355else
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359  IFS=$as_save_IFS
2360  test -z "$as_dir" && as_dir=.
2361  for ac_exec_ext in '' $ac_executable_extensions; do
2362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363    ac_cv_prog_AWK="$ac_prog"
2364    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365    break 2
2366  fi
2367done
2368done
2369IFS=$as_save_IFS
2370
2371fi
2372fi
2373AWK=$ac_cv_prog_AWK
2374if test -n "$AWK"; then
2375  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2376$as_echo "$AWK" >&6; }
2377else
2378  { $as_echo "$as_me:$LINENO: result: no" >&5
2379$as_echo "no" >&6; }
2380fi
2381
2382
2383  test -n "$AWK" && break
2384done
2385
2386{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2387$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2388set x ${MAKE-make}
2389ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2390if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2391  $as_echo_n "(cached) " >&6
2392else
2393  cat >conftest.make <<\_ACEOF
2394SHELL = /bin/sh
2395all:
2396	@echo '@@@%%%=$(MAKE)=@@@%%%'
2397_ACEOF
2398# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2399case `${MAKE-make} -f conftest.make 2>/dev/null` in
2400  *@@@%%%=?*=@@@%%%*)
2401    eval ac_cv_prog_make_${ac_make}_set=yes;;
2402  *)
2403    eval ac_cv_prog_make_${ac_make}_set=no;;
2404esac
2405rm -f conftest.make
2406fi
2407if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2408  { $as_echo "$as_me:$LINENO: result: yes" >&5
2409$as_echo "yes" >&6; }
2410  SET_MAKE=
2411else
2412  { $as_echo "$as_me:$LINENO: result: no" >&5
2413$as_echo "no" >&6; }
2414  SET_MAKE="MAKE=${MAKE-make}"
2415fi
2416
2417rm -rf .tst 2>/dev/null
2418mkdir .tst 2>/dev/null
2419if test -d .tst; then
2420  am__leading_dot=.
2421else
2422  am__leading_dot=_
2423fi
2424rmdir .tst 2>/dev/null
2425
2426if test "`cd $srcdir && pwd`" != "`pwd`"; then
2427  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2428  # is not polluted with repeated "-I."
2429  am__isrc=' -I$(srcdir)'
2430  # test to see if srcdir already configured
2431  if test -f $srcdir/config.status; then
2432    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2433$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2434   { (exit 1); exit 1; }; }
2435  fi
2436fi
2437
2438# test whether we have cygpath
2439if test -z "$CYGPATH_W"; then
2440  if (cygpath --version) >/dev/null 2>/dev/null; then
2441    CYGPATH_W='cygpath -w'
2442  else
2443    CYGPATH_W=echo
2444  fi
2445fi
2446
2447
2448# Define the identity of the package.
2449 PACKAGE=gbemol
2450 VERSION=0.3.2
2451
2452
2453cat >>confdefs.h <<_ACEOF
2454#define PACKAGE "$PACKAGE"
2455_ACEOF
2456
2457
2458cat >>confdefs.h <<_ACEOF
2459#define VERSION "$VERSION"
2460_ACEOF
2461
2462# Some tools Automake needs.
2463
2464ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2465
2466
2467AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2468
2469
2470AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2471
2472
2473AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2474
2475
2476MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2477
2478install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2479
2480# Installed binaries are usually stripped using `strip' when the user
2481# run `make install-strip'.  However `strip' might not be the right
2482# tool to use in cross-compilation environments, therefore Automake
2483# will honor the `STRIP' environment variable to overrule this program.
2484if test "$cross_compiling" != no; then
2485  if test -n "$ac_tool_prefix"; then
2486  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2487set dummy ${ac_tool_prefix}strip; ac_word=$2
2488{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2489$as_echo_n "checking for $ac_word... " >&6; }
2490if test "${ac_cv_prog_STRIP+set}" = set; then
2491  $as_echo_n "(cached) " >&6
2492else
2493  if test -n "$STRIP"; then
2494  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2495else
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499  IFS=$as_save_IFS
2500  test -z "$as_dir" && as_dir=.
2501  for ac_exec_ext in '' $ac_executable_extensions; do
2502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2504    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505    break 2
2506  fi
2507done
2508done
2509IFS=$as_save_IFS
2510
2511fi
2512fi
2513STRIP=$ac_cv_prog_STRIP
2514if test -n "$STRIP"; then
2515  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2516$as_echo "$STRIP" >&6; }
2517else
2518  { $as_echo "$as_me:$LINENO: result: no" >&5
2519$as_echo "no" >&6; }
2520fi
2521
2522
2523fi
2524if test -z "$ac_cv_prog_STRIP"; then
2525  ac_ct_STRIP=$STRIP
2526  # Extract the first word of "strip", so it can be a program name with args.
2527set dummy strip; ac_word=$2
2528{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2529$as_echo_n "checking for $ac_word... " >&6; }
2530if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2531  $as_echo_n "(cached) " >&6
2532else
2533  if test -n "$ac_ct_STRIP"; then
2534  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541  for ac_exec_ext in '' $ac_executable_extensions; do
2542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543    ac_cv_prog_ac_ct_STRIP="strip"
2544    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2554if test -n "$ac_ct_STRIP"; then
2555  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2556$as_echo "$ac_ct_STRIP" >&6; }
2557else
2558  { $as_echo "$as_me:$LINENO: result: no" >&5
2559$as_echo "no" >&6; }
2560fi
2561
2562  if test "x$ac_ct_STRIP" = x; then
2563    STRIP=":"
2564  else
2565    case $cross_compiling:$ac_tool_warned in
2566yes:)
2567{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2569ac_tool_warned=yes ;;
2570esac
2571    STRIP=$ac_ct_STRIP
2572  fi
2573else
2574  STRIP="$ac_cv_prog_STRIP"
2575fi
2576
2577fi
2578INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2579
2580# We need awk for the "check" target.  The system "awk" is bad on
2581# some platforms.
2582# Always define AMTAR for backward compatibility.
2583
2584AMTAR=${AMTAR-"${am_missing_run}tar"}
2585
2586am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2587
2588
2589
2590
2591
2592ac_config_headers="$ac_config_headers config.h"
2593
2594{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2595$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2596    # Check whether --enable-maintainer-mode was given.
2597if test "${enable_maintainer_mode+set}" = set; then
2598  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2599else
2600  USE_MAINTAINER_MODE=no
2601fi
2602
2603  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2604$as_echo "$USE_MAINTAINER_MODE" >&6; }
2605   if test $USE_MAINTAINER_MODE = yes; then
2606  MAINTAINER_MODE_TRUE=
2607  MAINTAINER_MODE_FALSE='#'
2608else
2609  MAINTAINER_MODE_TRUE='#'
2610  MAINTAINER_MODE_FALSE=
2611fi
2612
2613  MAINT=$MAINTAINER_MODE_TRUE
2614
2615
2616
2617DEPDIR="${am__leading_dot}deps"
2618
2619ac_config_commands="$ac_config_commands depfiles"
2620
2621
2622am_make=${MAKE-make}
2623cat > confinc << 'END'
2624am__doit:
2625	@echo done
2626.PHONY: am__doit
2627END
2628# If we don't find an include directive, just comment out the code.
2629{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2630$as_echo_n "checking for style of include used by $am_make... " >&6; }
2631am__include="#"
2632am__quote=
2633_am_result=none
2634# First try GNU make style include.
2635echo "include confinc" > confmf
2636# We grep out `Entering directory' and `Leaving directory'
2637# messages which can occur if `w' ends up in MAKEFLAGS.
2638# In particular we don't look at `^make:' because GNU make might
2639# be invoked under some other name (usually "gmake"), in which
2640# case it prints its new name instead of `make'.
2641if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2642   am__include=include
2643   am__quote=
2644   _am_result=GNU
2645fi
2646# Now try BSD make style include.
2647if test "$am__include" = "#"; then
2648   echo '.include "confinc"' > confmf
2649   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2650      am__include=.include
2651      am__quote="\""
2652      _am_result=BSD
2653   fi
2654fi
2655
2656
2657{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2658$as_echo "$_am_result" >&6; }
2659rm -f confinc confmf
2660
2661# Check whether --enable-dependency-tracking was given.
2662if test "${enable_dependency_tracking+set}" = set; then
2663  enableval=$enable_dependency_tracking;
2664fi
2665
2666if test "x$enable_dependency_tracking" != xno; then
2667  am_depcomp="$ac_aux_dir/depcomp"
2668  AMDEPBACKSLASH='\'
2669fi
2670 if test "x$enable_dependency_tracking" != xno; then
2671  AMDEP_TRUE=
2672  AMDEP_FALSE='#'
2673else
2674  AMDEP_TRUE='#'
2675  AMDEP_FALSE=
2676fi
2677
2678
2679ac_ext=c
2680ac_cpp='$CPP $CPPFLAGS'
2681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684if test -n "$ac_tool_prefix"; then
2685  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2686set dummy ${ac_tool_prefix}gcc; ac_word=$2
2687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if test "${ac_cv_prog_CC+set}" = set; then
2690  $as_echo_n "(cached) " >&6
2691else
2692  if test -n "$CC"; then
2693  ac_cv_prog_CC="$CC" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700  for ac_exec_ext in '' $ac_executable_extensions; do
2701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2703    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712CC=$ac_cv_prog_CC
2713if test -n "$CC"; then
2714  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2715$as_echo "$CC" >&6; }
2716else
2717  { $as_echo "$as_me:$LINENO: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721
2722fi
2723if test -z "$ac_cv_prog_CC"; then
2724  ac_ct_CC=$CC
2725  # Extract the first word of "gcc", so it can be a program name with args.
2726set dummy gcc; ac_word=$2
2727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
2729if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2730  $as_echo_n "(cached) " >&6
2731else
2732  if test -n "$ac_ct_CC"; then
2733  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738  IFS=$as_save_IFS
2739  test -z "$as_dir" && as_dir=.
2740  for ac_exec_ext in '' $ac_executable_extensions; do
2741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742    ac_cv_prog_ac_ct_CC="gcc"
2743    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744    break 2
2745  fi
2746done
2747done
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752ac_ct_CC=$ac_cv_prog_ac_ct_CC
2753if test -n "$ac_ct_CC"; then
2754  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2755$as_echo "$ac_ct_CC" >&6; }
2756else
2757  { $as_echo "$as_me:$LINENO: result: no" >&5
2758$as_echo "no" >&6; }
2759fi
2760
2761  if test "x$ac_ct_CC" = x; then
2762    CC=""
2763  else
2764    case $cross_compiling:$ac_tool_warned in
2765yes:)
2766{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768ac_tool_warned=yes ;;
2769esac
2770    CC=$ac_ct_CC
2771  fi
2772else
2773  CC="$ac_cv_prog_CC"
2774fi
2775
2776if test -z "$CC"; then
2777          if test -n "$ac_tool_prefix"; then
2778    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2779set dummy ${ac_tool_prefix}cc; ac_word=$2
2780{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
2782if test "${ac_cv_prog_CC+set}" = set; then
2783  $as_echo_n "(cached) " >&6
2784else
2785  if test -n "$CC"; then
2786  ac_cv_prog_CC="$CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793  for ac_exec_ext in '' $ac_executable_extensions; do
2794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795    ac_cv_prog_CC="${ac_tool_prefix}cc"
2796    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797    break 2
2798  fi
2799done
2800done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805CC=$ac_cv_prog_CC
2806if test -n "$CC"; then
2807  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2808$as_echo "$CC" >&6; }
2809else
2810  { $as_echo "$as_me:$LINENO: result: no" >&5
2811$as_echo "no" >&6; }
2812fi
2813
2814
2815  fi
2816fi
2817if test -z "$CC"; then
2818  # Extract the first word of "cc", so it can be a program name with args.
2819set dummy cc; ac_word=$2
2820{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if test "${ac_cv_prog_CC+set}" = set; then
2823  $as_echo_n "(cached) " >&6
2824else
2825  if test -n "$CC"; then
2826  ac_cv_prog_CC="$CC" # Let the user override the test.
2827else
2828  ac_prog_rejected=no
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832  IFS=$as_save_IFS
2833  test -z "$as_dir" && as_dir=.
2834  for ac_exec_ext in '' $ac_executable_extensions; do
2835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2837       ac_prog_rejected=yes
2838       continue
2839     fi
2840    ac_cv_prog_CC="cc"
2841    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845done
2846IFS=$as_save_IFS
2847
2848if test $ac_prog_rejected = yes; then
2849  # We found a bogon in the path, so make sure we never use it.
2850  set dummy $ac_cv_prog_CC
2851  shift
2852  if test $# != 0; then
2853    # We chose a different compiler from the bogus one.
2854    # However, it has the same basename, so the bogon will be chosen
2855    # first if we set CC to just the basename; use the full file name.
2856    shift
2857    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2858  fi
2859fi
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2865$as_echo "$CC" >&6; }
2866else
2867  { $as_echo "$as_me:$LINENO: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871
2872fi
2873if test -z "$CC"; then
2874  if test -n "$ac_tool_prefix"; then
2875  for ac_prog in cl.exe
2876  do
2877    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2879{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if test "${ac_cv_prog_CC+set}" = set; then
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test -n "$CC"; then
2885  ac_cv_prog_CC="$CC" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892  for ac_exec_ext in '' $ac_executable_extensions; do
2893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2895    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904CC=$ac_cv_prog_CC
2905if test -n "$CC"; then
2906  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2907$as_echo "$CC" >&6; }
2908else
2909  { $as_echo "$as_me:$LINENO: result: no" >&5
2910$as_echo "no" >&6; }
2911fi
2912
2913
2914    test -n "$CC" && break
2915  done
2916fi
2917if test -z "$CC"; then
2918  ac_ct_CC=$CC
2919  for ac_prog in cl.exe
2920do
2921  # Extract the first word of "$ac_prog", so it can be a program name with args.
2922set dummy $ac_prog; ac_word=$2
2923{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2924$as_echo_n "checking for $ac_word... " >&6; }
2925if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2926  $as_echo_n "(cached) " >&6
2927else
2928  if test -n "$ac_ct_CC"; then
2929  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930else
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934  IFS=$as_save_IFS
2935  test -z "$as_dir" && as_dir=.
2936  for ac_exec_ext in '' $ac_executable_extensions; do
2937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938    ac_cv_prog_ac_ct_CC="$ac_prog"
2939    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943done
2944IFS=$as_save_IFS
2945
2946fi
2947fi
2948ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949if test -n "$ac_ct_CC"; then
2950  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2951$as_echo "$ac_ct_CC" >&6; }
2952else
2953  { $as_echo "$as_me:$LINENO: result: no" >&5
2954$as_echo "no" >&6; }
2955fi
2956
2957
2958  test -n "$ac_ct_CC" && break
2959done
2960
2961  if test "x$ac_ct_CC" = x; then
2962    CC=""
2963  else
2964    case $cross_compiling:$ac_tool_warned in
2965yes:)
2966{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968ac_tool_warned=yes ;;
2969esac
2970    CC=$ac_ct_CC
2971  fi
2972fi
2973
2974fi
2975
2976
2977test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2980See \`config.log' for more details." >&5
2981$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2982See \`config.log' for more details." >&2;}
2983   { (exit 1); exit 1; }; }; }
2984
2985# Provide some information about the compiler.
2986$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2987set X $ac_compile
2988ac_compiler=$2
2989{ (ac_try="$ac_compiler --version >&5"
2990case "(($ac_try" in
2991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992  *) ac_try_echo=$ac_try;;
2993esac
2994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2995$as_echo "$ac_try_echo") >&5
2996  (eval "$ac_compiler --version >&5") 2>&5
2997  ac_status=$?
2998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }
3000{ (ac_try="$ac_compiler -v >&5"
3001case "(($ac_try" in
3002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003  *) ac_try_echo=$ac_try;;
3004esac
3005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006$as_echo "$ac_try_echo") >&5
3007  (eval "$ac_compiler -v >&5") 2>&5
3008  ac_status=$?
3009  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }
3011{ (ac_try="$ac_compiler -V >&5"
3012case "(($ac_try" in
3013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014  *) ac_try_echo=$ac_try;;
3015esac
3016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3017$as_echo "$ac_try_echo") >&5
3018  (eval "$ac_compiler -V >&5") 2>&5
3019  ac_status=$?
3020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }
3022
3023cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h.  */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h.  */
3029
3030int
3031main ()
3032{
3033
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038ac_clean_files_save=$ac_clean_files
3039ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3040# Try to create an executable without -o first, disregard a.out.
3041# It will help us diagnose broken compilers, and finding out an intuition
3042# of exeext.
3043{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3044$as_echo_n "checking for C compiler default output file name... " >&6; }
3045ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046
3047# The possible output files:
3048ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3049
3050ac_rmfiles=
3051for ac_file in $ac_files
3052do
3053  case $ac_file in
3054    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3055    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3056  esac
3057done
3058rm -f $ac_rmfiles
3059
3060if { (ac_try="$ac_link_default"
3061case "(($ac_try" in
3062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063  *) ac_try_echo=$ac_try;;
3064esac
3065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3066$as_echo "$ac_try_echo") >&5
3067  (eval "$ac_link_default") 2>&5
3068  ac_status=$?
3069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070  (exit $ac_status); }; then
3071  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3072# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3073# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3074# so that the user can short-circuit this test for compilers unknown to
3075# Autoconf.
3076for ac_file in $ac_files ''
3077do
3078  test -f "$ac_file" || continue
3079  case $ac_file in
3080    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3081	;;
3082    [ab].out )
3083	# We found the default executable, but exeext='' is most
3084	# certainly right.
3085	break;;
3086    *.* )
3087        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3088	then :; else
3089	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090	fi
3091	# We set ac_cv_exeext here because the later test for it is not
3092	# safe: cross compilers may not add the suffix if given an `-o'
3093	# argument, so we may need to know it at that point already.
3094	# Even if this section looks crufty: it has the advantage of
3095	# actually working.
3096	break;;
3097    * )
3098	break;;
3099  esac
3100done
3101test "$ac_cv_exeext" = no && ac_cv_exeext=
3102
3103else
3104  ac_file=''
3105fi
3106
3107{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3108$as_echo "$ac_file" >&6; }
3109if test -z "$ac_file"; then
3110  $as_echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3116See \`config.log' for more details." >&5
3117$as_echo "$as_me: error: C compiler cannot create executables
3118See \`config.log' for more details." >&2;}
3119   { (exit 77); exit 77; }; }; }
3120fi
3121
3122ac_exeext=$ac_cv_exeext
3123
3124# Check that the compiler produces executables we can run.  If not, either
3125# the compiler is broken, or we cross compile.
3126{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3127$as_echo_n "checking whether the C compiler works... " >&6; }
3128# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3129# If not cross compiling, check that we can run a simple program.
3130if test "$cross_compiling" != yes; then
3131  if { ac_try='./$ac_file'
3132  { (case "(($ac_try" in
3133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134  *) ac_try_echo=$ac_try;;
3135esac
3136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3137$as_echo "$ac_try_echo") >&5
3138  (eval "$ac_try") 2>&5
3139  ac_status=$?
3140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }; }; then
3142    cross_compiling=no
3143  else
3144    if test "$cross_compiling" = maybe; then
3145	cross_compiling=yes
3146    else
3147	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3150If you meant to cross compile, use \`--host'.
3151See \`config.log' for more details." >&5
3152$as_echo "$as_me: error: cannot run C compiled programs.
3153If you meant to cross compile, use \`--host'.
3154See \`config.log' for more details." >&2;}
3155   { (exit 1); exit 1; }; }; }
3156    fi
3157  fi
3158fi
3159{ $as_echo "$as_me:$LINENO: result: yes" >&5
3160$as_echo "yes" >&6; }
3161
3162rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3163ac_clean_files=$ac_clean_files_save
3164# Check that the compiler produces executables we can run.  If not, either
3165# the compiler is broken, or we cross compile.
3166{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3167$as_echo_n "checking whether we are cross compiling... " >&6; }
3168{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3169$as_echo "$cross_compiling" >&6; }
3170
3171{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3172$as_echo_n "checking for suffix of executables... " >&6; }
3173if { (ac_try="$ac_link"
3174case "(($ac_try" in
3175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176  *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179$as_echo "$ac_try_echo") >&5
3180  (eval "$ac_link") 2>&5
3181  ac_status=$?
3182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }; then
3184  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3185# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3186# work properly (i.e., refer to `conftest.exe'), while it won't with
3187# `rm'.
3188for ac_file in conftest.exe conftest conftest.*; do
3189  test -f "$ac_file" || continue
3190  case $ac_file in
3191    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3193	  break;;
3194    * ) break;;
3195  esac
3196done
3197else
3198  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3201See \`config.log' for more details." >&5
3202$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3203See \`config.log' for more details." >&2;}
3204   { (exit 1); exit 1; }; }; }
3205fi
3206
3207rm -f conftest$ac_cv_exeext
3208{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3209$as_echo "$ac_cv_exeext" >&6; }
3210
3211rm -f conftest.$ac_ext
3212EXEEXT=$ac_cv_exeext
3213ac_exeext=$EXEEXT
3214{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3215$as_echo_n "checking for suffix of object files... " >&6; }
3216if test "${ac_cv_objext+set}" = set; then
3217  $as_echo_n "(cached) " >&6
3218else
3219  cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h.  */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h.  */
3225
3226int
3227main ()
3228{
3229
3230  ;
3231  return 0;
3232}
3233_ACEOF
3234rm -f conftest.o conftest.obj
3235if { (ac_try="$ac_compile"
3236case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241$as_echo "$ac_try_echo") >&5
3242  (eval "$ac_compile") 2>&5
3243  ac_status=$?
3244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245  (exit $ac_status); }; then
3246  for ac_file in conftest.o conftest.obj conftest.*; do
3247  test -f "$ac_file" || continue;
3248  case $ac_file in
3249    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3250    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3251       break;;
3252  esac
3253done
3254else
3255  $as_echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3261See \`config.log' for more details." >&5
3262$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3263See \`config.log' for more details." >&2;}
3264   { (exit 1); exit 1; }; }; }
3265fi
3266
3267rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268fi
3269{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3270$as_echo "$ac_cv_objext" >&6; }
3271OBJEXT=$ac_cv_objext
3272ac_objext=$OBJEXT
3273{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3274$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3275if test "${ac_cv_c_compiler_gnu+set}" = set; then
3276  $as_echo_n "(cached) " >&6
3277else
3278  cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h.  */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h.  */
3284
3285int
3286main ()
3287{
3288#ifndef __GNUC__
3289       choke me
3290#endif
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296rm -f conftest.$ac_objext
3297if { (ac_try="$ac_compile"
3298case "(($ac_try" in
3299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300  *) ac_try_echo=$ac_try;;
3301esac
3302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303$as_echo "$ac_try_echo") >&5
3304  (eval "$ac_compile") 2>conftest.er1
3305  ac_status=$?
3306  grep -v '^ *+' conftest.er1 >conftest.err
3307  rm -f conftest.er1
3308  cat conftest.err >&5
3309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310  (exit $ac_status); } && {
3311	 test -z "$ac_c_werror_flag" ||
3312	 test ! -s conftest.err
3313       } && test -s conftest.$ac_objext; then
3314  ac_compiler_gnu=yes
3315else
3316  $as_echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319	ac_compiler_gnu=no
3320fi
3321
3322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323ac_cv_c_compiler_gnu=$ac_compiler_gnu
3324
3325fi
3326{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3327$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3328if test $ac_compiler_gnu = yes; then
3329  GCC=yes
3330else
3331  GCC=
3332fi
3333ac_test_CFLAGS=${CFLAGS+set}
3334ac_save_CFLAGS=$CFLAGS
3335{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3336$as_echo_n "checking whether $CC accepts -g... " >&6; }
3337if test "${ac_cv_prog_cc_g+set}" = set; then
3338  $as_echo_n "(cached) " >&6
3339else
3340  ac_save_c_werror_flag=$ac_c_werror_flag
3341   ac_c_werror_flag=yes
3342   ac_cv_prog_cc_g=no
3343   CFLAGS="-g"
3344   cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h.  */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h.  */
3350
3351int
3352main ()
3353{
3354
3355  ;
3356  return 0;
3357}
3358_ACEOF
3359rm -f conftest.$ac_objext
3360if { (ac_try="$ac_compile"
3361case "(($ac_try" in
3362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363  *) ac_try_echo=$ac_try;;
3364esac
3365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366$as_echo "$ac_try_echo") >&5
3367  (eval "$ac_compile") 2>conftest.er1
3368  ac_status=$?
3369  grep -v '^ *+' conftest.er1 >conftest.err
3370  rm -f conftest.er1
3371  cat conftest.err >&5
3372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373  (exit $ac_status); } && {
3374	 test -z "$ac_c_werror_flag" ||
3375	 test ! -s conftest.err
3376       } && test -s conftest.$ac_objext; then
3377  ac_cv_prog_cc_g=yes
3378else
3379  $as_echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382	CFLAGS=""
3383      cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h.  */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h.  */
3389
3390int
3391main ()
3392{
3393
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398rm -f conftest.$ac_objext
3399if { (ac_try="$ac_compile"
3400case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405$as_echo "$ac_try_echo") >&5
3406  (eval "$ac_compile") 2>conftest.er1
3407  ac_status=$?
3408  grep -v '^ *+' conftest.er1 >conftest.err
3409  rm -f conftest.er1
3410  cat conftest.err >&5
3411  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412  (exit $ac_status); } && {
3413	 test -z "$ac_c_werror_flag" ||
3414	 test ! -s conftest.err
3415       } && test -s conftest.$ac_objext; then
3416  :
3417else
3418  $as_echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421	ac_c_werror_flag=$ac_save_c_werror_flag
3422	 CFLAGS="-g"
3423	 cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h.  */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h.  */
3429
3430int
3431main ()
3432{
3433
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext
3439if { (ac_try="$ac_compile"
3440case "(($ac_try" in
3441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442  *) ac_try_echo=$ac_try;;
3443esac
3444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445$as_echo "$ac_try_echo") >&5
3446  (eval "$ac_compile") 2>conftest.er1
3447  ac_status=$?
3448  grep -v '^ *+' conftest.er1 >conftest.err
3449  rm -f conftest.er1
3450  cat conftest.err >&5
3451  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); } && {
3453	 test -z "$ac_c_werror_flag" ||
3454	 test ! -s conftest.err
3455       } && test -s conftest.$ac_objext; then
3456  ac_cv_prog_cc_g=yes
3457else
3458  $as_echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461
3462fi
3463
3464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465fi
3466
3467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468fi
3469
3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471   ac_c_werror_flag=$ac_save_c_werror_flag
3472fi
3473{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474$as_echo "$ac_cv_prog_cc_g" >&6; }
3475if test "$ac_test_CFLAGS" = set; then
3476  CFLAGS=$ac_save_CFLAGS
3477elif test $ac_cv_prog_cc_g = yes; then
3478  if test "$GCC" = yes; then
3479    CFLAGS="-g -O2"
3480  else
3481    CFLAGS="-g"
3482  fi
3483else
3484  if test "$GCC" = yes; then
3485    CFLAGS="-O2"
3486  else
3487    CFLAGS=
3488  fi
3489fi
3490{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3491$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3492if test "${ac_cv_prog_cc_c89+set}" = set; then
3493  $as_echo_n "(cached) " >&6
3494else
3495  ac_cv_prog_cc_c89=no
3496ac_save_CC=$CC
3497cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h.  */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h.  */
3503#include <stdarg.h>
3504#include <stdio.h>
3505#include <sys/types.h>
3506#include <sys/stat.h>
3507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3508struct buf { int x; };
3509FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510static char *e (p, i)
3511     char **p;
3512     int i;
3513{
3514  return p[i];
3515}
3516static char *f (char * (*g) (char **, int), char **p, ...)
3517{
3518  char *s;
3519  va_list v;
3520  va_start (v,p);
3521  s = g (p, va_arg (v,int));
3522  va_end (v);
3523  return s;
3524}
3525
3526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3527   function prototypes and stuff, but not '\xHH' hex character constants.
3528   These don't provoke an error unfortunately, instead are silently treated
3529   as 'x'.  The following induces an error, until -std is added to get
3530   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3531   array size at least.  It's necessary to write '\x00'==0 to get something
3532   that's true only with -std.  */
3533int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
3535/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3536   inside strings and character constants.  */
3537#define FOO(x) 'x'
3538int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3539
3540int test (int i, double x);
3541struct s1 {int (*f) (int a);};
3542struct s2 {int (*f) (double a);};
3543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3544int argc;
3545char **argv;
3546int
3547main ()
3548{
3549return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3555	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3556do
3557  CC="$ac_save_CC $ac_arg"
3558  rm -f conftest.$ac_objext
3559if { (ac_try="$ac_compile"
3560case "(($ac_try" in
3561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562  *) ac_try_echo=$ac_try;;
3563esac
3564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565$as_echo "$ac_try_echo") >&5
3566  (eval "$ac_compile") 2>conftest.er1
3567  ac_status=$?
3568  grep -v '^ *+' conftest.er1 >conftest.err
3569  rm -f conftest.er1
3570  cat conftest.err >&5
3571  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); } && {
3573	 test -z "$ac_c_werror_flag" ||
3574	 test ! -s conftest.err
3575       } && test -s conftest.$ac_objext; then
3576  ac_cv_prog_cc_c89=$ac_arg
3577else
3578  $as_echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581
3582fi
3583
3584rm -f core conftest.err conftest.$ac_objext
3585  test "x$ac_cv_prog_cc_c89" != "xno" && break
3586done
3587rm -f conftest.$ac_ext
3588CC=$ac_save_CC
3589
3590fi
3591# AC_CACHE_VAL
3592case "x$ac_cv_prog_cc_c89" in
3593  x)
3594    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3595$as_echo "none needed" >&6; } ;;
3596  xno)
3597    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3598$as_echo "unsupported" >&6; } ;;
3599  *)
3600    CC="$CC $ac_cv_prog_cc_c89"
3601    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3602$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3603esac
3604
3605
3606ac_ext=c
3607ac_cpp='$CPP $CPPFLAGS'
3608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611
3612depcc="$CC"   am_compiler_list=
3613
3614{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3615$as_echo_n "checking dependency style of $depcc... " >&6; }
3616if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3617  $as_echo_n "(cached) " >&6
3618else
3619  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3620  # We make a subdir and do the tests there.  Otherwise we can end up
3621  # making bogus files that we don't know about and never remove.  For
3622  # instance it was reported that on HP-UX the gcc test will end up
3623  # making a dummy file named `D' -- because `-MD' means `put the output
3624  # in D'.
3625  mkdir conftest.dir
3626  # Copy depcomp to subdir because otherwise we won't find it if we're
3627  # using a relative directory.
3628  cp "$am_depcomp" conftest.dir
3629  cd conftest.dir
3630  # We will build objects and dependencies in a subdirectory because
3631  # it helps to detect inapplicable dependency modes.  For instance
3632  # both Tru64's cc and ICC support -MD to output dependencies as a
3633  # side effect of compilation, but ICC will put the dependencies in
3634  # the current directory while Tru64 will put them in the object
3635  # directory.
3636  mkdir sub
3637
3638  am_cv_CC_dependencies_compiler_type=none
3639  if test "$am_compiler_list" = ""; then
3640     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641  fi
3642  for depmode in $am_compiler_list; do
3643    # Setup a source with many dependencies, because some compilers
3644    # like to wrap large dependency lists on column 80 (with \), and
3645    # we should not choose a depcomp mode which is confused by this.
3646    #
3647    # We need to recreate these files for each test, as the compiler may
3648    # overwrite some of them when testing with obscure command lines.
3649    # This happens at least with the AIX C compiler.
3650    : > sub/conftest.c
3651    for i in 1 2 3 4 5 6; do
3652      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3654      # Solaris 8's {/usr,}/bin/sh.
3655      touch sub/conftst$i.h
3656    done
3657    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3658
3659    case $depmode in
3660    nosideeffect)
3661      # after this tag, mechanisms are not by side-effect, so they'll
3662      # only be used when explicitly requested
3663      if test "x$enable_dependency_tracking" = xyes; then
3664	continue
3665      else
3666	break
3667      fi
3668      ;;
3669    none) break ;;
3670    esac
3671    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3672    # mode.  It turns out that the SunPro C++ compiler does not properly
3673    # handle `-M -o', and we need to detect this.
3674    if depmode=$depmode \
3675       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3676       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3677       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3678         >/dev/null 2>conftest.err &&
3679       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3680       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3681       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3682       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3683      # icc doesn't choke on unknown options, it will just issue warnings
3684      # or remarks (even with -Werror).  So we grep stderr for any message
3685      # that says an option was ignored or not supported.
3686      # When given -MP, icc 7.0 and 7.1 complain thusly:
3687      #   icc: Command line warning: ignoring option '-M'; no argument required
3688      # The diagnosis changed in icc 8.0:
3689      #   icc: Command line remark: option '-MP' not supported
3690      if (grep 'ignoring option' conftest.err ||
3691          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3692        am_cv_CC_dependencies_compiler_type=$depmode
3693        break
3694      fi
3695    fi
3696  done
3697
3698  cd ..
3699  rm -rf conftest.dir
3700else
3701  am_cv_CC_dependencies_compiler_type=none
3702fi
3703
3704fi
3705{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3706$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3707CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3708
3709 if
3710  test "x$enable_dependency_tracking" != xno \
3711  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3712  am__fastdepCC_TRUE=
3713  am__fastdepCC_FALSE='#'
3714else
3715  am__fastdepCC_TRUE='#'
3716  am__fastdepCC_FALSE=
3717fi
3718
3719
3720
3721{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3722$as_echo_n "checking for library containing strerror... " >&6; }
3723if test "${ac_cv_search_strerror+set}" = set; then
3724  $as_echo_n "(cached) " >&6
3725else
3726  ac_func_search_save_LIBS=$LIBS
3727cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h.  */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h.  */
3733
3734/* Override any GCC internal prototype to avoid an error.
3735   Use char because int might match the return type of a GCC
3736   builtin and then its argument prototype would still apply.  */
3737#ifdef __cplusplus
3738extern "C"
3739#endif
3740char strerror ();
3741int
3742main ()
3743{
3744return strerror ();
3745  ;
3746  return 0;
3747}
3748_ACEOF
3749for ac_lib in '' cposix; do
3750  if test -z "$ac_lib"; then
3751    ac_res="none required"
3752  else
3753    ac_res=-l$ac_lib
3754    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3755  fi
3756  rm -f conftest.$ac_objext conftest$ac_exeext
3757if { (ac_try="$ac_link"
3758case "(($ac_try" in
3759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760  *) ac_try_echo=$ac_try;;
3761esac
3762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763$as_echo "$ac_try_echo") >&5
3764  (eval "$ac_link") 2>conftest.er1
3765  ac_status=$?
3766  grep -v '^ *+' conftest.er1 >conftest.err
3767  rm -f conftest.er1
3768  cat conftest.err >&5
3769  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770  (exit $ac_status); } && {
3771	 test -z "$ac_c_werror_flag" ||
3772	 test ! -s conftest.err
3773       } && test -s conftest$ac_exeext && {
3774	 test "$cross_compiling" = yes ||
3775	 $as_test_x conftest$ac_exeext
3776       }; then
3777  ac_cv_search_strerror=$ac_res
3778else
3779  $as_echo "$as_me: failed program was:" >&5
3780sed 's/^/| /' conftest.$ac_ext >&5
3781
3782
3783fi
3784
3785rm -rf conftest.dSYM
3786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3787      conftest$ac_exeext
3788  if test "${ac_cv_search_strerror+set}" = set; then
3789  break
3790fi
3791done
3792if test "${ac_cv_search_strerror+set}" = set; then
3793  :
3794else
3795  ac_cv_search_strerror=no
3796fi
3797rm conftest.$ac_ext
3798LIBS=$ac_func_search_save_LIBS
3799fi
3800{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3801$as_echo "$ac_cv_search_strerror" >&6; }
3802ac_res=$ac_cv_search_strerror
3803if test "$ac_res" != no; then
3804  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3805
3806fi
3807
3808ac_ext=c
3809ac_cpp='$CPP $CPPFLAGS'
3810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813if test -n "$ac_tool_prefix"; then
3814  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3815set dummy ${ac_tool_prefix}gcc; ac_word=$2
3816{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3817$as_echo_n "checking for $ac_word... " >&6; }
3818if test "${ac_cv_prog_CC+set}" = set; then
3819  $as_echo_n "(cached) " >&6
3820else
3821  if test -n "$CC"; then
3822  ac_cv_prog_CC="$CC" # Let the user override the test.
3823else
3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825for as_dir in $PATH
3826do
3827  IFS=$as_save_IFS
3828  test -z "$as_dir" && as_dir=.
3829  for ac_exec_ext in '' $ac_executable_extensions; do
3830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3831    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3832    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833    break 2
3834  fi
3835done
3836done
3837IFS=$as_save_IFS
3838
3839fi
3840fi
3841CC=$ac_cv_prog_CC
3842if test -n "$CC"; then
3843  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3844$as_echo "$CC" >&6; }
3845else
3846  { $as_echo "$as_me:$LINENO: result: no" >&5
3847$as_echo "no" >&6; }
3848fi
3849
3850
3851fi
3852if test -z "$ac_cv_prog_CC"; then
3853  ac_ct_CC=$CC
3854  # Extract the first word of "gcc", so it can be a program name with args.
3855set dummy gcc; ac_word=$2
3856{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3857$as_echo_n "checking for $ac_word... " >&6; }
3858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3859  $as_echo_n "(cached) " >&6
3860else
3861  if test -n "$ac_ct_CC"; then
3862  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867  IFS=$as_save_IFS
3868  test -z "$as_dir" && as_dir=.
3869  for ac_exec_ext in '' $ac_executable_extensions; do
3870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871    ac_cv_prog_ac_ct_CC="gcc"
3872    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873    break 2
3874  fi
3875done
3876done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881ac_ct_CC=$ac_cv_prog_ac_ct_CC
3882if test -n "$ac_ct_CC"; then
3883  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3884$as_echo "$ac_ct_CC" >&6; }
3885else
3886  { $as_echo "$as_me:$LINENO: result: no" >&5
3887$as_echo "no" >&6; }
3888fi
3889
3890  if test "x$ac_ct_CC" = x; then
3891    CC=""
3892  else
3893    case $cross_compiling:$ac_tool_warned in
3894yes:)
3895{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3897ac_tool_warned=yes ;;
3898esac
3899    CC=$ac_ct_CC
3900  fi
3901else
3902  CC="$ac_cv_prog_CC"
3903fi
3904
3905if test -z "$CC"; then
3906          if test -n "$ac_tool_prefix"; then
3907    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3908set dummy ${ac_tool_prefix}cc; ac_word=$2
3909{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3910$as_echo_n "checking for $ac_word... " >&6; }
3911if test "${ac_cv_prog_CC+set}" = set; then
3912  $as_echo_n "(cached) " >&6
3913else
3914  if test -n "$CC"; then
3915  ac_cv_prog_CC="$CC" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920  IFS=$as_save_IFS
3921  test -z "$as_dir" && as_dir=.
3922  for ac_exec_ext in '' $ac_executable_extensions; do
3923  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3924    ac_cv_prog_CC="${ac_tool_prefix}cc"
3925    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926    break 2
3927  fi
3928done
3929done
3930IFS=$as_save_IFS
3931
3932fi
3933fi
3934CC=$ac_cv_prog_CC
3935if test -n "$CC"; then
3936  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3937$as_echo "$CC" >&6; }
3938else
3939  { $as_echo "$as_me:$LINENO: result: no" >&5
3940$as_echo "no" >&6; }
3941fi
3942
3943
3944  fi
3945fi
3946if test -z "$CC"; then
3947  # Extract the first word of "cc", so it can be a program name with args.
3948set dummy cc; ac_word=$2
3949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3950$as_echo_n "checking for $ac_word... " >&6; }
3951if test "${ac_cv_prog_CC+set}" = set; then
3952  $as_echo_n "(cached) " >&6
3953else
3954  if test -n "$CC"; then
3955  ac_cv_prog_CC="$CC" # Let the user override the test.
3956else
3957  ac_prog_rejected=no
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961  IFS=$as_save_IFS
3962  test -z "$as_dir" && as_dir=.
3963  for ac_exec_ext in '' $ac_executable_extensions; do
3964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3965    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3966       ac_prog_rejected=yes
3967       continue
3968     fi
3969    ac_cv_prog_CC="cc"
3970    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971    break 2
3972  fi
3973done
3974done
3975IFS=$as_save_IFS
3976
3977if test $ac_prog_rejected = yes; then
3978  # We found a bogon in the path, so make sure we never use it.
3979  set dummy $ac_cv_prog_CC
3980  shift
3981  if test $# != 0; then
3982    # We chose a different compiler from the bogus one.
3983    # However, it has the same basename, so the bogon will be chosen
3984    # first if we set CC to just the basename; use the full file name.
3985    shift
3986    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3987  fi
3988fi
3989fi
3990fi
3991CC=$ac_cv_prog_CC
3992if test -n "$CC"; then
3993  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3994$as_echo "$CC" >&6; }
3995else
3996  { $as_echo "$as_me:$LINENO: result: no" >&5
3997$as_echo "no" >&6; }
3998fi
3999
4000
4001fi
4002if test -z "$CC"; then
4003  if test -n "$ac_tool_prefix"; then
4004  for ac_prog in cl.exe
4005  do
4006    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4008{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
4010if test "${ac_cv_prog_CC+set}" = set; then
4011  $as_echo_n "(cached) " >&6
4012else
4013  if test -n "$CC"; then
4014  ac_cv_prog_CC="$CC" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019  IFS=$as_save_IFS
4020  test -z "$as_dir" && as_dir=.
4021  for ac_exec_ext in '' $ac_executable_extensions; do
4022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4024    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025    break 2
4026  fi
4027done
4028done
4029IFS=$as_save_IFS
4030
4031fi
4032fi
4033CC=$ac_cv_prog_CC
4034if test -n "$CC"; then
4035  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4036$as_echo "$CC" >&6; }
4037else
4038  { $as_echo "$as_me:$LINENO: result: no" >&5
4039$as_echo "no" >&6; }
4040fi
4041
4042
4043    test -n "$CC" && break
4044  done
4045fi
4046if test -z "$CC"; then
4047  ac_ct_CC=$CC
4048  for ac_prog in cl.exe
4049do
4050  # Extract the first word of "$ac_prog", so it can be a program name with args.
4051set dummy $ac_prog; ac_word=$2
4052{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4053$as_echo_n "checking for $ac_word... " >&6; }
4054if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4055  $as_echo_n "(cached) " >&6
4056else
4057  if test -n "$ac_ct_CC"; then
4058  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4059else
4060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH
4062do
4063  IFS=$as_save_IFS
4064  test -z "$as_dir" && as_dir=.
4065  for ac_exec_ext in '' $ac_executable_extensions; do
4066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4067    ac_cv_prog_ac_ct_CC="$ac_prog"
4068    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069    break 2
4070  fi
4071done
4072done
4073IFS=$as_save_IFS
4074
4075fi
4076fi
4077ac_ct_CC=$ac_cv_prog_ac_ct_CC
4078if test -n "$ac_ct_CC"; then
4079  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4080$as_echo "$ac_ct_CC" >&6; }
4081else
4082  { $as_echo "$as_me:$LINENO: result: no" >&5
4083$as_echo "no" >&6; }
4084fi
4085
4086
4087  test -n "$ac_ct_CC" && break
4088done
4089
4090  if test "x$ac_ct_CC" = x; then
4091    CC=""
4092  else
4093    case $cross_compiling:$ac_tool_warned in
4094yes:)
4095{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4097ac_tool_warned=yes ;;
4098esac
4099    CC=$ac_ct_CC
4100  fi
4101fi
4102
4103fi
4104
4105
4106test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4108{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4109See \`config.log' for more details." >&5
4110$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4111See \`config.log' for more details." >&2;}
4112   { (exit 1); exit 1; }; }; }
4113
4114# Provide some information about the compiler.
4115$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4116set X $ac_compile
4117ac_compiler=$2
4118{ (ac_try="$ac_compiler --version >&5"
4119case "(($ac_try" in
4120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121  *) ac_try_echo=$ac_try;;
4122esac
4123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4124$as_echo "$ac_try_echo") >&5
4125  (eval "$ac_compiler --version >&5") 2>&5
4126  ac_status=$?
4127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); }
4129{ (ac_try="$ac_compiler -v >&5"
4130case "(($ac_try" in
4131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132  *) ac_try_echo=$ac_try;;
4133esac
4134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4135$as_echo "$ac_try_echo") >&5
4136  (eval "$ac_compiler -v >&5") 2>&5
4137  ac_status=$?
4138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139  (exit $ac_status); }
4140{ (ac_try="$ac_compiler -V >&5"
4141case "(($ac_try" in
4142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143  *) ac_try_echo=$ac_try;;
4144esac
4145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146$as_echo "$ac_try_echo") >&5
4147  (eval "$ac_compiler -V >&5") 2>&5
4148  ac_status=$?
4149  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150  (exit $ac_status); }
4151
4152{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4153$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4154if test "${ac_cv_c_compiler_gnu+set}" = set; then
4155  $as_echo_n "(cached) " >&6
4156else
4157  cat >conftest.$ac_ext <<_ACEOF
4158/* confdefs.h.  */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h.  */
4163
4164int
4165main ()
4166{
4167#ifndef __GNUC__
4168       choke me
4169#endif
4170
4171  ;
4172  return 0;
4173}
4174_ACEOF
4175rm -f conftest.$ac_objext
4176if { (ac_try="$ac_compile"
4177case "(($ac_try" in
4178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179  *) ac_try_echo=$ac_try;;
4180esac
4181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4182$as_echo "$ac_try_echo") >&5
4183  (eval "$ac_compile") 2>conftest.er1
4184  ac_status=$?
4185  grep -v '^ *+' conftest.er1 >conftest.err
4186  rm -f conftest.er1
4187  cat conftest.err >&5
4188  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); } && {
4190	 test -z "$ac_c_werror_flag" ||
4191	 test ! -s conftest.err
4192       } && test -s conftest.$ac_objext; then
4193  ac_compiler_gnu=yes
4194else
4195  $as_echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198	ac_compiler_gnu=no
4199fi
4200
4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202ac_cv_c_compiler_gnu=$ac_compiler_gnu
4203
4204fi
4205{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4206$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4207if test $ac_compiler_gnu = yes; then
4208  GCC=yes
4209else
4210  GCC=
4211fi
4212ac_test_CFLAGS=${CFLAGS+set}
4213ac_save_CFLAGS=$CFLAGS
4214{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4215$as_echo_n "checking whether $CC accepts -g... " >&6; }
4216if test "${ac_cv_prog_cc_g+set}" = set; then
4217  $as_echo_n "(cached) " >&6
4218else
4219  ac_save_c_werror_flag=$ac_c_werror_flag
4220   ac_c_werror_flag=yes
4221   ac_cv_prog_cc_g=no
4222   CFLAGS="-g"
4223   cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h.  */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h.  */
4229
4230int
4231main ()
4232{
4233
4234  ;
4235  return 0;
4236}
4237_ACEOF
4238rm -f conftest.$ac_objext
4239if { (ac_try="$ac_compile"
4240case "(($ac_try" in
4241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242  *) ac_try_echo=$ac_try;;
4243esac
4244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4245$as_echo "$ac_try_echo") >&5
4246  (eval "$ac_compile") 2>conftest.er1
4247  ac_status=$?
4248  grep -v '^ *+' conftest.er1 >conftest.err
4249  rm -f conftest.er1
4250  cat conftest.err >&5
4251  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); } && {
4253	 test -z "$ac_c_werror_flag" ||
4254	 test ! -s conftest.err
4255       } && test -s conftest.$ac_objext; then
4256  ac_cv_prog_cc_g=yes
4257else
4258  $as_echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261	CFLAGS=""
4262      cat >conftest.$ac_ext <<_ACEOF
4263/* confdefs.h.  */
4264_ACEOF
4265cat confdefs.h >>conftest.$ac_ext
4266cat >>conftest.$ac_ext <<_ACEOF
4267/* end confdefs.h.  */
4268
4269int
4270main ()
4271{
4272
4273  ;
4274  return 0;
4275}
4276_ACEOF
4277rm -f conftest.$ac_objext
4278if { (ac_try="$ac_compile"
4279case "(($ac_try" in
4280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281  *) ac_try_echo=$ac_try;;
4282esac
4283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284$as_echo "$ac_try_echo") >&5
4285  (eval "$ac_compile") 2>conftest.er1
4286  ac_status=$?
4287  grep -v '^ *+' conftest.er1 >conftest.err
4288  rm -f conftest.er1
4289  cat conftest.err >&5
4290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); } && {
4292	 test -z "$ac_c_werror_flag" ||
4293	 test ! -s conftest.err
4294       } && test -s conftest.$ac_objext; then
4295  :
4296else
4297  $as_echo "$as_me: failed program was:" >&5
4298sed 's/^/| /' conftest.$ac_ext >&5
4299
4300	ac_c_werror_flag=$ac_save_c_werror_flag
4301	 CFLAGS="-g"
4302	 cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h.  */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h.  */
4308
4309int
4310main ()
4311{
4312
4313  ;
4314  return 0;
4315}
4316_ACEOF
4317rm -f conftest.$ac_objext
4318if { (ac_try="$ac_compile"
4319case "(($ac_try" in
4320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321  *) ac_try_echo=$ac_try;;
4322esac
4323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4324$as_echo "$ac_try_echo") >&5
4325  (eval "$ac_compile") 2>conftest.er1
4326  ac_status=$?
4327  grep -v '^ *+' conftest.er1 >conftest.err
4328  rm -f conftest.er1
4329  cat conftest.err >&5
4330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); } && {
4332	 test -z "$ac_c_werror_flag" ||
4333	 test ! -s conftest.err
4334       } && test -s conftest.$ac_objext; then
4335  ac_cv_prog_cc_g=yes
4336else
4337  $as_echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340
4341fi
4342
4343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344fi
4345
4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347fi
4348
4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350   ac_c_werror_flag=$ac_save_c_werror_flag
4351fi
4352{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4353$as_echo "$ac_cv_prog_cc_g" >&6; }
4354if test "$ac_test_CFLAGS" = set; then
4355  CFLAGS=$ac_save_CFLAGS
4356elif test $ac_cv_prog_cc_g = yes; then
4357  if test "$GCC" = yes; then
4358    CFLAGS="-g -O2"
4359  else
4360    CFLAGS="-g"
4361  fi
4362else
4363  if test "$GCC" = yes; then
4364    CFLAGS="-O2"
4365  else
4366    CFLAGS=
4367  fi
4368fi
4369{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4370$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4371if test "${ac_cv_prog_cc_c89+set}" = set; then
4372  $as_echo_n "(cached) " >&6
4373else
4374  ac_cv_prog_cc_c89=no
4375ac_save_CC=$CC
4376cat >conftest.$ac_ext <<_ACEOF
4377/* confdefs.h.  */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h.  */
4382#include <stdarg.h>
4383#include <stdio.h>
4384#include <sys/types.h>
4385#include <sys/stat.h>
4386/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4387struct buf { int x; };
4388FILE * (*rcsopen) (struct buf *, struct stat *, int);
4389static char *e (p, i)
4390     char **p;
4391     int i;
4392{
4393  return p[i];
4394}
4395static char *f (char * (*g) (char **, int), char **p, ...)
4396{
4397  char *s;
4398  va_list v;
4399  va_start (v,p);
4400  s = g (p, va_arg (v,int));
4401  va_end (v);
4402  return s;
4403}
4404
4405/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4406   function prototypes and stuff, but not '\xHH' hex character constants.
4407   These don't provoke an error unfortunately, instead are silently treated
4408   as 'x'.  The following induces an error, until -std is added to get
4409   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4410   array size at least.  It's necessary to write '\x00'==0 to get something
4411   that's true only with -std.  */
4412int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4413
4414/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4415   inside strings and character constants.  */
4416#define FOO(x) 'x'
4417int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4418
4419int test (int i, double x);
4420struct s1 {int (*f) (int a);};
4421struct s2 {int (*f) (double a);};
4422int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4423int argc;
4424char **argv;
4425int
4426main ()
4427{
4428return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4429  ;
4430  return 0;
4431}
4432_ACEOF
4433for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4434	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4435do
4436  CC="$ac_save_CC $ac_arg"
4437  rm -f conftest.$ac_objext
4438if { (ac_try="$ac_compile"
4439case "(($ac_try" in
4440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441  *) ac_try_echo=$ac_try;;
4442esac
4443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4444$as_echo "$ac_try_echo") >&5
4445  (eval "$ac_compile") 2>conftest.er1
4446  ac_status=$?
4447  grep -v '^ *+' conftest.er1 >conftest.err
4448  rm -f conftest.er1
4449  cat conftest.err >&5
4450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); } && {
4452	 test -z "$ac_c_werror_flag" ||
4453	 test ! -s conftest.err
4454       } && test -s conftest.$ac_objext; then
4455  ac_cv_prog_cc_c89=$ac_arg
4456else
4457  $as_echo "$as_me: failed program was:" >&5
4458sed 's/^/| /' conftest.$ac_ext >&5
4459
4460
4461fi
4462
4463rm -f core conftest.err conftest.$ac_objext
4464  test "x$ac_cv_prog_cc_c89" != "xno" && break
4465done
4466rm -f conftest.$ac_ext
4467CC=$ac_save_CC
4468
4469fi
4470# AC_CACHE_VAL
4471case "x$ac_cv_prog_cc_c89" in
4472  x)
4473    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4474$as_echo "none needed" >&6; } ;;
4475  xno)
4476    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4477$as_echo "unsupported" >&6; } ;;
4478  *)
4479    CC="$CC $ac_cv_prog_cc_c89"
4480    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4481$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4482esac
4483
4484
4485ac_ext=c
4486ac_cpp='$CPP $CPPFLAGS'
4487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490
4491depcc="$CC"   am_compiler_list=
4492
4493{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4494$as_echo_n "checking dependency style of $depcc... " >&6; }
4495if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4496  $as_echo_n "(cached) " >&6
4497else
4498  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4499  # We make a subdir and do the tests there.  Otherwise we can end up
4500  # making bogus files that we don't know about and never remove.  For
4501  # instance it was reported that on HP-UX the gcc test will end up
4502  # making a dummy file named `D' -- because `-MD' means `put the output
4503  # in D'.
4504  mkdir conftest.dir
4505  # Copy depcomp to subdir because otherwise we won't find it if we're
4506  # using a relative directory.
4507  cp "$am_depcomp" conftest.dir
4508  cd conftest.dir
4509  # We will build objects and dependencies in a subdirectory because
4510  # it helps to detect inapplicable dependency modes.  For instance
4511  # both Tru64's cc and ICC support -MD to output dependencies as a
4512  # side effect of compilation, but ICC will put the dependencies in
4513  # the current directory while Tru64 will put them in the object
4514  # directory.
4515  mkdir sub
4516
4517  am_cv_CC_dependencies_compiler_type=none
4518  if test "$am_compiler_list" = ""; then
4519     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4520  fi
4521  for depmode in $am_compiler_list; do
4522    # Setup a source with many dependencies, because some compilers
4523    # like to wrap large dependency lists on column 80 (with \), and
4524    # we should not choose a depcomp mode which is confused by this.
4525    #
4526    # We need to recreate these files for each test, as the compiler may
4527    # overwrite some of them when testing with obscure command lines.
4528    # This happens at least with the AIX C compiler.
4529    : > sub/conftest.c
4530    for i in 1 2 3 4 5 6; do
4531      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4532      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4533      # Solaris 8's {/usr,}/bin/sh.
4534      touch sub/conftst$i.h
4535    done
4536    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4537
4538    case $depmode in
4539    nosideeffect)
4540      # after this tag, mechanisms are not by side-effect, so they'll
4541      # only be used when explicitly requested
4542      if test "x$enable_dependency_tracking" = xyes; then
4543	continue
4544      else
4545	break
4546      fi
4547      ;;
4548    none) break ;;
4549    esac
4550    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4551    # mode.  It turns out that the SunPro C++ compiler does not properly
4552    # handle `-M -o', and we need to detect this.
4553    if depmode=$depmode \
4554       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4555       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4556       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4557         >/dev/null 2>conftest.err &&
4558       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4559       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4560       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4561       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4562      # icc doesn't choke on unknown options, it will just issue warnings
4563      # or remarks (even with -Werror).  So we grep stderr for any message
4564      # that says an option was ignored or not supported.
4565      # When given -MP, icc 7.0 and 7.1 complain thusly:
4566      #   icc: Command line warning: ignoring option '-M'; no argument required
4567      # The diagnosis changed in icc 8.0:
4568      #   icc: Command line remark: option '-MP' not supported
4569      if (grep 'ignoring option' conftest.err ||
4570          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4571        am_cv_CC_dependencies_compiler_type=$depmode
4572        break
4573      fi
4574    fi
4575  done
4576
4577  cd ..
4578  rm -rf conftest.dir
4579else
4580  am_cv_CC_dependencies_compiler_type=none
4581fi
4582
4583fi
4584{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4585$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4586CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4587
4588 if
4589  test "x$enable_dependency_tracking" != xno \
4590  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4591  am__fastdepCC_TRUE=
4592  am__fastdepCC_FALSE='#'
4593else
4594  am__fastdepCC_TRUE='#'
4595  am__fastdepCC_FALSE=
4596fi
4597
4598
4599ac_ext=c
4600ac_cpp='$CPP $CPPFLAGS'
4601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604if test -n "$ac_tool_prefix"; then
4605  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4606set dummy ${ac_tool_prefix}gcc; ac_word=$2
4607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if test "${ac_cv_prog_CC+set}" = set; then
4610  $as_echo_n "(cached) " >&6
4611else
4612  if test -n "$CC"; then
4613  ac_cv_prog_CC="$CC" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618  IFS=$as_save_IFS
4619  test -z "$as_dir" && as_dir=.
4620  for ac_exec_ext in '' $ac_executable_extensions; do
4621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4623    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624    break 2
4625  fi
4626done
4627done
4628IFS=$as_save_IFS
4629
4630fi
4631fi
4632CC=$ac_cv_prog_CC
4633if test -n "$CC"; then
4634  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4635$as_echo "$CC" >&6; }
4636else
4637  { $as_echo "$as_me:$LINENO: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641
4642fi
4643if test -z "$ac_cv_prog_CC"; then
4644  ac_ct_CC=$CC
4645  # Extract the first word of "gcc", so it can be a program name with args.
4646set dummy gcc; ac_word=$2
4647{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4650  $as_echo_n "(cached) " >&6
4651else
4652  if test -n "$ac_ct_CC"; then
4653  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658  IFS=$as_save_IFS
4659  test -z "$as_dir" && as_dir=.
4660  for ac_exec_ext in '' $ac_executable_extensions; do
4661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662    ac_cv_prog_ac_ct_CC="gcc"
4663    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664    break 2
4665  fi
4666done
4667done
4668IFS=$as_save_IFS
4669
4670fi
4671fi
4672ac_ct_CC=$ac_cv_prog_ac_ct_CC
4673if test -n "$ac_ct_CC"; then
4674  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4675$as_echo "$ac_ct_CC" >&6; }
4676else
4677  { $as_echo "$as_me:$LINENO: result: no" >&5
4678$as_echo "no" >&6; }
4679fi
4680
4681  if test "x$ac_ct_CC" = x; then
4682    CC=""
4683  else
4684    case $cross_compiling:$ac_tool_warned in
4685yes:)
4686{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688ac_tool_warned=yes ;;
4689esac
4690    CC=$ac_ct_CC
4691  fi
4692else
4693  CC="$ac_cv_prog_CC"
4694fi
4695
4696if test -z "$CC"; then
4697          if test -n "$ac_tool_prefix"; then
4698    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4699set dummy ${ac_tool_prefix}cc; ac_word=$2
4700{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4701$as_echo_n "checking for $ac_word... " >&6; }
4702if test "${ac_cv_prog_CC+set}" = set; then
4703  $as_echo_n "(cached) " >&6
4704else
4705  if test -n "$CC"; then
4706  ac_cv_prog_CC="$CC" # Let the user override the test.
4707else
4708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711  IFS=$as_save_IFS
4712  test -z "$as_dir" && as_dir=.
4713  for ac_exec_ext in '' $ac_executable_extensions; do
4714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715    ac_cv_prog_CC="${ac_tool_prefix}cc"
4716    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717    break 2
4718  fi
4719done
4720done
4721IFS=$as_save_IFS
4722
4723fi
4724fi
4725CC=$ac_cv_prog_CC
4726if test -n "$CC"; then
4727  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4728$as_echo "$CC" >&6; }
4729else
4730  { $as_echo "$as_me:$LINENO: result: no" >&5
4731$as_echo "no" >&6; }
4732fi
4733
4734
4735  fi
4736fi
4737if test -z "$CC"; then
4738  # Extract the first word of "cc", so it can be a program name with args.
4739set dummy cc; ac_word=$2
4740{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4741$as_echo_n "checking for $ac_word... " >&6; }
4742if test "${ac_cv_prog_CC+set}" = set; then
4743  $as_echo_n "(cached) " >&6
4744else
4745  if test -n "$CC"; then
4746  ac_cv_prog_CC="$CC" # Let the user override the test.
4747else
4748  ac_prog_rejected=no
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754  for ac_exec_ext in '' $ac_executable_extensions; do
4755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4757       ac_prog_rejected=yes
4758       continue
4759     fi
4760    ac_cv_prog_CC="cc"
4761    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762    break 2
4763  fi
4764done
4765done
4766IFS=$as_save_IFS
4767
4768if test $ac_prog_rejected = yes; then
4769  # We found a bogon in the path, so make sure we never use it.
4770  set dummy $ac_cv_prog_CC
4771  shift
4772  if test $# != 0; then
4773    # We chose a different compiler from the bogus one.
4774    # However, it has the same basename, so the bogon will be chosen
4775    # first if we set CC to just the basename; use the full file name.
4776    shift
4777    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4778  fi
4779fi
4780fi
4781fi
4782CC=$ac_cv_prog_CC
4783if test -n "$CC"; then
4784  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4785$as_echo "$CC" >&6; }
4786else
4787  { $as_echo "$as_me:$LINENO: result: no" >&5
4788$as_echo "no" >&6; }
4789fi
4790
4791
4792fi
4793if test -z "$CC"; then
4794  if test -n "$ac_tool_prefix"; then
4795  for ac_prog in cl.exe
4796  do
4797    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if test "${ac_cv_prog_CC+set}" = set; then
4802  $as_echo_n "(cached) " >&6
4803else
4804  if test -n "$CC"; then
4805  ac_cv_prog_CC="$CC" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810  IFS=$as_save_IFS
4811  test -z "$as_dir" && as_dir=.
4812  for ac_exec_ext in '' $ac_executable_extensions; do
4813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4815    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816    break 2
4817  fi
4818done
4819done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824CC=$ac_cv_prog_CC
4825if test -n "$CC"; then
4826  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4827$as_echo "$CC" >&6; }
4828else
4829  { $as_echo "$as_me:$LINENO: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833
4834    test -n "$CC" && break
4835  done
4836fi
4837if test -z "$CC"; then
4838  ac_ct_CC=$CC
4839  for ac_prog in cl.exe
4840do
4841  # Extract the first word of "$ac_prog", so it can be a program name with args.
4842set dummy $ac_prog; ac_word=$2
4843{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4844$as_echo_n "checking for $ac_word... " >&6; }
4845if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4846  $as_echo_n "(cached) " >&6
4847else
4848  if test -n "$ac_ct_CC"; then
4849  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4850else
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854  IFS=$as_save_IFS
4855  test -z "$as_dir" && as_dir=.
4856  for ac_exec_ext in '' $ac_executable_extensions; do
4857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858    ac_cv_prog_ac_ct_CC="$ac_prog"
4859    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860    break 2
4861  fi
4862done
4863done
4864IFS=$as_save_IFS
4865
4866fi
4867fi
4868ac_ct_CC=$ac_cv_prog_ac_ct_CC
4869if test -n "$ac_ct_CC"; then
4870  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4871$as_echo "$ac_ct_CC" >&6; }
4872else
4873  { $as_echo "$as_me:$LINENO: result: no" >&5
4874$as_echo "no" >&6; }
4875fi
4876
4877
4878  test -n "$ac_ct_CC" && break
4879done
4880
4881  if test "x$ac_ct_CC" = x; then
4882    CC=""
4883  else
4884    case $cross_compiling:$ac_tool_warned in
4885yes:)
4886{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890    CC=$ac_ct_CC
4891  fi
4892fi
4893
4894fi
4895
4896
4897test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4900See \`config.log' for more details." >&5
4901$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4902See \`config.log' for more details." >&2;}
4903   { (exit 1); exit 1; }; }; }
4904
4905# Provide some information about the compiler.
4906$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4907set X $ac_compile
4908ac_compiler=$2
4909{ (ac_try="$ac_compiler --version >&5"
4910case "(($ac_try" in
4911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912  *) ac_try_echo=$ac_try;;
4913esac
4914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4915$as_echo "$ac_try_echo") >&5
4916  (eval "$ac_compiler --version >&5") 2>&5
4917  ac_status=$?
4918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); }
4920{ (ac_try="$ac_compiler -v >&5"
4921case "(($ac_try" in
4922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923  *) ac_try_echo=$ac_try;;
4924esac
4925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926$as_echo "$ac_try_echo") >&5
4927  (eval "$ac_compiler -v >&5") 2>&5
4928  ac_status=$?
4929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); }
4931{ (ac_try="$ac_compiler -V >&5"
4932case "(($ac_try" in
4933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934  *) ac_try_echo=$ac_try;;
4935esac
4936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4937$as_echo "$ac_try_echo") >&5
4938  (eval "$ac_compiler -V >&5") 2>&5
4939  ac_status=$?
4940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); }
4942
4943{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4944$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4945if test "${ac_cv_c_compiler_gnu+set}" = set; then
4946  $as_echo_n "(cached) " >&6
4947else
4948  cat >conftest.$ac_ext <<_ACEOF
4949/* confdefs.h.  */
4950_ACEOF
4951cat confdefs.h >>conftest.$ac_ext
4952cat >>conftest.$ac_ext <<_ACEOF
4953/* end confdefs.h.  */
4954
4955int
4956main ()
4957{
4958#ifndef __GNUC__
4959       choke me
4960#endif
4961
4962  ;
4963  return 0;
4964}
4965_ACEOF
4966rm -f conftest.$ac_objext
4967if { (ac_try="$ac_compile"
4968case "(($ac_try" in
4969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970  *) ac_try_echo=$ac_try;;
4971esac
4972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4973$as_echo "$ac_try_echo") >&5
4974  (eval "$ac_compile") 2>conftest.er1
4975  ac_status=$?
4976  grep -v '^ *+' conftest.er1 >conftest.err
4977  rm -f conftest.er1
4978  cat conftest.err >&5
4979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980  (exit $ac_status); } && {
4981	 test -z "$ac_c_werror_flag" ||
4982	 test ! -s conftest.err
4983       } && test -s conftest.$ac_objext; then
4984  ac_compiler_gnu=yes
4985else
4986  $as_echo "$as_me: failed program was:" >&5
4987sed 's/^/| /' conftest.$ac_ext >&5
4988
4989	ac_compiler_gnu=no
4990fi
4991
4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993ac_cv_c_compiler_gnu=$ac_compiler_gnu
4994
4995fi
4996{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4997$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4998if test $ac_compiler_gnu = yes; then
4999  GCC=yes
5000else
5001  GCC=
5002fi
5003ac_test_CFLAGS=${CFLAGS+set}
5004ac_save_CFLAGS=$CFLAGS
5005{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5006$as_echo_n "checking whether $CC accepts -g... " >&6; }
5007if test "${ac_cv_prog_cc_g+set}" = set; then
5008  $as_echo_n "(cached) " >&6
5009else
5010  ac_save_c_werror_flag=$ac_c_werror_flag
5011   ac_c_werror_flag=yes
5012   ac_cv_prog_cc_g=no
5013   CFLAGS="-g"
5014   cat >conftest.$ac_ext <<_ACEOF
5015/* confdefs.h.  */
5016_ACEOF
5017cat confdefs.h >>conftest.$ac_ext
5018cat >>conftest.$ac_ext <<_ACEOF
5019/* end confdefs.h.  */
5020
5021int
5022main ()
5023{
5024
5025  ;
5026  return 0;
5027}
5028_ACEOF
5029rm -f conftest.$ac_objext
5030if { (ac_try="$ac_compile"
5031case "(($ac_try" in
5032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033  *) ac_try_echo=$ac_try;;
5034esac
5035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5036$as_echo "$ac_try_echo") >&5
5037  (eval "$ac_compile") 2>conftest.er1
5038  ac_status=$?
5039  grep -v '^ *+' conftest.er1 >conftest.err
5040  rm -f conftest.er1
5041  cat conftest.err >&5
5042  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043  (exit $ac_status); } && {
5044	 test -z "$ac_c_werror_flag" ||
5045	 test ! -s conftest.err
5046       } && test -s conftest.$ac_objext; then
5047  ac_cv_prog_cc_g=yes
5048else
5049  $as_echo "$as_me: failed program was:" >&5
5050sed 's/^/| /' conftest.$ac_ext >&5
5051
5052	CFLAGS=""
5053      cat >conftest.$ac_ext <<_ACEOF
5054/* confdefs.h.  */
5055_ACEOF
5056cat confdefs.h >>conftest.$ac_ext
5057cat >>conftest.$ac_ext <<_ACEOF
5058/* end confdefs.h.  */
5059
5060int
5061main ()
5062{
5063
5064  ;
5065  return 0;
5066}
5067_ACEOF
5068rm -f conftest.$ac_objext
5069if { (ac_try="$ac_compile"
5070case "(($ac_try" in
5071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072  *) ac_try_echo=$ac_try;;
5073esac
5074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5075$as_echo "$ac_try_echo") >&5
5076  (eval "$ac_compile") 2>conftest.er1
5077  ac_status=$?
5078  grep -v '^ *+' conftest.er1 >conftest.err
5079  rm -f conftest.er1
5080  cat conftest.err >&5
5081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); } && {
5083	 test -z "$ac_c_werror_flag" ||
5084	 test ! -s conftest.err
5085       } && test -s conftest.$ac_objext; then
5086  :
5087else
5088  $as_echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091	ac_c_werror_flag=$ac_save_c_werror_flag
5092	 CFLAGS="-g"
5093	 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h.  */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h.  */
5099
5100int
5101main ()
5102{
5103
5104  ;
5105  return 0;
5106}
5107_ACEOF
5108rm -f conftest.$ac_objext
5109if { (ac_try="$ac_compile"
5110case "(($ac_try" in
5111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112  *) ac_try_echo=$ac_try;;
5113esac
5114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115$as_echo "$ac_try_echo") >&5
5116  (eval "$ac_compile") 2>conftest.er1
5117  ac_status=$?
5118  grep -v '^ *+' conftest.er1 >conftest.err
5119  rm -f conftest.er1
5120  cat conftest.err >&5
5121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122  (exit $ac_status); } && {
5123	 test -z "$ac_c_werror_flag" ||
5124	 test ! -s conftest.err
5125       } && test -s conftest.$ac_objext; then
5126  ac_cv_prog_cc_g=yes
5127else
5128  $as_echo "$as_me: failed program was:" >&5
5129sed 's/^/| /' conftest.$ac_ext >&5
5130
5131
5132fi
5133
5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135fi
5136
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138fi
5139
5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141   ac_c_werror_flag=$ac_save_c_werror_flag
5142fi
5143{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5144$as_echo "$ac_cv_prog_cc_g" >&6; }
5145if test "$ac_test_CFLAGS" = set; then
5146  CFLAGS=$ac_save_CFLAGS
5147elif test $ac_cv_prog_cc_g = yes; then
5148  if test "$GCC" = yes; then
5149    CFLAGS="-g -O2"
5150  else
5151    CFLAGS="-g"
5152  fi
5153else
5154  if test "$GCC" = yes; then
5155    CFLAGS="-O2"
5156  else
5157    CFLAGS=
5158  fi
5159fi
5160{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5161$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5162if test "${ac_cv_prog_cc_c89+set}" = set; then
5163  $as_echo_n "(cached) " >&6
5164else
5165  ac_cv_prog_cc_c89=no
5166ac_save_CC=$CC
5167cat >conftest.$ac_ext <<_ACEOF
5168/* confdefs.h.  */
5169_ACEOF
5170cat confdefs.h >>conftest.$ac_ext
5171cat >>conftest.$ac_ext <<_ACEOF
5172/* end confdefs.h.  */
5173#include <stdarg.h>
5174#include <stdio.h>
5175#include <sys/types.h>
5176#include <sys/stat.h>
5177/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5178struct buf { int x; };
5179FILE * (*rcsopen) (struct buf *, struct stat *, int);
5180static char *e (p, i)
5181     char **p;
5182     int i;
5183{
5184  return p[i];
5185}
5186static char *f (char * (*g) (char **, int), char **p, ...)
5187{
5188  char *s;
5189  va_list v;
5190  va_start (v,p);
5191  s = g (p, va_arg (v,int));
5192  va_end (v);
5193  return s;
5194}
5195
5196/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5197   function prototypes and stuff, but not '\xHH' hex character constants.
5198   These don't provoke an error unfortunately, instead are silently treated
5199   as 'x'.  The following induces an error, until -std is added to get
5200   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5201   array size at least.  It's necessary to write '\x00'==0 to get something
5202   that's true only with -std.  */
5203int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5204
5205/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5206   inside strings and character constants.  */
5207#define FOO(x) 'x'
5208int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5209
5210int test (int i, double x);
5211struct s1 {int (*f) (int a);};
5212struct s2 {int (*f) (double a);};
5213int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5214int argc;
5215char **argv;
5216int
5217main ()
5218{
5219return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5220  ;
5221  return 0;
5222}
5223_ACEOF
5224for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5225	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5226do
5227  CC="$ac_save_CC $ac_arg"
5228  rm -f conftest.$ac_objext
5229if { (ac_try="$ac_compile"
5230case "(($ac_try" in
5231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232  *) ac_try_echo=$ac_try;;
5233esac
5234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5235$as_echo "$ac_try_echo") >&5
5236  (eval "$ac_compile") 2>conftest.er1
5237  ac_status=$?
5238  grep -v '^ *+' conftest.er1 >conftest.err
5239  rm -f conftest.er1
5240  cat conftest.err >&5
5241  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242  (exit $ac_status); } && {
5243	 test -z "$ac_c_werror_flag" ||
5244	 test ! -s conftest.err
5245       } && test -s conftest.$ac_objext; then
5246  ac_cv_prog_cc_c89=$ac_arg
5247else
5248  $as_echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
5251
5252fi
5253
5254rm -f core conftest.err conftest.$ac_objext
5255  test "x$ac_cv_prog_cc_c89" != "xno" && break
5256done
5257rm -f conftest.$ac_ext
5258CC=$ac_save_CC
5259
5260fi
5261# AC_CACHE_VAL
5262case "x$ac_cv_prog_cc_c89" in
5263  x)
5264    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5265$as_echo "none needed" >&6; } ;;
5266  xno)
5267    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5268$as_echo "unsupported" >&6; } ;;
5269  *)
5270    CC="$CC $ac_cv_prog_cc_c89"
5271    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5272$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5273esac
5274
5275
5276ac_ext=c
5277ac_cpp='$CPP $CPPFLAGS'
5278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5280ac_compiler_gnu=$ac_cv_c_compiler_gnu
5281
5282depcc="$CC"   am_compiler_list=
5283
5284{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5285$as_echo_n "checking dependency style of $depcc... " >&6; }
5286if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5287  $as_echo_n "(cached) " >&6
5288else
5289  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5290  # We make a subdir and do the tests there.  Otherwise we can end up
5291  # making bogus files that we don't know about and never remove.  For
5292  # instance it was reported that on HP-UX the gcc test will end up
5293  # making a dummy file named `D' -- because `-MD' means `put the output
5294  # in D'.
5295  mkdir conftest.dir
5296  # Copy depcomp to subdir because otherwise we won't find it if we're
5297  # using a relative directory.
5298  cp "$am_depcomp" conftest.dir
5299  cd conftest.dir
5300  # We will build objects and dependencies in a subdirectory because
5301  # it helps to detect inapplicable dependency modes.  For instance
5302  # both Tru64's cc and ICC support -MD to output dependencies as a
5303  # side effect of compilation, but ICC will put the dependencies in
5304  # the current directory while Tru64 will put them in the object
5305  # directory.
5306  mkdir sub
5307
5308  am_cv_CC_dependencies_compiler_type=none
5309  if test "$am_compiler_list" = ""; then
5310     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5311  fi
5312  for depmode in $am_compiler_list; do
5313    # Setup a source with many dependencies, because some compilers
5314    # like to wrap large dependency lists on column 80 (with \), and
5315    # we should not choose a depcomp mode which is confused by this.
5316    #
5317    # We need to recreate these files for each test, as the compiler may
5318    # overwrite some of them when testing with obscure command lines.
5319    # This happens at least with the AIX C compiler.
5320    : > sub/conftest.c
5321    for i in 1 2 3 4 5 6; do
5322      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5323      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5324      # Solaris 8's {/usr,}/bin/sh.
5325      touch sub/conftst$i.h
5326    done
5327    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5328
5329    case $depmode in
5330    nosideeffect)
5331      # after this tag, mechanisms are not by side-effect, so they'll
5332      # only be used when explicitly requested
5333      if test "x$enable_dependency_tracking" = xyes; then
5334	continue
5335      else
5336	break
5337      fi
5338      ;;
5339    none) break ;;
5340    esac
5341    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5342    # mode.  It turns out that the SunPro C++ compiler does not properly
5343    # handle `-M -o', and we need to detect this.
5344    if depmode=$depmode \
5345       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5346       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5347       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5348         >/dev/null 2>conftest.err &&
5349       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5350       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5351       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5352       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5353      # icc doesn't choke on unknown options, it will just issue warnings
5354      # or remarks (even with -Werror).  So we grep stderr for any message
5355      # that says an option was ignored or not supported.
5356      # When given -MP, icc 7.0 and 7.1 complain thusly:
5357      #   icc: Command line warning: ignoring option '-M'; no argument required
5358      # The diagnosis changed in icc 8.0:
5359      #   icc: Command line remark: option '-MP' not supported
5360      if (grep 'ignoring option' conftest.err ||
5361          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5362        am_cv_CC_dependencies_compiler_type=$depmode
5363        break
5364      fi
5365    fi
5366  done
5367
5368  cd ..
5369  rm -rf conftest.dir
5370else
5371  am_cv_CC_dependencies_compiler_type=none
5372fi
5373
5374fi
5375{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5376$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5377CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5378
5379 if
5380  test "x$enable_dependency_tracking" != xno \
5381  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5382  am__fastdepCC_TRUE=
5383  am__fastdepCC_FALSE='#'
5384else
5385  am__fastdepCC_TRUE='#'
5386  am__fastdepCC_FALSE=
5387fi
5388
5389
5390
5391am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5392
5393ac_ext=c
5394ac_cpp='$CPP $CPPFLAGS'
5395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5399$as_echo_n "checking how to run the C preprocessor... " >&6; }
5400# On Suns, sometimes $CPP names a directory.
5401if test -n "$CPP" && test -d "$CPP"; then
5402  CPP=
5403fi
5404if test -z "$CPP"; then
5405  if test "${ac_cv_prog_CPP+set}" = set; then
5406  $as_echo_n "(cached) " >&6
5407else
5408      # Double quotes because CPP needs to be expanded
5409    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5410    do
5411      ac_preproc_ok=false
5412for ac_c_preproc_warn_flag in '' yes
5413do
5414  # Use a header file that comes with gcc, so configuring glibc
5415  # with a fresh cross-compiler works.
5416  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5417  # <limits.h> exists even on freestanding compilers.
5418  # On the NeXT, cc -E runs the code through the compiler's parser,
5419  # not just through cpp. "Syntax error" is here to catch this case.
5420  cat >conftest.$ac_ext <<_ACEOF
5421/* confdefs.h.  */
5422_ACEOF
5423cat confdefs.h >>conftest.$ac_ext
5424cat >>conftest.$ac_ext <<_ACEOF
5425/* end confdefs.h.  */
5426#ifdef __STDC__
5427# include <limits.h>
5428#else
5429# include <assert.h>
5430#endif
5431		     Syntax error
5432_ACEOF
5433if { (ac_try="$ac_cpp conftest.$ac_ext"
5434case "(($ac_try" in
5435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436  *) ac_try_echo=$ac_try;;
5437esac
5438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5439$as_echo "$ac_try_echo") >&5
5440  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5441  ac_status=$?
5442  grep -v '^ *+' conftest.er1 >conftest.err
5443  rm -f conftest.er1
5444  cat conftest.err >&5
5445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446  (exit $ac_status); } >/dev/null && {
5447	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5448	 test ! -s conftest.err
5449       }; then
5450  :
5451else
5452  $as_echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455  # Broken: fails on valid input.
5456continue
5457fi
5458
5459rm -f conftest.err conftest.$ac_ext
5460
5461  # OK, works on sane cases.  Now check whether nonexistent headers
5462  # can be detected and how.
5463  cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469#include <ac_nonexistent.h>
5470_ACEOF
5471if { (ac_try="$ac_cpp conftest.$ac_ext"
5472case "(($ac_try" in
5473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474  *) ac_try_echo=$ac_try;;
5475esac
5476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477$as_echo "$ac_try_echo") >&5
5478  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5479  ac_status=$?
5480  grep -v '^ *+' conftest.er1 >conftest.err
5481  rm -f conftest.er1
5482  cat conftest.err >&5
5483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484  (exit $ac_status); } >/dev/null && {
5485	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5486	 test ! -s conftest.err
5487       }; then
5488  # Broken: success on invalid input.
5489continue
5490else
5491  $as_echo "$as_me: failed program was:" >&5
5492sed 's/^/| /' conftest.$ac_ext >&5
5493
5494  # Passes both tests.
5495ac_preproc_ok=:
5496break
5497fi
5498
5499rm -f conftest.err conftest.$ac_ext
5500
5501done
5502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5503rm -f conftest.err conftest.$ac_ext
5504if $ac_preproc_ok; then
5505  break
5506fi
5507
5508    done
5509    ac_cv_prog_CPP=$CPP
5510
5511fi
5512  CPP=$ac_cv_prog_CPP
5513else
5514  ac_cv_prog_CPP=$CPP
5515fi
5516{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5517$as_echo "$CPP" >&6; }
5518ac_preproc_ok=false
5519for ac_c_preproc_warn_flag in '' yes
5520do
5521  # Use a header file that comes with gcc, so configuring glibc
5522  # with a fresh cross-compiler works.
5523  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524  # <limits.h> exists even on freestanding compilers.
5525  # On the NeXT, cc -E runs the code through the compiler's parser,
5526  # not just through cpp. "Syntax error" is here to catch this case.
5527  cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h.  */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h.  */
5533#ifdef __STDC__
5534# include <limits.h>
5535#else
5536# include <assert.h>
5537#endif
5538		     Syntax error
5539_ACEOF
5540if { (ac_try="$ac_cpp conftest.$ac_ext"
5541case "(($ac_try" in
5542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543  *) ac_try_echo=$ac_try;;
5544esac
5545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5546$as_echo "$ac_try_echo") >&5
5547  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5548  ac_status=$?
5549  grep -v '^ *+' conftest.er1 >conftest.err
5550  rm -f conftest.er1
5551  cat conftest.err >&5
5552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553  (exit $ac_status); } >/dev/null && {
5554	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5555	 test ! -s conftest.err
5556       }; then
5557  :
5558else
5559  $as_echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562  # Broken: fails on valid input.
5563continue
5564fi
5565
5566rm -f conftest.err conftest.$ac_ext
5567
5568  # OK, works on sane cases.  Now check whether nonexistent headers
5569  # can be detected and how.
5570  cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h.  */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
5575/* end confdefs.h.  */
5576#include <ac_nonexistent.h>
5577_ACEOF
5578if { (ac_try="$ac_cpp conftest.$ac_ext"
5579case "(($ac_try" in
5580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581  *) ac_try_echo=$ac_try;;
5582esac
5583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5584$as_echo "$ac_try_echo") >&5
5585  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5586  ac_status=$?
5587  grep -v '^ *+' conftest.er1 >conftest.err
5588  rm -f conftest.er1
5589  cat conftest.err >&5
5590  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591  (exit $ac_status); } >/dev/null && {
5592	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5593	 test ! -s conftest.err
5594       }; then
5595  # Broken: success on invalid input.
5596continue
5597else
5598  $as_echo "$as_me: failed program was:" >&5
5599sed 's/^/| /' conftest.$ac_ext >&5
5600
5601  # Passes both tests.
5602ac_preproc_ok=:
5603break
5604fi
5605
5606rm -f conftest.err conftest.$ac_ext
5607
5608done
5609# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5610rm -f conftest.err conftest.$ac_ext
5611if $ac_preproc_ok; then
5612  :
5613else
5614  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5616{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5617See \`config.log' for more details." >&5
5618$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5619See \`config.log' for more details." >&2;}
5620   { (exit 1); exit 1; }; }; }
5621fi
5622
5623ac_ext=c
5624ac_cpp='$CPP $CPPFLAGS'
5625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627ac_compiler_gnu=$ac_cv_c_compiler_gnu
5628
5629
5630{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5631$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5632if test "${ac_cv_path_GREP+set}" = set; then
5633  $as_echo_n "(cached) " >&6
5634else
5635  if test -z "$GREP"; then
5636  ac_path_GREP_found=false
5637  # Loop through the user's path and test for each of PROGNAME-LIST
5638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5640do
5641  IFS=$as_save_IFS
5642  test -z "$as_dir" && as_dir=.
5643  for ac_prog in grep ggrep; do
5644    for ac_exec_ext in '' $ac_executable_extensions; do
5645      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5646      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5647# Check for GNU ac_path_GREP and select it if it is found.
5648  # Check for GNU $ac_path_GREP
5649case `"$ac_path_GREP" --version 2>&1` in
5650*GNU*)
5651  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5652*)
5653  ac_count=0
5654  $as_echo_n 0123456789 >"conftest.in"
5655  while :
5656  do
5657    cat "conftest.in" "conftest.in" >"conftest.tmp"
5658    mv "conftest.tmp" "conftest.in"
5659    cp "conftest.in" "conftest.nl"
5660    $as_echo 'GREP' >> "conftest.nl"
5661    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663    ac_count=`expr $ac_count + 1`
5664    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5665      # Best one so far, save it but keep looking for a better one
5666      ac_cv_path_GREP="$ac_path_GREP"
5667      ac_path_GREP_max=$ac_count
5668    fi
5669    # 10*(2^10) chars as input seems more than enough
5670    test $ac_count -gt 10 && break
5671  done
5672  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673esac
5674
5675      $ac_path_GREP_found && break 3
5676    done
5677  done
5678done
5679IFS=$as_save_IFS
5680  if test -z "$ac_cv_path_GREP"; then
5681    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5682$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5683   { (exit 1); exit 1; }; }
5684  fi
5685else
5686  ac_cv_path_GREP=$GREP
5687fi
5688
5689fi
5690{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5691$as_echo "$ac_cv_path_GREP" >&6; }
5692 GREP="$ac_cv_path_GREP"
5693
5694
5695{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5696$as_echo_n "checking for egrep... " >&6; }
5697if test "${ac_cv_path_EGREP+set}" = set; then
5698  $as_echo_n "(cached) " >&6
5699else
5700  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5701   then ac_cv_path_EGREP="$GREP -E"
5702   else
5703     if test -z "$EGREP"; then
5704  ac_path_EGREP_found=false
5705  # Loop through the user's path and test for each of PROGNAME-LIST
5706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5708do
5709  IFS=$as_save_IFS
5710  test -z "$as_dir" && as_dir=.
5711  for ac_prog in egrep; do
5712    for ac_exec_ext in '' $ac_executable_extensions; do
5713      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5714      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5715# Check for GNU ac_path_EGREP and select it if it is found.
5716  # Check for GNU $ac_path_EGREP
5717case `"$ac_path_EGREP" --version 2>&1` in
5718*GNU*)
5719  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5720*)
5721  ac_count=0
5722  $as_echo_n 0123456789 >"conftest.in"
5723  while :
5724  do
5725    cat "conftest.in" "conftest.in" >"conftest.tmp"
5726    mv "conftest.tmp" "conftest.in"
5727    cp "conftest.in" "conftest.nl"
5728    $as_echo 'EGREP' >> "conftest.nl"
5729    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5730    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5731    ac_count=`expr $ac_count + 1`
5732    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5733      # Best one so far, save it but keep looking for a better one
5734      ac_cv_path_EGREP="$ac_path_EGREP"
5735      ac_path_EGREP_max=$ac_count
5736    fi
5737    # 10*(2^10) chars as input seems more than enough
5738    test $ac_count -gt 10 && break
5739  done
5740  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5741esac
5742
5743      $ac_path_EGREP_found && break 3
5744    done
5745  done
5746done
5747IFS=$as_save_IFS
5748  if test -z "$ac_cv_path_EGREP"; then
5749    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5750$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5751   { (exit 1); exit 1; }; }
5752  fi
5753else
5754  ac_cv_path_EGREP=$EGREP
5755fi
5756
5757   fi
5758fi
5759{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5760$as_echo "$ac_cv_path_EGREP" >&6; }
5761 EGREP="$ac_cv_path_EGREP"
5762
5763
5764{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5765$as_echo_n "checking for ANSI C header files... " >&6; }
5766if test "${ac_cv_header_stdc+set}" = set; then
5767  $as_echo_n "(cached) " >&6
5768else
5769  cat >conftest.$ac_ext <<_ACEOF
5770/* confdefs.h.  */
5771_ACEOF
5772cat confdefs.h >>conftest.$ac_ext
5773cat >>conftest.$ac_ext <<_ACEOF
5774/* end confdefs.h.  */
5775#include <stdlib.h>
5776#include <stdarg.h>
5777#include <string.h>
5778#include <float.h>
5779
5780int
5781main ()
5782{
5783
5784  ;
5785  return 0;
5786}
5787_ACEOF
5788rm -f conftest.$ac_objext
5789if { (ac_try="$ac_compile"
5790case "(($ac_try" in
5791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792  *) ac_try_echo=$ac_try;;
5793esac
5794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5795$as_echo "$ac_try_echo") >&5
5796  (eval "$ac_compile") 2>conftest.er1
5797  ac_status=$?
5798  grep -v '^ *+' conftest.er1 >conftest.err
5799  rm -f conftest.er1
5800  cat conftest.err >&5
5801  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802  (exit $ac_status); } && {
5803	 test -z "$ac_c_werror_flag" ||
5804	 test ! -s conftest.err
5805       } && test -s conftest.$ac_objext; then
5806  ac_cv_header_stdc=yes
5807else
5808  $as_echo "$as_me: failed program was:" >&5
5809sed 's/^/| /' conftest.$ac_ext >&5
5810
5811	ac_cv_header_stdc=no
5812fi
5813
5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815
5816if test $ac_cv_header_stdc = yes; then
5817  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5818  cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h.  */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h.  */
5824#include <string.h>
5825
5826_ACEOF
5827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5828  $EGREP "memchr" >/dev/null 2>&1; then
5829  :
5830else
5831  ac_cv_header_stdc=no
5832fi
5833rm -f conftest*
5834
5835fi
5836
5837if test $ac_cv_header_stdc = yes; then
5838  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5839  cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h.  */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h.  */
5845#include <stdlib.h>
5846
5847_ACEOF
5848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5849  $EGREP "free" >/dev/null 2>&1; then
5850  :
5851else
5852  ac_cv_header_stdc=no
5853fi
5854rm -f conftest*
5855
5856fi
5857
5858if test $ac_cv_header_stdc = yes; then
5859  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5860  if test "$cross_compiling" = yes; then
5861  :
5862else
5863  cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h.  */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h.  */
5869#include <ctype.h>
5870#include <stdlib.h>
5871#if ((' ' & 0x0FF) == 0x020)
5872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5874#else
5875# define ISLOWER(c) \
5876		   (('a' <= (c) && (c) <= 'i') \
5877		     || ('j' <= (c) && (c) <= 'r') \
5878		     || ('s' <= (c) && (c) <= 'z'))
5879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5880#endif
5881
5882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5883int
5884main ()
5885{
5886  int i;
5887  for (i = 0; i < 256; i++)
5888    if (XOR (islower (i), ISLOWER (i))
5889	|| toupper (i) != TOUPPER (i))
5890      return 2;
5891  return 0;
5892}
5893_ACEOF
5894rm -f conftest$ac_exeext
5895if { (ac_try="$ac_link"
5896case "(($ac_try" in
5897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898  *) ac_try_echo=$ac_try;;
5899esac
5900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5901$as_echo "$ac_try_echo") >&5
5902  (eval "$ac_link") 2>&5
5903  ac_status=$?
5904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5906  { (case "(($ac_try" in
5907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908  *) ac_try_echo=$ac_try;;
5909esac
5910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911$as_echo "$ac_try_echo") >&5
5912  (eval "$ac_try") 2>&5
5913  ac_status=$?
5914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); }; }; then
5916  :
5917else
5918  $as_echo "$as_me: program exited with status $ac_status" >&5
5919$as_echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922( exit $ac_status )
5923ac_cv_header_stdc=no
5924fi
5925rm -rf conftest.dSYM
5926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5927fi
5928
5929
5930fi
5931fi
5932{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5933$as_echo "$ac_cv_header_stdc" >&6; }
5934if test $ac_cv_header_stdc = yes; then
5935
5936cat >>confdefs.h <<\_ACEOF
5937#define STDC_HEADERS 1
5938_ACEOF
5939
5940fi
5941
5942
5943
5944
5945
5946GETTEXT_PACKAGE=gbemol
5947
5948
5949cat >>confdefs.h <<_ACEOF
5950#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5951_ACEOF
5952
5953# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5964		  inttypes.h stdint.h unistd.h
5965do
5966as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5967{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5968$as_echo_n "checking for $ac_header... " >&6; }
5969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5970  $as_echo_n "(cached) " >&6
5971else
5972  cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h.  */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h.  */
5978$ac_includes_default
5979
5980#include <$ac_header>
5981_ACEOF
5982rm -f conftest.$ac_objext
5983if { (ac_try="$ac_compile"
5984case "(($ac_try" in
5985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986  *) ac_try_echo=$ac_try;;
5987esac
5988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5989$as_echo "$ac_try_echo") >&5
5990  (eval "$ac_compile") 2>conftest.er1
5991  ac_status=$?
5992  grep -v '^ *+' conftest.er1 >conftest.err
5993  rm -f conftest.er1
5994  cat conftest.err >&5
5995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); } && {
5997	 test -z "$ac_c_werror_flag" ||
5998	 test ! -s conftest.err
5999       } && test -s conftest.$ac_objext; then
6000  eval "$as_ac_Header=yes"
6001else
6002  $as_echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
6004
6005	eval "$as_ac_Header=no"
6006fi
6007
6008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009fi
6010ac_res=`eval 'as_val=${'$as_ac_Header'}
6011		 $as_echo "$as_val"'`
6012	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6013$as_echo "$ac_res" >&6; }
6014as_val=`eval 'as_val=${'$as_ac_Header'}
6015		 $as_echo "$as_val"'`
6016   if test "x$as_val" = x""yes; then
6017  cat >>confdefs.h <<_ACEOF
6018#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6019_ACEOF
6020
6021fi
6022
6023done
6024
6025
6026
6027
6028for ac_header in locale.h
6029do
6030as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6032  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6033$as_echo_n "checking for $ac_header... " >&6; }
6034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6035  $as_echo_n "(cached) " >&6
6036fi
6037ac_res=`eval 'as_val=${'$as_ac_Header'}
6038		 $as_echo "$as_val"'`
6039	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6040$as_echo "$ac_res" >&6; }
6041else
6042  # Is the header compilable?
6043{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6044$as_echo_n "checking $ac_header usability... " >&6; }
6045cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h.  */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h.  */
6051$ac_includes_default
6052#include <$ac_header>
6053_ACEOF
6054rm -f conftest.$ac_objext
6055if { (ac_try="$ac_compile"
6056case "(($ac_try" in
6057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058  *) ac_try_echo=$ac_try;;
6059esac
6060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6061$as_echo "$ac_try_echo") >&5
6062  (eval "$ac_compile") 2>conftest.er1
6063  ac_status=$?
6064  grep -v '^ *+' conftest.er1 >conftest.err
6065  rm -f conftest.er1
6066  cat conftest.err >&5
6067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); } && {
6069	 test -z "$ac_c_werror_flag" ||
6070	 test ! -s conftest.err
6071       } && test -s conftest.$ac_objext; then
6072  ac_header_compiler=yes
6073else
6074  $as_echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
6076
6077	ac_header_compiler=no
6078fi
6079
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6082$as_echo "$ac_header_compiler" >&6; }
6083
6084# Is the header present?
6085{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6086$as_echo_n "checking $ac_header presence... " >&6; }
6087cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h.  */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h.  */
6093#include <$ac_header>
6094_ACEOF
6095if { (ac_try="$ac_cpp conftest.$ac_ext"
6096case "(($ac_try" in
6097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098  *) ac_try_echo=$ac_try;;
6099esac
6100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6101$as_echo "$ac_try_echo") >&5
6102  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6103  ac_status=$?
6104  grep -v '^ *+' conftest.er1 >conftest.err
6105  rm -f conftest.er1
6106  cat conftest.err >&5
6107  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108  (exit $ac_status); } >/dev/null && {
6109	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6110	 test ! -s conftest.err
6111       }; then
6112  ac_header_preproc=yes
6113else
6114  $as_echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117  ac_header_preproc=no
6118fi
6119
6120rm -f conftest.err conftest.$ac_ext
6121{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6122$as_echo "$ac_header_preproc" >&6; }
6123
6124# So?  What about this header?
6125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6126  yes:no: )
6127    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6128$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6129    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6130$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6131    ac_header_preproc=yes
6132    ;;
6133  no:yes:* )
6134    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6135$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6136    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6137$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6138    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6139$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6140    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6141$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6142    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6143$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6144    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6145$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6146    ( cat <<\_ASBOX
6147## -------------------------------------------- ##
6148## Report this to http://gbemol.sourceforge.net ##
6149## -------------------------------------------- ##
6150_ASBOX
6151     ) | sed "s/^/$as_me: WARNING:     /" >&2
6152    ;;
6153esac
6154{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6155$as_echo_n "checking for $ac_header... " >&6; }
6156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6157  $as_echo_n "(cached) " >&6
6158else
6159  eval "$as_ac_Header=\$ac_header_preproc"
6160fi
6161ac_res=`eval 'as_val=${'$as_ac_Header'}
6162		 $as_echo "$as_val"'`
6163	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6164$as_echo "$ac_res" >&6; }
6165
6166fi
6167as_val=`eval 'as_val=${'$as_ac_Header'}
6168		 $as_echo "$as_val"'`
6169   if test "x$as_val" = x""yes; then
6170  cat >>confdefs.h <<_ACEOF
6171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6172_ACEOF
6173
6174fi
6175
6176done
6177
6178    if test $ac_cv_header_locale_h = yes; then
6179    { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6180$as_echo_n "checking for LC_MESSAGES... " >&6; }
6181if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6182  $as_echo_n "(cached) " >&6
6183else
6184  cat >conftest.$ac_ext <<_ACEOF
6185/* confdefs.h.  */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h.  */
6190#include <locale.h>
6191int
6192main ()
6193{
6194return LC_MESSAGES
6195  ;
6196  return 0;
6197}
6198_ACEOF
6199rm -f conftest.$ac_objext conftest$ac_exeext
6200if { (ac_try="$ac_link"
6201case "(($ac_try" in
6202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203  *) ac_try_echo=$ac_try;;
6204esac
6205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206$as_echo "$ac_try_echo") >&5
6207  (eval "$ac_link") 2>conftest.er1
6208  ac_status=$?
6209  grep -v '^ *+' conftest.er1 >conftest.err
6210  rm -f conftest.er1
6211  cat conftest.err >&5
6212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213  (exit $ac_status); } && {
6214	 test -z "$ac_c_werror_flag" ||
6215	 test ! -s conftest.err
6216       } && test -s conftest$ac_exeext && {
6217	 test "$cross_compiling" = yes ||
6218	 $as_test_x conftest$ac_exeext
6219       }; then
6220  am_cv_val_LC_MESSAGES=yes
6221else
6222  $as_echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225	am_cv_val_LC_MESSAGES=no
6226fi
6227
6228rm -rf conftest.dSYM
6229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6230      conftest$ac_exeext conftest.$ac_ext
6231fi
6232{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6233$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
6234    if test $am_cv_val_LC_MESSAGES = yes; then
6235
6236cat >>confdefs.h <<\_ACEOF
6237#define HAVE_LC_MESSAGES 1
6238_ACEOF
6239
6240    fi
6241  fi
6242     USE_NLS=yes
6243
6244
6245    gt_cv_have_gettext=no
6246
6247    CATOBJEXT=NONE
6248    XGETTEXT=:
6249    INTLLIBS=
6250
6251    if test "${ac_cv_header_libintl_h+set}" = set; then
6252  { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6253$as_echo_n "checking for libintl.h... " >&6; }
6254if test "${ac_cv_header_libintl_h+set}" = set; then
6255  $as_echo_n "(cached) " >&6
6256fi
6257{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6258$as_echo "$ac_cv_header_libintl_h" >&6; }
6259else
6260  # Is the header compilable?
6261{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
6262$as_echo_n "checking libintl.h usability... " >&6; }
6263cat >conftest.$ac_ext <<_ACEOF
6264/* confdefs.h.  */
6265_ACEOF
6266cat confdefs.h >>conftest.$ac_ext
6267cat >>conftest.$ac_ext <<_ACEOF
6268/* end confdefs.h.  */
6269$ac_includes_default
6270#include <libintl.h>
6271_ACEOF
6272rm -f conftest.$ac_objext
6273if { (ac_try="$ac_compile"
6274case "(($ac_try" in
6275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276  *) ac_try_echo=$ac_try;;
6277esac
6278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279$as_echo "$ac_try_echo") >&5
6280  (eval "$ac_compile") 2>conftest.er1
6281  ac_status=$?
6282  grep -v '^ *+' conftest.er1 >conftest.err
6283  rm -f conftest.er1
6284  cat conftest.err >&5
6285  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286  (exit $ac_status); } && {
6287	 test -z "$ac_c_werror_flag" ||
6288	 test ! -s conftest.err
6289       } && test -s conftest.$ac_objext; then
6290  ac_header_compiler=yes
6291else
6292  $as_echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295	ac_header_compiler=no
6296fi
6297
6298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6300$as_echo "$ac_header_compiler" >&6; }
6301
6302# Is the header present?
6303{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
6304$as_echo_n "checking libintl.h presence... " >&6; }
6305cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h.  */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h.  */
6311#include <libintl.h>
6312_ACEOF
6313if { (ac_try="$ac_cpp conftest.$ac_ext"
6314case "(($ac_try" in
6315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316  *) ac_try_echo=$ac_try;;
6317esac
6318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6319$as_echo "$ac_try_echo") >&5
6320  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6321  ac_status=$?
6322  grep -v '^ *+' conftest.er1 >conftest.err
6323  rm -f conftest.er1
6324  cat conftest.err >&5
6325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326  (exit $ac_status); } >/dev/null && {
6327	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6328	 test ! -s conftest.err
6329       }; then
6330  ac_header_preproc=yes
6331else
6332  $as_echo "$as_me: failed program was:" >&5
6333sed 's/^/| /' conftest.$ac_ext >&5
6334
6335  ac_header_preproc=no
6336fi
6337
6338rm -f conftest.err conftest.$ac_ext
6339{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6340$as_echo "$ac_header_preproc" >&6; }
6341
6342# So?  What about this header?
6343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6344  yes:no: )
6345    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6346$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6347    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6348$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6349    ac_header_preproc=yes
6350    ;;
6351  no:yes:* )
6352    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6353$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6354    { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
6355$as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
6356    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6357$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6358    { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
6359$as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6360    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6361$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6362    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6363$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6364    ( cat <<\_ASBOX
6365## -------------------------------------------- ##
6366## Report this to http://gbemol.sourceforge.net ##
6367## -------------------------------------------- ##
6368_ASBOX
6369     ) | sed "s/^/$as_me: WARNING:     /" >&2
6370    ;;
6371esac
6372{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6373$as_echo_n "checking for libintl.h... " >&6; }
6374if test "${ac_cv_header_libintl_h+set}" = set; then
6375  $as_echo_n "(cached) " >&6
6376else
6377  ac_cv_header_libintl_h=$ac_header_preproc
6378fi
6379{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6380$as_echo "$ac_cv_header_libintl_h" >&6; }
6381
6382fi
6383if test "x$ac_cv_header_libintl_h" = x""yes; then
6384  gt_cv_func_dgettext_libintl="no"
6385      libintl_extra_libs=""
6386
6387      #
6388      # First check in libc
6389      #
6390      { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6391$as_echo_n "checking for ngettext in libc... " >&6; }
6392if test "${gt_cv_func_ngettext_libc+set}" = set; then
6393  $as_echo_n "(cached) " >&6
6394else
6395  cat >conftest.$ac_ext <<_ACEOF
6396/* confdefs.h.  */
6397_ACEOF
6398cat confdefs.h >>conftest.$ac_ext
6399cat >>conftest.$ac_ext <<_ACEOF
6400/* end confdefs.h.  */
6401
6402#include <libintl.h>
6403
6404int
6405main ()
6406{
6407return !ngettext ("","", 1)
6408  ;
6409  return 0;
6410}
6411_ACEOF
6412rm -f conftest.$ac_objext conftest$ac_exeext
6413if { (ac_try="$ac_link"
6414case "(($ac_try" in
6415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416  *) ac_try_echo=$ac_try;;
6417esac
6418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6419$as_echo "$ac_try_echo") >&5
6420  (eval "$ac_link") 2>conftest.er1
6421  ac_status=$?
6422  grep -v '^ *+' conftest.er1 >conftest.err
6423  rm -f conftest.er1
6424  cat conftest.err >&5
6425  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); } && {
6427	 test -z "$ac_c_werror_flag" ||
6428	 test ! -s conftest.err
6429       } && test -s conftest$ac_exeext && {
6430	 test "$cross_compiling" = yes ||
6431	 $as_test_x conftest$ac_exeext
6432       }; then
6433  gt_cv_func_ngettext_libc=yes
6434else
6435  $as_echo "$as_me: failed program was:" >&5
6436sed 's/^/| /' conftest.$ac_ext >&5
6437
6438	gt_cv_func_ngettext_libc=no
6439fi
6440
6441rm -rf conftest.dSYM
6442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6443      conftest$ac_exeext conftest.$ac_ext
6444
6445fi
6446{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6447$as_echo "$gt_cv_func_ngettext_libc" >&6; }
6448
6449      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6450	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6451$as_echo_n "checking for dgettext in libc... " >&6; }
6452if test "${gt_cv_func_dgettext_libc+set}" = set; then
6453  $as_echo_n "(cached) " >&6
6454else
6455  cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h.  */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h.  */
6461
6462#include <libintl.h>
6463
6464int
6465main ()
6466{
6467return !dgettext ("","")
6468  ;
6469  return 0;
6470}
6471_ACEOF
6472rm -f conftest.$ac_objext conftest$ac_exeext
6473if { (ac_try="$ac_link"
6474case "(($ac_try" in
6475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476  *) ac_try_echo=$ac_try;;
6477esac
6478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6479$as_echo "$ac_try_echo") >&5
6480  (eval "$ac_link") 2>conftest.er1
6481  ac_status=$?
6482  grep -v '^ *+' conftest.er1 >conftest.err
6483  rm -f conftest.er1
6484  cat conftest.err >&5
6485  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486  (exit $ac_status); } && {
6487	 test -z "$ac_c_werror_flag" ||
6488	 test ! -s conftest.err
6489       } && test -s conftest$ac_exeext && {
6490	 test "$cross_compiling" = yes ||
6491	 $as_test_x conftest$ac_exeext
6492       }; then
6493  gt_cv_func_dgettext_libc=yes
6494else
6495  $as_echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
6498	gt_cv_func_dgettext_libc=no
6499fi
6500
6501rm -rf conftest.dSYM
6502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6503      conftest$ac_exeext conftest.$ac_ext
6504
6505fi
6506{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6507$as_echo "$gt_cv_func_dgettext_libc" >&6; }
6508      fi
6509
6510      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6511
6512for ac_func in bind_textdomain_codeset
6513do
6514as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6515{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6516$as_echo_n "checking for $ac_func... " >&6; }
6517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6518  $as_echo_n "(cached) " >&6
6519else
6520  cat >conftest.$ac_ext <<_ACEOF
6521/* confdefs.h.  */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h.  */
6526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6527   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6528#define $ac_func innocuous_$ac_func
6529
6530/* System header to define __stub macros and hopefully few prototypes,
6531    which can conflict with char $ac_func (); below.
6532    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6533    <limits.h> exists even on freestanding compilers.  */
6534
6535#ifdef __STDC__
6536# include <limits.h>
6537#else
6538# include <assert.h>
6539#endif
6540
6541#undef $ac_func
6542
6543/* Override any GCC internal prototype to avoid an error.
6544   Use char because int might match the return type of a GCC
6545   builtin and then its argument prototype would still apply.  */
6546#ifdef __cplusplus
6547extern "C"
6548#endif
6549char $ac_func ();
6550/* The GNU C library defines this for functions which it implements
6551    to always fail with ENOSYS.  Some functions are actually named
6552    something starting with __ and the normal name is an alias.  */
6553#if defined __stub_$ac_func || defined __stub___$ac_func
6554choke me
6555#endif
6556
6557int
6558main ()
6559{
6560return $ac_func ();
6561  ;
6562  return 0;
6563}
6564_ACEOF
6565rm -f conftest.$ac_objext conftest$ac_exeext
6566if { (ac_try="$ac_link"
6567case "(($ac_try" in
6568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569  *) ac_try_echo=$ac_try;;
6570esac
6571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6572$as_echo "$ac_try_echo") >&5
6573  (eval "$ac_link") 2>conftest.er1
6574  ac_status=$?
6575  grep -v '^ *+' conftest.er1 >conftest.err
6576  rm -f conftest.er1
6577  cat conftest.err >&5
6578  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579  (exit $ac_status); } && {
6580	 test -z "$ac_c_werror_flag" ||
6581	 test ! -s conftest.err
6582       } && test -s conftest$ac_exeext && {
6583	 test "$cross_compiling" = yes ||
6584	 $as_test_x conftest$ac_exeext
6585       }; then
6586  eval "$as_ac_var=yes"
6587else
6588  $as_echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
6591	eval "$as_ac_var=no"
6592fi
6593
6594rm -rf conftest.dSYM
6595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6596      conftest$ac_exeext conftest.$ac_ext
6597fi
6598ac_res=`eval 'as_val=${'$as_ac_var'}
6599		 $as_echo "$as_val"'`
6600	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6601$as_echo "$ac_res" >&6; }
6602as_val=`eval 'as_val=${'$as_ac_var'}
6603		 $as_echo "$as_val"'`
6604   if test "x$as_val" = x""yes; then
6605  cat >>confdefs.h <<_ACEOF
6606#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6607_ACEOF
6608
6609fi
6610done
6611
6612      fi
6613
6614      #
6615      # If we don't have everything we want, check in libintl
6616      #
6617      if test "$gt_cv_func_dgettext_libc" != "yes" \
6618	 || test "$gt_cv_func_ngettext_libc" != "yes" \
6619         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6620
6621        { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6622$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
6623if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6624  $as_echo_n "(cached) " >&6
6625else
6626  ac_check_lib_save_LIBS=$LIBS
6627LIBS="-lintl  $LIBS"
6628cat >conftest.$ac_ext <<_ACEOF
6629/* confdefs.h.  */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h.  */
6634
6635/* Override any GCC internal prototype to avoid an error.
6636   Use char because int might match the return type of a GCC
6637   builtin and then its argument prototype would still apply.  */
6638#ifdef __cplusplus
6639extern "C"
6640#endif
6641char bindtextdomain ();
6642int
6643main ()
6644{
6645return bindtextdomain ();
6646  ;
6647  return 0;
6648}
6649_ACEOF
6650rm -f conftest.$ac_objext conftest$ac_exeext
6651if { (ac_try="$ac_link"
6652case "(($ac_try" in
6653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654  *) ac_try_echo=$ac_try;;
6655esac
6656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6657$as_echo "$ac_try_echo") >&5
6658  (eval "$ac_link") 2>conftest.er1
6659  ac_status=$?
6660  grep -v '^ *+' conftest.er1 >conftest.err
6661  rm -f conftest.er1
6662  cat conftest.err >&5
6663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664  (exit $ac_status); } && {
6665	 test -z "$ac_c_werror_flag" ||
6666	 test ! -s conftest.err
6667       } && test -s conftest$ac_exeext && {
6668	 test "$cross_compiling" = yes ||
6669	 $as_test_x conftest$ac_exeext
6670       }; then
6671  ac_cv_lib_intl_bindtextdomain=yes
6672else
6673  $as_echo "$as_me: failed program was:" >&5
6674sed 's/^/| /' conftest.$ac_ext >&5
6675
6676	ac_cv_lib_intl_bindtextdomain=no
6677fi
6678
6679rm -rf conftest.dSYM
6680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6681      conftest$ac_exeext conftest.$ac_ext
6682LIBS=$ac_check_lib_save_LIBS
6683fi
6684{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6685$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
6686if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
6687  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6688$as_echo_n "checking for ngettext in -lintl... " >&6; }
6689if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6690  $as_echo_n "(cached) " >&6
6691else
6692  ac_check_lib_save_LIBS=$LIBS
6693LIBS="-lintl  $LIBS"
6694cat >conftest.$ac_ext <<_ACEOF
6695/* confdefs.h.  */
6696_ACEOF
6697cat confdefs.h >>conftest.$ac_ext
6698cat >>conftest.$ac_ext <<_ACEOF
6699/* end confdefs.h.  */
6700
6701/* Override any GCC internal prototype to avoid an error.
6702   Use char because int might match the return type of a GCC
6703   builtin and then its argument prototype would still apply.  */
6704#ifdef __cplusplus
6705extern "C"
6706#endif
6707char ngettext ();
6708int
6709main ()
6710{
6711return ngettext ();
6712  ;
6713  return 0;
6714}
6715_ACEOF
6716rm -f conftest.$ac_objext conftest$ac_exeext
6717if { (ac_try="$ac_link"
6718case "(($ac_try" in
6719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720  *) ac_try_echo=$ac_try;;
6721esac
6722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6723$as_echo "$ac_try_echo") >&5
6724  (eval "$ac_link") 2>conftest.er1
6725  ac_status=$?
6726  grep -v '^ *+' conftest.er1 >conftest.err
6727  rm -f conftest.er1
6728  cat conftest.err >&5
6729  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730  (exit $ac_status); } && {
6731	 test -z "$ac_c_werror_flag" ||
6732	 test ! -s conftest.err
6733       } && test -s conftest$ac_exeext && {
6734	 test "$cross_compiling" = yes ||
6735	 $as_test_x conftest$ac_exeext
6736       }; then
6737  ac_cv_lib_intl_ngettext=yes
6738else
6739  $as_echo "$as_me: failed program was:" >&5
6740sed 's/^/| /' conftest.$ac_ext >&5
6741
6742	ac_cv_lib_intl_ngettext=no
6743fi
6744
6745rm -rf conftest.dSYM
6746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6747      conftest$ac_exeext conftest.$ac_ext
6748LIBS=$ac_check_lib_save_LIBS
6749fi
6750{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6751$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
6752if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
6753  { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6754$as_echo_n "checking for dgettext in -lintl... " >&6; }
6755if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6756  $as_echo_n "(cached) " >&6
6757else
6758  ac_check_lib_save_LIBS=$LIBS
6759LIBS="-lintl  $LIBS"
6760cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h.  */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h.  */
6766
6767/* Override any GCC internal prototype to avoid an error.
6768   Use char because int might match the return type of a GCC
6769   builtin and then its argument prototype would still apply.  */
6770#ifdef __cplusplus
6771extern "C"
6772#endif
6773char dgettext ();
6774int
6775main ()
6776{
6777return dgettext ();
6778  ;
6779  return 0;
6780}
6781_ACEOF
6782rm -f conftest.$ac_objext conftest$ac_exeext
6783if { (ac_try="$ac_link"
6784case "(($ac_try" in
6785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786  *) ac_try_echo=$ac_try;;
6787esac
6788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6789$as_echo "$ac_try_echo") >&5
6790  (eval "$ac_link") 2>conftest.er1
6791  ac_status=$?
6792  grep -v '^ *+' conftest.er1 >conftest.err
6793  rm -f conftest.er1
6794  cat conftest.err >&5
6795  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796  (exit $ac_status); } && {
6797	 test -z "$ac_c_werror_flag" ||
6798	 test ! -s conftest.err
6799       } && test -s conftest$ac_exeext && {
6800	 test "$cross_compiling" = yes ||
6801	 $as_test_x conftest$ac_exeext
6802       }; then
6803  ac_cv_lib_intl_dgettext=yes
6804else
6805  $as_echo "$as_me: failed program was:" >&5
6806sed 's/^/| /' conftest.$ac_ext >&5
6807
6808	ac_cv_lib_intl_dgettext=no
6809fi
6810
6811rm -rf conftest.dSYM
6812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6813      conftest$ac_exeext conftest.$ac_ext
6814LIBS=$ac_check_lib_save_LIBS
6815fi
6816{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6817$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
6818if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
6819  gt_cv_func_dgettext_libintl=yes
6820fi
6821
6822fi
6823
6824fi
6825
6826
6827	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6828	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6829$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
6830	  { $as_echo "$as_me:$LINENO: result: " >&5
6831$as_echo "" >&6; }
6832  	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6833$as_echo_n "checking for ngettext in -lintl... " >&6; }
6834if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6835  $as_echo_n "(cached) " >&6
6836else
6837  ac_check_lib_save_LIBS=$LIBS
6838LIBS="-lintl -liconv $LIBS"
6839cat >conftest.$ac_ext <<_ACEOF
6840/* confdefs.h.  */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h.  */
6845
6846/* Override any GCC internal prototype to avoid an error.
6847   Use char because int might match the return type of a GCC
6848   builtin and then its argument prototype would still apply.  */
6849#ifdef __cplusplus
6850extern "C"
6851#endif
6852char ngettext ();
6853int
6854main ()
6855{
6856return ngettext ();
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861rm -f conftest.$ac_objext conftest$ac_exeext
6862if { (ac_try="$ac_link"
6863case "(($ac_try" in
6864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865  *) ac_try_echo=$ac_try;;
6866esac
6867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6868$as_echo "$ac_try_echo") >&5
6869  (eval "$ac_link") 2>conftest.er1
6870  ac_status=$?
6871  grep -v '^ *+' conftest.er1 >conftest.err
6872  rm -f conftest.er1
6873  cat conftest.err >&5
6874  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875  (exit $ac_status); } && {
6876	 test -z "$ac_c_werror_flag" ||
6877	 test ! -s conftest.err
6878       } && test -s conftest$ac_exeext && {
6879	 test "$cross_compiling" = yes ||
6880	 $as_test_x conftest$ac_exeext
6881       }; then
6882  ac_cv_lib_intl_ngettext=yes
6883else
6884  $as_echo "$as_me: failed program was:" >&5
6885sed 's/^/| /' conftest.$ac_ext >&5
6886
6887	ac_cv_lib_intl_ngettext=no
6888fi
6889
6890rm -rf conftest.dSYM
6891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6892      conftest$ac_exeext conftest.$ac_ext
6893LIBS=$ac_check_lib_save_LIBS
6894fi
6895{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6896$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
6897if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
6898  { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6899$as_echo_n "checking for dcgettext in -lintl... " >&6; }
6900if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6901  $as_echo_n "(cached) " >&6
6902else
6903  ac_check_lib_save_LIBS=$LIBS
6904LIBS="-lintl -liconv $LIBS"
6905cat >conftest.$ac_ext <<_ACEOF
6906/* confdefs.h.  */
6907_ACEOF
6908cat confdefs.h >>conftest.$ac_ext
6909cat >>conftest.$ac_ext <<_ACEOF
6910/* end confdefs.h.  */
6911
6912/* Override any GCC internal prototype to avoid an error.
6913   Use char because int might match the return type of a GCC
6914   builtin and then its argument prototype would still apply.  */
6915#ifdef __cplusplus
6916extern "C"
6917#endif
6918char dcgettext ();
6919int
6920main ()
6921{
6922return dcgettext ();
6923  ;
6924  return 0;
6925}
6926_ACEOF
6927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (ac_try="$ac_link"
6929case "(($ac_try" in
6930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931  *) ac_try_echo=$ac_try;;
6932esac
6933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6934$as_echo "$ac_try_echo") >&5
6935  (eval "$ac_link") 2>conftest.er1
6936  ac_status=$?
6937  grep -v '^ *+' conftest.er1 >conftest.err
6938  rm -f conftest.er1
6939  cat conftest.err >&5
6940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941  (exit $ac_status); } && {
6942	 test -z "$ac_c_werror_flag" ||
6943	 test ! -s conftest.err
6944       } && test -s conftest$ac_exeext && {
6945	 test "$cross_compiling" = yes ||
6946	 $as_test_x conftest$ac_exeext
6947       }; then
6948  ac_cv_lib_intl_dcgettext=yes
6949else
6950  $as_echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
6953	ac_cv_lib_intl_dcgettext=no
6954fi
6955
6956rm -rf conftest.dSYM
6957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6958      conftest$ac_exeext conftest.$ac_ext
6959LIBS=$ac_check_lib_save_LIBS
6960fi
6961{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
6962$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
6963if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
6964  gt_cv_func_dgettext_libintl=yes
6965			libintl_extra_libs=-liconv
6966else
6967  :
6968fi
6969
6970else
6971  :
6972fi
6973
6974        fi
6975
6976        #
6977        # If we found libintl, then check in it for bind_textdomain_codeset();
6978        # we'll prefer libc if neither have bind_textdomain_codeset(),
6979        # and both have dgettext and ngettext
6980        #
6981        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6982          glib_save_LIBS="$LIBS"
6983          LIBS="$LIBS -lintl $libintl_extra_libs"
6984          unset ac_cv_func_bind_textdomain_codeset
6985
6986for ac_func in bind_textdomain_codeset
6987do
6988as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6989{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6990$as_echo_n "checking for $ac_func... " >&6; }
6991if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6992  $as_echo_n "(cached) " >&6
6993else
6994  cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h.  */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h.  */
7000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7001   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7002#define $ac_func innocuous_$ac_func
7003
7004/* System header to define __stub macros and hopefully few prototypes,
7005    which can conflict with char $ac_func (); below.
7006    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7007    <limits.h> exists even on freestanding compilers.  */
7008
7009#ifdef __STDC__
7010# include <limits.h>
7011#else
7012# include <assert.h>
7013#endif
7014
7015#undef $ac_func
7016
7017/* Override any GCC internal prototype to avoid an error.
7018   Use char because int might match the return type of a GCC
7019   builtin and then its argument prototype would still apply.  */
7020#ifdef __cplusplus
7021extern "C"
7022#endif
7023char $ac_func ();
7024/* The GNU C library defines this for functions which it implements
7025    to always fail with ENOSYS.  Some functions are actually named
7026    something starting with __ and the normal name is an alias.  */
7027#if defined __stub_$ac_func || defined __stub___$ac_func
7028choke me
7029#endif
7030
7031int
7032main ()
7033{
7034return $ac_func ();
7035  ;
7036  return 0;
7037}
7038_ACEOF
7039rm -f conftest.$ac_objext conftest$ac_exeext
7040if { (ac_try="$ac_link"
7041case "(($ac_try" in
7042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043  *) ac_try_echo=$ac_try;;
7044esac
7045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7046$as_echo "$ac_try_echo") >&5
7047  (eval "$ac_link") 2>conftest.er1
7048  ac_status=$?
7049  grep -v '^ *+' conftest.er1 >conftest.err
7050  rm -f conftest.er1
7051  cat conftest.err >&5
7052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); } && {
7054	 test -z "$ac_c_werror_flag" ||
7055	 test ! -s conftest.err
7056       } && test -s conftest$ac_exeext && {
7057	 test "$cross_compiling" = yes ||
7058	 $as_test_x conftest$ac_exeext
7059       }; then
7060  eval "$as_ac_var=yes"
7061else
7062  $as_echo "$as_me: failed program was:" >&5
7063sed 's/^/| /' conftest.$ac_ext >&5
7064
7065	eval "$as_ac_var=no"
7066fi
7067
7068rm -rf conftest.dSYM
7069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7070      conftest$ac_exeext conftest.$ac_ext
7071fi
7072ac_res=`eval 'as_val=${'$as_ac_var'}
7073		 $as_echo "$as_val"'`
7074	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7075$as_echo "$ac_res" >&6; }
7076as_val=`eval 'as_val=${'$as_ac_var'}
7077		 $as_echo "$as_val"'`
7078   if test "x$as_val" = x""yes; then
7079  cat >>confdefs.h <<_ACEOF
7080#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7081_ACEOF
7082
7083fi
7084done
7085
7086          LIBS="$glib_save_LIBS"
7087
7088          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7089            gt_cv_func_dgettext_libc=no
7090          else
7091            if test "$gt_cv_func_dgettext_libc" = "yes" \
7092		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
7093              gt_cv_func_dgettext_libintl=no
7094            fi
7095          fi
7096        fi
7097      fi
7098
7099      if test "$gt_cv_func_dgettext_libc" = "yes" \
7100	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
7101        gt_cv_have_gettext=yes
7102      fi
7103
7104      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7105        INTLLIBS="-lintl $libintl_extra_libs"
7106      fi
7107
7108      if test "$gt_cv_have_gettext" = "yes"; then
7109
7110cat >>confdefs.h <<\_ACEOF
7111#define HAVE_GETTEXT 1
7112_ACEOF
7113
7114	# Extract the first word of "msgfmt", so it can be a program name with args.
7115set dummy msgfmt; ac_word=$2
7116{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7117$as_echo_n "checking for $ac_word... " >&6; }
7118if test "${ac_cv_path_MSGFMT+set}" = set; then
7119  $as_echo_n "(cached) " >&6
7120else
7121  case "$MSGFMT" in
7122  /*)
7123  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7124  ;;
7125  *)
7126  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7127  for ac_dir in $PATH; do
7128    test -z "$ac_dir" && ac_dir=.
7129    if test -f $ac_dir/$ac_word; then
7130      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7131	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7132	break
7133      fi
7134    fi
7135  done
7136  IFS="$ac_save_ifs"
7137  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7138  ;;
7139esac
7140fi
7141MSGFMT="$ac_cv_path_MSGFMT"
7142if test "$MSGFMT" != "no"; then
7143  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7144$as_echo "$MSGFMT" >&6; }
7145else
7146  { $as_echo "$as_me:$LINENO: result: no" >&5
7147$as_echo "no" >&6; }
7148fi
7149	if test "$MSGFMT" != "no"; then
7150          glib_save_LIBS="$LIBS"
7151          LIBS="$LIBS $INTLLIBS"
7152
7153for ac_func in dcgettext
7154do
7155as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7156{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7157$as_echo_n "checking for $ac_func... " >&6; }
7158if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7159  $as_echo_n "(cached) " >&6
7160else
7161  cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h.  */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h.  */
7167/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7168   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7169#define $ac_func innocuous_$ac_func
7170
7171/* System header to define __stub macros and hopefully few prototypes,
7172    which can conflict with char $ac_func (); below.
7173    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7174    <limits.h> exists even on freestanding compilers.  */
7175
7176#ifdef __STDC__
7177# include <limits.h>
7178#else
7179# include <assert.h>
7180#endif
7181
7182#undef $ac_func
7183
7184/* Override any GCC internal prototype to avoid an error.
7185   Use char because int might match the return type of a GCC
7186   builtin and then its argument prototype would still apply.  */
7187#ifdef __cplusplus
7188extern "C"
7189#endif
7190char $ac_func ();
7191/* The GNU C library defines this for functions which it implements
7192    to always fail with ENOSYS.  Some functions are actually named
7193    something starting with __ and the normal name is an alias.  */
7194#if defined __stub_$ac_func || defined __stub___$ac_func
7195choke me
7196#endif
7197
7198int
7199main ()
7200{
7201return $ac_func ();
7202  ;
7203  return 0;
7204}
7205_ACEOF
7206rm -f conftest.$ac_objext conftest$ac_exeext
7207if { (ac_try="$ac_link"
7208case "(($ac_try" in
7209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7210  *) ac_try_echo=$ac_try;;
7211esac
7212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7213$as_echo "$ac_try_echo") >&5
7214  (eval "$ac_link") 2>conftest.er1
7215  ac_status=$?
7216  grep -v '^ *+' conftest.er1 >conftest.err
7217  rm -f conftest.er1
7218  cat conftest.err >&5
7219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220  (exit $ac_status); } && {
7221	 test -z "$ac_c_werror_flag" ||
7222	 test ! -s conftest.err
7223       } && test -s conftest$ac_exeext && {
7224	 test "$cross_compiling" = yes ||
7225	 $as_test_x conftest$ac_exeext
7226       }; then
7227  eval "$as_ac_var=yes"
7228else
7229  $as_echo "$as_me: failed program was:" >&5
7230sed 's/^/| /' conftest.$ac_ext >&5
7231
7232	eval "$as_ac_var=no"
7233fi
7234
7235rm -rf conftest.dSYM
7236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7237      conftest$ac_exeext conftest.$ac_ext
7238fi
7239ac_res=`eval 'as_val=${'$as_ac_var'}
7240		 $as_echo "$as_val"'`
7241	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7242$as_echo "$ac_res" >&6; }
7243as_val=`eval 'as_val=${'$as_ac_var'}
7244		 $as_echo "$as_val"'`
7245   if test "x$as_val" = x""yes; then
7246  cat >>confdefs.h <<_ACEOF
7247#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7248_ACEOF
7249
7250fi
7251done
7252
7253	  MSGFMT_OPTS=
7254	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
7255$as_echo_n "checking if msgfmt accepts -c... " >&6; }
7256	  cat >conftest.foo <<_ACEOF
7257
7258msgid ""
7259msgstr ""
7260"Content-Type: text/plain; charset=UTF-8\n"
7261"Project-Id-Version: test 1.0\n"
7262"PO-Revision-Date: 2007-02-15 12:01+0100\n"
7263"Last-Translator: test <foo@bar.xx>\n"
7264"Language-Team: C <LL@li.org>\n"
7265"MIME-Version: 1.0\n"
7266"Content-Transfer-Encoding: 8bit\n"
7267
7268_ACEOF
7269if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
7270  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
7271  ac_status=$?
7272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273  (exit $ac_status); }; then
7274  MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
7275$as_echo "yes" >&6; }
7276else { $as_echo "$as_me:$LINENO: result: no" >&5
7277$as_echo "no" >&6; }
7278echo "$as_me: failed input was:" >&5
7279sed 's/^/| /' conftest.foo >&5
7280fi
7281
7282	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
7283set dummy gmsgfmt; ac_word=$2
7284{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7285$as_echo_n "checking for $ac_word... " >&6; }
7286if test "${ac_cv_path_GMSGFMT+set}" = set; then
7287  $as_echo_n "(cached) " >&6
7288else
7289  case $GMSGFMT in
7290  [\\/]* | ?:[\\/]*)
7291  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7292  ;;
7293  *)
7294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297  IFS=$as_save_IFS
7298  test -z "$as_dir" && as_dir=.
7299  for ac_exec_ext in '' $ac_executable_extensions; do
7300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7302    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303    break 2
7304  fi
7305done
7306done
7307IFS=$as_save_IFS
7308
7309  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7310  ;;
7311esac
7312fi
7313GMSGFMT=$ac_cv_path_GMSGFMT
7314if test -n "$GMSGFMT"; then
7315  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7316$as_echo "$GMSGFMT" >&6; }
7317else
7318  { $as_echo "$as_me:$LINENO: result: no" >&5
7319$as_echo "no" >&6; }
7320fi
7321
7322
7323	  # Extract the first word of "xgettext", so it can be a program name with args.
7324set dummy xgettext; ac_word=$2
7325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7326$as_echo_n "checking for $ac_word... " >&6; }
7327if test "${ac_cv_path_XGETTEXT+set}" = set; then
7328  $as_echo_n "(cached) " >&6
7329else
7330  case "$XGETTEXT" in
7331  /*)
7332  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7333  ;;
7334  *)
7335  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7336  for ac_dir in $PATH; do
7337    test -z "$ac_dir" && ac_dir=.
7338    if test -f $ac_dir/$ac_word; then
7339      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7340	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7341	break
7342      fi
7343    fi
7344  done
7345  IFS="$ac_save_ifs"
7346  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7347  ;;
7348esac
7349fi
7350XGETTEXT="$ac_cv_path_XGETTEXT"
7351if test "$XGETTEXT" != ":"; then
7352  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7353$as_echo "$XGETTEXT" >&6; }
7354else
7355  { $as_echo "$as_me:$LINENO: result: no" >&5
7356$as_echo "no" >&6; }
7357fi
7358
7359	  cat >conftest.$ac_ext <<_ACEOF
7360/* confdefs.h.  */
7361_ACEOF
7362cat confdefs.h >>conftest.$ac_ext
7363cat >>conftest.$ac_ext <<_ACEOF
7364/* end confdefs.h.  */
7365
7366int
7367main ()
7368{
7369extern int _nl_msg_cat_cntr;
7370			 return _nl_msg_cat_cntr
7371  ;
7372  return 0;
7373}
7374_ACEOF
7375rm -f conftest.$ac_objext conftest$ac_exeext
7376if { (ac_try="$ac_link"
7377case "(($ac_try" in
7378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379  *) ac_try_echo=$ac_try;;
7380esac
7381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382$as_echo "$ac_try_echo") >&5
7383  (eval "$ac_link") 2>conftest.er1
7384  ac_status=$?
7385  grep -v '^ *+' conftest.er1 >conftest.err
7386  rm -f conftest.er1
7387  cat conftest.err >&5
7388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389  (exit $ac_status); } && {
7390	 test -z "$ac_c_werror_flag" ||
7391	 test ! -s conftest.err
7392       } && test -s conftest$ac_exeext && {
7393	 test "$cross_compiling" = yes ||
7394	 $as_test_x conftest$ac_exeext
7395       }; then
7396  CATOBJEXT=.gmo
7397             DATADIRNAME=share
7398else
7399  $as_echo "$as_me: failed program was:" >&5
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
7402	case $host in
7403	    *-*-solaris*)
7404	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7405$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
7406if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7407  $as_echo_n "(cached) " >&6
7408else
7409  cat >conftest.$ac_ext <<_ACEOF
7410/* confdefs.h.  */
7411_ACEOF
7412cat confdefs.h >>conftest.$ac_ext
7413cat >>conftest.$ac_ext <<_ACEOF
7414/* end confdefs.h.  */
7415/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7416   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7417#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7418
7419/* System header to define __stub macros and hopefully few prototypes,
7420    which can conflict with char bind_textdomain_codeset (); below.
7421    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7422    <limits.h> exists even on freestanding compilers.  */
7423
7424#ifdef __STDC__
7425# include <limits.h>
7426#else
7427# include <assert.h>
7428#endif
7429
7430#undef bind_textdomain_codeset
7431
7432/* Override any GCC internal prototype to avoid an error.
7433   Use char because int might match the return type of a GCC
7434   builtin and then its argument prototype would still apply.  */
7435#ifdef __cplusplus
7436extern "C"
7437#endif
7438char bind_textdomain_codeset ();
7439/* The GNU C library defines this for functions which it implements
7440    to always fail with ENOSYS.  Some functions are actually named
7441    something starting with __ and the normal name is an alias.  */
7442#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7443choke me
7444#endif
7445
7446int
7447main ()
7448{
7449return bind_textdomain_codeset ();
7450  ;
7451  return 0;
7452}
7453_ACEOF
7454rm -f conftest.$ac_objext conftest$ac_exeext
7455if { (ac_try="$ac_link"
7456case "(($ac_try" in
7457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458  *) ac_try_echo=$ac_try;;
7459esac
7460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7461$as_echo "$ac_try_echo") >&5
7462  (eval "$ac_link") 2>conftest.er1
7463  ac_status=$?
7464  grep -v '^ *+' conftest.er1 >conftest.err
7465  rm -f conftest.er1
7466  cat conftest.err >&5
7467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468  (exit $ac_status); } && {
7469	 test -z "$ac_c_werror_flag" ||
7470	 test ! -s conftest.err
7471       } && test -s conftest$ac_exeext && {
7472	 test "$cross_compiling" = yes ||
7473	 $as_test_x conftest$ac_exeext
7474       }; then
7475  ac_cv_func_bind_textdomain_codeset=yes
7476else
7477  $as_echo "$as_me: failed program was:" >&5
7478sed 's/^/| /' conftest.$ac_ext >&5
7479
7480	ac_cv_func_bind_textdomain_codeset=no
7481fi
7482
7483rm -rf conftest.dSYM
7484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485      conftest$ac_exeext conftest.$ac_ext
7486fi
7487{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7488$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
7489if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
7490  CATOBJEXT=.gmo
7491               DATADIRNAME=share
7492else
7493  CATOBJEXT=.mo
7494               DATADIRNAME=lib
7495fi
7496
7497	    ;;
7498	    *)
7499	    CATOBJEXT=.mo
7500            DATADIRNAME=lib
7501	    ;;
7502	    esac
7503fi
7504
7505rm -rf conftest.dSYM
7506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7507      conftest$ac_exeext conftest.$ac_ext
7508          LIBS="$glib_save_LIBS"
7509	  INSTOBJEXT=.mo
7510	else
7511	  gt_cv_have_gettext=no
7512	fi
7513      fi
7514
7515fi
7516
7517
7518
7519    if test "$gt_cv_have_gettext" = "yes" ; then
7520
7521cat >>confdefs.h <<\_ACEOF
7522#define ENABLE_NLS 1
7523_ACEOF
7524
7525    fi
7526
7527        if test "$XGETTEXT" != ":"; then
7528                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7529        : ;
7530      else
7531        { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7532$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7533        XGETTEXT=":"
7534      fi
7535    fi
7536
7537    # We need to process the po/ directory.
7538    POSUB=po
7539
7540    ac_config_commands="$ac_config_commands default-1"
7541
7542
7543                for lang in $ALL_LINGUAS; do
7544      GMOFILES="$GMOFILES $lang.gmo"
7545      POFILES="$POFILES $lang.po"
7546    done
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560   if test "$gt_cv_have_gettext" = "yes"; then
7561     if test "x$ALL_LINGUAS" = "x"; then
7562       LINGUAS=
7563     else
7564       { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7565$as_echo_n "checking for catalogs to be installed... " >&6; }
7566       NEW_LINGUAS=
7567       for presentlang in $ALL_LINGUAS; do
7568         useit=no
7569         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7570           desiredlanguages="$LINGUAS"
7571         else
7572           desiredlanguages="$ALL_LINGUAS"
7573         fi
7574         for desiredlang in $desiredlanguages; do
7575 	   # Use the presentlang catalog if desiredlang is
7576           #   a. equal to presentlang, or
7577           #   b. a variant of presentlang (because in this case,
7578           #      presentlang can be used as a fallback for messages
7579           #      which are not translated in the desiredlang catalog).
7580           case "$desiredlang" in
7581             "$presentlang"*) useit=yes;;
7582           esac
7583         done
7584         if test $useit = yes; then
7585           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7586         fi
7587       done
7588       LINGUAS=$NEW_LINGUAS
7589       { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
7590$as_echo "$LINGUAS" >&6; }
7591     fi
7592
7593          if test -n "$LINGUAS"; then
7594       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7595     fi
7596   fi
7597
7598            MKINSTALLDIRS=
7599   if test -n "$ac_aux_dir"; then
7600     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7601   fi
7602   if test -z "$MKINSTALLDIRS"; then
7603     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7604   fi
7605
7606
7607         test -d po || mkdir po
7608   if test "x$srcdir" != "x."; then
7609     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7610       posrcprefix="$srcdir/"
7611     else
7612       posrcprefix="../$srcdir/"
7613     fi
7614   else
7615     posrcprefix="../"
7616   fi
7617   rm -f po/POTFILES
7618   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7619	< $srcdir/po/POTFILES.in > po/POTFILES
7620
7621
7622  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7623$as_echo_n "checking whether NLS is requested... " >&6; }
7624    # Check whether --enable-nls was given.
7625if test "${enable_nls+set}" = set; then
7626  enableval=$enable_nls; USE_NLS=$enableval
7627else
7628  USE_NLS=yes
7629fi
7630
7631  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7632$as_echo "$USE_NLS" >&6; }
7633
7634
7635
7636
7637case "$am__api_version" in
7638    1.01234)
7639	{ { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
7640$as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
7641   { (exit 1); exit 1; }; }
7642    ;;
7643    *)
7644    ;;
7645esac
7646
7647if test -n "0.35.0"; then
7648    { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
7649$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
7650
7651    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7652    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
7653    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7654
7655    { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7656$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
7657    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7658	{ { $as_echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
7659$as_echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
7660   { (exit 1); exit 1; }; }
7661fi
7662
7663# Extract the first word of "intltool-update", so it can be a program name with args.
7664set dummy intltool-update; ac_word=$2
7665{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7666$as_echo_n "checking for $ac_word... " >&6; }
7667if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
7668  $as_echo_n "(cached) " >&6
7669else
7670  case $INTLTOOL_UPDATE in
7671  [\\/]* | ?:[\\/]*)
7672  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
7673  ;;
7674  *)
7675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678  IFS=$as_save_IFS
7679  test -z "$as_dir" && as_dir=.
7680  for ac_exec_ext in '' $ac_executable_extensions; do
7681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
7683    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684    break 2
7685  fi
7686done
7687done
7688IFS=$as_save_IFS
7689
7690  ;;
7691esac
7692fi
7693INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
7694if test -n "$INTLTOOL_UPDATE"; then
7695  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
7696$as_echo "$INTLTOOL_UPDATE" >&6; }
7697else
7698  { $as_echo "$as_me:$LINENO: result: no" >&5
7699$as_echo "no" >&6; }
7700fi
7701
7702
7703# Extract the first word of "intltool-merge", so it can be a program name with args.
7704set dummy intltool-merge; ac_word=$2
7705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7706$as_echo_n "checking for $ac_word... " >&6; }
7707if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
7708  $as_echo_n "(cached) " >&6
7709else
7710  case $INTLTOOL_MERGE in
7711  [\\/]* | ?:[\\/]*)
7712  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
7713  ;;
7714  *)
7715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718  IFS=$as_save_IFS
7719  test -z "$as_dir" && as_dir=.
7720  for ac_exec_ext in '' $ac_executable_extensions; do
7721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
7723    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724    break 2
7725  fi
7726done
7727done
7728IFS=$as_save_IFS
7729
7730  ;;
7731esac
7732fi
7733INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
7734if test -n "$INTLTOOL_MERGE"; then
7735  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
7736$as_echo "$INTLTOOL_MERGE" >&6; }
7737else
7738  { $as_echo "$as_me:$LINENO: result: no" >&5
7739$as_echo "no" >&6; }
7740fi
7741
7742
7743# Extract the first word of "intltool-extract", so it can be a program name with args.
7744set dummy intltool-extract; ac_word=$2
7745{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7746$as_echo_n "checking for $ac_word... " >&6; }
7747if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
7748  $as_echo_n "(cached) " >&6
7749else
7750  case $INTLTOOL_EXTRACT in
7751  [\\/]* | ?:[\\/]*)
7752  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
7753  ;;
7754  *)
7755  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758  IFS=$as_save_IFS
7759  test -z "$as_dir" && as_dir=.
7760  for ac_exec_ext in '' $ac_executable_extensions; do
7761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
7763    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764    break 2
7765  fi
7766done
7767done
7768IFS=$as_save_IFS
7769
7770  ;;
7771esac
7772fi
7773INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
7774if test -n "$INTLTOOL_EXTRACT"; then
7775  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
7776$as_echo "$INTLTOOL_EXTRACT" >&6; }
7777else
7778  { $as_echo "$as_me:$LINENO: result: no" >&5
7779$as_echo "no" >&6; }
7780fi
7781
7782
7783if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
7784    { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
7785$as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
7786   { (exit 1); exit 1; }; }
7787fi
7788
7789  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7790INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7791     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7792     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7793      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
7794     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7795   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7796    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7797INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7798       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7799      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7800      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
7801      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7802      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7803    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7804  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7805    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7806    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7807   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905# Check the gettext tools to make sure they are GNU
7906# Extract the first word of "xgettext", so it can be a program name with args.
7907set dummy xgettext; ac_word=$2
7908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7909$as_echo_n "checking for $ac_word... " >&6; }
7910if test "${ac_cv_path_XGETTEXT+set}" = set; then
7911  $as_echo_n "(cached) " >&6
7912else
7913  case $XGETTEXT in
7914  [\\/]* | ?:[\\/]*)
7915  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7916  ;;
7917  *)
7918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921  IFS=$as_save_IFS
7922  test -z "$as_dir" && as_dir=.
7923  for ac_exec_ext in '' $ac_executable_extensions; do
7924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
7926    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927    break 2
7928  fi
7929done
7930done
7931IFS=$as_save_IFS
7932
7933  ;;
7934esac
7935fi
7936XGETTEXT=$ac_cv_path_XGETTEXT
7937if test -n "$XGETTEXT"; then
7938  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7939$as_echo "$XGETTEXT" >&6; }
7940else
7941  { $as_echo "$as_me:$LINENO: result: no" >&5
7942$as_echo "no" >&6; }
7943fi
7944
7945
7946# Extract the first word of "msgmerge", so it can be a program name with args.
7947set dummy msgmerge; ac_word=$2
7948{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7949$as_echo_n "checking for $ac_word... " >&6; }
7950if test "${ac_cv_path_MSGMERGE+set}" = set; then
7951  $as_echo_n "(cached) " >&6
7952else
7953  case $MSGMERGE in
7954  [\\/]* | ?:[\\/]*)
7955  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7956  ;;
7957  *)
7958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963  for ac_exec_ext in '' $ac_executable_extensions; do
7964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
7966    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970done
7971IFS=$as_save_IFS
7972
7973  ;;
7974esac
7975fi
7976MSGMERGE=$ac_cv_path_MSGMERGE
7977if test -n "$MSGMERGE"; then
7978  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7979$as_echo "$MSGMERGE" >&6; }
7980else
7981  { $as_echo "$as_me:$LINENO: result: no" >&5
7982$as_echo "no" >&6; }
7983fi
7984
7985
7986# Extract the first word of "msgfmt", so it can be a program name with args.
7987set dummy msgfmt; ac_word=$2
7988{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7989$as_echo_n "checking for $ac_word... " >&6; }
7990if test "${ac_cv_path_MSGFMT+set}" = set; then
7991  $as_echo_n "(cached) " >&6
7992else
7993  case $MSGFMT in
7994  [\\/]* | ?:[\\/]*)
7995  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7996  ;;
7997  *)
7998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003  for ac_exec_ext in '' $ac_executable_extensions; do
8004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
8006    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010done
8011IFS=$as_save_IFS
8012
8013  ;;
8014esac
8015fi
8016MSGFMT=$ac_cv_path_MSGFMT
8017if test -n "$MSGFMT"; then
8018  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
8019$as_echo "$MSGFMT" >&6; }
8020else
8021  { $as_echo "$as_me:$LINENO: result: no" >&5
8022$as_echo "no" >&6; }
8023fi
8024
8025
8026# Extract the first word of "gmsgfmt", so it can be a program name with args.
8027set dummy gmsgfmt; ac_word=$2
8028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8029$as_echo_n "checking for $ac_word... " >&6; }
8030if test "${ac_cv_path_GMSGFMT+set}" = set; then
8031  $as_echo_n "(cached) " >&6
8032else
8033  case $GMSGFMT in
8034  [\\/]* | ?:[\\/]*)
8035  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8036  ;;
8037  *)
8038  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041  IFS=$as_save_IFS
8042  test -z "$as_dir" && as_dir=.
8043  for ac_exec_ext in '' $ac_executable_extensions; do
8044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8046    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047    break 2
8048  fi
8049done
8050done
8051IFS=$as_save_IFS
8052
8053  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8054  ;;
8055esac
8056fi
8057GMSGFMT=$ac_cv_path_GMSGFMT
8058if test -n "$GMSGFMT"; then
8059  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8060$as_echo "$GMSGFMT" >&6; }
8061else
8062  { $as_echo "$as_me:$LINENO: result: no" >&5
8063$as_echo "no" >&6; }
8064fi
8065
8066
8067if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
8068    { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
8069$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
8070   { (exit 1); exit 1; }; }
8071fi
8072xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
8073mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
8074mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
8075if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
8076    { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
8077$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
8078   { (exit 1); exit 1; }; }
8079fi
8080
8081# Extract the first word of "perl", so it can be a program name with args.
8082set dummy perl; ac_word=$2
8083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8084$as_echo_n "checking for $ac_word... " >&6; }
8085if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
8086  $as_echo_n "(cached) " >&6
8087else
8088  case $INTLTOOL_PERL in
8089  [\\/]* | ?:[\\/]*)
8090  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
8091  ;;
8092  *)
8093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096  IFS=$as_save_IFS
8097  test -z "$as_dir" && as_dir=.
8098  for ac_exec_ext in '' $ac_executable_extensions; do
8099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
8101    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8102    break 2
8103  fi
8104done
8105done
8106IFS=$as_save_IFS
8107
8108  ;;
8109esac
8110fi
8111INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
8112if test -n "$INTLTOOL_PERL"; then
8113  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
8114$as_echo "$INTLTOOL_PERL" >&6; }
8115else
8116  { $as_echo "$as_me:$LINENO: result: no" >&5
8117$as_echo "no" >&6; }
8118fi
8119
8120
8121if test -z "$INTLTOOL_PERL"; then
8122   { { $as_echo "$as_me:$LINENO: error: perl not found" >&5
8123$as_echo "$as_me: error: perl not found" >&2;}
8124   { (exit 1); exit 1; }; }
8125fi
8126{ $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
8127$as_echo_n "checking for perl >= 5.8.1... " >&6; }
8128$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
8129if test $? -ne 0; then
8130   { { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
8131$as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
8132   { (exit 1); exit 1; }; }
8133else
8134   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
8135   { $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
8136$as_echo "$IT_PERL_VERSION" >&6; }
8137fi
8138if test "x" != "xno-xml"; then
8139   { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
8140$as_echo_n "checking for XML::Parser... " >&6; }
8141   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
8142       { $as_echo "$as_me:$LINENO: result: ok" >&5
8143$as_echo "ok" >&6; }
8144   else
8145       { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
8146$as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
8147   { (exit 1); exit 1; }; }
8148   fi
8149fi
8150
8151# Substitute ALL_LINGUAS so we can use it in po/Makefile
8152
8153
8154# Set DATADIRNAME correctly if it is not set yet
8155# (copied from glib-gettext.m4)
8156if test -z "$DATADIRNAME"; then
8157  cat >conftest.$ac_ext <<_ACEOF
8158/* confdefs.h.  */
8159_ACEOF
8160cat confdefs.h >>conftest.$ac_ext
8161cat >>conftest.$ac_ext <<_ACEOF
8162/* end confdefs.h.  */
8163
8164int
8165main ()
8166{
8167extern int _nl_msg_cat_cntr;
8168                       return _nl_msg_cat_cntr
8169  ;
8170  return 0;
8171}
8172_ACEOF
8173rm -f conftest.$ac_objext conftest$ac_exeext
8174if { (ac_try="$ac_link"
8175case "(($ac_try" in
8176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177  *) ac_try_echo=$ac_try;;
8178esac
8179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8180$as_echo "$ac_try_echo") >&5
8181  (eval "$ac_link") 2>conftest.er1
8182  ac_status=$?
8183  grep -v '^ *+' conftest.er1 >conftest.err
8184  rm -f conftest.er1
8185  cat conftest.err >&5
8186  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187  (exit $ac_status); } && {
8188	 test -z "$ac_c_werror_flag" ||
8189	 test ! -s conftest.err
8190       } && test -s conftest$ac_exeext && {
8191	 test "$cross_compiling" = yes ||
8192	 $as_test_x conftest$ac_exeext
8193       }; then
8194  DATADIRNAME=share
8195else
8196  $as_echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199	case $host in
8200    *-*-solaris*)
8201                        { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8202$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
8203if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8204  $as_echo_n "(cached) " >&6
8205else
8206  cat >conftest.$ac_ext <<_ACEOF
8207/* confdefs.h.  */
8208_ACEOF
8209cat confdefs.h >>conftest.$ac_ext
8210cat >>conftest.$ac_ext <<_ACEOF
8211/* end confdefs.h.  */
8212/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8213   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8214#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8215
8216/* System header to define __stub macros and hopefully few prototypes,
8217    which can conflict with char bind_textdomain_codeset (); below.
8218    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8219    <limits.h> exists even on freestanding compilers.  */
8220
8221#ifdef __STDC__
8222# include <limits.h>
8223#else
8224# include <assert.h>
8225#endif
8226
8227#undef bind_textdomain_codeset
8228
8229/* Override any GCC internal prototype to avoid an error.
8230   Use char because int might match the return type of a GCC
8231   builtin and then its argument prototype would still apply.  */
8232#ifdef __cplusplus
8233extern "C"
8234#endif
8235char bind_textdomain_codeset ();
8236/* The GNU C library defines this for functions which it implements
8237    to always fail with ENOSYS.  Some functions are actually named
8238    something starting with __ and the normal name is an alias.  */
8239#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8240choke me
8241#endif
8242
8243int
8244main ()
8245{
8246return bind_textdomain_codeset ();
8247  ;
8248  return 0;
8249}
8250_ACEOF
8251rm -f conftest.$ac_objext conftest$ac_exeext
8252if { (ac_try="$ac_link"
8253case "(($ac_try" in
8254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255  *) ac_try_echo=$ac_try;;
8256esac
8257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8258$as_echo "$ac_try_echo") >&5
8259  (eval "$ac_link") 2>conftest.er1
8260  ac_status=$?
8261  grep -v '^ *+' conftest.er1 >conftest.err
8262  rm -f conftest.er1
8263  cat conftest.err >&5
8264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265  (exit $ac_status); } && {
8266	 test -z "$ac_c_werror_flag" ||
8267	 test ! -s conftest.err
8268       } && test -s conftest$ac_exeext && {
8269	 test "$cross_compiling" = yes ||
8270	 $as_test_x conftest$ac_exeext
8271       }; then
8272  ac_cv_func_bind_textdomain_codeset=yes
8273else
8274  $as_echo "$as_me: failed program was:" >&5
8275sed 's/^/| /' conftest.$ac_ext >&5
8276
8277	ac_cv_func_bind_textdomain_codeset=no
8278fi
8279
8280rm -rf conftest.dSYM
8281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8282      conftest$ac_exeext conftest.$ac_ext
8283fi
8284{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8285$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
8286if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
8287  DATADIRNAME=share
8288else
8289  DATADIRNAME=lib
8290fi
8291
8292    ;;
8293    *)
8294    DATADIRNAME=lib
8295    ;;
8296    esac
8297fi
8298
8299rm -rf conftest.dSYM
8300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8301      conftest$ac_exeext conftest.$ac_ext
8302fi
8303
8304
8305
8306
8307
8308
8309
8310
8311case `pwd` in
8312  *\ * | *\	*)
8313    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8314$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8315esac
8316
8317
8318
8319macro_version='2.2.6'
8320macro_revision='1.3012'
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334ltmain="$ac_aux_dir/ltmain.sh"
8335
8336# Make sure we can run config.sub.
8337$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8338  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8339$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8340   { (exit 1); exit 1; }; }
8341
8342{ $as_echo "$as_me:$LINENO: checking build system type" >&5
8343$as_echo_n "checking build system type... " >&6; }
8344if test "${ac_cv_build+set}" = set; then
8345  $as_echo_n "(cached) " >&6
8346else
8347  ac_build_alias=$build_alias
8348test "x$ac_build_alias" = x &&
8349  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8350test "x$ac_build_alias" = x &&
8351  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8352$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8353   { (exit 1); exit 1; }; }
8354ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8355  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8356$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8357   { (exit 1); exit 1; }; }
8358
8359fi
8360{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8361$as_echo "$ac_cv_build" >&6; }
8362case $ac_cv_build in
8363*-*-*) ;;
8364*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8365$as_echo "$as_me: error: invalid value of canonical build" >&2;}
8366   { (exit 1); exit 1; }; };;
8367esac
8368build=$ac_cv_build
8369ac_save_IFS=$IFS; IFS='-'
8370set x $ac_cv_build
8371shift
8372build_cpu=$1
8373build_vendor=$2
8374shift; shift
8375# Remember, the first character of IFS is used to create $*,
8376# except with old shells:
8377build_os=$*
8378IFS=$ac_save_IFS
8379case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8380
8381
8382{ $as_echo "$as_me:$LINENO: checking host system type" >&5
8383$as_echo_n "checking host system type... " >&6; }
8384if test "${ac_cv_host+set}" = set; then
8385  $as_echo_n "(cached) " >&6
8386else
8387  if test "x$host_alias" = x; then
8388  ac_cv_host=$ac_cv_build
8389else
8390  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8391    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8392$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8393   { (exit 1); exit 1; }; }
8394fi
8395
8396fi
8397{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8398$as_echo "$ac_cv_host" >&6; }
8399case $ac_cv_host in
8400*-*-*) ;;
8401*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8402$as_echo "$as_me: error: invalid value of canonical host" >&2;}
8403   { (exit 1); exit 1; }; };;
8404esac
8405host=$ac_cv_host
8406ac_save_IFS=$IFS; IFS='-'
8407set x $ac_cv_host
8408shift
8409host_cpu=$1
8410host_vendor=$2
8411shift; shift
8412# Remember, the first character of IFS is used to create $*,
8413# except with old shells:
8414host_os=$*
8415IFS=$ac_save_IFS
8416case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8417
8418
8419{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
8420$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8421if test "${ac_cv_path_SED+set}" = set; then
8422  $as_echo_n "(cached) " >&6
8423else
8424            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8425     for ac_i in 1 2 3 4 5 6 7; do
8426       ac_script="$ac_script$as_nl$ac_script"
8427     done
8428     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8429     $as_unset ac_script || ac_script=
8430     if test -z "$SED"; then
8431  ac_path_SED_found=false
8432  # Loop through the user's path and test for each of PROGNAME-LIST
8433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434for as_dir in $PATH
8435do
8436  IFS=$as_save_IFS
8437  test -z "$as_dir" && as_dir=.
8438  for ac_prog in sed gsed; do
8439    for ac_exec_ext in '' $ac_executable_extensions; do
8440      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8441      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8442# Check for GNU ac_path_SED and select it if it is found.
8443  # Check for GNU $ac_path_SED
8444case `"$ac_path_SED" --version 2>&1` in
8445*GNU*)
8446  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8447*)
8448  ac_count=0
8449  $as_echo_n 0123456789 >"conftest.in"
8450  while :
8451  do
8452    cat "conftest.in" "conftest.in" >"conftest.tmp"
8453    mv "conftest.tmp" "conftest.in"
8454    cp "conftest.in" "conftest.nl"
8455    $as_echo '' >> "conftest.nl"
8456    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8457    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8458    ac_count=`expr $ac_count + 1`
8459    if test $ac_count -gt ${ac_path_SED_max-0}; then
8460      # Best one so far, save it but keep looking for a better one
8461      ac_cv_path_SED="$ac_path_SED"
8462      ac_path_SED_max=$ac_count
8463    fi
8464    # 10*(2^10) chars as input seems more than enough
8465    test $ac_count -gt 10 && break
8466  done
8467  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8468esac
8469
8470      $ac_path_SED_found && break 3
8471    done
8472  done
8473done
8474IFS=$as_save_IFS
8475  if test -z "$ac_cv_path_SED"; then
8476    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
8477$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
8478   { (exit 1); exit 1; }; }
8479  fi
8480else
8481  ac_cv_path_SED=$SED
8482fi
8483
8484fi
8485{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
8486$as_echo "$ac_cv_path_SED" >&6; }
8487 SED="$ac_cv_path_SED"
8488  rm -f conftest.sed
8489
8490test -z "$SED" && SED=sed
8491Xsed="$SED -e 1s/^X//"
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
8504$as_echo_n "checking for fgrep... " >&6; }
8505if test "${ac_cv_path_FGREP+set}" = set; then
8506  $as_echo_n "(cached) " >&6
8507else
8508  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8509   then ac_cv_path_FGREP="$GREP -F"
8510   else
8511     if test -z "$FGREP"; then
8512  ac_path_FGREP_found=false
8513  # Loop through the user's path and test for each of PROGNAME-LIST
8514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8516do
8517  IFS=$as_save_IFS
8518  test -z "$as_dir" && as_dir=.
8519  for ac_prog in fgrep; do
8520    for ac_exec_ext in '' $ac_executable_extensions; do
8521      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8522      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8523# Check for GNU ac_path_FGREP and select it if it is found.
8524  # Check for GNU $ac_path_FGREP
8525case `"$ac_path_FGREP" --version 2>&1` in
8526*GNU*)
8527  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8528*)
8529  ac_count=0
8530  $as_echo_n 0123456789 >"conftest.in"
8531  while :
8532  do
8533    cat "conftest.in" "conftest.in" >"conftest.tmp"
8534    mv "conftest.tmp" "conftest.in"
8535    cp "conftest.in" "conftest.nl"
8536    $as_echo 'FGREP' >> "conftest.nl"
8537    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8538    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8539    ac_count=`expr $ac_count + 1`
8540    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8541      # Best one so far, save it but keep looking for a better one
8542      ac_cv_path_FGREP="$ac_path_FGREP"
8543      ac_path_FGREP_max=$ac_count
8544    fi
8545    # 10*(2^10) chars as input seems more than enough
8546    test $ac_count -gt 10 && break
8547  done
8548  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8549esac
8550
8551      $ac_path_FGREP_found && break 3
8552    done
8553  done
8554done
8555IFS=$as_save_IFS
8556  if test -z "$ac_cv_path_FGREP"; then
8557    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8558$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8559   { (exit 1); exit 1; }; }
8560  fi
8561else
8562  ac_cv_path_FGREP=$FGREP
8563fi
8564
8565   fi
8566fi
8567{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
8568$as_echo "$ac_cv_path_FGREP" >&6; }
8569 FGREP="$ac_cv_path_FGREP"
8570
8571
8572test -z "$GREP" && GREP=grep
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592# Check whether --with-gnu-ld was given.
8593if test "${with_gnu_ld+set}" = set; then
8594  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8595else
8596  with_gnu_ld=no
8597fi
8598
8599ac_prog=ld
8600if test "$GCC" = yes; then
8601  # Check if gcc -print-prog-name=ld gives a path.
8602  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8603$as_echo_n "checking for ld used by $CC... " >&6; }
8604  case $host in
8605  *-*-mingw*)
8606    # gcc leaves a trailing carriage return which upsets mingw
8607    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8608  *)
8609    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8610  esac
8611  case $ac_prog in
8612    # Accept absolute paths.
8613    [\\/]* | ?:[\\/]*)
8614      re_direlt='/[^/][^/]*/\.\./'
8615      # Canonicalize the pathname of ld
8616      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8617      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8618	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8619      done
8620      test -z "$LD" && LD="$ac_prog"
8621      ;;
8622  "")
8623    # If it fails, then pretend we aren't using GCC.
8624    ac_prog=ld
8625    ;;
8626  *)
8627    # If it is relative, then search for the first ld in PATH.
8628    with_gnu_ld=unknown
8629    ;;
8630  esac
8631elif test "$with_gnu_ld" = yes; then
8632  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8633$as_echo_n "checking for GNU ld... " >&6; }
8634else
8635  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8636$as_echo_n "checking for non-GNU ld... " >&6; }
8637fi
8638if test "${lt_cv_path_LD+set}" = set; then
8639  $as_echo_n "(cached) " >&6
8640else
8641  if test -z "$LD"; then
8642  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8643  for ac_dir in $PATH; do
8644    IFS="$lt_save_ifs"
8645    test -z "$ac_dir" && ac_dir=.
8646    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8647      lt_cv_path_LD="$ac_dir/$ac_prog"
8648      # Check to see if the program is GNU ld.  I'd rather use --version,
8649      # but apparently some variants of GNU ld only accept -v.
8650      # Break only if it was the GNU/non-GNU ld that we prefer.
8651      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8652      *GNU* | *'with BFD'*)
8653	test "$with_gnu_ld" != no && break
8654	;;
8655      *)
8656	test "$with_gnu_ld" != yes && break
8657	;;
8658      esac
8659    fi
8660  done
8661  IFS="$lt_save_ifs"
8662else
8663  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8664fi
8665fi
8666
8667LD="$lt_cv_path_LD"
8668if test -n "$LD"; then
8669  { $as_echo "$as_me:$LINENO: result: $LD" >&5
8670$as_echo "$LD" >&6; }
8671else
8672  { $as_echo "$as_me:$LINENO: result: no" >&5
8673$as_echo "no" >&6; }
8674fi
8675test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8676$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8677   { (exit 1); exit 1; }; }
8678{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8679$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8680if test "${lt_cv_prog_gnu_ld+set}" = set; then
8681  $as_echo_n "(cached) " >&6
8682else
8683  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8684case `$LD -v 2>&1 </dev/null` in
8685*GNU* | *'with BFD'*)
8686  lt_cv_prog_gnu_ld=yes
8687  ;;
8688*)
8689  lt_cv_prog_gnu_ld=no
8690  ;;
8691esac
8692fi
8693{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8694$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8695with_gnu_ld=$lt_cv_prog_gnu_ld
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
8706$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8707if test "${lt_cv_path_NM+set}" = set; then
8708  $as_echo_n "(cached) " >&6
8709else
8710  if test -n "$NM"; then
8711  # Let the user override the test.
8712  lt_cv_path_NM="$NM"
8713else
8714  lt_nm_to_check="${ac_tool_prefix}nm"
8715  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8716    lt_nm_to_check="$lt_nm_to_check nm"
8717  fi
8718  for lt_tmp_nm in $lt_nm_to_check; do
8719    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8720    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8721      IFS="$lt_save_ifs"
8722      test -z "$ac_dir" && ac_dir=.
8723      tmp_nm="$ac_dir/$lt_tmp_nm"
8724      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8725	# Check to see if the nm accepts a BSD-compat flag.
8726	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8727	#   nm: unknown option "B" ignored
8728	# Tru64's nm complains that /dev/null is an invalid object file
8729	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8730	*/dev/null* | *'Invalid file or object type'*)
8731	  lt_cv_path_NM="$tmp_nm -B"
8732	  break
8733	  ;;
8734	*)
8735	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8736	  */dev/null*)
8737	    lt_cv_path_NM="$tmp_nm -p"
8738	    break
8739	    ;;
8740	  *)
8741	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8742	    continue # so that we can try to find one that supports BSD flags
8743	    ;;
8744	  esac
8745	  ;;
8746	esac
8747      fi
8748    done
8749    IFS="$lt_save_ifs"
8750  done
8751  : ${lt_cv_path_NM=no}
8752fi
8753fi
8754{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8755$as_echo "$lt_cv_path_NM" >&6; }
8756if test "$lt_cv_path_NM" != "no"; then
8757  NM="$lt_cv_path_NM"
8758else
8759  # Didn't find any BSD compatible name lister, look for dumpbin.
8760  if test -n "$ac_tool_prefix"; then
8761  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8762  do
8763    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8765{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8766$as_echo_n "checking for $ac_word... " >&6; }
8767if test "${ac_cv_prog_DUMPBIN+set}" = set; then
8768  $as_echo_n "(cached) " >&6
8769else
8770  if test -n "$DUMPBIN"; then
8771  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8772else
8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776  IFS=$as_save_IFS
8777  test -z "$as_dir" && as_dir=.
8778  for ac_exec_ext in '' $ac_executable_extensions; do
8779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8780    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8781    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782    break 2
8783  fi
8784done
8785done
8786IFS=$as_save_IFS
8787
8788fi
8789fi
8790DUMPBIN=$ac_cv_prog_DUMPBIN
8791if test -n "$DUMPBIN"; then
8792  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
8793$as_echo "$DUMPBIN" >&6; }
8794else
8795  { $as_echo "$as_me:$LINENO: result: no" >&5
8796$as_echo "no" >&6; }
8797fi
8798
8799
8800    test -n "$DUMPBIN" && break
8801  done
8802fi
8803if test -z "$DUMPBIN"; then
8804  ac_ct_DUMPBIN=$DUMPBIN
8805  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8806do
8807  # Extract the first word of "$ac_prog", so it can be a program name with args.
8808set dummy $ac_prog; ac_word=$2
8809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8810$as_echo_n "checking for $ac_word... " >&6; }
8811if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
8812  $as_echo_n "(cached) " >&6
8813else
8814  if test -n "$ac_ct_DUMPBIN"; then
8815  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8816else
8817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818for as_dir in $PATH
8819do
8820  IFS=$as_save_IFS
8821  test -z "$as_dir" && as_dir=.
8822  for ac_exec_ext in '' $ac_executable_extensions; do
8823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8825    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8826    break 2
8827  fi
8828done
8829done
8830IFS=$as_save_IFS
8831
8832fi
8833fi
8834ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8835if test -n "$ac_ct_DUMPBIN"; then
8836  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
8837$as_echo "$ac_ct_DUMPBIN" >&6; }
8838else
8839  { $as_echo "$as_me:$LINENO: result: no" >&5
8840$as_echo "no" >&6; }
8841fi
8842
8843
8844  test -n "$ac_ct_DUMPBIN" && break
8845done
8846
8847  if test "x$ac_ct_DUMPBIN" = x; then
8848    DUMPBIN=":"
8849  else
8850    case $cross_compiling:$ac_tool_warned in
8851yes:)
8852{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8854ac_tool_warned=yes ;;
8855esac
8856    DUMPBIN=$ac_ct_DUMPBIN
8857  fi
8858fi
8859
8860
8861  if test "$DUMPBIN" != ":"; then
8862    NM="$DUMPBIN"
8863  fi
8864fi
8865test -z "$NM" && NM=nm
8866
8867
8868
8869
8870
8871
8872{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
8873$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8874if test "${lt_cv_nm_interface+set}" = set; then
8875  $as_echo_n "(cached) " >&6
8876else
8877  lt_cv_nm_interface="BSD nm"
8878  echo "int some_variable = 0;" > conftest.$ac_ext
8879  (eval echo "\"\$as_me:8879: $ac_compile\"" >&5)
8880  (eval "$ac_compile" 2>conftest.err)
8881  cat conftest.err >&5
8882  (eval echo "\"\$as_me:8882: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8883  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8884  cat conftest.err >&5
8885  (eval echo "\"\$as_me:8885: output\"" >&5)
8886  cat conftest.out >&5
8887  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8888    lt_cv_nm_interface="MS dumpbin"
8889  fi
8890  rm -f conftest*
8891fi
8892{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
8893$as_echo "$lt_cv_nm_interface" >&6; }
8894
8895{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
8896$as_echo_n "checking whether ln -s works... " >&6; }
8897LN_S=$as_ln_s
8898if test "$LN_S" = "ln -s"; then
8899  { $as_echo "$as_me:$LINENO: result: yes" >&5
8900$as_echo "yes" >&6; }
8901else
8902  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8903$as_echo "no, using $LN_S" >&6; }
8904fi
8905
8906# find the maximum length of command line arguments
8907{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8908$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8909if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8910  $as_echo_n "(cached) " >&6
8911else
8912    i=0
8913  teststring="ABCD"
8914
8915  case $build_os in
8916  msdosdjgpp*)
8917    # On DJGPP, this test can blow up pretty badly due to problems in libc
8918    # (any single argument exceeding 2000 bytes causes a buffer overrun
8919    # during glob expansion).  Even if it were fixed, the result of this
8920    # check would be larger than it should be.
8921    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8922    ;;
8923
8924  gnu*)
8925    # Under GNU Hurd, this test is not required because there is
8926    # no limit to the length of command line arguments.
8927    # Libtool will interpret -1 as no limit whatsoever
8928    lt_cv_sys_max_cmd_len=-1;
8929    ;;
8930
8931  cygwin* | mingw* | cegcc*)
8932    # On Win9x/ME, this test blows up -- it succeeds, but takes
8933    # about 5 minutes as the teststring grows exponentially.
8934    # Worse, since 9x/ME are not pre-emptively multitasking,
8935    # you end up with a "frozen" computer, even though with patience
8936    # the test eventually succeeds (with a max line length of 256k).
8937    # Instead, let's just punt: use the minimum linelength reported by
8938    # all of the supported platforms: 8192 (on NT/2K/XP).
8939    lt_cv_sys_max_cmd_len=8192;
8940    ;;
8941
8942  amigaos*)
8943    # On AmigaOS with pdksh, this test takes hours, literally.
8944    # So we just punt and use a minimum line length of 8192.
8945    lt_cv_sys_max_cmd_len=8192;
8946    ;;
8947
8948  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8949    # This has been around since 386BSD, at least.  Likely further.
8950    if test -x /sbin/sysctl; then
8951      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8952    elif test -x /usr/sbin/sysctl; then
8953      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8954    else
8955      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8956    fi
8957    # And add a safety zone
8958    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8959    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8960    ;;
8961
8962  interix*)
8963    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8964    lt_cv_sys_max_cmd_len=196608
8965    ;;
8966
8967  osf*)
8968    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8969    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8970    # nice to cause kernel panics so lets avoid the loop below.
8971    # First set a reasonable default.
8972    lt_cv_sys_max_cmd_len=16384
8973    #
8974    if test -x /sbin/sysconfig; then
8975      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8976        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8977      esac
8978    fi
8979    ;;
8980  sco3.2v5*)
8981    lt_cv_sys_max_cmd_len=102400
8982    ;;
8983  sysv5* | sco5v6* | sysv4.2uw2*)
8984    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8985    if test -n "$kargmax"; then
8986      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8987    else
8988      lt_cv_sys_max_cmd_len=32768
8989    fi
8990    ;;
8991  *)
8992    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8993    if test -n "$lt_cv_sys_max_cmd_len"; then
8994      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8995      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8996    else
8997      # Make teststring a little bigger before we do anything with it.
8998      # a 1K string should be a reasonable start.
8999      for i in 1 2 3 4 5 6 7 8 ; do
9000        teststring=$teststring$teststring
9001      done
9002      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9003      # If test is not a shell built-in, we'll probably end up computing a
9004      # maximum length that is only half of the actual maximum length, but
9005      # we can't tell.
9006      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9007	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9008	      test $i != 17 # 1/2 MB should be enough
9009      do
9010        i=`expr $i + 1`
9011        teststring=$teststring$teststring
9012      done
9013      # Only check the string length outside the loop.
9014      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9015      teststring=
9016      # Add a significant safety factor because C++ compilers can tack on
9017      # massive amounts of additional arguments before passing them to the
9018      # linker.  It appears as though 1/2 is a usable value.
9019      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9020    fi
9021    ;;
9022  esac
9023
9024fi
9025
9026if test -n $lt_cv_sys_max_cmd_len ; then
9027  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9028$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9029else
9030  { $as_echo "$as_me:$LINENO: result: none" >&5
9031$as_echo "none" >&6; }
9032fi
9033max_cmd_len=$lt_cv_sys_max_cmd_len
9034
9035
9036
9037
9038
9039
9040: ${CP="cp -f"}
9041: ${MV="mv -f"}
9042: ${RM="rm -f"}
9043
9044{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
9045$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9046# Try some XSI features
9047xsi_shell=no
9048( _lt_dummy="a/b/c"
9049  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9050      = c,a/b,, \
9051    && eval 'test $(( 1 + 1 )) -eq 2 \
9052    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9053  && xsi_shell=yes
9054{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
9055$as_echo "$xsi_shell" >&6; }
9056
9057
9058{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
9059$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9060lt_shell_append=no
9061( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9062    >/dev/null 2>&1 \
9063  && lt_shell_append=yes
9064{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
9065$as_echo "$lt_shell_append" >&6; }
9066
9067
9068if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9069  lt_unset=unset
9070else
9071  lt_unset=false
9072fi
9073
9074
9075
9076
9077
9078# test EBCDIC or ASCII
9079case `echo X|tr X '\101'` in
9080 A) # ASCII based system
9081    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9082  lt_SP2NL='tr \040 \012'
9083  lt_NL2SP='tr \015\012 \040\040'
9084  ;;
9085 *) # EBCDIC based system
9086  lt_SP2NL='tr \100 \n'
9087  lt_NL2SP='tr \r\n \100\100'
9088  ;;
9089esac
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9100$as_echo_n "checking for $LD option to reload object files... " >&6; }
9101if test "${lt_cv_ld_reload_flag+set}" = set; then
9102  $as_echo_n "(cached) " >&6
9103else
9104  lt_cv_ld_reload_flag='-r'
9105fi
9106{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9107$as_echo "$lt_cv_ld_reload_flag" >&6; }
9108reload_flag=$lt_cv_ld_reload_flag
9109case $reload_flag in
9110"" | " "*) ;;
9111*) reload_flag=" $reload_flag" ;;
9112esac
9113reload_cmds='$LD$reload_flag -o $output$reload_objs'
9114case $host_os in
9115  darwin*)
9116    if test "$GCC" = yes; then
9117      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9118    else
9119      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9120    fi
9121    ;;
9122esac
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132if test -n "$ac_tool_prefix"; then
9133  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9134set dummy ${ac_tool_prefix}objdump; ac_word=$2
9135{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9136$as_echo_n "checking for $ac_word... " >&6; }
9137if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9138  $as_echo_n "(cached) " >&6
9139else
9140  if test -n "$OBJDUMP"; then
9141  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9142else
9143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144for as_dir in $PATH
9145do
9146  IFS=$as_save_IFS
9147  test -z "$as_dir" && as_dir=.
9148  for ac_exec_ext in '' $ac_executable_extensions; do
9149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9150    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9151    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9152    break 2
9153  fi
9154done
9155done
9156IFS=$as_save_IFS
9157
9158fi
9159fi
9160OBJDUMP=$ac_cv_prog_OBJDUMP
9161if test -n "$OBJDUMP"; then
9162  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9163$as_echo "$OBJDUMP" >&6; }
9164else
9165  { $as_echo "$as_me:$LINENO: result: no" >&5
9166$as_echo "no" >&6; }
9167fi
9168
9169
9170fi
9171if test -z "$ac_cv_prog_OBJDUMP"; then
9172  ac_ct_OBJDUMP=$OBJDUMP
9173  # Extract the first word of "objdump", so it can be a program name with args.
9174set dummy objdump; ac_word=$2
9175{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9176$as_echo_n "checking for $ac_word... " >&6; }
9177if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9178  $as_echo_n "(cached) " >&6
9179else
9180  if test -n "$ac_ct_OBJDUMP"; then
9181  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9182else
9183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184for as_dir in $PATH
9185do
9186  IFS=$as_save_IFS
9187  test -z "$as_dir" && as_dir=.
9188  for ac_exec_ext in '' $ac_executable_extensions; do
9189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9190    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9191    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9192    break 2
9193  fi
9194done
9195done
9196IFS=$as_save_IFS
9197
9198fi
9199fi
9200ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9201if test -n "$ac_ct_OBJDUMP"; then
9202  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9203$as_echo "$ac_ct_OBJDUMP" >&6; }
9204else
9205  { $as_echo "$as_me:$LINENO: result: no" >&5
9206$as_echo "no" >&6; }
9207fi
9208
9209  if test "x$ac_ct_OBJDUMP" = x; then
9210    OBJDUMP="false"
9211  else
9212    case $cross_compiling:$ac_tool_warned in
9213yes:)
9214{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9216ac_tool_warned=yes ;;
9217esac
9218    OBJDUMP=$ac_ct_OBJDUMP
9219  fi
9220else
9221  OBJDUMP="$ac_cv_prog_OBJDUMP"
9222fi
9223
9224test -z "$OBJDUMP" && OBJDUMP=objdump
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
9235$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9236if test "${lt_cv_deplibs_check_method+set}" = set; then
9237  $as_echo_n "(cached) " >&6
9238else
9239  lt_cv_file_magic_cmd='$MAGIC_CMD'
9240lt_cv_file_magic_test_file=
9241lt_cv_deplibs_check_method='unknown'
9242# Need to set the preceding variable on all platforms that support
9243# interlibrary dependencies.
9244# 'none' -- dependencies not supported.
9245# `unknown' -- same as none, but documents that we really don't know.
9246# 'pass_all' -- all dependencies passed with no checks.
9247# 'test_compile' -- check by making test program.
9248# 'file_magic [[regex]]' -- check by looking for files in library path
9249# which responds to the $file_magic_cmd with a given extended regex.
9250# If you have `file' or equivalent on your system and you're not sure
9251# whether `pass_all' will *always* work, you probably want this one.
9252
9253case $host_os in
9254aix[4-9]*)
9255  lt_cv_deplibs_check_method=pass_all
9256  ;;
9257
9258beos*)
9259  lt_cv_deplibs_check_method=pass_all
9260  ;;
9261
9262bsdi[45]*)
9263  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9264  lt_cv_file_magic_cmd='/usr/bin/file -L'
9265  lt_cv_file_magic_test_file=/shlib/libc.so
9266  ;;
9267
9268cygwin*)
9269  # func_win32_libid is a shell function defined in ltmain.sh
9270  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9271  lt_cv_file_magic_cmd='func_win32_libid'
9272  ;;
9273
9274mingw* | pw32*)
9275  # Base MSYS/MinGW do not provide the 'file' command needed by
9276  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9277  # unless we find 'file', for example because we are cross-compiling.
9278  if ( file / ) >/dev/null 2>&1; then
9279    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9280    lt_cv_file_magic_cmd='func_win32_libid'
9281  else
9282    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9283    lt_cv_file_magic_cmd='$OBJDUMP -f'
9284  fi
9285  ;;
9286
9287cegcc)
9288  # use the weaker test based on 'objdump'. See mingw*.
9289  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9290  lt_cv_file_magic_cmd='$OBJDUMP -f'
9291  ;;
9292
9293darwin* | rhapsody*)
9294  lt_cv_deplibs_check_method=pass_all
9295  ;;
9296
9297freebsd* | dragonfly*)
9298  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9299    case $host_cpu in
9300    i*86 )
9301      # Not sure whether the presence of OpenBSD here was a mistake.
9302      # Let's accept both of them until this is cleared up.
9303      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9304      lt_cv_file_magic_cmd=/usr/bin/file
9305      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9306      ;;
9307    esac
9308  else
9309    lt_cv_deplibs_check_method=pass_all
9310  fi
9311  ;;
9312
9313gnu*)
9314  lt_cv_deplibs_check_method=pass_all
9315  ;;
9316
9317hpux10.20* | hpux11*)
9318  lt_cv_file_magic_cmd=/usr/bin/file
9319  case $host_cpu in
9320  ia64*)
9321    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9322    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9323    ;;
9324  hppa*64*)
9325    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]'
9326    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9327    ;;
9328  *)
9329    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9330    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9331    ;;
9332  esac
9333  ;;
9334
9335interix[3-9]*)
9336  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9337  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9338  ;;
9339
9340irix5* | irix6* | nonstopux*)
9341  case $LD in
9342  *-32|*"-32 ") libmagic=32-bit;;
9343  *-n32|*"-n32 ") libmagic=N32;;
9344  *-64|*"-64 ") libmagic=64-bit;;
9345  *) libmagic=never-match;;
9346  esac
9347  lt_cv_deplibs_check_method=pass_all
9348  ;;
9349
9350# This must be Linux ELF.
9351linux* | k*bsd*-gnu)
9352  lt_cv_deplibs_check_method=pass_all
9353  ;;
9354
9355netbsd*)
9356  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9357    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9358  else
9359    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9360  fi
9361  ;;
9362
9363newos6*)
9364  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9365  lt_cv_file_magic_cmd=/usr/bin/file
9366  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9367  ;;
9368
9369*nto* | *qnx*)
9370  lt_cv_deplibs_check_method=pass_all
9371  ;;
9372
9373openbsd*)
9374  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9375    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9376  else
9377    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9378  fi
9379  ;;
9380
9381osf3* | osf4* | osf5*)
9382  lt_cv_deplibs_check_method=pass_all
9383  ;;
9384
9385rdos*)
9386  lt_cv_deplibs_check_method=pass_all
9387  ;;
9388
9389solaris*)
9390  lt_cv_deplibs_check_method=pass_all
9391  ;;
9392
9393sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9394  lt_cv_deplibs_check_method=pass_all
9395  ;;
9396
9397sysv4 | sysv4.3*)
9398  case $host_vendor in
9399  motorola)
9400    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]'
9401    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9402    ;;
9403  ncr)
9404    lt_cv_deplibs_check_method=pass_all
9405    ;;
9406  sequent)
9407    lt_cv_file_magic_cmd='/bin/file'
9408    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9409    ;;
9410  sni)
9411    lt_cv_file_magic_cmd='/bin/file'
9412    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9413    lt_cv_file_magic_test_file=/lib/libc.so
9414    ;;
9415  siemens)
9416    lt_cv_deplibs_check_method=pass_all
9417    ;;
9418  pc)
9419    lt_cv_deplibs_check_method=pass_all
9420    ;;
9421  esac
9422  ;;
9423
9424tpf*)
9425  lt_cv_deplibs_check_method=pass_all
9426  ;;
9427esac
9428
9429fi
9430{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9431$as_echo "$lt_cv_deplibs_check_method" >&6; }
9432file_magic_cmd=$lt_cv_file_magic_cmd
9433deplibs_check_method=$lt_cv_deplibs_check_method
9434test -z "$deplibs_check_method" && deplibs_check_method=unknown
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447if test -n "$ac_tool_prefix"; then
9448  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9449set dummy ${ac_tool_prefix}ar; ac_word=$2
9450{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9451$as_echo_n "checking for $ac_word... " >&6; }
9452if test "${ac_cv_prog_AR+set}" = set; then
9453  $as_echo_n "(cached) " >&6
9454else
9455  if test -n "$AR"; then
9456  ac_cv_prog_AR="$AR" # Let the user override the test.
9457else
9458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459for as_dir in $PATH
9460do
9461  IFS=$as_save_IFS
9462  test -z "$as_dir" && as_dir=.
9463  for ac_exec_ext in '' $ac_executable_extensions; do
9464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465    ac_cv_prog_AR="${ac_tool_prefix}ar"
9466    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9467    break 2
9468  fi
9469done
9470done
9471IFS=$as_save_IFS
9472
9473fi
9474fi
9475AR=$ac_cv_prog_AR
9476if test -n "$AR"; then
9477  { $as_echo "$as_me:$LINENO: result: $AR" >&5
9478$as_echo "$AR" >&6; }
9479else
9480  { $as_echo "$as_me:$LINENO: result: no" >&5
9481$as_echo "no" >&6; }
9482fi
9483
9484
9485fi
9486if test -z "$ac_cv_prog_AR"; then
9487  ac_ct_AR=$AR
9488  # Extract the first word of "ar", so it can be a program name with args.
9489set dummy ar; ac_word=$2
9490{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9491$as_echo_n "checking for $ac_word... " >&6; }
9492if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9493  $as_echo_n "(cached) " >&6
9494else
9495  if test -n "$ac_ct_AR"; then
9496  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9497else
9498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499for as_dir in $PATH
9500do
9501  IFS=$as_save_IFS
9502  test -z "$as_dir" && as_dir=.
9503  for ac_exec_ext in '' $ac_executable_extensions; do
9504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9505    ac_cv_prog_ac_ct_AR="ar"
9506    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9507    break 2
9508  fi
9509done
9510done
9511IFS=$as_save_IFS
9512
9513fi
9514fi
9515ac_ct_AR=$ac_cv_prog_ac_ct_AR
9516if test -n "$ac_ct_AR"; then
9517  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9518$as_echo "$ac_ct_AR" >&6; }
9519else
9520  { $as_echo "$as_me:$LINENO: result: no" >&5
9521$as_echo "no" >&6; }
9522fi
9523
9524  if test "x$ac_ct_AR" = x; then
9525    AR="false"
9526  else
9527    case $cross_compiling:$ac_tool_warned in
9528yes:)
9529{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9531ac_tool_warned=yes ;;
9532esac
9533    AR=$ac_ct_AR
9534  fi
9535else
9536  AR="$ac_cv_prog_AR"
9537fi
9538
9539test -z "$AR" && AR=ar
9540test -z "$AR_FLAGS" && AR_FLAGS=cru
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552if test -n "$ac_tool_prefix"; then
9553  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9554set dummy ${ac_tool_prefix}strip; ac_word=$2
9555{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9556$as_echo_n "checking for $ac_word... " >&6; }
9557if test "${ac_cv_prog_STRIP+set}" = set; then
9558  $as_echo_n "(cached) " >&6
9559else
9560  if test -n "$STRIP"; then
9561  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9562else
9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566  IFS=$as_save_IFS
9567  test -z "$as_dir" && as_dir=.
9568  for ac_exec_ext in '' $ac_executable_extensions; do
9569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9571    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9572    break 2
9573  fi
9574done
9575done
9576IFS=$as_save_IFS
9577
9578fi
9579fi
9580STRIP=$ac_cv_prog_STRIP
9581if test -n "$STRIP"; then
9582  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9583$as_echo "$STRIP" >&6; }
9584else
9585  { $as_echo "$as_me:$LINENO: result: no" >&5
9586$as_echo "no" >&6; }
9587fi
9588
9589
9590fi
9591if test -z "$ac_cv_prog_STRIP"; then
9592  ac_ct_STRIP=$STRIP
9593  # Extract the first word of "strip", so it can be a program name with args.
9594set dummy strip; ac_word=$2
9595{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9596$as_echo_n "checking for $ac_word... " >&6; }
9597if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9598  $as_echo_n "(cached) " >&6
9599else
9600  if test -n "$ac_ct_STRIP"; then
9601  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9602else
9603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604for as_dir in $PATH
9605do
9606  IFS=$as_save_IFS
9607  test -z "$as_dir" && as_dir=.
9608  for ac_exec_ext in '' $ac_executable_extensions; do
9609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9610    ac_cv_prog_ac_ct_STRIP="strip"
9611    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9612    break 2
9613  fi
9614done
9615done
9616IFS=$as_save_IFS
9617
9618fi
9619fi
9620ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9621if test -n "$ac_ct_STRIP"; then
9622  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9623$as_echo "$ac_ct_STRIP" >&6; }
9624else
9625  { $as_echo "$as_me:$LINENO: result: no" >&5
9626$as_echo "no" >&6; }
9627fi
9628
9629  if test "x$ac_ct_STRIP" = x; then
9630    STRIP=":"
9631  else
9632    case $cross_compiling:$ac_tool_warned in
9633yes:)
9634{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9636ac_tool_warned=yes ;;
9637esac
9638    STRIP=$ac_ct_STRIP
9639  fi
9640else
9641  STRIP="$ac_cv_prog_STRIP"
9642fi
9643
9644test -z "$STRIP" && STRIP=:
9645
9646
9647
9648
9649
9650
9651if test -n "$ac_tool_prefix"; then
9652  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9653set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9655$as_echo_n "checking for $ac_word... " >&6; }
9656if test "${ac_cv_prog_RANLIB+set}" = set; then
9657  $as_echo_n "(cached) " >&6
9658else
9659  if test -n "$RANLIB"; then
9660  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9661else
9662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665  IFS=$as_save_IFS
9666  test -z "$as_dir" && as_dir=.
9667  for ac_exec_ext in '' $ac_executable_extensions; do
9668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9669    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9670    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9671    break 2
9672  fi
9673done
9674done
9675IFS=$as_save_IFS
9676
9677fi
9678fi
9679RANLIB=$ac_cv_prog_RANLIB
9680if test -n "$RANLIB"; then
9681  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9682$as_echo "$RANLIB" >&6; }
9683else
9684  { $as_echo "$as_me:$LINENO: result: no" >&5
9685$as_echo "no" >&6; }
9686fi
9687
9688
9689fi
9690if test -z "$ac_cv_prog_RANLIB"; then
9691  ac_ct_RANLIB=$RANLIB
9692  # Extract the first word of "ranlib", so it can be a program name with args.
9693set dummy ranlib; ac_word=$2
9694{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9695$as_echo_n "checking for $ac_word... " >&6; }
9696if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9697  $as_echo_n "(cached) " >&6
9698else
9699  if test -n "$ac_ct_RANLIB"; then
9700  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9701else
9702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703for as_dir in $PATH
9704do
9705  IFS=$as_save_IFS
9706  test -z "$as_dir" && as_dir=.
9707  for ac_exec_ext in '' $ac_executable_extensions; do
9708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9709    ac_cv_prog_ac_ct_RANLIB="ranlib"
9710    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9711    break 2
9712  fi
9713done
9714done
9715IFS=$as_save_IFS
9716
9717fi
9718fi
9719ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9720if test -n "$ac_ct_RANLIB"; then
9721  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9722$as_echo "$ac_ct_RANLIB" >&6; }
9723else
9724  { $as_echo "$as_me:$LINENO: result: no" >&5
9725$as_echo "no" >&6; }
9726fi
9727
9728  if test "x$ac_ct_RANLIB" = x; then
9729    RANLIB=":"
9730  else
9731    case $cross_compiling:$ac_tool_warned in
9732yes:)
9733{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9735ac_tool_warned=yes ;;
9736esac
9737    RANLIB=$ac_ct_RANLIB
9738  fi
9739else
9740  RANLIB="$ac_cv_prog_RANLIB"
9741fi
9742
9743test -z "$RANLIB" && RANLIB=:
9744
9745
9746
9747
9748
9749
9750# Determine commands to create old-style static archives.
9751old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9752old_postinstall_cmds='chmod 644 $oldlib'
9753old_postuninstall_cmds=
9754
9755if test -n "$RANLIB"; then
9756  case $host_os in
9757  openbsd*)
9758    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9759    ;;
9760  *)
9761    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9762    ;;
9763  esac
9764  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9765fi
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800# If no C compiler was specified, use CC.
9801LTCC=${LTCC-"$CC"}
9802
9803# If no C compiler flags were specified, use CFLAGS.
9804LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9805
9806# Allow CC to be a program name with arguments.
9807compiler=$CC
9808
9809
9810# Check for command to grab the raw symbol name followed by C symbol from nm.
9811{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9812$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9813if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9814  $as_echo_n "(cached) " >&6
9815else
9816
9817# These are sane defaults that work on at least a few old systems.
9818# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9819
9820# Character class describing NM global symbol codes.
9821symcode='[BCDEGRST]'
9822
9823# Regexp to match symbols that can be accessed directly from C.
9824sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9825
9826# Define system-specific variables.
9827case $host_os in
9828aix*)
9829  symcode='[BCDT]'
9830  ;;
9831cygwin* | mingw* | pw32* | cegcc*)
9832  symcode='[ABCDGISTW]'
9833  ;;
9834hpux*)
9835  if test "$host_cpu" = ia64; then
9836    symcode='[ABCDEGRST]'
9837  fi
9838  ;;
9839irix* | nonstopux*)
9840  symcode='[BCDEGRST]'
9841  ;;
9842osf*)
9843  symcode='[BCDEGQRST]'
9844  ;;
9845solaris*)
9846  symcode='[BDRT]'
9847  ;;
9848sco3.2v5*)
9849  symcode='[DT]'
9850  ;;
9851sysv4.2uw2*)
9852  symcode='[DT]'
9853  ;;
9854sysv5* | sco5v6* | unixware* | OpenUNIX*)
9855  symcode='[ABDT]'
9856  ;;
9857sysv4)
9858  symcode='[DFNSTU]'
9859  ;;
9860esac
9861
9862# If we're using GNU nm, then use its standard symbol codes.
9863case `$NM -V 2>&1` in
9864*GNU* | *'with BFD'*)
9865  symcode='[ABCDGIRSTW]' ;;
9866esac
9867
9868# Transform an extracted symbol line into a proper C declaration.
9869# Some systems (esp. on ia64) link data and code symbols differently,
9870# so use this general approach.
9871lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9872
9873# Transform an extracted symbol line into symbol name and symbol address
9874lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9875lt_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'"
9876
9877# Handle CRLF in mingw tool chain
9878opt_cr=
9879case $build_os in
9880mingw*)
9881  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9882  ;;
9883esac
9884
9885# Try without a prefix underscore, then with it.
9886for ac_symprfx in "" "_"; do
9887
9888  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9889  symxfrm="\\1 $ac_symprfx\\2 \\2"
9890
9891  # Write the raw and C identifiers.
9892  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9893    # Fake it for dumpbin and say T for any non-static function
9894    # and D for any global variable.
9895    # Also find C++ and __fastcall symbols from MSVC++,
9896    # which start with @ or ?.
9897    lt_cv_sys_global_symbol_pipe="$AWK '"\
9898"     {last_section=section; section=\$ 3};"\
9899"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9900"     \$ 0!~/External *\|/{next};"\
9901"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9902"     {if(hide[section]) next};"\
9903"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9904"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9905"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9906"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9907"     ' prfx=^$ac_symprfx"
9908  else
9909    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9910  fi
9911
9912  # Check to see that the pipe works correctly.
9913  pipe_works=no
9914
9915  rm -f conftest*
9916  cat > conftest.$ac_ext <<_LT_EOF
9917#ifdef __cplusplus
9918extern "C" {
9919#endif
9920char nm_test_var;
9921void nm_test_func(void);
9922void nm_test_func(void){}
9923#ifdef __cplusplus
9924}
9925#endif
9926int main(){nm_test_var='a';nm_test_func();return(0);}
9927_LT_EOF
9928
9929  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9930  (eval $ac_compile) 2>&5
9931  ac_status=$?
9932  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933  (exit $ac_status); }; then
9934    # Now try to grab the symbols.
9935    nlist=conftest.nm
9936    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9937  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9938  ac_status=$?
9939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940  (exit $ac_status); } && test -s "$nlist"; then
9941      # Try sorting and uniquifying the output.
9942      if sort "$nlist" | uniq > "$nlist"T; then
9943	mv -f "$nlist"T "$nlist"
9944      else
9945	rm -f "$nlist"T
9946      fi
9947
9948      # Make sure that we snagged all the symbols we need.
9949      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9950	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9951	  cat <<_LT_EOF > conftest.$ac_ext
9952#ifdef __cplusplus
9953extern "C" {
9954#endif
9955
9956_LT_EOF
9957	  # Now generate the symbol file.
9958	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9959
9960	  cat <<_LT_EOF >> conftest.$ac_ext
9961
9962/* The mapping between symbol names and symbols.  */
9963const struct {
9964  const char *name;
9965  void       *address;
9966}
9967lt__PROGRAM__LTX_preloaded_symbols[] =
9968{
9969  { "@PROGRAM@", (void *) 0 },
9970_LT_EOF
9971	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9972	  cat <<\_LT_EOF >> conftest.$ac_ext
9973  {0, (void *) 0}
9974};
9975
9976/* This works around a problem in FreeBSD linker */
9977#ifdef FREEBSD_WORKAROUND
9978static const void *lt_preloaded_setup() {
9979  return lt__PROGRAM__LTX_preloaded_symbols;
9980}
9981#endif
9982
9983#ifdef __cplusplus
9984}
9985#endif
9986_LT_EOF
9987	  # Now try linking the two files.
9988	  mv conftest.$ac_objext conftstm.$ac_objext
9989	  lt_save_LIBS="$LIBS"
9990	  lt_save_CFLAGS="$CFLAGS"
9991	  LIBS="conftstm.$ac_objext"
9992	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9993	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994  (eval $ac_link) 2>&5
9995  ac_status=$?
9996  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9998	    pipe_works=yes
9999	  fi
10000	  LIBS="$lt_save_LIBS"
10001	  CFLAGS="$lt_save_CFLAGS"
10002	else
10003	  echo "cannot find nm_test_func in $nlist" >&5
10004	fi
10005      else
10006	echo "cannot find nm_test_var in $nlist" >&5
10007      fi
10008    else
10009      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10010    fi
10011  else
10012    echo "$progname: failed program was:" >&5
10013    cat conftest.$ac_ext >&5
10014  fi
10015  rm -rf conftest* conftst*
10016
10017  # Do not use the global_symbol_pipe unless it works.
10018  if test "$pipe_works" = yes; then
10019    break
10020  else
10021    lt_cv_sys_global_symbol_pipe=
10022  fi
10023done
10024
10025fi
10026
10027if test -z "$lt_cv_sys_global_symbol_pipe"; then
10028  lt_cv_sys_global_symbol_to_cdecl=
10029fi
10030if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10031  { $as_echo "$as_me:$LINENO: result: failed" >&5
10032$as_echo "failed" >&6; }
10033else
10034  { $as_echo "$as_me:$LINENO: result: ok" >&5
10035$as_echo "ok" >&6; }
10036fi
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059# Check whether --enable-libtool-lock was given.
10060if test "${enable_libtool_lock+set}" = set; then
10061  enableval=$enable_libtool_lock;
10062fi
10063
10064test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10065
10066# Some flags need to be propagated to the compiler or linker for good
10067# libtool support.
10068case $host in
10069ia64-*-hpux*)
10070  # Find out which ABI we are using.
10071  echo 'int i;' > conftest.$ac_ext
10072  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10073  (eval $ac_compile) 2>&5
10074  ac_status=$?
10075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076  (exit $ac_status); }; then
10077    case `/usr/bin/file conftest.$ac_objext` in
10078      *ELF-32*)
10079	HPUX_IA64_MODE="32"
10080	;;
10081      *ELF-64*)
10082	HPUX_IA64_MODE="64"
10083	;;
10084    esac
10085  fi
10086  rm -rf conftest*
10087  ;;
10088*-*-irix6*)
10089  # Find out which ABI we are using.
10090  echo '#line 10090 "configure"' > conftest.$ac_ext
10091  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10092  (eval $ac_compile) 2>&5
10093  ac_status=$?
10094  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095  (exit $ac_status); }; then
10096    if test "$lt_cv_prog_gnu_ld" = yes; then
10097      case `/usr/bin/file conftest.$ac_objext` in
10098	*32-bit*)
10099	  LD="${LD-ld} -melf32bsmip"
10100	  ;;
10101	*N32*)
10102	  LD="${LD-ld} -melf32bmipn32"
10103	  ;;
10104	*64-bit*)
10105	  LD="${LD-ld} -melf64bmip"
10106	;;
10107      esac
10108    else
10109      case `/usr/bin/file conftest.$ac_objext` in
10110	*32-bit*)
10111	  LD="${LD-ld} -32"
10112	  ;;
10113	*N32*)
10114	  LD="${LD-ld} -n32"
10115	  ;;
10116	*64-bit*)
10117	  LD="${LD-ld} -64"
10118	  ;;
10119      esac
10120    fi
10121  fi
10122  rm -rf conftest*
10123  ;;
10124
10125x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10126s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10127  # Find out which ABI we are using.
10128  echo 'int i;' > conftest.$ac_ext
10129  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10130  (eval $ac_compile) 2>&5
10131  ac_status=$?
10132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); }; then
10134    case `/usr/bin/file conftest.o` in
10135      *32-bit*)
10136	case $host in
10137	  x86_64-*kfreebsd*-gnu)
10138	    LD="${LD-ld} -m elf_i386_fbsd"
10139	    ;;
10140	  x86_64-*linux*)
10141	    LD="${LD-ld} -m elf_i386"
10142	    ;;
10143	  ppc64-*linux*|powerpc64-*linux*)
10144	    LD="${LD-ld} -m elf32ppclinux"
10145	    ;;
10146	  s390x-*linux*)
10147	    LD="${LD-ld} -m elf_s390"
10148	    ;;
10149	  sparc64-*linux*)
10150	    LD="${LD-ld} -m elf32_sparc"
10151	    ;;
10152	esac
10153	;;
10154      *64-bit*)
10155	case $host in
10156	  x86_64-*kfreebsd*-gnu)
10157	    LD="${LD-ld} -m elf_x86_64_fbsd"
10158	    ;;
10159	  x86_64-*linux*)
10160	    LD="${LD-ld} -m elf_x86_64"
10161	    ;;
10162	  ppc*-*linux*|powerpc*-*linux*)
10163	    LD="${LD-ld} -m elf64ppc"
10164	    ;;
10165	  s390*-*linux*|s390*-*tpf*)
10166	    LD="${LD-ld} -m elf64_s390"
10167	    ;;
10168	  sparc*-*linux*)
10169	    LD="${LD-ld} -m elf64_sparc"
10170	    ;;
10171	esac
10172	;;
10173    esac
10174  fi
10175  rm -rf conftest*
10176  ;;
10177
10178*-*-sco3.2v5*)
10179  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10180  SAVE_CFLAGS="$CFLAGS"
10181  CFLAGS="$CFLAGS -belf"
10182  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10183$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10184if test "${lt_cv_cc_needs_belf+set}" = set; then
10185  $as_echo_n "(cached) " >&6
10186else
10187  ac_ext=c
10188ac_cpp='$CPP $CPPFLAGS'
10189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191ac_compiler_gnu=$ac_cv_c_compiler_gnu
10192
10193     cat >conftest.$ac_ext <<_ACEOF
10194/* confdefs.h.  */
10195_ACEOF
10196cat confdefs.h >>conftest.$ac_ext
10197cat >>conftest.$ac_ext <<_ACEOF
10198/* end confdefs.h.  */
10199
10200int
10201main ()
10202{
10203
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208rm -f conftest.$ac_objext conftest$ac_exeext
10209if { (ac_try="$ac_link"
10210case "(($ac_try" in
10211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212  *) ac_try_echo=$ac_try;;
10213esac
10214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215$as_echo "$ac_try_echo") >&5
10216  (eval "$ac_link") 2>conftest.er1
10217  ac_status=$?
10218  grep -v '^ *+' conftest.er1 >conftest.err
10219  rm -f conftest.er1
10220  cat conftest.err >&5
10221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222  (exit $ac_status); } && {
10223	 test -z "$ac_c_werror_flag" ||
10224	 test ! -s conftest.err
10225       } && test -s conftest$ac_exeext && {
10226	 test "$cross_compiling" = yes ||
10227	 $as_test_x conftest$ac_exeext
10228       }; then
10229  lt_cv_cc_needs_belf=yes
10230else
10231  $as_echo "$as_me: failed program was:" >&5
10232sed 's/^/| /' conftest.$ac_ext >&5
10233
10234	lt_cv_cc_needs_belf=no
10235fi
10236
10237rm -rf conftest.dSYM
10238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239      conftest$ac_exeext conftest.$ac_ext
10240     ac_ext=c
10241ac_cpp='$CPP $CPPFLAGS'
10242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10244ac_compiler_gnu=$ac_cv_c_compiler_gnu
10245
10246fi
10247{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10248$as_echo "$lt_cv_cc_needs_belf" >&6; }
10249  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10250    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10251    CFLAGS="$SAVE_CFLAGS"
10252  fi
10253  ;;
10254sparc*-*solaris*)
10255  # Find out which ABI we are using.
10256  echo 'int i;' > conftest.$ac_ext
10257  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258  (eval $ac_compile) 2>&5
10259  ac_status=$?
10260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); }; then
10262    case `/usr/bin/file conftest.o` in
10263    *64-bit*)
10264      case $lt_cv_prog_gnu_ld in
10265      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10266      *)
10267	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10268	  LD="${LD-ld} -64"
10269	fi
10270	;;
10271      esac
10272      ;;
10273    esac
10274  fi
10275  rm -rf conftest*
10276  ;;
10277esac
10278
10279need_locks="$enable_libtool_lock"
10280
10281
10282  case $host_os in
10283    rhapsody* | darwin*)
10284    if test -n "$ac_tool_prefix"; then
10285  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10286set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10288$as_echo_n "checking for $ac_word... " >&6; }
10289if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10290  $as_echo_n "(cached) " >&6
10291else
10292  if test -n "$DSYMUTIL"; then
10293  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10294else
10295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296for as_dir in $PATH
10297do
10298  IFS=$as_save_IFS
10299  test -z "$as_dir" && as_dir=.
10300  for ac_exec_ext in '' $ac_executable_extensions; do
10301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10303    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10304    break 2
10305  fi
10306done
10307done
10308IFS=$as_save_IFS
10309
10310fi
10311fi
10312DSYMUTIL=$ac_cv_prog_DSYMUTIL
10313if test -n "$DSYMUTIL"; then
10314  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10315$as_echo "$DSYMUTIL" >&6; }
10316else
10317  { $as_echo "$as_me:$LINENO: result: no" >&5
10318$as_echo "no" >&6; }
10319fi
10320
10321
10322fi
10323if test -z "$ac_cv_prog_DSYMUTIL"; then
10324  ac_ct_DSYMUTIL=$DSYMUTIL
10325  # Extract the first word of "dsymutil", so it can be a program name with args.
10326set dummy dsymutil; ac_word=$2
10327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10328$as_echo_n "checking for $ac_word... " >&6; }
10329if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10330  $as_echo_n "(cached) " >&6
10331else
10332  if test -n "$ac_ct_DSYMUTIL"; then
10333  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10334else
10335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336for as_dir in $PATH
10337do
10338  IFS=$as_save_IFS
10339  test -z "$as_dir" && as_dir=.
10340  for ac_exec_ext in '' $ac_executable_extensions; do
10341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10343    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10344    break 2
10345  fi
10346done
10347done
10348IFS=$as_save_IFS
10349
10350fi
10351fi
10352ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10353if test -n "$ac_ct_DSYMUTIL"; then
10354  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10355$as_echo "$ac_ct_DSYMUTIL" >&6; }
10356else
10357  { $as_echo "$as_me:$LINENO: result: no" >&5
10358$as_echo "no" >&6; }
10359fi
10360
10361  if test "x$ac_ct_DSYMUTIL" = x; then
10362    DSYMUTIL=":"
10363  else
10364    case $cross_compiling:$ac_tool_warned in
10365yes:)
10366{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10368ac_tool_warned=yes ;;
10369esac
10370    DSYMUTIL=$ac_ct_DSYMUTIL
10371  fi
10372else
10373  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10374fi
10375
10376    if test -n "$ac_tool_prefix"; then
10377  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10378set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10380$as_echo_n "checking for $ac_word... " >&6; }
10381if test "${ac_cv_prog_NMEDIT+set}" = set; then
10382  $as_echo_n "(cached) " >&6
10383else
10384  if test -n "$NMEDIT"; then
10385  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10386else
10387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388for as_dir in $PATH
10389do
10390  IFS=$as_save_IFS
10391  test -z "$as_dir" && as_dir=.
10392  for ac_exec_ext in '' $ac_executable_extensions; do
10393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10394    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10395    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10396    break 2
10397  fi
10398done
10399done
10400IFS=$as_save_IFS
10401
10402fi
10403fi
10404NMEDIT=$ac_cv_prog_NMEDIT
10405if test -n "$NMEDIT"; then
10406  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10407$as_echo "$NMEDIT" >&6; }
10408else
10409  { $as_echo "$as_me:$LINENO: result: no" >&5
10410$as_echo "no" >&6; }
10411fi
10412
10413
10414fi
10415if test -z "$ac_cv_prog_NMEDIT"; then
10416  ac_ct_NMEDIT=$NMEDIT
10417  # Extract the first word of "nmedit", so it can be a program name with args.
10418set dummy nmedit; ac_word=$2
10419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10420$as_echo_n "checking for $ac_word... " >&6; }
10421if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10422  $as_echo_n "(cached) " >&6
10423else
10424  if test -n "$ac_ct_NMEDIT"; then
10425  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10426else
10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430  IFS=$as_save_IFS
10431  test -z "$as_dir" && as_dir=.
10432  for ac_exec_ext in '' $ac_executable_extensions; do
10433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10434    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10435    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10436    break 2
10437  fi
10438done
10439done
10440IFS=$as_save_IFS
10441
10442fi
10443fi
10444ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10445if test -n "$ac_ct_NMEDIT"; then
10446  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10447$as_echo "$ac_ct_NMEDIT" >&6; }
10448else
10449  { $as_echo "$as_me:$LINENO: result: no" >&5
10450$as_echo "no" >&6; }
10451fi
10452
10453  if test "x$ac_ct_NMEDIT" = x; then
10454    NMEDIT=":"
10455  else
10456    case $cross_compiling:$ac_tool_warned in
10457yes:)
10458{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10460ac_tool_warned=yes ;;
10461esac
10462    NMEDIT=$ac_ct_NMEDIT
10463  fi
10464else
10465  NMEDIT="$ac_cv_prog_NMEDIT"
10466fi
10467
10468    if test -n "$ac_tool_prefix"; then
10469  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10470set dummy ${ac_tool_prefix}lipo; ac_word=$2
10471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10472$as_echo_n "checking for $ac_word... " >&6; }
10473if test "${ac_cv_prog_LIPO+set}" = set; then
10474  $as_echo_n "(cached) " >&6
10475else
10476  if test -n "$LIPO"; then
10477  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10478else
10479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480for as_dir in $PATH
10481do
10482  IFS=$as_save_IFS
10483  test -z "$as_dir" && as_dir=.
10484  for ac_exec_ext in '' $ac_executable_extensions; do
10485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10487    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10488    break 2
10489  fi
10490done
10491done
10492IFS=$as_save_IFS
10493
10494fi
10495fi
10496LIPO=$ac_cv_prog_LIPO
10497if test -n "$LIPO"; then
10498  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
10499$as_echo "$LIPO" >&6; }
10500else
10501  { $as_echo "$as_me:$LINENO: result: no" >&5
10502$as_echo "no" >&6; }
10503fi
10504
10505
10506fi
10507if test -z "$ac_cv_prog_LIPO"; then
10508  ac_ct_LIPO=$LIPO
10509  # Extract the first word of "lipo", so it can be a program name with args.
10510set dummy lipo; ac_word=$2
10511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10512$as_echo_n "checking for $ac_word... " >&6; }
10513if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
10514  $as_echo_n "(cached) " >&6
10515else
10516  if test -n "$ac_ct_LIPO"; then
10517  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10518else
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522  IFS=$as_save_IFS
10523  test -z "$as_dir" && as_dir=.
10524  for ac_exec_ext in '' $ac_executable_extensions; do
10525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526    ac_cv_prog_ac_ct_LIPO="lipo"
10527    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10528    break 2
10529  fi
10530done
10531done
10532IFS=$as_save_IFS
10533
10534fi
10535fi
10536ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10537if test -n "$ac_ct_LIPO"; then
10538  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
10539$as_echo "$ac_ct_LIPO" >&6; }
10540else
10541  { $as_echo "$as_me:$LINENO: result: no" >&5
10542$as_echo "no" >&6; }
10543fi
10544
10545  if test "x$ac_ct_LIPO" = x; then
10546    LIPO=":"
10547  else
10548    case $cross_compiling:$ac_tool_warned in
10549yes:)
10550{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10552ac_tool_warned=yes ;;
10553esac
10554    LIPO=$ac_ct_LIPO
10555  fi
10556else
10557  LIPO="$ac_cv_prog_LIPO"
10558fi
10559
10560    if test -n "$ac_tool_prefix"; then
10561  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10562set dummy ${ac_tool_prefix}otool; ac_word=$2
10563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10564$as_echo_n "checking for $ac_word... " >&6; }
10565if test "${ac_cv_prog_OTOOL+set}" = set; then
10566  $as_echo_n "(cached) " >&6
10567else
10568  if test -n "$OTOOL"; then
10569  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10570else
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574  IFS=$as_save_IFS
10575  test -z "$as_dir" && as_dir=.
10576  for ac_exec_ext in '' $ac_executable_extensions; do
10577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10579    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10580    break 2
10581  fi
10582done
10583done
10584IFS=$as_save_IFS
10585
10586fi
10587fi
10588OTOOL=$ac_cv_prog_OTOOL
10589if test -n "$OTOOL"; then
10590  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
10591$as_echo "$OTOOL" >&6; }
10592else
10593  { $as_echo "$as_me:$LINENO: result: no" >&5
10594$as_echo "no" >&6; }
10595fi
10596
10597
10598fi
10599if test -z "$ac_cv_prog_OTOOL"; then
10600  ac_ct_OTOOL=$OTOOL
10601  # Extract the first word of "otool", so it can be a program name with args.
10602set dummy otool; ac_word=$2
10603{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10604$as_echo_n "checking for $ac_word... " >&6; }
10605if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
10606  $as_echo_n "(cached) " >&6
10607else
10608  if test -n "$ac_ct_OTOOL"; then
10609  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10610else
10611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612for as_dir in $PATH
10613do
10614  IFS=$as_save_IFS
10615  test -z "$as_dir" && as_dir=.
10616  for ac_exec_ext in '' $ac_executable_extensions; do
10617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10618    ac_cv_prog_ac_ct_OTOOL="otool"
10619    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10620    break 2
10621  fi
10622done
10623done
10624IFS=$as_save_IFS
10625
10626fi
10627fi
10628ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10629if test -n "$ac_ct_OTOOL"; then
10630  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
10631$as_echo "$ac_ct_OTOOL" >&6; }
10632else
10633  { $as_echo "$as_me:$LINENO: result: no" >&5
10634$as_echo "no" >&6; }
10635fi
10636
10637  if test "x$ac_ct_OTOOL" = x; then
10638    OTOOL=":"
10639  else
10640    case $cross_compiling:$ac_tool_warned in
10641yes:)
10642{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10644ac_tool_warned=yes ;;
10645esac
10646    OTOOL=$ac_ct_OTOOL
10647  fi
10648else
10649  OTOOL="$ac_cv_prog_OTOOL"
10650fi
10651
10652    if test -n "$ac_tool_prefix"; then
10653  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10654set dummy ${ac_tool_prefix}otool64; ac_word=$2
10655{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10656$as_echo_n "checking for $ac_word... " >&6; }
10657if test "${ac_cv_prog_OTOOL64+set}" = set; then
10658  $as_echo_n "(cached) " >&6
10659else
10660  if test -n "$OTOOL64"; then
10661  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10662else
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666  IFS=$as_save_IFS
10667  test -z "$as_dir" && as_dir=.
10668  for ac_exec_ext in '' $ac_executable_extensions; do
10669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10671    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10672    break 2
10673  fi
10674done
10675done
10676IFS=$as_save_IFS
10677
10678fi
10679fi
10680OTOOL64=$ac_cv_prog_OTOOL64
10681if test -n "$OTOOL64"; then
10682  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
10683$as_echo "$OTOOL64" >&6; }
10684else
10685  { $as_echo "$as_me:$LINENO: result: no" >&5
10686$as_echo "no" >&6; }
10687fi
10688
10689
10690fi
10691if test -z "$ac_cv_prog_OTOOL64"; then
10692  ac_ct_OTOOL64=$OTOOL64
10693  # Extract the first word of "otool64", so it can be a program name with args.
10694set dummy otool64; ac_word=$2
10695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10696$as_echo_n "checking for $ac_word... " >&6; }
10697if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10698  $as_echo_n "(cached) " >&6
10699else
10700  if test -n "$ac_ct_OTOOL64"; then
10701  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10702else
10703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704for as_dir in $PATH
10705do
10706  IFS=$as_save_IFS
10707  test -z "$as_dir" && as_dir=.
10708  for ac_exec_ext in '' $ac_executable_extensions; do
10709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710    ac_cv_prog_ac_ct_OTOOL64="otool64"
10711    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10712    break 2
10713  fi
10714done
10715done
10716IFS=$as_save_IFS
10717
10718fi
10719fi
10720ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10721if test -n "$ac_ct_OTOOL64"; then
10722  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
10723$as_echo "$ac_ct_OTOOL64" >&6; }
10724else
10725  { $as_echo "$as_me:$LINENO: result: no" >&5
10726$as_echo "no" >&6; }
10727fi
10728
10729  if test "x$ac_ct_OTOOL64" = x; then
10730    OTOOL64=":"
10731  else
10732    case $cross_compiling:$ac_tool_warned in
10733yes:)
10734{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10736ac_tool_warned=yes ;;
10737esac
10738    OTOOL64=$ac_ct_OTOOL64
10739  fi
10740else
10741  OTOOL64="$ac_cv_prog_OTOOL64"
10742fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10771$as_echo_n "checking for -single_module linker flag... " >&6; }
10772if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10773  $as_echo_n "(cached) " >&6
10774else
10775  lt_cv_apple_cc_single_mod=no
10776      if test -z "${LT_MULTI_MODULE}"; then
10777	# By default we will add the -single_module flag. You can override
10778	# by either setting the environment variable LT_MULTI_MODULE
10779	# non-empty at configure time, or by adding -multi_module to the
10780	# link flags.
10781	rm -rf libconftest.dylib*
10782	echo "int foo(void){return 1;}" > conftest.c
10783	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10784-dynamiclib -Wl,-single_module conftest.c" >&5
10785	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10786	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10787        _lt_result=$?
10788	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10789	  lt_cv_apple_cc_single_mod=yes
10790	else
10791	  cat conftest.err >&5
10792	fi
10793	rm -rf libconftest.dylib*
10794	rm -f conftest.*
10795      fi
10796fi
10797{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10798$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10799    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10800$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10801if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10802  $as_echo_n "(cached) " >&6
10803else
10804  lt_cv_ld_exported_symbols_list=no
10805      save_LDFLAGS=$LDFLAGS
10806      echo "_main" > conftest.sym
10807      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10808      cat >conftest.$ac_ext <<_ACEOF
10809/* confdefs.h.  */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h.  */
10814
10815int
10816main ()
10817{
10818
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823rm -f conftest.$ac_objext conftest$ac_exeext
10824if { (ac_try="$ac_link"
10825case "(($ac_try" in
10826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827  *) ac_try_echo=$ac_try;;
10828esac
10829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10830$as_echo "$ac_try_echo") >&5
10831  (eval "$ac_link") 2>conftest.er1
10832  ac_status=$?
10833  grep -v '^ *+' conftest.er1 >conftest.err
10834  rm -f conftest.er1
10835  cat conftest.err >&5
10836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837  (exit $ac_status); } && {
10838	 test -z "$ac_c_werror_flag" ||
10839	 test ! -s conftest.err
10840       } && test -s conftest$ac_exeext && {
10841	 test "$cross_compiling" = yes ||
10842	 $as_test_x conftest$ac_exeext
10843       }; then
10844  lt_cv_ld_exported_symbols_list=yes
10845else
10846  $as_echo "$as_me: failed program was:" >&5
10847sed 's/^/| /' conftest.$ac_ext >&5
10848
10849	lt_cv_ld_exported_symbols_list=no
10850fi
10851
10852rm -rf conftest.dSYM
10853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10854      conftest$ac_exeext conftest.$ac_ext
10855	LDFLAGS="$save_LDFLAGS"
10856
10857fi
10858{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10859$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10860    case $host_os in
10861    rhapsody* | darwin1.[012])
10862      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10863    darwin1.*)
10864      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10865    darwin*) # darwin 5.x on
10866      # if running on 10.5 or later, the deployment target defaults
10867      # to the OS version, if on x86, and 10.4, the deployment
10868      # target defaults to 10.4. Don't you love it?
10869      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10870	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10871	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10872	10.[012]*)
10873	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10874	10.*)
10875	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10876      esac
10877    ;;
10878  esac
10879    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10880      _lt_dar_single_mod='$single_module'
10881    fi
10882    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10883      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10884    else
10885      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10886    fi
10887    if test "$DSYMUTIL" != ":"; then
10888      _lt_dsymutil='~$DSYMUTIL $lib || :'
10889    else
10890      _lt_dsymutil=
10891    fi
10892    ;;
10893  esac
10894
10895
10896for ac_header in dlfcn.h
10897do
10898as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10899{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10900$as_echo_n "checking for $ac_header... " >&6; }
10901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10902  $as_echo_n "(cached) " >&6
10903else
10904  cat >conftest.$ac_ext <<_ACEOF
10905/* confdefs.h.  */
10906_ACEOF
10907cat confdefs.h >>conftest.$ac_ext
10908cat >>conftest.$ac_ext <<_ACEOF
10909/* end confdefs.h.  */
10910$ac_includes_default
10911
10912#include <$ac_header>
10913_ACEOF
10914rm -f conftest.$ac_objext
10915if { (ac_try="$ac_compile"
10916case "(($ac_try" in
10917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918  *) ac_try_echo=$ac_try;;
10919esac
10920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10921$as_echo "$ac_try_echo") >&5
10922  (eval "$ac_compile") 2>conftest.er1
10923  ac_status=$?
10924  grep -v '^ *+' conftest.er1 >conftest.err
10925  rm -f conftest.er1
10926  cat conftest.err >&5
10927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928  (exit $ac_status); } && {
10929	 test -z "$ac_c_werror_flag" ||
10930	 test ! -s conftest.err
10931       } && test -s conftest.$ac_objext; then
10932  eval "$as_ac_Header=yes"
10933else
10934  $as_echo "$as_me: failed program was:" >&5
10935sed 's/^/| /' conftest.$ac_ext >&5
10936
10937	eval "$as_ac_Header=no"
10938fi
10939
10940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941fi
10942ac_res=`eval 'as_val=${'$as_ac_Header'}
10943		 $as_echo "$as_val"'`
10944	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10945$as_echo "$ac_res" >&6; }
10946as_val=`eval 'as_val=${'$as_ac_Header'}
10947		 $as_echo "$as_val"'`
10948   if test "x$as_val" = x""yes; then
10949  cat >>confdefs.h <<_ACEOF
10950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10951_ACEOF
10952
10953fi
10954
10955done
10956
10957
10958
10959# Set options
10960
10961
10962
10963        enable_dlopen=no
10964
10965
10966  enable_win32_dll=no
10967
10968
10969            # Check whether --enable-shared was given.
10970if test "${enable_shared+set}" = set; then
10971  enableval=$enable_shared; p=${PACKAGE-default}
10972    case $enableval in
10973    yes) enable_shared=yes ;;
10974    no) enable_shared=no ;;
10975    *)
10976      enable_shared=no
10977      # Look at the argument we got.  We use all the common list separators.
10978      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10979      for pkg in $enableval; do
10980	IFS="$lt_save_ifs"
10981	if test "X$pkg" = "X$p"; then
10982	  enable_shared=yes
10983	fi
10984      done
10985      IFS="$lt_save_ifs"
10986      ;;
10987    esac
10988else
10989  enable_shared=yes
10990fi
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000  # Check whether --enable-static was given.
11001if test "${enable_static+set}" = set; then
11002  enableval=$enable_static; p=${PACKAGE-default}
11003    case $enableval in
11004    yes) enable_static=yes ;;
11005    no) enable_static=no ;;
11006    *)
11007     enable_static=no
11008      # Look at the argument we got.  We use all the common list separators.
11009      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11010      for pkg in $enableval; do
11011	IFS="$lt_save_ifs"
11012	if test "X$pkg" = "X$p"; then
11013	  enable_static=yes
11014	fi
11015      done
11016      IFS="$lt_save_ifs"
11017      ;;
11018    esac
11019else
11020  enable_static=yes
11021fi
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032# Check whether --with-pic was given.
11033if test "${with_pic+set}" = set; then
11034  withval=$with_pic; pic_mode="$withval"
11035else
11036  pic_mode=default
11037fi
11038
11039
11040test -z "$pic_mode" && pic_mode=default
11041
11042
11043
11044
11045
11046
11047
11048  # Check whether --enable-fast-install was given.
11049if test "${enable_fast_install+set}" = set; then
11050  enableval=$enable_fast_install; p=${PACKAGE-default}
11051    case $enableval in
11052    yes) enable_fast_install=yes ;;
11053    no) enable_fast_install=no ;;
11054    *)
11055      enable_fast_install=no
11056      # Look at the argument we got.  We use all the common list separators.
11057      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11058      for pkg in $enableval; do
11059	IFS="$lt_save_ifs"
11060	if test "X$pkg" = "X$p"; then
11061	  enable_fast_install=yes
11062	fi
11063      done
11064      IFS="$lt_save_ifs"
11065      ;;
11066    esac
11067else
11068  enable_fast_install=yes
11069fi
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081# This can be used to rebuild libtool when needed
11082LIBTOOL_DEPS="$ltmain"
11083
11084# Always use our own libtool.
11085LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111test -z "$LN_S" && LN_S="ln -s"
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126if test -n "${ZSH_VERSION+set}" ; then
11127   setopt NO_GLOB_SUBST
11128fi
11129
11130{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
11131$as_echo_n "checking for objdir... " >&6; }
11132if test "${lt_cv_objdir+set}" = set; then
11133  $as_echo_n "(cached) " >&6
11134else
11135  rm -f .libs 2>/dev/null
11136mkdir .libs 2>/dev/null
11137if test -d .libs; then
11138  lt_cv_objdir=.libs
11139else
11140  # MS-DOS does not allow filenames that begin with a dot.
11141  lt_cv_objdir=_libs
11142fi
11143rmdir .libs 2>/dev/null
11144fi
11145{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11146$as_echo "$lt_cv_objdir" >&6; }
11147objdir=$lt_cv_objdir
11148
11149
11150
11151
11152
11153cat >>confdefs.h <<_ACEOF
11154#define LT_OBJDIR "$lt_cv_objdir/"
11155_ACEOF
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173case $host_os in
11174aix3*)
11175  # AIX sometimes has problems with the GCC collect2 program.  For some
11176  # reason, if we set the COLLECT_NAMES environment variable, the problems
11177  # vanish in a puff of smoke.
11178  if test "X${COLLECT_NAMES+set}" != Xset; then
11179    COLLECT_NAMES=
11180    export COLLECT_NAMES
11181  fi
11182  ;;
11183esac
11184
11185# Sed substitution that helps us do robust quoting.  It backslashifies
11186# metacharacters that are still active within double-quoted strings.
11187sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11188
11189# Same as above, but do not quote variable references.
11190double_quote_subst='s/\(["`\\]\)/\\\1/g'
11191
11192# Sed substitution to delay expansion of an escaped shell variable in a
11193# double_quote_subst'ed string.
11194delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11195
11196# Sed substitution to delay expansion of an escaped single quote.
11197delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11198
11199# Sed substitution to avoid accidental globbing in evaled expressions
11200no_glob_subst='s/\*/\\\*/g'
11201
11202# Global variables:
11203ofile=libtool
11204can_build_shared=yes
11205
11206# All known linkers require a `.a' archive for static linking (except MSVC,
11207# which needs '.lib').
11208libext=a
11209
11210with_gnu_ld="$lt_cv_prog_gnu_ld"
11211
11212old_CC="$CC"
11213old_CFLAGS="$CFLAGS"
11214
11215# Set sane defaults for various variables
11216test -z "$CC" && CC=cc
11217test -z "$LTCC" && LTCC=$CC
11218test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11219test -z "$LD" && LD=ld
11220test -z "$ac_objext" && ac_objext=o
11221
11222for cc_temp in $compiler""; do
11223  case $cc_temp in
11224    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11225    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11226    \-*) ;;
11227    *) break;;
11228  esac
11229done
11230cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11231
11232
11233# Only perform the check for file, if the check method requires it
11234test -z "$MAGIC_CMD" && MAGIC_CMD=file
11235case $deplibs_check_method in
11236file_magic*)
11237  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11238    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11239$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11240if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11241  $as_echo_n "(cached) " >&6
11242else
11243  case $MAGIC_CMD in
11244[\\/*] |  ?:[\\/]*)
11245  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11246  ;;
11247*)
11248  lt_save_MAGIC_CMD="$MAGIC_CMD"
11249  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11250  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11251  for ac_dir in $ac_dummy; do
11252    IFS="$lt_save_ifs"
11253    test -z "$ac_dir" && ac_dir=.
11254    if test -f $ac_dir/${ac_tool_prefix}file; then
11255      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11256      if test -n "$file_magic_test_file"; then
11257	case $deplibs_check_method in
11258	"file_magic "*)
11259	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11260	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11261	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11262	    $EGREP "$file_magic_regex" > /dev/null; then
11263	    :
11264	  else
11265	    cat <<_LT_EOF 1>&2
11266
11267*** Warning: the command libtool uses to detect shared libraries,
11268*** $file_magic_cmd, produces output that libtool cannot recognize.
11269*** The result is that libtool may fail to recognize shared libraries
11270*** as such.  This will affect the creation of libtool libraries that
11271*** depend on shared libraries, but programs linked with such libtool
11272*** libraries will work regardless of this problem.  Nevertheless, you
11273*** may want to report the problem to your system manager and/or to
11274*** bug-libtool@gnu.org
11275
11276_LT_EOF
11277	  fi ;;
11278	esac
11279      fi
11280      break
11281    fi
11282  done
11283  IFS="$lt_save_ifs"
11284  MAGIC_CMD="$lt_save_MAGIC_CMD"
11285  ;;
11286esac
11287fi
11288
11289MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11290if test -n "$MAGIC_CMD"; then
11291  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11292$as_echo "$MAGIC_CMD" >&6; }
11293else
11294  { $as_echo "$as_me:$LINENO: result: no" >&5
11295$as_echo "no" >&6; }
11296fi
11297
11298
11299
11300
11301
11302if test -z "$lt_cv_path_MAGIC_CMD"; then
11303  if test -n "$ac_tool_prefix"; then
11304    { $as_echo "$as_me:$LINENO: checking for file" >&5
11305$as_echo_n "checking for file... " >&6; }
11306if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11307  $as_echo_n "(cached) " >&6
11308else
11309  case $MAGIC_CMD in
11310[\\/*] |  ?:[\\/]*)
11311  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11312  ;;
11313*)
11314  lt_save_MAGIC_CMD="$MAGIC_CMD"
11315  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11316  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11317  for ac_dir in $ac_dummy; do
11318    IFS="$lt_save_ifs"
11319    test -z "$ac_dir" && ac_dir=.
11320    if test -f $ac_dir/file; then
11321      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11322      if test -n "$file_magic_test_file"; then
11323	case $deplibs_check_method in
11324	"file_magic "*)
11325	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11326	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11327	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11328	    $EGREP "$file_magic_regex" > /dev/null; then
11329	    :
11330	  else
11331	    cat <<_LT_EOF 1>&2
11332
11333*** Warning: the command libtool uses to detect shared libraries,
11334*** $file_magic_cmd, produces output that libtool cannot recognize.
11335*** The result is that libtool may fail to recognize shared libraries
11336*** as such.  This will affect the creation of libtool libraries that
11337*** depend on shared libraries, but programs linked with such libtool
11338*** libraries will work regardless of this problem.  Nevertheless, you
11339*** may want to report the problem to your system manager and/or to
11340*** bug-libtool@gnu.org
11341
11342_LT_EOF
11343	  fi ;;
11344	esac
11345      fi
11346      break
11347    fi
11348  done
11349  IFS="$lt_save_ifs"
11350  MAGIC_CMD="$lt_save_MAGIC_CMD"
11351  ;;
11352esac
11353fi
11354
11355MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11356if test -n "$MAGIC_CMD"; then
11357  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11358$as_echo "$MAGIC_CMD" >&6; }
11359else
11360  { $as_echo "$as_me:$LINENO: result: no" >&5
11361$as_echo "no" >&6; }
11362fi
11363
11364
11365  else
11366    MAGIC_CMD=:
11367  fi
11368fi
11369
11370  fi
11371  ;;
11372esac
11373
11374# Use C for the default configuration in the libtool script
11375
11376lt_save_CC="$CC"
11377ac_ext=c
11378ac_cpp='$CPP $CPPFLAGS'
11379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11381ac_compiler_gnu=$ac_cv_c_compiler_gnu
11382
11383
11384# Source file extension for C test sources.
11385ac_ext=c
11386
11387# Object file extension for compiled C test sources.
11388objext=o
11389objext=$objext
11390
11391# Code to be used in simple compile tests
11392lt_simple_compile_test_code="int some_variable = 0;"
11393
11394# Code to be used in simple link tests
11395lt_simple_link_test_code='int main(){return(0);}'
11396
11397
11398
11399
11400
11401
11402
11403# If no C compiler was specified, use CC.
11404LTCC=${LTCC-"$CC"}
11405
11406# If no C compiler flags were specified, use CFLAGS.
11407LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11408
11409# Allow CC to be a program name with arguments.
11410compiler=$CC
11411
11412# Save the default compiler, since it gets overwritten when the other
11413# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11414compiler_DEFAULT=$CC
11415
11416# save warnings/boilerplate of simple test code
11417ac_outfile=conftest.$ac_objext
11418echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11419eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11420_lt_compiler_boilerplate=`cat conftest.err`
11421$RM conftest*
11422
11423ac_outfile=conftest.$ac_objext
11424echo "$lt_simple_link_test_code" >conftest.$ac_ext
11425eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11426_lt_linker_boilerplate=`cat conftest.err`
11427$RM -r conftest*
11428
11429
11430if test -n "$compiler"; then
11431
11432lt_prog_compiler_no_builtin_flag=
11433
11434if test "$GCC" = yes; then
11435  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11436
11437  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11438$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11439if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11440  $as_echo_n "(cached) " >&6
11441else
11442  lt_cv_prog_compiler_rtti_exceptions=no
11443   ac_outfile=conftest.$ac_objext
11444   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11445   lt_compiler_flag="-fno-rtti -fno-exceptions"
11446   # Insert the option either (1) after the last *FLAGS variable, or
11447   # (2) before a word containing "conftest.", or (3) at the end.
11448   # Note that $ac_compile itself does not contain backslashes and begins
11449   # with a dollar sign (not a hyphen), so the echo should work correctly.
11450   # The option is referenced via a variable to avoid confusing sed.
11451   lt_compile=`echo "$ac_compile" | $SED \
11452   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11453   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11454   -e 's:$: $lt_compiler_flag:'`
11455   (eval echo "\"\$as_me:11455: $lt_compile\"" >&5)
11456   (eval "$lt_compile" 2>conftest.err)
11457   ac_status=$?
11458   cat conftest.err >&5
11459   echo "$as_me:11459: \$? = $ac_status" >&5
11460   if (exit $ac_status) && test -s "$ac_outfile"; then
11461     # The compiler can only warn and ignore the option if not recognized
11462     # So say no if there are warnings other than the usual output.
11463     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11464     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11465     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11466       lt_cv_prog_compiler_rtti_exceptions=yes
11467     fi
11468   fi
11469   $RM conftest*
11470
11471fi
11472{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11473$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11474
11475if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11476    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11477else
11478    :
11479fi
11480
11481fi
11482
11483
11484
11485
11486
11487
11488  lt_prog_compiler_wl=
11489lt_prog_compiler_pic=
11490lt_prog_compiler_static=
11491
11492{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11493$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11494
11495  if test "$GCC" = yes; then
11496    lt_prog_compiler_wl='-Wl,'
11497    lt_prog_compiler_static='-static'
11498
11499    case $host_os in
11500      aix*)
11501      # All AIX code is PIC.
11502      if test "$host_cpu" = ia64; then
11503	# AIX 5 now supports IA64 processor
11504	lt_prog_compiler_static='-Bstatic'
11505      fi
11506      ;;
11507
11508    amigaos*)
11509      case $host_cpu in
11510      powerpc)
11511            # see comment about AmigaOS4 .so support
11512            lt_prog_compiler_pic='-fPIC'
11513        ;;
11514      m68k)
11515            # FIXME: we need at least 68020 code to build shared libraries, but
11516            # adding the `-m68020' flag to GCC prevents building anything better,
11517            # like `-m68040'.
11518            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11519        ;;
11520      esac
11521      ;;
11522
11523    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11524      # PIC is the default for these OSes.
11525      ;;
11526
11527    mingw* | cygwin* | pw32* | os2* | cegcc*)
11528      # This hack is so that the source file can tell whether it is being
11529      # built for inclusion in a dll (and should export symbols for example).
11530      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11531      # (--disable-auto-import) libraries
11532      lt_prog_compiler_pic='-DDLL_EXPORT'
11533      ;;
11534
11535    darwin* | rhapsody*)
11536      # PIC is the default on this platform
11537      # Common symbols not allowed in MH_DYLIB files
11538      lt_prog_compiler_pic='-fno-common'
11539      ;;
11540
11541    hpux*)
11542      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11543      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11544      # sets the default TLS model and affects inlining.
11545      case $host_cpu in
11546      hppa*64*)
11547	# +Z the default
11548	;;
11549      *)
11550	lt_prog_compiler_pic='-fPIC'
11551	;;
11552      esac
11553      ;;
11554
11555    interix[3-9]*)
11556      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11557      # Instead, we relocate shared libraries at runtime.
11558      ;;
11559
11560    msdosdjgpp*)
11561      # Just because we use GCC doesn't mean we suddenly get shared libraries
11562      # on systems that don't support them.
11563      lt_prog_compiler_can_build_shared=no
11564      enable_shared=no
11565      ;;
11566
11567    *nto* | *qnx*)
11568      # QNX uses GNU C++, but need to define -shared option too, otherwise
11569      # it will coredump.
11570      lt_prog_compiler_pic='-fPIC -shared'
11571      ;;
11572
11573    sysv4*MP*)
11574      if test -d /usr/nec; then
11575	lt_prog_compiler_pic=-Kconform_pic
11576      fi
11577      ;;
11578
11579    *)
11580      lt_prog_compiler_pic='-fPIC'
11581      ;;
11582    esac
11583  else
11584    # PORTME Check for flag to pass linker flags through the system compiler.
11585    case $host_os in
11586    aix*)
11587      lt_prog_compiler_wl='-Wl,'
11588      if test "$host_cpu" = ia64; then
11589	# AIX 5 now supports IA64 processor
11590	lt_prog_compiler_static='-Bstatic'
11591      else
11592	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11593      fi
11594      ;;
11595
11596    mingw* | cygwin* | pw32* | os2* | cegcc*)
11597      # This hack is so that the source file can tell whether it is being
11598      # built for inclusion in a dll (and should export symbols for example).
11599      lt_prog_compiler_pic='-DDLL_EXPORT'
11600      ;;
11601
11602    hpux9* | hpux10* | hpux11*)
11603      lt_prog_compiler_wl='-Wl,'
11604      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11605      # not for PA HP-UX.
11606      case $host_cpu in
11607      hppa*64*|ia64*)
11608	# +Z the default
11609	;;
11610      *)
11611	lt_prog_compiler_pic='+Z'
11612	;;
11613      esac
11614      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11615      lt_prog_compiler_static='${wl}-a ${wl}archive'
11616      ;;
11617
11618    irix5* | irix6* | nonstopux*)
11619      lt_prog_compiler_wl='-Wl,'
11620      # PIC (with -KPIC) is the default.
11621      lt_prog_compiler_static='-non_shared'
11622      ;;
11623
11624    linux* | k*bsd*-gnu)
11625      case $cc_basename in
11626      # old Intel for x86_64 which still supported -KPIC.
11627      ecc*)
11628	lt_prog_compiler_wl='-Wl,'
11629	lt_prog_compiler_pic='-KPIC'
11630	lt_prog_compiler_static='-static'
11631        ;;
11632      # icc used to be incompatible with GCC.
11633      # ICC 10 doesn't accept -KPIC any more.
11634      icc* | ifort*)
11635	lt_prog_compiler_wl='-Wl,'
11636	lt_prog_compiler_pic='-fPIC'
11637	lt_prog_compiler_static='-static'
11638        ;;
11639      # Lahey Fortran 8.1.
11640      lf95*)
11641	lt_prog_compiler_wl='-Wl,'
11642	lt_prog_compiler_pic='--shared'
11643	lt_prog_compiler_static='--static'
11644	;;
11645      pgcc* | pgf77* | pgf90* | pgf95*)
11646        # Portland Group compilers (*not* the Pentium gcc compiler,
11647	# which looks to be a dead project)
11648	lt_prog_compiler_wl='-Wl,'
11649	lt_prog_compiler_pic='-fpic'
11650	lt_prog_compiler_static='-Bstatic'
11651        ;;
11652      ccc*)
11653        lt_prog_compiler_wl='-Wl,'
11654        # All Alpha code is PIC.
11655        lt_prog_compiler_static='-non_shared'
11656        ;;
11657      xl*)
11658	# IBM XL C 8.0/Fortran 10.1 on PPC
11659	lt_prog_compiler_wl='-Wl,'
11660	lt_prog_compiler_pic='-qpic'
11661	lt_prog_compiler_static='-qstaticlink'
11662	;;
11663      *)
11664	case `$CC -V 2>&1 | sed 5q` in
11665	*Sun\ C*)
11666	  # Sun C 5.9
11667	  lt_prog_compiler_pic='-KPIC'
11668	  lt_prog_compiler_static='-Bstatic'
11669	  lt_prog_compiler_wl='-Wl,'
11670	  ;;
11671	*Sun\ F*)
11672	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11673	  lt_prog_compiler_pic='-KPIC'
11674	  lt_prog_compiler_static='-Bstatic'
11675	  lt_prog_compiler_wl=''
11676	  ;;
11677	esac
11678	;;
11679      esac
11680      ;;
11681
11682    newsos6)
11683      lt_prog_compiler_pic='-KPIC'
11684      lt_prog_compiler_static='-Bstatic'
11685      ;;
11686
11687    *nto* | *qnx*)
11688      # QNX uses GNU C++, but need to define -shared option too, otherwise
11689      # it will coredump.
11690      lt_prog_compiler_pic='-fPIC -shared'
11691      ;;
11692
11693    osf3* | osf4* | osf5*)
11694      lt_prog_compiler_wl='-Wl,'
11695      # All OSF/1 code is PIC.
11696      lt_prog_compiler_static='-non_shared'
11697      ;;
11698
11699    rdos*)
11700      lt_prog_compiler_static='-non_shared'
11701      ;;
11702
11703    solaris*)
11704      lt_prog_compiler_pic='-KPIC'
11705      lt_prog_compiler_static='-Bstatic'
11706      case $cc_basename in
11707      f77* | f90* | f95*)
11708	lt_prog_compiler_wl='-Qoption ld ';;
11709      *)
11710	lt_prog_compiler_wl='-Wl,';;
11711      esac
11712      ;;
11713
11714    sunos4*)
11715      lt_prog_compiler_wl='-Qoption ld '
11716      lt_prog_compiler_pic='-PIC'
11717      lt_prog_compiler_static='-Bstatic'
11718      ;;
11719
11720    sysv4 | sysv4.2uw2* | sysv4.3*)
11721      lt_prog_compiler_wl='-Wl,'
11722      lt_prog_compiler_pic='-KPIC'
11723      lt_prog_compiler_static='-Bstatic'
11724      ;;
11725
11726    sysv4*MP*)
11727      if test -d /usr/nec ;then
11728	lt_prog_compiler_pic='-Kconform_pic'
11729	lt_prog_compiler_static='-Bstatic'
11730      fi
11731      ;;
11732
11733    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11734      lt_prog_compiler_wl='-Wl,'
11735      lt_prog_compiler_pic='-KPIC'
11736      lt_prog_compiler_static='-Bstatic'
11737      ;;
11738
11739    unicos*)
11740      lt_prog_compiler_wl='-Wl,'
11741      lt_prog_compiler_can_build_shared=no
11742      ;;
11743
11744    uts4*)
11745      lt_prog_compiler_pic='-pic'
11746      lt_prog_compiler_static='-Bstatic'
11747      ;;
11748
11749    *)
11750      lt_prog_compiler_can_build_shared=no
11751      ;;
11752    esac
11753  fi
11754
11755case $host_os in
11756  # For platforms which do not support PIC, -DPIC is meaningless:
11757  *djgpp*)
11758    lt_prog_compiler_pic=
11759    ;;
11760  *)
11761    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11762    ;;
11763esac
11764{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11765$as_echo "$lt_prog_compiler_pic" >&6; }
11766
11767
11768
11769
11770
11771
11772#
11773# Check to make sure the PIC flag actually works.
11774#
11775if test -n "$lt_prog_compiler_pic"; then
11776  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11777$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11778if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11779  $as_echo_n "(cached) " >&6
11780else
11781  lt_cv_prog_compiler_pic_works=no
11782   ac_outfile=conftest.$ac_objext
11783   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11784   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11785   # Insert the option either (1) after the last *FLAGS variable, or
11786   # (2) before a word containing "conftest.", or (3) at the end.
11787   # Note that $ac_compile itself does not contain backslashes and begins
11788   # with a dollar sign (not a hyphen), so the echo should work correctly.
11789   # The option is referenced via a variable to avoid confusing sed.
11790   lt_compile=`echo "$ac_compile" | $SED \
11791   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11792   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11793   -e 's:$: $lt_compiler_flag:'`
11794   (eval echo "\"\$as_me:11794: $lt_compile\"" >&5)
11795   (eval "$lt_compile" 2>conftest.err)
11796   ac_status=$?
11797   cat conftest.err >&5
11798   echo "$as_me:11798: \$? = $ac_status" >&5
11799   if (exit $ac_status) && test -s "$ac_outfile"; then
11800     # The compiler can only warn and ignore the option if not recognized
11801     # So say no if there are warnings other than the usual output.
11802     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11803     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11804     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11805       lt_cv_prog_compiler_pic_works=yes
11806     fi
11807   fi
11808   $RM conftest*
11809
11810fi
11811{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11812$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11813
11814if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11815    case $lt_prog_compiler_pic in
11816     "" | " "*) ;;
11817     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11818     esac
11819else
11820    lt_prog_compiler_pic=
11821     lt_prog_compiler_can_build_shared=no
11822fi
11823
11824fi
11825
11826
11827
11828
11829
11830
11831#
11832# Check to make sure the static flag actually works.
11833#
11834wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11835{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11836$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11837if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11838  $as_echo_n "(cached) " >&6
11839else
11840  lt_cv_prog_compiler_static_works=no
11841   save_LDFLAGS="$LDFLAGS"
11842   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11843   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11844   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11845     # The linker can only warn and ignore the option if not recognized
11846     # So say no if there are warnings
11847     if test -s conftest.err; then
11848       # Append any errors to the config.log.
11849       cat conftest.err 1>&5
11850       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11851       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11852       if diff conftest.exp conftest.er2 >/dev/null; then
11853         lt_cv_prog_compiler_static_works=yes
11854       fi
11855     else
11856       lt_cv_prog_compiler_static_works=yes
11857     fi
11858   fi
11859   $RM -r conftest*
11860   LDFLAGS="$save_LDFLAGS"
11861
11862fi
11863{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11864$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11865
11866if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11867    :
11868else
11869    lt_prog_compiler_static=
11870fi
11871
11872
11873
11874
11875
11876
11877
11878  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11879$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11880if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11881  $as_echo_n "(cached) " >&6
11882else
11883  lt_cv_prog_compiler_c_o=no
11884   $RM -r conftest 2>/dev/null
11885   mkdir conftest
11886   cd conftest
11887   mkdir out
11888   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11889
11890   lt_compiler_flag="-o out/conftest2.$ac_objext"
11891   # Insert the option either (1) after the last *FLAGS variable, or
11892   # (2) before a word containing "conftest.", or (3) at the end.
11893   # Note that $ac_compile itself does not contain backslashes and begins
11894   # with a dollar sign (not a hyphen), so the echo should work correctly.
11895   lt_compile=`echo "$ac_compile" | $SED \
11896   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11897   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11898   -e 's:$: $lt_compiler_flag:'`
11899   (eval echo "\"\$as_me:11899: $lt_compile\"" >&5)
11900   (eval "$lt_compile" 2>out/conftest.err)
11901   ac_status=$?
11902   cat out/conftest.err >&5
11903   echo "$as_me:11903: \$? = $ac_status" >&5
11904   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11905   then
11906     # The compiler can only warn and ignore the option if not recognized
11907     # So say no if there are warnings
11908     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11909     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11910     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11911       lt_cv_prog_compiler_c_o=yes
11912     fi
11913   fi
11914   chmod u+w . 2>&5
11915   $RM conftest*
11916   # SGI C++ compiler will create directory out/ii_files/ for
11917   # template instantiation
11918   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11919   $RM out/* && rmdir out
11920   cd ..
11921   $RM -r conftest
11922   $RM conftest*
11923
11924fi
11925{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11926$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11927
11928
11929
11930
11931
11932
11933  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11934$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11935if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11936  $as_echo_n "(cached) " >&6
11937else
11938  lt_cv_prog_compiler_c_o=no
11939   $RM -r conftest 2>/dev/null
11940   mkdir conftest
11941   cd conftest
11942   mkdir out
11943   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11944
11945   lt_compiler_flag="-o out/conftest2.$ac_objext"
11946   # Insert the option either (1) after the last *FLAGS variable, or
11947   # (2) before a word containing "conftest.", or (3) at the end.
11948   # Note that $ac_compile itself does not contain backslashes and begins
11949   # with a dollar sign (not a hyphen), so the echo should work correctly.
11950   lt_compile=`echo "$ac_compile" | $SED \
11951   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11952   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11953   -e 's:$: $lt_compiler_flag:'`
11954   (eval echo "\"\$as_me:11954: $lt_compile\"" >&5)
11955   (eval "$lt_compile" 2>out/conftest.err)
11956   ac_status=$?
11957   cat out/conftest.err >&5
11958   echo "$as_me:11958: \$? = $ac_status" >&5
11959   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11960   then
11961     # The compiler can only warn and ignore the option if not recognized
11962     # So say no if there are warnings
11963     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11964     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11965     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11966       lt_cv_prog_compiler_c_o=yes
11967     fi
11968   fi
11969   chmod u+w . 2>&5
11970   $RM conftest*
11971   # SGI C++ compiler will create directory out/ii_files/ for
11972   # template instantiation
11973   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11974   $RM out/* && rmdir out
11975   cd ..
11976   $RM -r conftest
11977   $RM conftest*
11978
11979fi
11980{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11981$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11982
11983
11984
11985
11986hard_links="nottested"
11987if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11988  # do not overwrite the value of need_locks provided by the user
11989  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11990$as_echo_n "checking if we can lock with hard links... " >&6; }
11991  hard_links=yes
11992  $RM conftest*
11993  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11994  touch conftest.a
11995  ln conftest.a conftest.b 2>&5 || hard_links=no
11996  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11997  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11998$as_echo "$hard_links" >&6; }
11999  if test "$hard_links" = no; then
12000    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12001$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12002    need_locks=warn
12003  fi
12004else
12005  need_locks=no
12006fi
12007
12008
12009
12010
12011
12012
12013  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12014$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12015
12016  runpath_var=
12017  allow_undefined_flag=
12018  always_export_symbols=no
12019  archive_cmds=
12020  archive_expsym_cmds=
12021  compiler_needs_object=no
12022  enable_shared_with_static_runtimes=no
12023  export_dynamic_flag_spec=
12024  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12025  hardcode_automatic=no
12026  hardcode_direct=no
12027  hardcode_direct_absolute=no
12028  hardcode_libdir_flag_spec=
12029  hardcode_libdir_flag_spec_ld=
12030  hardcode_libdir_separator=
12031  hardcode_minus_L=no
12032  hardcode_shlibpath_var=unsupported
12033  inherit_rpath=no
12034  link_all_deplibs=unknown
12035  module_cmds=
12036  module_expsym_cmds=
12037  old_archive_from_new_cmds=
12038  old_archive_from_expsyms_cmds=
12039  thread_safe_flag_spec=
12040  whole_archive_flag_spec=
12041  # include_expsyms should be a list of space-separated symbols to be *always*
12042  # included in the symbol list
12043  include_expsyms=
12044  # exclude_expsyms can be an extended regexp of symbols to exclude
12045  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12046  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12047  # as well as any symbol that contains `d'.
12048  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12049  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12050  # platforms (ab)use it in PIC code, but their linkers get confused if
12051  # the symbol is explicitly referenced.  Since portable code cannot
12052  # rely on this symbol name, it's probably fine to never include it in
12053  # preloaded symbol tables.
12054  # Exclude shared library initialization/finalization symbols.
12055  extract_expsyms_cmds=
12056
12057  case $host_os in
12058  cygwin* | mingw* | pw32* | cegcc*)
12059    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12060    # When not using gcc, we currently assume that we are using
12061    # Microsoft Visual C++.
12062    if test "$GCC" != yes; then
12063      with_gnu_ld=no
12064    fi
12065    ;;
12066  interix*)
12067    # we just hope/assume this is gcc and not c89 (= MSVC++)
12068    with_gnu_ld=yes
12069    ;;
12070  openbsd*)
12071    with_gnu_ld=no
12072    ;;
12073  esac
12074
12075  ld_shlibs=yes
12076  if test "$with_gnu_ld" = yes; then
12077    # If archive_cmds runs LD, not CC, wlarc should be empty
12078    wlarc='${wl}'
12079
12080    # Set some defaults for GNU ld with shared library support. These
12081    # are reset later if shared libraries are not supported. Putting them
12082    # here allows them to be overridden if necessary.
12083    runpath_var=LD_RUN_PATH
12084    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12085    export_dynamic_flag_spec='${wl}--export-dynamic'
12086    # ancient GNU ld didn't support --whole-archive et. al.
12087    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12088      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12089    else
12090      whole_archive_flag_spec=
12091    fi
12092    supports_anon_versioning=no
12093    case `$LD -v 2>&1` in
12094      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12095      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12096      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12097      *\ 2.11.*) ;; # other 2.11 versions
12098      *) supports_anon_versioning=yes ;;
12099    esac
12100
12101    # See if GNU ld supports shared libraries.
12102    case $host_os in
12103    aix[3-9]*)
12104      # On AIX/PPC, the GNU linker is very broken
12105      if test "$host_cpu" != ia64; then
12106	ld_shlibs=no
12107	cat <<_LT_EOF 1>&2
12108
12109*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12110*** to be unable to reliably create shared libraries on AIX.
12111*** Therefore, libtool is disabling shared libraries support.  If you
12112*** really care for shared libraries, you may want to modify your PATH
12113*** so that a non-GNU linker is found, and then restart.
12114
12115_LT_EOF
12116      fi
12117      ;;
12118
12119    amigaos*)
12120      case $host_cpu in
12121      powerpc)
12122            # see comment about AmigaOS4 .so support
12123            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12124            archive_expsym_cmds=''
12125        ;;
12126      m68k)
12127            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)'
12128            hardcode_libdir_flag_spec='-L$libdir'
12129            hardcode_minus_L=yes
12130        ;;
12131      esac
12132      ;;
12133
12134    beos*)
12135      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12136	allow_undefined_flag=unsupported
12137	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12138	# support --undefined.  This deserves some investigation.  FIXME
12139	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12140      else
12141	ld_shlibs=no
12142      fi
12143      ;;
12144
12145    cygwin* | mingw* | pw32* | cegcc*)
12146      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12147      # as there is no search path for DLLs.
12148      hardcode_libdir_flag_spec='-L$libdir'
12149      allow_undefined_flag=unsupported
12150      always_export_symbols=no
12151      enable_shared_with_static_runtimes=yes
12152      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12153
12154      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12155        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12156	# If the export-symbols file already is a .def file (1st line
12157	# is EXPORTS), use it as is; otherwise, prepend...
12158	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12159	  cp $export_symbols $output_objdir/$soname.def;
12160	else
12161	  echo EXPORTS > $output_objdir/$soname.def;
12162	  cat $export_symbols >> $output_objdir/$soname.def;
12163	fi~
12164	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12165      else
12166	ld_shlibs=no
12167      fi
12168      ;;
12169
12170    interix[3-9]*)
12171      hardcode_direct=no
12172      hardcode_shlibpath_var=no
12173      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12174      export_dynamic_flag_spec='${wl}-E'
12175      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12176      # Instead, shared libraries are loaded at an image base (0x10000000 by
12177      # default) and relocated if they conflict, which is a slow very memory
12178      # consuming and fragmenting process.  To avoid this, we pick a random,
12179      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12180      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12181      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12182      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'
12183      ;;
12184
12185    gnu* | linux* | tpf* | k*bsd*-gnu)
12186      tmp_diet=no
12187      if test "$host_os" = linux-dietlibc; then
12188	case $cc_basename in
12189	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12190	esac
12191      fi
12192      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12193	 && test "$tmp_diet" = no
12194      then
12195	tmp_addflag=
12196	tmp_sharedflag='-shared'
12197	case $cc_basename,$host_cpu in
12198        pgcc*)				# Portland Group C compiler
12199	  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'
12200	  tmp_addflag=' $pic_flag'
12201	  ;;
12202	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
12203	  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'
12204	  tmp_addflag=' $pic_flag -Mnomain' ;;
12205	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12206	  tmp_addflag=' -i_dynamic' ;;
12207	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12208	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12209	ifc* | ifort*)			# Intel Fortran compiler
12210	  tmp_addflag=' -nofor_main' ;;
12211	lf95*)				# Lahey Fortran 8.1
12212	  whole_archive_flag_spec=
12213	  tmp_sharedflag='--shared' ;;
12214	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
12215	  tmp_sharedflag='-qmkshrobj'
12216	  tmp_addflag= ;;
12217	esac
12218	case `$CC -V 2>&1 | sed 5q` in
12219	*Sun\ C*)			# Sun C 5.9
12220	  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'
12221	  compiler_needs_object=yes
12222	  tmp_sharedflag='-G' ;;
12223	*Sun\ F*)			# Sun Fortran 8.3
12224	  tmp_sharedflag='-G' ;;
12225	esac
12226	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12227
12228        if test "x$supports_anon_versioning" = xyes; then
12229          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12230	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12231	    echo "local: *; };" >> $output_objdir/$libname.ver~
12232	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12233        fi
12234
12235	case $cc_basename in
12236	xlf*)
12237	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12238	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12239	  hardcode_libdir_flag_spec=
12240	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
12241	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12242	  if test "x$supports_anon_versioning" = xyes; then
12243	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12244	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12245	      echo "local: *; };" >> $output_objdir/$libname.ver~
12246	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12247	  fi
12248	  ;;
12249	esac
12250      else
12251        ld_shlibs=no
12252      fi
12253      ;;
12254
12255    netbsd*)
12256      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12257	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12258	wlarc=
12259      else
12260	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12261	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12262      fi
12263      ;;
12264
12265    solaris*)
12266      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12267	ld_shlibs=no
12268	cat <<_LT_EOF 1>&2
12269
12270*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12271*** create shared libraries on Solaris systems.  Therefore, libtool
12272*** is disabling shared libraries support.  We urge you to upgrade GNU
12273*** binutils to release 2.9.1 or newer.  Another option is to modify
12274*** your PATH or compiler configuration so that the native linker is
12275*** used, and then restart.
12276
12277_LT_EOF
12278      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12279	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12281      else
12282	ld_shlibs=no
12283      fi
12284      ;;
12285
12286    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12287      case `$LD -v 2>&1` in
12288        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12289	ld_shlibs=no
12290	cat <<_LT_EOF 1>&2
12291
12292*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12293*** reliably create shared libraries on SCO systems.  Therefore, libtool
12294*** is disabling shared libraries support.  We urge you to upgrade GNU
12295*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12296*** your PATH or compiler configuration so that the native linker is
12297*** used, and then restart.
12298
12299_LT_EOF
12300	;;
12301	*)
12302	  # For security reasons, it is highly recommended that you always
12303	  # use absolute paths for naming shared libraries, and exclude the
12304	  # DT_RUNPATH tag from executables and libraries.  But doing so
12305	  # requires that you compile everything twice, which is a pain.
12306	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12307	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12308	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12309	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12310	  else
12311	    ld_shlibs=no
12312	  fi
12313	;;
12314      esac
12315      ;;
12316
12317    sunos4*)
12318      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12319      wlarc=
12320      hardcode_direct=yes
12321      hardcode_shlibpath_var=no
12322      ;;
12323
12324    *)
12325      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12326	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12327	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12328      else
12329	ld_shlibs=no
12330      fi
12331      ;;
12332    esac
12333
12334    if test "$ld_shlibs" = no; then
12335      runpath_var=
12336      hardcode_libdir_flag_spec=
12337      export_dynamic_flag_spec=
12338      whole_archive_flag_spec=
12339    fi
12340  else
12341    # PORTME fill in a description of your system's linker (not GNU ld)
12342    case $host_os in
12343    aix3*)
12344      allow_undefined_flag=unsupported
12345      always_export_symbols=yes
12346      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'
12347      # Note: this linker hardcodes the directories in LIBPATH if there
12348      # are no directories specified by -L.
12349      hardcode_minus_L=yes
12350      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12351	# Neither direct hardcoding nor static linking is supported with a
12352	# broken collect2.
12353	hardcode_direct=unsupported
12354      fi
12355      ;;
12356
12357    aix[4-9]*)
12358      if test "$host_cpu" = ia64; then
12359	# On IA64, the linker does run time linking by default, so we don't
12360	# have to do anything special.
12361	aix_use_runtimelinking=no
12362	exp_sym_flag='-Bexport'
12363	no_entry_flag=""
12364      else
12365	# If we're using GNU nm, then we don't want the "-C" option.
12366	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12367	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12368	  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'
12369	else
12370	  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'
12371	fi
12372	aix_use_runtimelinking=no
12373
12374	# Test if we are trying to use run time linking or normal
12375	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12376	# need to do runtime linking.
12377	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12378	  for ld_flag in $LDFLAGS; do
12379	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12380	    aix_use_runtimelinking=yes
12381	    break
12382	  fi
12383	  done
12384	  ;;
12385	esac
12386
12387	exp_sym_flag='-bexport'
12388	no_entry_flag='-bnoentry'
12389      fi
12390
12391      # When large executables or shared objects are built, AIX ld can
12392      # have problems creating the table of contents.  If linking a library
12393      # or program results in "error TOC overflow" add -mminimal-toc to
12394      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12395      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12396
12397      archive_cmds=''
12398      hardcode_direct=yes
12399      hardcode_direct_absolute=yes
12400      hardcode_libdir_separator=':'
12401      link_all_deplibs=yes
12402      file_list_spec='${wl}-f,'
12403
12404      if test "$GCC" = yes; then
12405	case $host_os in aix4.[012]|aix4.[012].*)
12406	# We only want to do this on AIX 4.2 and lower, the check
12407	# below for broken collect2 doesn't work under 4.3+
12408	  collect2name=`${CC} -print-prog-name=collect2`
12409	  if test -f "$collect2name" &&
12410	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12411	  then
12412	  # We have reworked collect2
12413	  :
12414	  else
12415	  # We have old collect2
12416	  hardcode_direct=unsupported
12417	  # It fails to find uninstalled libraries when the uninstalled
12418	  # path is not listed in the libpath.  Setting hardcode_minus_L
12419	  # to unsupported forces relinking
12420	  hardcode_minus_L=yes
12421	  hardcode_libdir_flag_spec='-L$libdir'
12422	  hardcode_libdir_separator=
12423	  fi
12424	  ;;
12425	esac
12426	shared_flag='-shared'
12427	if test "$aix_use_runtimelinking" = yes; then
12428	  shared_flag="$shared_flag "'${wl}-G'
12429	fi
12430      else
12431	# not using gcc
12432	if test "$host_cpu" = ia64; then
12433	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12434	# chokes on -Wl,-G. The following line is correct:
12435	  shared_flag='-G'
12436	else
12437	  if test "$aix_use_runtimelinking" = yes; then
12438	    shared_flag='${wl}-G'
12439	  else
12440	    shared_flag='${wl}-bM:SRE'
12441	  fi
12442	fi
12443      fi
12444
12445      export_dynamic_flag_spec='${wl}-bexpall'
12446      # It seems that -bexpall does not export symbols beginning with
12447      # underscore (_), so it is better to generate a list of symbols to export.
12448      always_export_symbols=yes
12449      if test "$aix_use_runtimelinking" = yes; then
12450	# Warning - without using the other runtime loading flags (-brtl),
12451	# -berok will link without error, but may produce a broken library.
12452	allow_undefined_flag='-berok'
12453        # Determine the default libpath from the value encoded in an
12454        # empty executable.
12455        cat >conftest.$ac_ext <<_ACEOF
12456/* confdefs.h.  */
12457_ACEOF
12458cat confdefs.h >>conftest.$ac_ext
12459cat >>conftest.$ac_ext <<_ACEOF
12460/* end confdefs.h.  */
12461
12462int
12463main ()
12464{
12465
12466  ;
12467  return 0;
12468}
12469_ACEOF
12470rm -f conftest.$ac_objext conftest$ac_exeext
12471if { (ac_try="$ac_link"
12472case "(($ac_try" in
12473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474  *) ac_try_echo=$ac_try;;
12475esac
12476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12477$as_echo "$ac_try_echo") >&5
12478  (eval "$ac_link") 2>conftest.er1
12479  ac_status=$?
12480  grep -v '^ *+' conftest.er1 >conftest.err
12481  rm -f conftest.er1
12482  cat conftest.err >&5
12483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484  (exit $ac_status); } && {
12485	 test -z "$ac_c_werror_flag" ||
12486	 test ! -s conftest.err
12487       } && test -s conftest$ac_exeext && {
12488	 test "$cross_compiling" = yes ||
12489	 $as_test_x conftest$ac_exeext
12490       }; then
12491
12492lt_aix_libpath_sed='
12493    /Import File Strings/,/^$/ {
12494	/^0/ {
12495	    s/^0  *\(.*\)$/\1/
12496	    p
12497	}
12498    }'
12499aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12500# Check for a 64-bit object if we didn't find anything.
12501if test -z "$aix_libpath"; then
12502  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12503fi
12504else
12505  $as_echo "$as_me: failed program was:" >&5
12506sed 's/^/| /' conftest.$ac_ext >&5
12507
12508
12509fi
12510
12511rm -rf conftest.dSYM
12512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12513      conftest$ac_exeext conftest.$ac_ext
12514if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12515
12516        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12517        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"
12518      else
12519	if test "$host_cpu" = ia64; then
12520	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12521	  allow_undefined_flag="-z nodefs"
12522	  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"
12523	else
12524	 # Determine the default libpath from the value encoded in an
12525	 # empty executable.
12526	 cat >conftest.$ac_ext <<_ACEOF
12527/* confdefs.h.  */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h.  */
12532
12533int
12534main ()
12535{
12536
12537  ;
12538  return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext conftest$ac_exeext
12542if { (ac_try="$ac_link"
12543case "(($ac_try" in
12544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545  *) ac_try_echo=$ac_try;;
12546esac
12547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12548$as_echo "$ac_try_echo") >&5
12549  (eval "$ac_link") 2>conftest.er1
12550  ac_status=$?
12551  grep -v '^ *+' conftest.er1 >conftest.err
12552  rm -f conftest.er1
12553  cat conftest.err >&5
12554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555  (exit $ac_status); } && {
12556	 test -z "$ac_c_werror_flag" ||
12557	 test ! -s conftest.err
12558       } && test -s conftest$ac_exeext && {
12559	 test "$cross_compiling" = yes ||
12560	 $as_test_x conftest$ac_exeext
12561       }; then
12562
12563lt_aix_libpath_sed='
12564    /Import File Strings/,/^$/ {
12565	/^0/ {
12566	    s/^0  *\(.*\)$/\1/
12567	    p
12568	}
12569    }'
12570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12571# Check for a 64-bit object if we didn't find anything.
12572if test -z "$aix_libpath"; then
12573  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12574fi
12575else
12576  $as_echo "$as_me: failed program was:" >&5
12577sed 's/^/| /' conftest.$ac_ext >&5
12578
12579
12580fi
12581
12582rm -rf conftest.dSYM
12583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12584      conftest$ac_exeext conftest.$ac_ext
12585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12586
12587	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12588	  # Warning - without using the other run time loading flags,
12589	  # -berok will link without error, but may produce a broken library.
12590	  no_undefined_flag=' ${wl}-bernotok'
12591	  allow_undefined_flag=' ${wl}-berok'
12592	  # Exported symbols can be pulled into shared objects from archives
12593	  whole_archive_flag_spec='$convenience'
12594	  archive_cmds_need_lc=yes
12595	  # This is similar to how AIX traditionally builds its shared libraries.
12596	  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'
12597	fi
12598      fi
12599      ;;
12600
12601    amigaos*)
12602      case $host_cpu in
12603      powerpc)
12604            # see comment about AmigaOS4 .so support
12605            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12606            archive_expsym_cmds=''
12607        ;;
12608      m68k)
12609            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)'
12610            hardcode_libdir_flag_spec='-L$libdir'
12611            hardcode_minus_L=yes
12612        ;;
12613      esac
12614      ;;
12615
12616    bsdi[45]*)
12617      export_dynamic_flag_spec=-rdynamic
12618      ;;
12619
12620    cygwin* | mingw* | pw32* | cegcc*)
12621      # When not using gcc, we currently assume that we are using
12622      # Microsoft Visual C++.
12623      # hardcode_libdir_flag_spec is actually meaningless, as there is
12624      # no search path for DLLs.
12625      hardcode_libdir_flag_spec=' '
12626      allow_undefined_flag=unsupported
12627      # Tell ltmain to make .lib files, not .a files.
12628      libext=lib
12629      # Tell ltmain to make .dll files, not .so files.
12630      shrext_cmds=".dll"
12631      # FIXME: Setting linknames here is a bad hack.
12632      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12633      # The linker will automatically build a .lib file if we build a DLL.
12634      old_archive_from_new_cmds='true'
12635      # FIXME: Should let the user specify the lib program.
12636      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12637      fix_srcfile_path='`cygpath -w "$srcfile"`'
12638      enable_shared_with_static_runtimes=yes
12639      ;;
12640
12641    darwin* | rhapsody*)
12642
12643
12644  archive_cmds_need_lc=no
12645  hardcode_direct=no
12646  hardcode_automatic=yes
12647  hardcode_shlibpath_var=unsupported
12648  whole_archive_flag_spec=''
12649  link_all_deplibs=yes
12650  allow_undefined_flag="$_lt_dar_allow_undefined"
12651  case $cc_basename in
12652     ifort*) _lt_dar_can_shared=yes ;;
12653     *) _lt_dar_can_shared=$GCC ;;
12654  esac
12655  if test "$_lt_dar_can_shared" = "yes"; then
12656    output_verbose_link_cmd=echo
12657    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12658    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12659    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}"
12660    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}"
12661
12662  else
12663  ld_shlibs=no
12664  fi
12665
12666      ;;
12667
12668    dgux*)
12669      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12670      hardcode_libdir_flag_spec='-L$libdir'
12671      hardcode_shlibpath_var=no
12672      ;;
12673
12674    freebsd1*)
12675      ld_shlibs=no
12676      ;;
12677
12678    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12679    # support.  Future versions do this automatically, but an explicit c++rt0.o
12680    # does not break anything, and helps significantly (at the cost of a little
12681    # extra space).
12682    freebsd2.2*)
12683      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12684      hardcode_libdir_flag_spec='-R$libdir'
12685      hardcode_direct=yes
12686      hardcode_shlibpath_var=no
12687      ;;
12688
12689    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12690    freebsd2*)
12691      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12692      hardcode_direct=yes
12693      hardcode_minus_L=yes
12694      hardcode_shlibpath_var=no
12695      ;;
12696
12697    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12698    freebsd* | dragonfly*)
12699      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12700      hardcode_libdir_flag_spec='-R$libdir'
12701      hardcode_direct=yes
12702      hardcode_shlibpath_var=no
12703      ;;
12704
12705    hpux9*)
12706      if test "$GCC" = yes; then
12707	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'
12708      else
12709	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'
12710      fi
12711      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12712      hardcode_libdir_separator=:
12713      hardcode_direct=yes
12714
12715      # hardcode_minus_L: Not really in the search PATH,
12716      # but as the default location of the library.
12717      hardcode_minus_L=yes
12718      export_dynamic_flag_spec='${wl}-E'
12719      ;;
12720
12721    hpux10*)
12722      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12723	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12724      else
12725	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12726      fi
12727      if test "$with_gnu_ld" = no; then
12728	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12729	hardcode_libdir_flag_spec_ld='+b $libdir'
12730	hardcode_libdir_separator=:
12731	hardcode_direct=yes
12732	hardcode_direct_absolute=yes
12733	export_dynamic_flag_spec='${wl}-E'
12734	# hardcode_minus_L: Not really in the search PATH,
12735	# but as the default location of the library.
12736	hardcode_minus_L=yes
12737      fi
12738      ;;
12739
12740    hpux11*)
12741      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12742	case $host_cpu in
12743	hppa*64*)
12744	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12745	  ;;
12746	ia64*)
12747	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12748	  ;;
12749	*)
12750	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12751	  ;;
12752	esac
12753      else
12754	case $host_cpu in
12755	hppa*64*)
12756	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12757	  ;;
12758	ia64*)
12759	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12760	  ;;
12761	*)
12762	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12763	  ;;
12764	esac
12765      fi
12766      if test "$with_gnu_ld" = no; then
12767	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12768	hardcode_libdir_separator=:
12769
12770	case $host_cpu in
12771	hppa*64*|ia64*)
12772	  hardcode_direct=no
12773	  hardcode_shlibpath_var=no
12774	  ;;
12775	*)
12776	  hardcode_direct=yes
12777	  hardcode_direct_absolute=yes
12778	  export_dynamic_flag_spec='${wl}-E'
12779
12780	  # hardcode_minus_L: Not really in the search PATH,
12781	  # but as the default location of the library.
12782	  hardcode_minus_L=yes
12783	  ;;
12784	esac
12785      fi
12786      ;;
12787
12788    irix5* | irix6* | nonstopux*)
12789      if test "$GCC" = yes; then
12790	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'
12791	# Try to use the -exported_symbol ld option, if it does not
12792	# work, assume that -exports_file does not work either and
12793	# implicitly export all symbols.
12794        save_LDFLAGS="$LDFLAGS"
12795        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12796        cat >conftest.$ac_ext <<_ACEOF
12797int foo(void) {}
12798_ACEOF
12799rm -f conftest.$ac_objext conftest$ac_exeext
12800if { (ac_try="$ac_link"
12801case "(($ac_try" in
12802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803  *) ac_try_echo=$ac_try;;
12804esac
12805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12806$as_echo "$ac_try_echo") >&5
12807  (eval "$ac_link") 2>conftest.er1
12808  ac_status=$?
12809  grep -v '^ *+' conftest.er1 >conftest.err
12810  rm -f conftest.er1
12811  cat conftest.err >&5
12812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813  (exit $ac_status); } && {
12814	 test -z "$ac_c_werror_flag" ||
12815	 test ! -s conftest.err
12816       } && test -s conftest$ac_exeext && {
12817	 test "$cross_compiling" = yes ||
12818	 $as_test_x conftest$ac_exeext
12819       }; then
12820  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'
12821
12822else
12823  $as_echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826
12827fi
12828
12829rm -rf conftest.dSYM
12830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12831      conftest$ac_exeext conftest.$ac_ext
12832        LDFLAGS="$save_LDFLAGS"
12833      else
12834	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'
12835	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'
12836      fi
12837      archive_cmds_need_lc='no'
12838      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12839      hardcode_libdir_separator=:
12840      inherit_rpath=yes
12841      link_all_deplibs=yes
12842      ;;
12843
12844    netbsd*)
12845      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12846	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12847      else
12848	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12849      fi
12850      hardcode_libdir_flag_spec='-R$libdir'
12851      hardcode_direct=yes
12852      hardcode_shlibpath_var=no
12853      ;;
12854
12855    newsos6)
12856      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857      hardcode_direct=yes
12858      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12859      hardcode_libdir_separator=:
12860      hardcode_shlibpath_var=no
12861      ;;
12862
12863    *nto* | *qnx*)
12864      ;;
12865
12866    openbsd*)
12867      if test -f /usr/libexec/ld.so; then
12868	hardcode_direct=yes
12869	hardcode_shlibpath_var=no
12870	hardcode_direct_absolute=yes
12871	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12872	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12873	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12874	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12875	  export_dynamic_flag_spec='${wl}-E'
12876	else
12877	  case $host_os in
12878	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12879	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12880	     hardcode_libdir_flag_spec='-R$libdir'
12881	     ;;
12882	   *)
12883	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12884	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12885	     ;;
12886	  esac
12887	fi
12888      else
12889	ld_shlibs=no
12890      fi
12891      ;;
12892
12893    os2*)
12894      hardcode_libdir_flag_spec='-L$libdir'
12895      hardcode_minus_L=yes
12896      allow_undefined_flag=unsupported
12897      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'
12898      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12899      ;;
12900
12901    osf3*)
12902      if test "$GCC" = yes; then
12903	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12904	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'
12905      else
12906	allow_undefined_flag=' -expect_unresolved \*'
12907	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'
12908      fi
12909      archive_cmds_need_lc='no'
12910      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12911      hardcode_libdir_separator=:
12912      ;;
12913
12914    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12915      if test "$GCC" = yes; then
12916	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12917	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'
12918	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12919      else
12920	allow_undefined_flag=' -expect_unresolved \*'
12921	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'
12922	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~
12923	$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'
12924
12925	# Both c and cxx compiler support -rpath directly
12926	hardcode_libdir_flag_spec='-rpath $libdir'
12927      fi
12928      archive_cmds_need_lc='no'
12929      hardcode_libdir_separator=:
12930      ;;
12931
12932    solaris*)
12933      no_undefined_flag=' -z defs'
12934      if test "$GCC" = yes; then
12935	wlarc='${wl}'
12936	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12937	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12938	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12939      else
12940	case `$CC -V 2>&1` in
12941	*"Compilers 5.0"*)
12942	  wlarc=''
12943	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12944	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12945	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12946	  ;;
12947	*)
12948	  wlarc='${wl}'
12949	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12950	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12951	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12952	  ;;
12953	esac
12954      fi
12955      hardcode_libdir_flag_spec='-R$libdir'
12956      hardcode_shlibpath_var=no
12957      case $host_os in
12958      solaris2.[0-5] | solaris2.[0-5].*) ;;
12959      *)
12960	# The compiler driver will combine and reorder linker options,
12961	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12962	# but is careful enough not to reorder.
12963	# Supported since Solaris 2.6 (maybe 2.5.1?)
12964	if test "$GCC" = yes; then
12965	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12966	else
12967	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12968	fi
12969	;;
12970      esac
12971      link_all_deplibs=yes
12972      ;;
12973
12974    sunos4*)
12975      if test "x$host_vendor" = xsequent; then
12976	# Use $CC to link under sequent, because it throws in some extra .o
12977	# files that make .init and .fini sections work.
12978	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12979      else
12980	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12981      fi
12982      hardcode_libdir_flag_spec='-L$libdir'
12983      hardcode_direct=yes
12984      hardcode_minus_L=yes
12985      hardcode_shlibpath_var=no
12986      ;;
12987
12988    sysv4)
12989      case $host_vendor in
12990	sni)
12991	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12992	  hardcode_direct=yes # is this really true???
12993	;;
12994	siemens)
12995	  ## LD is ld it makes a PLAMLIB
12996	  ## CC just makes a GrossModule.
12997	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12998	  reload_cmds='$CC -r -o $output$reload_objs'
12999	  hardcode_direct=no
13000        ;;
13001	motorola)
13002	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13003	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13004	;;
13005      esac
13006      runpath_var='LD_RUN_PATH'
13007      hardcode_shlibpath_var=no
13008      ;;
13009
13010    sysv4.3*)
13011      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13012      hardcode_shlibpath_var=no
13013      export_dynamic_flag_spec='-Bexport'
13014      ;;
13015
13016    sysv4*MP*)
13017      if test -d /usr/nec; then
13018	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13019	hardcode_shlibpath_var=no
13020	runpath_var=LD_RUN_PATH
13021	hardcode_runpath_var=yes
13022	ld_shlibs=yes
13023      fi
13024      ;;
13025
13026    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13027      no_undefined_flag='${wl}-z,text'
13028      archive_cmds_need_lc=no
13029      hardcode_shlibpath_var=no
13030      runpath_var='LD_RUN_PATH'
13031
13032      if test "$GCC" = yes; then
13033	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13034	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13035      else
13036	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13037	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13038      fi
13039      ;;
13040
13041    sysv5* | sco3.2v5* | sco5v6*)
13042      # Note: We can NOT use -z defs as we might desire, because we do not
13043      # link with -lc, and that would cause any symbols used from libc to
13044      # always be unresolved, which means just about no library would
13045      # ever link correctly.  If we're not using GNU ld we use -z text
13046      # though, which does catch some bad symbols but isn't as heavy-handed
13047      # as -z defs.
13048      no_undefined_flag='${wl}-z,text'
13049      allow_undefined_flag='${wl}-z,nodefs'
13050      archive_cmds_need_lc=no
13051      hardcode_shlibpath_var=no
13052      hardcode_libdir_flag_spec='${wl}-R,$libdir'
13053      hardcode_libdir_separator=':'
13054      link_all_deplibs=yes
13055      export_dynamic_flag_spec='${wl}-Bexport'
13056      runpath_var='LD_RUN_PATH'
13057
13058      if test "$GCC" = yes; then
13059	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13060	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13061      else
13062	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13063	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13064      fi
13065      ;;
13066
13067    uts4*)
13068      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13069      hardcode_libdir_flag_spec='-L$libdir'
13070      hardcode_shlibpath_var=no
13071      ;;
13072
13073    *)
13074      ld_shlibs=no
13075      ;;
13076    esac
13077
13078    if test x$host_vendor = xsni; then
13079      case $host in
13080      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13081	export_dynamic_flag_spec='${wl}-Blargedynsym'
13082	;;
13083      esac
13084    fi
13085  fi
13086
13087{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13088$as_echo "$ld_shlibs" >&6; }
13089test "$ld_shlibs" = no && can_build_shared=no
13090
13091with_gnu_ld=$with_gnu_ld
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107#
13108# Do we need to explicitly link libc?
13109#
13110case "x$archive_cmds_need_lc" in
13111x|xyes)
13112  # Assume -lc should be added
13113  archive_cmds_need_lc=yes
13114
13115  if test "$enable_shared" = yes && test "$GCC" = yes; then
13116    case $archive_cmds in
13117    *'~'*)
13118      # FIXME: we may have to deal with multi-command sequences.
13119      ;;
13120    '$CC '*)
13121      # Test whether the compiler implicitly links with -lc since on some
13122      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13123      # to ld, don't add -lc before -lgcc.
13124      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13125$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13126      $RM conftest*
13127      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13128
13129      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13130  (eval $ac_compile) 2>&5
13131  ac_status=$?
13132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133  (exit $ac_status); } 2>conftest.err; then
13134        soname=conftest
13135        lib=conftest
13136        libobjs=conftest.$ac_objext
13137        deplibs=
13138        wl=$lt_prog_compiler_wl
13139	pic_flag=$lt_prog_compiler_pic
13140        compiler_flags=-v
13141        linker_flags=-v
13142        verstring=
13143        output_objdir=.
13144        libname=conftest
13145        lt_save_allow_undefined_flag=$allow_undefined_flag
13146        allow_undefined_flag=
13147        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13148  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13149  ac_status=$?
13150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151  (exit $ac_status); }
13152        then
13153	  archive_cmds_need_lc=no
13154        else
13155	  archive_cmds_need_lc=yes
13156        fi
13157        allow_undefined_flag=$lt_save_allow_undefined_flag
13158      else
13159        cat conftest.err 1>&5
13160      fi
13161      $RM conftest*
13162      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13163$as_echo "$archive_cmds_need_lc" >&6; }
13164      ;;
13165    esac
13166  fi
13167  ;;
13168esac
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
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
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13327$as_echo_n "checking dynamic linker characteristics... " >&6; }
13328
13329if test "$GCC" = yes; then
13330  case $host_os in
13331    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13332    *) lt_awk_arg="/^libraries:/" ;;
13333  esac
13334  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13335  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13336    # if the path contains ";" then we assume it to be the separator
13337    # otherwise default to the standard path separator (i.e. ":") - it is
13338    # assumed that no part of a normal pathname contains ";" but that should
13339    # okay in the real world where ";" in dirpaths is itself problematic.
13340    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13341  else
13342    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13343  fi
13344  # Ok, now we have the path, separated by spaces, we can step through it
13345  # and add multilib dir if necessary.
13346  lt_tmp_lt_search_path_spec=
13347  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13348  for lt_sys_path in $lt_search_path_spec; do
13349    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13350      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13351    else
13352      test -d "$lt_sys_path" && \
13353	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13354    fi
13355  done
13356  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13357BEGIN {RS=" "; FS="/|\n";} {
13358  lt_foo="";
13359  lt_count=0;
13360  for (lt_i = NF; lt_i > 0; lt_i--) {
13361    if ($lt_i != "" && $lt_i != ".") {
13362      if ($lt_i == "..") {
13363        lt_count++;
13364      } else {
13365        if (lt_count == 0) {
13366          lt_foo="/" $lt_i lt_foo;
13367        } else {
13368          lt_count--;
13369        }
13370      }
13371    }
13372  }
13373  if (lt_foo != "") { lt_freq[lt_foo]++; }
13374  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13375}'`
13376  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13377else
13378  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13379fi
13380library_names_spec=
13381libname_spec='lib$name'
13382soname_spec=
13383shrext_cmds=".so"
13384postinstall_cmds=
13385postuninstall_cmds=
13386finish_cmds=
13387finish_eval=
13388shlibpath_var=
13389shlibpath_overrides_runpath=unknown
13390version_type=none
13391dynamic_linker="$host_os ld.so"
13392sys_lib_dlsearch_path_spec="/lib /usr/lib"
13393need_lib_prefix=unknown
13394hardcode_into_libs=no
13395
13396# when you set need_version to no, make sure it does not cause -set_version
13397# flags to be left without arguments
13398need_version=unknown
13399
13400case $host_os in
13401aix3*)
13402  version_type=linux
13403  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13404  shlibpath_var=LIBPATH
13405
13406  # AIX 3 has no versioning support, so we append a major version to the name.
13407  soname_spec='${libname}${release}${shared_ext}$major'
13408  ;;
13409
13410aix[4-9]*)
13411  version_type=linux
13412  need_lib_prefix=no
13413  need_version=no
13414  hardcode_into_libs=yes
13415  if test "$host_cpu" = ia64; then
13416    # AIX 5 supports IA64
13417    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13418    shlibpath_var=LD_LIBRARY_PATH
13419  else
13420    # With GCC up to 2.95.x, collect2 would create an import file
13421    # for dependence libraries.  The import file would start with
13422    # the line `#! .'.  This would cause the generated library to
13423    # depend on `.', always an invalid library.  This was fixed in
13424    # development snapshots of GCC prior to 3.0.
13425    case $host_os in
13426      aix4 | aix4.[01] | aix4.[01].*)
13427      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13428	   echo ' yes '
13429	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13430	:
13431      else
13432	can_build_shared=no
13433      fi
13434      ;;
13435    esac
13436    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13437    # soname into executable. Probably we can add versioning support to
13438    # collect2, so additional links can be useful in future.
13439    if test "$aix_use_runtimelinking" = yes; then
13440      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13441      # instead of lib<name>.a to let people know that these are not
13442      # typical AIX shared libraries.
13443      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444    else
13445      # We preserve .a as extension for shared libraries through AIX4.2
13446      # and later when we are not doing run time linking.
13447      library_names_spec='${libname}${release}.a $libname.a'
13448      soname_spec='${libname}${release}${shared_ext}$major'
13449    fi
13450    shlibpath_var=LIBPATH
13451  fi
13452  ;;
13453
13454amigaos*)
13455  case $host_cpu in
13456  powerpc)
13457    # Since July 2007 AmigaOS4 officially supports .so libraries.
13458    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460    ;;
13461  m68k)
13462    library_names_spec='$libname.ixlibrary $libname.a'
13463    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13464    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'
13465    ;;
13466  esac
13467  ;;
13468
13469beos*)
13470  library_names_spec='${libname}${shared_ext}'
13471  dynamic_linker="$host_os ld.so"
13472  shlibpath_var=LIBRARY_PATH
13473  ;;
13474
13475bsdi[45]*)
13476  version_type=linux
13477  need_version=no
13478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13479  soname_spec='${libname}${release}${shared_ext}$major'
13480  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13481  shlibpath_var=LD_LIBRARY_PATH
13482  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13483  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13484  # the default ld.so.conf also contains /usr/contrib/lib and
13485  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13486  # libtool to hard-code these into programs
13487  ;;
13488
13489cygwin* | mingw* | pw32* | cegcc*)
13490  version_type=windows
13491  shrext_cmds=".dll"
13492  need_version=no
13493  need_lib_prefix=no
13494
13495  case $GCC,$host_os in
13496  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13497    library_names_spec='$libname.dll.a'
13498    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13499    postinstall_cmds='base_file=`basename \${file}`~
13500      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13501      dldir=$destdir/`dirname \$dlpath`~
13502      test -d \$dldir || mkdir -p \$dldir~
13503      $install_prog $dir/$dlname \$dldir/$dlname~
13504      chmod a+x \$dldir/$dlname~
13505      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13506        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13507      fi'
13508    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13509      dlpath=$dir/\$dldll~
13510       $RM \$dlpath'
13511    shlibpath_overrides_runpath=yes
13512
13513    case $host_os in
13514    cygwin*)
13515      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13516      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13517      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13518      ;;
13519    mingw* | cegcc*)
13520      # MinGW DLLs use traditional 'lib' prefix
13521      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13522      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13523      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13524        # It is most probably a Windows format PATH printed by
13525        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13526        # path with ; separators, and with drive letters. We can handle the
13527        # drive letters (cygwin fileutils understands them), so leave them,
13528        # especially as we might pass files found there to a mingw objdump,
13529        # which wouldn't understand a cygwinified path. Ahh.
13530        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13531      else
13532        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13533      fi
13534      ;;
13535    pw32*)
13536      # pw32 DLLs use 'pw' prefix rather than 'lib'
13537      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13538      ;;
13539    esac
13540    ;;
13541
13542  *)
13543    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13544    ;;
13545  esac
13546  dynamic_linker='Win32 ld.exe'
13547  # FIXME: first we should search . and the directory the executable is in
13548  shlibpath_var=PATH
13549  ;;
13550
13551darwin* | rhapsody*)
13552  dynamic_linker="$host_os dyld"
13553  version_type=darwin
13554  need_lib_prefix=no
13555  need_version=no
13556  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13557  soname_spec='${libname}${release}${major}$shared_ext'
13558  shlibpath_overrides_runpath=yes
13559  shlibpath_var=DYLD_LIBRARY_PATH
13560  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13561
13562  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13563  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13564  ;;
13565
13566dgux*)
13567  version_type=linux
13568  need_lib_prefix=no
13569  need_version=no
13570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13571  soname_spec='${libname}${release}${shared_ext}$major'
13572  shlibpath_var=LD_LIBRARY_PATH
13573  ;;
13574
13575freebsd1*)
13576  dynamic_linker=no
13577  ;;
13578
13579freebsd* | dragonfly*)
13580  # DragonFly does not have aout.  When/if they implement a new
13581  # versioning mechanism, adjust this.
13582  if test -x /usr/bin/objformat; then
13583    objformat=`/usr/bin/objformat`
13584  else
13585    case $host_os in
13586    freebsd[123]*) objformat=aout ;;
13587    *) objformat=elf ;;
13588    esac
13589  fi
13590  version_type=freebsd-$objformat
13591  case $version_type in
13592    freebsd-elf*)
13593      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13594      need_version=no
13595      need_lib_prefix=no
13596      ;;
13597    freebsd-*)
13598      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13599      need_version=yes
13600      ;;
13601  esac
13602  shlibpath_var=LD_LIBRARY_PATH
13603  case $host_os in
13604  freebsd2*)
13605    shlibpath_overrides_runpath=yes
13606    ;;
13607  freebsd3.[01]* | freebsdelf3.[01]*)
13608    shlibpath_overrides_runpath=yes
13609    hardcode_into_libs=yes
13610    ;;
13611  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13612  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13613    shlibpath_overrides_runpath=no
13614    hardcode_into_libs=yes
13615    ;;
13616  *) # from 4.6 on, and DragonFly
13617    shlibpath_overrides_runpath=yes
13618    hardcode_into_libs=yes
13619    ;;
13620  esac
13621  ;;
13622
13623gnu*)
13624  version_type=linux
13625  need_lib_prefix=no
13626  need_version=no
13627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13628  soname_spec='${libname}${release}${shared_ext}$major'
13629  shlibpath_var=LD_LIBRARY_PATH
13630  hardcode_into_libs=yes
13631  ;;
13632
13633hpux9* | hpux10* | hpux11*)
13634  # Give a soname corresponding to the major version so that dld.sl refuses to
13635  # link against other versions.
13636  version_type=sunos
13637  need_lib_prefix=no
13638  need_version=no
13639  case $host_cpu in
13640  ia64*)
13641    shrext_cmds='.so'
13642    hardcode_into_libs=yes
13643    dynamic_linker="$host_os dld.so"
13644    shlibpath_var=LD_LIBRARY_PATH
13645    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13646    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13647    soname_spec='${libname}${release}${shared_ext}$major'
13648    if test "X$HPUX_IA64_MODE" = X32; then
13649      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13650    else
13651      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13652    fi
13653    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13654    ;;
13655  hppa*64*)
13656    shrext_cmds='.sl'
13657    hardcode_into_libs=yes
13658    dynamic_linker="$host_os dld.sl"
13659    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13660    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13661    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662    soname_spec='${libname}${release}${shared_ext}$major'
13663    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13664    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13665    ;;
13666  *)
13667    shrext_cmds='.sl'
13668    dynamic_linker="$host_os dld.sl"
13669    shlibpath_var=SHLIB_PATH
13670    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13671    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672    soname_spec='${libname}${release}${shared_ext}$major'
13673    ;;
13674  esac
13675  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13676  postinstall_cmds='chmod 555 $lib'
13677  ;;
13678
13679interix[3-9]*)
13680  version_type=linux
13681  need_lib_prefix=no
13682  need_version=no
13683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13684  soname_spec='${libname}${release}${shared_ext}$major'
13685  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13686  shlibpath_var=LD_LIBRARY_PATH
13687  shlibpath_overrides_runpath=no
13688  hardcode_into_libs=yes
13689  ;;
13690
13691irix5* | irix6* | nonstopux*)
13692  case $host_os in
13693    nonstopux*) version_type=nonstopux ;;
13694    *)
13695	if test "$lt_cv_prog_gnu_ld" = yes; then
13696		version_type=linux
13697	else
13698		version_type=irix
13699	fi ;;
13700  esac
13701  need_lib_prefix=no
13702  need_version=no
13703  soname_spec='${libname}${release}${shared_ext}$major'
13704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13705  case $host_os in
13706  irix5* | nonstopux*)
13707    libsuff= shlibsuff=
13708    ;;
13709  *)
13710    case $LD in # libtool.m4 will add one of these switches to LD
13711    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13712      libsuff= shlibsuff= libmagic=32-bit;;
13713    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13714      libsuff=32 shlibsuff=N32 libmagic=N32;;
13715    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13716      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13717    *) libsuff= shlibsuff= libmagic=never-match;;
13718    esac
13719    ;;
13720  esac
13721  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13722  shlibpath_overrides_runpath=no
13723  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13724  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13725  hardcode_into_libs=yes
13726  ;;
13727
13728# No shared lib support for Linux oldld, aout, or coff.
13729linux*oldld* | linux*aout* | linux*coff*)
13730  dynamic_linker=no
13731  ;;
13732
13733# This must be Linux ELF.
13734linux* | k*bsd*-gnu)
13735  version_type=linux
13736  need_lib_prefix=no
13737  need_version=no
13738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13739  soname_spec='${libname}${release}${shared_ext}$major'
13740  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13741  shlibpath_var=LD_LIBRARY_PATH
13742  shlibpath_overrides_runpath=no
13743  # Some binutils ld are patched to set DT_RUNPATH
13744  save_LDFLAGS=$LDFLAGS
13745  save_libdir=$libdir
13746  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13747       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13748  cat >conftest.$ac_ext <<_ACEOF
13749/* confdefs.h.  */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h.  */
13754
13755int
13756main ()
13757{
13758
13759  ;
13760  return 0;
13761}
13762_ACEOF
13763rm -f conftest.$ac_objext conftest$ac_exeext
13764if { (ac_try="$ac_link"
13765case "(($ac_try" in
13766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767  *) ac_try_echo=$ac_try;;
13768esac
13769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13770$as_echo "$ac_try_echo") >&5
13771  (eval "$ac_link") 2>conftest.er1
13772  ac_status=$?
13773  grep -v '^ *+' conftest.er1 >conftest.err
13774  rm -f conftest.er1
13775  cat conftest.err >&5
13776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777  (exit $ac_status); } && {
13778	 test -z "$ac_c_werror_flag" ||
13779	 test ! -s conftest.err
13780       } && test -s conftest$ac_exeext && {
13781	 test "$cross_compiling" = yes ||
13782	 $as_test_x conftest$ac_exeext
13783       }; then
13784  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13785  shlibpath_overrides_runpath=yes
13786fi
13787
13788else
13789  $as_echo "$as_me: failed program was:" >&5
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
13792
13793fi
13794
13795rm -rf conftest.dSYM
13796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13797      conftest$ac_exeext conftest.$ac_ext
13798  LDFLAGS=$save_LDFLAGS
13799  libdir=$save_libdir
13800
13801  # This implies no fast_install, which is unacceptable.
13802  # Some rework will be needed to allow for fast_install
13803  # before this can be enabled.
13804  hardcode_into_libs=yes
13805
13806  # Append ld.so.conf contents to the search path
13807  if test -f /etc/ld.so.conf; then
13808    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' ' '`
13809    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13810  fi
13811
13812  # We used to test for /lib/ld.so.1 and disable shared libraries on
13813  # powerpc, because MkLinux only supported shared libraries with the
13814  # GNU dynamic linker.  Since this was broken with cross compilers,
13815  # most powerpc-linux boxes support dynamic linking these days and
13816  # people can always --disable-shared, the test was removed, and we
13817  # assume the GNU/Linux dynamic linker is in use.
13818  dynamic_linker='GNU/Linux ld.so'
13819  ;;
13820
13821netbsd*)
13822  version_type=sunos
13823  need_lib_prefix=no
13824  need_version=no
13825  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13826    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13827    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13828    dynamic_linker='NetBSD (a.out) ld.so'
13829  else
13830    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13831    soname_spec='${libname}${release}${shared_ext}$major'
13832    dynamic_linker='NetBSD ld.elf_so'
13833  fi
13834  shlibpath_var=LD_LIBRARY_PATH
13835  shlibpath_overrides_runpath=yes
13836  hardcode_into_libs=yes
13837  ;;
13838
13839newsos6)
13840  version_type=linux
13841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13842  shlibpath_var=LD_LIBRARY_PATH
13843  shlibpath_overrides_runpath=yes
13844  ;;
13845
13846*nto* | *qnx*)
13847  version_type=qnx
13848  need_lib_prefix=no
13849  need_version=no
13850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13851  soname_spec='${libname}${release}${shared_ext}$major'
13852  shlibpath_var=LD_LIBRARY_PATH
13853  shlibpath_overrides_runpath=no
13854  hardcode_into_libs=yes
13855  dynamic_linker='ldqnx.so'
13856  ;;
13857
13858openbsd*)
13859  version_type=sunos
13860  sys_lib_dlsearch_path_spec="/usr/lib"
13861  need_lib_prefix=no
13862  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13863  case $host_os in
13864    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13865    *)				need_version=no  ;;
13866  esac
13867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13868  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13869  shlibpath_var=LD_LIBRARY_PATH
13870  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13871    case $host_os in
13872      openbsd2.[89] | openbsd2.[89].*)
13873	shlibpath_overrides_runpath=no
13874	;;
13875      *)
13876	shlibpath_overrides_runpath=yes
13877	;;
13878      esac
13879  else
13880    shlibpath_overrides_runpath=yes
13881  fi
13882  ;;
13883
13884os2*)
13885  libname_spec='$name'
13886  shrext_cmds=".dll"
13887  need_lib_prefix=no
13888  library_names_spec='$libname${shared_ext} $libname.a'
13889  dynamic_linker='OS/2 ld.exe'
13890  shlibpath_var=LIBPATH
13891  ;;
13892
13893osf3* | osf4* | osf5*)
13894  version_type=osf
13895  need_lib_prefix=no
13896  need_version=no
13897  soname_spec='${libname}${release}${shared_ext}$major'
13898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13899  shlibpath_var=LD_LIBRARY_PATH
13900  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13901  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13902  ;;
13903
13904rdos*)
13905  dynamic_linker=no
13906  ;;
13907
13908solaris*)
13909  version_type=linux
13910  need_lib_prefix=no
13911  need_version=no
13912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913  soname_spec='${libname}${release}${shared_ext}$major'
13914  shlibpath_var=LD_LIBRARY_PATH
13915  shlibpath_overrides_runpath=yes
13916  hardcode_into_libs=yes
13917  # ldd complains unless libraries are executable
13918  postinstall_cmds='chmod +x $lib'
13919  ;;
13920
13921sunos4*)
13922  version_type=sunos
13923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13924  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13925  shlibpath_var=LD_LIBRARY_PATH
13926  shlibpath_overrides_runpath=yes
13927  if test "$with_gnu_ld" = yes; then
13928    need_lib_prefix=no
13929  fi
13930  need_version=yes
13931  ;;
13932
13933sysv4 | sysv4.3*)
13934  version_type=linux
13935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13936  soname_spec='${libname}${release}${shared_ext}$major'
13937  shlibpath_var=LD_LIBRARY_PATH
13938  case $host_vendor in
13939    sni)
13940      shlibpath_overrides_runpath=no
13941      need_lib_prefix=no
13942      runpath_var=LD_RUN_PATH
13943      ;;
13944    siemens)
13945      need_lib_prefix=no
13946      ;;
13947    motorola)
13948      need_lib_prefix=no
13949      need_version=no
13950      shlibpath_overrides_runpath=no
13951      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13952      ;;
13953  esac
13954  ;;
13955
13956sysv4*MP*)
13957  if test -d /usr/nec ;then
13958    version_type=linux
13959    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13960    soname_spec='$libname${shared_ext}.$major'
13961    shlibpath_var=LD_LIBRARY_PATH
13962  fi
13963  ;;
13964
13965sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13966  version_type=freebsd-elf
13967  need_lib_prefix=no
13968  need_version=no
13969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13970  soname_spec='${libname}${release}${shared_ext}$major'
13971  shlibpath_var=LD_LIBRARY_PATH
13972  shlibpath_overrides_runpath=yes
13973  hardcode_into_libs=yes
13974  if test "$with_gnu_ld" = yes; then
13975    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13976  else
13977    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13978    case $host_os in
13979      sco3.2v5*)
13980        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13981	;;
13982    esac
13983  fi
13984  sys_lib_dlsearch_path_spec='/usr/lib'
13985  ;;
13986
13987tpf*)
13988  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13989  version_type=linux
13990  need_lib_prefix=no
13991  need_version=no
13992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13993  shlibpath_var=LD_LIBRARY_PATH
13994  shlibpath_overrides_runpath=no
13995  hardcode_into_libs=yes
13996  ;;
13997
13998uts4*)
13999  version_type=linux
14000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001  soname_spec='${libname}${release}${shared_ext}$major'
14002  shlibpath_var=LD_LIBRARY_PATH
14003  ;;
14004
14005*)
14006  dynamic_linker=no
14007  ;;
14008esac
14009{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14010$as_echo "$dynamic_linker" >&6; }
14011test "$dynamic_linker" = no && can_build_shared=no
14012
14013variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14014if test "$GCC" = yes; then
14015  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14016fi
14017
14018if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14019  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14020fi
14021if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14022  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14023fi
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14112$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14113hardcode_action=
14114if test -n "$hardcode_libdir_flag_spec" ||
14115   test -n "$runpath_var" ||
14116   test "X$hardcode_automatic" = "Xyes" ; then
14117
14118  # We can hardcode non-existent directories.
14119  if test "$hardcode_direct" != no &&
14120     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14121     # have to relink, otherwise we might link with an installed library
14122     # when we should be linking with a yet-to-be-installed one
14123     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14124     test "$hardcode_minus_L" != no; then
14125    # Linking always hardcodes the temporary library directory.
14126    hardcode_action=relink
14127  else
14128    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14129    hardcode_action=immediate
14130  fi
14131else
14132  # We cannot hardcode anything, or else we can only hardcode existing
14133  # directories.
14134  hardcode_action=unsupported
14135fi
14136{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
14137$as_echo "$hardcode_action" >&6; }
14138
14139if test "$hardcode_action" = relink ||
14140   test "$inherit_rpath" = yes; then
14141  # Fast installation is not supported
14142  enable_fast_install=no
14143elif test "$shlibpath_overrides_runpath" = yes ||
14144     test "$enable_shared" = no; then
14145  # Fast installation is not necessary
14146  enable_fast_install=needless
14147fi
14148
14149
14150
14151
14152
14153
14154  if test "x$enable_dlopen" != xyes; then
14155  enable_dlopen=unknown
14156  enable_dlopen_self=unknown
14157  enable_dlopen_self_static=unknown
14158else
14159  lt_cv_dlopen=no
14160  lt_cv_dlopen_libs=
14161
14162  case $host_os in
14163  beos*)
14164    lt_cv_dlopen="load_add_on"
14165    lt_cv_dlopen_libs=
14166    lt_cv_dlopen_self=yes
14167    ;;
14168
14169  mingw* | pw32* | cegcc*)
14170    lt_cv_dlopen="LoadLibrary"
14171    lt_cv_dlopen_libs=
14172    ;;
14173
14174  cygwin*)
14175    lt_cv_dlopen="dlopen"
14176    lt_cv_dlopen_libs=
14177    ;;
14178
14179  darwin*)
14180  # if libdl is installed we need to link against it
14181    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14182$as_echo_n "checking for dlopen in -ldl... " >&6; }
14183if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14184  $as_echo_n "(cached) " >&6
14185else
14186  ac_check_lib_save_LIBS=$LIBS
14187LIBS="-ldl  $LIBS"
14188cat >conftest.$ac_ext <<_ACEOF
14189/* confdefs.h.  */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
14193/* end confdefs.h.  */
14194
14195/* Override any GCC internal prototype to avoid an error.
14196   Use char because int might match the return type of a GCC
14197   builtin and then its argument prototype would still apply.  */
14198#ifdef __cplusplus
14199extern "C"
14200#endif
14201char dlopen ();
14202int
14203main ()
14204{
14205return dlopen ();
14206  ;
14207  return 0;
14208}
14209_ACEOF
14210rm -f conftest.$ac_objext conftest$ac_exeext
14211if { (ac_try="$ac_link"
14212case "(($ac_try" in
14213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214  *) ac_try_echo=$ac_try;;
14215esac
14216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14217$as_echo "$ac_try_echo") >&5
14218  (eval "$ac_link") 2>conftest.er1
14219  ac_status=$?
14220  grep -v '^ *+' conftest.er1 >conftest.err
14221  rm -f conftest.er1
14222  cat conftest.err >&5
14223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224  (exit $ac_status); } && {
14225	 test -z "$ac_c_werror_flag" ||
14226	 test ! -s conftest.err
14227       } && test -s conftest$ac_exeext && {
14228	 test "$cross_compiling" = yes ||
14229	 $as_test_x conftest$ac_exeext
14230       }; then
14231  ac_cv_lib_dl_dlopen=yes
14232else
14233  $as_echo "$as_me: failed program was:" >&5
14234sed 's/^/| /' conftest.$ac_ext >&5
14235
14236	ac_cv_lib_dl_dlopen=no
14237fi
14238
14239rm -rf conftest.dSYM
14240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14241      conftest$ac_exeext conftest.$ac_ext
14242LIBS=$ac_check_lib_save_LIBS
14243fi
14244{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14245$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14246if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14247  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14248else
14249
14250    lt_cv_dlopen="dyld"
14251    lt_cv_dlopen_libs=
14252    lt_cv_dlopen_self=yes
14253
14254fi
14255
14256    ;;
14257
14258  *)
14259    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
14260$as_echo_n "checking for shl_load... " >&6; }
14261if test "${ac_cv_func_shl_load+set}" = set; then
14262  $as_echo_n "(cached) " >&6
14263else
14264  cat >conftest.$ac_ext <<_ACEOF
14265/* confdefs.h.  */
14266_ACEOF
14267cat confdefs.h >>conftest.$ac_ext
14268cat >>conftest.$ac_ext <<_ACEOF
14269/* end confdefs.h.  */
14270/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14271   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14272#define shl_load innocuous_shl_load
14273
14274/* System header to define __stub macros and hopefully few prototypes,
14275    which can conflict with char shl_load (); below.
14276    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14277    <limits.h> exists even on freestanding compilers.  */
14278
14279#ifdef __STDC__
14280# include <limits.h>
14281#else
14282# include <assert.h>
14283#endif
14284
14285#undef shl_load
14286
14287/* Override any GCC internal prototype to avoid an error.
14288   Use char because int might match the return type of a GCC
14289   builtin and then its argument prototype would still apply.  */
14290#ifdef __cplusplus
14291extern "C"
14292#endif
14293char shl_load ();
14294/* The GNU C library defines this for functions which it implements
14295    to always fail with ENOSYS.  Some functions are actually named
14296    something starting with __ and the normal name is an alias.  */
14297#if defined __stub_shl_load || defined __stub___shl_load
14298choke me
14299#endif
14300
14301int
14302main ()
14303{
14304return shl_load ();
14305  ;
14306  return 0;
14307}
14308_ACEOF
14309rm -f conftest.$ac_objext conftest$ac_exeext
14310if { (ac_try="$ac_link"
14311case "(($ac_try" in
14312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313  *) ac_try_echo=$ac_try;;
14314esac
14315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14316$as_echo "$ac_try_echo") >&5
14317  (eval "$ac_link") 2>conftest.er1
14318  ac_status=$?
14319  grep -v '^ *+' conftest.er1 >conftest.err
14320  rm -f conftest.er1
14321  cat conftest.err >&5
14322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323  (exit $ac_status); } && {
14324	 test -z "$ac_c_werror_flag" ||
14325	 test ! -s conftest.err
14326       } && test -s conftest$ac_exeext && {
14327	 test "$cross_compiling" = yes ||
14328	 $as_test_x conftest$ac_exeext
14329       }; then
14330  ac_cv_func_shl_load=yes
14331else
14332  $as_echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335	ac_cv_func_shl_load=no
14336fi
14337
14338rm -rf conftest.dSYM
14339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14340      conftest$ac_exeext conftest.$ac_ext
14341fi
14342{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14343$as_echo "$ac_cv_func_shl_load" >&6; }
14344if test "x$ac_cv_func_shl_load" = x""yes; then
14345  lt_cv_dlopen="shl_load"
14346else
14347  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14348$as_echo_n "checking for shl_load in -ldld... " >&6; }
14349if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14350  $as_echo_n "(cached) " >&6
14351else
14352  ac_check_lib_save_LIBS=$LIBS
14353LIBS="-ldld  $LIBS"
14354cat >conftest.$ac_ext <<_ACEOF
14355/* confdefs.h.  */
14356_ACEOF
14357cat confdefs.h >>conftest.$ac_ext
14358cat >>conftest.$ac_ext <<_ACEOF
14359/* end confdefs.h.  */
14360
14361/* Override any GCC internal prototype to avoid an error.
14362   Use char because int might match the return type of a GCC
14363   builtin and then its argument prototype would still apply.  */
14364#ifdef __cplusplus
14365extern "C"
14366#endif
14367char shl_load ();
14368int
14369main ()
14370{
14371return shl_load ();
14372  ;
14373  return 0;
14374}
14375_ACEOF
14376rm -f conftest.$ac_objext conftest$ac_exeext
14377if { (ac_try="$ac_link"
14378case "(($ac_try" in
14379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380  *) ac_try_echo=$ac_try;;
14381esac
14382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14383$as_echo "$ac_try_echo") >&5
14384  (eval "$ac_link") 2>conftest.er1
14385  ac_status=$?
14386  grep -v '^ *+' conftest.er1 >conftest.err
14387  rm -f conftest.er1
14388  cat conftest.err >&5
14389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390  (exit $ac_status); } && {
14391	 test -z "$ac_c_werror_flag" ||
14392	 test ! -s conftest.err
14393       } && test -s conftest$ac_exeext && {
14394	 test "$cross_compiling" = yes ||
14395	 $as_test_x conftest$ac_exeext
14396       }; then
14397  ac_cv_lib_dld_shl_load=yes
14398else
14399  $as_echo "$as_me: failed program was:" >&5
14400sed 's/^/| /' conftest.$ac_ext >&5
14401
14402	ac_cv_lib_dld_shl_load=no
14403fi
14404
14405rm -rf conftest.dSYM
14406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14407      conftest$ac_exeext conftest.$ac_ext
14408LIBS=$ac_check_lib_save_LIBS
14409fi
14410{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14411$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14412if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
14413  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14414else
14415  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
14416$as_echo_n "checking for dlopen... " >&6; }
14417if test "${ac_cv_func_dlopen+set}" = set; then
14418  $as_echo_n "(cached) " >&6
14419else
14420  cat >conftest.$ac_ext <<_ACEOF
14421/* confdefs.h.  */
14422_ACEOF
14423cat confdefs.h >>conftest.$ac_ext
14424cat >>conftest.$ac_ext <<_ACEOF
14425/* end confdefs.h.  */
14426/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14427   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14428#define dlopen innocuous_dlopen
14429
14430/* System header to define __stub macros and hopefully few prototypes,
14431    which can conflict with char dlopen (); below.
14432    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14433    <limits.h> exists even on freestanding compilers.  */
14434
14435#ifdef __STDC__
14436# include <limits.h>
14437#else
14438# include <assert.h>
14439#endif
14440
14441#undef dlopen
14442
14443/* Override any GCC internal prototype to avoid an error.
14444   Use char because int might match the return type of a GCC
14445   builtin and then its argument prototype would still apply.  */
14446#ifdef __cplusplus
14447extern "C"
14448#endif
14449char dlopen ();
14450/* The GNU C library defines this for functions which it implements
14451    to always fail with ENOSYS.  Some functions are actually named
14452    something starting with __ and the normal name is an alias.  */
14453#if defined __stub_dlopen || defined __stub___dlopen
14454choke me
14455#endif
14456
14457int
14458main ()
14459{
14460return dlopen ();
14461  ;
14462  return 0;
14463}
14464_ACEOF
14465rm -f conftest.$ac_objext conftest$ac_exeext
14466if { (ac_try="$ac_link"
14467case "(($ac_try" in
14468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469  *) ac_try_echo=$ac_try;;
14470esac
14471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14472$as_echo "$ac_try_echo") >&5
14473  (eval "$ac_link") 2>conftest.er1
14474  ac_status=$?
14475  grep -v '^ *+' conftest.er1 >conftest.err
14476  rm -f conftest.er1
14477  cat conftest.err >&5
14478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479  (exit $ac_status); } && {
14480	 test -z "$ac_c_werror_flag" ||
14481	 test ! -s conftest.err
14482       } && test -s conftest$ac_exeext && {
14483	 test "$cross_compiling" = yes ||
14484	 $as_test_x conftest$ac_exeext
14485       }; then
14486  ac_cv_func_dlopen=yes
14487else
14488  $as_echo "$as_me: failed program was:" >&5
14489sed 's/^/| /' conftest.$ac_ext >&5
14490
14491	ac_cv_func_dlopen=no
14492fi
14493
14494rm -rf conftest.dSYM
14495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14496      conftest$ac_exeext conftest.$ac_ext
14497fi
14498{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14499$as_echo "$ac_cv_func_dlopen" >&6; }
14500if test "x$ac_cv_func_dlopen" = x""yes; then
14501  lt_cv_dlopen="dlopen"
14502else
14503  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14504$as_echo_n "checking for dlopen in -ldl... " >&6; }
14505if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14506  $as_echo_n "(cached) " >&6
14507else
14508  ac_check_lib_save_LIBS=$LIBS
14509LIBS="-ldl  $LIBS"
14510cat >conftest.$ac_ext <<_ACEOF
14511/* confdefs.h.  */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h.  */
14516
14517/* Override any GCC internal prototype to avoid an error.
14518   Use char because int might match the return type of a GCC
14519   builtin and then its argument prototype would still apply.  */
14520#ifdef __cplusplus
14521extern "C"
14522#endif
14523char dlopen ();
14524int
14525main ()
14526{
14527return dlopen ();
14528  ;
14529  return 0;
14530}
14531_ACEOF
14532rm -f conftest.$ac_objext conftest$ac_exeext
14533if { (ac_try="$ac_link"
14534case "(($ac_try" in
14535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536  *) ac_try_echo=$ac_try;;
14537esac
14538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14539$as_echo "$ac_try_echo") >&5
14540  (eval "$ac_link") 2>conftest.er1
14541  ac_status=$?
14542  grep -v '^ *+' conftest.er1 >conftest.err
14543  rm -f conftest.er1
14544  cat conftest.err >&5
14545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546  (exit $ac_status); } && {
14547	 test -z "$ac_c_werror_flag" ||
14548	 test ! -s conftest.err
14549       } && test -s conftest$ac_exeext && {
14550	 test "$cross_compiling" = yes ||
14551	 $as_test_x conftest$ac_exeext
14552       }; then
14553  ac_cv_lib_dl_dlopen=yes
14554else
14555  $as_echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
14558	ac_cv_lib_dl_dlopen=no
14559fi
14560
14561rm -rf conftest.dSYM
14562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14563      conftest$ac_exeext conftest.$ac_ext
14564LIBS=$ac_check_lib_save_LIBS
14565fi
14566{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14567$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14568if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14569  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14570else
14571  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14572$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14573if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14574  $as_echo_n "(cached) " >&6
14575else
14576  ac_check_lib_save_LIBS=$LIBS
14577LIBS="-lsvld  $LIBS"
14578cat >conftest.$ac_ext <<_ACEOF
14579/* confdefs.h.  */
14580_ACEOF
14581cat confdefs.h >>conftest.$ac_ext
14582cat >>conftest.$ac_ext <<_ACEOF
14583/* end confdefs.h.  */
14584
14585/* Override any GCC internal prototype to avoid an error.
14586   Use char because int might match the return type of a GCC
14587   builtin and then its argument prototype would still apply.  */
14588#ifdef __cplusplus
14589extern "C"
14590#endif
14591char dlopen ();
14592int
14593main ()
14594{
14595return dlopen ();
14596  ;
14597  return 0;
14598}
14599_ACEOF
14600rm -f conftest.$ac_objext conftest$ac_exeext
14601if { (ac_try="$ac_link"
14602case "(($ac_try" in
14603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604  *) ac_try_echo=$ac_try;;
14605esac
14606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14607$as_echo "$ac_try_echo") >&5
14608  (eval "$ac_link") 2>conftest.er1
14609  ac_status=$?
14610  grep -v '^ *+' conftest.er1 >conftest.err
14611  rm -f conftest.er1
14612  cat conftest.err >&5
14613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614  (exit $ac_status); } && {
14615	 test -z "$ac_c_werror_flag" ||
14616	 test ! -s conftest.err
14617       } && test -s conftest$ac_exeext && {
14618	 test "$cross_compiling" = yes ||
14619	 $as_test_x conftest$ac_exeext
14620       }; then
14621  ac_cv_lib_svld_dlopen=yes
14622else
14623  $as_echo "$as_me: failed program was:" >&5
14624sed 's/^/| /' conftest.$ac_ext >&5
14625
14626	ac_cv_lib_svld_dlopen=no
14627fi
14628
14629rm -rf conftest.dSYM
14630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14631      conftest$ac_exeext conftest.$ac_ext
14632LIBS=$ac_check_lib_save_LIBS
14633fi
14634{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14635$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14636if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
14637  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14638else
14639  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14640$as_echo_n "checking for dld_link in -ldld... " >&6; }
14641if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14642  $as_echo_n "(cached) " >&6
14643else
14644  ac_check_lib_save_LIBS=$LIBS
14645LIBS="-ldld  $LIBS"
14646cat >conftest.$ac_ext <<_ACEOF
14647/* confdefs.h.  */
14648_ACEOF
14649cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h.  */
14652
14653/* Override any GCC internal prototype to avoid an error.
14654   Use char because int might match the return type of a GCC
14655   builtin and then its argument prototype would still apply.  */
14656#ifdef __cplusplus
14657extern "C"
14658#endif
14659char dld_link ();
14660int
14661main ()
14662{
14663return dld_link ();
14664  ;
14665  return 0;
14666}
14667_ACEOF
14668rm -f conftest.$ac_objext conftest$ac_exeext
14669if { (ac_try="$ac_link"
14670case "(($ac_try" in
14671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672  *) ac_try_echo=$ac_try;;
14673esac
14674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14675$as_echo "$ac_try_echo") >&5
14676  (eval "$ac_link") 2>conftest.er1
14677  ac_status=$?
14678  grep -v '^ *+' conftest.er1 >conftest.err
14679  rm -f conftest.er1
14680  cat conftest.err >&5
14681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682  (exit $ac_status); } && {
14683	 test -z "$ac_c_werror_flag" ||
14684	 test ! -s conftest.err
14685       } && test -s conftest$ac_exeext && {
14686	 test "$cross_compiling" = yes ||
14687	 $as_test_x conftest$ac_exeext
14688       }; then
14689  ac_cv_lib_dld_dld_link=yes
14690else
14691  $as_echo "$as_me: failed program was:" >&5
14692sed 's/^/| /' conftest.$ac_ext >&5
14693
14694	ac_cv_lib_dld_dld_link=no
14695fi
14696
14697rm -rf conftest.dSYM
14698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14699      conftest$ac_exeext conftest.$ac_ext
14700LIBS=$ac_check_lib_save_LIBS
14701fi
14702{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14703$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14704if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14705  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14706fi
14707
14708
14709fi
14710
14711
14712fi
14713
14714
14715fi
14716
14717
14718fi
14719
14720
14721fi
14722
14723    ;;
14724  esac
14725
14726  if test "x$lt_cv_dlopen" != xno; then
14727    enable_dlopen=yes
14728  else
14729    enable_dlopen=no
14730  fi
14731
14732  case $lt_cv_dlopen in
14733  dlopen)
14734    save_CPPFLAGS="$CPPFLAGS"
14735    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14736
14737    save_LDFLAGS="$LDFLAGS"
14738    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14739
14740    save_LIBS="$LIBS"
14741    LIBS="$lt_cv_dlopen_libs $LIBS"
14742
14743    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14744$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14745if test "${lt_cv_dlopen_self+set}" = set; then
14746  $as_echo_n "(cached) " >&6
14747else
14748  	  if test "$cross_compiling" = yes; then :
14749  lt_cv_dlopen_self=cross
14750else
14751  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14752  lt_status=$lt_dlunknown
14753  cat > conftest.$ac_ext <<_LT_EOF
14754#line 14754 "configure"
14755#include "confdefs.h"
14756
14757#if HAVE_DLFCN_H
14758#include <dlfcn.h>
14759#endif
14760
14761#include <stdio.h>
14762
14763#ifdef RTLD_GLOBAL
14764#  define LT_DLGLOBAL		RTLD_GLOBAL
14765#else
14766#  ifdef DL_GLOBAL
14767#    define LT_DLGLOBAL		DL_GLOBAL
14768#  else
14769#    define LT_DLGLOBAL		0
14770#  endif
14771#endif
14772
14773/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14774   find out it does not work in some platform. */
14775#ifndef LT_DLLAZY_OR_NOW
14776#  ifdef RTLD_LAZY
14777#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14778#  else
14779#    ifdef DL_LAZY
14780#      define LT_DLLAZY_OR_NOW		DL_LAZY
14781#    else
14782#      ifdef RTLD_NOW
14783#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14784#      else
14785#        ifdef DL_NOW
14786#          define LT_DLLAZY_OR_NOW	DL_NOW
14787#        else
14788#          define LT_DLLAZY_OR_NOW	0
14789#        endif
14790#      endif
14791#    endif
14792#  endif
14793#endif
14794
14795void fnord() { int i=42;}
14796int main ()
14797{
14798  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14799  int status = $lt_dlunknown;
14800
14801  if (self)
14802    {
14803      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14804      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14805      /* dlclose (self); */
14806    }
14807  else
14808    puts (dlerror ());
14809
14810  return status;
14811}
14812_LT_EOF
14813  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14814  (eval $ac_link) 2>&5
14815  ac_status=$?
14816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14818    (./conftest; exit; ) >&5 2>/dev/null
14819    lt_status=$?
14820    case x$lt_status in
14821      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14822      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14823      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14824    esac
14825  else :
14826    # compilation failed
14827    lt_cv_dlopen_self=no
14828  fi
14829fi
14830rm -fr conftest*
14831
14832
14833fi
14834{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14835$as_echo "$lt_cv_dlopen_self" >&6; }
14836
14837    if test "x$lt_cv_dlopen_self" = xyes; then
14838      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14839      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14840$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14841if test "${lt_cv_dlopen_self_static+set}" = set; then
14842  $as_echo_n "(cached) " >&6
14843else
14844  	  if test "$cross_compiling" = yes; then :
14845  lt_cv_dlopen_self_static=cross
14846else
14847  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14848  lt_status=$lt_dlunknown
14849  cat > conftest.$ac_ext <<_LT_EOF
14850#line 14850 "configure"
14851#include "confdefs.h"
14852
14853#if HAVE_DLFCN_H
14854#include <dlfcn.h>
14855#endif
14856
14857#include <stdio.h>
14858
14859#ifdef RTLD_GLOBAL
14860#  define LT_DLGLOBAL		RTLD_GLOBAL
14861#else
14862#  ifdef DL_GLOBAL
14863#    define LT_DLGLOBAL		DL_GLOBAL
14864#  else
14865#    define LT_DLGLOBAL		0
14866#  endif
14867#endif
14868
14869/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14870   find out it does not work in some platform. */
14871#ifndef LT_DLLAZY_OR_NOW
14872#  ifdef RTLD_LAZY
14873#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14874#  else
14875#    ifdef DL_LAZY
14876#      define LT_DLLAZY_OR_NOW		DL_LAZY
14877#    else
14878#      ifdef RTLD_NOW
14879#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14880#      else
14881#        ifdef DL_NOW
14882#          define LT_DLLAZY_OR_NOW	DL_NOW
14883#        else
14884#          define LT_DLLAZY_OR_NOW	0
14885#        endif
14886#      endif
14887#    endif
14888#  endif
14889#endif
14890
14891void fnord() { int i=42;}
14892int main ()
14893{
14894  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14895  int status = $lt_dlunknown;
14896
14897  if (self)
14898    {
14899      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14900      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14901      /* dlclose (self); */
14902    }
14903  else
14904    puts (dlerror ());
14905
14906  return status;
14907}
14908_LT_EOF
14909  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910  (eval $ac_link) 2>&5
14911  ac_status=$?
14912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14914    (./conftest; exit; ) >&5 2>/dev/null
14915    lt_status=$?
14916    case x$lt_status in
14917      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14918      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14919      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14920    esac
14921  else :
14922    # compilation failed
14923    lt_cv_dlopen_self_static=no
14924  fi
14925fi
14926rm -fr conftest*
14927
14928
14929fi
14930{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14931$as_echo "$lt_cv_dlopen_self_static" >&6; }
14932    fi
14933
14934    CPPFLAGS="$save_CPPFLAGS"
14935    LDFLAGS="$save_LDFLAGS"
14936    LIBS="$save_LIBS"
14937    ;;
14938  esac
14939
14940  case $lt_cv_dlopen_self in
14941  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14942  *) enable_dlopen_self=unknown ;;
14943  esac
14944
14945  case $lt_cv_dlopen_self_static in
14946  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14947  *) enable_dlopen_self_static=unknown ;;
14948  esac
14949fi
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967striplib=
14968old_striplib=
14969{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14970$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14971if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14972  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14973  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14974  { $as_echo "$as_me:$LINENO: result: yes" >&5
14975$as_echo "yes" >&6; }
14976else
14977# FIXME - insert some real tests, host_os isn't really good enough
14978  case $host_os in
14979  darwin*)
14980    if test -n "$STRIP" ; then
14981      striplib="$STRIP -x"
14982      old_striplib="$STRIP -S"
14983      { $as_echo "$as_me:$LINENO: result: yes" >&5
14984$as_echo "yes" >&6; }
14985    else
14986      { $as_echo "$as_me:$LINENO: result: no" >&5
14987$as_echo "no" >&6; }
14988    fi
14989    ;;
14990  *)
14991    { $as_echo "$as_me:$LINENO: result: no" >&5
14992$as_echo "no" >&6; }
14993    ;;
14994  esac
14995fi
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008  # Report which library types will actually be built
15009  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15010$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15011  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15012$as_echo "$can_build_shared" >&6; }
15013
15014  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15015$as_echo_n "checking whether to build shared libraries... " >&6; }
15016  test "$can_build_shared" = "no" && enable_shared=no
15017
15018  # On AIX, shared libraries and static libraries use the same namespace, and
15019  # are all built from PIC.
15020  case $host_os in
15021  aix3*)
15022    test "$enable_shared" = yes && enable_static=no
15023    if test -n "$RANLIB"; then
15024      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15025      postinstall_cmds='$RANLIB $lib'
15026    fi
15027    ;;
15028
15029  aix[4-9]*)
15030    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15031      test "$enable_shared" = yes && enable_static=no
15032    fi
15033    ;;
15034  esac
15035  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15036$as_echo "$enable_shared" >&6; }
15037
15038  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15039$as_echo_n "checking whether to build static libraries... " >&6; }
15040  # Make sure either enable_shared or enable_static is yes.
15041  test "$enable_shared" = yes || enable_static=yes
15042  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15043$as_echo "$enable_static" >&6; }
15044
15045
15046
15047
15048fi
15049ac_ext=c
15050ac_cpp='$CPP $CPPFLAGS'
15051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15053ac_compiler_gnu=$ac_cv_c_compiler_gnu
15054
15055CC="$lt_save_CC"
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069        ac_config_commands="$ac_config_commands libtool"
15070
15071
15072
15073
15074# Only expand once:
15075
15076
15077
15078
15079
15080if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15081	if test -n "$ac_tool_prefix"; then
15082  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15083set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15084{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15085$as_echo_n "checking for $ac_word... " >&6; }
15086if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15087  $as_echo_n "(cached) " >&6
15088else
15089  case $PKG_CONFIG in
15090  [\\/]* | ?:[\\/]*)
15091  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15092  ;;
15093  *)
15094  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15095for as_dir in $PATH
15096do
15097  IFS=$as_save_IFS
15098  test -z "$as_dir" && as_dir=.
15099  for ac_exec_ext in '' $ac_executable_extensions; do
15100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15101    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15102    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15103    break 2
15104  fi
15105done
15106done
15107IFS=$as_save_IFS
15108
15109  ;;
15110esac
15111fi
15112PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15113if test -n "$PKG_CONFIG"; then
15114  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15115$as_echo "$PKG_CONFIG" >&6; }
15116else
15117  { $as_echo "$as_me:$LINENO: result: no" >&5
15118$as_echo "no" >&6; }
15119fi
15120
15121
15122fi
15123if test -z "$ac_cv_path_PKG_CONFIG"; then
15124  ac_pt_PKG_CONFIG=$PKG_CONFIG
15125  # Extract the first word of "pkg-config", so it can be a program name with args.
15126set dummy pkg-config; ac_word=$2
15127{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15128$as_echo_n "checking for $ac_word... " >&6; }
15129if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
15130  $as_echo_n "(cached) " >&6
15131else
15132  case $ac_pt_PKG_CONFIG in
15133  [\\/]* | ?:[\\/]*)
15134  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15135  ;;
15136  *)
15137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15138for as_dir in $PATH
15139do
15140  IFS=$as_save_IFS
15141  test -z "$as_dir" && as_dir=.
15142  for ac_exec_ext in '' $ac_executable_extensions; do
15143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15144    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15145    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15146    break 2
15147  fi
15148done
15149done
15150IFS=$as_save_IFS
15151
15152  ;;
15153esac
15154fi
15155ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15156if test -n "$ac_pt_PKG_CONFIG"; then
15157  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
15158$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15159else
15160  { $as_echo "$as_me:$LINENO: result: no" >&5
15161$as_echo "no" >&6; }
15162fi
15163
15164  if test "x$ac_pt_PKG_CONFIG" = x; then
15165    PKG_CONFIG=""
15166  else
15167    case $cross_compiling:$ac_tool_warned in
15168yes:)
15169{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15171ac_tool_warned=yes ;;
15172esac
15173    PKG_CONFIG=$ac_pt_PKG_CONFIG
15174  fi
15175else
15176  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15177fi
15178
15179fi
15180if test -n "$PKG_CONFIG"; then
15181	_pkg_min_version=0.9.0
15182	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
15183$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15184	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15185		{ $as_echo "$as_me:$LINENO: result: yes" >&5
15186$as_echo "yes" >&6; }
15187	else
15188		{ $as_echo "$as_me:$LINENO: result: no" >&5
15189$as_echo "no" >&6; }
15190		PKG_CONFIG=""
15191	fi
15192
15193fi
15194
15195pkg_failed=no
15196{ $as_echo "$as_me:$LINENO: checking for GTHREAD" >&5
15197$as_echo_n "checking for GTHREAD... " >&6; }
15198
15199if test -n "$GTHREAD_CFLAGS"; then
15200    pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
15201 elif test -n "$PKG_CONFIG"; then
15202    if test -n "$PKG_CONFIG" && \
15203    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.6\"") >&5
15204  ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.6") 2>&5
15205  ac_status=$?
15206  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207  (exit $ac_status); }; then
15208  pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.6" 2>/dev/null`
15209else
15210  pkg_failed=yes
15211fi
15212 else
15213    pkg_failed=untried
15214fi
15215if test -n "$GTHREAD_LIBS"; then
15216    pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
15217 elif test -n "$PKG_CONFIG"; then
15218    if test -n "$PKG_CONFIG" && \
15219    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.6\"") >&5
15220  ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.6") 2>&5
15221  ac_status=$?
15222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223  (exit $ac_status); }; then
15224  pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.6" 2>/dev/null`
15225else
15226  pkg_failed=yes
15227fi
15228 else
15229    pkg_failed=untried
15230fi
15231
15232
15233
15234if test $pkg_failed = yes; then
15235
15236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15237        _pkg_short_errors_supported=yes
15238else
15239        _pkg_short_errors_supported=no
15240fi
15241        if test $_pkg_short_errors_supported = yes; then
15242	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0 >= 2.6" 2>&1`
15243        else
15244	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0 >= 2.6" 2>&1`
15245        fi
15246	# Put the nasty error message in config.log where it belongs
15247	echo "$GTHREAD_PKG_ERRORS" >&5
15248
15249	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gthread-2.0 >= 2.6) were not met:
15250
15251$GTHREAD_PKG_ERRORS
15252
15253Consider adjusting the PKG_CONFIG_PATH environment variable if you
15254installed software in a non-standard prefix.
15255
15256Alternatively, you may set the environment variables GTHREAD_CFLAGS
15257and GTHREAD_LIBS to avoid the need to call pkg-config.
15258See the pkg-config man page for more details.
15259" >&5
15260$as_echo "$as_me: error: Package requirements (gthread-2.0 >= 2.6) were not met:
15261
15262$GTHREAD_PKG_ERRORS
15263
15264Consider adjusting the PKG_CONFIG_PATH environment variable if you
15265installed software in a non-standard prefix.
15266
15267Alternatively, you may set the environment variables GTHREAD_CFLAGS
15268and GTHREAD_LIBS to avoid the need to call pkg-config.
15269See the pkg-config man page for more details.
15270" >&2;}
15271   { (exit 1); exit 1; }; }
15272elif test $pkg_failed = untried; then
15273	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15275{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
15276is in your PATH or set the PKG_CONFIG environment variable to the full
15277path to pkg-config.
15278
15279Alternatively, you may set the environment variables GTHREAD_CFLAGS
15280and GTHREAD_LIBS to avoid the need to call pkg-config.
15281See the pkg-config man page for more details.
15282
15283To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15284See \`config.log' for more details." >&5
15285$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
15286is in your PATH or set the PKG_CONFIG environment variable to the full
15287path to pkg-config.
15288
15289Alternatively, you may set the environment variables GTHREAD_CFLAGS
15290and GTHREAD_LIBS to avoid the need to call pkg-config.
15291See the pkg-config man page for more details.
15292
15293To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15294See \`config.log' for more details." >&2;}
15295   { (exit 1); exit 1; }; }; }
15296else
15297	GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
15298	GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
15299        { $as_echo "$as_me:$LINENO: result: yes" >&5
15300$as_echo "yes" >&6; }
15301	:
15302fi
15303
15304
15305
15306
15307pkg_failed=no
15308{ $as_echo "$as_me:$LINENO: checking for CURL" >&5
15309$as_echo_n "checking for CURL... " >&6; }
15310
15311if test -n "$CURL_CFLAGS"; then
15312    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
15313 elif test -n "$PKG_CONFIG"; then
15314    if test -n "$PKG_CONFIG" && \
15315    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7\"") >&5
15316  ($PKG_CONFIG --exists --print-errors "libcurl >= 7") 2>&5
15317  ac_status=$?
15318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319  (exit $ac_status); }; then
15320  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7" 2>/dev/null`
15321else
15322  pkg_failed=yes
15323fi
15324 else
15325    pkg_failed=untried
15326fi
15327if test -n "$CURL_LIBS"; then
15328    pkg_cv_CURL_LIBS="$CURL_LIBS"
15329 elif test -n "$PKG_CONFIG"; then
15330    if test -n "$PKG_CONFIG" && \
15331    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7\"") >&5
15332  ($PKG_CONFIG --exists --print-errors "libcurl >= 7") 2>&5
15333  ac_status=$?
15334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335  (exit $ac_status); }; then
15336  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7" 2>/dev/null`
15337else
15338  pkg_failed=yes
15339fi
15340 else
15341    pkg_failed=untried
15342fi
15343
15344
15345
15346if test $pkg_failed = yes; then
15347
15348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15349        _pkg_short_errors_supported=yes
15350else
15351        _pkg_short_errors_supported=no
15352fi
15353        if test $_pkg_short_errors_supported = yes; then
15354	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl >= 7" 2>&1`
15355        else
15356	        CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl >= 7" 2>&1`
15357        fi
15358	# Put the nasty error message in config.log where it belongs
15359	echo "$CURL_PKG_ERRORS" >&5
15360
15361	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libcurl >= 7) were not met:
15362
15363$CURL_PKG_ERRORS
15364
15365Consider adjusting the PKG_CONFIG_PATH environment variable if you
15366installed software in a non-standard prefix.
15367
15368Alternatively, you may set the environment variables CURL_CFLAGS
15369and CURL_LIBS to avoid the need to call pkg-config.
15370See the pkg-config man page for more details.
15371" >&5
15372$as_echo "$as_me: error: Package requirements (libcurl >= 7) were not met:
15373
15374$CURL_PKG_ERRORS
15375
15376Consider adjusting the PKG_CONFIG_PATH environment variable if you
15377installed software in a non-standard prefix.
15378
15379Alternatively, you may set the environment variables CURL_CFLAGS
15380and CURL_LIBS to avoid the need to call pkg-config.
15381See the pkg-config man page for more details.
15382" >&2;}
15383   { (exit 1); exit 1; }; }
15384elif test $pkg_failed = untried; then
15385	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15387{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
15388is in your PATH or set the PKG_CONFIG environment variable to the full
15389path to pkg-config.
15390
15391Alternatively, you may set the environment variables CURL_CFLAGS
15392and CURL_LIBS to avoid the need to call pkg-config.
15393See the pkg-config man page for more details.
15394
15395To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15396See \`config.log' for more details." >&5
15397$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
15398is in your PATH or set the PKG_CONFIG environment variable to the full
15399path to pkg-config.
15400
15401Alternatively, you may set the environment variables CURL_CFLAGS
15402and CURL_LIBS to avoid the need to call pkg-config.
15403See the pkg-config man page for more details.
15404
15405To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15406See \`config.log' for more details." >&2;}
15407   { (exit 1); exit 1; }; }; }
15408else
15409	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
15410	CURL_LIBS=$pkg_cv_CURL_LIBS
15411        { $as_echo "$as_me:$LINENO: result: yes" >&5
15412$as_echo "yes" >&6; }
15413	:
15414fi
15415
15416
15417
15418
15419pkg_failed=no
15420{ $as_echo "$as_me:$LINENO: checking for LIBXML" >&5
15421$as_echo_n "checking for LIBXML... " >&6; }
15422
15423if test -n "$LIBXML_CFLAGS"; then
15424    pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
15425 elif test -n "$PKG_CONFIG"; then
15426    if test -n "$PKG_CONFIG" && \
15427    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\"") >&5
15428  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15429  ac_status=$?
15430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431  (exit $ac_status); }; then
15432  pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
15433else
15434  pkg_failed=yes
15435fi
15436 else
15437    pkg_failed=untried
15438fi
15439if test -n "$LIBXML_LIBS"; then
15440    pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
15441 elif test -n "$PKG_CONFIG"; then
15442    if test -n "$PKG_CONFIG" && \
15443    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\"") >&5
15444  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15445  ac_status=$?
15446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447  (exit $ac_status); }; then
15448  pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
15449else
15450  pkg_failed=yes
15451fi
15452 else
15453    pkg_failed=untried
15454fi
15455
15456
15457
15458if test $pkg_failed = yes; then
15459
15460if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15461        _pkg_short_errors_supported=yes
15462else
15463        _pkg_short_errors_supported=no
15464fi
15465        if test $_pkg_short_errors_supported = yes; then
15466	        LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= 2.6" 2>&1`
15467        else
15468	        LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= 2.6" 2>&1`
15469        fi
15470	# Put the nasty error message in config.log where it belongs
15471	echo "$LIBXML_PKG_ERRORS" >&5
15472
15473	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libxml-2.0 >= 2.6) were not met:
15474
15475$LIBXML_PKG_ERRORS
15476
15477Consider adjusting the PKG_CONFIG_PATH environment variable if you
15478installed software in a non-standard prefix.
15479
15480Alternatively, you may set the environment variables LIBXML_CFLAGS
15481and LIBXML_LIBS to avoid the need to call pkg-config.
15482See the pkg-config man page for more details.
15483" >&5
15484$as_echo "$as_me: error: Package requirements (libxml-2.0 >= 2.6) were not met:
15485
15486$LIBXML_PKG_ERRORS
15487
15488Consider adjusting the PKG_CONFIG_PATH environment variable if you
15489installed software in a non-standard prefix.
15490
15491Alternatively, you may set the environment variables LIBXML_CFLAGS
15492and LIBXML_LIBS to avoid the need to call pkg-config.
15493See the pkg-config man page for more details.
15494" >&2;}
15495   { (exit 1); exit 1; }; }
15496elif test $pkg_failed = untried; then
15497	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15499{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
15500is in your PATH or set the PKG_CONFIG environment variable to the full
15501path to pkg-config.
15502
15503Alternatively, you may set the environment variables LIBXML_CFLAGS
15504and LIBXML_LIBS to avoid the need to call pkg-config.
15505See the pkg-config man page for more details.
15506
15507To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15508See \`config.log' for more details." >&5
15509$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
15510is in your PATH or set the PKG_CONFIG environment variable to the full
15511path to pkg-config.
15512
15513Alternatively, you may set the environment variables LIBXML_CFLAGS
15514and LIBXML_LIBS to avoid the need to call pkg-config.
15515See the pkg-config man page for more details.
15516
15517To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15518See \`config.log' for more details." >&2;}
15519   { (exit 1); exit 1; }; }; }
15520else
15521	LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
15522	LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
15523        { $as_echo "$as_me:$LINENO: result: yes" >&5
15524$as_echo "yes" >&6; }
15525	:
15526fi
15527
15528
15529
15530
15531pkg_failed=no
15532{ $as_echo "$as_me:$LINENO: checking for GTK" >&5
15533$as_echo_n "checking for GTK... " >&6; }
15534
15535if test -n "$GTK_CFLAGS"; then
15536    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15537 elif test -n "$PKG_CONFIG"; then
15538    if test -n "$PKG_CONFIG" && \
15539    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10 glib-2.0 >= 2.10\"") >&5
15540  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10 glib-2.0 >= 2.10") 2>&5
15541  ac_status=$?
15542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543  (exit $ac_status); }; then
15544  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.10 glib-2.0 >= 2.10" 2>/dev/null`
15545else
15546  pkg_failed=yes
15547fi
15548 else
15549    pkg_failed=untried
15550fi
15551if test -n "$GTK_LIBS"; then
15552    pkg_cv_GTK_LIBS="$GTK_LIBS"
15553 elif test -n "$PKG_CONFIG"; then
15554    if test -n "$PKG_CONFIG" && \
15555    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10 glib-2.0 >= 2.10\"") >&5
15556  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10 glib-2.0 >= 2.10") 2>&5
15557  ac_status=$?
15558  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559  (exit $ac_status); }; then
15560  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.10 glib-2.0 >= 2.10" 2>/dev/null`
15561else
15562  pkg_failed=yes
15563fi
15564 else
15565    pkg_failed=untried
15566fi
15567
15568
15569
15570if test $pkg_failed = yes; then
15571
15572if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15573        _pkg_short_errors_supported=yes
15574else
15575        _pkg_short_errors_supported=no
15576fi
15577        if test $_pkg_short_errors_supported = yes; then
15578	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.10 glib-2.0 >= 2.10" 2>&1`
15579        else
15580	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.10 glib-2.0 >= 2.10" 2>&1`
15581        fi
15582	# Put the nasty error message in config.log where it belongs
15583	echo "$GTK_PKG_ERRORS" >&5
15584
15585	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.10 glib-2.0 >= 2.10) were not met:
15586
15587$GTK_PKG_ERRORS
15588
15589Consider adjusting the PKG_CONFIG_PATH environment variable if you
15590installed software in a non-standard prefix.
15591
15592Alternatively, you may set the environment variables GTK_CFLAGS
15593and GTK_LIBS to avoid the need to call pkg-config.
15594See the pkg-config man page for more details.
15595" >&5
15596$as_echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.10 glib-2.0 >= 2.10) were not met:
15597
15598$GTK_PKG_ERRORS
15599
15600Consider adjusting the PKG_CONFIG_PATH environment variable if you
15601installed software in a non-standard prefix.
15602
15603Alternatively, you may set the environment variables GTK_CFLAGS
15604and GTK_LIBS to avoid the need to call pkg-config.
15605See the pkg-config man page for more details.
15606" >&2;}
15607   { (exit 1); exit 1; }; }
15608elif test $pkg_failed = untried; then
15609	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15611{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
15612is in your PATH or set the PKG_CONFIG environment variable to the full
15613path to pkg-config.
15614
15615Alternatively, you may set the environment variables GTK_CFLAGS
15616and GTK_LIBS to avoid the need to call pkg-config.
15617See the pkg-config man page for more details.
15618
15619To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15620See \`config.log' for more details." >&5
15621$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
15622is in your PATH or set the PKG_CONFIG environment variable to the full
15623path to pkg-config.
15624
15625Alternatively, you may set the environment variables GTK_CFLAGS
15626and GTK_LIBS to avoid the need to call pkg-config.
15627See the pkg-config man page for more details.
15628
15629To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15630See \`config.log' for more details." >&2;}
15631   { (exit 1); exit 1; }; }; }
15632else
15633	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15634	GTK_LIBS=$pkg_cv_GTK_LIBS
15635        { $as_echo "$as_me:$LINENO: result: yes" >&5
15636$as_echo "yes" >&6; }
15637	:
15638fi
15639
15640
15641
15642ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in pixmaps/Makefile"
15643
15644cat >confcache <<\_ACEOF
15645# This file is a shell script that caches the results of configure
15646# tests run on this system so they can be shared between configure
15647# scripts and configure runs, see configure's option --config-cache.
15648# It is not useful on other systems.  If it contains results you don't
15649# want to keep, you may remove or edit it.
15650#
15651# config.status only pays attention to the cache file if you give it
15652# the --recheck option to rerun configure.
15653#
15654# `ac_cv_env_foo' variables (set or unset) will be overridden when
15655# loading this file, other *unset* `ac_cv_foo' will be assigned the
15656# following values.
15657
15658_ACEOF
15659
15660# The following way of writing the cache mishandles newlines in values,
15661# but we know of no workaround that is simple, portable, and efficient.
15662# So, we kill variables containing newlines.
15663# Ultrix sh set writes to stderr and can't be redirected directly,
15664# and sets the high bit in the cache file unless we assign to the vars.
15665(
15666  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15667    eval ac_val=\$$ac_var
15668    case $ac_val in #(
15669    *${as_nl}*)
15670      case $ac_var in #(
15671      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15672$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15673      esac
15674      case $ac_var in #(
15675      _ | IFS | as_nl) ;; #(
15676      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15677      *) $as_unset $ac_var ;;
15678      esac ;;
15679    esac
15680  done
15681
15682  (set) 2>&1 |
15683    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15684    *${as_nl}ac_space=\ *)
15685      # `set' does not quote correctly, so add quotes (double-quote
15686      # substitution turns \\\\ into \\, and sed turns \\ into \).
15687      sed -n \
15688	"s/'/'\\\\''/g;
15689	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15690      ;; #(
15691    *)
15692      # `set' quotes correctly as required by POSIX, so do not add quotes.
15693      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15694      ;;
15695    esac |
15696    sort
15697) |
15698  sed '
15699     /^ac_cv_env_/b end
15700     t clear
15701     :clear
15702     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15703     t end
15704     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15705     :end' >>confcache
15706if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15707  if test -w "$cache_file"; then
15708    test "x$cache_file" != "x/dev/null" &&
15709      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15710$as_echo "$as_me: updating cache $cache_file" >&6;}
15711    cat confcache >$cache_file
15712  else
15713    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15714$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15715  fi
15716fi
15717rm -f confcache
15718
15719test "x$prefix" = xNONE && prefix=$ac_default_prefix
15720# Let make expand exec_prefix.
15721test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15722
15723DEFS=-DHAVE_CONFIG_H
15724
15725ac_libobjs=
15726ac_ltlibobjs=
15727for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15728  # 1. Remove the extension, and $U if already installed.
15729  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15730  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15731  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15732  #    will be set to the directory where LIBOBJS objects are built.
15733  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15734  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15735done
15736LIBOBJS=$ac_libobjs
15737
15738LTLIBOBJS=$ac_ltlibobjs
15739
15740
15741if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15742  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15743Usually this means the macro was only invoked conditionally." >&5
15744$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15745Usually this means the macro was only invoked conditionally." >&2;}
15746   { (exit 1); exit 1; }; }
15747fi
15748if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15749  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15750Usually this means the macro was only invoked conditionally." >&5
15751$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
15752Usually this means the macro was only invoked conditionally." >&2;}
15753   { (exit 1); exit 1; }; }
15754fi
15755if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15756  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15757Usually this means the macro was only invoked conditionally." >&5
15758$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15759Usually this means the macro was only invoked conditionally." >&2;}
15760   { (exit 1); exit 1; }; }
15761fi
15762if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15763  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15764Usually this means the macro was only invoked conditionally." >&5
15765$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15766Usually this means the macro was only invoked conditionally." >&2;}
15767   { (exit 1); exit 1; }; }
15768fi
15769if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15770  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15771Usually this means the macro was only invoked conditionally." >&5
15772$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15773Usually this means the macro was only invoked conditionally." >&2;}
15774   { (exit 1); exit 1; }; }
15775fi
15776
15777  ac_config_commands="$ac_config_commands po/stamp-it"
15778
15779
15780
15781: ${CONFIG_STATUS=./config.status}
15782ac_write_fail=0
15783ac_clean_files_save=$ac_clean_files
15784ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15785{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15786$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15787cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15788#! $SHELL
15789# Generated by $as_me.
15790# Run this file to recreate the current configuration.
15791# Compiler output produced by configure, useful for debugging
15792# configure, is in config.log if it exists.
15793
15794debug=false
15795ac_cs_recheck=false
15796ac_cs_silent=false
15797SHELL=\${CONFIG_SHELL-$SHELL}
15798_ACEOF
15799
15800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15801## --------------------- ##
15802## M4sh Initialization.  ##
15803## --------------------- ##
15804
15805# Be more Bourne compatible
15806DUALCASE=1; export DUALCASE # for MKS sh
15807if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15808  emulate sh
15809  NULLCMD=:
15810  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15811  # is contrary to our usage.  Disable this feature.
15812  alias -g '${1+"$@"}'='"$@"'
15813  setopt NO_GLOB_SUBST
15814else
15815  case `(set -o) 2>/dev/null` in
15816  *posix*) set -o posix ;;
15817esac
15818
15819fi
15820
15821
15822
15823
15824# PATH needs CR
15825# Avoid depending upon Character Ranges.
15826as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15827as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15828as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15829as_cr_digits='0123456789'
15830as_cr_alnum=$as_cr_Letters$as_cr_digits
15831
15832as_nl='
15833'
15834export as_nl
15835# Printing a long string crashes Solaris 7 /usr/bin/printf.
15836as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15837as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15838as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15839if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15840  as_echo='printf %s\n'
15841  as_echo_n='printf %s'
15842else
15843  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15844    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15845    as_echo_n='/usr/ucb/echo -n'
15846  else
15847    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15848    as_echo_n_body='eval
15849      arg=$1;
15850      case $arg in
15851      *"$as_nl"*)
15852	expr "X$arg" : "X\\(.*\\)$as_nl";
15853	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15854      esac;
15855      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15856    '
15857    export as_echo_n_body
15858    as_echo_n='sh -c $as_echo_n_body as_echo'
15859  fi
15860  export as_echo_body
15861  as_echo='sh -c $as_echo_body as_echo'
15862fi
15863
15864# The user is always right.
15865if test "${PATH_SEPARATOR+set}" != set; then
15866  PATH_SEPARATOR=:
15867  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15868    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15869      PATH_SEPARATOR=';'
15870  }
15871fi
15872
15873# Support unset when possible.
15874if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15875  as_unset=unset
15876else
15877  as_unset=false
15878fi
15879
15880
15881# IFS
15882# We need space, tab and new line, in precisely that order.  Quoting is
15883# there to prevent editors from complaining about space-tab.
15884# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15885# splitting by setting IFS to empty value.)
15886IFS=" ""	$as_nl"
15887
15888# Find who we are.  Look in the path if we contain no directory separator.
15889case $0 in
15890  *[\\/]* ) as_myself=$0 ;;
15891  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15892for as_dir in $PATH
15893do
15894  IFS=$as_save_IFS
15895  test -z "$as_dir" && as_dir=.
15896  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15897done
15898IFS=$as_save_IFS
15899
15900     ;;
15901esac
15902# We did not find ourselves, most probably we were run as `sh COMMAND'
15903# in which case we are not to be found in the path.
15904if test "x$as_myself" = x; then
15905  as_myself=$0
15906fi
15907if test ! -f "$as_myself"; then
15908  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15909  { (exit 1); exit 1; }
15910fi
15911
15912# Work around bugs in pre-3.0 UWIN ksh.
15913for as_var in ENV MAIL MAILPATH
15914do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15915done
15916PS1='$ '
15917PS2='> '
15918PS4='+ '
15919
15920# NLS nuisances.
15921LC_ALL=C
15922export LC_ALL
15923LANGUAGE=C
15924export LANGUAGE
15925
15926# Required to use basename.
15927if expr a : '\(a\)' >/dev/null 2>&1 &&
15928   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15929  as_expr=expr
15930else
15931  as_expr=false
15932fi
15933
15934if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15935  as_basename=basename
15936else
15937  as_basename=false
15938fi
15939
15940
15941# Name of the executable.
15942as_me=`$as_basename -- "$0" ||
15943$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15944	 X"$0" : 'X\(//\)$' \| \
15945	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15946$as_echo X/"$0" |
15947    sed '/^.*\/\([^/][^/]*\)\/*$/{
15948	    s//\1/
15949	    q
15950	  }
15951	  /^X\/\(\/\/\)$/{
15952	    s//\1/
15953	    q
15954	  }
15955	  /^X\/\(\/\).*/{
15956	    s//\1/
15957	    q
15958	  }
15959	  s/.*/./; q'`
15960
15961# CDPATH.
15962$as_unset CDPATH
15963
15964
15965
15966  as_lineno_1=$LINENO
15967  as_lineno_2=$LINENO
15968  test "x$as_lineno_1" != "x$as_lineno_2" &&
15969  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15970
15971  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15972  # uniformly replaced by the line number.  The first 'sed' inserts a
15973  # line-number line after each line using $LINENO; the second 'sed'
15974  # does the real work.  The second script uses 'N' to pair each
15975  # line-number line with the line containing $LINENO, and appends
15976  # trailing '-' during substitution so that $LINENO is not a special
15977  # case at line end.
15978  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15979  # scripts with optimization help from Paolo Bonzini.  Blame Lee
15980  # E. McMahon (1931-1989) for sed's syntax.  :-)
15981  sed -n '
15982    p
15983    /[$]LINENO/=
15984  ' <$as_myself |
15985    sed '
15986      s/[$]LINENO.*/&-/
15987      t lineno
15988      b
15989      :lineno
15990      N
15991      :loop
15992      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15993      t loop
15994      s/-\n.*//
15995    ' >$as_me.lineno &&
15996  chmod +x "$as_me.lineno" ||
15997    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15998   { (exit 1); exit 1; }; }
15999
16000  # Don't try to exec as it changes $[0], causing all sort of problems
16001  # (the dirname of $[0] is not the place where we might find the
16002  # original and so on.  Autoconf is especially sensitive to this).
16003  . "./$as_me.lineno"
16004  # Exit status is that of the last command.
16005  exit
16006}
16007
16008
16009if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16010  as_dirname=dirname
16011else
16012  as_dirname=false
16013fi
16014
16015ECHO_C= ECHO_N= ECHO_T=
16016case `echo -n x` in
16017-n*)
16018  case `echo 'x\c'` in
16019  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16020  *)   ECHO_C='\c';;
16021  esac;;
16022*)
16023  ECHO_N='-n';;
16024esac
16025if expr a : '\(a\)' >/dev/null 2>&1 &&
16026   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16027  as_expr=expr
16028else
16029  as_expr=false
16030fi
16031
16032rm -f conf$$ conf$$.exe conf$$.file
16033if test -d conf$$.dir; then
16034  rm -f conf$$.dir/conf$$.file
16035else
16036  rm -f conf$$.dir
16037  mkdir conf$$.dir 2>/dev/null
16038fi
16039if (echo >conf$$.file) 2>/dev/null; then
16040  if ln -s conf$$.file conf$$ 2>/dev/null; then
16041    as_ln_s='ln -s'
16042    # ... but there are two gotchas:
16043    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16044    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16045    # In both cases, we have to default to `cp -p'.
16046    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16047      as_ln_s='cp -p'
16048  elif ln conf$$.file conf$$ 2>/dev/null; then
16049    as_ln_s=ln
16050  else
16051    as_ln_s='cp -p'
16052  fi
16053else
16054  as_ln_s='cp -p'
16055fi
16056rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16057rmdir conf$$.dir 2>/dev/null
16058
16059if mkdir -p . 2>/dev/null; then
16060  as_mkdir_p=:
16061else
16062  test -d ./-p && rmdir ./-p
16063  as_mkdir_p=false
16064fi
16065
16066if test -x / >/dev/null 2>&1; then
16067  as_test_x='test -x'
16068else
16069  if ls -dL / >/dev/null 2>&1; then
16070    as_ls_L_option=L
16071  else
16072    as_ls_L_option=
16073  fi
16074  as_test_x='
16075    eval sh -c '\''
16076      if test -d "$1"; then
16077	test -d "$1/.";
16078      else
16079	case $1 in
16080	-*)set "./$1";;
16081	esac;
16082	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16083	???[sx]*):;;*)false;;esac;fi
16084    '\'' sh
16085  '
16086fi
16087as_executable_p=$as_test_x
16088
16089# Sed expression to map a string onto a valid CPP name.
16090as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16091
16092# Sed expression to map a string onto a valid variable name.
16093as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16094
16095
16096exec 6>&1
16097
16098# Save the log message, to keep $[0] and so on meaningful, and to
16099# report actual input values of CONFIG_FILES etc. instead of their
16100# values after options handling.
16101ac_log="
16102This file was extended by gbemol $as_me 0.3.2, which was
16103generated by GNU Autoconf 2.63.  Invocation command line was
16104
16105  CONFIG_FILES    = $CONFIG_FILES
16106  CONFIG_HEADERS  = $CONFIG_HEADERS
16107  CONFIG_LINKS    = $CONFIG_LINKS
16108  CONFIG_COMMANDS = $CONFIG_COMMANDS
16109  $ $0 $@
16110
16111on `(hostname || uname -n) 2>/dev/null | sed 1q`
16112"
16113
16114_ACEOF
16115
16116case $ac_config_files in *"
16117"*) set x $ac_config_files; shift; ac_config_files=$*;;
16118esac
16119
16120case $ac_config_headers in *"
16121"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16122esac
16123
16124
16125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16126# Files that config.status was made for.
16127config_files="$ac_config_files"
16128config_headers="$ac_config_headers"
16129config_commands="$ac_config_commands"
16130
16131_ACEOF
16132
16133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16134ac_cs_usage="\
16135\`$as_me' instantiates files from templates according to the
16136current configuration.
16137
16138Usage: $0 [OPTION]... [FILE]...
16139
16140  -h, --help       print this help, then exit
16141  -V, --version    print version number and configuration settings, then exit
16142  -q, --quiet, --silent
16143                   do not print progress messages
16144  -d, --debug      don't remove temporary files
16145      --recheck    update $as_me by reconfiguring in the same conditions
16146      --file=FILE[:TEMPLATE]
16147                   instantiate the configuration file FILE
16148      --header=FILE[:TEMPLATE]
16149                   instantiate the configuration header FILE
16150
16151Configuration files:
16152$config_files
16153
16154Configuration headers:
16155$config_headers
16156
16157Configuration commands:
16158$config_commands
16159
16160Report bugs to <bug-autoconf@gnu.org>."
16161
16162_ACEOF
16163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164ac_cs_version="\\
16165gbemol config.status 0.3.2
16166configured by $0, generated by GNU Autoconf 2.63,
16167  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16168
16169Copyright (C) 2008 Free Software Foundation, Inc.
16170This config.status script is free software; the Free Software Foundation
16171gives unlimited permission to copy, distribute and modify it."
16172
16173ac_pwd='$ac_pwd'
16174srcdir='$srcdir'
16175INSTALL='$INSTALL'
16176MKDIR_P='$MKDIR_P'
16177AWK='$AWK'
16178test -n "\$AWK" || AWK=awk
16179_ACEOF
16180
16181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16182# The default lists apply if the user does not specify any file.
16183ac_need_defaults=:
16184while test $# != 0
16185do
16186  case $1 in
16187  --*=*)
16188    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16189    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16190    ac_shift=:
16191    ;;
16192  *)
16193    ac_option=$1
16194    ac_optarg=$2
16195    ac_shift=shift
16196    ;;
16197  esac
16198
16199  case $ac_option in
16200  # Handling of the options.
16201  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16202    ac_cs_recheck=: ;;
16203  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16204    $as_echo "$ac_cs_version"; exit ;;
16205  --debug | --debu | --deb | --de | --d | -d )
16206    debug=: ;;
16207  --file | --fil | --fi | --f )
16208    $ac_shift
16209    case $ac_optarg in
16210    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16211    esac
16212    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16213    ac_need_defaults=false;;
16214  --header | --heade | --head | --hea )
16215    $ac_shift
16216    case $ac_optarg in
16217    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16218    esac
16219    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16220    ac_need_defaults=false;;
16221  --he | --h)
16222    # Conflict between --help and --header
16223    { $as_echo "$as_me: error: ambiguous option: $1
16224Try \`$0 --help' for more information." >&2
16225   { (exit 1); exit 1; }; };;
16226  --help | --hel | -h )
16227    $as_echo "$ac_cs_usage"; exit ;;
16228  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16229  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16230    ac_cs_silent=: ;;
16231
16232  # This is an error.
16233  -*) { $as_echo "$as_me: error: unrecognized option: $1
16234Try \`$0 --help' for more information." >&2
16235   { (exit 1); exit 1; }; } ;;
16236
16237  *) ac_config_targets="$ac_config_targets $1"
16238     ac_need_defaults=false ;;
16239
16240  esac
16241  shift
16242done
16243
16244ac_configure_extra_args=
16245
16246if $ac_cs_silent; then
16247  exec 6>/dev/null
16248  ac_configure_extra_args="$ac_configure_extra_args --silent"
16249fi
16250
16251_ACEOF
16252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16253if \$ac_cs_recheck; then
16254  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16255  shift
16256  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16257  CONFIG_SHELL='$SHELL'
16258  export CONFIG_SHELL
16259  exec "\$@"
16260fi
16261
16262_ACEOF
16263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16264exec 5>>config.log
16265{
16266  echo
16267  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16268## Running $as_me. ##
16269_ASBOX
16270  $as_echo "$ac_log"
16271} >&5
16272
16273_ACEOF
16274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16275#
16276# INIT-COMMANDS
16277#
16278AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16279
16280
16281
16282# The HP-UX ksh and POSIX shell print the target directory to stdout
16283# if CDPATH is set.
16284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16285
16286sed_quote_subst='$sed_quote_subst'
16287double_quote_subst='$double_quote_subst'
16288delay_variable_subst='$delay_variable_subst'
16289macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16290macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16291enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16292enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16293pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16294enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16295host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16296host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16297host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16298build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16299build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16300build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16301SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16302Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16303GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16304EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16305FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16306LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16307NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16308LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16309max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16310ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16311exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16312lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16313lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16314lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16315reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16316reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16317OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16318deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16319file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16320AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16321AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16322STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16323RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16324old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16325old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16326old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16327CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16328CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16329compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16330GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16331lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16332lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16333lt_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"`'
16334lt_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"`'
16335objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16336SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16337ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16338MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16339lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16340lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16341lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16342lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16343lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16344need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16345DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16346NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16347LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16348OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16349OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16350libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16351shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16352extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16353archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16354enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16355export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16356whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16357compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16358old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16359old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16360archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16361archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16362module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16363module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16364with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16365allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16366no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16367hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16368hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16369hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16370hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16371hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16372hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16373hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16374hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16375inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16376link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16377fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16378always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16379export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16380exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16381include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16382prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16383file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16384variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16385need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16386need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16387version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16388runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16389shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16390shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16391libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16392library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16393soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16394postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16395postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16396finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16397finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16398hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16399sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16400sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16401hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16402enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16403enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16404enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16405old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16406striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16407
16408LTCC='$LTCC'
16409LTCFLAGS='$LTCFLAGS'
16410compiler='$compiler_DEFAULT'
16411
16412# Quote evaled strings.
16413for var in SED \
16414GREP \
16415EGREP \
16416FGREP \
16417LD \
16418NM \
16419LN_S \
16420lt_SP2NL \
16421lt_NL2SP \
16422reload_flag \
16423OBJDUMP \
16424deplibs_check_method \
16425file_magic_cmd \
16426AR \
16427AR_FLAGS \
16428STRIP \
16429RANLIB \
16430CC \
16431CFLAGS \
16432compiler \
16433lt_cv_sys_global_symbol_pipe \
16434lt_cv_sys_global_symbol_to_cdecl \
16435lt_cv_sys_global_symbol_to_c_name_address \
16436lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16437SHELL \
16438ECHO \
16439lt_prog_compiler_no_builtin_flag \
16440lt_prog_compiler_wl \
16441lt_prog_compiler_pic \
16442lt_prog_compiler_static \
16443lt_cv_prog_compiler_c_o \
16444need_locks \
16445DSYMUTIL \
16446NMEDIT \
16447LIPO \
16448OTOOL \
16449OTOOL64 \
16450shrext_cmds \
16451export_dynamic_flag_spec \
16452whole_archive_flag_spec \
16453compiler_needs_object \
16454with_gnu_ld \
16455allow_undefined_flag \
16456no_undefined_flag \
16457hardcode_libdir_flag_spec \
16458hardcode_libdir_flag_spec_ld \
16459hardcode_libdir_separator \
16460fix_srcfile_path \
16461exclude_expsyms \
16462include_expsyms \
16463file_list_spec \
16464variables_saved_for_relink \
16465libname_spec \
16466library_names_spec \
16467soname_spec \
16468finish_eval \
16469old_striplib \
16470striplib; do
16471    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16472    *[\\\\\\\`\\"\\\$]*)
16473      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16474      ;;
16475    *)
16476      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16477      ;;
16478    esac
16479done
16480
16481# Double-quote double-evaled strings.
16482for var in reload_cmds \
16483old_postinstall_cmds \
16484old_postuninstall_cmds \
16485old_archive_cmds \
16486extract_expsyms_cmds \
16487old_archive_from_new_cmds \
16488old_archive_from_expsyms_cmds \
16489archive_cmds \
16490archive_expsym_cmds \
16491module_cmds \
16492module_expsym_cmds \
16493export_symbols_cmds \
16494prelink_cmds \
16495postinstall_cmds \
16496postuninstall_cmds \
16497finish_cmds \
16498sys_lib_search_path_spec \
16499sys_lib_dlsearch_path_spec; do
16500    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16501    *[\\\\\\\`\\"\\\$]*)
16502      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16503      ;;
16504    *)
16505      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16506      ;;
16507    esac
16508done
16509
16510# Fix-up fallback echo if it was mangled by the above quoting rules.
16511case \$lt_ECHO in
16512*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16513  ;;
16514esac
16515
16516ac_aux_dir='$ac_aux_dir'
16517xsi_shell='$xsi_shell'
16518lt_shell_append='$lt_shell_append'
16519
16520# See if we are running on zsh, and set the options which allow our
16521# commands through without removal of \ escapes INIT.
16522if test -n "\${ZSH_VERSION+set}" ; then
16523   setopt NO_GLOB_SUBST
16524fi
16525
16526
16527    PACKAGE='$PACKAGE'
16528    VERSION='$VERSION'
16529    TIMESTAMP='$TIMESTAMP'
16530    RM='$RM'
16531    ofile='$ofile'
16532
16533
16534
16535
16536_ACEOF
16537
16538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16539
16540# Handling of arguments.
16541for ac_config_target in $ac_config_targets
16542do
16543  case $ac_config_target in
16544    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16545    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16546    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16547    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16548    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16549    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16550    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16551    "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
16552    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
16553
16554  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16555$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16556   { (exit 1); exit 1; }; };;
16557  esac
16558done
16559
16560
16561# If the user did not use the arguments to specify the items to instantiate,
16562# then the envvar interface is used.  Set only those that are not.
16563# We use the long form for the default assignment because of an extremely
16564# bizarre bug on SunOS 4.1.3.
16565if $ac_need_defaults; then
16566  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16567  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16568  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16569fi
16570
16571# Have a temporary directory for convenience.  Make it in the build tree
16572# simply because there is no reason against having it here, and in addition,
16573# creating and moving files from /tmp can sometimes cause problems.
16574# Hook for its removal unless debugging.
16575# Note that there is a small window in which the directory will not be cleaned:
16576# after its creation but before its name has been assigned to `$tmp'.
16577$debug ||
16578{
16579  tmp=
16580  trap 'exit_status=$?
16581  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16582' 0
16583  trap '{ (exit 1); exit 1; }' 1 2 13 15
16584}
16585# Create a (secure) tmp directory for tmp files.
16586
16587{
16588  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16589  test -n "$tmp" && test -d "$tmp"
16590}  ||
16591{
16592  tmp=./conf$$-$RANDOM
16593  (umask 077 && mkdir "$tmp")
16594} ||
16595{
16596   $as_echo "$as_me: cannot create a temporary directory in ." >&2
16597   { (exit 1); exit 1; }
16598}
16599
16600# Set up the scripts for CONFIG_FILES section.
16601# No need to generate them if there are no CONFIG_FILES.
16602# This happens for instance with `./config.status config.h'.
16603if test -n "$CONFIG_FILES"; then
16604
16605
16606ac_cr='
16607'
16608ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16609if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16610  ac_cs_awk_cr='\\r'
16611else
16612  ac_cs_awk_cr=$ac_cr
16613fi
16614
16615echo 'BEGIN {' >"$tmp/subs1.awk" &&
16616_ACEOF
16617
16618
16619{
16620  echo "cat >conf$$subs.awk <<_ACEOF" &&
16621  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16622  echo "_ACEOF"
16623} >conf$$subs.sh ||
16624  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16625$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16626   { (exit 1); exit 1; }; }
16627ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16628ac_delim='%!_!# '
16629for ac_last_try in false false false false false :; do
16630  . ./conf$$subs.sh ||
16631    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16632$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16633   { (exit 1); exit 1; }; }
16634
16635  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16636  if test $ac_delim_n = $ac_delim_num; then
16637    break
16638  elif $ac_last_try; then
16639    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16640$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16641   { (exit 1); exit 1; }; }
16642  else
16643    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16644  fi
16645done
16646rm -f conf$$subs.sh
16647
16648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16649cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16650_ACEOF
16651sed -n '
16652h
16653s/^/S["/; s/!.*/"]=/
16654p
16655g
16656s/^[^!]*!//
16657:repl
16658t repl
16659s/'"$ac_delim"'$//
16660t delim
16661:nl
16662h
16663s/\(.\{148\}\).*/\1/
16664t more1
16665s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16666p
16667n
16668b repl
16669:more1
16670s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16671p
16672g
16673s/.\{148\}//
16674t nl
16675:delim
16676h
16677s/\(.\{148\}\).*/\1/
16678t more2
16679s/["\\]/\\&/g; s/^/"/; s/$/"/
16680p
16681b
16682:more2
16683s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16684p
16685g
16686s/.\{148\}//
16687t delim
16688' <conf$$subs.awk | sed '
16689/^[^""]/{
16690  N
16691  s/\n//
16692}
16693' >>$CONFIG_STATUS || ac_write_fail=1
16694rm -f conf$$subs.awk
16695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16696_ACAWK
16697cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16698  for (key in S) S_is_set[key] = 1
16699  FS = ""
16700
16701}
16702{
16703  line = $ 0
16704  nfields = split(line, field, "@")
16705  substed = 0
16706  len = length(field[1])
16707  for (i = 2; i < nfields; i++) {
16708    key = field[i]
16709    keylen = length(key)
16710    if (S_is_set[key]) {
16711      value = S[key]
16712      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16713      len += length(value) + length(field[++i])
16714      substed = 1
16715    } else
16716      len += 1 + keylen
16717  }
16718
16719  print line
16720}
16721
16722_ACAWK
16723_ACEOF
16724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16725if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16726  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16727else
16728  cat
16729fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16730  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16731$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16732   { (exit 1); exit 1; }; }
16733_ACEOF
16734
16735# VPATH may cause trouble with some makes, so we remove $(srcdir),
16736# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16737# trailing colons and then remove the whole line if VPATH becomes empty
16738# (actually we leave an empty line to preserve line numbers).
16739if test "x$srcdir" = x.; then
16740  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16741s/:*\$(srcdir):*/:/
16742s/:*\${srcdir}:*/:/
16743s/:*@srcdir@:*/:/
16744s/^\([^=]*=[	 ]*\):*/\1/
16745s/:*$//
16746s/^[^=]*=[	 ]*$//
16747}'
16748fi
16749
16750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16751fi # test -n "$CONFIG_FILES"
16752
16753# Set up the scripts for CONFIG_HEADERS section.
16754# No need to generate them if there are no CONFIG_HEADERS.
16755# This happens for instance with `./config.status Makefile'.
16756if test -n "$CONFIG_HEADERS"; then
16757cat >"$tmp/defines.awk" <<\_ACAWK ||
16758BEGIN {
16759_ACEOF
16760
16761# Transform confdefs.h into an awk script `defines.awk', embedded as
16762# here-document in config.status, that substitutes the proper values into
16763# config.h.in to produce config.h.
16764
16765# Create a delimiter string that does not exist in confdefs.h, to ease
16766# handling of long lines.
16767ac_delim='%!_!# '
16768for ac_last_try in false false :; do
16769  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16770  if test -z "$ac_t"; then
16771    break
16772  elif $ac_last_try; then
16773    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16774$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16775   { (exit 1); exit 1; }; }
16776  else
16777    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16778  fi
16779done
16780
16781# For the awk script, D is an array of macro values keyed by name,
16782# likewise P contains macro parameters if any.  Preserve backslash
16783# newline sequences.
16784
16785ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16786sed -n '
16787s/.\{148\}/&'"$ac_delim"'/g
16788t rset
16789:rset
16790s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16791t def
16792d
16793:def
16794s/\\$//
16795t bsnl
16796s/["\\]/\\&/g
16797s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16798D["\1"]=" \3"/p
16799s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16800d
16801:bsnl
16802s/["\\]/\\&/g
16803s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16804D["\1"]=" \3\\\\\\n"\\/p
16805t cont
16806s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16807t cont
16808d
16809:cont
16810n
16811s/.\{148\}/&'"$ac_delim"'/g
16812t clear
16813:clear
16814s/\\$//
16815t bsnlc
16816s/["\\]/\\&/g; s/^/"/; s/$/"/p
16817d
16818:bsnlc
16819s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16820b cont
16821' <confdefs.h | sed '
16822s/'"$ac_delim"'/"\\\
16823"/g' >>$CONFIG_STATUS || ac_write_fail=1
16824
16825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16826  for (key in D) D_is_set[key] = 1
16827  FS = ""
16828}
16829/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16830  line = \$ 0
16831  split(line, arg, " ")
16832  if (arg[1] == "#") {
16833    defundef = arg[2]
16834    mac1 = arg[3]
16835  } else {
16836    defundef = substr(arg[1], 2)
16837    mac1 = arg[2]
16838  }
16839  split(mac1, mac2, "(") #)
16840  macro = mac2[1]
16841  prefix = substr(line, 1, index(line, defundef) - 1)
16842  if (D_is_set[macro]) {
16843    # Preserve the white space surrounding the "#".
16844    print prefix "define", macro P[macro] D[macro]
16845    next
16846  } else {
16847    # Replace #undef with comments.  This is necessary, for example,
16848    # in the case of _POSIX_SOURCE, which is predefined and required
16849    # on some systems where configure will not decide to define it.
16850    if (defundef == "undef") {
16851      print "/*", prefix defundef, macro, "*/"
16852      next
16853    }
16854  }
16855}
16856{ print }
16857_ACAWK
16858_ACEOF
16859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16860  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16861$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16862   { (exit 1); exit 1; }; }
16863fi # test -n "$CONFIG_HEADERS"
16864
16865
16866eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16867shift
16868for ac_tag
16869do
16870  case $ac_tag in
16871  :[FHLC]) ac_mode=$ac_tag; continue;;
16872  esac
16873  case $ac_mode$ac_tag in
16874  :[FHL]*:*);;
16875  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16876$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16877   { (exit 1); exit 1; }; };;
16878  :[FH]-) ac_tag=-:-;;
16879  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16880  esac
16881  ac_save_IFS=$IFS
16882  IFS=:
16883  set x $ac_tag
16884  IFS=$ac_save_IFS
16885  shift
16886  ac_file=$1
16887  shift
16888
16889  case $ac_mode in
16890  :L) ac_source=$1;;
16891  :[FH])
16892    ac_file_inputs=
16893    for ac_f
16894    do
16895      case $ac_f in
16896      -) ac_f="$tmp/stdin";;
16897      *) # Look for the file first in the build tree, then in the source tree
16898	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16899	 # because $ac_f cannot contain `:'.
16900	 test -f "$ac_f" ||
16901	   case $ac_f in
16902	   [\\/$]*) false;;
16903	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16904	   esac ||
16905	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16906$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16907   { (exit 1); exit 1; }; };;
16908      esac
16909      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16910      ac_file_inputs="$ac_file_inputs '$ac_f'"
16911    done
16912
16913    # Let's still pretend it is `configure' which instantiates (i.e., don't
16914    # use $as_me), people would be surprised to read:
16915    #    /* config.h.  Generated by config.status.  */
16916    configure_input='Generated from '`
16917	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16918	`' by configure.'
16919    if test x"$ac_file" != x-; then
16920      configure_input="$ac_file.  $configure_input"
16921      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16922$as_echo "$as_me: creating $ac_file" >&6;}
16923    fi
16924    # Neutralize special characters interpreted by sed in replacement strings.
16925    case $configure_input in #(
16926    *\&* | *\|* | *\\* )
16927       ac_sed_conf_input=`$as_echo "$configure_input" |
16928       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16929    *) ac_sed_conf_input=$configure_input;;
16930    esac
16931
16932    case $ac_tag in
16933    *:-:* | *:-) cat >"$tmp/stdin" \
16934      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16935$as_echo "$as_me: error: could not create $ac_file" >&2;}
16936   { (exit 1); exit 1; }; } ;;
16937    esac
16938    ;;
16939  esac
16940
16941  ac_dir=`$as_dirname -- "$ac_file" ||
16942$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16943	 X"$ac_file" : 'X\(//\)[^/]' \| \
16944	 X"$ac_file" : 'X\(//\)$' \| \
16945	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16946$as_echo X"$ac_file" |
16947    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16948	    s//\1/
16949	    q
16950	  }
16951	  /^X\(\/\/\)[^/].*/{
16952	    s//\1/
16953	    q
16954	  }
16955	  /^X\(\/\/\)$/{
16956	    s//\1/
16957	    q
16958	  }
16959	  /^X\(\/\).*/{
16960	    s//\1/
16961	    q
16962	  }
16963	  s/.*/./; q'`
16964  { as_dir="$ac_dir"
16965  case $as_dir in #(
16966  -*) as_dir=./$as_dir;;
16967  esac
16968  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16969    as_dirs=
16970    while :; do
16971      case $as_dir in #(
16972      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16973      *) as_qdir=$as_dir;;
16974      esac
16975      as_dirs="'$as_qdir' $as_dirs"
16976      as_dir=`$as_dirname -- "$as_dir" ||
16977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16978	 X"$as_dir" : 'X\(//\)[^/]' \| \
16979	 X"$as_dir" : 'X\(//\)$' \| \
16980	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16981$as_echo X"$as_dir" |
16982    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16983	    s//\1/
16984	    q
16985	  }
16986	  /^X\(\/\/\)[^/].*/{
16987	    s//\1/
16988	    q
16989	  }
16990	  /^X\(\/\/\)$/{
16991	    s//\1/
16992	    q
16993	  }
16994	  /^X\(\/\).*/{
16995	    s//\1/
16996	    q
16997	  }
16998	  s/.*/./; q'`
16999      test -d "$as_dir" && break
17000    done
17001    test -z "$as_dirs" || eval "mkdir $as_dirs"
17002  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17003$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17004   { (exit 1); exit 1; }; }; }
17005  ac_builddir=.
17006
17007case "$ac_dir" in
17008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17009*)
17010  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17011  # A ".." for each directory in $ac_dir_suffix.
17012  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17013  case $ac_top_builddir_sub in
17014  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17015  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17016  esac ;;
17017esac
17018ac_abs_top_builddir=$ac_pwd
17019ac_abs_builddir=$ac_pwd$ac_dir_suffix
17020# for backward compatibility:
17021ac_top_builddir=$ac_top_build_prefix
17022
17023case $srcdir in
17024  .)  # We are building in place.
17025    ac_srcdir=.
17026    ac_top_srcdir=$ac_top_builddir_sub
17027    ac_abs_top_srcdir=$ac_pwd ;;
17028  [\\/]* | ?:[\\/]* )  # Absolute name.
17029    ac_srcdir=$srcdir$ac_dir_suffix;
17030    ac_top_srcdir=$srcdir
17031    ac_abs_top_srcdir=$srcdir ;;
17032  *) # Relative name.
17033    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17034    ac_top_srcdir=$ac_top_build_prefix$srcdir
17035    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17036esac
17037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17038
17039
17040  case $ac_mode in
17041  :F)
17042  #
17043  # CONFIG_FILE
17044  #
17045
17046  case $INSTALL in
17047  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17048  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17049  esac
17050  ac_MKDIR_P=$MKDIR_P
17051  case $MKDIR_P in
17052  [\\/$]* | ?:[\\/]* ) ;;
17053  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17054  esac
17055_ACEOF
17056
17057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17058# If the template does not know about datarootdir, expand it.
17059# FIXME: This hack should be removed a few years after 2.60.
17060ac_datarootdir_hack=; ac_datarootdir_seen=
17061
17062ac_sed_dataroot='
17063/datarootdir/ {
17064  p
17065  q
17066}
17067/@datadir@/p
17068/@docdir@/p
17069/@infodir@/p
17070/@localedir@/p
17071/@mandir@/p
17072'
17073case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17074*datarootdir*) ac_datarootdir_seen=yes;;
17075*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17076  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17077$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17078_ACEOF
17079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17080  ac_datarootdir_hack='
17081  s&@datadir@&$datadir&g
17082  s&@docdir@&$docdir&g
17083  s&@infodir@&$infodir&g
17084  s&@localedir@&$localedir&g
17085  s&@mandir@&$mandir&g
17086    s&\\\${datarootdir}&$datarootdir&g' ;;
17087esac
17088_ACEOF
17089
17090# Neutralize VPATH when `$srcdir' = `.'.
17091# Shell code in configure.ac might set extrasub.
17092# FIXME: do we really want to maintain this feature?
17093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094ac_sed_extra="$ac_vpsub
17095$extrasub
17096_ACEOF
17097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17098:t
17099/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17100s|@configure_input@|$ac_sed_conf_input|;t t
17101s&@top_builddir@&$ac_top_builddir_sub&;t t
17102s&@top_build_prefix@&$ac_top_build_prefix&;t t
17103s&@srcdir@&$ac_srcdir&;t t
17104s&@abs_srcdir@&$ac_abs_srcdir&;t t
17105s&@top_srcdir@&$ac_top_srcdir&;t t
17106s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17107s&@builddir@&$ac_builddir&;t t
17108s&@abs_builddir@&$ac_abs_builddir&;t t
17109s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17110s&@INSTALL@&$ac_INSTALL&;t t
17111s&@MKDIR_P@&$ac_MKDIR_P&;t t
17112$ac_datarootdir_hack
17113"
17114eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17115  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17116$as_echo "$as_me: error: could not create $ac_file" >&2;}
17117   { (exit 1); exit 1; }; }
17118
17119test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17120  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17121  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17122  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17123which seems to be undefined.  Please make sure it is defined." >&5
17124$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17125which seems to be undefined.  Please make sure it is defined." >&2;}
17126
17127  rm -f "$tmp/stdin"
17128  case $ac_file in
17129  -) cat "$tmp/out" && rm -f "$tmp/out";;
17130  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17131  esac \
17132  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17133$as_echo "$as_me: error: could not create $ac_file" >&2;}
17134   { (exit 1); exit 1; }; }
17135 ;;
17136  :H)
17137  #
17138  # CONFIG_HEADER
17139  #
17140  if test x"$ac_file" != x-; then
17141    {
17142      $as_echo "/* $configure_input  */" \
17143      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17144    } >"$tmp/config.h" \
17145      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17146$as_echo "$as_me: error: could not create $ac_file" >&2;}
17147   { (exit 1); exit 1; }; }
17148    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17149      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17150$as_echo "$as_me: $ac_file is unchanged" >&6;}
17151    else
17152      rm -f "$ac_file"
17153      mv "$tmp/config.h" "$ac_file" \
17154	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17155$as_echo "$as_me: error: could not create $ac_file" >&2;}
17156   { (exit 1); exit 1; }; }
17157    fi
17158  else
17159    $as_echo "/* $configure_input  */" \
17160      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17161      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17162$as_echo "$as_me: error: could not create -" >&2;}
17163   { (exit 1); exit 1; }; }
17164  fi
17165# Compute "$ac_file"'s index in $config_headers.
17166_am_arg="$ac_file"
17167_am_stamp_count=1
17168for _am_header in $config_headers :; do
17169  case $_am_header in
17170    $_am_arg | $_am_arg:* )
17171      break ;;
17172    * )
17173      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17174  esac
17175done
17176echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17177$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17178	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17179	 X"$_am_arg" : 'X\(//\)$' \| \
17180	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17181$as_echo X"$_am_arg" |
17182    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17183	    s//\1/
17184	    q
17185	  }
17186	  /^X\(\/\/\)[^/].*/{
17187	    s//\1/
17188	    q
17189	  }
17190	  /^X\(\/\/\)$/{
17191	    s//\1/
17192	    q
17193	  }
17194	  /^X\(\/\).*/{
17195	    s//\1/
17196	    q
17197	  }
17198	  s/.*/./; q'`/stamp-h$_am_stamp_count
17199 ;;
17200
17201  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17202$as_echo "$as_me: executing $ac_file commands" >&6;}
17203 ;;
17204  esac
17205
17206
17207  case $ac_file$ac_mode in
17208    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
17209# are listed without --file.  Let's play safe and only enable the eval
17210# if we detect the quoting.
17211case $CONFIG_FILES in
17212*\'*) eval set x "$CONFIG_FILES" ;;
17213*)   set x $CONFIG_FILES ;;
17214esac
17215shift
17216for mf
17217do
17218  # Strip MF so we end up with the name of the file.
17219  mf=`echo "$mf" | sed -e 's/:.*$//'`
17220  # Check whether this is an Automake generated Makefile or not.
17221  # We used to match only the files named `Makefile.in', but
17222  # some people rename them; so instead we look at the file content.
17223  # Grep'ing the first line is not enough: some people post-process
17224  # each Makefile.in and add a new line on top of each file to say so.
17225  # Grep'ing the whole file is not good either: AIX grep has a line
17226  # limit of 2048, but all sed's we know have understand at least 4000.
17227  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17228    dirpart=`$as_dirname -- "$mf" ||
17229$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17230	 X"$mf" : 'X\(//\)[^/]' \| \
17231	 X"$mf" : 'X\(//\)$' \| \
17232	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17233$as_echo X"$mf" |
17234    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17235	    s//\1/
17236	    q
17237	  }
17238	  /^X\(\/\/\)[^/].*/{
17239	    s//\1/
17240	    q
17241	  }
17242	  /^X\(\/\/\)$/{
17243	    s//\1/
17244	    q
17245	  }
17246	  /^X\(\/\).*/{
17247	    s//\1/
17248	    q
17249	  }
17250	  s/.*/./; q'`
17251  else
17252    continue
17253  fi
17254  # Extract the definition of DEPDIR, am__include, and am__quote
17255  # from the Makefile without running `make'.
17256  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17257  test -z "$DEPDIR" && continue
17258  am__include=`sed -n 's/^am__include = //p' < "$mf"`
17259  test -z "am__include" && continue
17260  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17261  # When using ansi2knr, U may be empty or an underscore; expand it
17262  U=`sed -n 's/^U = //p' < "$mf"`
17263  # Find all dependency output files, they are included files with
17264  # $(DEPDIR) in their names.  We invoke sed twice because it is the
17265  # simplest approach to changing $(DEPDIR) to its actual value in the
17266  # expansion.
17267  for file in `sed -n "
17268    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17269       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17270    # Make sure the directory exists.
17271    test -f "$dirpart/$file" && continue
17272    fdir=`$as_dirname -- "$file" ||
17273$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17274	 X"$file" : 'X\(//\)[^/]' \| \
17275	 X"$file" : 'X\(//\)$' \| \
17276	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17277$as_echo X"$file" |
17278    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17279	    s//\1/
17280	    q
17281	  }
17282	  /^X\(\/\/\)[^/].*/{
17283	    s//\1/
17284	    q
17285	  }
17286	  /^X\(\/\/\)$/{
17287	    s//\1/
17288	    q
17289	  }
17290	  /^X\(\/\).*/{
17291	    s//\1/
17292	    q
17293	  }
17294	  s/.*/./; q'`
17295    { as_dir=$dirpart/$fdir
17296  case $as_dir in #(
17297  -*) as_dir=./$as_dir;;
17298  esac
17299  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17300    as_dirs=
17301    while :; do
17302      case $as_dir in #(
17303      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17304      *) as_qdir=$as_dir;;
17305      esac
17306      as_dirs="'$as_qdir' $as_dirs"
17307      as_dir=`$as_dirname -- "$as_dir" ||
17308$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17309	 X"$as_dir" : 'X\(//\)[^/]' \| \
17310	 X"$as_dir" : 'X\(//\)$' \| \
17311	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17312$as_echo X"$as_dir" |
17313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17314	    s//\1/
17315	    q
17316	  }
17317	  /^X\(\/\/\)[^/].*/{
17318	    s//\1/
17319	    q
17320	  }
17321	  /^X\(\/\/\)$/{
17322	    s//\1/
17323	    q
17324	  }
17325	  /^X\(\/\).*/{
17326	    s//\1/
17327	    q
17328	  }
17329	  s/.*/./; q'`
17330      test -d "$as_dir" && break
17331    done
17332    test -z "$as_dirs" || eval "mkdir $as_dirs"
17333  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17334$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17335   { (exit 1); exit 1; }; }; }
17336    # echo "creating $dirpart/$file"
17337    echo '# dummy' > "$dirpart/$file"
17338  done
17339done
17340 ;;
17341    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17342        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17343      esac ;;
17344    "libtool":C)
17345
17346    # See if we are running on zsh, and set the options which allow our
17347    # commands through without removal of \ escapes.
17348    if test -n "${ZSH_VERSION+set}" ; then
17349      setopt NO_GLOB_SUBST
17350    fi
17351
17352    cfgfile="${ofile}T"
17353    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17354    $RM "$cfgfile"
17355
17356    cat <<_LT_EOF >> "$cfgfile"
17357#! $SHELL
17358
17359# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17360# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17362# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17363#
17364#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17365#                 2006, 2007, 2008 Free Software Foundation, Inc.
17366#   Written by Gordon Matzigkeit, 1996
17367#
17368#   This file is part of GNU Libtool.
17369#
17370# GNU Libtool is free software; you can redistribute it and/or
17371# modify it under the terms of the GNU General Public License as
17372# published by the Free Software Foundation; either version 2 of
17373# the License, or (at your option) any later version.
17374#
17375# As a special exception to the GNU General Public License,
17376# if you distribute this file as part of a program or library that
17377# is built using GNU Libtool, you may include this file under the
17378# same distribution terms that you use for the rest of that program.
17379#
17380# GNU Libtool is distributed in the hope that it will be useful,
17381# but WITHOUT ANY WARRANTY; without even the implied warranty of
17382# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17383# GNU General Public License for more details.
17384#
17385# You should have received a copy of the GNU General Public License
17386# along with GNU Libtool; see the file COPYING.  If not, a copy
17387# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17388# obtained by writing to the Free Software Foundation, Inc.,
17389# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17390
17391
17392# The names of the tagged configurations supported by this script.
17393available_tags=""
17394
17395# ### BEGIN LIBTOOL CONFIG
17396
17397# Which release of libtool.m4 was used?
17398macro_version=$macro_version
17399macro_revision=$macro_revision
17400
17401# Whether or not to build shared libraries.
17402build_libtool_libs=$enable_shared
17403
17404# Whether or not to build static libraries.
17405build_old_libs=$enable_static
17406
17407# What type of objects to build.
17408pic_mode=$pic_mode
17409
17410# Whether or not to optimize for fast installation.
17411fast_install=$enable_fast_install
17412
17413# The host system.
17414host_alias=$host_alias
17415host=$host
17416host_os=$host_os
17417
17418# The build system.
17419build_alias=$build_alias
17420build=$build
17421build_os=$build_os
17422
17423# A sed program that does not truncate output.
17424SED=$lt_SED
17425
17426# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17427Xsed="\$SED -e 1s/^X//"
17428
17429# A grep program that handles long lines.
17430GREP=$lt_GREP
17431
17432# An ERE matcher.
17433EGREP=$lt_EGREP
17434
17435# A literal string matcher.
17436FGREP=$lt_FGREP
17437
17438# A BSD- or MS-compatible name lister.
17439NM=$lt_NM
17440
17441# Whether we need soft or hard links.
17442LN_S=$lt_LN_S
17443
17444# What is the maximum length of a command?
17445max_cmd_len=$max_cmd_len
17446
17447# Object file suffix (normally "o").
17448objext=$ac_objext
17449
17450# Executable file suffix (normally "").
17451exeext=$exeext
17452
17453# whether the shell understands "unset".
17454lt_unset=$lt_unset
17455
17456# turn spaces into newlines.
17457SP2NL=$lt_lt_SP2NL
17458
17459# turn newlines into spaces.
17460NL2SP=$lt_lt_NL2SP
17461
17462# How to create reloadable object files.
17463reload_flag=$lt_reload_flag
17464reload_cmds=$lt_reload_cmds
17465
17466# An object symbol dumper.
17467OBJDUMP=$lt_OBJDUMP
17468
17469# Method to check whether dependent libraries are shared objects.
17470deplibs_check_method=$lt_deplibs_check_method
17471
17472# Command to use when deplibs_check_method == "file_magic".
17473file_magic_cmd=$lt_file_magic_cmd
17474
17475# The archiver.
17476AR=$lt_AR
17477AR_FLAGS=$lt_AR_FLAGS
17478
17479# A symbol stripping program.
17480STRIP=$lt_STRIP
17481
17482# Commands used to install an old-style archive.
17483RANLIB=$lt_RANLIB
17484old_postinstall_cmds=$lt_old_postinstall_cmds
17485old_postuninstall_cmds=$lt_old_postuninstall_cmds
17486
17487# A C compiler.
17488LTCC=$lt_CC
17489
17490# LTCC compiler flags.
17491LTCFLAGS=$lt_CFLAGS
17492
17493# Take the output of nm and produce a listing of raw symbols and C names.
17494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17495
17496# Transform the output of nm in a proper C declaration.
17497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17498
17499# Transform the output of nm in a C name address pair.
17500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17501
17502# Transform the output of nm in a C name address pair when lib prefix is needed.
17503global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17504
17505# The name of the directory that contains temporary libtool files.
17506objdir=$objdir
17507
17508# Shell to use when invoking shell scripts.
17509SHELL=$lt_SHELL
17510
17511# An echo program that does not interpret backslashes.
17512ECHO=$lt_ECHO
17513
17514# Used to examine libraries when file_magic_cmd begins with "file".
17515MAGIC_CMD=$MAGIC_CMD
17516
17517# Must we lock files when doing compilation?
17518need_locks=$lt_need_locks
17519
17520# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17521DSYMUTIL=$lt_DSYMUTIL
17522
17523# Tool to change global to local symbols on Mac OS X.
17524NMEDIT=$lt_NMEDIT
17525
17526# Tool to manipulate fat objects and archives on Mac OS X.
17527LIPO=$lt_LIPO
17528
17529# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17530OTOOL=$lt_OTOOL
17531
17532# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17533OTOOL64=$lt_OTOOL64
17534
17535# Old archive suffix (normally "a").
17536libext=$libext
17537
17538# Shared library suffix (normally ".so").
17539shrext_cmds=$lt_shrext_cmds
17540
17541# The commands to extract the exported symbol list from a shared archive.
17542extract_expsyms_cmds=$lt_extract_expsyms_cmds
17543
17544# Variables whose values should be saved in libtool wrapper scripts and
17545# restored at link time.
17546variables_saved_for_relink=$lt_variables_saved_for_relink
17547
17548# Do we need the "lib" prefix for modules?
17549need_lib_prefix=$need_lib_prefix
17550
17551# Do we need a version for libraries?
17552need_version=$need_version
17553
17554# Library versioning type.
17555version_type=$version_type
17556
17557# Shared library runtime path variable.
17558runpath_var=$runpath_var
17559
17560# Shared library path variable.
17561shlibpath_var=$shlibpath_var
17562
17563# Is shlibpath searched before the hard-coded library search path?
17564shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17565
17566# Format of library name prefix.
17567libname_spec=$lt_libname_spec
17568
17569# List of archive names.  First name is the real one, the rest are links.
17570# The last name is the one that the linker finds with -lNAME
17571library_names_spec=$lt_library_names_spec
17572
17573# The coded name of the library, if different from the real name.
17574soname_spec=$lt_soname_spec
17575
17576# Command to use after installation of a shared archive.
17577postinstall_cmds=$lt_postinstall_cmds
17578
17579# Command to use after uninstallation of a shared archive.
17580postuninstall_cmds=$lt_postuninstall_cmds
17581
17582# Commands used to finish a libtool library installation in a directory.
17583finish_cmds=$lt_finish_cmds
17584
17585# As "finish_cmds", except a single script fragment to be evaled but
17586# not shown.
17587finish_eval=$lt_finish_eval
17588
17589# Whether we should hardcode library paths into libraries.
17590hardcode_into_libs=$hardcode_into_libs
17591
17592# Compile-time system search path for libraries.
17593sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17594
17595# Run-time system search path for libraries.
17596sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17597
17598# Whether dlopen is supported.
17599dlopen_support=$enable_dlopen
17600
17601# Whether dlopen of programs is supported.
17602dlopen_self=$enable_dlopen_self
17603
17604# Whether dlopen of statically linked programs is supported.
17605dlopen_self_static=$enable_dlopen_self_static
17606
17607# Commands to strip libraries.
17608old_striplib=$lt_old_striplib
17609striplib=$lt_striplib
17610
17611
17612# The linker used to build libraries.
17613LD=$lt_LD
17614
17615# Commands used to build an old-style archive.
17616old_archive_cmds=$lt_old_archive_cmds
17617
17618# A language specific compiler.
17619CC=$lt_compiler
17620
17621# Is the compiler the GNU compiler?
17622with_gcc=$GCC
17623
17624# Compiler flag to turn off builtin functions.
17625no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17626
17627# How to pass a linker flag through the compiler.
17628wl=$lt_lt_prog_compiler_wl
17629
17630# Additional compiler flags for building library objects.
17631pic_flag=$lt_lt_prog_compiler_pic
17632
17633# Compiler flag to prevent dynamic linking.
17634link_static_flag=$lt_lt_prog_compiler_static
17635
17636# Does compiler simultaneously support -c and -o options?
17637compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17638
17639# Whether or not to add -lc for building shared libraries.
17640build_libtool_need_lc=$archive_cmds_need_lc
17641
17642# Whether or not to disallow shared libs when runtime libs are static.
17643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17644
17645# Compiler flag to allow reflexive dlopens.
17646export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17647
17648# Compiler flag to generate shared objects directly from archives.
17649whole_archive_flag_spec=$lt_whole_archive_flag_spec
17650
17651# Whether the compiler copes with passing no objects directly.
17652compiler_needs_object=$lt_compiler_needs_object
17653
17654# Create an old-style archive from a shared archive.
17655old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17656
17657# Create a temporary old-style archive to link instead of a shared archive.
17658old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17659
17660# Commands used to build a shared archive.
17661archive_cmds=$lt_archive_cmds
17662archive_expsym_cmds=$lt_archive_expsym_cmds
17663
17664# Commands used to build a loadable module if different from building
17665# a shared archive.
17666module_cmds=$lt_module_cmds
17667module_expsym_cmds=$lt_module_expsym_cmds
17668
17669# Whether we are building with GNU ld or not.
17670with_gnu_ld=$lt_with_gnu_ld
17671
17672# Flag that allows shared libraries with undefined symbols to be built.
17673allow_undefined_flag=$lt_allow_undefined_flag
17674
17675# Flag that enforces no undefined symbols.
17676no_undefined_flag=$lt_no_undefined_flag
17677
17678# Flag to hardcode \$libdir into a binary during linking.
17679# This must work even if \$libdir does not exist
17680hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17681
17682# If ld is used when linking, flag to hardcode \$libdir into a binary
17683# during linking.  This must work even if \$libdir does not exist.
17684hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17685
17686# Whether we need a single "-rpath" flag with a separated argument.
17687hardcode_libdir_separator=$lt_hardcode_libdir_separator
17688
17689# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17690# DIR into the resulting binary.
17691hardcode_direct=$hardcode_direct
17692
17693# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17694# DIR into the resulting binary and the resulting library dependency is
17695# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17696# library is relocated.
17697hardcode_direct_absolute=$hardcode_direct_absolute
17698
17699# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17700# into the resulting binary.
17701hardcode_minus_L=$hardcode_minus_L
17702
17703# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17704# into the resulting binary.
17705hardcode_shlibpath_var=$hardcode_shlibpath_var
17706
17707# Set to "yes" if building a shared library automatically hardcodes DIR
17708# into the library and all subsequent libraries and executables linked
17709# against it.
17710hardcode_automatic=$hardcode_automatic
17711
17712# Set to yes if linker adds runtime paths of dependent libraries
17713# to runtime path list.
17714inherit_rpath=$inherit_rpath
17715
17716# Whether libtool must link a program against all its dependency libraries.
17717link_all_deplibs=$link_all_deplibs
17718
17719# Fix the shell variable \$srcfile for the compiler.
17720fix_srcfile_path=$lt_fix_srcfile_path
17721
17722# Set to "yes" if exported symbols are required.
17723always_export_symbols=$always_export_symbols
17724
17725# The commands to list exported symbols.
17726export_symbols_cmds=$lt_export_symbols_cmds
17727
17728# Symbols that should not be listed in the preloaded symbols.
17729exclude_expsyms=$lt_exclude_expsyms
17730
17731# Symbols that must always be exported.
17732include_expsyms=$lt_include_expsyms
17733
17734# Commands necessary for linking programs (against libraries) with templates.
17735prelink_cmds=$lt_prelink_cmds
17736
17737# Specify filename containing input files.
17738file_list_spec=$lt_file_list_spec
17739
17740# How to hardcode a shared library path into an executable.
17741hardcode_action=$hardcode_action
17742
17743# ### END LIBTOOL CONFIG
17744
17745_LT_EOF
17746
17747  case $host_os in
17748  aix3*)
17749    cat <<\_LT_EOF >> "$cfgfile"
17750# AIX sometimes has problems with the GCC collect2 program.  For some
17751# reason, if we set the COLLECT_NAMES environment variable, the problems
17752# vanish in a puff of smoke.
17753if test "X${COLLECT_NAMES+set}" != Xset; then
17754  COLLECT_NAMES=
17755  export COLLECT_NAMES
17756fi
17757_LT_EOF
17758    ;;
17759  esac
17760
17761
17762ltmain="$ac_aux_dir/ltmain.sh"
17763
17764
17765  # We use sed instead of cat because bash on DJGPP gets confused if
17766  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17767  # text mode, it properly converts lines to CR/LF.  This bash problem
17768  # is reportedly fixed, but why not run on old versions too?
17769  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17770    || (rm -f "$cfgfile"; exit 1)
17771
17772  case $xsi_shell in
17773  yes)
17774    cat << \_LT_EOF >> "$cfgfile"
17775
17776# func_dirname file append nondir_replacement
17777# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17778# otherwise set result to NONDIR_REPLACEMENT.
17779func_dirname ()
17780{
17781  case ${1} in
17782    */*) func_dirname_result="${1%/*}${2}" ;;
17783    *  ) func_dirname_result="${3}" ;;
17784  esac
17785}
17786
17787# func_basename file
17788func_basename ()
17789{
17790  func_basename_result="${1##*/}"
17791}
17792
17793# func_dirname_and_basename file append nondir_replacement
17794# perform func_basename and func_dirname in a single function
17795# call:
17796#   dirname:  Compute the dirname of FILE.  If nonempty,
17797#             add APPEND to the result, otherwise set result
17798#             to NONDIR_REPLACEMENT.
17799#             value returned in "$func_dirname_result"
17800#   basename: Compute filename of FILE.
17801#             value retuned in "$func_basename_result"
17802# Implementation must be kept synchronized with func_dirname
17803# and func_basename. For efficiency, we do not delegate to
17804# those functions but instead duplicate the functionality here.
17805func_dirname_and_basename ()
17806{
17807  case ${1} in
17808    */*) func_dirname_result="${1%/*}${2}" ;;
17809    *  ) func_dirname_result="${3}" ;;
17810  esac
17811  func_basename_result="${1##*/}"
17812}
17813
17814# func_stripname prefix suffix name
17815# strip PREFIX and SUFFIX off of NAME.
17816# PREFIX and SUFFIX must not contain globbing or regex special
17817# characters, hashes, percent signs, but SUFFIX may contain a leading
17818# dot (in which case that matches only a dot).
17819func_stripname ()
17820{
17821  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17822  # positional parameters, so assign one to ordinary parameter first.
17823  func_stripname_result=${3}
17824  func_stripname_result=${func_stripname_result#"${1}"}
17825  func_stripname_result=${func_stripname_result%"${2}"}
17826}
17827
17828# func_opt_split
17829func_opt_split ()
17830{
17831  func_opt_split_opt=${1%%=*}
17832  func_opt_split_arg=${1#*=}
17833}
17834
17835# func_lo2o object
17836func_lo2o ()
17837{
17838  case ${1} in
17839    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17840    *)    func_lo2o_result=${1} ;;
17841  esac
17842}
17843
17844# func_xform libobj-or-source
17845func_xform ()
17846{
17847  func_xform_result=${1%.*}.lo
17848}
17849
17850# func_arith arithmetic-term...
17851func_arith ()
17852{
17853  func_arith_result=$(( $* ))
17854}
17855
17856# func_len string
17857# STRING may not start with a hyphen.
17858func_len ()
17859{
17860  func_len_result=${#1}
17861}
17862
17863_LT_EOF
17864    ;;
17865  *) # Bourne compatible functions.
17866    cat << \_LT_EOF >> "$cfgfile"
17867
17868# func_dirname file append nondir_replacement
17869# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17870# otherwise set result to NONDIR_REPLACEMENT.
17871func_dirname ()
17872{
17873  # Extract subdirectory from the argument.
17874  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17875  if test "X$func_dirname_result" = "X${1}"; then
17876    func_dirname_result="${3}"
17877  else
17878    func_dirname_result="$func_dirname_result${2}"
17879  fi
17880}
17881
17882# func_basename file
17883func_basename ()
17884{
17885  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17886}
17887
17888
17889# func_stripname prefix suffix name
17890# strip PREFIX and SUFFIX off of NAME.
17891# PREFIX and SUFFIX must not contain globbing or regex special
17892# characters, hashes, percent signs, but SUFFIX may contain a leading
17893# dot (in which case that matches only a dot).
17894# func_strip_suffix prefix name
17895func_stripname ()
17896{
17897  case ${2} in
17898    .*) func_stripname_result=`$ECHO "X${3}" \
17899           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17900    *)  func_stripname_result=`$ECHO "X${3}" \
17901           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17902  esac
17903}
17904
17905# sed scripts:
17906my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17907my_sed_long_arg='1s/^-[^=]*=//'
17908
17909# func_opt_split
17910func_opt_split ()
17911{
17912  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17913  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17914}
17915
17916# func_lo2o object
17917func_lo2o ()
17918{
17919  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17920}
17921
17922# func_xform libobj-or-source
17923func_xform ()
17924{
17925  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17926}
17927
17928# func_arith arithmetic-term...
17929func_arith ()
17930{
17931  func_arith_result=`expr "$@"`
17932}
17933
17934# func_len string
17935# STRING may not start with a hyphen.
17936func_len ()
17937{
17938  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17939}
17940
17941_LT_EOF
17942esac
17943
17944case $lt_shell_append in
17945  yes)
17946    cat << \_LT_EOF >> "$cfgfile"
17947
17948# func_append var value
17949# Append VALUE to the end of shell variable VAR.
17950func_append ()
17951{
17952  eval "$1+=\$2"
17953}
17954_LT_EOF
17955    ;;
17956  *)
17957    cat << \_LT_EOF >> "$cfgfile"
17958
17959# func_append var value
17960# Append VALUE to the end of shell variable VAR.
17961func_append ()
17962{
17963  eval "$1=\$$1\$2"
17964}
17965
17966_LT_EOF
17967    ;;
17968  esac
17969
17970
17971  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17972    || (rm -f "$cfgfile"; exit 1)
17973
17974  mv -f "$cfgfile" "$ofile" ||
17975    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17976  chmod +x "$ofile"
17977
17978 ;;
17979    "po/stamp-it":C)
17980    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
17981       { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
17982$as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
17983   { (exit 1); exit 1; }; }
17984    fi
17985    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
17986    >"po/stamp-it.tmp"
17987    sed '/^#/d
17988	 s/^[[].*] *//
17989	 /^[ 	]*$/d
17990	'"s|^|	$ac_top_srcdir/|" \
17991      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
17992
17993    sed '/^POTFILES =/,/[^\\]$/ {
17994		/^POTFILES =/!d
17995		r po/POTFILES
17996	  }
17997	 ' "po/Makefile.in" >"po/Makefile"
17998    rm -f "po/Makefile.tmp"
17999    mv "po/stamp-it.tmp" "po/stamp-it"
18000   ;;
18001
18002  esac
18003done # for ac_tag
18004
18005
18006{ (exit 0); exit 0; }
18007_ACEOF
18008chmod +x $CONFIG_STATUS
18009ac_clean_files=$ac_clean_files_save
18010
18011test $ac_write_fail = 0 ||
18012  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18013$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18014   { (exit 1); exit 1; }; }
18015
18016
18017# configure is writing to config.log, and then calls config.status.
18018# config.status does its own redirection, appending to config.log.
18019# Unfortunately, on DOS this fails, as config.log is still kept open
18020# by configure, so config.status won't be able to write to it; its
18021# output is simply discarded.  So we exec the FD to /dev/null,
18022# effectively closing config.log, so it can be properly (re)opened and
18023# appended to by config.status.  When coming back to configure, we
18024# need to make the FD available again.
18025if test "$no_create" != yes; then
18026  ac_cs_success=:
18027  ac_config_status_args=
18028  test "$silent" = yes &&
18029    ac_config_status_args="$ac_config_status_args --quiet"
18030  exec 5>/dev/null
18031  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18032  exec 5>>config.log
18033  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18034  # would make configure fail if this is the last instruction.
18035  $ac_cs_success || { (exit 1); exit 1; }
18036fi
18037if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18038  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18039$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18040fi
18041
18042